@kyro-cms/core 0.9.0 → 0.9.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/README.md +55 -593
- package/dist/{WebhookService-AefJfqX0.d.cts → WebhookService-BKszZlG0.d.cts} +1 -1
- package/dist/{WebhookService-118ZTFis.d.ts → WebhookService-Ccf1j-IN.d.ts} +1 -1
- package/dist/api-handler-graphql.cjs +44 -0
- package/dist/api-handler-graphql.cjs.map +1 -0
- package/dist/api-handler-graphql.d.cts +6 -0
- package/dist/api-handler-graphql.d.ts +6 -0
- package/dist/api-handler-graphql.js +41 -0
- package/dist/api-handler-graphql.js.map +1 -0
- package/dist/api-handler-trpc.cjs +38 -0
- package/dist/api-handler-trpc.cjs.map +1 -0
- package/dist/api-handler-trpc.d.cts +5 -0
- package/dist/api-handler-trpc.d.ts +5 -0
- package/dist/api-handler-trpc.js +36 -0
- package/dist/api-handler-trpc.js.map +1 -0
- package/dist/api-handler.cjs +33 -99
- package/dist/api-handler.cjs.map +1 -1
- package/dist/api-handler.d.cts +2 -1
- package/dist/api-handler.d.ts +2 -1
- package/dist/api-handler.js +21 -97
- package/dist/api-handler.js.map +1 -1
- package/dist/{tenant-B1YB0Jy8.d.ts → base-CIuXkrH4.d.cts} +7 -15
- package/dist/{tenant-Cpeveji6.d.cts → base-fFo4lqER.d.ts} +7 -15
- package/dist/bootstrap-3PV3GJ3S.js +7 -0
- package/dist/{bootstrap-JCML6NFO.js.map → bootstrap-3PV3GJ3S.js.map} +1 -1
- package/dist/bootstrap-4CELFLJO.cjs +32 -0
- package/dist/{bootstrap-AKAUP6F6.cjs.map → bootstrap-4CELFLJO.cjs.map} +1 -1
- package/dist/{chunk-VJT6P4N6.cjs → chunk-3HR772HI.cjs} +199 -32
- package/dist/chunk-3HR772HI.cjs.map +1 -0
- package/dist/chunk-3KTWGODI.cjs +178 -0
- package/dist/chunk-3KTWGODI.cjs.map +1 -0
- package/dist/{chunk-QXIQWPAP.js → chunk-3UK5XBVJ.js} +4 -134
- package/dist/chunk-3UK5XBVJ.js.map +1 -0
- package/dist/{chunk-FXYP2HA6.js → chunk-4AO3A3JM.js} +48 -4
- package/dist/chunk-4AO3A3JM.js.map +1 -0
- package/dist/{chunk-Z6ZWNWWR.js → chunk-4CV4JOE5.js} +3 -9
- package/dist/{chunk-Z6ZWNWWR.js.map → chunk-4CV4JOE5.js.map} +1 -1
- package/dist/chunk-4M7X5HAB.cjs +173 -0
- package/dist/chunk-4M7X5HAB.cjs.map +1 -0
- package/dist/chunk-53NYVYVX.js +3243 -0
- package/dist/chunk-53NYVYVX.js.map +1 -0
- package/dist/{chunk-35U3FROB.js → chunk-5H3MWQJS.js} +714 -184
- package/dist/chunk-5H3MWQJS.js.map +1 -0
- package/dist/{chunk-YVUJBEXE.cjs → chunk-5PMQQFRE.cjs} +16 -7
- package/dist/chunk-5PMQQFRE.cjs.map +1 -0
- package/dist/{chunk-57P6MJKC.js → chunk-6UNONDW7.js} +94 -10
- package/dist/chunk-6UNONDW7.js.map +1 -0
- package/dist/{chunk-Y3N7UUDO.js → chunk-7OGPN7MP.js} +5 -2
- package/dist/chunk-7OGPN7MP.js.map +1 -0
- package/dist/{chunk-2OL4O2TH.cjs → chunk-7OS7TX2Q.cjs} +68 -62
- package/dist/chunk-7OS7TX2Q.cjs.map +1 -0
- package/dist/{chunk-3TPQ2BU6.js → chunk-BYBMTIMT.js} +2 -6
- package/dist/chunk-BYBMTIMT.js.map +1 -0
- package/dist/{chunk-ES5HNFFT.js → chunk-CF7OL6HR.js} +4 -2
- package/dist/chunk-CF7OL6HR.js.map +1 -0
- package/dist/chunk-CJONKRHJ.js +162 -0
- package/dist/chunk-CJONKRHJ.js.map +1 -0
- package/dist/{chunk-OHVB4AJ7.js → chunk-CJX74IYK.js} +24 -18
- package/dist/chunk-CJX74IYK.js.map +1 -0
- package/dist/{chunk-5KVM3WEY.cjs → chunk-CNKT4PME.cjs} +1592 -868
- package/dist/chunk-CNKT4PME.cjs.map +1 -0
- package/dist/{chunk-G7VZBCD6.cjs → chunk-CZLDE2OZ.cjs} +2 -9
- package/dist/{chunk-G7VZBCD6.cjs.map → chunk-CZLDE2OZ.cjs.map} +1 -1
- package/dist/{chunk-WQBRWOQT.cjs → chunk-DPA3KWPY.cjs} +4 -3
- package/dist/chunk-DPA3KWPY.cjs.map +1 -0
- package/dist/{chunk-LINKCEG4.cjs → chunk-E2763JUP.cjs} +726 -196
- package/dist/chunk-E2763JUP.cjs.map +1 -0
- package/dist/chunk-E5UJBLQ7.js +220 -0
- package/dist/chunk-E5UJBLQ7.js.map +1 -0
- package/dist/{chunk-DVD5P72E.cjs → chunk-EEJUFDMF.cjs} +2 -6
- package/dist/chunk-EEJUFDMF.cjs.map +1 -0
- package/dist/chunk-FSKONGCX.cjs +253 -0
- package/dist/chunk-FSKONGCX.cjs.map +1 -0
- package/dist/{chunk-Y3QQN7PN.js → chunk-GAAHG2Z4.js} +13 -4
- package/dist/chunk-GAAHG2Z4.js.map +1 -0
- package/dist/chunk-GAOXD3XT.js +175 -0
- package/dist/chunk-GAOXD3XT.js.map +1 -0
- package/dist/{chunk-SA7NSSIQ.cjs → chunk-GUUB5EAG.cjs} +13 -187
- package/dist/chunk-GUUB5EAG.cjs.map +1 -0
- package/dist/{chunk-4DA7QPLA.cjs → chunk-GXFOGU7N.cjs} +5 -2
- package/dist/chunk-GXFOGU7N.cjs.map +1 -0
- package/dist/{chunk-I7HHI6QV.cjs → chunk-IDVRRRAK.cjs} +17 -9
- package/dist/chunk-IDVRRRAK.cjs.map +1 -0
- package/dist/{chunk-HXRD4B37.js → chunk-IPTZM3VE.js} +1423 -704
- package/dist/chunk-IPTZM3VE.js.map +1 -0
- package/dist/chunk-KC2GDBLS.cjs +84 -0
- package/dist/chunk-KC2GDBLS.cjs.map +1 -0
- package/dist/{chunk-QUW2RZTM.cjs → chunk-L46ROHUS.cjs} +51 -7
- package/dist/chunk-L46ROHUS.cjs.map +1 -0
- package/dist/chunk-L4EZKIEX.js +185 -0
- package/dist/chunk-L4EZKIEX.js.map +1 -0
- package/dist/{chunk-REK7AYOC.js → chunk-L5UKKZQN.js} +199 -32
- package/dist/chunk-L5UKKZQN.js.map +1 -0
- package/dist/chunk-NKPKR5BW.cjs +188 -0
- package/dist/chunk-NKPKR5BW.cjs.map +1 -0
- package/dist/chunk-NWUEVLQT.cjs +99 -0
- package/dist/chunk-NWUEVLQT.cjs.map +1 -0
- package/dist/{chunk-3AJE4SEG.js → chunk-OHC6UHFY.js} +208 -76
- package/dist/chunk-OHC6UHFY.js.map +1 -0
- package/dist/chunk-PHJRNPHY.cjs +3291 -0
- package/dist/chunk-PHJRNPHY.cjs.map +1 -0
- package/dist/{chunk-DXHRBMGB.js → chunk-PQ72Z6WC.js} +67 -112
- package/dist/chunk-PQ72Z6WC.js.map +1 -0
- package/dist/{chunk-K7JPTH3G.cjs → chunk-PV2I2KMI.cjs} +214 -82
- package/dist/chunk-PV2I2KMI.cjs.map +1 -0
- package/dist/{chunk-PDYFVNUX.cjs → chunk-Q23GAMLE.cjs} +71 -116
- package/dist/chunk-Q23GAMLE.cjs.map +1 -0
- package/dist/{chunk-H727JIG7.js → chunk-Q72BOAPK.js} +16 -8
- package/dist/chunk-Q72BOAPK.js.map +1 -0
- package/dist/{chunk-IBG6V56E.cjs → chunk-QFLB4EIJ.cjs} +2 -139
- package/dist/chunk-QFLB4EIJ.cjs.map +1 -0
- package/dist/{chunk-2KVHZE6O.cjs → chunk-RFFSZSCL.cjs} +282 -190
- package/dist/chunk-RFFSZSCL.cjs.map +1 -0
- package/dist/{chunk-V3LKPM3O.cjs → chunk-SHTTJMLT.cjs} +4 -2
- package/dist/chunk-SHTTJMLT.cjs.map +1 -0
- package/dist/{chunk-WOWUL7ZY.js → chunk-UUDTPZX6.js} +5 -4
- package/dist/chunk-UUDTPZX6.js.map +1 -0
- package/dist/{chunk-QPPDLRNR.js → chunk-V7KZQIZ6.js} +277 -185
- package/dist/chunk-V7KZQIZ6.js.map +1 -0
- package/dist/{chunk-3ZFYL34R.js → chunk-WXVB364T.js} +12 -185
- package/dist/chunk-WXVB364T.js.map +1 -0
- package/dist/chunk-XEB7PH2E.js +81 -0
- package/dist/chunk-XEB7PH2E.js.map +1 -0
- package/dist/{chunk-IA6AU5PI.cjs → chunk-Y7AQK4R4.cjs} +94 -10
- package/dist/chunk-Y7AQK4R4.cjs.map +1 -0
- package/dist/chunk-YFAVQQTU.js +92 -0
- package/dist/chunk-YFAVQQTU.js.map +1 -0
- package/dist/cli/index.cjs +6 -6
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +6 -6
- package/dist/cli/index.js.map +1 -1
- package/dist/client.cjs +4 -4
- package/dist/client.d.cts +3 -3
- package/dist/client.d.ts +3 -3
- package/dist/client.js +2 -2
- package/dist/drizzle/index.cjs +15 -14
- package/dist/drizzle/index.d.cts +10 -14
- package/dist/drizzle/index.d.ts +10 -14
- package/dist/drizzle/index.js +6 -5
- package/dist/fields/index.cjs +22 -38
- package/dist/fields/index.d.cts +2 -22
- package/dist/fields/index.d.ts +2 -22
- package/dist/fields/index.js +2 -2
- package/dist/graphql/index.cjs +6 -5
- package/dist/graphql/index.d.cts +5 -3
- package/dist/graphql/index.d.ts +5 -3
- package/dist/graphql/index.js +4 -3
- package/dist/index-BKta3cBH.d.cts +277 -0
- package/dist/index-ClOqnkTO.d.ts +277 -0
- package/dist/index.cjs +310 -168
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +130 -211
- package/dist/index.d.ts +130 -211
- package/dist/index.js +174 -35
- package/dist/index.js.map +1 -1
- package/dist/integration.cjs +3 -3
- package/dist/integration.js +2 -2
- package/dist/media-7WDX4BDJ.js +4 -0
- package/dist/{media-GPPTZ43E.js.map → media-7WDX4BDJ.js.map} +1 -1
- package/dist/{media-XNTUFJZR.cjs → media-TUSLVRQ6.cjs} +3 -3
- package/dist/{media-XNTUFJZR.cjs.map → media-TUSLVRQ6.cjs.map} +1 -1
- package/dist/mongo-auth-adapter-GT4S7SCU.cjs +17 -0
- package/dist/{mongo-auth-adapter-NHHUJHVH.cjs.map → mongo-auth-adapter-GT4S7SCU.cjs.map} +1 -1
- package/dist/mongo-auth-adapter-M7VV4LNB.js +4 -0
- package/dist/{mongo-auth-adapter-NJQUUCTP.js.map → mongo-auth-adapter-M7VV4LNB.js.map} +1 -1
- package/dist/mongodb/index.cjs +9 -8
- package/dist/mongodb/index.d.cts +6 -13
- package/dist/mongodb/index.d.ts +6 -13
- package/dist/mongodb/index.js +5 -4
- package/dist/postgres-auth-adapter-AFAPISH7.js +5 -0
- package/dist/{postgres-auth-adapter-3T2NKTSE.js.map → postgres-auth-adapter-AFAPISH7.js.map} +1 -1
- package/dist/postgres-auth-adapter-SFDTLONT.cjs +14 -0
- package/dist/{postgres-auth-adapter-7IEENCKQ.cjs.map → postgres-auth-adapter-SFDTLONT.cjs.map} +1 -1
- package/dist/redis-adapter-UQX4EE3B.cjs +13 -0
- package/dist/{redis-adapter-D2E2S3GB.cjs.map → redis-adapter-UQX4EE3B.cjs.map} +1 -1
- package/dist/redis-adapter-XALOGWY3.js +4 -0
- package/dist/{redis-adapter-VQXD7ESY.js.map → redis-adapter-XALOGWY3.js.map} +1 -1
- package/dist/rest/index.cjs +16 -15
- package/dist/rest/index.d.cts +4 -4
- package/dist/rest/index.d.ts +4 -4
- package/dist/rest/index.js +14 -13
- package/dist/{schema-37SE2F4B.cjs → schema-6QL3USNB.cjs} +15 -15
- package/dist/{schema-37SE2F4B.cjs.map → schema-6QL3USNB.cjs.map} +1 -1
- package/dist/{schema-5PHL5IVB.js → schema-FNNWEAAW.js} +4 -4
- package/dist/{schema-5PHL5IVB.js.map → schema-FNNWEAAW.js.map} +1 -1
- package/dist/sqlite-adapter-AQB5TCGV.cjs +13 -0
- package/dist/{sqlite-adapter-LVK5PS4T.cjs.map → sqlite-adapter-AQB5TCGV.cjs.map} +1 -1
- package/dist/sqlite-adapter-N5H6IM2X.js +4 -0
- package/dist/{sqlite-adapter-TR3U3W6Q.js.map → sqlite-adapter-N5H6IM2X.js.map} +1 -1
- package/dist/templates/index.cjs +134 -32
- package/dist/templates/index.d.cts +52 -9
- package/dist/templates/index.d.ts +52 -9
- package/dist/templates/index.js +4 -2
- package/dist/trpc/index.cjs +14 -13
- package/dist/trpc/index.d.cts +55 -49
- package/dist/trpc/index.d.ts +55 -49
- package/dist/trpc/index.js +5 -4
- package/dist/{types-D6ZLRGbH.d.cts → types-CpjuXbe7.d.cts} +2 -0
- package/dist/{types-D6ZLRGbH.d.ts → types-CpjuXbe7.d.ts} +2 -0
- package/dist/{types-VtjUxIMp.d.cts → types-DeSApf9T.d.cts} +36 -14
- package/dist/{types-VtjUxIMp.d.ts → types-DeSApf9T.d.ts} +36 -14
- package/dist/{types-J3R9nVsZ.d.cts → types-Dgzlftb7.d.ts} +32 -28
- package/dist/{types-Bs1up4yP.d.ts → types-Ds0tCA3L.d.cts} +32 -28
- package/dist/ws/index.cjs +6 -6
- package/dist/ws/index.js +2 -2
- package/package.json +22 -4
- package/dist/bootstrap-AKAUP6F6.cjs +0 -32
- package/dist/bootstrap-JCML6NFO.js +0 -7
- package/dist/chunk-2KVHZE6O.cjs.map +0 -1
- package/dist/chunk-2OL4O2TH.cjs.map +0 -1
- package/dist/chunk-35U3FROB.js.map +0 -1
- package/dist/chunk-3AJE4SEG.js.map +0 -1
- package/dist/chunk-3J4MFTI3.js +0 -3872
- package/dist/chunk-3J4MFTI3.js.map +0 -1
- package/dist/chunk-3TPQ2BU6.js.map +0 -1
- package/dist/chunk-3ZFYL34R.js.map +0 -1
- package/dist/chunk-4DA7QPLA.cjs.map +0 -1
- package/dist/chunk-57P6MJKC.js.map +0 -1
- package/dist/chunk-5KVM3WEY.cjs.map +0 -1
- package/dist/chunk-6IMPH6WV.cjs +0 -3897
- package/dist/chunk-6IMPH6WV.cjs.map +0 -1
- package/dist/chunk-ATBOUGQP.cjs +0 -513
- package/dist/chunk-ATBOUGQP.cjs.map +0 -1
- package/dist/chunk-DVD5P72E.cjs.map +0 -1
- package/dist/chunk-DXHRBMGB.js.map +0 -1
- package/dist/chunk-ES5HNFFT.js.map +0 -1
- package/dist/chunk-FXYP2HA6.js.map +0 -1
- package/dist/chunk-H727JIG7.js.map +0 -1
- package/dist/chunk-HXRD4B37.js.map +0 -1
- package/dist/chunk-I7HHI6QV.cjs.map +0 -1
- package/dist/chunk-IA6AU5PI.cjs.map +0 -1
- package/dist/chunk-IBG6V56E.cjs.map +0 -1
- package/dist/chunk-K7JPTH3G.cjs.map +0 -1
- package/dist/chunk-LINKCEG4.cjs.map +0 -1
- package/dist/chunk-OHVB4AJ7.js.map +0 -1
- package/dist/chunk-PDYFVNUX.cjs.map +0 -1
- package/dist/chunk-Q23JB3KL.js +0 -488
- package/dist/chunk-Q23JB3KL.js.map +0 -1
- package/dist/chunk-QPPDLRNR.js.map +0 -1
- package/dist/chunk-QUW2RZTM.cjs.map +0 -1
- package/dist/chunk-QXIQWPAP.js.map +0 -1
- package/dist/chunk-R3XIBBAW.cjs +0 -34
- package/dist/chunk-R3XIBBAW.cjs.map +0 -1
- package/dist/chunk-REK7AYOC.js.map +0 -1
- package/dist/chunk-SA7NSSIQ.cjs.map +0 -1
- package/dist/chunk-SDMNUYVU.js +0 -30
- package/dist/chunk-SDMNUYVU.js.map +0 -1
- package/dist/chunk-V3LKPM3O.cjs.map +0 -1
- package/dist/chunk-VJT6P4N6.cjs.map +0 -1
- package/dist/chunk-WOWUL7ZY.js.map +0 -1
- package/dist/chunk-WQBRWOQT.cjs.map +0 -1
- package/dist/chunk-Y3N7UUDO.js.map +0 -1
- package/dist/chunk-Y3QQN7PN.js.map +0 -1
- package/dist/chunk-YVUJBEXE.cjs.map +0 -1
- package/dist/index-CLp-DRKA.d.ts +0 -64
- package/dist/index-DfO7G4kN.d.cts +0 -64
- package/dist/media-GPPTZ43E.js +0 -4
- package/dist/mongo-auth-adapter-NHHUJHVH.cjs +0 -17
- package/dist/mongo-auth-adapter-NJQUUCTP.js +0 -4
- package/dist/postgres-auth-adapter-3T2NKTSE.js +0 -5
- package/dist/postgres-auth-adapter-7IEENCKQ.cjs +0 -14
- package/dist/redis-adapter-D2E2S3GB.cjs +0 -13
- package/dist/redis-adapter-VQXD7ESY.js +0 -4
- package/dist/sqlite-adapter-LVK5PS4T.cjs +0 -13
- package/dist/sqlite-adapter-TR3U3W6Q.js +0 -4
package/dist/drizzle/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as AbstractBaseAdapter
|
|
2
|
-
import { C as CollectionConfig, G as GlobalConfig, F as FindArgs, b as FindResult, c as FindByIDArgs, d as CreateArgs, e as UpdateArgs, D as DeleteArgs
|
|
3
|
-
import { F as Field } from '../types-
|
|
1
|
+
import { A as AbstractBaseAdapter } from '../base-CIuXkrH4.cjs';
|
|
2
|
+
import { C as CollectionConfig, G as GlobalConfig, F as FindArgs, b as FindResult, c as FindByIDArgs, d as CreateArgs, e as UpdateArgs, D as DeleteArgs } from '../types-Ds0tCA3L.cjs';
|
|
3
|
+
import { F as Field } from '../types-DeSApf9T.cjs';
|
|
4
4
|
import { PostgresJsDatabase } from 'drizzle-orm/postgres-js';
|
|
5
|
-
import { A as AuthAdapter, U as UserRole, c as AuthUser, S as Session, e as AuditLogFilter, d as AuditLog } from '../types-
|
|
5
|
+
import { A as AuthAdapter, U as UserRole, c as AuthUser, S as Session, e as AuditLogFilter, d as AuditLog } from '../types-CpjuXbe7.cjs';
|
|
6
6
|
|
|
7
7
|
declare function fieldToDrizzleType(field: Field, dialect?: 'postgres' | 'sqlite'): string;
|
|
8
8
|
declare function collectionToDrizzleSchema(collection: CollectionConfig, dialect?: 'postgres' | 'sqlite'): string;
|
|
@@ -11,11 +11,7 @@ declare class DrizzleAdapter extends AbstractBaseAdapter {
|
|
|
11
11
|
private schema;
|
|
12
12
|
dialect: 'postgres' | 'sqlite';
|
|
13
13
|
private connectionString?;
|
|
14
|
-
private draftsTableReady;
|
|
15
14
|
private versionsTableReady;
|
|
16
|
-
private tenantContext?;
|
|
17
|
-
setTenantContext(context: TenantContext | undefined): void;
|
|
18
|
-
getTenantContext(): TenantContext | undefined;
|
|
19
15
|
constructor(options: {
|
|
20
16
|
type?: 'postgres' | 'sqlite';
|
|
21
17
|
client?: any;
|
|
@@ -27,6 +23,10 @@ declare class DrizzleAdapter extends AbstractBaseAdapter {
|
|
|
27
23
|
init(collections: CollectionConfig[], globals?: GlobalConfig[]): Promise<void>;
|
|
28
24
|
private createTableFromConfig;
|
|
29
25
|
private ensureCollectionTables;
|
|
26
|
+
private getColumnSqlDefinition;
|
|
27
|
+
private columnSqlType;
|
|
28
|
+
private getExpectedColumnDefs;
|
|
29
|
+
private syncTableColumns;
|
|
30
30
|
private generateCreateColumns;
|
|
31
31
|
disconnect(): Promise<void>;
|
|
32
32
|
find<T>(args: FindArgs): Promise<FindResult<T>>;
|
|
@@ -52,23 +52,18 @@ declare class DrizzleAdapter extends AbstractBaseAdapter {
|
|
|
52
52
|
tenantID?: string;
|
|
53
53
|
}): Promise<any>;
|
|
54
54
|
createVersion(args: any): Promise<any>;
|
|
55
|
+
updateLatestVersion(args: any): Promise<any>;
|
|
55
56
|
deleteVersions(args: {
|
|
56
57
|
collection: string;
|
|
57
58
|
documentId: string;
|
|
58
59
|
keepLatest?: number;
|
|
59
60
|
tenantID?: string;
|
|
60
61
|
}): Promise<void>;
|
|
61
|
-
findDraft<T>(args: DraftFindArgs): Promise<DraftSnapshot<T> | null>;
|
|
62
|
-
upsertDraft<T>(args: DraftUpsertArgs<T>): Promise<DraftSnapshot<T>>;
|
|
63
|
-
deleteDraft(args: DraftDeleteArgs): Promise<void>;
|
|
64
62
|
private getTable;
|
|
65
63
|
private buildWhereClause;
|
|
66
64
|
private processResult;
|
|
67
|
-
private ensureDraftsTable;
|
|
68
65
|
private ensureVersionsTable;
|
|
69
|
-
private getDraftId;
|
|
70
66
|
private executeRaw;
|
|
71
|
-
private rowToDraft;
|
|
72
67
|
}
|
|
73
68
|
declare function createDrizzleAdapter(options: {
|
|
74
69
|
type?: 'postgres' | 'sqlite';
|
|
@@ -96,6 +91,7 @@ declare class PostgresAuthAdapter implements AuthAdapter {
|
|
|
96
91
|
password: string;
|
|
97
92
|
name?: string;
|
|
98
93
|
role?: UserRole;
|
|
94
|
+
avatar?: string;
|
|
99
95
|
tenantId?: string;
|
|
100
96
|
}): Promise<AuthUser>;
|
|
101
97
|
findUserByEmail(email: string): Promise<AuthUser | null>;
|
package/dist/drizzle/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as AbstractBaseAdapter
|
|
2
|
-
import { C as CollectionConfig, G as GlobalConfig, F as FindArgs, b as FindResult, c as FindByIDArgs, d as CreateArgs, e as UpdateArgs, D as DeleteArgs
|
|
3
|
-
import { F as Field } from '../types-
|
|
1
|
+
import { A as AbstractBaseAdapter } from '../base-fFo4lqER.js';
|
|
2
|
+
import { C as CollectionConfig, G as GlobalConfig, F as FindArgs, b as FindResult, c as FindByIDArgs, d as CreateArgs, e as UpdateArgs, D as DeleteArgs } from '../types-Dgzlftb7.js';
|
|
3
|
+
import { F as Field } from '../types-DeSApf9T.js';
|
|
4
4
|
import { PostgresJsDatabase } from 'drizzle-orm/postgres-js';
|
|
5
|
-
import { A as AuthAdapter, U as UserRole, c as AuthUser, S as Session, e as AuditLogFilter, d as AuditLog } from '../types-
|
|
5
|
+
import { A as AuthAdapter, U as UserRole, c as AuthUser, S as Session, e as AuditLogFilter, d as AuditLog } from '../types-CpjuXbe7.js';
|
|
6
6
|
|
|
7
7
|
declare function fieldToDrizzleType(field: Field, dialect?: 'postgres' | 'sqlite'): string;
|
|
8
8
|
declare function collectionToDrizzleSchema(collection: CollectionConfig, dialect?: 'postgres' | 'sqlite'): string;
|
|
@@ -11,11 +11,7 @@ declare class DrizzleAdapter extends AbstractBaseAdapter {
|
|
|
11
11
|
private schema;
|
|
12
12
|
dialect: 'postgres' | 'sqlite';
|
|
13
13
|
private connectionString?;
|
|
14
|
-
private draftsTableReady;
|
|
15
14
|
private versionsTableReady;
|
|
16
|
-
private tenantContext?;
|
|
17
|
-
setTenantContext(context: TenantContext | undefined): void;
|
|
18
|
-
getTenantContext(): TenantContext | undefined;
|
|
19
15
|
constructor(options: {
|
|
20
16
|
type?: 'postgres' | 'sqlite';
|
|
21
17
|
client?: any;
|
|
@@ -27,6 +23,10 @@ declare class DrizzleAdapter extends AbstractBaseAdapter {
|
|
|
27
23
|
init(collections: CollectionConfig[], globals?: GlobalConfig[]): Promise<void>;
|
|
28
24
|
private createTableFromConfig;
|
|
29
25
|
private ensureCollectionTables;
|
|
26
|
+
private getColumnSqlDefinition;
|
|
27
|
+
private columnSqlType;
|
|
28
|
+
private getExpectedColumnDefs;
|
|
29
|
+
private syncTableColumns;
|
|
30
30
|
private generateCreateColumns;
|
|
31
31
|
disconnect(): Promise<void>;
|
|
32
32
|
find<T>(args: FindArgs): Promise<FindResult<T>>;
|
|
@@ -52,23 +52,18 @@ declare class DrizzleAdapter extends AbstractBaseAdapter {
|
|
|
52
52
|
tenantID?: string;
|
|
53
53
|
}): Promise<any>;
|
|
54
54
|
createVersion(args: any): Promise<any>;
|
|
55
|
+
updateLatestVersion(args: any): Promise<any>;
|
|
55
56
|
deleteVersions(args: {
|
|
56
57
|
collection: string;
|
|
57
58
|
documentId: string;
|
|
58
59
|
keepLatest?: number;
|
|
59
60
|
tenantID?: string;
|
|
60
61
|
}): Promise<void>;
|
|
61
|
-
findDraft<T>(args: DraftFindArgs): Promise<DraftSnapshot<T> | null>;
|
|
62
|
-
upsertDraft<T>(args: DraftUpsertArgs<T>): Promise<DraftSnapshot<T>>;
|
|
63
|
-
deleteDraft(args: DraftDeleteArgs): Promise<void>;
|
|
64
62
|
private getTable;
|
|
65
63
|
private buildWhereClause;
|
|
66
64
|
private processResult;
|
|
67
|
-
private ensureDraftsTable;
|
|
68
65
|
private ensureVersionsTable;
|
|
69
|
-
private getDraftId;
|
|
70
66
|
private executeRaw;
|
|
71
|
-
private rowToDraft;
|
|
72
67
|
}
|
|
73
68
|
declare function createDrizzleAdapter(options: {
|
|
74
69
|
type?: 'postgres' | 'sqlite';
|
|
@@ -96,6 +91,7 @@ declare class PostgresAuthAdapter implements AuthAdapter {
|
|
|
96
91
|
password: string;
|
|
97
92
|
name?: string;
|
|
98
93
|
role?: UserRole;
|
|
94
|
+
avatar?: string;
|
|
99
95
|
tenantId?: string;
|
|
100
96
|
}): Promise<AuthUser>;
|
|
101
97
|
findUserByEmail(email: string): Promise<AuthUser | null>;
|
package/dist/drizzle/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import '../chunk-QU2RFFH4.js';
|
|
2
|
-
export { DrizzleAdapter, collectionToDrizzleSchema, createDatabase, createDrizzleAdapter, fieldToDrizzleType, genId, runMigrations, seedDefaultRoles } from '../chunk-
|
|
3
|
-
export { PostgresAuthAdapter } from '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
2
|
+
export { DrizzleAdapter, collectionToDrizzleSchema, createDatabase, createDrizzleAdapter, fieldToDrizzleType, genId, runMigrations, seedDefaultRoles } from '../chunk-V7KZQIZ6.js';
|
|
3
|
+
export { PostgresAuthAdapter } from '../chunk-CJX74IYK.js';
|
|
4
|
+
import '../chunk-UUDTPZX6.js';
|
|
5
|
+
import '../chunk-WXVB364T.js';
|
|
6
|
+
import '../chunk-L4EZKIEX.js';
|
|
7
|
+
import '../chunk-4CV4JOE5.js';
|
|
7
8
|
//# sourceMappingURL=index.js.map
|
|
8
9
|
//# sourceMappingURL=index.js.map
|
package/dist/fields/index.cjs
CHANGED
|
@@ -1,105 +1,89 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkFSKONGCX_cjs = require('../chunk-FSKONGCX.cjs');
|
|
4
|
+
require('../chunk-CZLDE2OZ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "ALL_FIELD_TYPES", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkFSKONGCX_cjs.ALL_FIELD_TYPES; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "COMPLEX_FIELD_TYPES", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkFSKONGCX_cjs.COMPLEX_FIELD_TYPES; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "LAYOUT_FIELD_TYPES", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkFSKONGCX_cjs.LAYOUT_FIELD_TYPES; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "PRIMITIVE_FIELD_TYPES", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkFSKONGCX_cjs.PRIMITIVE_FIELD_TYPES; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "RELATIONAL_FIELD_TYPES", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
27
|
-
});
|
|
28
|
-
Object.defineProperty(exports, "createColumnNode", {
|
|
29
|
-
enumerable: true,
|
|
30
|
-
get: function () { return chunkATBOUGQP_cjs.createColumnNode; }
|
|
31
|
-
});
|
|
32
|
-
Object.defineProperty(exports, "createColumnsNode", {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function () { return chunkATBOUGQP_cjs.createColumnsNode; }
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "createEmptyParagraphNode", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () { return chunkATBOUGQP_cjs.createEmptyParagraphNode; }
|
|
26
|
+
get: function () { return chunkFSKONGCX_cjs.RELATIONAL_FIELD_TYPES; }
|
|
39
27
|
});
|
|
40
28
|
Object.defineProperty(exports, "createRelationshipFieldConfig", {
|
|
41
29
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkFSKONGCX_cjs.createRelationshipFieldConfig; }
|
|
43
31
|
});
|
|
44
32
|
Object.defineProperty(exports, "isArrayField", {
|
|
45
33
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkFSKONGCX_cjs.isArrayField; }
|
|
47
35
|
});
|
|
48
36
|
Object.defineProperty(exports, "isBlocksField", {
|
|
49
37
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkFSKONGCX_cjs.isBlocksField; }
|
|
51
39
|
});
|
|
52
40
|
Object.defineProperty(exports, "isGroupField", {
|
|
53
41
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkFSKONGCX_cjs.isGroupField; }
|
|
55
43
|
});
|
|
56
44
|
Object.defineProperty(exports, "isImageField", {
|
|
57
45
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkFSKONGCX_cjs.isImageField; }
|
|
59
47
|
});
|
|
60
48
|
Object.defineProperty(exports, "isLayoutField", {
|
|
61
49
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkFSKONGCX_cjs.isLayoutField; }
|
|
63
51
|
});
|
|
64
52
|
Object.defineProperty(exports, "isNumberField", {
|
|
65
53
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkFSKONGCX_cjs.isNumberField; }
|
|
67
55
|
});
|
|
68
56
|
Object.defineProperty(exports, "isRelationshipField", {
|
|
69
57
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkFSKONGCX_cjs.isRelationshipField; }
|
|
71
59
|
});
|
|
72
60
|
Object.defineProperty(exports, "isRichTextField", {
|
|
73
61
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkFSKONGCX_cjs.isRichTextField; }
|
|
75
63
|
});
|
|
76
64
|
Object.defineProperty(exports, "isSelectField", {
|
|
77
65
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkFSKONGCX_cjs.isSelectField; }
|
|
79
67
|
});
|
|
80
68
|
Object.defineProperty(exports, "isTextField", {
|
|
81
69
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkFSKONGCX_cjs.isTextField; }
|
|
83
71
|
});
|
|
84
72
|
Object.defineProperty(exports, "isUploadField", {
|
|
85
73
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
87
|
-
});
|
|
88
|
-
Object.defineProperty(exports, "normalizeRichTextDocument", {
|
|
89
|
-
enumerable: true,
|
|
90
|
-
get: function () { return chunkATBOUGQP_cjs.normalizeRichTextDocument; }
|
|
74
|
+
get: function () { return chunkFSKONGCX_cjs.isUploadField; }
|
|
91
75
|
});
|
|
92
76
|
Object.defineProperty(exports, "normalizeRichTextValue", {
|
|
93
77
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkFSKONGCX_cjs.normalizeRichTextValue; }
|
|
95
79
|
});
|
|
96
80
|
Object.defineProperty(exports, "renderRichText", {
|
|
97
81
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkFSKONGCX_cjs.renderRichText; }
|
|
99
83
|
});
|
|
100
84
|
Object.defineProperty(exports, "richTextStyles", {
|
|
101
85
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkFSKONGCX_cjs.richTextStyles; }
|
|
103
87
|
});
|
|
104
88
|
//# sourceMappingURL=index.cjs.map
|
|
105
89
|
//# sourceMappingURL=index.cjs.map
|
package/dist/fields/index.d.cts
CHANGED
|
@@ -1,27 +1,7 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { r as ALL_FIELD_TYPES, Y as ActionField, A as ArrayField, B as BaseField, a as Block, b as BlockAdmin, c as BlockImage, d as BlocksField, Z as ButtonField, s as COMPLEX_FIELD_TYPES, C as CheckboxField, e as CodeField, f as CollapsibleField, g as ColorField, D as DateField, h as DeclarativeCondition, E as EmailField, F as Field, i as FieldAdmin, j as FieldType, G as GroupField, _ as Hook, I as ImageField, J as JSONField, L as LAYOUT_FIELD_TYPES, $ as ListField, M as MarkdownField, N as NumberField, t as PRIMITIVE_FIELD_TYPES, P as PasswordField, u as RELATIONAL_FIELD_TYPES, R as RadioField, k as RelationshipField, l as RichTextBlock, m as RichTextField, n as RowField, S as SecretField, o as SelectField, T as TabsField, p as TextField, a0 as TextFieldVariant, q as TextareaField, U as UploadField, V as ValidateOptions, a1 as createRelationshipFieldConfig, v as isArrayField, w as isBlocksField, x as isGroupField, y as isImageField, z as isLayoutField, H as isNumberField, K as isRelationshipField, O as isRichTextField, Q as isSelectField, W as isTextField, X as isUploadField } from '../types-DeSApf9T.cjs';
|
|
2
2
|
|
|
3
|
-
interface RichTextMark {
|
|
4
|
-
type: string;
|
|
5
|
-
attrs?: Record<string, unknown>;
|
|
6
|
-
}
|
|
7
|
-
interface RichTextNode {
|
|
8
|
-
type?: string;
|
|
9
|
-
attrs?: Record<string, unknown>;
|
|
10
|
-
content?: RichTextNode[];
|
|
11
|
-
text?: string;
|
|
12
|
-
marks?: RichTextMark[];
|
|
13
|
-
[key: string]: unknown;
|
|
14
|
-
}
|
|
15
|
-
interface RichTextDocument extends RichTextNode {
|
|
16
|
-
type: "doc";
|
|
17
|
-
content: RichTextNode[];
|
|
18
|
-
}
|
|
19
3
|
declare const richTextStyles: string;
|
|
20
|
-
declare function createEmptyParagraphNode(): RichTextNode;
|
|
21
|
-
declare function createColumnNode(content?: RichTextNode[]): RichTextNode;
|
|
22
|
-
declare function createColumnsNode(columns?: number): RichTextNode;
|
|
23
|
-
declare function normalizeRichTextDocument(value: unknown): RichTextDocument;
|
|
24
4
|
declare function normalizeRichTextValue<T>(value: T): T;
|
|
25
5
|
declare function renderRichText(value: unknown): string;
|
|
26
6
|
|
|
27
|
-
export {
|
|
7
|
+
export { normalizeRichTextValue, renderRichText, richTextStyles };
|
package/dist/fields/index.d.ts
CHANGED
|
@@ -1,27 +1,7 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { r as ALL_FIELD_TYPES, Y as ActionField, A as ArrayField, B as BaseField, a as Block, b as BlockAdmin, c as BlockImage, d as BlocksField, Z as ButtonField, s as COMPLEX_FIELD_TYPES, C as CheckboxField, e as CodeField, f as CollapsibleField, g as ColorField, D as DateField, h as DeclarativeCondition, E as EmailField, F as Field, i as FieldAdmin, j as FieldType, G as GroupField, _ as Hook, I as ImageField, J as JSONField, L as LAYOUT_FIELD_TYPES, $ as ListField, M as MarkdownField, N as NumberField, t as PRIMITIVE_FIELD_TYPES, P as PasswordField, u as RELATIONAL_FIELD_TYPES, R as RadioField, k as RelationshipField, l as RichTextBlock, m as RichTextField, n as RowField, S as SecretField, o as SelectField, T as TabsField, p as TextField, a0 as TextFieldVariant, q as TextareaField, U as UploadField, V as ValidateOptions, a1 as createRelationshipFieldConfig, v as isArrayField, w as isBlocksField, x as isGroupField, y as isImageField, z as isLayoutField, H as isNumberField, K as isRelationshipField, O as isRichTextField, Q as isSelectField, W as isTextField, X as isUploadField } from '../types-DeSApf9T.js';
|
|
2
2
|
|
|
3
|
-
interface RichTextMark {
|
|
4
|
-
type: string;
|
|
5
|
-
attrs?: Record<string, unknown>;
|
|
6
|
-
}
|
|
7
|
-
interface RichTextNode {
|
|
8
|
-
type?: string;
|
|
9
|
-
attrs?: Record<string, unknown>;
|
|
10
|
-
content?: RichTextNode[];
|
|
11
|
-
text?: string;
|
|
12
|
-
marks?: RichTextMark[];
|
|
13
|
-
[key: string]: unknown;
|
|
14
|
-
}
|
|
15
|
-
interface RichTextDocument extends RichTextNode {
|
|
16
|
-
type: "doc";
|
|
17
|
-
content: RichTextNode[];
|
|
18
|
-
}
|
|
19
3
|
declare const richTextStyles: string;
|
|
20
|
-
declare function createEmptyParagraphNode(): RichTextNode;
|
|
21
|
-
declare function createColumnNode(content?: RichTextNode[]): RichTextNode;
|
|
22
|
-
declare function createColumnsNode(columns?: number): RichTextNode;
|
|
23
|
-
declare function normalizeRichTextDocument(value: unknown): RichTextDocument;
|
|
24
4
|
declare function normalizeRichTextValue<T>(value: T): T;
|
|
25
5
|
declare function renderRichText(value: unknown): string;
|
|
26
6
|
|
|
27
|
-
export {
|
|
7
|
+
export { normalizeRichTextValue, renderRichText, richTextStyles };
|
package/dist/fields/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ALL_FIELD_TYPES, COMPLEX_FIELD_TYPES, LAYOUT_FIELD_TYPES, PRIMITIVE_FIELD_TYPES, RELATIONAL_FIELD_TYPES,
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ALL_FIELD_TYPES, COMPLEX_FIELD_TYPES, LAYOUT_FIELD_TYPES, PRIMITIVE_FIELD_TYPES, RELATIONAL_FIELD_TYPES, createRelationshipFieldConfig, isArrayField, isBlocksField, isGroupField, isImageField, isLayoutField, isNumberField, isRelationshipField, isRichTextField, isSelectField, isTextField, isUploadField, normalizeRichTextValue, renderRichText, richTextStyles } from '../chunk-E5UJBLQ7.js';
|
|
2
|
+
import '../chunk-4CV4JOE5.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunk3HR772HI_cjs = require('../chunk-3HR772HI.cjs');
|
|
4
|
+
require('../chunk-4M7X5HAB.cjs');
|
|
5
|
+
require('../chunk-NKPKR5BW.cjs');
|
|
6
|
+
require('../chunk-CZLDE2OZ.cjs');
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
Object.defineProperty(exports, "buildGraphQLSchema", {
|
|
10
11
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunk3HR772HI_cjs.buildGraphQLSchema; }
|
|
12
13
|
});
|
|
13
14
|
Object.defineProperty(exports, "createGraphQLSchema", {
|
|
14
15
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunk3HR772HI_cjs.createGraphQLSchema; }
|
|
16
17
|
});
|
|
17
18
|
//# sourceMappingURL=index.cjs.map
|
|
18
19
|
//# sourceMappingURL=index.cjs.map
|
package/dist/graphql/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GraphQLSchema } from 'graphql';
|
|
2
|
-
import { B as BaseAdapter,
|
|
3
|
-
import { R as Registry } from '../index-
|
|
4
|
-
import '../types-
|
|
2
|
+
import { B as BaseAdapter, i as User, R as Request } from '../types-Ds0tCA3L.cjs';
|
|
3
|
+
import { R as Registry } from '../index-BKta3cBH.cjs';
|
|
4
|
+
import '../types-DeSApf9T.cjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
7
7
|
interface GraphQLSchemaOptions {
|
|
@@ -10,6 +10,7 @@ interface GraphQLSchemaOptions {
|
|
|
10
10
|
user?: User;
|
|
11
11
|
req?: Request;
|
|
12
12
|
tenantID?: string;
|
|
13
|
+
apiKey?: any;
|
|
13
14
|
settings?: Record<string, any>;
|
|
14
15
|
}
|
|
15
16
|
declare function buildGraphQLSchema(options: GraphQLSchemaOptions): GraphQLSchema;
|
|
@@ -17,6 +18,7 @@ declare function createGraphQLSchema(registry: Registry, db: BaseAdapter, option
|
|
|
17
18
|
user?: User;
|
|
18
19
|
req?: Request;
|
|
19
20
|
tenantID?: string;
|
|
21
|
+
apiKey?: any;
|
|
20
22
|
}): GraphQLSchema;
|
|
21
23
|
|
|
22
24
|
export { type GraphQLSchemaOptions, buildGraphQLSchema, createGraphQLSchema };
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GraphQLSchema } from 'graphql';
|
|
2
|
-
import { B as BaseAdapter,
|
|
3
|
-
import { R as Registry } from '../index-
|
|
4
|
-
import '../types-
|
|
2
|
+
import { B as BaseAdapter, i as User, R as Request } from '../types-Dgzlftb7.js';
|
|
3
|
+
import { R as Registry } from '../index-ClOqnkTO.js';
|
|
4
|
+
import '../types-DeSApf9T.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
7
7
|
interface GraphQLSchemaOptions {
|
|
@@ -10,6 +10,7 @@ interface GraphQLSchemaOptions {
|
|
|
10
10
|
user?: User;
|
|
11
11
|
req?: Request;
|
|
12
12
|
tenantID?: string;
|
|
13
|
+
apiKey?: any;
|
|
13
14
|
settings?: Record<string, any>;
|
|
14
15
|
}
|
|
15
16
|
declare function buildGraphQLSchema(options: GraphQLSchemaOptions): GraphQLSchema;
|
|
@@ -17,6 +18,7 @@ declare function createGraphQLSchema(registry: Registry, db: BaseAdapter, option
|
|
|
17
18
|
user?: User;
|
|
18
19
|
req?: Request;
|
|
19
20
|
tenantID?: string;
|
|
21
|
+
apiKey?: any;
|
|
20
22
|
}): GraphQLSchema;
|
|
21
23
|
|
|
22
24
|
export { type GraphQLSchemaOptions, buildGraphQLSchema, createGraphQLSchema };
|
package/dist/graphql/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { buildGraphQLSchema, createGraphQLSchema } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { buildGraphQLSchema, createGraphQLSchema } from '../chunk-L5UKKZQN.js';
|
|
2
|
+
import '../chunk-CJONKRHJ.js';
|
|
3
|
+
import '../chunk-L4EZKIEX.js';
|
|
4
|
+
import '../chunk-4CV4JOE5.js';
|
|
4
5
|
//# sourceMappingURL=index.js.map
|
|
5
6
|
//# sourceMappingURL=index.js.map
|