-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from platformatic/renovate/platformatic
Update platformatic to ^0.45.0
- Loading branch information
Showing
10 changed files
with
2,104 additions
and
1,439 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,39 @@ | ||
import { Entity } from '@platformatic/sql-mapper'; | ||
import graphqlPlugin from '@platformatic/sql-graphql' | ||
import { Queue } from './types/Queue' | ||
import { Message } from './types/Message' | ||
import { Cron } from './types/Cron' | ||
import type { PlatformaticApp, PlatformaticDBMixin, PlatformaticDBConfig, Entity, Entities, EntityHooks } from '@platformatic/db' | ||
import { EntityTypes, Cron,Message,Page,Queue } from './types' | ||
|
||
declare module 'fastify' { | ||
interface FastifyInstance { | ||
getSchema(schemaId: 'Queue' | 'Message' | 'Cron'): { | ||
getSchema<T extends 'Cron' | 'Message' | 'Page' | 'Queue'>(schemaId: T): { | ||
'$id': string, | ||
title: string, | ||
description: string, | ||
type: string, | ||
properties: object, | ||
properties: { | ||
[x in keyof EntityTypes[T]]: { type: string, nullable?: boolean } | ||
}, | ||
required: string[] | ||
}; | ||
} | ||
} | ||
|
||
declare module '@platformatic/sql-mapper' { | ||
interface Entities { | ||
queue: Entity<Queue>, | ||
interface AppEntities extends Entities { | ||
cron: Entity<Cron>, | ||
message: Entity<Message>, | ||
cron: Entity<Cron>, | ||
page: Entity<Page>, | ||
queue: Entity<Queue>, | ||
} | ||
|
||
interface AppEntityHooks { | ||
addEntityHooks(entityName: 'cron', hooks: EntityHooks<Cron>): any | ||
addEntityHooks(entityName: 'message', hooks: EntityHooks<Message>): any | ||
addEntityHooks(entityName: 'page', hooks: EntityHooks<Page>): any | ||
addEntityHooks(entityName: 'queue', hooks: EntityHooks<Queue>): any | ||
} | ||
|
||
declare module 'fastify' { | ||
interface FastifyInstance { | ||
platformatic: PlatformaticApp<PlatformaticDBConfig> & | ||
PlatformaticDBMixin<AppEntities> & | ||
AppEntityHooks | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.