@kyro-cms/core 0.12.10 → 0.12.15

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.
Files changed (90) hide show
  1. package/dist/api-handler-graphql.cjs +1 -1
  2. package/dist/api-handler-graphql.js +1 -1
  3. package/dist/api-handler-trpc.cjs +1 -1
  4. package/dist/api-handler-trpc.js +1 -1
  5. package/dist/api-handler.cjs +1 -1
  6. package/dist/api-handler.js +1 -1
  7. package/dist/{bootstrap-4W4342G2.js → bootstrap-A3OBR3YI.js} +1 -1
  8. package/dist/bootstrap-YLGVKTQS.cjs +1 -0
  9. package/dist/{chunk-EYUT6MOM.cjs → chunk-2NJR2B4W.cjs} +2 -2
  10. package/dist/chunk-3RR6IV5I.js +133 -0
  11. package/dist/chunk-3ZFRP5M2.cjs +133 -0
  12. package/dist/{chunk-7WOX27LK.js → chunk-6NGUY76Y.js} +22 -22
  13. package/dist/chunk-DTSYK7KK.js +21 -0
  14. package/dist/{chunk-5B7GPMJI.js → chunk-FGSIHWQJ.js} +1 -1
  15. package/dist/{chunk-AJAZ7D3W.cjs → chunk-GCQTSPX6.cjs} +22 -22
  16. package/dist/chunk-GO34AOBZ.cjs +1 -0
  17. package/dist/chunk-IETGL7WJ.js +1 -0
  18. package/dist/chunk-IQYP3DDJ.cjs +21 -0
  19. package/dist/chunk-M5JUPA7G.cjs +86 -0
  20. package/dist/chunk-NI7S5JMH.js +86 -0
  21. package/dist/{chunk-MSTTFMCM.js → chunk-O62KJ2J7.js} +1 -1
  22. package/dist/{chunk-AMOXD7EJ.cjs → chunk-QMQXKCCQ.cjs} +1 -1
  23. package/dist/{chunk-WHK4LW6V.cjs → chunk-RY3BG3AN.cjs} +1 -1
  24. package/dist/{chunk-NTZACLOF.js → chunk-ZZIGN5PZ.js} +1 -1
  25. package/dist/cli/index.cjs +1 -1
  26. package/dist/cli/index.js +1 -1
  27. package/dist/drizzle/index.cjs +1 -1
  28. package/dist/drizzle/index.js +1 -1
  29. package/dist/index.cjs +2 -2
  30. package/dist/index.js +1 -1
  31. package/dist/rest/index.cjs +1 -1
  32. package/dist/rest/index.js +1 -1
  33. package/dist/templates/index.cjs +1 -1
  34. package/dist/templates/index.js +1 -1
  35. package/package.json +3 -3
  36. package/dist/WebhookService-ByrpAI4d.d.ts +0 -143
  37. package/dist/WebhookService-i-Kl3dvf.d.cts +0 -143
  38. package/dist/api-handler-graphql.d.cts +0 -6
  39. package/dist/api-handler-graphql.d.ts +0 -6
  40. package/dist/api-handler-trpc.d.cts +0 -5
  41. package/dist/api-handler-trpc.d.ts +0 -5
  42. package/dist/api-handler.d.cts +0 -7
  43. package/dist/api-handler.d.ts +0 -7
  44. package/dist/base-iyJTfH-3.d.cts +0 -74
  45. package/dist/base-oUSURe4_.d.ts +0 -74
  46. package/dist/bootstrap-ZGTRVWYE.cjs +0 -1
  47. package/dist/chunk-4JW6IVU5.js +0 -86
  48. package/dist/chunk-5YW2WHXR.cjs +0 -133
  49. package/dist/chunk-AE6GXUT7.js +0 -1
  50. package/dist/chunk-GFU7AOI3.cjs +0 -1
  51. package/dist/chunk-J5SP3Y2H.js +0 -133
  52. package/dist/chunk-NUUPBDZC.js +0 -21
  53. package/dist/chunk-OTFVOKH3.cjs +0 -21
  54. package/dist/chunk-PFHIBSOU.cjs +0 -86
  55. package/dist/cli/index.d.cts +0 -1
  56. package/dist/cli/index.d.ts +0 -1
  57. package/dist/client.d.cts +0 -12
  58. package/dist/client.d.ts +0 -12
  59. package/dist/drizzle/index.d.cts +0 -168
  60. package/dist/drizzle/index.d.ts +0 -168
  61. package/dist/fields/index.d.cts +0 -7
  62. package/dist/fields/index.d.ts +0 -7
  63. package/dist/graphql/index.d.cts +0 -57
  64. package/dist/graphql/index.d.ts +0 -57
  65. package/dist/index-Bz9JqRGI.d.cts +0 -86
  66. package/dist/index-Bz9JqRGI.d.ts +0 -86
  67. package/dist/index-DNy8jbA2.d.cts +0 -282
  68. package/dist/index-DVDMEql7.d.ts +0 -282
  69. package/dist/index.d.cts +0 -1246
  70. package/dist/index.d.ts +0 -1246
  71. package/dist/integration.d.cts +0 -14
  72. package/dist/integration.d.ts +0 -14
  73. package/dist/mongodb/index.d.cts +0 -134
  74. package/dist/mongodb/index.d.ts +0 -134
  75. package/dist/rest/index.d.cts +0 -56
  76. package/dist/rest/index.d.ts +0 -56
  77. package/dist/richtext-DrhORshE.d.cts +0 -5
  78. package/dist/richtext-DrhORshE.d.ts +0 -5
  79. package/dist/templates/index.d.cts +0 -107
  80. package/dist/templates/index.d.ts +0 -107
  81. package/dist/trpc/index.d.cts +0 -142
  82. package/dist/trpc/index.d.ts +0 -142
  83. package/dist/types-BcZiluXL.d.cts +0 -569
  84. package/dist/types-CpjuXbe7.d.cts +0 -150
  85. package/dist/types-CpjuXbe7.d.ts +0 -150
  86. package/dist/types-Dc8VAPhF.d.ts +0 -569
  87. package/dist/types-euTszc-1.d.cts +0 -294
  88. package/dist/types-euTszc-1.d.ts +0 -294
  89. package/dist/ws/index.d.cts +0 -88
  90. package/dist/ws/index.d.ts +0 -88
