@platformatic/db 3.0.0 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +5 -8
- package/package.json +12 -13
- package/schema.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { DBAuthorizationPluginInterface } from '@platformatic/db-authorization'
|
|
2
2
|
import { Configuration, ConfigurationOptions } from '@platformatic/foundation'
|
|
3
|
-
import {
|
|
4
|
-
import { PlatformaticApplication, ServiceCapability } from '@platformatic/service'
|
|
3
|
+
import { PlatformaticApplication, ServiceCapability, Generator as ServiceGenerator } from '@platformatic/service'
|
|
5
4
|
import { SQLEventsPluginInterface } from '@platformatic/sql-events'
|
|
6
5
|
import { Entities, SQLMapperPluginInterface } from '@platformatic/sql-mapper'
|
|
7
6
|
import { JSONSchemaType } from 'ajv'
|
|
8
7
|
import { FastifyError, FastifyInstance } from 'fastify'
|
|
9
|
-
import { PlatformaticDatabaseConfig } from './config'
|
|
8
|
+
import type { PlatformaticDatabaseConfig } from './config.d.ts'
|
|
10
9
|
|
|
11
10
|
export { PlatformaticApplication } from '@platformatic/service'
|
|
12
11
|
export { createConnectionPool, Entities, Entity, EntityHooks } from '@platformatic/sql-mapper'
|
|
13
|
-
export { PlatformaticDatabaseConfig } from './config'
|
|
12
|
+
export type { PlatformaticDatabaseConfig } from './config.d.ts'
|
|
14
13
|
|
|
15
14
|
export type PlatformaticDatabaseMixin<T extends Entities> = SQLMapperPluginInterface<T> &
|
|
16
15
|
SQLEventsPluginInterface &
|
|
@@ -24,9 +23,7 @@ export type ServerInstance<T = {}> = FastifyInstance & {
|
|
|
24
23
|
|
|
25
24
|
export type DatabaseConfiguration = Configuration<PlatformaticDatabaseConfig>
|
|
26
25
|
|
|
27
|
-
export declare function transform (
|
|
28
|
-
config: DatabaseConfiguration
|
|
29
|
-
): Promise<DatabaseConfiguration> | DatabaseConfiguration
|
|
26
|
+
export declare function transform (config: DatabaseConfiguration): Promise<DatabaseConfiguration>
|
|
30
27
|
|
|
31
28
|
export declare function loadConfiguration (
|
|
32
29
|
root: string | PlatformaticDatabaseConfig,
|
|
@@ -44,7 +41,7 @@ export declare const skipTelemetryHooks: boolean
|
|
|
44
41
|
|
|
45
42
|
export declare function platformaticDatabase (app: FastifyInstance, capability: DatabaseCapability): Promise<void>
|
|
46
43
|
|
|
47
|
-
export declare class Generator extends
|
|
44
|
+
export declare class Generator extends ServiceGenerator {}
|
|
48
45
|
|
|
49
46
|
export declare const packageJson: Record<string, unknown>
|
|
50
47
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/db",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -66,18 +66,17 @@
|
|
|
66
66
|
"rfdc": "^1.3.1",
|
|
67
67
|
"rimraf": "^4.4.1",
|
|
68
68
|
"semgrator": "^0.3.0",
|
|
69
|
-
"@platformatic/basic": "3.0.
|
|
70
|
-
"@platformatic/db-authorization": "3.0.
|
|
71
|
-
"@platformatic/
|
|
72
|
-
"@platformatic/
|
|
73
|
-
"@platformatic/
|
|
74
|
-
"@platformatic/
|
|
75
|
-
"@platformatic/sql-
|
|
76
|
-
"@platformatic/sql-
|
|
77
|
-
"@platformatic/sql-json-schema-mapper": "3.0.
|
|
78
|
-
"@platformatic/
|
|
79
|
-
"@platformatic/sql-
|
|
80
|
-
"@platformatic/telemetry": "3.0.0"
|
|
69
|
+
"@platformatic/basic": "3.0.2",
|
|
70
|
+
"@platformatic/db-authorization": "3.0.2",
|
|
71
|
+
"@platformatic/foundation": "3.0.2",
|
|
72
|
+
"@platformatic/service": "3.0.2",
|
|
73
|
+
"@platformatic/db-core": "3.0.2",
|
|
74
|
+
"@platformatic/sql-events": "3.0.2",
|
|
75
|
+
"@platformatic/sql-mapper": "3.0.2",
|
|
76
|
+
"@platformatic/sql-openapi": "3.0.2",
|
|
77
|
+
"@platformatic/sql-json-schema-mapper": "3.0.2",
|
|
78
|
+
"@platformatic/telemetry": "3.0.2",
|
|
79
|
+
"@platformatic/sql-graphql": "3.0.2"
|
|
81
80
|
},
|
|
82
81
|
"engines": {
|
|
83
82
|
"node": ">=22.18.0"
|
package/schema.json
CHANGED