@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/index.d.cts
CHANGED
|
@@ -1,37 +1,42 @@
|
|
|
1
|
-
import { KyroRouter } from './trpc/index.cjs';
|
|
2
|
-
export { createContext, createCountProcedure, createCreateProcedure, createDeleteProcedure, createDynamicRouter, createFindByIDProcedure, createFindProcedure, createKyroServer, createUpdateProcedure } from './trpc/index.cjs';
|
|
3
|
-
import * as graphql from 'graphql';
|
|
4
1
|
import * as hono from 'hono';
|
|
5
2
|
import * as hono_types from 'hono/types';
|
|
6
|
-
import { R as Registry } from './index-
|
|
7
|
-
export { c as createRegistry, g as getRegistry, r as resetRegistry } from './index-
|
|
8
|
-
import { B as BaseAdapter, K as KyroConfig,
|
|
9
|
-
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';
|
|
10
7
|
import { KyroPubSub, KyroWSServer } from './ws/index.cjs';
|
|
11
8
|
export { PubSub, createWSServer } from './ws/index.cjs';
|
|
12
|
-
import { W as WebhookPayload, a as WebhookDelivery, b as WebhookConfig, c as WebhookService } from './WebhookService-
|
|
13
|
-
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-
|
|
14
|
-
import { F as Field } from './types-
|
|
15
|
-
export {
|
|
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';
|
|
16
13
|
import { ZodTypeAny } from 'zod';
|
|
17
14
|
export { z } from 'zod';
|
|
18
|
-
export {
|
|
19
|
-
import { A as AbstractBaseAdapter
|
|
15
|
+
export { normalizeRichTextValue, renderRichText, richTextStyles } from './fields/index.cjs';
|
|
16
|
+
import { A as AbstractBaseAdapter } from './base-CIuXkrH4.cjs';
|
|
20
17
|
import { Dialect } from './drizzle/index.cjs';
|
|
21
18
|
export { DrizzleAdapter, PostgresAuthAdapter, collectionToDrizzleSchema, createDatabase, createDrizzleAdapter, fieldToDrizzleType, runMigrations, seedDefaultRoles } from './drizzle/index.cjs';
|
|
22
19
|
export { MongoDBAdapter, MongoDBAuthAdapter, createMongoDBAdapter } from './mongodb/index.cjs';
|
|
20
|
+
export { createContext, createCountProcedure, createCreateProcedure, createDeleteProcedure, createDynamicRouter, createFindByIDProcedure, createFindProcedure, createKyroServer, createUpdateProcedure } from './trpc/index.cjs';
|
|
23
21
|
export { buildGraphQLSchema, createGraphQLSchema } from './graphql/index.cjs';
|
|
24
22
|
export { createHonoApp, createRESTAPI } from './rest/index.cjs';
|
|
25
23
|
export { A as AdminStylingConfig, C as CSSGenerator, F as FieldStyling, S as StylingConfig, a as StylingMode, T as ThemeBorderRadius, b as ThemeColors, c as ThemeConfig, d as ThemeFonts, e as ThemeShadows, f as ThemeSpacing, g as createAdminStyling, h as defaultDarkTheme, i as defaultFieldStyling, j as defaultLightTheme, k as ecommerce2026Theme, l as generateCSSVariables, m as generateTailwindConfig } from './index-Bz9JqRGI.cjs';
|
|
26
|
-
import { d as AuditLog, e as AuditLogFilter, A as AuthAdapter, U as UserRole, c as AuthUser, S as Session, b as AuthTokenConfig, R as RegisterData, a as AuthResult, L as LoginCredentials, J as JWTPayload } from './types-
|
|
27
|
-
export { f as AuditAction } from './types-
|
|
28
|
-
export { TemplateConfig, allSettingsGlobals, blogCollections, blogGlobals, coreSettingsGlobals, createTemplateConfig, ecommerceCollections, ecommerceGlobals, kitchenSinkCollections, mediaCollections, minimalCollections } from './templates/index.cjs';
|
|
24
|
+
import { d as AuditLog, e as AuditLogFilter, A as AuthAdapter, U as UserRole, c as AuthUser, S as Session, b as AuthTokenConfig, R as RegisterData, a as AuthResult, L as LoginCredentials, J as JWTPayload } from './types-CpjuXbe7.cjs';
|
|
25
|
+
export { f as AuditAction } from './types-CpjuXbe7.cjs';
|
|
26
|
+
export { TemplateConfig, allSettingsGlobals, blogCollections, blogGlobals, coreSettingsGlobals, createTemplateConfig, ecommerceCollections, ecommerceGlobals, kitchenSinkCollections, mediaCollections, minimalCollections, templateCollections } from './templates/index.cjs';
|
|
29
27
|
export { default as kyro } from './integration.cjs';
|
|
30
28
|
import { Redis } from 'ioredis';
|
|
31
29
|
import 'ws';
|
|
32
30
|
import 'drizzle-orm/postgres-js';
|
|
31
|
+
import 'graphql';
|
|
33
32
|
import 'astro';
|
|
34
33
|
|
|
34
|
+
interface LocalStorageConfig {
|
|
35
|
+
uploadDir: string;
|
|
36
|
+
baseUrl?: string;
|
|
37
|
+
}
|
|
38
|
+
declare function createLocalStorage(config: LocalStorageConfig): StorageProvider;
|
|
39
|
+
|
|
35
40
|
interface DeliveryResult {
|
|
36
41
|
success: boolean;
|
|
37
42
|
status: number;
|
|
@@ -98,6 +103,7 @@ declare class Kyro {
|
|
|
98
103
|
constructor(config: KyroConfig);
|
|
99
104
|
init(): Promise<void>;
|
|
100
105
|
loadSettings(): Promise<Record<string, any>>;
|
|
106
|
+
loadPluginState(): Promise<void>;
|
|
101
107
|
getREST(options?: {
|
|
102
108
|
user?: User;
|
|
103
109
|
req?: Request$1;
|
|
@@ -107,12 +113,19 @@ declare class Kyro {
|
|
|
107
113
|
user?: User;
|
|
108
114
|
req?: Request$1;
|
|
109
115
|
tenantID?: string;
|
|
110
|
-
}):
|
|
116
|
+
}): {
|
|
117
|
+
fetch: (request: any, locals?: any) => Promise<Response>;
|
|
118
|
+
schema: any;
|
|
119
|
+
};
|
|
111
120
|
getTRPC(options?: {
|
|
112
121
|
user?: User;
|
|
113
122
|
req?: Request$1;
|
|
114
123
|
tenantID?: string;
|
|
115
|
-
}):
|
|
124
|
+
}): {
|
|
125
|
+
fetch: (request: any, locals?: any) => Promise<Response>;
|
|
126
|
+
router: any;
|
|
127
|
+
};
|
|
128
|
+
getWS(): KyroWSServer | undefined;
|
|
116
129
|
startWebSocket(options?: {
|
|
117
130
|
port?: number;
|
|
118
131
|
requireAuth?: boolean;
|
|
@@ -171,11 +184,7 @@ declare class LocalAdapter extends AbstractBaseAdapter {
|
|
|
171
184
|
private db;
|
|
172
185
|
private path?;
|
|
173
186
|
private migrations;
|
|
174
|
-
private readonly draftsTableName;
|
|
175
187
|
private readonly versionsTableName;
|
|
176
|
-
private tenantContext?;
|
|
177
|
-
setTenantContext(context: TenantContext | undefined): void;
|
|
178
|
-
getTenantContext(): TenantContext | undefined;
|
|
179
188
|
constructor(options: {
|
|
180
189
|
db?: any;
|
|
181
190
|
path?: string;
|
|
@@ -184,7 +193,6 @@ declare class LocalAdapter extends AbstractBaseAdapter {
|
|
|
184
193
|
disconnect(): Promise<void>;
|
|
185
194
|
private ensureTable;
|
|
186
195
|
private ensureVersionsTable;
|
|
187
|
-
private ensureDraftsTable;
|
|
188
196
|
private col;
|
|
189
197
|
private fieldToSQL;
|
|
190
198
|
private parseGlobalsSlug;
|
|
@@ -211,6 +219,7 @@ declare class LocalAdapter extends AbstractBaseAdapter {
|
|
|
211
219
|
tenantID?: string;
|
|
212
220
|
}): Promise<VersionRecord | null>;
|
|
213
221
|
createVersion<T = Record<string, any>>(args: CreateVersionArgs<T>): Promise<VersionRecord<T>>;
|
|
222
|
+
updateLatestVersion<T = Record<string, any>>(args: CreateVersionArgs<T>): Promise<VersionRecord<T>>;
|
|
214
223
|
deleteVersions(args: {
|
|
215
224
|
collection: string;
|
|
216
225
|
documentId: string;
|
|
@@ -218,15 +227,11 @@ declare class LocalAdapter extends AbstractBaseAdapter {
|
|
|
218
227
|
tenantID?: string;
|
|
219
228
|
}): Promise<void>;
|
|
220
229
|
private rowToVersion;
|
|
221
|
-
findDraft<T>(args: DraftFindArgs): Promise<DraftSnapshot<T> | null>;
|
|
222
|
-
upsertDraft<T>(args: DraftUpsertArgs<T>): Promise<DraftSnapshot<T>>;
|
|
223
|
-
deleteDraft(args: DraftDeleteArgs): Promise<void>;
|
|
224
230
|
protected prepareData(data: Record<string, any>, config: CollectionConfig | GlobalConfig): Record<string, any>;
|
|
225
231
|
private rowToDoc;
|
|
226
232
|
private generateId;
|
|
227
233
|
private getMediaById;
|
|
228
234
|
private getTableNameFor;
|
|
229
|
-
private rowToDraft;
|
|
230
235
|
migrate(): Promise<void>;
|
|
231
236
|
rollback(): Promise<void>;
|
|
232
237
|
transaction<T>(fn: (tx: any) => Promise<T>): Promise<T>;
|
|
@@ -436,7 +441,7 @@ declare class RedisAuthAdapter implements AuthAdapter {
|
|
|
436
441
|
createAuditLog(data: any): Promise<any>;
|
|
437
442
|
}
|
|
438
443
|
|
|
439
|
-
interface EmailConfig
|
|
444
|
+
interface EmailConfig {
|
|
440
445
|
provider: "smtp" | "resend" | "sendgrid" | "mailgun" | "ses";
|
|
441
446
|
from: string;
|
|
442
447
|
fromName?: string;
|
|
@@ -511,7 +516,7 @@ declare class EmailTransport {
|
|
|
511
516
|
private config;
|
|
512
517
|
private templates;
|
|
513
518
|
private transporterInitialized;
|
|
514
|
-
constructor(config: EmailConfig
|
|
519
|
+
constructor(config: EmailConfig, templates?: Partial<EmailTemplates>);
|
|
515
520
|
private ensureTransporter;
|
|
516
521
|
send(options: EmailOptions): Promise<any>;
|
|
517
522
|
private sendViaResend;
|
|
@@ -530,7 +535,7 @@ interface BootstrapConfig {
|
|
|
530
535
|
adminPassword: string;
|
|
531
536
|
adminRole?: string;
|
|
532
537
|
tenantId?: string;
|
|
533
|
-
emailConfig?: EmailConfig
|
|
538
|
+
emailConfig?: EmailConfig;
|
|
534
539
|
sendWelcomeEmail?: boolean;
|
|
535
540
|
}
|
|
536
541
|
interface BootstrapResult {
|
|
@@ -763,7 +768,7 @@ interface KyroAuthConfig {
|
|
|
763
768
|
auditLogger?: InMemoryAuditLogger;
|
|
764
769
|
routes: AuthRoutes;
|
|
765
770
|
}
|
|
766
|
-
declare function createAuthConfig(databaseType?: string): Promise<KyroAuthConfig>;
|
|
771
|
+
declare function createAuthConfig(databaseType?: string, db?: any): Promise<KyroAuthConfig>;
|
|
767
772
|
declare const authConfig: Promise<any>;
|
|
768
773
|
|
|
769
774
|
declare class InMemoryAuthAdapter implements AuthAdapter {
|
|
@@ -910,6 +915,7 @@ declare class SQLiteAuthAdapter implements AuthAdapter {
|
|
|
910
915
|
password: string;
|
|
911
916
|
name?: string;
|
|
912
917
|
role?: UserRole;
|
|
918
|
+
avatar?: string;
|
|
913
919
|
tenantId?: string;
|
|
914
920
|
}): Promise<AuthUser>;
|
|
915
921
|
findUserByEmail(email: string): Promise<AuthUser | null>;
|
|
@@ -1111,185 +1117,6 @@ declare function isPublished(status: VersionStatus): boolean;
|
|
|
1111
1117
|
declare function isDraft(status: VersionStatus): boolean;
|
|
1112
1118
|
declare function isArchived(status: VersionStatus): boolean;
|
|
1113
1119
|
|
|
1114
|
-
interface S3CompatibleConfig {
|
|
1115
|
-
bucket?: string;
|
|
1116
|
-
region?: string;
|
|
1117
|
-
accessKeyId?: string;
|
|
1118
|
-
secretAccessKey?: string;
|
|
1119
|
-
endpoint?: string;
|
|
1120
|
-
cdnUrl?: string;
|
|
1121
|
-
prefix?: string;
|
|
1122
|
-
}
|
|
1123
|
-
interface R2Config {
|
|
1124
|
-
accountId?: string;
|
|
1125
|
-
accessKeyId?: string;
|
|
1126
|
-
secretAccessKey?: string;
|
|
1127
|
-
bucket?: string;
|
|
1128
|
-
cdnUrl?: string;
|
|
1129
|
-
prefix?: string;
|
|
1130
|
-
publicDevUrl?: string;
|
|
1131
|
-
}
|
|
1132
|
-
interface GCSConfig {
|
|
1133
|
-
bucket?: string;
|
|
1134
|
-
projectId?: string;
|
|
1135
|
-
clientEmail?: string;
|
|
1136
|
-
privateKey?: string;
|
|
1137
|
-
cdnUrl?: string;
|
|
1138
|
-
prefix?: string;
|
|
1139
|
-
}
|
|
1140
|
-
interface BackblazeConfig {
|
|
1141
|
-
bucket?: string;
|
|
1142
|
-
accountId?: string;
|
|
1143
|
-
applicationKeyId?: string;
|
|
1144
|
-
applicationKey?: string;
|
|
1145
|
-
cdnUrl?: string;
|
|
1146
|
-
prefix?: string;
|
|
1147
|
-
}
|
|
1148
|
-
interface BunnyConfig {
|
|
1149
|
-
storageZone?: string;
|
|
1150
|
-
apiKey?: string;
|
|
1151
|
-
cdnUrl?: string;
|
|
1152
|
-
prefix?: string;
|
|
1153
|
-
}
|
|
1154
|
-
interface FTPConfig {
|
|
1155
|
-
host?: string;
|
|
1156
|
-
port?: number;
|
|
1157
|
-
user?: string;
|
|
1158
|
-
password?: string;
|
|
1159
|
-
secure?: boolean;
|
|
1160
|
-
baseUrl?: string;
|
|
1161
|
-
prefix?: string;
|
|
1162
|
-
}
|
|
1163
|
-
interface StorageConfig$1 {
|
|
1164
|
-
type: string;
|
|
1165
|
-
s3: S3CompatibleConfig;
|
|
1166
|
-
r2: R2Config;
|
|
1167
|
-
gcs: GCSConfig;
|
|
1168
|
-
digitalocean: S3CompatibleConfig;
|
|
1169
|
-
backblaze: BackblazeConfig;
|
|
1170
|
-
wasabi: S3CompatibleConfig;
|
|
1171
|
-
bunny: BunnyConfig;
|
|
1172
|
-
ftp: FTPConfig;
|
|
1173
|
-
cloudinary: {
|
|
1174
|
-
cloudName?: string;
|
|
1175
|
-
apiKey?: string;
|
|
1176
|
-
apiSecret?: string;
|
|
1177
|
-
folder?: string;
|
|
1178
|
-
};
|
|
1179
|
-
imgix: {
|
|
1180
|
-
domain?: string;
|
|
1181
|
-
signKey?: string;
|
|
1182
|
-
};
|
|
1183
|
-
local: {
|
|
1184
|
-
uploadDir?: string;
|
|
1185
|
-
baseUrl?: string;
|
|
1186
|
-
};
|
|
1187
|
-
}
|
|
1188
|
-
interface EmailConfig {
|
|
1189
|
-
provider?: string;
|
|
1190
|
-
host?: string;
|
|
1191
|
-
port?: number;
|
|
1192
|
-
secure?: boolean;
|
|
1193
|
-
user?: string;
|
|
1194
|
-
pass?: string;
|
|
1195
|
-
from?: string;
|
|
1196
|
-
fromName?: string;
|
|
1197
|
-
replyTo?: string;
|
|
1198
|
-
}
|
|
1199
|
-
declare class ConfigService {
|
|
1200
|
-
private db;
|
|
1201
|
-
private cache;
|
|
1202
|
-
private static readonly SENSITIVE_KEYS;
|
|
1203
|
-
constructor(db: any);
|
|
1204
|
-
/**
|
|
1205
|
-
* Initialize the service by loading all settings from the database
|
|
1206
|
-
*/
|
|
1207
|
-
load(): Promise<void>;
|
|
1208
|
-
private ensureSettingsTable;
|
|
1209
|
-
/**
|
|
1210
|
-
* Load settings from the _globals_storage-settings table (SQLite fallback)
|
|
1211
|
-
* Maps nested global structure to flat key-value cache
|
|
1212
|
-
*/
|
|
1213
|
-
private loadFromGlobals;
|
|
1214
|
-
/**
|
|
1215
|
-
* Get a settings value with environment fallback
|
|
1216
|
-
*/
|
|
1217
|
-
get(key: string, envKey?: string, defaultValue?: string): string | undefined;
|
|
1218
|
-
/**
|
|
1219
|
-
* Get storage configuration
|
|
1220
|
-
*/
|
|
1221
|
-
getStorageConfig(): StorageConfig$1;
|
|
1222
|
-
/**
|
|
1223
|
-
* Get email configuration
|
|
1224
|
-
*/
|
|
1225
|
-
getEmailConfig(): EmailConfig;
|
|
1226
|
-
/**
|
|
1227
|
-
* Mask sensitive values for display
|
|
1228
|
-
*/
|
|
1229
|
-
maskSensitive(key: string, value: string | undefined): string | undefined;
|
|
1230
|
-
/**
|
|
1231
|
-
* Update a setting in the database
|
|
1232
|
-
*/
|
|
1233
|
-
set(key: string, value: string, description?: string): Promise<void>;
|
|
1234
|
-
}
|
|
1235
|
-
|
|
1236
|
-
interface LocalStorageConfig {
|
|
1237
|
-
uploadDir: string;
|
|
1238
|
-
baseUrl?: string;
|
|
1239
|
-
}
|
|
1240
|
-
declare function createLocalStorage(config: LocalStorageConfig): StorageProvider;
|
|
1241
|
-
|
|
1242
|
-
interface UploadOptions {
|
|
1243
|
-
folder?: string;
|
|
1244
|
-
filename?: string;
|
|
1245
|
-
mimeType?: string;
|
|
1246
|
-
metadata?: Record<string, unknown>;
|
|
1247
|
-
}
|
|
1248
|
-
interface UploadedFile {
|
|
1249
|
-
id: string;
|
|
1250
|
-
filename: string;
|
|
1251
|
-
originalName: string;
|
|
1252
|
-
mimeType: string;
|
|
1253
|
-
size: number;
|
|
1254
|
-
url: string;
|
|
1255
|
-
thumbnailUrl?: string;
|
|
1256
|
-
width?: number;
|
|
1257
|
-
height?: number;
|
|
1258
|
-
folder?: string;
|
|
1259
|
-
provider: string;
|
|
1260
|
-
metadata?: Record<string, unknown>;
|
|
1261
|
-
createdAt: string;
|
|
1262
|
-
}
|
|
1263
|
-
interface ImageTransforms {
|
|
1264
|
-
width?: number;
|
|
1265
|
-
height?: number;
|
|
1266
|
-
fit?: "clip" | "crop" | "fill" | "fillmax" | "scale" | "max" | "min";
|
|
1267
|
-
format?: "webp" | "avif" | "jpeg" | "jpg" | "png" | "gif";
|
|
1268
|
-
quality?: number;
|
|
1269
|
-
blur?: number;
|
|
1270
|
-
sharpen?: number;
|
|
1271
|
-
}
|
|
1272
|
-
interface StorageProvider {
|
|
1273
|
-
name: string;
|
|
1274
|
-
displayName: string;
|
|
1275
|
-
supportsDynamicResize: boolean;
|
|
1276
|
-
upload(file: File, options?: UploadOptions): Promise<UploadedFile>;
|
|
1277
|
-
uploadFromUrl(url: string, options?: UploadOptions): Promise<UploadedFile>;
|
|
1278
|
-
delete(url: string): Promise<void>;
|
|
1279
|
-
rename(oldUrl: string, newKey: string): Promise<string>;
|
|
1280
|
-
getImageUrl(url: string, transforms?: ImageTransforms): string;
|
|
1281
|
-
generateThumbnail(file: UploadedFile, size: {
|
|
1282
|
-
width: number;
|
|
1283
|
-
height: number;
|
|
1284
|
-
}): Promise<string>;
|
|
1285
|
-
list(prefix?: string): Promise<UploadedFile[]>;
|
|
1286
|
-
exists(url: string): Promise<boolean>;
|
|
1287
|
-
createFolder?(folder: string): Promise<void>;
|
|
1288
|
-
deleteFolder?(folder: string): Promise<void>;
|
|
1289
|
-
}
|
|
1290
|
-
|
|
1291
|
-
declare function resolveProvider(configService: ConfigService): Promise<StorageProvider>;
|
|
1292
|
-
|
|
1293
1120
|
interface MediaSearchParams {
|
|
1294
1121
|
page?: number;
|
|
1295
1122
|
limit?: number;
|
|
@@ -1382,9 +1209,11 @@ declare function defineConfig(config: {
|
|
|
1382
1209
|
rateLimit?: KyroConfig["rateLimit"];
|
|
1383
1210
|
debug?: KyroConfig["debug"];
|
|
1384
1211
|
}): KyroConfig;
|
|
1212
|
+
declare const defineKyroConfig: typeof defineConfig;
|
|
1385
1213
|
|
|
1386
1214
|
interface SeoTagsOptions {
|
|
1387
1215
|
siteSettings: any;
|
|
1216
|
+
seoSettings?: any;
|
|
1388
1217
|
title?: string;
|
|
1389
1218
|
description?: string;
|
|
1390
1219
|
image?: string;
|
|
@@ -1399,6 +1228,96 @@ declare function generateSeoTags(options: SeoTagsOptions): string;
|
|
|
1399
1228
|
*/
|
|
1400
1229
|
declare function generateAnalyticsTags(siteSettings: any): string;
|
|
1401
1230
|
|
|
1231
|
+
interface SocialLink {
|
|
1232
|
+
platform: string;
|
|
1233
|
+
url: string;
|
|
1234
|
+
label: string;
|
|
1235
|
+
}
|
|
1236
|
+
declare function getSocialLinksFromSettings(socialSettings: any): SocialLink[];
|
|
1237
|
+
declare function getSocialLinks(db: BaseAdapter, options?: {
|
|
1238
|
+
draft?: boolean;
|
|
1239
|
+
}): Promise<SocialLink[]>;
|
|
1240
|
+
|
|
1241
|
+
interface StoreConfig {
|
|
1242
|
+
storeName?: string;
|
|
1243
|
+
storeEmail?: string;
|
|
1244
|
+
storePhone?: string;
|
|
1245
|
+
address?: {
|
|
1246
|
+
street?: string;
|
|
1247
|
+
city?: string;
|
|
1248
|
+
state?: string;
|
|
1249
|
+
postalCode?: string;
|
|
1250
|
+
country?: string;
|
|
1251
|
+
};
|
|
1252
|
+
currency?: {
|
|
1253
|
+
code?: string;
|
|
1254
|
+
symbol?: string;
|
|
1255
|
+
position?: "before" | "after";
|
|
1256
|
+
decimals?: number;
|
|
1257
|
+
};
|
|
1258
|
+
tax?: {
|
|
1259
|
+
enabled?: boolean;
|
|
1260
|
+
rate?: number;
|
|
1261
|
+
includedInPrice?: boolean;
|
|
1262
|
+
taxId?: string;
|
|
1263
|
+
};
|
|
1264
|
+
shipping?: {
|
|
1265
|
+
enableLocalPickup?: boolean;
|
|
1266
|
+
flatRate?: number;
|
|
1267
|
+
freeShippingThreshold?: number;
|
|
1268
|
+
};
|
|
1269
|
+
orders?: {
|
|
1270
|
+
orderNumberPrefix?: string;
|
|
1271
|
+
allowGuestCheckout?: boolean;
|
|
1272
|
+
requirePhone?: boolean;
|
|
1273
|
+
};
|
|
1274
|
+
}
|
|
1275
|
+
declare function getStoreConfigFromSettings(settings: any): StoreConfig;
|
|
1276
|
+
declare function getStoreConfig(db: BaseAdapter, options?: {
|
|
1277
|
+
draft?: boolean;
|
|
1278
|
+
}): Promise<StoreConfig>;
|
|
1279
|
+
|
|
1280
|
+
interface PaymentConfig {
|
|
1281
|
+
testMode?: boolean;
|
|
1282
|
+
provider?: "stripe" | "paypal" | "square" | "manual";
|
|
1283
|
+
stripe?: {
|
|
1284
|
+
enabled?: boolean;
|
|
1285
|
+
publishableKey?: string;
|
|
1286
|
+
secretKey?: string;
|
|
1287
|
+
webhookSecret?: string;
|
|
1288
|
+
};
|
|
1289
|
+
paypal?: {
|
|
1290
|
+
enabled?: boolean;
|
|
1291
|
+
clientId?: string;
|
|
1292
|
+
clientSecret?: string;
|
|
1293
|
+
mode?: "sandbox" | "live";
|
|
1294
|
+
};
|
|
1295
|
+
square?: {
|
|
1296
|
+
enabled?: boolean;
|
|
1297
|
+
applicationId?: string;
|
|
1298
|
+
accessToken?: string;
|
|
1299
|
+
locationId?: string;
|
|
1300
|
+
};
|
|
1301
|
+
methods?: {
|
|
1302
|
+
cod?: boolean;
|
|
1303
|
+
bankTransfer?: boolean;
|
|
1304
|
+
cash?: boolean;
|
|
1305
|
+
check?: boolean;
|
|
1306
|
+
};
|
|
1307
|
+
bankTransfer?: {
|
|
1308
|
+
bankName?: string;
|
|
1309
|
+
accountName?: string;
|
|
1310
|
+
accountNumber?: string;
|
|
1311
|
+
routingNumber?: string;
|
|
1312
|
+
iban?: string;
|
|
1313
|
+
swift?: string;
|
|
1314
|
+
};
|
|
1315
|
+
}
|
|
1316
|
+
declare function getPaymentConfigFromSettings(settings: any): PaymentConfig;
|
|
1317
|
+
declare function getPaymentConfig(db: BaseAdapter, options?: {
|
|
1318
|
+
draft?: boolean;
|
|
1319
|
+
}): Promise<PaymentConfig>;
|
|
1320
|
+
|
|
1402
1321
|
type StorageAdapter = 'indexeddb' | 'fs' | 'redis' | 'sqlite' | 'postgres';
|
|
1403
1322
|
type Environment = 'browser' | 'node';
|
|
1404
1323
|
interface EncryptionConfig {
|
|
@@ -1443,4 +1362,4 @@ declare function getSessionConfig(): {
|
|
|
1443
1362
|
maxSessionsPerUser: number;
|
|
1444
1363
|
};
|
|
1445
1364
|
|
|
1446
|
-
export { AbstractBaseAdapter, AccountLockout, type AdapterOptions, AnalyticsPlugin, AuditLog, AuditLogFilter, AuditLogger, Auth, AuthAdapter, AuthResult, Session as AuthSession, AuthTokenConfig, AuthUser, BaseAdapter, CollectionConfig, CommentsPlugin, type CompareVersionsOptions,
|
|
1365
|
+
export { AbstractBaseAdapter, AccountLockout, type AdapterOptions, AnalyticsPlugin, AuditLog, AuditLogFilter, AuditLogger, Auth, AuthAdapter, AuthResult, Session as AuthSession, AuthTokenConfig, AuthUser, BaseAdapter, CollectionConfig, CommentsPlugin, type CompareVersionsOptions, ConfigValidationError, CreateArgs, type CreateStorageResult, type CreateVersionOptions, type DatabaseConnectionOptions, type DatabaseType, type DatabaseType$1 as DbAdapterType, DeleteArgs, type DeliveryOptions, type DeliveryResult, Dialect, type DraftPublishConfig, type DrizzleAdapterOptions, EmailTransport, type EncryptionConfig, type Environment, Field, FindArgs, FindByIDArgs, FindResult, GlobalConfig, Hook, InMemoryAccountLockout, InMemoryAuditLogger, InMemoryAuthAdapter, InMemoryRateLimiter, JWTPayload, Kyro, type KyroAuthConfig, KyroConfig, KyroPlugin, KyroPubSub, KyroWSServer, LocalAdapter, LoginCredentials, MediaService, type MongoDBAdapterOptions, PasswordPolicy, type PaymentConfig, type PluginAPI, type PluginHooks, PluginManager, type PublishVersionOptions, RateLimiter, RedisAuthAdapter, RegisterData, Registry, Request$1 as Request, ReviewsPlugin, SEOPLugin, SQLiteAuthAdapter, type SeoTagsOptions, Session, type SocialLink, type StorageAdapter, type StorageOptions, type StoreConfig, UpdateArgs, User, UserRole, type Version, type VersionAdapter, type VersionDiff, type VersionHistoryOptions, VersionManager, type VersionPublishSchedule, type VersionStatus, WebhookConfig, WebhookDelivery, WebhookPayload, WebhookService, WishlistPlugin, authConfig, autoBootstrap, bootstrapAdmin, bootstrapWithRetry, buildDeliveryRecord, collectionToCreateZod, collectionToUpdateZod, collectionToWhereZod, collectionToZod, createAuditContext, createAuth, createAuthConfig, createAuthStorage, createKyro, createLocalAdapter, createLocalStorage, createStorage, createTestPayload, createVersionManager, defineConfig, defineKyroConfig, deliverWebhook, deliverWithRetry, fieldToZod, generateAnalyticsTags, generateSeoTags, generateWebhookSecret, getAppSecret, getBootstrapFromEnv, getDefaultDraftPublishConfig, getEncryptionKey, getPaymentConfig, getPaymentConfigFromSettings, getSessionConfig, getSocialLinks, getSocialLinksFromSettings, getStoreConfig, getStoreConfigFromSettings, globalToZod, isArchived, isDraft, isPublished, loadSecrets, presetPlugins, setDbAdapter, signPayload, validateCollection, validateConfig, validateFields, validateGlobal };
|