@kyro-cms/core 0.9.1 → 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 +0 -6
- package/dist/{WebhookService-Yg2UEOB4.d.cts → WebhookService-BKszZlG0.d.cts} +1 -1
- package/dist/{WebhookService-CUTb9XOy.d.ts → WebhookService-Ccf1j-IN.d.ts} +1 -1
- package/dist/api-handler-graphql.cjs +17 -17
- package/dist/api-handler-graphql.js +13 -13
- package/dist/api-handler-trpc.cjs +15 -15
- package/dist/api-handler-trpc.js +13 -13
- package/dist/api-handler.cjs +16 -16
- package/dist/api-handler.js +13 -13
- package/dist/{base-DaqY2GhA.d.ts → base-CIuXkrH4.d.cts} +3 -5
- package/dist/{base-B71y_EAF.d.cts → base-fFo4lqER.d.ts} +3 -5
- package/dist/bootstrap-3PV3GJ3S.js +7 -0
- package/dist/{bootstrap-T5BK77LD.js.map → bootstrap-3PV3GJ3S.js.map} +1 -1
- package/dist/bootstrap-4CELFLJO.cjs +32 -0
- package/dist/{bootstrap-5NLASFOG.cjs.map → bootstrap-4CELFLJO.cjs.map} +1 -1
- 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-5EPFQUQD.js → chunk-53NYVYVX.js} +6 -6
- package/dist/chunk-53NYVYVX.js.map +1 -0
- package/dist/{chunk-22M4O4ZJ.js → chunk-5H3MWQJS.js} +129 -143
- package/dist/chunk-5H3MWQJS.js.map +1 -0
- package/dist/{chunk-RAMGUDJN.cjs → chunk-5PMQQFRE.cjs} +5 -5
- package/dist/{chunk-RAMGUDJN.cjs.map → chunk-5PMQQFRE.cjs.map} +1 -1
- package/dist/{chunk-TXSZFA4G.js → chunk-6UNONDW7.js} +93 -9
- package/dist/chunk-6UNONDW7.js.map +1 -0
- package/dist/{chunk-C36TMDTY.cjs → chunk-7OS7TX2Q.cjs} +49 -48
- 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-FOPGUM27.js → chunk-CJX74IYK.js} +5 -4
- package/dist/chunk-CJX74IYK.js.map +1 -0
- package/dist/{chunk-RSF3UU7H.cjs → chunk-CNKT4PME.cjs} +196 -200
- 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-JOPVMWTM.cjs → chunk-DPA3KWPY.cjs} +3 -3
- package/dist/chunk-DPA3KWPY.cjs.map +1 -0
- package/dist/{chunk-ROJHKAQ4.cjs → chunk-E2763JUP.cjs} +143 -157
- package/dist/chunk-E2763JUP.cjs.map +1 -0
- package/dist/{chunk-FAXU7BMP.js → chunk-E5UJBLQ7.js} +2 -2
- 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-2HZRBATX.cjs → chunk-FSKONGCX.cjs} +2 -2
- package/dist/chunk-FSKONGCX.cjs.map +1 -0
- package/dist/{chunk-P2HKJ7P5.js → chunk-GAAHG2Z4.js} +3 -3
- package/dist/{chunk-P2HKJ7P5.js.map → chunk-GAAHG2Z4.js.map} +1 -1
- package/dist/{chunk-PI73NNOK.cjs → chunk-GUUB5EAG.cjs} +2 -2
- package/dist/chunk-GUUB5EAG.cjs.map +1 -0
- package/dist/{chunk-PU2Z5VWF.js → chunk-IPTZM3VE.js} +183 -187
- package/dist/chunk-IPTZM3VE.js.map +1 -0
- package/dist/{chunk-UERVXYVK.cjs → chunk-NWUEVLQT.cjs} +13 -13
- package/dist/{chunk-UERVXYVK.cjs.map → chunk-NWUEVLQT.cjs.map} +1 -1
- package/dist/{chunk-KPA4AN4R.js → chunk-OHC6UHFY.js} +86 -12
- package/dist/chunk-OHC6UHFY.js.map +1 -0
- package/dist/{chunk-DEVFAKCQ.cjs → chunk-PHJRNPHY.cjs} +6 -6
- package/dist/chunk-PHJRNPHY.cjs.map +1 -0
- package/dist/{chunk-VO35MNPH.js → chunk-PQ72Z6WC.js} +67 -105
- package/dist/chunk-PQ72Z6WC.js.map +1 -0
- package/dist/{chunk-KNRSROWB.cjs → chunk-PV2I2KMI.cjs} +86 -12
- package/dist/chunk-PV2I2KMI.cjs.map +1 -0
- package/dist/{chunk-V2TVSCV5.cjs → chunk-Q23GAMLE.cjs} +71 -109
- package/dist/chunk-Q23GAMLE.cjs.map +1 -0
- package/dist/{chunk-COIASRDK.cjs → chunk-RFFSZSCL.cjs} +107 -171
- package/dist/chunk-RFFSZSCL.cjs.map +1 -0
- package/dist/{chunk-AL5KX63J.js → chunk-UUDTPZX6.js} +3 -3
- package/dist/chunk-UUDTPZX6.js.map +1 -0
- package/dist/{chunk-EJN2PAOE.js → chunk-V7KZQIZ6.js} +102 -166
- package/dist/chunk-V7KZQIZ6.js.map +1 -0
- package/dist/{chunk-DYTZ6FQ7.js → chunk-WXVB364T.js} +2 -2
- package/dist/chunk-WXVB364T.js.map +1 -0
- package/dist/{chunk-WNCYAKF3.cjs → chunk-Y7AQK4R4.cjs} +93 -9
- package/dist/chunk-Y7AQK4R4.cjs.map +1 -0
- package/dist/{chunk-SPBTLUN6.js → chunk-YFAVQQTU.js} +7 -7
- package/dist/{chunk-SPBTLUN6.js.map → chunk-YFAVQQTU.js.map} +1 -1
- package/dist/cli/index.cjs +5 -5
- package/dist/cli/index.js +5 -5
- package/dist/client.cjs +4 -4
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +2 -2
- package/dist/drizzle/index.cjs +14 -14
- package/dist/drizzle/index.d.cts +4 -10
- package/dist/drizzle/index.d.ts +4 -10
- package/dist/drizzle/index.js +5 -5
- package/dist/fields/index.cjs +22 -22
- package/dist/fields/index.d.cts +1 -1
- package/dist/fields/index.d.ts +1 -1
- package/dist/fields/index.js +2 -2
- package/dist/graphql/index.cjs +1 -1
- package/dist/graphql/index.d.cts +3 -3
- package/dist/graphql/index.d.ts +3 -3
- package/dist/graphql/index.js +1 -1
- package/dist/{index-CaTNnLGd.d.cts → index-BKta3cBH.d.cts} +3 -2
- package/dist/{index-CJXPB_ot.d.ts → index-ClOqnkTO.d.ts} +3 -2
- package/dist/index.cjs +117 -117
- package/dist/index.d.cts +10 -15
- package/dist/index.d.ts +10 -15
- package/dist/index.js +18 -18
- package/dist/integration.cjs +1 -1
- package/dist/integration.js +1 -1
- 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-ISOM7FSS.cjs → mongo-auth-adapter-GT4S7SCU.cjs} +3 -3
- package/dist/{mongo-auth-adapter-ISOM7FSS.cjs.map → mongo-auth-adapter-GT4S7SCU.cjs.map} +1 -1
- package/dist/mongo-auth-adapter-M7VV4LNB.js +4 -0
- package/dist/{mongo-auth-adapter-MO6STCV3.js.map → mongo-auth-adapter-M7VV4LNB.js.map} +1 -1
- package/dist/mongodb/index.cjs +5 -5
- package/dist/mongodb/index.d.cts +4 -9
- package/dist/mongodb/index.d.ts +4 -9
- package/dist/mongodb/index.js +3 -3
- package/dist/postgres-auth-adapter-AFAPISH7.js +5 -0
- package/dist/{postgres-auth-adapter-DWDR7P5G.js.map → postgres-auth-adapter-AFAPISH7.js.map} +1 -1
- package/dist/postgres-auth-adapter-SFDTLONT.cjs +14 -0
- package/dist/{postgres-auth-adapter-WRWSJD4E.cjs.map → postgres-auth-adapter-SFDTLONT.cjs.map} +1 -1
- package/dist/{redis-adapter-KJ3YOOT6.cjs → redis-adapter-UQX4EE3B.cjs} +3 -3
- package/dist/{redis-adapter-KJ3YOOT6.cjs.map → redis-adapter-UQX4EE3B.cjs.map} +1 -1
- package/dist/redis-adapter-XALOGWY3.js +4 -0
- package/dist/{redis-adapter-HGTPWIGV.js.map → redis-adapter-XALOGWY3.js.map} +1 -1
- package/dist/rest/index.cjs +10 -10
- package/dist/rest/index.d.cts +4 -4
- package/dist/rest/index.d.ts +4 -4
- package/dist/rest/index.js +8 -8
- package/dist/{schema-TTFE4467.cjs → schema-6QL3USNB.cjs} +15 -15
- package/dist/{schema-TTFE4467.cjs.map → schema-6QL3USNB.cjs.map} +1 -1
- package/dist/{schema-6I5OFR4Z.js → schema-FNNWEAAW.js} +4 -4
- package/dist/{schema-6I5OFR4Z.js.map → schema-FNNWEAAW.js.map} +1 -1
- package/dist/{sqlite-adapter-CSIZE5SX.cjs → sqlite-adapter-AQB5TCGV.cjs} +3 -3
- package/dist/{sqlite-adapter-CSIZE5SX.cjs.map → sqlite-adapter-AQB5TCGV.cjs.map} +1 -1
- package/dist/sqlite-adapter-N5H6IM2X.js +4 -0
- package/dist/{sqlite-adapter-6GEUSVXQ.js.map → sqlite-adapter-N5H6IM2X.js.map} +1 -1
- package/dist/templates/index.cjs +49 -49
- package/dist/templates/index.d.cts +2 -2
- package/dist/templates/index.d.ts +2 -2
- package/dist/templates/index.js +2 -2
- package/dist/trpc/index.cjs +11 -11
- package/dist/trpc/index.d.cts +3 -3
- package/dist/trpc/index.d.ts +3 -3
- package/dist/trpc/index.js +2 -2
- package/dist/{types-Z6FBiqa2.d.cts → types-DeSApf9T.d.cts} +1 -0
- package/dist/{types-Z6FBiqa2.d.ts → types-DeSApf9T.d.ts} +1 -0
- package/dist/{types-CyCQ6SAI.d.ts → types-Dgzlftb7.d.ts} +6 -28
- package/dist/{types-DJxD9394.d.cts → types-Ds0tCA3L.d.cts} +6 -28
- package/dist/ws/index.cjs +6 -6
- package/dist/ws/index.js +2 -2
- package/package.json +1 -1
- package/dist/bootstrap-5NLASFOG.cjs +0 -32
- package/dist/bootstrap-T5BK77LD.js +0 -7
- package/dist/chunk-22M4O4ZJ.js.map +0 -1
- package/dist/chunk-2HZRBATX.cjs.map +0 -1
- package/dist/chunk-3TPQ2BU6.js.map +0 -1
- package/dist/chunk-5EPFQUQD.js.map +0 -1
- package/dist/chunk-AL5KX63J.js.map +0 -1
- package/dist/chunk-C36TMDTY.cjs.map +0 -1
- package/dist/chunk-COIASRDK.cjs.map +0 -1
- package/dist/chunk-DEVFAKCQ.cjs.map +0 -1
- package/dist/chunk-DVD5P72E.cjs.map +0 -1
- package/dist/chunk-DYTZ6FQ7.js.map +0 -1
- package/dist/chunk-EJN2PAOE.js.map +0 -1
- package/dist/chunk-FAXU7BMP.js.map +0 -1
- package/dist/chunk-FOPGUM27.js.map +0 -1
- package/dist/chunk-JOPVMWTM.cjs.map +0 -1
- package/dist/chunk-KNRSROWB.cjs.map +0 -1
- package/dist/chunk-KPA4AN4R.js.map +0 -1
- package/dist/chunk-PI73NNOK.cjs.map +0 -1
- package/dist/chunk-PU2Z5VWF.js.map +0 -1
- package/dist/chunk-ROJHKAQ4.cjs.map +0 -1
- package/dist/chunk-RSF3UU7H.cjs.map +0 -1
- package/dist/chunk-TXSZFA4G.js.map +0 -1
- package/dist/chunk-V2TVSCV5.cjs.map +0 -1
- package/dist/chunk-VO35MNPH.js.map +0 -1
- package/dist/chunk-WNCYAKF3.cjs.map +0 -1
- package/dist/media-GPPTZ43E.js +0 -4
- package/dist/mongo-auth-adapter-MO6STCV3.js +0 -4
- package/dist/postgres-auth-adapter-DWDR7P5G.js +0 -5
- package/dist/postgres-auth-adapter-WRWSJD4E.cjs +0 -14
- package/dist/redis-adapter-HGTPWIGV.js +0 -4
- package/dist/sqlite-adapter-6GEUSVXQ.js +0 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as hono from 'hono';
|
|
2
2
|
import * as hono_types from 'hono/types';
|
|
3
|
-
import { S as StorageProvider, R as Registry } from './index-
|
|
4
|
-
export { C as ConfigService, E as EmailConfig, a as StorageConfig, c as createRegistry, g as getRegistry, r as resetRegistry, b as resolveProvider } from './index-
|
|
5
|
-
import { B as BaseAdapter, K as KyroConfig,
|
|
6
|
-
export {
|
|
3
|
+
import { S as StorageProvider, R as Registry } from './index-BKta3cBH.cjs';
|
|
4
|
+
export { C as ConfigService, E as EmailConfig, a as StorageConfig, c as createRegistry, g as getRegistry, r as resetRegistry, b as resolveProvider } from './index-BKta3cBH.cjs';
|
|
5
|
+
import { B as BaseAdapter, K as KyroConfig, i as User, R as Request$1, C as CollectionConfig, G as GlobalConfig, F as FindArgs, b as FindResult, c as FindByIDArgs, d as CreateArgs, e as UpdateArgs, D as DeleteArgs, f as FindVersionsArgs, g as VersionRecord, h as CreateVersionArgs, H as Hook } from './types-Ds0tCA3L.cjs';
|
|
6
|
+
export { j as AccessArgs, k as AccessControl, l as AdapterConfig, A as AdminConfig, a as AuthConfig, m as CollectionAccess, n as CollectionHooks, o as CreateResult, p as FieldAccess, q as FieldHooks, r as GlobalAccess, s as GlobalHooks, t as HookArgs, I as ImageSize, P as PluginConfig, U as UploadConfig, V as VersionConfig, W as WhereClause, u as evaluateAccess, v as getWhereClause, w as mergeWhereClauses, x as runFieldHooks, y as runHooks } from './types-Ds0tCA3L.cjs';
|
|
7
7
|
import { KyroPubSub, KyroWSServer } from './ws/index.cjs';
|
|
8
8
|
export { PubSub, createWSServer } from './ws/index.cjs';
|
|
9
|
-
import { W as WebhookPayload, a as WebhookDelivery, b as WebhookConfig, c as WebhookService } from './WebhookService-
|
|
10
|
-
export { A as ALL_WEBHOOK_EVENTS, C as CreateWebhookData, U as UpdateWebhookData, d as WEBHOOK_COLLECTION, e as WEBHOOK_DELIVERY_COLLECTION, f as WEBHOOK_EVENTS, g as WebhookEvent, h as WebhookTriggerResult, i as createWebhookService } from './WebhookService-
|
|
11
|
-
import { F as Field } from './types-
|
|
12
|
-
export { r as ALL_FIELD_TYPES, A as ArrayField, B as BaseField, a as Block, d as BlocksField, s as COMPLEX_FIELD_TYPES, C as CheckboxField, e as CodeField, f as CollapsibleField, g as ColorField, D as DateField, E as EmailField, i as FieldAdmin, j as FieldType, G as GroupField, I as ImageField, J as JSONField, L as LAYOUT_FIELD_TYPES, 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, o as SelectField, T as TabsField, p as TextField, q as TextareaField, U as UploadField, V as ValidateOptions, 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-
|
|
9
|
+
import { W as WebhookPayload, a as WebhookDelivery, b as WebhookConfig, c as WebhookService } from './WebhookService-BKszZlG0.cjs';
|
|
10
|
+
export { A as ALL_WEBHOOK_EVENTS, C as CreateWebhookData, U as UpdateWebhookData, d as WEBHOOK_COLLECTION, e as WEBHOOK_DELIVERY_COLLECTION, f as WEBHOOK_EVENTS, g as WebhookEvent, h as WebhookTriggerResult, i as createWebhookService } from './WebhookService-BKszZlG0.cjs';
|
|
11
|
+
import { F as Field } from './types-DeSApf9T.cjs';
|
|
12
|
+
export { r as ALL_FIELD_TYPES, A as ArrayField, B as BaseField, a as Block, d as BlocksField, s as COMPLEX_FIELD_TYPES, C as CheckboxField, e as CodeField, f as CollapsibleField, g as ColorField, D as DateField, E as EmailField, i as FieldAdmin, j as FieldType, G as GroupField, I as ImageField, J as JSONField, L as LAYOUT_FIELD_TYPES, 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, o as SelectField, T as TabsField, p as TextField, q as TextareaField, U as UploadField, V as ValidateOptions, 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';
|
|
13
13
|
import { ZodTypeAny } from 'zod';
|
|
14
14
|
export { z } from 'zod';
|
|
15
15
|
export { normalizeRichTextValue, renderRichText, richTextStyles } from './fields/index.cjs';
|
|
16
|
-
import { A as AbstractBaseAdapter } from './base-
|
|
16
|
+
import { A as AbstractBaseAdapter } from './base-CIuXkrH4.cjs';
|
|
17
17
|
import { Dialect } from './drizzle/index.cjs';
|
|
18
18
|
export { DrizzleAdapter, PostgresAuthAdapter, collectionToDrizzleSchema, createDatabase, createDrizzleAdapter, fieldToDrizzleType, runMigrations, seedDefaultRoles } from './drizzle/index.cjs';
|
|
19
19
|
export { MongoDBAdapter, MongoDBAuthAdapter, createMongoDBAdapter } from './mongodb/index.cjs';
|
|
@@ -184,7 +184,6 @@ declare class LocalAdapter extends AbstractBaseAdapter {
|
|
|
184
184
|
private db;
|
|
185
185
|
private path?;
|
|
186
186
|
private migrations;
|
|
187
|
-
private readonly draftsTableName;
|
|
188
187
|
private readonly versionsTableName;
|
|
189
188
|
constructor(options: {
|
|
190
189
|
db?: any;
|
|
@@ -194,7 +193,6 @@ declare class LocalAdapter extends AbstractBaseAdapter {
|
|
|
194
193
|
disconnect(): Promise<void>;
|
|
195
194
|
private ensureTable;
|
|
196
195
|
private ensureVersionsTable;
|
|
197
|
-
private ensureDraftsTable;
|
|
198
196
|
private col;
|
|
199
197
|
private fieldToSQL;
|
|
200
198
|
private parseGlobalsSlug;
|
|
@@ -221,6 +219,7 @@ declare class LocalAdapter extends AbstractBaseAdapter {
|
|
|
221
219
|
tenantID?: string;
|
|
222
220
|
}): Promise<VersionRecord | null>;
|
|
223
221
|
createVersion<T = Record<string, any>>(args: CreateVersionArgs<T>): Promise<VersionRecord<T>>;
|
|
222
|
+
updateLatestVersion<T = Record<string, any>>(args: CreateVersionArgs<T>): Promise<VersionRecord<T>>;
|
|
224
223
|
deleteVersions(args: {
|
|
225
224
|
collection: string;
|
|
226
225
|
documentId: string;
|
|
@@ -228,15 +227,11 @@ declare class LocalAdapter extends AbstractBaseAdapter {
|
|
|
228
227
|
tenantID?: string;
|
|
229
228
|
}): Promise<void>;
|
|
230
229
|
private rowToVersion;
|
|
231
|
-
findDraft<T>(args: DraftFindArgs): Promise<DraftSnapshot<T> | null>;
|
|
232
|
-
upsertDraft<T>(args: DraftUpsertArgs<T>): Promise<DraftSnapshot<T>>;
|
|
233
|
-
deleteDraft(args: DraftDeleteArgs): Promise<void>;
|
|
234
230
|
protected prepareData(data: Record<string, any>, config: CollectionConfig | GlobalConfig): Record<string, any>;
|
|
235
231
|
private rowToDoc;
|
|
236
232
|
private generateId;
|
|
237
233
|
private getMediaById;
|
|
238
234
|
private getTableNameFor;
|
|
239
|
-
private rowToDraft;
|
|
240
235
|
migrate(): Promise<void>;
|
|
241
236
|
rollback(): Promise<void>;
|
|
242
237
|
transaction<T>(fn: (tx: any) => Promise<T>): Promise<T>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as hono from 'hono';
|
|
2
2
|
import * as hono_types from 'hono/types';
|
|
3
|
-
import { S as StorageProvider, R as Registry } from './index-
|
|
4
|
-
export { C as ConfigService, E as EmailConfig, a as StorageConfig, c as createRegistry, g as getRegistry, r as resetRegistry, b as resolveProvider } from './index-
|
|
5
|
-
import { B as BaseAdapter, K as KyroConfig,
|
|
6
|
-
export {
|
|
3
|
+
import { S as StorageProvider, R as Registry } from './index-ClOqnkTO.js';
|
|
4
|
+
export { C as ConfigService, E as EmailConfig, a as StorageConfig, c as createRegistry, g as getRegistry, r as resetRegistry, b as resolveProvider } from './index-ClOqnkTO.js';
|
|
5
|
+
import { B as BaseAdapter, K as KyroConfig, i as User, R as Request$1, C as CollectionConfig, G as GlobalConfig, F as FindArgs, b as FindResult, c as FindByIDArgs, d as CreateArgs, e as UpdateArgs, D as DeleteArgs, f as FindVersionsArgs, g as VersionRecord, h as CreateVersionArgs, H as Hook } from './types-Dgzlftb7.js';
|
|
6
|
+
export { j as AccessArgs, k as AccessControl, l as AdapterConfig, A as AdminConfig, a as AuthConfig, m as CollectionAccess, n as CollectionHooks, o as CreateResult, p as FieldAccess, q as FieldHooks, r as GlobalAccess, s as GlobalHooks, t as HookArgs, I as ImageSize, P as PluginConfig, U as UploadConfig, V as VersionConfig, W as WhereClause, u as evaluateAccess, v as getWhereClause, w as mergeWhereClauses, x as runFieldHooks, y as runHooks } from './types-Dgzlftb7.js';
|
|
7
7
|
import { KyroPubSub, KyroWSServer } from './ws/index.js';
|
|
8
8
|
export { PubSub, createWSServer } from './ws/index.js';
|
|
9
|
-
import { W as WebhookPayload, a as WebhookDelivery, b as WebhookConfig, c as WebhookService } from './WebhookService-
|
|
10
|
-
export { A as ALL_WEBHOOK_EVENTS, C as CreateWebhookData, U as UpdateWebhookData, d as WEBHOOK_COLLECTION, e as WEBHOOK_DELIVERY_COLLECTION, f as WEBHOOK_EVENTS, g as WebhookEvent, h as WebhookTriggerResult, i as createWebhookService } from './WebhookService-
|
|
11
|
-
import { F as Field } from './types-
|
|
12
|
-
export { r as ALL_FIELD_TYPES, A as ArrayField, B as BaseField, a as Block, d as BlocksField, s as COMPLEX_FIELD_TYPES, C as CheckboxField, e as CodeField, f as CollapsibleField, g as ColorField, D as DateField, E as EmailField, i as FieldAdmin, j as FieldType, G as GroupField, I as ImageField, J as JSONField, L as LAYOUT_FIELD_TYPES, 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, o as SelectField, T as TabsField, p as TextField, q as TextareaField, U as UploadField, V as ValidateOptions, 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-
|
|
9
|
+
import { W as WebhookPayload, a as WebhookDelivery, b as WebhookConfig, c as WebhookService } from './WebhookService-Ccf1j-IN.js';
|
|
10
|
+
export { A as ALL_WEBHOOK_EVENTS, C as CreateWebhookData, U as UpdateWebhookData, d as WEBHOOK_COLLECTION, e as WEBHOOK_DELIVERY_COLLECTION, f as WEBHOOK_EVENTS, g as WebhookEvent, h as WebhookTriggerResult, i as createWebhookService } from './WebhookService-Ccf1j-IN.js';
|
|
11
|
+
import { F as Field } from './types-DeSApf9T.js';
|
|
12
|
+
export { r as ALL_FIELD_TYPES, A as ArrayField, B as BaseField, a as Block, d as BlocksField, s as COMPLEX_FIELD_TYPES, C as CheckboxField, e as CodeField, f as CollapsibleField, g as ColorField, D as DateField, E as EmailField, i as FieldAdmin, j as FieldType, G as GroupField, I as ImageField, J as JSONField, L as LAYOUT_FIELD_TYPES, 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, o as SelectField, T as TabsField, p as TextField, q as TextareaField, U as UploadField, V as ValidateOptions, 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';
|
|
13
13
|
import { ZodTypeAny } from 'zod';
|
|
14
14
|
export { z } from 'zod';
|
|
15
15
|
export { normalizeRichTextValue, renderRichText, richTextStyles } from './fields/index.js';
|
|
16
|
-
import { A as AbstractBaseAdapter } from './base-
|
|
16
|
+
import { A as AbstractBaseAdapter } from './base-fFo4lqER.js';
|
|
17
17
|
import { Dialect } from './drizzle/index.js';
|
|
18
18
|
export { DrizzleAdapter, PostgresAuthAdapter, collectionToDrizzleSchema, createDatabase, createDrizzleAdapter, fieldToDrizzleType, runMigrations, seedDefaultRoles } from './drizzle/index.js';
|
|
19
19
|
export { MongoDBAdapter, MongoDBAuthAdapter, createMongoDBAdapter } from './mongodb/index.js';
|
|
@@ -184,7 +184,6 @@ declare class LocalAdapter extends AbstractBaseAdapter {
|
|
|
184
184
|
private db;
|
|
185
185
|
private path?;
|
|
186
186
|
private migrations;
|
|
187
|
-
private readonly draftsTableName;
|
|
188
187
|
private readonly versionsTableName;
|
|
189
188
|
constructor(options: {
|
|
190
189
|
db?: any;
|
|
@@ -194,7 +193,6 @@ declare class LocalAdapter extends AbstractBaseAdapter {
|
|
|
194
193
|
disconnect(): Promise<void>;
|
|
195
194
|
private ensureTable;
|
|
196
195
|
private ensureVersionsTable;
|
|
197
|
-
private ensureDraftsTable;
|
|
198
196
|
private col;
|
|
199
197
|
private fieldToSQL;
|
|
200
198
|
private parseGlobalsSlug;
|
|
@@ -221,6 +219,7 @@ declare class LocalAdapter extends AbstractBaseAdapter {
|
|
|
221
219
|
tenantID?: string;
|
|
222
220
|
}): Promise<VersionRecord | null>;
|
|
223
221
|
createVersion<T = Record<string, any>>(args: CreateVersionArgs<T>): Promise<VersionRecord<T>>;
|
|
222
|
+
updateLatestVersion<T = Record<string, any>>(args: CreateVersionArgs<T>): Promise<VersionRecord<T>>;
|
|
224
223
|
deleteVersions(args: {
|
|
225
224
|
collection: string;
|
|
226
225
|
documentId: string;
|
|
@@ -228,15 +227,11 @@ declare class LocalAdapter extends AbstractBaseAdapter {
|
|
|
228
227
|
tenantID?: string;
|
|
229
228
|
}): Promise<void>;
|
|
230
229
|
private rowToVersion;
|
|
231
|
-
findDraft<T>(args: DraftFindArgs): Promise<DraftSnapshot<T> | null>;
|
|
232
|
-
upsertDraft<T>(args: DraftUpsertArgs<T>): Promise<DraftSnapshot<T>>;
|
|
233
|
-
deleteDraft(args: DraftDeleteArgs): Promise<void>;
|
|
234
230
|
protected prepareData(data: Record<string, any>, config: CollectionConfig | GlobalConfig): Record<string, any>;
|
|
235
231
|
private rowToDoc;
|
|
236
232
|
private generateId;
|
|
237
233
|
private getMediaById;
|
|
238
234
|
private getTableNameFor;
|
|
239
|
-
private rowToDraft;
|
|
240
235
|
migrate(): Promise<void>;
|
|
241
236
|
rollback(): Promise<void>;
|
|
242
237
|
transaction<T>(fn: (tx: any) => Promise<T>): Promise<T>;
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export { RedisAuthAdapter } from './chunk-CF7OL6HR.js';
|
|
2
|
-
export { allSettingsGlobals, blogCollections, blogGlobals, coreSettingsGlobals, createTemplateConfig, ecommerceCollections, ecommerceGlobals, kitchenSinkCollections, mediaCollections, minimalCollections, templateCollections } from './chunk-
|
|
2
|
+
export { allSettingsGlobals, blogCollections, blogGlobals, coreSettingsGlobals, createTemplateConfig, ecommerceCollections, ecommerceGlobals, kitchenSinkCollections, mediaCollections, minimalCollections, templateCollections } from './chunk-53NYVYVX.js';
|
|
3
3
|
export { kyro } from './chunk-4AO3A3JM.js';
|
|
4
|
-
export { ConfigValidationError, Kyro, LocalAdapter, Registry, collectionToCreateZod, collectionToUpdateZod, collectionToWhereZod, collectionToZod, createKyro, createLocalAdapter, createRegistry, fieldToZod, getRegistry, globalToZod, resetRegistry, validateCollection, validateConfig, validateFields, validateGlobal } from './chunk-
|
|
5
|
-
export { autoBootstrap, bootstrapAdmin, bootstrapWithRetry, getBootstrapFromEnv } from './chunk-
|
|
4
|
+
export { ConfigValidationError, Kyro, LocalAdapter, Registry, collectionToCreateZod, collectionToUpdateZod, collectionToWhereZod, collectionToZod, createKyro, createLocalAdapter, createRegistry, fieldToZod, getRegistry, globalToZod, resetRegistry, validateCollection, validateConfig, validateFields, validateGlobal } from './chunk-5H3MWQJS.js';
|
|
5
|
+
export { autoBootstrap, bootstrapAdmin, bootstrapWithRetry, getBootstrapFromEnv } from './chunk-GAAHG2Z4.js';
|
|
6
6
|
import './chunk-GAOXD3XT.js';
|
|
7
7
|
export { CSSGenerator, createAdminStyling, defaultDarkTheme, defaultFieldStyling, defaultLightTheme, ecommerce2026Theme, generateCSSVariables, generateTailwindConfig } from './chunk-2HFJUUFZ.js';
|
|
8
|
-
export { ALL_FIELD_TYPES, COMPLEX_FIELD_TYPES, LAYOUT_FIELD_TYPES, PRIMITIVE_FIELD_TYPES, RELATIONAL_FIELD_TYPES, isArrayField, isBlocksField, isGroupField, isImageField, isLayoutField, isNumberField, isRelationshipField, isRichTextField, isSelectField, isTextField, isUploadField, normalizeRichTextValue, renderRichText, richTextStyles } from './chunk-
|
|
9
|
-
export { createContext, createCountProcedure, createCreateProcedure, createDeleteProcedure, createDynamicRouter, createFindByIDProcedure, createFindProcedure, createKyroServer, createUpdateProcedure } from './chunk-
|
|
8
|
+
export { ALL_FIELD_TYPES, COMPLEX_FIELD_TYPES, LAYOUT_FIELD_TYPES, PRIMITIVE_FIELD_TYPES, RELATIONAL_FIELD_TYPES, isArrayField, isBlocksField, isGroupField, isImageField, isLayoutField, isNumberField, isRelationshipField, isRichTextField, isSelectField, isTextField, isUploadField, normalizeRichTextValue, renderRichText, richTextStyles } from './chunk-E5UJBLQ7.js';
|
|
9
|
+
export { createContext, createCountProcedure, createCreateProcedure, createDeleteProcedure, createDynamicRouter, createFindByIDProcedure, createFindProcedure, createKyroServer, createUpdateProcedure } from './chunk-OHC6UHFY.js';
|
|
10
10
|
export { buildGraphQLSchema, createGraphQLSchema } from './chunk-L5UKKZQN.js';
|
|
11
|
-
import { init_secret, AuditLogger, InMemoryRateLimiter, InMemoryAuditLogger, AuthRoutes } from './chunk-
|
|
12
|
-
export { AuditLogger, InMemoryAuditLogger, InMemoryRateLimiter, MediaService, createAuditContext, createHonoApp, createLocalStorage, createRESTAPI, getAppSecret, getEncryptionKey, getSessionConfig, loadSecrets, resolveProvider, setDbAdapter } from './chunk-
|
|
13
|
-
import { EmailTransport, PasswordPolicy } from './chunk-
|
|
14
|
-
export { ConfigService, EmailTransport, PasswordPolicy } from './chunk-
|
|
11
|
+
import { init_secret, AuditLogger, InMemoryRateLimiter, InMemoryAuditLogger, AuthRoutes } from './chunk-IPTZM3VE.js';
|
|
12
|
+
export { AuditLogger, InMemoryAuditLogger, InMemoryRateLimiter, MediaService, createAuditContext, createHonoApp, createLocalStorage, createRESTAPI, getAppSecret, getEncryptionKey, getSessionConfig, loadSecrets, resolveProvider, setDbAdapter } from './chunk-IPTZM3VE.js';
|
|
13
|
+
import { EmailTransport, PasswordPolicy } from './chunk-6UNONDW7.js';
|
|
14
|
+
export { ConfigService, EmailTransport, PasswordPolicy } from './chunk-6UNONDW7.js';
|
|
15
15
|
import './chunk-YT7HXXVN.js';
|
|
16
16
|
import './chunk-XEB7PH2E.js';
|
|
17
17
|
import { SQLiteAuthAdapter } from './chunk-Q72BOAPK.js';
|
|
@@ -19,19 +19,19 @@ export { SQLiteAuthAdapter } from './chunk-Q72BOAPK.js';
|
|
|
19
19
|
import './chunk-P2YW545G.js';
|
|
20
20
|
export { ALL_WEBHOOK_EVENTS, WEBHOOK_COLLECTION, WEBHOOK_DELIVERY_COLLECTION, WEBHOOK_EVENTS, WebhookService, buildDeliveryRecord, createTestPayload, createWebhookService, deliverWebhook, deliverWithRetry, generateWebhookSecret, signPayload } from './chunk-3UK5XBVJ.js';
|
|
21
21
|
export { evaluateAccess, getWhereClause, mergeWhereClauses } from './chunk-CJONKRHJ.js';
|
|
22
|
-
export { KyroPubSub, KyroWSServer, PubSub, createWSServer } from './chunk-
|
|
22
|
+
export { KyroPubSub, KyroWSServer, PubSub, createWSServer } from './chunk-BYBMTIMT.js';
|
|
23
23
|
import './chunk-QU2RFFH4.js';
|
|
24
|
-
export { DrizzleAdapter, collectionToDrizzleSchema, createDatabase, createDrizzleAdapter, fieldToDrizzleType, runMigrations, seedDefaultRoles } from './chunk-
|
|
25
|
-
import { PostgresAuthAdapter } from './chunk-
|
|
26
|
-
export { PostgresAuthAdapter } from './chunk-
|
|
27
|
-
import './chunk-
|
|
24
|
+
export { DrizzleAdapter, collectionToDrizzleSchema, createDatabase, createDrizzleAdapter, fieldToDrizzleType, runMigrations, seedDefaultRoles } from './chunk-V7KZQIZ6.js';
|
|
25
|
+
import { PostgresAuthAdapter } from './chunk-CJX74IYK.js';
|
|
26
|
+
export { PostgresAuthAdapter } from './chunk-CJX74IYK.js';
|
|
27
|
+
import './chunk-UUDTPZX6.js';
|
|
28
28
|
import './chunk-GTGRLD4Y.js';
|
|
29
|
-
export { MongoDBAdapter, createMongoDBAdapter } from './chunk-
|
|
29
|
+
export { MongoDBAdapter, createMongoDBAdapter } from './chunk-PQ72Z6WC.js';
|
|
30
30
|
import { MongoDBAuthAdapter } from './chunk-7OGPN7MP.js';
|
|
31
31
|
export { MongoDBAuthAdapter } from './chunk-7OGPN7MP.js';
|
|
32
|
-
export { AbstractBaseAdapter } from './chunk-
|
|
32
|
+
export { AbstractBaseAdapter } from './chunk-WXVB364T.js';
|
|
33
33
|
import './chunk-L4EZKIEX.js';
|
|
34
|
-
import './chunk-
|
|
34
|
+
import './chunk-4CV4JOE5.js';
|
|
35
35
|
import crypto2, { randomBytes } from 'crypto';
|
|
36
36
|
import { readFileSync } from 'fs';
|
|
37
37
|
import path, { join, resolve } from 'path';
|
|
@@ -1090,7 +1090,7 @@ async function createAuthConfig(databaseType, db) {
|
|
|
1090
1090
|
const distributed = getEnvBool("KYRO_DISTRIBUTED", false);
|
|
1091
1091
|
let authAdapter;
|
|
1092
1092
|
if (distributed) {
|
|
1093
|
-
const { RedisAuthAdapter: RedisAuthAdapter2 } = await import('./redis-adapter-
|
|
1093
|
+
const { RedisAuthAdapter: RedisAuthAdapter2 } = await import('./redis-adapter-XALOGWY3.js');
|
|
1094
1094
|
const redisUrl = getEnv("REDIS_URL", "redis://localhost:6379");
|
|
1095
1095
|
const redisTls = getEnvBool("REDIS_TLS", false);
|
|
1096
1096
|
const redisAdapter = new RedisAuthAdapter2({ url: redisUrl, tls: redisTls });
|
package/dist/integration.cjs
CHANGED
package/dist/integration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"media-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"media-7WDX4BDJ.js"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkCKVOU6MX_cjs = require('./chunk-CKVOU6MX.cjs');
|
|
4
|
-
require('./chunk-
|
|
4
|
+
require('./chunk-CZLDE2OZ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -13,5 +13,5 @@ Object.defineProperty(exports, "mediaFolders", {
|
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function () { return chunkCKVOU6MX_cjs.mediaFolders; }
|
|
15
15
|
});
|
|
16
|
-
//# sourceMappingURL=media-
|
|
17
|
-
//# sourceMappingURL=media-
|
|
16
|
+
//# sourceMappingURL=media-TUSLVRQ6.cjs.map
|
|
17
|
+
//# sourceMappingURL=media-TUSLVRQ6.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"media-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"media-TUSLVRQ6.cjs"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkGXFOGU7N_cjs = require('./chunk-GXFOGU7N.cjs');
|
|
4
|
-
require('./chunk-
|
|
4
|
+
require('./chunk-CZLDE2OZ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -13,5 +13,5 @@ Object.defineProperty(exports, "createMongoDBAuthAdapter", {
|
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function () { return chunkGXFOGU7N_cjs.createMongoDBAuthAdapter; }
|
|
15
15
|
});
|
|
16
|
-
//# sourceMappingURL=mongo-auth-adapter-
|
|
17
|
-
//# sourceMappingURL=mongo-auth-adapter-
|
|
16
|
+
//# sourceMappingURL=mongo-auth-adapter-GT4S7SCU.cjs.map
|
|
17
|
+
//# sourceMappingURL=mongo-auth-adapter-GT4S7SCU.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"mongo-auth-adapter-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"mongo-auth-adapter-GT4S7SCU.cjs"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"mongo-auth-adapter-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"mongo-auth-adapter-M7VV4LNB.js"}
|
package/dist/mongodb/index.cjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-MTIRYI7F.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkQ23GAMLE_cjs = require('../chunk-Q23GAMLE.cjs');
|
|
5
5
|
var chunkGXFOGU7N_cjs = require('../chunk-GXFOGU7N.cjs');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-GUUB5EAG.cjs');
|
|
7
7
|
require('../chunk-NKPKR5BW.cjs');
|
|
8
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-CZLDE2OZ.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "MongoDBAdapter", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkQ23GAMLE_cjs.MongoDBAdapter; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "createMongoDBAdapter", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkQ23GAMLE_cjs.createMongoDBAdapter; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "MongoDBAuthAdapter", {
|
|
21
21
|
enumerable: true,
|
package/dist/mongodb/index.d.cts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { A as AbstractBaseAdapter } from '../base-
|
|
2
|
-
import { F as FindArgs, b as FindResult, c as FindByIDArgs, d as CreateArgs, e as UpdateArgs, D as DeleteArgs, f as FindVersionsArgs, g as VersionRecord, h as CreateVersionArgs
|
|
1
|
+
import { A as AbstractBaseAdapter } from '../base-CIuXkrH4.cjs';
|
|
2
|
+
import { F as FindArgs, b as FindResult, c as FindByIDArgs, d as CreateArgs, e as UpdateArgs, D as DeleteArgs, f as FindVersionsArgs, g as VersionRecord, h as CreateVersionArgs } from '../types-Ds0tCA3L.cjs';
|
|
3
3
|
import { A as AuthAdapter, U as UserRole, c as AuthUser, S as Session, e as AuditLogFilter, d as AuditLog } from '../types-CpjuXbe7.cjs';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-DeSApf9T.cjs';
|
|
5
5
|
|
|
6
6
|
declare class MongoDBAdapter extends AbstractBaseAdapter {
|
|
7
7
|
client: any;
|
|
8
8
|
db: any;
|
|
9
9
|
private database;
|
|
10
10
|
private connectionString?;
|
|
11
|
-
private readonly draftsCollectionName;
|
|
12
11
|
constructor(options: {
|
|
13
12
|
client?: any;
|
|
14
13
|
database?: string;
|
|
@@ -40,20 +39,16 @@ declare class MongoDBAdapter extends AbstractBaseAdapter {
|
|
|
40
39
|
tenantID?: string;
|
|
41
40
|
}): Promise<VersionRecord | null>;
|
|
42
41
|
createVersion<T = Record<string, any>>(args: CreateVersionArgs<T>): Promise<VersionRecord<T>>;
|
|
42
|
+
updateLatestVersion<T = Record<string, any>>(args: CreateVersionArgs<T>): Promise<VersionRecord<T>>;
|
|
43
43
|
deleteVersions(args: {
|
|
44
44
|
collection: string;
|
|
45
45
|
documentId: string;
|
|
46
46
|
keepLatest?: number;
|
|
47
47
|
tenantID?: string;
|
|
48
48
|
}): Promise<void>;
|
|
49
|
-
findDraft<T>(args: DraftFindArgs): Promise<DraftSnapshot<T> | null>;
|
|
50
|
-
upsertDraft<T>(args: DraftUpsertArgs<T>): Promise<DraftSnapshot<T>>;
|
|
51
|
-
deleteDraft(args: DraftDeleteArgs): Promise<void>;
|
|
52
49
|
migrate?(): Promise<void>;
|
|
53
50
|
private getCollectionConfig;
|
|
54
51
|
private buildFilter;
|
|
55
|
-
private getDraftId;
|
|
56
|
-
private docToDraft;
|
|
57
52
|
private buildProjection;
|
|
58
53
|
private processResult;
|
|
59
54
|
private generateId;
|
package/dist/mongodb/index.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { A as AbstractBaseAdapter } from '../base-
|
|
2
|
-
import { F as FindArgs, b as FindResult, c as FindByIDArgs, d as CreateArgs, e as UpdateArgs, D as DeleteArgs, f as FindVersionsArgs, g as VersionRecord, h as CreateVersionArgs
|
|
1
|
+
import { A as AbstractBaseAdapter } from '../base-fFo4lqER.js';
|
|
2
|
+
import { F as FindArgs, b as FindResult, c as FindByIDArgs, d as CreateArgs, e as UpdateArgs, D as DeleteArgs, f as FindVersionsArgs, g as VersionRecord, h as CreateVersionArgs } from '../types-Dgzlftb7.js';
|
|
3
3
|
import { A as AuthAdapter, U as UserRole, c as AuthUser, S as Session, e as AuditLogFilter, d as AuditLog } from '../types-CpjuXbe7.js';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-DeSApf9T.js';
|
|
5
5
|
|
|
6
6
|
declare class MongoDBAdapter extends AbstractBaseAdapter {
|
|
7
7
|
client: any;
|
|
8
8
|
db: any;
|
|
9
9
|
private database;
|
|
10
10
|
private connectionString?;
|
|
11
|
-
private readonly draftsCollectionName;
|
|
12
11
|
constructor(options: {
|
|
13
12
|
client?: any;
|
|
14
13
|
database?: string;
|
|
@@ -40,20 +39,16 @@ declare class MongoDBAdapter extends AbstractBaseAdapter {
|
|
|
40
39
|
tenantID?: string;
|
|
41
40
|
}): Promise<VersionRecord | null>;
|
|
42
41
|
createVersion<T = Record<string, any>>(args: CreateVersionArgs<T>): Promise<VersionRecord<T>>;
|
|
42
|
+
updateLatestVersion<T = Record<string, any>>(args: CreateVersionArgs<T>): Promise<VersionRecord<T>>;
|
|
43
43
|
deleteVersions(args: {
|
|
44
44
|
collection: string;
|
|
45
45
|
documentId: string;
|
|
46
46
|
keepLatest?: number;
|
|
47
47
|
tenantID?: string;
|
|
48
48
|
}): Promise<void>;
|
|
49
|
-
findDraft<T>(args: DraftFindArgs): Promise<DraftSnapshot<T> | null>;
|
|
50
|
-
upsertDraft<T>(args: DraftUpsertArgs<T>): Promise<DraftSnapshot<T>>;
|
|
51
|
-
deleteDraft(args: DraftDeleteArgs): Promise<void>;
|
|
52
49
|
migrate?(): Promise<void>;
|
|
53
50
|
private getCollectionConfig;
|
|
54
51
|
private buildFilter;
|
|
55
|
-
private getDraftId;
|
|
56
|
-
private docToDraft;
|
|
57
52
|
private buildProjection;
|
|
58
53
|
private processResult;
|
|
59
54
|
private generateId;
|
package/dist/mongodb/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../chunk-GTGRLD4Y.js';
|
|
2
|
-
export { MongoDBAdapter, createMongoDBAdapter } from '../chunk-
|
|
2
|
+
export { MongoDBAdapter, createMongoDBAdapter } from '../chunk-PQ72Z6WC.js';
|
|
3
3
|
export { MongoDBAuthAdapter, createMongoDBAuthAdapter } from '../chunk-7OGPN7MP.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-WXVB364T.js';
|
|
5
5
|
import '../chunk-L4EZKIEX.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-4CV4JOE5.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
package/dist/{postgres-auth-adapter-DWDR7P5G.js.map → postgres-auth-adapter-AFAPISH7.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"postgres-auth-adapter-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"postgres-auth-adapter-AFAPISH7.js"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk7OS7TX2Q_cjs = require('./chunk-7OS7TX2Q.cjs');
|
|
4
|
+
require('./chunk-DPA3KWPY.cjs');
|
|
5
|
+
require('./chunk-CZLDE2OZ.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "PostgresAuthAdapter", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunk7OS7TX2Q_cjs.PostgresAuthAdapter; }
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=postgres-auth-adapter-SFDTLONT.cjs.map
|
|
14
|
+
//# sourceMappingURL=postgres-auth-adapter-SFDTLONT.cjs.map
|
package/dist/{postgres-auth-adapter-WRWSJD4E.cjs.map → postgres-auth-adapter-SFDTLONT.cjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"postgres-auth-adapter-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"postgres-auth-adapter-SFDTLONT.cjs"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkSHTTJMLT_cjs = require('./chunk-SHTTJMLT.cjs');
|
|
4
|
-
require('./chunk-
|
|
4
|
+
require('./chunk-CZLDE2OZ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -9,5 +9,5 @@ Object.defineProperty(exports, "RedisAuthAdapter", {
|
|
|
9
9
|
enumerable: true,
|
|
10
10
|
get: function () { return chunkSHTTJMLT_cjs.RedisAuthAdapter; }
|
|
11
11
|
});
|
|
12
|
-
//# sourceMappingURL=redis-adapter-
|
|
13
|
-
//# sourceMappingURL=redis-adapter-
|
|
12
|
+
//# sourceMappingURL=redis-adapter-UQX4EE3B.cjs.map
|
|
13
|
+
//# sourceMappingURL=redis-adapter-UQX4EE3B.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"redis-adapter-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"redis-adapter-UQX4EE3B.cjs"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"redis-adapter-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"redis-adapter-XALOGWY3.js"}
|
package/dist/rest/index.cjs
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkCNKT4PME_cjs = require('../chunk-CNKT4PME.cjs');
|
|
4
|
+
require('../chunk-Y7AQK4R4.cjs');
|
|
5
5
|
require('../chunk-4PWRCMTQ.cjs');
|
|
6
6
|
require('../chunk-KC2GDBLS.cjs');
|
|
7
7
|
require('../chunk-IDVRRRAK.cjs');
|
|
8
8
|
require('../chunk-ADLJSJSN.cjs');
|
|
9
9
|
require('../chunk-QFLB4EIJ.cjs');
|
|
10
10
|
require('../chunk-4M7X5HAB.cjs');
|
|
11
|
-
require('../chunk-
|
|
12
|
-
require('../chunk-
|
|
13
|
-
require('../chunk-
|
|
14
|
-
require('../chunk-
|
|
11
|
+
require('../chunk-RFFSZSCL.cjs');
|
|
12
|
+
require('../chunk-7OS7TX2Q.cjs');
|
|
13
|
+
require('../chunk-DPA3KWPY.cjs');
|
|
14
|
+
require('../chunk-Q23GAMLE.cjs');
|
|
15
15
|
require('../chunk-GXFOGU7N.cjs');
|
|
16
|
-
require('../chunk-
|
|
16
|
+
require('../chunk-GUUB5EAG.cjs');
|
|
17
17
|
require('../chunk-NKPKR5BW.cjs');
|
|
18
|
-
require('../chunk-
|
|
18
|
+
require('../chunk-CZLDE2OZ.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
Object.defineProperty(exports, "createHonoApp", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkCNKT4PME_cjs.createHonoApp; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "createRESTAPI", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkCNKT4PME_cjs.createRESTAPI; }
|
|
29
29
|
});
|
|
30
30
|
//# sourceMappingURL=index.cjs.map
|
|
31
31
|
//# sourceMappingURL=index.cjs.map
|
package/dist/rest/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Hono } from 'hono';
|
|
2
|
-
import { B as BaseAdapter,
|
|
3
|
-
import { R as Registry } from '../index-
|
|
4
|
-
import { i as createWebhookService } from '../WebhookService-
|
|
5
|
-
import '../types-
|
|
2
|
+
import { B as BaseAdapter, i as User } from '../types-Ds0tCA3L.cjs';
|
|
3
|
+
import { R as Registry } from '../index-BKta3cBH.cjs';
|
|
4
|
+
import { i as createWebhookService } from '../WebhookService-BKszZlG0.cjs';
|
|
5
|
+
import '../types-DeSApf9T.cjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
|
8
8
|
interface HonoAppOptions {
|
package/dist/rest/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Hono } from 'hono';
|
|
2
|
-
import { B as BaseAdapter,
|
|
3
|
-
import { R as Registry } from '../index-
|
|
4
|
-
import { i as createWebhookService } from '../WebhookService-
|
|
5
|
-
import '../types-
|
|
2
|
+
import { B as BaseAdapter, i as User } from '../types-Dgzlftb7.js';
|
|
3
|
+
import { R as Registry } from '../index-ClOqnkTO.js';
|
|
4
|
+
import { i as createWebhookService } from '../WebhookService-Ccf1j-IN.js';
|
|
5
|
+
import '../types-DeSApf9T.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
|
8
8
|
interface HonoAppOptions {
|
package/dist/rest/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { createHonoApp, createRESTAPI } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { createHonoApp, createRESTAPI } from '../chunk-IPTZM3VE.js';
|
|
2
|
+
import '../chunk-6UNONDW7.js';
|
|
3
3
|
import '../chunk-YT7HXXVN.js';
|
|
4
4
|
import '../chunk-XEB7PH2E.js';
|
|
5
5
|
import '../chunk-Q72BOAPK.js';
|
|
6
6
|
import '../chunk-P2YW545G.js';
|
|
7
7
|
import '../chunk-3UK5XBVJ.js';
|
|
8
8
|
import '../chunk-CJONKRHJ.js';
|
|
9
|
-
import '../chunk-
|
|
10
|
-
import '../chunk-
|
|
11
|
-
import '../chunk-
|
|
12
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-V7KZQIZ6.js';
|
|
10
|
+
import '../chunk-CJX74IYK.js';
|
|
11
|
+
import '../chunk-UUDTPZX6.js';
|
|
12
|
+
import '../chunk-PQ72Z6WC.js';
|
|
13
13
|
import '../chunk-7OGPN7MP.js';
|
|
14
|
-
import '../chunk-
|
|
14
|
+
import '../chunk-WXVB364T.js';
|
|
15
15
|
import '../chunk-L4EZKIEX.js';
|
|
16
|
-
import '../chunk-
|
|
16
|
+
import '../chunk-4CV4JOE5.js';
|
|
17
17
|
//# sourceMappingURL=index.js.map
|
|
18
18
|
//# sourceMappingURL=index.js.map
|