@kyro-cms/core 0.1.6 → 0.1.8
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 +25 -2
- package/dist/WebhookService-CXJ5oz6L.d.ts +112 -0
- package/dist/WebhookService-Dqx9Is7m.d.cts +112 -0
- package/dist/{base-CQkFzqQl.d.ts → base-CciYzoDF.d.ts} +1 -1
- package/dist/{base-DlhVlwnN.d.cts → base-Cfek4fp3.d.cts} +1 -1
- package/dist/bootstrap-BMWVB2T6.cjs +31 -0
- package/dist/{bootstrap-WMWQ4DBX.cjs.map → bootstrap-BMWVB2T6.cjs.map} +1 -1
- package/dist/bootstrap-LL6O7PWO.js +6 -0
- package/dist/{bootstrap-WOVGAKZP.js.map → bootstrap-LL6O7PWO.js.map} +1 -1
- package/dist/{chunk-3VZCX4DF.cjs → chunk-42JPONZU.cjs} +77 -14
- package/dist/chunk-42JPONZU.cjs.map +1 -0
- package/dist/{chunk-3EVLFWH2.cjs → chunk-4M5PHMUE.cjs} +60 -346
- package/dist/chunk-4M5PHMUE.cjs.map +1 -0
- package/dist/chunk-4PWRCMTQ.cjs +15 -0
- package/dist/chunk-4PWRCMTQ.cjs.map +1 -0
- package/dist/chunk-6COM32WF.js +47 -0
- package/dist/chunk-6COM32WF.js.map +1 -0
- package/dist/chunk-6MSSF46R.js +941 -0
- package/dist/chunk-6MSSF46R.js.map +1 -0
- package/dist/{chunk-TZFJMPCH.cjs → chunk-7YITG2US.cjs} +9 -18
- package/dist/chunk-7YITG2US.cjs.map +1 -0
- package/dist/{chunk-A3RQWHKD.cjs → chunk-BLMFBDBG.cjs} +56 -6
- package/dist/chunk-BLMFBDBG.cjs.map +1 -0
- package/dist/{chunk-EINVJPFM.js → chunk-BTOE3VUK.js} +65 -3
- package/dist/chunk-BTOE3VUK.js.map +1 -0
- package/dist/chunk-E5X75WNB.js +497 -0
- package/dist/chunk-E5X75WNB.js.map +1 -0
- package/dist/chunk-E63IF3MD.cjs +951 -0
- package/dist/chunk-E63IF3MD.cjs.map +1 -0
- package/dist/chunk-EWP5AT6A.cjs +268 -0
- package/dist/chunk-EWP5AT6A.cjs.map +1 -0
- package/dist/{chunk-K7QF2QCM.cjs → chunk-FTSSDDZQ.cjs} +7 -3
- package/dist/chunk-FTSSDDZQ.cjs.map +1 -0
- package/dist/chunk-G7VZBCD6.cjs +35 -0
- package/dist/{chunk-5BLDMQED.cjs.map → chunk-G7VZBCD6.cjs.map} +1 -1
- package/dist/{chunk-VMSRTAH7.js → chunk-GLCPGZPM.js} +56 -6
- package/dist/chunk-GLCPGZPM.js.map +1 -0
- package/dist/{chunk-V3B25QOK.cjs → chunk-GVFB5C6O.cjs} +74 -2
- package/dist/chunk-GVFB5C6O.cjs.map +1 -0
- package/dist/chunk-HVSQDZZJ.cjs +765 -0
- package/dist/chunk-HVSQDZZJ.cjs.map +1 -0
- package/dist/chunk-HYC4GNHX.js +758 -0
- package/dist/chunk-HYC4GNHX.js.map +1 -0
- package/dist/chunk-KDVDIZ4Y.cjs +3479 -0
- package/dist/chunk-KDVDIZ4Y.cjs.map +1 -0
- package/dist/{chunk-OG3KX56O.js → chunk-KWGNR4HM.js} +7 -3
- package/dist/chunk-KWGNR4HM.js.map +1 -0
- package/dist/chunk-LIJVWQKU.cjs +256 -0
- package/dist/chunk-LIJVWQKU.cjs.map +1 -0
- package/dist/{chunk-XTZSUDSI.js → chunk-LTRCYJAG.js} +3 -18
- package/dist/chunk-LTRCYJAG.js.map +1 -0
- package/dist/{chunk-UEYC46RL.js → chunk-OUGKLCYF.js} +71 -8
- package/dist/chunk-OUGKLCYF.js.map +1 -0
- package/dist/chunk-QKOFKITP.js +258 -0
- package/dist/chunk-QKOFKITP.js.map +1 -0
- package/dist/chunk-RONAX6UU.js +3456 -0
- package/dist/chunk-RONAX6UU.js.map +1 -0
- package/dist/{chunk-5Y7QGIHD.js → chunk-RRYXQMZG.js} +60 -344
- package/dist/chunk-RRYXQMZG.js.map +1 -0
- package/dist/{chunk-QUJ4OLSC.js → chunk-U74F3YZU.js} +87 -7
- package/dist/chunk-U74F3YZU.js.map +1 -0
- package/dist/chunk-VIONYQ2K.cjs +517 -0
- package/dist/chunk-VIONYQ2K.cjs.map +1 -0
- package/dist/chunk-VSTRLXMQ.cjs +50 -0
- package/dist/chunk-VSTRLXMQ.cjs.map +1 -0
- package/dist/chunk-YT7HXXVN.js +13 -0
- package/dist/chunk-YT7HXXVN.js.map +1 -0
- package/dist/chunk-Z6ZWNWWR.js +30 -0
- package/dist/{chunk-NSBPE2FW.js.map → chunk-Z6ZWNWWR.js.map} +1 -1
- package/dist/cli/index.cjs +11 -7
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +11 -7
- package/dist/cli/index.js.map +1 -1
- package/dist/client.cjs +45 -0
- package/dist/client.cjs.map +1 -0
- package/dist/client.d.cts +11 -0
- package/dist/client.d.ts +11 -0
- package/dist/client.js +4 -0
- package/dist/client.js.map +1 -0
- package/dist/drizzle/index.cjs +20 -17
- package/dist/drizzle/index.d.cts +115 -5
- package/dist/drizzle/index.d.ts +115 -5
- package/dist/drizzle/index.js +4 -5
- package/dist/graphql/index.cjs +4 -4
- package/dist/graphql/index.d.cts +3 -2
- package/dist/graphql/index.d.ts +3 -2
- package/dist/graphql/index.js +2 -2
- package/dist/{index-4fJKLFK2.d.ts → index-BvZ1iWm2.d.ts} +1 -1
- package/dist/{index-DI0DRPNv.d.cts → index-CTLPjpMH.d.cts} +1 -1
- package/dist/index.cjs +3391 -649
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +368 -309
- package/dist/index.d.ts +368 -309
- package/dist/index.js +3253 -599
- package/dist/index.js.map +1 -1
- package/dist/media-HOT3O7RW.js +4 -0
- package/dist/media-HOT3O7RW.js.map +1 -0
- package/dist/media-WKP5AOX2.cjs +17 -0
- package/dist/media-WKP5AOX2.cjs.map +1 -0
- package/dist/mongodb/index.cjs +1 -1
- package/dist/mongodb/index.d.cts +2 -2
- package/dist/mongodb/index.d.ts +2 -2
- package/dist/mongodb/index.js +1 -1
- package/dist/mysql-media-AI6YK767.cjs +48 -0
- package/dist/mysql-media-AI6YK767.cjs.map +1 -0
- package/dist/mysql-media-CDZUS7YX.js +45 -0
- package/dist/mysql-media-CDZUS7YX.js.map +1 -0
- package/dist/postgres-auth-adapter-EVRPO7BQ.cjs +14 -0
- package/dist/{postgres-auth-adapter-VK6GY7LX.cjs.map → postgres-auth-adapter-EVRPO7BQ.cjs.map} +1 -1
- package/dist/postgres-auth-adapter-OTRWSTT5.js +5 -0
- package/dist/{postgres-auth-adapter-REJFUMP7.js.map → postgres-auth-adapter-OTRWSTT5.js.map} +1 -1
- package/dist/rate-limit-BvUAVCzw.d.cts +223 -0
- package/dist/rate-limit-CJnqG1mG.d.ts +223 -0
- package/dist/redis-adapter-2N6VA7BI.cjs +13 -0
- package/dist/{redis-adapter-LBLNKGNS.cjs.map → redis-adapter-2N6VA7BI.cjs.map} +1 -1
- package/dist/redis-adapter-RA24FNCX.js +4 -0
- package/dist/{redis-adapter-4YDY4LWE.js.map → redis-adapter-RA24FNCX.js.map} +1 -1
- package/dist/rest/index.cjs +7 -5
- package/dist/rest/index.d.cts +29 -3
- package/dist/rest/index.d.ts +29 -3
- package/dist/rest/index.js +5 -3
- package/dist/schema-CNB2DDTX.js +6 -0
- package/dist/schema-CNB2DDTX.js.map +1 -0
- package/dist/schema-Y777CQQS.cjs +67 -0
- package/dist/schema-Y777CQQS.cjs.map +1 -0
- package/dist/templates/index.cjs +24 -28
- package/dist/templates/index.d.cts +2 -4
- package/dist/templates/index.d.ts +2 -4
- package/dist/templates/index.js +2 -2
- package/dist/trpc/index.cjs +12 -12
- package/dist/trpc/index.d.cts +19 -14
- package/dist/trpc/index.d.ts +19 -14
- package/dist/trpc/index.js +3 -3
- package/dist/types-BSR91JFN.d.cts +159 -0
- package/dist/types-BSR91JFN.d.ts +159 -0
- package/dist/{types-BGM5MV_K.d.ts → types-Bt1OEk0S.d.cts} +78 -38
- package/dist/{types-BGM5MV_K.d.cts → types-Bt1OEk0S.d.ts} +78 -38
- package/dist/ws/index.cjs +1 -1
- package/dist/ws/index.js +1 -1
- package/package.json +19 -2
- package/dist/bootstrap-WMWQ4DBX.cjs +0 -29
- package/dist/bootstrap-WOVGAKZP.js +0 -4
- package/dist/chunk-3EVLFWH2.cjs.map +0 -1
- package/dist/chunk-3QX6KG2S.js +0 -2125
- package/dist/chunk-3QX6KG2S.js.map +0 -1
- package/dist/chunk-3VZCX4DF.cjs.map +0 -1
- package/dist/chunk-5BLDMQED.cjs +0 -18
- package/dist/chunk-5Y7QGIHD.js.map +0 -1
- package/dist/chunk-7G6EVYCU.cjs +0 -94
- package/dist/chunk-7G6EVYCU.cjs.map +0 -1
- package/dist/chunk-A3RQWHKD.cjs.map +0 -1
- package/dist/chunk-EINVJPFM.js.map +0 -1
- package/dist/chunk-F5B64H5S.cjs +0 -2149
- package/dist/chunk-F5B64H5S.cjs.map +0 -1
- package/dist/chunk-K7QF2QCM.cjs.map +0 -1
- package/dist/chunk-LRTZJJPD.js +0 -86
- package/dist/chunk-LRTZJJPD.js.map +0 -1
- package/dist/chunk-NSBPE2FW.js +0 -15
- package/dist/chunk-OG3KX56O.js.map +0 -1
- package/dist/chunk-QUJ4OLSC.js.map +0 -1
- package/dist/chunk-R3XIBBAW.cjs +0 -34
- package/dist/chunk-R3XIBBAW.cjs.map +0 -1
- package/dist/chunk-SDMNUYVU.js +0 -30
- package/dist/chunk-SDMNUYVU.js.map +0 -1
- package/dist/chunk-TZFJMPCH.cjs.map +0 -1
- package/dist/chunk-UEG7KMKC.cjs +0 -228
- package/dist/chunk-UEG7KMKC.cjs.map +0 -1
- package/dist/chunk-UEYC46RL.js.map +0 -1
- package/dist/chunk-V3B25QOK.cjs.map +0 -1
- package/dist/chunk-VMSRTAH7.js.map +0 -1
- package/dist/chunk-XTZSUDSI.js.map +0 -1
- package/dist/chunk-YD7Y25W7.cjs +0 -176
- package/dist/chunk-YD7Y25W7.cjs.map +0 -1
- package/dist/chunk-YPAFJ7EV.js +0 -225
- package/dist/chunk-YPAFJ7EV.js.map +0 -1
- package/dist/database-7CJOXEZR.js +0 -5
- package/dist/database-7CJOXEZR.js.map +0 -1
- package/dist/database-QOIV44GT.cjs +0 -22
- package/dist/database-QOIV44GT.cjs.map +0 -1
- package/dist/index-BMySjW6o.d.cts +0 -198
- package/dist/index-CMUNCIWQ.d.ts +0 -198
- package/dist/postgres-auth-adapter-REJFUMP7.js +0 -5
- package/dist/postgres-auth-adapter-VK6GY7LX.cjs +0 -14
- package/dist/redis-adapter-4YDY4LWE.js +0 -4
- package/dist/redis-adapter-LBLNKGNS.cjs +0 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"redis-adapter-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"redis-adapter-2N6VA7BI.cjs"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"redis-adapter-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"redis-adapter-RA24FNCX.js"}
|
package/dist/rest/index.cjs
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunkE63IF3MD_cjs = require('../chunk-E63IF3MD.cjs');
|
|
4
|
+
require('../chunk-HVSQDZZJ.cjs');
|
|
5
|
+
require('../chunk-4PWRCMTQ.cjs');
|
|
6
|
+
require('../chunk-VIONYQ2K.cjs');
|
|
7
|
+
require('../chunk-G7VZBCD6.cjs');
|
|
6
8
|
|
|
7
9
|
|
|
8
10
|
|
|
9
11
|
Object.defineProperty(exports, "createHonoApp", {
|
|
10
12
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkE63IF3MD_cjs.createHonoApp; }
|
|
12
14
|
});
|
|
13
15
|
Object.defineProperty(exports, "createRESTAPI", {
|
|
14
16
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkE63IF3MD_cjs.createRESTAPI; }
|
|
16
18
|
});
|
|
17
19
|
//# sourceMappingURL=index.cjs.map
|
|
18
20
|
//# sourceMappingURL=index.cjs.map
|
package/dist/rest/index.d.cts
CHANGED
|
@@ -1,21 +1,46 @@
|
|
|
1
1
|
import { Hono } from 'hono';
|
|
2
|
-
import {
|
|
3
|
-
import { R as Registry } from '../index-
|
|
2
|
+
import { w as BaseAdapter, Q as User } from '../types-Bt1OEk0S.cjs';
|
|
3
|
+
import { R as Registry } from '../index-CTLPjpMH.cjs';
|
|
4
|
+
import { i as createWebhookService } from '../WebhookService-Dqx9Is7m.cjs';
|
|
4
5
|
import 'zod';
|
|
5
6
|
|
|
6
7
|
interface HonoAppOptions {
|
|
7
8
|
registry: Registry;
|
|
8
9
|
db: BaseAdapter;
|
|
10
|
+
authSecret?: string;
|
|
9
11
|
user?: User;
|
|
10
|
-
req?:
|
|
12
|
+
req?: any;
|
|
11
13
|
tenantID?: string;
|
|
12
14
|
cors?: {
|
|
13
15
|
origins?: string[];
|
|
14
16
|
credentials?: boolean;
|
|
15
17
|
};
|
|
18
|
+
webhookService?: ReturnType<typeof createWebhookService>;
|
|
19
|
+
settings?: {
|
|
20
|
+
access?: {
|
|
21
|
+
enablePublicAccess?: boolean;
|
|
22
|
+
defaultCollectionAccess?: string;
|
|
23
|
+
apiAccess?: {
|
|
24
|
+
restEnabled?: boolean;
|
|
25
|
+
graphqlEnabled?: boolean;
|
|
26
|
+
trpcEnabled?: boolean;
|
|
27
|
+
websocketEnabled?: boolean;
|
|
28
|
+
requireAuth?: boolean;
|
|
29
|
+
cors?: {
|
|
30
|
+
allowedOrigins?: string[] | string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
rateLimiting?: {
|
|
34
|
+
enabled?: boolean;
|
|
35
|
+
maxRequests?: number;
|
|
36
|
+
windowMs?: number;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
16
40
|
}
|
|
17
41
|
declare function createHonoApp(options: HonoAppOptions): Hono;
|
|
18
42
|
declare function createRESTAPI(registry: Registry, db: BaseAdapter, options?: {
|
|
43
|
+
authSecret?: string;
|
|
19
44
|
user?: User;
|
|
20
45
|
req?: Request;
|
|
21
46
|
tenantID?: string;
|
|
@@ -23,6 +48,7 @@ declare function createRESTAPI(registry: Registry, db: BaseAdapter, options?: {
|
|
|
23
48
|
origins?: string[];
|
|
24
49
|
credentials?: boolean;
|
|
25
50
|
};
|
|
51
|
+
webhookService?: ReturnType<typeof createWebhookService>;
|
|
26
52
|
}): Hono;
|
|
27
53
|
|
|
28
54
|
export { type HonoAppOptions, createHonoApp, createRESTAPI };
|
package/dist/rest/index.d.ts
CHANGED
|
@@ -1,21 +1,46 @@
|
|
|
1
1
|
import { Hono } from 'hono';
|
|
2
|
-
import {
|
|
3
|
-
import { R as Registry } from '../index-
|
|
2
|
+
import { w as BaseAdapter, Q as User } from '../types-Bt1OEk0S.js';
|
|
3
|
+
import { R as Registry } from '../index-BvZ1iWm2.js';
|
|
4
|
+
import { i as createWebhookService } from '../WebhookService-CXJ5oz6L.js';
|
|
4
5
|
import 'zod';
|
|
5
6
|
|
|
6
7
|
interface HonoAppOptions {
|
|
7
8
|
registry: Registry;
|
|
8
9
|
db: BaseAdapter;
|
|
10
|
+
authSecret?: string;
|
|
9
11
|
user?: User;
|
|
10
|
-
req?:
|
|
12
|
+
req?: any;
|
|
11
13
|
tenantID?: string;
|
|
12
14
|
cors?: {
|
|
13
15
|
origins?: string[];
|
|
14
16
|
credentials?: boolean;
|
|
15
17
|
};
|
|
18
|
+
webhookService?: ReturnType<typeof createWebhookService>;
|
|
19
|
+
settings?: {
|
|
20
|
+
access?: {
|
|
21
|
+
enablePublicAccess?: boolean;
|
|
22
|
+
defaultCollectionAccess?: string;
|
|
23
|
+
apiAccess?: {
|
|
24
|
+
restEnabled?: boolean;
|
|
25
|
+
graphqlEnabled?: boolean;
|
|
26
|
+
trpcEnabled?: boolean;
|
|
27
|
+
websocketEnabled?: boolean;
|
|
28
|
+
requireAuth?: boolean;
|
|
29
|
+
cors?: {
|
|
30
|
+
allowedOrigins?: string[] | string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
rateLimiting?: {
|
|
34
|
+
enabled?: boolean;
|
|
35
|
+
maxRequests?: number;
|
|
36
|
+
windowMs?: number;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
16
40
|
}
|
|
17
41
|
declare function createHonoApp(options: HonoAppOptions): Hono;
|
|
18
42
|
declare function createRESTAPI(registry: Registry, db: BaseAdapter, options?: {
|
|
43
|
+
authSecret?: string;
|
|
19
44
|
user?: User;
|
|
20
45
|
req?: Request;
|
|
21
46
|
tenantID?: string;
|
|
@@ -23,6 +48,7 @@ declare function createRESTAPI(registry: Registry, db: BaseAdapter, options?: {
|
|
|
23
48
|
origins?: string[];
|
|
24
49
|
credentials?: boolean;
|
|
25
50
|
};
|
|
51
|
+
webhookService?: ReturnType<typeof createWebhookService>;
|
|
26
52
|
}): Hono;
|
|
27
53
|
|
|
28
54
|
export { type HonoAppOptions, createHonoApp, createRESTAPI };
|
package/dist/rest/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export { createHonoApp, createRESTAPI } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { createHonoApp, createRESTAPI } from '../chunk-6MSSF46R.js';
|
|
2
|
+
import '../chunk-HYC4GNHX.js';
|
|
3
|
+
import '../chunk-YT7HXXVN.js';
|
|
4
|
+
import '../chunk-E5X75WNB.js';
|
|
5
|
+
import '../chunk-Z6ZWNWWR.js';
|
|
4
6
|
//# sourceMappingURL=index.js.map
|
|
5
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { media, mediaFolders } from './chunk-6COM32WF.js';
|
|
2
|
+
export { settings } from './chunk-YT7HXXVN.js';
|
|
3
|
+
export { apiKeys, auditLogs, emailVerifications, lockouts, passwordHistory, passwordResets, permissions, roles, sessions, tenants, users } from './chunk-LTRCYJAG.js';
|
|
4
|
+
import './chunk-Z6ZWNWWR.js';
|
|
5
|
+
//# sourceMappingURL=schema-CNB2DDTX.js.map
|
|
6
|
+
//# sourceMappingURL=schema-CNB2DDTX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"schema-CNB2DDTX.js"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkVSTRLXMQ_cjs = require('./chunk-VSTRLXMQ.cjs');
|
|
4
|
+
var chunk4PWRCMTQ_cjs = require('./chunk-4PWRCMTQ.cjs');
|
|
5
|
+
var chunk7YITG2US_cjs = require('./chunk-7YITG2US.cjs');
|
|
6
|
+
require('./chunk-G7VZBCD6.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "media", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return chunkVSTRLXMQ_cjs.media; }
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "mediaFolders", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return chunkVSTRLXMQ_cjs.mediaFolders; }
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "settings", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return chunk4PWRCMTQ_cjs.settings; }
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(exports, "apiKeys", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () { return chunk7YITG2US_cjs.apiKeys; }
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, "auditLogs", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () { return chunk7YITG2US_cjs.auditLogs; }
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "emailVerifications", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () { return chunk7YITG2US_cjs.emailVerifications; }
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports, "lockouts", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function () { return chunk7YITG2US_cjs.lockouts; }
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, "passwordHistory", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function () { return chunk7YITG2US_cjs.passwordHistory; }
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "passwordResets", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () { return chunk7YITG2US_cjs.passwordResets; }
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(exports, "permissions", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function () { return chunk7YITG2US_cjs.permissions; }
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(exports, "roles", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function () { return chunk7YITG2US_cjs.roles; }
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "sessions", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () { return chunk7YITG2US_cjs.sessions; }
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, "tenants", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function () { return chunk7YITG2US_cjs.tenants; }
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(exports, "users", {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
get: function () { return chunk7YITG2US_cjs.users; }
|
|
65
|
+
});
|
|
66
|
+
//# sourceMappingURL=schema-Y777CQQS.cjs.map
|
|
67
|
+
//# sourceMappingURL=schema-Y777CQQS.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"schema-Y777CQQS.cjs"}
|
package/dist/templates/index.cjs
CHANGED
|
@@ -1,101 +1,97 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkKDVDIZ4Y_cjs = require('../chunk-KDVDIZ4Y.cjs');
|
|
4
|
+
require('../chunk-G7VZBCD6.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "accessSettingsGlobal", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkKDVDIZ4Y_cjs.accessSettingsGlobal; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "allSettingsGlobals", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkKDVDIZ4Y_cjs.allSettingsGlobals; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "blogCollections", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkKDVDIZ4Y_cjs.blogCollections; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "blogGlobals", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkKDVDIZ4Y_cjs.blogGlobals; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "coreSettingsGlobals", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkKDVDIZ4Y_cjs.coreSettingsGlobals; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "createTemplateConfig", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkKDVDIZ4Y_cjs.createTemplateConfig; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "ecommerceCollections", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkKDVDIZ4Y_cjs.ecommerceCollections; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "ecommerceGlobals", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkKDVDIZ4Y_cjs.ecommerceGlobals; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "ecommerceSettingsGlobals", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkKDVDIZ4Y_cjs.ecommerceSettingsGlobals; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "emailSettingsGlobal", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkKDVDIZ4Y_cjs.emailSettingsGlobal; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "getSettingsForTemplate", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkKDVDIZ4Y_cjs.getSettingsForTemplate; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "kitchenSinkCollections", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkKDVDIZ4Y_cjs.kitchenSinkCollections; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "mediaCollection", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkKDVDIZ4Y_cjs.mediaCollection; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "mediaCollections", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
63
|
-
});
|
|
64
|
-
Object.defineProperty(exports, "mediaFoldersCollection", {
|
|
65
|
-
enumerable: true,
|
|
66
|
-
get: function () { return chunkF5B64H5S_cjs.mediaFoldersCollection; }
|
|
62
|
+
get: function () { return chunkKDVDIZ4Y_cjs.mediaCollections; }
|
|
67
63
|
});
|
|
68
64
|
Object.defineProperty(exports, "minimalCollections", {
|
|
69
65
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkKDVDIZ4Y_cjs.minimalCollections; }
|
|
71
67
|
});
|
|
72
68
|
Object.defineProperty(exports, "paymentSettingsGlobal", {
|
|
73
69
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkKDVDIZ4Y_cjs.paymentSettingsGlobal; }
|
|
75
71
|
});
|
|
76
72
|
Object.defineProperty(exports, "seoSettingsGlobal", {
|
|
77
73
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkKDVDIZ4Y_cjs.seoSettingsGlobal; }
|
|
79
75
|
});
|
|
80
76
|
Object.defineProperty(exports, "settingsBySlug", {
|
|
81
77
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkKDVDIZ4Y_cjs.settingsBySlug; }
|
|
83
79
|
});
|
|
84
80
|
Object.defineProperty(exports, "siteSettingsGlobal", {
|
|
85
81
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkKDVDIZ4Y_cjs.siteSettingsGlobal; }
|
|
87
83
|
});
|
|
88
84
|
Object.defineProperty(exports, "socialSettingsGlobal", {
|
|
89
85
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkKDVDIZ4Y_cjs.socialSettingsGlobal; }
|
|
91
87
|
});
|
|
92
88
|
Object.defineProperty(exports, "storageSettingsGlobal", {
|
|
93
89
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkKDVDIZ4Y_cjs.storageSettingsGlobal; }
|
|
95
91
|
});
|
|
96
92
|
Object.defineProperty(exports, "storeSettingsGlobal", {
|
|
97
93
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkKDVDIZ4Y_cjs.storeSettingsGlobal; }
|
|
99
95
|
});
|
|
100
96
|
//# sourceMappingURL=index.cjs.map
|
|
101
97
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as CollectionConfig, G as GlobalConfig } from '../types-Bt1OEk0S.cjs';
|
|
2
2
|
|
|
3
3
|
declare const minimalCollections: Record<string, CollectionConfig>;
|
|
4
4
|
|
|
5
5
|
declare const blogCollections: Record<string, CollectionConfig>;
|
|
6
|
-
|
|
7
6
|
declare const blogGlobals: GlobalConfig[];
|
|
8
7
|
|
|
9
8
|
declare const ecommerceCollections: Record<string, CollectionConfig>;
|
|
@@ -12,7 +11,6 @@ declare const ecommerceGlobals: GlobalConfig[];
|
|
|
12
11
|
declare const kitchenSinkCollections: Record<string, CollectionConfig>;
|
|
13
12
|
|
|
14
13
|
declare const mediaCollection: CollectionConfig;
|
|
15
|
-
declare const mediaFoldersCollection: CollectionConfig;
|
|
16
14
|
declare const mediaCollections: CollectionConfig[];
|
|
17
15
|
|
|
18
16
|
declare const siteSettingsGlobal: GlobalConfig;
|
|
@@ -52,4 +50,4 @@ interface CreateTemplateConfigOptions extends TemplateConfig {
|
|
|
52
50
|
}
|
|
53
51
|
declare function createTemplateConfig(options: CreateTemplateConfigOptions): TemplateConfig;
|
|
54
52
|
|
|
55
|
-
export { type CreateTemplateConfigOptions, type TemplateConfig, type TemplateType, accessSettingsGlobal, allSettingsGlobals, blogCollections, blogGlobals, coreSettingsGlobals, createTemplateConfig, ecommerceCollections, ecommerceGlobals, ecommerceSettingsGlobals, emailSettingsGlobal, getSettingsForTemplate, kitchenSinkCollections, mediaCollection, mediaCollections,
|
|
53
|
+
export { type CreateTemplateConfigOptions, type TemplateConfig, type TemplateType, accessSettingsGlobal, allSettingsGlobals, blogCollections, blogGlobals, coreSettingsGlobals, createTemplateConfig, ecommerceCollections, ecommerceGlobals, ecommerceSettingsGlobals, emailSettingsGlobal, getSettingsForTemplate, kitchenSinkCollections, mediaCollection, mediaCollections, minimalCollections, paymentSettingsGlobal, seoSettingsGlobal, settingsBySlug, siteSettingsGlobal, socialSettingsGlobal, storageSettingsGlobal, storeSettingsGlobal };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as CollectionConfig, G as GlobalConfig } from '../types-Bt1OEk0S.js';
|
|
2
2
|
|
|
3
3
|
declare const minimalCollections: Record<string, CollectionConfig>;
|
|
4
4
|
|
|
5
5
|
declare const blogCollections: Record<string, CollectionConfig>;
|
|
6
|
-
|
|
7
6
|
declare const blogGlobals: GlobalConfig[];
|
|
8
7
|
|
|
9
8
|
declare const ecommerceCollections: Record<string, CollectionConfig>;
|
|
@@ -12,7 +11,6 @@ declare const ecommerceGlobals: GlobalConfig[];
|
|
|
12
11
|
declare const kitchenSinkCollections: Record<string, CollectionConfig>;
|
|
13
12
|
|
|
14
13
|
declare const mediaCollection: CollectionConfig;
|
|
15
|
-
declare const mediaFoldersCollection: CollectionConfig;
|
|
16
14
|
declare const mediaCollections: CollectionConfig[];
|
|
17
15
|
|
|
18
16
|
declare const siteSettingsGlobal: GlobalConfig;
|
|
@@ -52,4 +50,4 @@ interface CreateTemplateConfigOptions extends TemplateConfig {
|
|
|
52
50
|
}
|
|
53
51
|
declare function createTemplateConfig(options: CreateTemplateConfigOptions): TemplateConfig;
|
|
54
52
|
|
|
55
|
-
export { type CreateTemplateConfigOptions, type TemplateConfig, type TemplateType, accessSettingsGlobal, allSettingsGlobals, blogCollections, blogGlobals, coreSettingsGlobals, createTemplateConfig, ecommerceCollections, ecommerceGlobals, ecommerceSettingsGlobals, emailSettingsGlobal, getSettingsForTemplate, kitchenSinkCollections, mediaCollection, mediaCollections,
|
|
53
|
+
export { type CreateTemplateConfigOptions, type TemplateConfig, type TemplateType, accessSettingsGlobal, allSettingsGlobals, blogCollections, blogGlobals, coreSettingsGlobals, createTemplateConfig, ecommerceCollections, ecommerceGlobals, ecommerceSettingsGlobals, emailSettingsGlobal, getSettingsForTemplate, kitchenSinkCollections, mediaCollection, mediaCollections, minimalCollections, paymentSettingsGlobal, seoSettingsGlobal, settingsBySlug, siteSettingsGlobal, socialSettingsGlobal, storageSettingsGlobal, storeSettingsGlobal };
|
package/dist/templates/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { accessSettingsGlobal, allSettingsGlobals, blogCollections, blogGlobals, coreSettingsGlobals, createTemplateConfig, ecommerceCollections, ecommerceGlobals, ecommerceSettingsGlobals, emailSettingsGlobal, getSettingsForTemplate, kitchenSinkCollections, mediaCollection, mediaCollections,
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { accessSettingsGlobal, allSettingsGlobals, blogCollections, blogGlobals, coreSettingsGlobals, createTemplateConfig, ecommerceCollections, ecommerceGlobals, ecommerceSettingsGlobals, emailSettingsGlobal, getSettingsForTemplate, kitchenSinkCollections, mediaCollection, mediaCollections, minimalCollections, paymentSettingsGlobal, seoSettingsGlobal, settingsBySlug, siteSettingsGlobal, socialSettingsGlobal, storageSettingsGlobal, storeSettingsGlobal } from '../chunk-RONAX6UU.js';
|
|
2
|
+
import '../chunk-Z6ZWNWWR.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/trpc/index.cjs
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunk42JPONZU_cjs = require('../chunk-42JPONZU.cjs');
|
|
4
|
+
require('../chunk-VIONYQ2K.cjs');
|
|
5
|
+
require('../chunk-G7VZBCD6.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "createContext", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunk42JPONZU_cjs.createContext; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "createCountProcedure", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunk42JPONZU_cjs.createCountProcedure; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "createCreateProcedure", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunk42JPONZU_cjs.createCreateProcedure; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "createDeleteProcedure", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunk42JPONZU_cjs.createDeleteProcedure; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "createDynamicRouter", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunk42JPONZU_cjs.createDynamicRouter; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "createFindByIDProcedure", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunk42JPONZU_cjs.createFindByIDProcedure; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "createFindProcedure", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunk42JPONZU_cjs.createFindProcedure; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "createKyroServer", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunk42JPONZU_cjs.createKyroServer; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "createUpdateProcedure", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunk42JPONZU_cjs.createUpdateProcedure; }
|
|
44
44
|
});
|
|
45
45
|
//# sourceMappingURL=index.cjs.map
|
|
46
46
|
//# sourceMappingURL=index.cjs.map
|
package/dist/trpc/index.d.cts
CHANGED
|
@@ -1,11 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { w as BaseAdapter, W as Request, Q as User, y as FindResult } from '../types-Bt1OEk0S.cjs';
|
|
2
|
+
import { i as createWebhookService } from '../WebhookService-Dqx9Is7m.cjs';
|
|
2
3
|
|
|
3
|
-
interface
|
|
4
|
+
interface ApiKeyContext {
|
|
5
|
+
userId: string;
|
|
6
|
+
user: Partial<User>;
|
|
7
|
+
permissions: string[];
|
|
8
|
+
apiKeyId: string;
|
|
9
|
+
tenantId?: string;
|
|
10
|
+
role?: string;
|
|
11
|
+
}
|
|
12
|
+
interface KyroContext {
|
|
4
13
|
db: BaseAdapter;
|
|
5
14
|
registry: any;
|
|
6
15
|
user?: User;
|
|
7
16
|
tenantID?: string;
|
|
8
17
|
req: Request;
|
|
18
|
+
apiKey?: ApiKeyContext;
|
|
19
|
+
webhookService?: ReturnType<typeof createWebhookService>;
|
|
20
|
+
settings?: Record<string, any>;
|
|
9
21
|
[key: string]: any;
|
|
10
22
|
}
|
|
11
23
|
declare function createContext(options: {
|
|
@@ -14,9 +26,10 @@ declare function createContext(options: {
|
|
|
14
26
|
req: Request;
|
|
15
27
|
user?: User;
|
|
16
28
|
tenantID?: string;
|
|
17
|
-
|
|
29
|
+
settings?: Record<string, any>;
|
|
30
|
+
}): Promise<KyroContext>;
|
|
18
31
|
|
|
19
|
-
declare function createDynamicRouter(ctx: KyroContext
|
|
32
|
+
declare function createDynamicRouter(ctx: KyroContext): Record<string, any>;
|
|
20
33
|
interface KyroRouter {
|
|
21
34
|
[collectionSlug: string]: {
|
|
22
35
|
find: (input: {
|
|
@@ -71,16 +84,8 @@ interface KyroRouter {
|
|
|
71
84
|
}>;
|
|
72
85
|
};
|
|
73
86
|
}
|
|
74
|
-
declare function createKyroServer(ctx: KyroContext
|
|
87
|
+
declare function createKyroServer(ctx: KyroContext): KyroRouter;
|
|
75
88
|
|
|
76
|
-
interface KyroContext {
|
|
77
|
-
db: BaseAdapter;
|
|
78
|
-
registry: any;
|
|
79
|
-
user?: User;
|
|
80
|
-
tenantID?: string;
|
|
81
|
-
req: Request;
|
|
82
|
-
[key: string]: any;
|
|
83
|
-
}
|
|
84
89
|
declare function createFindProcedure(ctx: KyroContext): (input: {
|
|
85
90
|
collection: string;
|
|
86
91
|
where?: Record<string, any>;
|
|
@@ -127,4 +132,4 @@ declare function createCountProcedure(ctx: KyroContext): (input: {
|
|
|
127
132
|
totalDocs: number;
|
|
128
133
|
}>;
|
|
129
134
|
|
|
130
|
-
export { type KyroContext
|
|
135
|
+
export { type KyroContext, type KyroRouter, createContext, createCountProcedure, createCreateProcedure, createDeleteProcedure, createDynamicRouter, createFindByIDProcedure, createFindProcedure, createKyroServer, createUpdateProcedure };
|
package/dist/trpc/index.d.ts
CHANGED
|
@@ -1,11 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { w as BaseAdapter, W as Request, Q as User, y as FindResult } from '../types-Bt1OEk0S.js';
|
|
2
|
+
import { i as createWebhookService } from '../WebhookService-CXJ5oz6L.js';
|
|
2
3
|
|
|
3
|
-
interface
|
|
4
|
+
interface ApiKeyContext {
|
|
5
|
+
userId: string;
|
|
6
|
+
user: Partial<User>;
|
|
7
|
+
permissions: string[];
|
|
8
|
+
apiKeyId: string;
|
|
9
|
+
tenantId?: string;
|
|
10
|
+
role?: string;
|
|
11
|
+
}
|
|
12
|
+
interface KyroContext {
|
|
4
13
|
db: BaseAdapter;
|
|
5
14
|
registry: any;
|
|
6
15
|
user?: User;
|
|
7
16
|
tenantID?: string;
|
|
8
17
|
req: Request;
|
|
18
|
+
apiKey?: ApiKeyContext;
|
|
19
|
+
webhookService?: ReturnType<typeof createWebhookService>;
|
|
20
|
+
settings?: Record<string, any>;
|
|
9
21
|
[key: string]: any;
|
|
10
22
|
}
|
|
11
23
|
declare function createContext(options: {
|
|
@@ -14,9 +26,10 @@ declare function createContext(options: {
|
|
|
14
26
|
req: Request;
|
|
15
27
|
user?: User;
|
|
16
28
|
tenantID?: string;
|
|
17
|
-
|
|
29
|
+
settings?: Record<string, any>;
|
|
30
|
+
}): Promise<KyroContext>;
|
|
18
31
|
|
|
19
|
-
declare function createDynamicRouter(ctx: KyroContext
|
|
32
|
+
declare function createDynamicRouter(ctx: KyroContext): Record<string, any>;
|
|
20
33
|
interface KyroRouter {
|
|
21
34
|
[collectionSlug: string]: {
|
|
22
35
|
find: (input: {
|
|
@@ -71,16 +84,8 @@ interface KyroRouter {
|
|
|
71
84
|
}>;
|
|
72
85
|
};
|
|
73
86
|
}
|
|
74
|
-
declare function createKyroServer(ctx: KyroContext
|
|
87
|
+
declare function createKyroServer(ctx: KyroContext): KyroRouter;
|
|
75
88
|
|
|
76
|
-
interface KyroContext {
|
|
77
|
-
db: BaseAdapter;
|
|
78
|
-
registry: any;
|
|
79
|
-
user?: User;
|
|
80
|
-
tenantID?: string;
|
|
81
|
-
req: Request;
|
|
82
|
-
[key: string]: any;
|
|
83
|
-
}
|
|
84
89
|
declare function createFindProcedure(ctx: KyroContext): (input: {
|
|
85
90
|
collection: string;
|
|
86
91
|
where?: Record<string, any>;
|
|
@@ -127,4 +132,4 @@ declare function createCountProcedure(ctx: KyroContext): (input: {
|
|
|
127
132
|
totalDocs: number;
|
|
128
133
|
}>;
|
|
129
134
|
|
|
130
|
-
export { type KyroContext
|
|
135
|
+
export { type KyroContext, type KyroRouter, createContext, createCountProcedure, createCreateProcedure, createDeleteProcedure, createDynamicRouter, createFindByIDProcedure, createFindProcedure, createKyroServer, createUpdateProcedure };
|
package/dist/trpc/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { createContext, createCountProcedure, createCreateProcedure, createDeleteProcedure, createDynamicRouter, createFindByIDProcedure, createFindProcedure, createKyroServer, createUpdateProcedure } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { createContext, createCountProcedure, createCreateProcedure, createDeleteProcedure, createDynamicRouter, createFindByIDProcedure, createFindProcedure, createKyroServer, createUpdateProcedure } from '../chunk-OUGKLCYF.js';
|
|
2
|
+
import '../chunk-E5X75WNB.js';
|
|
3
|
+
import '../chunk-Z6ZWNWWR.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|