@@ -1,142 +0,0 @@
1
- import { B as BaseAdapter, R as Request, j as User, b as FindResult } from '../types-BcZiluXL.cjs';
2
- import { j as createWebhookService } from '../WebhookService-i-Kl3dvf.cjs';
3
- import '../types-euTszc-1.cjs';
4
-
5
- interface ApiKeyContext {
6
- userId: string;
7
- user: Partial<User>;
8
- permissions: string[];
9
- apiKeyId: string;
10
- tenantId?: string;
11
- role?: string;
12
- }
13
- interface KyroContext {
14
- db: BaseAdapter;
15
- registry: any;
16
- user?: User;
17
- tenantId?: string;
18
- req: Request;
19
- apiKey?: ApiKeyContext;
20
- webhookService?: ReturnType<typeof createWebhookService>;
21
- settings?: Record<string, any>;
22
- [key: string]: any;
23
- }
24
- declare function createContext(options: {
25
- db: BaseAdapter;
26
- registry: any;
27
- req: Request;
28
- user?: User;
29
- tenantId?: string;
30
- settings?: Record<string, any>;
31
- }): Promise<KyroContext>;
32
-
33
- declare function createFindProcedure(ctx: KyroContext): (input: {
34
- collection: string;
35
- where?: Record<string, any>;
36
- sort?: string;
37
- limit?: number;
38
- page?: number;
39
- depth?: number;
40
- select?: string[];
41
- draft?: boolean;
42
- }) => Promise<FindResult<unknown>>;
43
- declare function createFindByIDProcedure(ctx: KyroContext): (input: {
44
- collection: string;
45
- id: string;
46
- depth?: number;
47
- select?: string[];
48
- draft?: boolean;
49
- }) => Promise<{}>;
50
- declare function createCreateProcedure(ctx: KyroContext): (input: {
51
- collection: string;
52
- data: Record<string, any>;
53
- depth?: number;
54
- select?: string[];
55
- }) => Promise<{
56
- doc: unknown;
57
- }>;
58
- declare function createUpdateProcedure(ctx: KyroContext): (input: {
59
- collection: string;
60
- id: string;
61
- data: Record<string, any>;
62
- depth?: number;
63
- select?: string[];
64
- baseUpdatedAt?: string;
65
- }) => Promise<{
66
- doc: unknown;
67
- }>;
68
- declare function createDeleteProcedure(ctx: KyroContext): (input: {
69
- collection: string;
70
- id: string;
71
- }) => Promise<{
72
- doc: unknown;
73
- message: string;
74
- }>;
75
- declare function createCountProcedure(ctx: KyroContext): (input: {
76
- collection: string;
77
- where?: Record<string, any>;
78
- }) => Promise<{
79
- totalDocs: number;
80
- }>;
81
-
82
- declare function createDynamicRouter(ctx: KyroContext): Record<string, any>;
83
- interface KyroRouter {
84
- [collectionSlug: string]: {
85
- find: (input: {
86
- where?: Record<string, any>;
87
- sort?: string;
88
- limit?: number;
89
- page?: number;
90
- depth?: number;
91
- select?: string[];
92
- draft?: boolean;
93
- }) => Promise<{
94
- docs: any[];
95
- totalDocs: number;
96
- limit: number;
97
- totalPages: number;
98
- page: number;
99
- pagingCounter: number;
100
- hasPrevPage: boolean;
101
- hasNextPage: boolean;
102
- prevPage: number | null;
103
- nextPage: number | null;
104
- }>;
105
- findByID: (input: {
106
- id: string;
107
- depth?: number;
108
- select?: string[];
109
- draft?: boolean;
110
- }) => Promise<any>;
111
- create: (input: {
112
- data: Record<string, any>;
113
- depth?: number;
114
- select?: string[];
115
- }) => Promise<{
116
- doc: any;
117
- }>;
118
- update: (input: {
119
- id: string;
120
- data: Record<string, any>;
121
- depth?: number;
122
- select?: string[];
123
- baseUpdatedAt?: string;
124
- }) => Promise<{
125
- doc: any;
126
- }>;
127
- delete: (input: {
128
- id: string;
129
- }) => Promise<{
130
- doc: any;
131
- message: string;
132
- }>;
133
- count: (input: {
134
- where?: Record<string, any>;
135
- }) => Promise<{
136
- totalDocs: number;
137
- }>;
138
- };
139
- }
140
- declare function createKyroServer(ctx: KyroContext): KyroRouter;
141
-
142
- export { type KyroContext, type KyroRouter, createContext, createCountProcedure, createCreateProcedure, createDeleteProcedure, createDynamicRouter, createFindByIDProcedure, createFindProcedure, createKyroServer, createUpdateProcedure };
@@ -1,142 +0,0 @@
1
- import { B as BaseAdapter, R as Request, j as User, b as FindResult } from '../types-Dc8VAPhF.js';
2
- import { j as createWebhookService } from '../WebhookService-ByrpAI4d.js';
3
- import '../types-euTszc-1.js';
4
-
5
- interface ApiKeyContext {
6
- userId: string;
7
- user: Partial<User>;
8
- permissions: string[];
9
- apiKeyId: string;
10
- tenantId?: string;
11
- role?: string;
12
- }
13
- interface KyroContext {
14
- db: BaseAdapter;
15
- registry: any;
16
- user?: User;
17
- tenantId?: string;
18
- req: Request;
19
- apiKey?: ApiKeyContext;
20
- webhookService?: ReturnType<typeof createWebhookService>;
21
- settings?: Record<string, any>;
22
- [key: string]: any;
23
- }
24
- declare function createContext(options: {
25
- db: BaseAdapter;
26
- registry: any;
27
- req: Request;
28
- user?: User;
29
- tenantId?: string;
30
- settings?: Record<string, any>;
31
- }): Promise<KyroContext>;
32
-
33
- declare function createFindProcedure(ctx: KyroContext): (input: {
34
- collection: string;
35
- where?: Record<string, any>;
36
- sort?: string;
37
- limit?: number;
38
- page?: number;
39
- depth?: number;
40
- select?: string[];
41
- draft?: boolean;
42
- }) => Promise<FindResult<unknown>>;
43
- declare function createFindByIDProcedure(ctx: KyroContext): (input: {
44
- collection: string;
45
- id: string;
46
- depth?: number;
47
- select?: string[];
48
- draft?: boolean;
49
- }) => Promise<{}>;
50
- declare function createCreateProcedure(ctx: KyroContext): (input: {
51
- collection: string;
52
- data: Record<string, any>;
53
- depth?: number;
54
- select?: string[];
55
- }) => Promise<{
56
- doc: unknown;
57
- }>;
58
- declare function createUpdateProcedure(ctx: KyroContext): (input: {
59
- collection: string;
60
- id: string;
61
- data: Record<string, any>;
62
- depth?: number;
63
- select?: string[];
64
- baseUpdatedAt?: string;
65
- }) => Promise<{
66
- doc: unknown;
67
- }>;
68
- declare function createDeleteProcedure(ctx: KyroContext): (input: {
69
- collection: string;
70
- id: string;
71
- }) => Promise<{
72
- doc: unknown;
73
- message: string;
74
- }>;
75
- declare function createCountProcedure(ctx: KyroContext): (input: {
76
- collection: string;
77
- where?: Record<string, any>;
78
- }) => Promise<{
79
- totalDocs: number;
80
- }>;
81
-
82
- declare function createDynamicRouter(ctx: KyroContext): Record<string, any>;
83
- interface KyroRouter {
84
- [collectionSlug: string]: {
85
- find: (input: {
86
- where?: Record<string, any>;
87
- sort?: string;
88
- limit?: number;
89
- page?: number;
90
- depth?: number;
91
- select?: string[];
92
- draft?: boolean;
93
- }) => Promise<{
94
- docs: any[];
95
- totalDocs: number;
96
- limit: number;
97
- totalPages: number;
98
- page: number;
99
- pagingCounter: number;
100
- hasPrevPage: boolean;
101
- hasNextPage: boolean;
102
- prevPage: number | null;
103
- nextPage: number | null;
104
- }>;
105
- findByID: (input: {
106
- id: string;
107
- depth?: number;
108
- select?: string[];
109
- draft?: boolean;
110
- }) => Promise<any>;
111
- create: (input: {
112
- data: Record<string, any>;
113
- depth?: number;
114
- select?: string[];
115
- }) => Promise<{
116
- doc: any;
117
- }>;
118
- update: (input: {
119
- id: string;
120
- data: Record<string, any>;
121
- depth?: number;
122
- select?: string[];
123
- baseUpdatedAt?: string;
124
- }) => Promise<{
125
- doc: any;
126
- }>;
127
- delete: (input: {
128
- id: string;
129
- }) => Promise<{
130
- doc: any;
131
- message: string;
132
- }>;
133
- count: (input: {
134
- where?: Record<string, any>;
135
- }) => Promise<{
136
- totalDocs: number;
137
- }>;
138
- };
139
- }
140
- declare function createKyroServer(ctx: KyroContext): KyroRouter;
141
-
142
- export { type KyroContext, type KyroRouter, createContext, createCountProcedure, createCreateProcedure, createDeleteProcedure, createDynamicRouter, createFindByIDProcedure, createFindProcedure, createKyroServer, createUpdateProcedure };