@kyro-cms/core 0.13.2 → 0.13.5
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/dist/{WebhookService-BOJMgjBm.d.cts → WebhookService-BJTCP3cU.d.cts} +1 -1
- package/dist/{WebhookService-BLi5Rz2m.d.ts → WebhookService-Bqr_66lK.d.ts} +1 -1
- package/dist/api-handler-graphql.cjs +1 -1
- package/dist/api-handler-graphql.js +1 -1
- package/dist/api-handler-trpc.cjs +1 -1
- package/dist/api-handler-trpc.js +1 -1
- package/dist/api-handler.cjs +1 -1
- package/dist/api-handler.js +1 -1
- package/dist/{base-OYfoYPYP.d.ts → base-A9AJPCG5.d.ts} +1 -0
- package/dist/{base-BCgFt3Yx.d.ts → base-C2DOe8wD.d.ts} +3 -2
- package/dist/{base-BaOJ5uWd.d.cts → base-C6wyX2nC.d.cts} +1 -0
- package/dist/{base-B-i-tjm1.d.ts → base-DIpT2Vuz.d.cts} +3 -2
- package/dist/{bootstrap-QQ6D3OYG.js → bootstrap-PG2LGDLB.js} +1 -1
- package/dist/bootstrap-YD3GLTWX.cjs +1 -0
- package/dist/chunk-2SPWRQ5O.js +122 -0
- package/dist/chunk-2TYITUOC.js +122 -0
- package/dist/{chunk-GV2IB4WQ.cjs → chunk-3CIMGC2F.cjs} +3 -3
- package/dist/{chunk-S5HTTLN7.cjs → chunk-4NTIK6DF.cjs} +1 -1
- package/dist/chunk-6E44MQQ5.js +115 -0
- package/dist/{chunk-PTPVFLET.js → chunk-6LWF5MPL.js} +1 -1
- package/dist/chunk-6YS6XLOD.cjs +121 -0
- package/dist/{chunk-2OS5Y4LE.cjs → chunk-7KLEANTO.cjs} +1 -1
- package/dist/{chunk-3GXLOYM3.js → chunk-ALTU3FDG.js} +1 -1
- package/dist/{chunk-OPTVCCQQ.cjs → chunk-EQN3HDES.cjs} +7 -6
- package/dist/{chunk-3O3AVMWM.cjs → chunk-EW424IBO.cjs} +1 -1
- package/dist/{chunk-JZ7Z6WC2.cjs → chunk-GTR7JAKP.cjs} +2 -2
- package/dist/{chunk-M75VGFCI.js → chunk-HPIJI7TM.js} +1 -1
- package/dist/chunk-J6V573PE.cjs +1 -0
- package/dist/{chunk-3LAWUINR.cjs → chunk-LKRI5X2V.cjs} +1 -1
- package/dist/{chunk-6MNLRAKM.cjs → chunk-NRE6VKL6.cjs} +12 -12
- package/dist/{chunk-MYHNTJLR.cjs → chunk-OOVNTOZC.cjs} +6 -6
- package/dist/{chunk-SMQ6736Y.js → chunk-PYUWSKKP.js} +1 -1
- package/dist/{chunk-XBQ6HV3T.cjs → chunk-QYN6C3FZ.cjs} +4 -4
- package/dist/{chunk-ATI2UZ7U.js → chunk-RYXLEFS5.js} +1 -1
- package/dist/{chunk-E4H3ZZ7U.js → chunk-SRIXRJHL.js} +1 -1
- package/dist/chunk-V4FAL7AG.js +2 -0
- package/dist/{chunk-6DD4J7LI.js → chunk-WAVGRSE6.js} +1 -1
- package/dist/{chunk-N6MNQIQU.js → chunk-WNU76M2C.js} +7 -6
- package/dist/chunk-XDQVYCIR.cjs +1 -0
- package/dist/{chunk-K5XGP57D.cjs → chunk-XOR64WUQ.cjs} +1 -1
- package/dist/chunk-YGI5W4RS.js +2 -0
- package/dist/{chunk-I6UJVO2P.js → chunk-YIFKTA5N.js} +6 -6
- package/dist/cli/index.cjs +86 -86
- package/dist/cli/index.js +87 -87
- package/dist/client.d.cts +26 -0
- package/dist/client.d.ts +26 -0
- package/dist/drizzle/index.cjs +1 -1
- package/dist/drizzle/index.d.cts +3 -3
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/drizzle/index.js +1 -1
- package/dist/fields/index.d.cts +2 -2
- package/dist/fields/index.d.ts +2 -2
- package/dist/graphql/index.d.cts +3 -3
- package/dist/graphql/index.d.ts +3 -3
- package/dist/{index-BttsFZDa.d.ts → index-C9uBoJtm.d.ts} +2 -2
- package/dist/{index-8Ino7vKq.d.ts → index-Ci7aUrmN.d.cts} +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +13 -10
- package/dist/index.d.ts +13 -10
- package/dist/index.js +4 -4
- package/dist/{local-DPLKZQA3.js → local-6UUGBZ4M.js} +1 -1
- package/dist/{local-KR3AIGVA.cjs → local-ZYHV3J2K.cjs} +1 -1
- package/dist/{mongo-auth-adapter-EUHAYWJ6.cjs → mongo-auth-adapter-2H2AXDRH.cjs} +1 -1
- package/dist/{mongo-auth-adapter-FW7ATYQ6.js → mongo-auth-adapter-YWMEOC42.js} +1 -1
- package/dist/mongodb/index.cjs +1 -1
- package/dist/mongodb/index.d.cts +3 -3
- package/dist/mongodb/index.d.ts +3 -3
- package/dist/mongodb/index.js +1 -1
- package/dist/{postgres-auth-adapter-SK3N3OSS.js → postgres-auth-adapter-QKBNXVPT.js} +1 -1
- package/dist/{postgres-auth-adapter-ZO6HK5AK.cjs → postgres-auth-adapter-WMLM4UUC.cjs} +1 -1
- package/dist/{redis-adapter-EGMUN65D.cjs → redis-adapter-EVK2SMKH.cjs} +1 -1
- package/dist/{redis-adapter-QPCTMF55.js → redis-adapter-LY2NBSAG.js} +1 -1
- package/dist/rest/index.cjs +1 -1
- package/dist/rest/index.d.cts +4 -4
- package/dist/rest/index.d.ts +4 -4
- package/dist/rest/index.js +1 -1
- package/dist/{sqlite-adapter-MNNZZXGX.cjs → sqlite-adapter-KPSISY6E.cjs} +1 -1
- package/dist/{sqlite-adapter-52PL52VU.js → sqlite-adapter-PI6SIY7O.js} +1 -1
- package/dist/templates/index.cjs +1 -1
- package/dist/templates/index.d.cts +2 -2
- package/dist/templates/index.d.ts +2 -2
- package/dist/templates/index.js +1 -1
- package/dist/trpc/index.d.cts +3 -3
- package/dist/trpc/index.d.ts +3 -3
- package/dist/{types-Bii0bhUV.d.ts → types-C3QFX0l6.d.cts} +5 -0
- package/dist/{types-B9oXBEKI.d.cts → types-C3QFX0l6.d.ts} +5 -1
- package/dist/{types-Cdssrcbz.d.cts → types-CKWnrUAh.d.ts} +23 -2
- package/dist/{types-BRDBNacn.d.ts → types-CdwfDpyW.d.cts} +23 -2
- package/package.json +2 -2
- package/dist/WebhookService-BcuD8tnn.d.cts +0 -143
- package/dist/WebhookService-CFe6Zd0_.d.cts +0 -143
- package/dist/WebhookService-CVXmjbtQ.d.cts +0 -143
- package/dist/WebhookService-D5PSI5t6.d.cts +0 -143
- package/dist/WebhookService-DPCCn_12.d.ts +0 -143
- package/dist/WebhookService-Dk1lzSrG.d.cts +0 -143
- package/dist/WebhookService-Dncnbgm9.d.cts +0 -143
- package/dist/WebhookService-I6hdue2Y.d.ts +0 -143
- package/dist/WebhookService-KnQ2UDlW.d.ts +0 -143
- package/dist/WebhookService-UY5p89Bj.d.ts +0 -143
- package/dist/WebhookService-YZXBCRXA.d.ts +0 -143
- package/dist/WebhookService-fk0FGRlk.d.ts +0 -143
- package/dist/WebhookService-vsFnWrOh.d.ts +0 -143
- package/dist/WebhookService-zrDmAx7L.d.cts +0 -143
- package/dist/base-B--L0lCn.d.cts +0 -218
- package/dist/base-B-siit_y.d.cts +0 -218
- package/dist/base-B8SyZI4D.d.ts +0 -218
- package/dist/base-BHRGJ40F.d.cts +0 -218
- package/dist/base-BVoDPNjJ.d.cts +0 -218
- package/dist/base-BfPaVEAE.d.cts +0 -218
- package/dist/base-BxrX5EPU.d.cts +0 -218
- package/dist/base-CAb9EYQs.d.ts +0 -218
- package/dist/base-CcZIEll-.d.ts +0 -218
- package/dist/base-CyG7aF1e.d.cts +0 -218
- package/dist/base-DOImeJ-F.d.ts +0 -218
- package/dist/base-DbnwE42-.d.cts +0 -218
- package/dist/base-NyiSsD-n.d.ts +0 -218
- package/dist/base-xflndGDO.d.ts +0 -218
- package/dist/bootstrap-E24SGUJP.cjs +0 -1
- package/dist/bootstrap-QVKSKXJF.cjs +0 -1
- package/dist/bootstrap-RILR44UM.cjs +0 -1
- package/dist/bootstrap-YFVE7MRG.js +0 -1
- package/dist/bootstrap-ZRRUPRUR.js +0 -1
- package/dist/chunk-2FSOHXOU.cjs +0 -56
- package/dist/chunk-2PXXQKN3.cjs +0 -3
- package/dist/chunk-355R4LS5.cjs +0 -56
- package/dist/chunk-35IVNLMA.js +0 -122
- package/dist/chunk-3U6MKWET.cjs +0 -120
- package/dist/chunk-4YCI3HBD.js +0 -3
- package/dist/chunk-4ZWLNGLS.js +0 -2
- package/dist/chunk-5A7E7N4B.cjs +0 -431
- package/dist/chunk-5ZEYOFAK.js +0 -2
- package/dist/chunk-6GGPY7U2.js +0 -4
- package/dist/chunk-73Y63IPP.js +0 -57
- package/dist/chunk-7DUKWHRN.cjs +0 -1
- package/dist/chunk-7K6ZUNJM.js +0 -4
- package/dist/chunk-7LLCXY5O.cjs +0 -19
- package/dist/chunk-A35ZP72D.cjs +0 -132
- package/dist/chunk-A3IOQOV6.js +0 -2
- package/dist/chunk-A3XVL6ED.cjs +0 -3
- package/dist/chunk-APDQ6ZTG.cjs +0 -120
- package/dist/chunk-AWQGDMOE.js +0 -3
- package/dist/chunk-B3BSVEFC.cjs +0 -3
- package/dist/chunk-B4AC23SG.js +0 -122
- package/dist/chunk-BD6XHMMM.cjs +0 -2
- package/dist/chunk-CHYVUWZ3.js +0 -2
- package/dist/chunk-CIVA6SKW.js +0 -2
- package/dist/chunk-CNHUCCQJ.js +0 -121
- package/dist/chunk-CRP6PSCE.js +0 -2
- package/dist/chunk-DI6TCZSE.js +0 -122
- package/dist/chunk-DORUYZQV.cjs +0 -1
- package/dist/chunk-EFKEVWAD.js +0 -4
- package/dist/chunk-EI7FRSNY.js +0 -57
- package/dist/chunk-EON4XLKQ.cjs +0 -1
- package/dist/chunk-EUQAOYEO.cjs +0 -121
- package/dist/chunk-EVAUBT7H.js +0 -57
- package/dist/chunk-EYHD7HZE.cjs +0 -1
- package/dist/chunk-EYYIPA5N.js +0 -432
- package/dist/chunk-FBWLSWZ4.js +0 -122
- package/dist/chunk-FDKU7HJX.js +0 -2
- package/dist/chunk-FG3IFGJP.cjs +0 -1
- package/dist/chunk-FGN6IMPY.cjs +0 -3
- package/dist/chunk-FLS2FJM6.cjs +0 -431
- package/dist/chunk-FP5UK272.cjs +0 -1
- package/dist/chunk-FSL3NLRT.cjs +0 -2
- package/dist/chunk-FUFS65Q5.js +0 -133
- package/dist/chunk-GWIZT2P5.js +0 -57
- package/dist/chunk-H3FJ54KB.cjs +0 -121
- package/dist/chunk-HY3EAWB2.js +0 -4
- package/dist/chunk-IQSF6XRV.js +0 -57
- package/dist/chunk-IXGDTAES.js +0 -4
- package/dist/chunk-JCEJ4VTN.js +0 -20
- package/dist/chunk-LPFRMQFQ.js +0 -121
- package/dist/chunk-LYU44UNN.cjs +0 -56
- package/dist/chunk-MFNN5DYG.cjs +0 -1
- package/dist/chunk-MJAODEFC.cjs +0 -121
- package/dist/chunk-MSC4G2HF.cjs +0 -2
- package/dist/chunk-N2YHO2WI.cjs +0 -3
- package/dist/chunk-NPBXLPOP.js +0 -3
- package/dist/chunk-ON5XJEPO.cjs +0 -3
- package/dist/chunk-OT2Z4XBD.cjs +0 -1
- package/dist/chunk-PFKVHUOT.js +0 -432
- package/dist/chunk-PFTBTWSC.cjs +0 -1
- package/dist/chunk-PZDLPRJF.js +0 -4
- package/dist/chunk-QC4YXUBT.cjs +0 -383
- package/dist/chunk-QUTYCUST.js +0 -4
- package/dist/chunk-REKKBAQX.cjs +0 -56
- package/dist/chunk-RTNQP6BV.js +0 -2
- package/dist/chunk-RUJW47ZJ.js +0 -2
- package/dist/chunk-RXYCFZJC.cjs +0 -121
- package/dist/chunk-S2MZNEBQ.cjs +0 -1
- package/dist/chunk-S73YERS2.js +0 -57
- package/dist/chunk-T3DJ3UTP.cjs +0 -121
- package/dist/chunk-TJZO7ZSX.cjs +0 -3
- package/dist/chunk-TKUNRCRH.js +0 -4
- package/dist/chunk-TQLCOMKC.js +0 -4
- package/dist/chunk-TRXYDWGE.cjs +0 -1
- package/dist/chunk-TS55CUNJ.js +0 -57
- package/dist/chunk-UFBJ3WOZ.js +0 -2
- package/dist/chunk-UQRVQUVR.js +0 -2
- package/dist/chunk-UW5W35NP.js +0 -122
- package/dist/chunk-VI7WCO2J.cjs +0 -3
- package/dist/chunk-VTOL3URF.js +0 -4
- package/dist/chunk-VVVCCB6R.js +0 -2
- package/dist/chunk-W2GPP6RB.js +0 -122
- package/dist/chunk-WHOA7YJU.cjs +0 -1
- package/dist/chunk-WNRUPL26.js +0 -2
- package/dist/chunk-XIAJQLGS.js +0 -2
- package/dist/chunk-XK6UB77Q.js +0 -4
- package/dist/chunk-Y2VHO66Q.cjs +0 -3
- package/dist/chunk-Y5O2OD7J.cjs +0 -3
- package/dist/chunk-YARB43JG.cjs +0 -56
- package/dist/chunk-YLCEMVYY.cjs +0 -56
- package/dist/chunk-YSOM57GK.cjs +0 -3
- package/dist/chunk-Z3UVDGYS.cjs +0 -56
- package/dist/chunk-ZO3YB5DK.cjs +0 -1
- package/dist/chunk-ZOVH6QT5.cjs +0 -1
- package/dist/chunk-ZRIBWDYJ.js +0 -384
- package/dist/chunk-ZWDBPEXL.js +0 -115
- package/dist/index-B9BFNOHd.d.cts +0 -105
- package/dist/index-BMcYFpTv.d.cts +0 -105
- package/dist/index-ByOM1Y5x.d.ts +0 -105
- package/dist/index-C6xmtRio.d.cts +0 -105
- package/dist/index-CTI3K_uq.d.cts +0 -105
- package/dist/index-CTL4zv_u.d.ts +0 -105
- package/dist/index-CaDbioSg.d.ts +0 -105
- package/dist/index-CxA9uOv0.d.ts +0 -105
- package/dist/index-D6AXbuPI.d.ts +0 -105
- package/dist/index-DF0KDBaM.d.cts +0 -105
- package/dist/index-DG4Xu7gA.d.cts +0 -105
- package/dist/index-DS3DpJli.d.cts +0 -105
- package/dist/index-eHex8Iwj.d.ts +0 -105
- package/dist/index-rm7uyOK1.d.cts +0 -105
- package/dist/lib-5QYYN6ML.cjs +0 -12
- package/dist/lib-XXYYUPMW.js +0 -13
- package/dist/local-S5VA7IXE.cjs +0 -1
- package/dist/local-T7GISZBL.js +0 -1
- package/dist/mongo-auth-adapter-GR2CFFEA.js +0 -1
- package/dist/mongo-auth-adapter-UOO2LZUJ.cjs +0 -1
- package/dist/nodemailer-transport-CHO2WKIY.js +0 -1
- package/dist/nodemailer-transport-ED2IXNGW.cjs +0 -1
- package/dist/types-6ShQp2EM.d.cts +0 -839
- package/dist/types-B5Qz1svz.d.cts +0 -822
- package/dist/types-B9oXBEKI.d.ts +0 -330
- package/dist/types-Bii0bhUV.d.cts +0 -329
- package/dist/types-Bt2_ycUO.d.ts +0 -811
- package/dist/types-C4wXHImf.d.ts +0 -822
- package/dist/types-C8yIAV6K.d.cts +0 -839
- package/dist/types-CORUQhY-.d.ts +0 -839
- package/dist/types-CjGqxBd3.d.cts +0 -330
- package/dist/types-CjGqxBd3.d.ts +0 -330
- package/dist/types-DBGR-eQl.d.cts +0 -839
- package/dist/types-DCWgPFmi.d.cts +0 -822
- package/dist/types-DROqAsr0.d.cts +0 -330
- package/dist/types-DROqAsr0.d.ts +0 -330
- package/dist/types-DlGSbh7I.d.cts +0 -297
- package/dist/types-DlGSbh7I.d.ts +0 -297
- package/dist/types-DsF64Wrc.d.cts +0 -811
- package/dist/types-IeKFn7Ky.d.ts +0 -839
- package/dist/types-ZrjEVWfi.d.ts +0 -811
- package/dist/types-dEy5JxvN.d.ts +0 -822
- package/dist/types-tVJc9YbX.d.cts +0 -811
- package/dist/types-zt5qIvje.d.ts +0 -839
package/dist/index-CTL4zv_u.d.ts
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { S as StorageConfig, a as StorageProvider, C as CollectionConfig, G as GlobalConfig, K as KyroPlugin } from './types-zt5qIvje.js';
|
|
2
|
-
import { F as Field } from './types-DROqAsr0.js';
|
|
3
|
-
import { ZodTypeAny } from 'zod';
|
|
4
|
-
|
|
5
|
-
interface StorageProviderRegistration {
|
|
6
|
-
type: string;
|
|
7
|
-
displayName: string;
|
|
8
|
-
pluginName?: string;
|
|
9
|
-
configFields: Field[];
|
|
10
|
-
configKey?: string;
|
|
11
|
-
extractConfig: (storageConfig: StorageConfig, configKey: string) => any;
|
|
12
|
-
extractRawConfig: (config: any) => any;
|
|
13
|
-
factory: (config: any) => StorageProvider;
|
|
14
|
-
}
|
|
15
|
-
declare class StorageProviderRegistry {
|
|
16
|
-
private providers;
|
|
17
|
-
private providerToPlugin;
|
|
18
|
-
private disabledPlugins;
|
|
19
|
-
constructor();
|
|
20
|
-
private registerLocal;
|
|
21
|
-
private registerImgix;
|
|
22
|
-
private registerBunny;
|
|
23
|
-
private registerCloudflareR2;
|
|
24
|
-
private registerCloudflareS3;
|
|
25
|
-
register(registration: StorageProviderRegistration): void;
|
|
26
|
-
unregister(type: string): void;
|
|
27
|
-
get(type: string): StorageProviderRegistration | undefined;
|
|
28
|
-
getAll(): StorageProviderRegistration[];
|
|
29
|
-
getAllAvailable(isPluginEnabled?: (name: string) => boolean): StorageProviderRegistration[];
|
|
30
|
-
has(type: string): boolean;
|
|
31
|
-
resolve(type: string, storageConfig: StorageConfig): Promise<StorageProvider>;
|
|
32
|
-
resolveWithConfig(type: string, config: any): Promise<StorageProvider>;
|
|
33
|
-
getProviderPluginName(type: string): string | undefined;
|
|
34
|
-
getAllPluginNames(): string[];
|
|
35
|
-
setPluginEnabled(name: string, enabled: boolean): void;
|
|
36
|
-
isPluginEnabled(name: string): boolean;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
declare class Registry {
|
|
40
|
-
storageProviders: StorageProviderRegistry;
|
|
41
|
-
private collections;
|
|
42
|
-
private globals;
|
|
43
|
-
private plugins;
|
|
44
|
-
private schemaCache;
|
|
45
|
-
private initialized;
|
|
46
|
-
addCollection(config: CollectionConfig): void;
|
|
47
|
-
addCollections(configs: CollectionConfig[]): void;
|
|
48
|
-
getCollection(slug: string): CollectionConfig | undefined;
|
|
49
|
-
getCollections(): CollectionConfig[];
|
|
50
|
-
getCollectionSlugs(): string[];
|
|
51
|
-
hasCollection(slug: string): boolean;
|
|
52
|
-
removeCollection(slug: string): boolean;
|
|
53
|
-
addGlobal(config: GlobalConfig): void;
|
|
54
|
-
/**
|
|
55
|
-
* Add a global after the registry is already initialized.
|
|
56
|
-
* Only for internal use (e.g. storage settings form built at startup).
|
|
57
|
-
*/
|
|
58
|
-
addGlobalPostInit(config: GlobalConfig): void;
|
|
59
|
-
private _addGlobalUnsafe;
|
|
60
|
-
addGlobals(configs: GlobalConfig[]): void;
|
|
61
|
-
getGlobal(slug: string): GlobalConfig | undefined;
|
|
62
|
-
getGlobals(): GlobalConfig[];
|
|
63
|
-
getGlobalSlugs(): string[];
|
|
64
|
-
hasGlobal(slug: string): boolean;
|
|
65
|
-
removeGlobal(slug: string): boolean;
|
|
66
|
-
addPlugin(plugin: KyroPlugin): void;
|
|
67
|
-
getPlugins(): KyroPlugin[];
|
|
68
|
-
getZodSchema(slug: string): ZodTypeAny;
|
|
69
|
-
getCreateZodSchema(slug: string): ZodTypeAny;
|
|
70
|
-
getUpdateZodSchema(slug: string): ZodTypeAny;
|
|
71
|
-
getWhereZodSchema(slug: string): ZodTypeAny;
|
|
72
|
-
getFieldZodSchema(field: Field): ZodTypeAny;
|
|
73
|
-
private clearSchemaCache;
|
|
74
|
-
private applyFieldDefaults;
|
|
75
|
-
getFields(slug: string): Field[];
|
|
76
|
-
getFieldMap(slug: string): Map<string, Field>;
|
|
77
|
-
getVisibleFields(slug: string): Field[];
|
|
78
|
-
validate(): void;
|
|
79
|
-
init(kyroInstance?: any): Promise<void>;
|
|
80
|
-
isInitialized(): boolean;
|
|
81
|
-
getPaginationDefaults(slug: string): {
|
|
82
|
-
defaultLimit: number;
|
|
83
|
-
limits: number[];
|
|
84
|
-
};
|
|
85
|
-
getDefaultSort(slug: string): string;
|
|
86
|
-
getDefaultColumns(slug: string): string[];
|
|
87
|
-
getAdminTitle(slug: string): string;
|
|
88
|
-
getAdminLabel(slug: string): string;
|
|
89
|
-
getAdminGroup(slug: string): string | undefined;
|
|
90
|
-
getStats(): {
|
|
91
|
-
collections: number;
|
|
92
|
-
globals: number;
|
|
93
|
-
plugins: number;
|
|
94
|
-
fields: number;
|
|
95
|
-
};
|
|
96
|
-
toJSON(): {
|
|
97
|
-
collections: CollectionConfig[];
|
|
98
|
-
globals: GlobalConfig[];
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
declare function getRegistry(): Registry;
|
|
102
|
-
declare function resetRegistry(): void;
|
|
103
|
-
declare function createRegistry(): Registry;
|
|
104
|
-
|
|
105
|
-
export { Registry as R, createRegistry as c, getRegistry as g, resetRegistry as r };
|
package/dist/index-CaDbioSg.d.ts
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { S as StorageConfig, a as StorageProvider, C as CollectionConfig, G as GlobalConfig, K as KyroPlugin } from './types-BRDBNacn.js';
|
|
2
|
-
import { F as Field } from './types-CjGqxBd3.js';
|
|
3
|
-
import { ZodTypeAny } from 'zod';
|
|
4
|
-
|
|
5
|
-
interface StorageProviderRegistration {
|
|
6
|
-
type: string;
|
|
7
|
-
displayName: string;
|
|
8
|
-
pluginName?: string;
|
|
9
|
-
configFields: Field[];
|
|
10
|
-
configKey?: string;
|
|
11
|
-
extractConfig: (storageConfig: StorageConfig, configKey: string) => any;
|
|
12
|
-
extractRawConfig: (config: any) => any;
|
|
13
|
-
factory: (config: any) => StorageProvider;
|
|
14
|
-
}
|
|
15
|
-
declare class StorageProviderRegistry {
|
|
16
|
-
private providers;
|
|
17
|
-
private providerToPlugin;
|
|
18
|
-
private disabledPlugins;
|
|
19
|
-
constructor();
|
|
20
|
-
private registerLocal;
|
|
21
|
-
private registerImgix;
|
|
22
|
-
private registerBunny;
|
|
23
|
-
private registerCloudflareR2;
|
|
24
|
-
private registerCloudflareS3;
|
|
25
|
-
register(registration: StorageProviderRegistration): void;
|
|
26
|
-
unregister(type: string): void;
|
|
27
|
-
get(type: string): StorageProviderRegistration | undefined;
|
|
28
|
-
getAll(): StorageProviderRegistration[];
|
|
29
|
-
getAllAvailable(isPluginEnabled?: (name: string) => boolean): StorageProviderRegistration[];
|
|
30
|
-
has(type: string): boolean;
|
|
31
|
-
resolve(type: string, storageConfig: StorageConfig): Promise<StorageProvider>;
|
|
32
|
-
resolveWithConfig(type: string, config: any): Promise<StorageProvider>;
|
|
33
|
-
getProviderPluginName(type: string): string | undefined;
|
|
34
|
-
getAllPluginNames(): string[];
|
|
35
|
-
setPluginEnabled(name: string, enabled: boolean): void;
|
|
36
|
-
isPluginEnabled(name: string): boolean;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
declare class Registry {
|
|
40
|
-
storageProviders: StorageProviderRegistry;
|
|
41
|
-
private collections;
|
|
42
|
-
private globals;
|
|
43
|
-
private plugins;
|
|
44
|
-
private schemaCache;
|
|
45
|
-
private initialized;
|
|
46
|
-
addCollection(config: CollectionConfig): void;
|
|
47
|
-
addCollections(configs: CollectionConfig[]): void;
|
|
48
|
-
getCollection(slug: string): CollectionConfig | undefined;
|
|
49
|
-
getCollections(): CollectionConfig[];
|
|
50
|
-
getCollectionSlugs(): string[];
|
|
51
|
-
hasCollection(slug: string): boolean;
|
|
52
|
-
removeCollection(slug: string): boolean;
|
|
53
|
-
addGlobal(config: GlobalConfig): void;
|
|
54
|
-
/**
|
|
55
|
-
* Add a global after the registry is already initialized.
|
|
56
|
-
* Only for internal use (e.g. storage settings form built at startup).
|
|
57
|
-
*/
|
|
58
|
-
addGlobalPostInit(config: GlobalConfig): void;
|
|
59
|
-
private _addGlobalUnsafe;
|
|
60
|
-
addGlobals(configs: GlobalConfig[]): void;
|
|
61
|
-
getGlobal(slug: string): GlobalConfig | undefined;
|
|
62
|
-
getGlobals(): GlobalConfig[];
|
|
63
|
-
getGlobalSlugs(): string[];
|
|
64
|
-
hasGlobal(slug: string): boolean;
|
|
65
|
-
removeGlobal(slug: string): boolean;
|
|
66
|
-
addPlugin(plugin: KyroPlugin): void;
|
|
67
|
-
getPlugins(): KyroPlugin[];
|
|
68
|
-
getZodSchema(slug: string): ZodTypeAny;
|
|
69
|
-
getCreateZodSchema(slug: string): ZodTypeAny;
|
|
70
|
-
getUpdateZodSchema(slug: string): ZodTypeAny;
|
|
71
|
-
getWhereZodSchema(slug: string): ZodTypeAny;
|
|
72
|
-
getFieldZodSchema(field: Field): ZodTypeAny;
|
|
73
|
-
private clearSchemaCache;
|
|
74
|
-
private applyFieldDefaults;
|
|
75
|
-
getFields(slug: string): Field[];
|
|
76
|
-
getFieldMap(slug: string): Map<string, Field>;
|
|
77
|
-
getVisibleFields(slug: string): Field[];
|
|
78
|
-
validate(): void;
|
|
79
|
-
init(kyroInstance?: any): Promise<void>;
|
|
80
|
-
isInitialized(): boolean;
|
|
81
|
-
getPaginationDefaults(slug: string): {
|
|
82
|
-
defaultLimit: number;
|
|
83
|
-
limits: number[];
|
|
84
|
-
};
|
|
85
|
-
getDefaultSort(slug: string): string;
|
|
86
|
-
getDefaultColumns(slug: string): string[];
|
|
87
|
-
getAdminTitle(slug: string): string;
|
|
88
|
-
getAdminLabel(slug: string): string;
|
|
89
|
-
getAdminGroup(slug: string): string | undefined;
|
|
90
|
-
getStats(): {
|
|
91
|
-
collections: number;
|
|
92
|
-
globals: number;
|
|
93
|
-
plugins: number;
|
|
94
|
-
fields: number;
|
|
95
|
-
};
|
|
96
|
-
toJSON(): {
|
|
97
|
-
collections: CollectionConfig[];
|
|
98
|
-
globals: GlobalConfig[];
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
declare function getRegistry(): Registry;
|
|
102
|
-
declare function resetRegistry(): void;
|
|
103
|
-
declare function createRegistry(): Registry;
|
|
104
|
-
|
|
105
|
-
export { Registry as R, createRegistry as c, getRegistry as g, resetRegistry as r };
|
package/dist/index-CxA9uOv0.d.ts
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { S as StorageConfig, a as StorageProvider, C as CollectionConfig, G as GlobalConfig, K as KyroPlugin } from './types-C4wXHImf.js';
|
|
2
|
-
import { F as Field } from './types-DROqAsr0.js';
|
|
3
|
-
import { ZodTypeAny } from 'zod';
|
|
4
|
-
|
|
5
|
-
interface StorageProviderRegistration {
|
|
6
|
-
type: string;
|
|
7
|
-
displayName: string;
|
|
8
|
-
pluginName?: string;
|
|
9
|
-
configFields: Field[];
|
|
10
|
-
configKey?: string;
|
|
11
|
-
extractConfig: (storageConfig: StorageConfig, configKey: string) => any;
|
|
12
|
-
extractRawConfig: (config: any) => any;
|
|
13
|
-
factory: (config: any) => StorageProvider;
|
|
14
|
-
}
|
|
15
|
-
declare class StorageProviderRegistry {
|
|
16
|
-
private providers;
|
|
17
|
-
private providerToPlugin;
|
|
18
|
-
private disabledPlugins;
|
|
19
|
-
constructor();
|
|
20
|
-
private registerLocal;
|
|
21
|
-
private registerImgix;
|
|
22
|
-
private registerBunny;
|
|
23
|
-
private registerCloudflareR2;
|
|
24
|
-
private registerCloudflareS3;
|
|
25
|
-
register(registration: StorageProviderRegistration): void;
|
|
26
|
-
unregister(type: string): void;
|
|
27
|
-
get(type: string): StorageProviderRegistration | undefined;
|
|
28
|
-
getAll(): StorageProviderRegistration[];
|
|
29
|
-
getAllAvailable(isPluginEnabled?: (name: string) => boolean): StorageProviderRegistration[];
|
|
30
|
-
has(type: string): boolean;
|
|
31
|
-
resolve(type: string, storageConfig: StorageConfig): Promise<StorageProvider>;
|
|
32
|
-
resolveWithConfig(type: string, config: any): Promise<StorageProvider>;
|
|
33
|
-
getProviderPluginName(type: string): string | undefined;
|
|
34
|
-
getAllPluginNames(): string[];
|
|
35
|
-
setPluginEnabled(name: string, enabled: boolean): void;
|
|
36
|
-
isPluginEnabled(name: string): boolean;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
declare class Registry {
|
|
40
|
-
storageProviders: StorageProviderRegistry;
|
|
41
|
-
private collections;
|
|
42
|
-
private globals;
|
|
43
|
-
private plugins;
|
|
44
|
-
private schemaCache;
|
|
45
|
-
private initialized;
|
|
46
|
-
addCollection(config: CollectionConfig): void;
|
|
47
|
-
addCollections(configs: CollectionConfig[]): void;
|
|
48
|
-
getCollection(slug: string): CollectionConfig | undefined;
|
|
49
|
-
getCollections(): CollectionConfig[];
|
|
50
|
-
getCollectionSlugs(): string[];
|
|
51
|
-
hasCollection(slug: string): boolean;
|
|
52
|
-
removeCollection(slug: string): boolean;
|
|
53
|
-
addGlobal(config: GlobalConfig): void;
|
|
54
|
-
/**
|
|
55
|
-
* Add a global after the registry is already initialized.
|
|
56
|
-
* Only for internal use (e.g. storage settings form built at startup).
|
|
57
|
-
*/
|
|
58
|
-
addGlobalPostInit(config: GlobalConfig): void;
|
|
59
|
-
private _addGlobalUnsafe;
|
|
60
|
-
addGlobals(configs: GlobalConfig[]): void;
|
|
61
|
-
getGlobal(slug: string): GlobalConfig | undefined;
|
|
62
|
-
getGlobals(): GlobalConfig[];
|
|
63
|
-
getGlobalSlugs(): string[];
|
|
64
|
-
hasGlobal(slug: string): boolean;
|
|
65
|
-
removeGlobal(slug: string): boolean;
|
|
66
|
-
addPlugin(plugin: KyroPlugin): void;
|
|
67
|
-
getPlugins(): KyroPlugin[];
|
|
68
|
-
getZodSchema(slug: string): ZodTypeAny;
|
|
69
|
-
getCreateZodSchema(slug: string): ZodTypeAny;
|
|
70
|
-
getUpdateZodSchema(slug: string): ZodTypeAny;
|
|
71
|
-
getWhereZodSchema(slug: string): ZodTypeAny;
|
|
72
|
-
getFieldZodSchema(field: Field): ZodTypeAny;
|
|
73
|
-
private clearSchemaCache;
|
|
74
|
-
private applyFieldDefaults;
|
|
75
|
-
getFields(slug: string): Field[];
|
|
76
|
-
getFieldMap(slug: string): Map<string, Field>;
|
|
77
|
-
getVisibleFields(slug: string): Field[];
|
|
78
|
-
validate(): void;
|
|
79
|
-
init(kyroInstance?: any): Promise<void>;
|
|
80
|
-
isInitialized(): boolean;
|
|
81
|
-
getPaginationDefaults(slug: string): {
|
|
82
|
-
defaultLimit: number;
|
|
83
|
-
limits: number[];
|
|
84
|
-
};
|
|
85
|
-
getDefaultSort(slug: string): string;
|
|
86
|
-
getDefaultColumns(slug: string): string[];
|
|
87
|
-
getAdminTitle(slug: string): string;
|
|
88
|
-
getAdminLabel(slug: string): string;
|
|
89
|
-
getAdminGroup(slug: string): string | undefined;
|
|
90
|
-
getStats(): {
|
|
91
|
-
collections: number;
|
|
92
|
-
globals: number;
|
|
93
|
-
plugins: number;
|
|
94
|
-
fields: number;
|
|
95
|
-
};
|
|
96
|
-
toJSON(): {
|
|
97
|
-
collections: CollectionConfig[];
|
|
98
|
-
globals: GlobalConfig[];
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
declare function getRegistry(): Registry;
|
|
102
|
-
declare function resetRegistry(): void;
|
|
103
|
-
declare function createRegistry(): Registry;
|
|
104
|
-
|
|
105
|
-
export { Registry as R, createRegistry as c, getRegistry as g, resetRegistry as r };
|
package/dist/index-D6AXbuPI.d.ts
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { S as StorageConfig, a as StorageProvider, C as CollectionConfig, G as GlobalConfig, K as KyroPlugin } from './types-Bt2_ycUO.js';
|
|
2
|
-
import { F as Field } from './types-DlGSbh7I.js';
|
|
3
|
-
import { ZodTypeAny } from 'zod';
|
|
4
|
-
|
|
5
|
-
interface StorageProviderRegistration {
|
|
6
|
-
type: string;
|
|
7
|
-
displayName: string;
|
|
8
|
-
pluginName?: string;
|
|
9
|
-
configFields: Field[];
|
|
10
|
-
configKey?: string;
|
|
11
|
-
extractConfig: (storageConfig: StorageConfig, configKey: string) => any;
|
|
12
|
-
extractRawConfig: (config: any) => any;
|
|
13
|
-
factory: (config: any) => StorageProvider;
|
|
14
|
-
}
|
|
15
|
-
declare class StorageProviderRegistry {
|
|
16
|
-
private providers;
|
|
17
|
-
private providerToPlugin;
|
|
18
|
-
private disabledPlugins;
|
|
19
|
-
constructor();
|
|
20
|
-
private registerLocal;
|
|
21
|
-
private registerImgix;
|
|
22
|
-
private registerBunny;
|
|
23
|
-
private registerCloudflareR2;
|
|
24
|
-
private registerCloudflareS3;
|
|
25
|
-
register(registration: StorageProviderRegistration): void;
|
|
26
|
-
unregister(type: string): void;
|
|
27
|
-
get(type: string): StorageProviderRegistration | undefined;
|
|
28
|
-
getAll(): StorageProviderRegistration[];
|
|
29
|
-
getAllAvailable(isPluginEnabled?: (name: string) => boolean): StorageProviderRegistration[];
|
|
30
|
-
has(type: string): boolean;
|
|
31
|
-
resolve(type: string, storageConfig: StorageConfig): Promise<StorageProvider>;
|
|
32
|
-
resolveWithConfig(type: string, config: any): Promise<StorageProvider>;
|
|
33
|
-
getProviderPluginName(type: string): string | undefined;
|
|
34
|
-
getAllPluginNames(): string[];
|
|
35
|
-
setPluginEnabled(name: string, enabled: boolean): void;
|
|
36
|
-
isPluginEnabled(name: string): boolean;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
declare class Registry {
|
|
40
|
-
storageProviders: StorageProviderRegistry;
|
|
41
|
-
private collections;
|
|
42
|
-
private globals;
|
|
43
|
-
private plugins;
|
|
44
|
-
private schemaCache;
|
|
45
|
-
private initialized;
|
|
46
|
-
addCollection(config: CollectionConfig): void;
|
|
47
|
-
addCollections(configs: CollectionConfig[]): void;
|
|
48
|
-
getCollection(slug: string): CollectionConfig | undefined;
|
|
49
|
-
getCollections(): CollectionConfig[];
|
|
50
|
-
getCollectionSlugs(): string[];
|
|
51
|
-
hasCollection(slug: string): boolean;
|
|
52
|
-
removeCollection(slug: string): boolean;
|
|
53
|
-
addGlobal(config: GlobalConfig): void;
|
|
54
|
-
/**
|
|
55
|
-
* Add a global after the registry is already initialized.
|
|
56
|
-
* Only for internal use (e.g. storage settings form built at startup).
|
|
57
|
-
*/
|
|
58
|
-
addGlobalPostInit(config: GlobalConfig): void;
|
|
59
|
-
private _addGlobalUnsafe;
|
|
60
|
-
addGlobals(configs: GlobalConfig[]): void;
|
|
61
|
-
getGlobal(slug: string): GlobalConfig | undefined;
|
|
62
|
-
getGlobals(): GlobalConfig[];
|
|
63
|
-
getGlobalSlugs(): string[];
|
|
64
|
-
hasGlobal(slug: string): boolean;
|
|
65
|
-
removeGlobal(slug: string): boolean;
|
|
66
|
-
addPlugin(plugin: KyroPlugin): void;
|
|
67
|
-
getPlugins(): KyroPlugin[];
|
|
68
|
-
getZodSchema(slug: string): ZodTypeAny;
|
|
69
|
-
getCreateZodSchema(slug: string): ZodTypeAny;
|
|
70
|
-
getUpdateZodSchema(slug: string): ZodTypeAny;
|
|
71
|
-
getWhereZodSchema(slug: string): ZodTypeAny;
|
|
72
|
-
getFieldZodSchema(field: Field): ZodTypeAny;
|
|
73
|
-
private clearSchemaCache;
|
|
74
|
-
private applyFieldDefaults;
|
|
75
|
-
getFields(slug: string): Field[];
|
|
76
|
-
getFieldMap(slug: string): Map<string, Field>;
|
|
77
|
-
getVisibleFields(slug: string): Field[];
|
|
78
|
-
validate(): void;
|
|
79
|
-
init(kyroInstance?: any): Promise<void>;
|
|
80
|
-
isInitialized(): boolean;
|
|
81
|
-
getPaginationDefaults(slug: string): {
|
|
82
|
-
defaultLimit: number;
|
|
83
|
-
limits: number[];
|
|
84
|
-
};
|
|
85
|
-
getDefaultSort(slug: string): string;
|
|
86
|
-
getDefaultColumns(slug: string): string[];
|
|
87
|
-
getAdminTitle(slug: string): string;
|
|
88
|
-
getAdminLabel(slug: string): string;
|
|
89
|
-
getAdminGroup(slug: string): string | undefined;
|
|
90
|
-
getStats(): {
|
|
91
|
-
collections: number;
|
|
92
|
-
globals: number;
|
|
93
|
-
plugins: number;
|
|
94
|
-
fields: number;
|
|
95
|
-
};
|
|
96
|
-
toJSON(): {
|
|
97
|
-
collections: CollectionConfig[];
|
|
98
|
-
globals: GlobalConfig[];
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
declare function getRegistry(): Registry;
|
|
102
|
-
declare function resetRegistry(): void;
|
|
103
|
-
declare function createRegistry(): Registry;
|
|
104
|
-
|
|
105
|
-
export { Registry as R, createRegistry as c, getRegistry as g, resetRegistry as r };
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { S as StorageConfig, a as StorageProvider, C as CollectionConfig, G as GlobalConfig, K as KyroPlugin } from './types-tVJc9YbX.cjs';
|
|
2
|
-
import { F as Field } from './types-Bii0bhUV.cjs';
|
|
3
|
-
import { ZodTypeAny } from 'zod';
|
|
4
|
-
|
|
5
|
-
interface StorageProviderRegistration {
|
|
6
|
-
type: string;
|
|
7
|
-
displayName: string;
|
|
8
|
-
pluginName?: string;
|
|
9
|
-
configFields: Field[];
|
|
10
|
-
configKey?: string;
|
|
11
|
-
extractConfig: (storageConfig: StorageConfig, configKey: string) => any;
|
|
12
|
-
extractRawConfig: (config: any) => any;
|
|
13
|
-
factory: (config: any) => StorageProvider;
|
|
14
|
-
}
|
|
15
|
-
declare class StorageProviderRegistry {
|
|
16
|
-
private providers;
|
|
17
|
-
private providerToPlugin;
|
|
18
|
-
private disabledPlugins;
|
|
19
|
-
constructor();
|
|
20
|
-
private registerLocal;
|
|
21
|
-
private registerImgix;
|
|
22
|
-
private registerBunny;
|
|
23
|
-
private registerCloudflareR2;
|
|
24
|
-
private registerCloudflareS3;
|
|
25
|
-
register(registration: StorageProviderRegistration): void;
|
|
26
|
-
unregister(type: string): void;
|
|
27
|
-
get(type: string): StorageProviderRegistration | undefined;
|
|
28
|
-
getAll(): StorageProviderRegistration[];
|
|
29
|
-
getAllAvailable(isPluginEnabled?: (name: string) => boolean): StorageProviderRegistration[];
|
|
30
|
-
has(type: string): boolean;
|
|
31
|
-
resolve(type: string, storageConfig: StorageConfig): Promise<StorageProvider>;
|
|
32
|
-
resolveWithConfig(type: string, config: any): Promise<StorageProvider>;
|
|
33
|
-
getProviderPluginName(type: string): string | undefined;
|
|
34
|
-
getAllPluginNames(): string[];
|
|
35
|
-
setPluginEnabled(name: string, enabled: boolean): void;
|
|
36
|
-
isPluginEnabled(name: string): boolean;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
declare class Registry {
|
|
40
|
-
storageProviders: StorageProviderRegistry;
|
|
41
|
-
private collections;
|
|
42
|
-
private globals;
|
|
43
|
-
private plugins;
|
|
44
|
-
private schemaCache;
|
|
45
|
-
private initialized;
|
|
46
|
-
addCollection(config: CollectionConfig): void;
|
|
47
|
-
addCollections(configs: CollectionConfig[]): void;
|
|
48
|
-
getCollection(slug: string): CollectionConfig | undefined;
|
|
49
|
-
getCollections(): CollectionConfig[];
|
|
50
|
-
getCollectionSlugs(): string[];
|
|
51
|
-
hasCollection(slug: string): boolean;
|
|
52
|
-
removeCollection(slug: string): boolean;
|
|
53
|
-
addGlobal(config: GlobalConfig): void;
|
|
54
|
-
/**
|
|
55
|
-
* Add a global after the registry is already initialized.
|
|
56
|
-
* Only for internal use (e.g. storage settings form built at startup).
|
|
57
|
-
*/
|
|
58
|
-
addGlobalPostInit(config: GlobalConfig): void;
|
|
59
|
-
private _addGlobalUnsafe;
|
|
60
|
-
addGlobals(configs: GlobalConfig[]): void;
|
|
61
|
-
getGlobal(slug: string): GlobalConfig | undefined;
|
|
62
|
-
getGlobals(): GlobalConfig[];
|
|
63
|
-
getGlobalSlugs(): string[];
|
|
64
|
-
hasGlobal(slug: string): boolean;
|
|
65
|
-
removeGlobal(slug: string): boolean;
|
|
66
|
-
addPlugin(plugin: KyroPlugin): void;
|
|
67
|
-
getPlugins(): KyroPlugin[];
|
|
68
|
-
getZodSchema(slug: string): ZodTypeAny;
|
|
69
|
-
getCreateZodSchema(slug: string): ZodTypeAny;
|
|
70
|
-
getUpdateZodSchema(slug: string): ZodTypeAny;
|
|
71
|
-
getWhereZodSchema(slug: string): ZodTypeAny;
|
|
72
|
-
getFieldZodSchema(field: Field): ZodTypeAny;
|
|
73
|
-
private clearSchemaCache;
|
|
74
|
-
private applyFieldDefaults;
|
|
75
|
-
getFields(slug: string): Field[];
|
|
76
|
-
getFieldMap(slug: string): Map<string, Field>;
|
|
77
|
-
getVisibleFields(slug: string): Field[];
|
|
78
|
-
validate(): void;
|
|
79
|
-
init(kyroInstance?: any): Promise<void>;
|
|
80
|
-
isInitialized(): boolean;
|
|
81
|
-
getPaginationDefaults(slug: string): {
|
|
82
|
-
defaultLimit: number;
|
|
83
|
-
limits: number[];
|
|
84
|
-
};
|
|
85
|
-
getDefaultSort(slug: string): string;
|
|
86
|
-
getDefaultColumns(slug: string): string[];
|
|
87
|
-
getAdminTitle(slug: string): string;
|
|
88
|
-
getAdminLabel(slug: string): string;
|
|
89
|
-
getAdminGroup(slug: string): string | undefined;
|
|
90
|
-
getStats(): {
|
|
91
|
-
collections: number;
|
|
92
|
-
globals: number;
|
|
93
|
-
plugins: number;
|
|
94
|
-
fields: number;
|
|
95
|
-
};
|
|
96
|
-
toJSON(): {
|
|
97
|
-
collections: CollectionConfig[];
|
|
98
|
-
globals: GlobalConfig[];
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
declare function getRegistry(): Registry;
|
|
102
|
-
declare function resetRegistry(): void;
|
|
103
|
-
declare function createRegistry(): Registry;
|
|
104
|
-
|
|
105
|
-
export { Registry as R, createRegistry as c, getRegistry as g, resetRegistry as r };
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { S as StorageConfig, a as StorageProvider, C as CollectionConfig, G as GlobalConfig, K as KyroPlugin } from './types-DCWgPFmi.cjs';
|
|
2
|
-
import { F as Field } from './types-Bii0bhUV.cjs';
|
|
3
|
-
import { ZodTypeAny } from 'zod';
|
|
4
|
-
|
|
5
|
-
interface StorageProviderRegistration {
|
|
6
|
-
type: string;
|
|
7
|
-
displayName: string;
|
|
8
|
-
pluginName?: string;
|
|
9
|
-
configFields: Field[];
|
|
10
|
-
configKey?: string;
|
|
11
|
-
extractConfig: (storageConfig: StorageConfig, configKey: string) => any;
|
|
12
|
-
extractRawConfig: (config: any) => any;
|
|
13
|
-
factory: (config: any) => StorageProvider;
|
|
14
|
-
}
|
|
15
|
-
declare class StorageProviderRegistry {
|
|
16
|
-
private providers;
|
|
17
|
-
private providerToPlugin;
|
|
18
|
-
private disabledPlugins;
|
|
19
|
-
constructor();
|
|
20
|
-
private registerLocal;
|
|
21
|
-
private registerImgix;
|
|
22
|
-
private registerBunny;
|
|
23
|
-
private registerCloudflareR2;
|
|
24
|
-
private registerCloudflareS3;
|
|
25
|
-
register(registration: StorageProviderRegistration): void;
|
|
26
|
-
unregister(type: string): void;
|
|
27
|
-
get(type: string): StorageProviderRegistration | undefined;
|
|
28
|
-
getAll(): StorageProviderRegistration[];
|
|
29
|
-
getAllAvailable(isPluginEnabled?: (name: string) => boolean): StorageProviderRegistration[];
|
|
30
|
-
has(type: string): boolean;
|
|
31
|
-
resolve(type: string, storageConfig: StorageConfig): Promise<StorageProvider>;
|
|
32
|
-
resolveWithConfig(type: string, config: any): Promise<StorageProvider>;
|
|
33
|
-
getProviderPluginName(type: string): string | undefined;
|
|
34
|
-
getAllPluginNames(): string[];
|
|
35
|
-
setPluginEnabled(name: string, enabled: boolean): void;
|
|
36
|
-
isPluginEnabled(name: string): boolean;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
declare class Registry {
|
|
40
|
-
storageProviders: StorageProviderRegistry;
|
|
41
|
-
private collections;
|
|
42
|
-
private globals;
|
|
43
|
-
private plugins;
|
|
44
|
-
private schemaCache;
|
|
45
|
-
private initialized;
|
|
46
|
-
addCollection(config: CollectionConfig): void;
|
|
47
|
-
addCollections(configs: CollectionConfig[]): void;
|
|
48
|
-
getCollection(slug: string): CollectionConfig | undefined;
|
|
49
|
-
getCollections(): CollectionConfig[];
|
|
50
|
-
getCollectionSlugs(): string[];
|
|
51
|
-
hasCollection(slug: string): boolean;
|
|
52
|
-
removeCollection(slug: string): boolean;
|
|
53
|
-
addGlobal(config: GlobalConfig): void;
|
|
54
|
-
/**
|
|
55
|
-
* Add a global after the registry is already initialized.
|
|
56
|
-
* Only for internal use (e.g. storage settings form built at startup).
|
|
57
|
-
*/
|
|
58
|
-
addGlobalPostInit(config: GlobalConfig): void;
|
|
59
|
-
private _addGlobalUnsafe;
|
|
60
|
-
addGlobals(configs: GlobalConfig[]): void;
|
|
61
|
-
getGlobal(slug: string): GlobalConfig | undefined;
|
|
62
|
-
getGlobals(): GlobalConfig[];
|
|
63
|
-
getGlobalSlugs(): string[];
|
|
64
|
-
hasGlobal(slug: string): boolean;
|
|
65
|
-
removeGlobal(slug: string): boolean;
|
|
66
|
-
addPlugin(plugin: KyroPlugin): void;
|
|
67
|
-
getPlugins(): KyroPlugin[];
|
|
68
|
-
getZodSchema(slug: string): ZodTypeAny;
|
|
69
|
-
getCreateZodSchema(slug: string): ZodTypeAny;
|
|
70
|
-
getUpdateZodSchema(slug: string): ZodTypeAny;
|
|
71
|
-
getWhereZodSchema(slug: string): ZodTypeAny;
|
|
72
|
-
getFieldZodSchema(field: Field): ZodTypeAny;
|
|
73
|
-
private clearSchemaCache;
|
|
74
|
-
private applyFieldDefaults;
|
|
75
|
-
getFields(slug: string): Field[];
|
|
76
|
-
getFieldMap(slug: string): Map<string, Field>;
|
|
77
|
-
getVisibleFields(slug: string): Field[];
|
|
78
|
-
validate(): void;
|
|
79
|
-
init(kyroInstance?: any): Promise<void>;
|
|
80
|
-
isInitialized(): boolean;
|
|
81
|
-
getPaginationDefaults(slug: string): {
|
|
82
|
-
defaultLimit: number;
|
|
83
|
-
limits: number[];
|
|
84
|
-
};
|
|
85
|
-
getDefaultSort(slug: string): string;
|
|
86
|
-
getDefaultColumns(slug: string): string[];
|
|
87
|
-
getAdminTitle(slug: string): string;
|
|
88
|
-
getAdminLabel(slug: string): string;
|
|
89
|
-
getAdminGroup(slug: string): string | undefined;
|
|
90
|
-
getStats(): {
|
|
91
|
-
collections: number;
|
|
92
|
-
globals: number;
|
|
93
|
-
plugins: number;
|
|
94
|
-
fields: number;
|
|
95
|
-
};
|
|
96
|
-
toJSON(): {
|
|
97
|
-
collections: CollectionConfig[];
|
|
98
|
-
globals: GlobalConfig[];
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
declare function getRegistry(): Registry;
|
|
102
|
-
declare function resetRegistry(): void;
|
|
103
|
-
declare function createRegistry(): Registry;
|
|
104
|
-
|
|
105
|
-
export { Registry as R, createRegistry as c, getRegistry as g, resetRegistry as r };
|