@kyro-cms/core 0.1.1 → 0.1.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 +196 -109
- package/dist/bootstrap-2WJK6PG7.cjs +29 -0
- package/dist/bootstrap-2WJK6PG7.cjs.map +1 -0
- package/dist/bootstrap-Q2TWUQF3.js +4 -0
- package/dist/bootstrap-Q2TWUQF3.js.map +1 -0
- package/dist/chunk-3QX6KG2S.js +2125 -0
- package/dist/chunk-3QX6KG2S.js.map +1 -0
- package/dist/chunk-5AOILNGY.cjs +212 -0
- package/dist/chunk-5AOILNGY.cjs.map +1 -0
- package/dist/{chunk-DKSMFC3L.js → chunk-EINVJPFM.js} +2 -2
- package/dist/{chunk-DKSMFC3L.js.map → chunk-EINVJPFM.js.map} +1 -1
- package/dist/chunk-F5B64H5S.cjs +2149 -0
- package/dist/chunk-F5B64H5S.cjs.map +1 -0
- package/dist/chunk-I4BORBXT.cjs +914 -0
- package/dist/chunk-I4BORBXT.cjs.map +1 -0
- package/dist/chunk-KA3UOIFC.js +206 -0
- package/dist/chunk-KA3UOIFC.js.map +1 -0
- package/dist/chunk-KWTKEBHM.cjs +176 -0
- package/dist/chunk-KWTKEBHM.cjs.map +1 -0
- package/dist/chunk-M4JFHQ5J.js +170 -0
- package/dist/chunk-M4JFHQ5J.js.map +1 -0
- package/dist/chunk-PZ5AY32C.js +9 -0
- package/dist/chunk-PZ5AY32C.js.map +1 -0
- package/dist/chunk-Q7SFCCGT.cjs +11 -0
- package/dist/chunk-Q7SFCCGT.cjs.map +1 -0
- package/dist/chunk-U4CHJTWX.cjs +94 -0
- package/dist/chunk-U4CHJTWX.cjs.map +1 -0
- package/dist/{chunk-3Q3FS5J4.cjs → chunk-V3B25QOK.cjs} +2 -2
- package/dist/{chunk-3Q3FS5J4.cjs.map → chunk-V3B25QOK.cjs.map} +1 -1
- package/dist/chunk-V67YXRBT.js +899 -0
- package/dist/chunk-V67YXRBT.js.map +1 -0
- package/dist/chunk-XLMVCGXA.js +86 -0
- package/dist/chunk-XLMVCGXA.js.map +1 -0
- package/dist/cli/index.cjs +106 -14
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +106 -14
- package/dist/cli/index.js.map +1 -1
- package/dist/database-37KXWUER.js +5 -0
- package/dist/database-37KXWUER.js.map +1 -0
- package/dist/database-LJKD3HE4.cjs +22 -0
- package/dist/database-LJKD3HE4.cjs.map +1 -0
- package/dist/drizzle/index.cjs +25 -5
- package/dist/drizzle/index.d.cts +5 -49
- package/dist/drizzle/index.d.ts +5 -49
- package/dist/drizzle/index.js +5 -1
- package/dist/graphql/index.cjs +1 -0
- package/dist/graphql/index.js +1 -0
- package/dist/index-BVFlb7uU.d.ts +192 -0
- package/dist/index-CzkEHKqu.d.cts +192 -0
- package/dist/index.cjs +1203 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +382 -68
- package/dist/index.d.ts +382 -68
- package/dist/index.js +1110 -20
- package/dist/index.js.map +1 -1
- package/dist/mongodb/index.cjs +1 -0
- package/dist/mongodb/index.js +1 -0
- package/dist/postgres-auth-adapter-CYZAVPPP.cjs +14 -0
- package/dist/postgres-auth-adapter-CYZAVPPP.cjs.map +1 -0
- package/dist/postgres-auth-adapter-LTDUGBMB.js +5 -0
- package/dist/postgres-auth-adapter-LTDUGBMB.js.map +1 -0
- package/dist/rest/index.cjs +1 -0
- package/dist/rest/index.js +1 -0
- package/dist/templates/index.cjs +94 -536
- package/dist/templates/index.cjs.map +1 -1
- package/dist/templates/index.d.cts +45 -1
- package/dist/templates/index.d.ts +45 -1
- package/dist/templates/index.js +2 -535
- package/dist/templates/index.js.map +1 -1
- package/dist/trpc/index.cjs +1 -0
- package/dist/trpc/index.js +1 -0
- package/dist/ws/index.cjs +1 -0
- package/dist/ws/index.js +1 -0
- package/package.json +23 -8
package/dist/mongodb/index.cjs
CHANGED
package/dist/mongodb/index.js
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkKWTKEBHM_cjs = require('./chunk-KWTKEBHM.cjs');
|
|
4
|
+
require('./chunk-5AOILNGY.cjs');
|
|
5
|
+
require('./chunk-Q7SFCCGT.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "PostgresAuthAdapter", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkKWTKEBHM_cjs.PostgresAuthAdapter; }
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=postgres-auth-adapter-CYZAVPPP.cjs.map
|
|
14
|
+
//# sourceMappingURL=postgres-auth-adapter-CYZAVPPP.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"postgres-auth-adapter-CYZAVPPP.cjs"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"postgres-auth-adapter-LTDUGBMB.js"}
|
package/dist/rest/index.cjs
CHANGED
package/dist/rest/index.js
CHANGED
package/dist/templates/index.cjs
CHANGED
|
@@ -1,543 +1,101 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
posts: {
|
|
6
|
-
slug: "posts",
|
|
7
|
-
label: "Posts",
|
|
8
|
-
labelPlural: "Posts",
|
|
9
|
-
singularLabel: "Post",
|
|
10
|
-
admin: {
|
|
11
|
-
useAsTitle: "title",
|
|
12
|
-
defaultColumns: ["title", "status", "createdAt"],
|
|
13
|
-
description: "Blog posts and articles"
|
|
14
|
-
},
|
|
15
|
-
fields: [
|
|
16
|
-
{
|
|
17
|
-
name: "title",
|
|
18
|
-
type: "text",
|
|
19
|
-
required: true,
|
|
20
|
-
label: "Title",
|
|
21
|
-
admin: { description: "The post title" }
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
name: "slug",
|
|
25
|
-
type: "text",
|
|
26
|
-
required: true,
|
|
27
|
-
label: "Slug",
|
|
28
|
-
admin: { description: "URL-friendly identifier" }
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
name: "content",
|
|
32
|
-
type: "richtext",
|
|
33
|
-
label: "Content"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
name: "status",
|
|
37
|
-
type: "select",
|
|
38
|
-
label: "Status",
|
|
39
|
-
options: [
|
|
40
|
-
{ label: "Draft", value: "draft" },
|
|
41
|
-
{ label: "Published", value: "published" }
|
|
42
|
-
],
|
|
43
|
-
defaultValue: "draft",
|
|
44
|
-
admin: {
|
|
45
|
-
description: "Publication status"
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
name: "publishedAt",
|
|
50
|
-
type: "date",
|
|
51
|
-
label: "Published At",
|
|
52
|
-
admin: { description: "When to publish this post" }
|
|
53
|
-
}
|
|
54
|
-
],
|
|
55
|
-
timestamps: true
|
|
56
|
-
}
|
|
57
|
-
};
|
|
3
|
+
var chunkF5B64H5S_cjs = require('../chunk-F5B64H5S.cjs');
|
|
4
|
+
require('../chunk-Q7SFCCGT.cjs');
|
|
58
5
|
|
|
59
|
-
// src/templates/blog.ts
|
|
60
|
-
var blogCollections = {
|
|
61
|
-
posts: {
|
|
62
|
-
slug: "posts",
|
|
63
|
-
label: "Posts",
|
|
64
|
-
labelPlural: "Posts",
|
|
65
|
-
singularLabel: "Post",
|
|
66
|
-
admin: {
|
|
67
|
-
useAsTitle: "title",
|
|
68
|
-
defaultColumns: ["title", "category", "status", "createdAt"],
|
|
69
|
-
description: "Blog posts and articles"
|
|
70
|
-
},
|
|
71
|
-
fields: [
|
|
72
|
-
{
|
|
73
|
-
name: "title",
|
|
74
|
-
type: "text",
|
|
75
|
-
required: true,
|
|
76
|
-
label: "Title"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
name: "slug",
|
|
80
|
-
type: "text",
|
|
81
|
-
required: true,
|
|
82
|
-
label: "Slug"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
name: "excerpt",
|
|
86
|
-
type: "textarea",
|
|
87
|
-
label: "Excerpt",
|
|
88
|
-
admin: { description: "Brief summary for listings" }
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
name: "content",
|
|
92
|
-
type: "richtext",
|
|
93
|
-
label: "Content"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
name: "featuredImage",
|
|
97
|
-
type: "upload",
|
|
98
|
-
label: "Featured Image",
|
|
99
|
-
relationTo: "media"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
name: "category",
|
|
103
|
-
type: "relationship",
|
|
104
|
-
label: "Category",
|
|
105
|
-
relationTo: "categories"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
name: "tags",
|
|
109
|
-
type: "array",
|
|
110
|
-
label: "Tags",
|
|
111
|
-
fields: [
|
|
112
|
-
{ name: "tag", type: "text" }
|
|
113
|
-
]
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
name: "status",
|
|
117
|
-
type: "select",
|
|
118
|
-
label: "Status",
|
|
119
|
-
options: [
|
|
120
|
-
{ label: "Draft", value: "draft" },
|
|
121
|
-
{ label: "Published", value: "published" }
|
|
122
|
-
],
|
|
123
|
-
defaultValue: "draft"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
name: "publishedAt",
|
|
127
|
-
type: "date",
|
|
128
|
-
label: "Published At"
|
|
129
|
-
}
|
|
130
|
-
],
|
|
131
|
-
timestamps: true
|
|
132
|
-
},
|
|
133
|
-
categories: {
|
|
134
|
-
slug: "categories",
|
|
135
|
-
label: "Categories",
|
|
136
|
-
labelPlural: "Categories",
|
|
137
|
-
singularLabel: "Category",
|
|
138
|
-
admin: {
|
|
139
|
-
useAsTitle: "name",
|
|
140
|
-
defaultColumns: ["name", "slug", "postCount"],
|
|
141
|
-
description: "Post categories"
|
|
142
|
-
},
|
|
143
|
-
fields: [
|
|
144
|
-
{
|
|
145
|
-
name: "name",
|
|
146
|
-
type: "text",
|
|
147
|
-
required: true,
|
|
148
|
-
label: "Name"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
name: "slug",
|
|
152
|
-
type: "text",
|
|
153
|
-
required: true,
|
|
154
|
-
label: "Slug"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
name: "description",
|
|
158
|
-
type: "textarea",
|
|
159
|
-
label: "Description"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
name: "parent",
|
|
163
|
-
type: "relationship",
|
|
164
|
-
label: "Parent Category",
|
|
165
|
-
relationTo: "categories"
|
|
166
|
-
}
|
|
167
|
-
],
|
|
168
|
-
timestamps: true
|
|
169
|
-
},
|
|
170
|
-
media: {
|
|
171
|
-
slug: "media",
|
|
172
|
-
label: "Media",
|
|
173
|
-
labelPlural: "Media",
|
|
174
|
-
singularLabel: "Medium",
|
|
175
|
-
admin: {
|
|
176
|
-
useAsTitle: "filename",
|
|
177
|
-
defaultColumns: ["filename", "mimeType", "size", "uploadedAt"],
|
|
178
|
-
description: "Uploaded files and images"
|
|
179
|
-
},
|
|
180
|
-
fields: [
|
|
181
|
-
{
|
|
182
|
-
name: "filename",
|
|
183
|
-
type: "text",
|
|
184
|
-
required: true,
|
|
185
|
-
label: "Filename"
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
name: "alt",
|
|
189
|
-
type: "text",
|
|
190
|
-
label: "Alt Text",
|
|
191
|
-
admin: { description: "Alternative text for images" }
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
name: "url",
|
|
195
|
-
type: "text",
|
|
196
|
-
required: true,
|
|
197
|
-
label: "URL"
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
name: "mimeType",
|
|
201
|
-
type: "text",
|
|
202
|
-
label: "MIME Type"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
name: "size",
|
|
206
|
-
type: "number",
|
|
207
|
-
label: "Size (bytes)"
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
name: "width",
|
|
211
|
-
type: "number",
|
|
212
|
-
label: "Width"
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
name: "height",
|
|
216
|
-
type: "number",
|
|
217
|
-
label: "Height"
|
|
218
|
-
}
|
|
219
|
-
],
|
|
220
|
-
timestamps: true
|
|
221
|
-
}
|
|
222
|
-
};
|
|
223
|
-
var blogGlobals = [
|
|
224
|
-
{
|
|
225
|
-
slug: "siteSettings",
|
|
226
|
-
label: "Site Settings",
|
|
227
|
-
fields: [
|
|
228
|
-
{ name: "siteName", type: "text", defaultValue: "My Blog" },
|
|
229
|
-
{ name: "siteDescription", type: "textarea", label: "Site Description" },
|
|
230
|
-
{ name: "logo", type: "text", label: "Logo URL" },
|
|
231
|
-
{
|
|
232
|
-
name: "socialLinks",
|
|
233
|
-
type: "array",
|
|
234
|
-
label: "Social Links",
|
|
235
|
-
fields: [
|
|
236
|
-
{ name: "platform", type: "text", label: "Platform" },
|
|
237
|
-
{ name: "url", type: "text", label: "URL" }
|
|
238
|
-
]
|
|
239
|
-
}
|
|
240
|
-
]
|
|
241
|
-
}
|
|
242
|
-
];
|
|
243
6
|
|
|
244
|
-
// src/templates/ecommerce.ts
|
|
245
|
-
var ecommerceCollections = {
|
|
246
|
-
products: {
|
|
247
|
-
slug: "products",
|
|
248
|
-
label: "Products",
|
|
249
|
-
labelPlural: "Products",
|
|
250
|
-
singularLabel: "Product",
|
|
251
|
-
admin: {
|
|
252
|
-
useAsTitle: "title",
|
|
253
|
-
defaultColumns: ["title", "price", "status", "inventory"],
|
|
254
|
-
description: "Product catalog"
|
|
255
|
-
},
|
|
256
|
-
fields: [
|
|
257
|
-
{
|
|
258
|
-
name: "title",
|
|
259
|
-
type: "text",
|
|
260
|
-
required: true,
|
|
261
|
-
label: "Title"
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
name: "slug",
|
|
265
|
-
type: "text",
|
|
266
|
-
required: true,
|
|
267
|
-
label: "Slug"
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
name: "description",
|
|
271
|
-
type: "richtext",
|
|
272
|
-
label: "Description"
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
name: "price",
|
|
276
|
-
type: "number",
|
|
277
|
-
required: true,
|
|
278
|
-
label: "Price"
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
name: "compareAtPrice",
|
|
282
|
-
type: "number",
|
|
283
|
-
label: "Compare at Price",
|
|
284
|
-
admin: { description: "Original price for sale display" }
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
name: "costPrice",
|
|
288
|
-
type: "number",
|
|
289
|
-
label: "Cost Price",
|
|
290
|
-
admin: { description: "For profit calculation" }
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
name: "sku",
|
|
294
|
-
type: "text",
|
|
295
|
-
required: true,
|
|
296
|
-
label: "SKU"
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
name: "barcode",
|
|
300
|
-
type: "text",
|
|
301
|
-
label: "Barcode"
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
name: "status",
|
|
305
|
-
type: "select",
|
|
306
|
-
label: "Status",
|
|
307
|
-
options: [
|
|
308
|
-
{ label: "Draft", value: "draft" },
|
|
309
|
-
{ label: "Active", value: "active" },
|
|
310
|
-
{ label: "Archived", value: "archived" }
|
|
311
|
-
],
|
|
312
|
-
defaultValue: "draft"
|
|
313
|
-
},
|
|
314
|
-
{
|
|
315
|
-
name: "images",
|
|
316
|
-
type: "array",
|
|
317
|
-
label: "Images",
|
|
318
|
-
fields: [
|
|
319
|
-
{ name: "url", type: "text", label: "URL" },
|
|
320
|
-
{ name: "alt", type: "text", label: "Alt Text" }
|
|
321
|
-
]
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
name: "category",
|
|
325
|
-
type: "relationship",
|
|
326
|
-
label: "Category",
|
|
327
|
-
relationTo: "categories"
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
name: "inventory",
|
|
331
|
-
type: "number",
|
|
332
|
-
label: "Inventory",
|
|
333
|
-
defaultValue: 0
|
|
334
|
-
}
|
|
335
|
-
],
|
|
336
|
-
timestamps: true
|
|
337
|
-
},
|
|
338
|
-
categories: {
|
|
339
|
-
slug: "categories",
|
|
340
|
-
label: "Categories",
|
|
341
|
-
labelPlural: "Categories",
|
|
342
|
-
singularLabel: "Category",
|
|
343
|
-
admin: {
|
|
344
|
-
useAsTitle: "name",
|
|
345
|
-
defaultColumns: ["name", "slug", "productCount"],
|
|
346
|
-
description: "Product categories"
|
|
347
|
-
},
|
|
348
|
-
fields: [
|
|
349
|
-
{ name: "name", type: "text", required: true, label: "Name" },
|
|
350
|
-
{ name: "slug", type: "text", required: true, label: "Slug" },
|
|
351
|
-
{ name: "description", type: "textarea", label: "Description" },
|
|
352
|
-
{ name: "image", type: "text", label: "Image URL" },
|
|
353
|
-
{
|
|
354
|
-
name: "parent",
|
|
355
|
-
type: "relationship",
|
|
356
|
-
label: "Parent Category",
|
|
357
|
-
relationTo: "categories"
|
|
358
|
-
}
|
|
359
|
-
],
|
|
360
|
-
timestamps: true
|
|
361
|
-
},
|
|
362
|
-
customers: {
|
|
363
|
-
slug: "customers",
|
|
364
|
-
label: "Customers",
|
|
365
|
-
labelPlural: "Customers",
|
|
366
|
-
singularLabel: "Customer",
|
|
367
|
-
admin: {
|
|
368
|
-
useAsTitle: "email",
|
|
369
|
-
defaultColumns: ["email", "firstName", "lastName", "orderCount", "createdAt"],
|
|
370
|
-
description: "Customer accounts"
|
|
371
|
-
},
|
|
372
|
-
fields: [
|
|
373
|
-
{ name: "email", type: "email", required: true, label: "Email" },
|
|
374
|
-
{ name: "firstName", type: "text", label: "First Name" },
|
|
375
|
-
{ name: "lastName", type: "text", label: "Last Name" },
|
|
376
|
-
{ name: "phone", type: "text", label: "Phone" },
|
|
377
|
-
{
|
|
378
|
-
name: "addresses",
|
|
379
|
-
type: "array",
|
|
380
|
-
label: "Addresses",
|
|
381
|
-
fields: [
|
|
382
|
-
{ name: "type", type: "text", label: "Type" },
|
|
383
|
-
{ name: "line1", type: "text", label: "Address Line 1" },
|
|
384
|
-
{ name: "line2", type: "text", label: "Address Line 2" },
|
|
385
|
-
{ name: "city", type: "text", label: "City" },
|
|
386
|
-
{ name: "state", type: "text", label: "State" },
|
|
387
|
-
{ name: "postalCode", type: "text", label: "Postal Code" },
|
|
388
|
-
{ name: "country", type: "text", label: "Country" }
|
|
389
|
-
]
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
name: "status",
|
|
393
|
-
type: "select",
|
|
394
|
-
label: "Status",
|
|
395
|
-
options: [
|
|
396
|
-
{ label: "Active", value: "active" },
|
|
397
|
-
{ label: "Inactive", value: "inactive" },
|
|
398
|
-
{ label: "Banned", value: "banned" }
|
|
399
|
-
],
|
|
400
|
-
defaultValue: "active"
|
|
401
|
-
}
|
|
402
|
-
],
|
|
403
|
-
timestamps: true
|
|
404
|
-
},
|
|
405
|
-
orders: {
|
|
406
|
-
slug: "orders",
|
|
407
|
-
label: "Orders",
|
|
408
|
-
labelPlural: "Orders",
|
|
409
|
-
singularLabel: "Order",
|
|
410
|
-
admin: {
|
|
411
|
-
useAsTitle: "orderNumber",
|
|
412
|
-
defaultColumns: ["orderNumber", "customer", "status", "total", "createdAt"],
|
|
413
|
-
description: "Customer orders"
|
|
414
|
-
},
|
|
415
|
-
fields: [
|
|
416
|
-
{
|
|
417
|
-
name: "orderNumber",
|
|
418
|
-
type: "text",
|
|
419
|
-
required: true,
|
|
420
|
-
label: "Order Number"
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
name: "customer",
|
|
424
|
-
type: "relationship",
|
|
425
|
-
required: true,
|
|
426
|
-
label: "Customer",
|
|
427
|
-
relationTo: "customers"
|
|
428
|
-
},
|
|
429
|
-
{
|
|
430
|
-
name: "status",
|
|
431
|
-
type: "select",
|
|
432
|
-
label: "Status",
|
|
433
|
-
options: [
|
|
434
|
-
{ label: "Pending", value: "pending" },
|
|
435
|
-
{ label: "Confirmed", value: "confirmed" },
|
|
436
|
-
{ label: "Processing", value: "processing" },
|
|
437
|
-
{ label: "Shipped", value: "shipped" },
|
|
438
|
-
{ label: "Delivered", value: "delivered" },
|
|
439
|
-
{ label: "Cancelled", value: "cancelled" },
|
|
440
|
-
{ label: "Refunded", value: "refunded" }
|
|
441
|
-
],
|
|
442
|
-
defaultValue: "pending"
|
|
443
|
-
},
|
|
444
|
-
{
|
|
445
|
-
name: "paymentStatus",
|
|
446
|
-
type: "select",
|
|
447
|
-
label: "Payment Status",
|
|
448
|
-
options: [
|
|
449
|
-
{ label: "Pending", value: "pending" },
|
|
450
|
-
{ label: "Paid", value: "paid" },
|
|
451
|
-
{ label: "Failed", value: "failed" },
|
|
452
|
-
{ label: "Refunded", value: "refunded" }
|
|
453
|
-
],
|
|
454
|
-
defaultValue: "pending"
|
|
455
|
-
},
|
|
456
|
-
{
|
|
457
|
-
name: "items",
|
|
458
|
-
type: "array",
|
|
459
|
-
label: "Items",
|
|
460
|
-
fields: [
|
|
461
|
-
{ name: "product", type: "text", label: "Product" },
|
|
462
|
-
{ name: "quantity", type: "number", label: "Quantity" },
|
|
463
|
-
{ name: "unitPrice", type: "number", label: "Unit Price" },
|
|
464
|
-
{ name: "total", type: "number", label: "Total" }
|
|
465
|
-
]
|
|
466
|
-
},
|
|
467
|
-
{ name: "subtotal", type: "number", required: true, label: "Subtotal" },
|
|
468
|
-
{ name: "tax", type: "number", label: "Tax" },
|
|
469
|
-
{ name: "shipping", type: "number", label: "Shipping" },
|
|
470
|
-
{ name: "discount", type: "number", label: "Discount" },
|
|
471
|
-
{ name: "total", type: "number", required: true, label: "Total" },
|
|
472
|
-
{ name: "notes", type: "textarea", label: "Notes" }
|
|
473
|
-
],
|
|
474
|
-
timestamps: true
|
|
475
|
-
},
|
|
476
|
-
coupons: {
|
|
477
|
-
slug: "coupons",
|
|
478
|
-
label: "Coupons",
|
|
479
|
-
labelPlural: "Coupons",
|
|
480
|
-
singularLabel: "Coupon",
|
|
481
|
-
admin: {
|
|
482
|
-
useAsTitle: "code",
|
|
483
|
-
defaultColumns: ["code", "type", "value", "active", "expiresAt"],
|
|
484
|
-
description: "Discount codes and promotions"
|
|
485
|
-
},
|
|
486
|
-
fields: [
|
|
487
|
-
{ name: "code", type: "text", required: true, label: "Code" },
|
|
488
|
-
{
|
|
489
|
-
name: "type",
|
|
490
|
-
type: "select",
|
|
491
|
-
required: true,
|
|
492
|
-
label: "Type",
|
|
493
|
-
options: [
|
|
494
|
-
{ label: "Percentage", value: "percentage" },
|
|
495
|
-
{ label: "Fixed Amount", value: "fixed" },
|
|
496
|
-
{ label: "Free Shipping", value: "freeShipping" }
|
|
497
|
-
]
|
|
498
|
-
},
|
|
499
|
-
{ name: "value", type: "number", label: "Value" },
|
|
500
|
-
{ name: "minPurchase", type: "number", label: "Minimum Purchase" },
|
|
501
|
-
{ name: "maxDiscount", type: "number", label: "Max Discount" },
|
|
502
|
-
{ name: "usageLimit", type: "number", label: "Usage Limit" },
|
|
503
|
-
{ name: "usedCount", type: "number", defaultValue: 0, label: "Used Count" },
|
|
504
|
-
{ name: "startsAt", type: "date", label: "Starts At" },
|
|
505
|
-
{ name: "expiresAt", type: "date", label: "Expires At" },
|
|
506
|
-
{ name: "active", type: "checkbox", defaultValue: true, label: "Active" }
|
|
507
|
-
],
|
|
508
|
-
timestamps: true
|
|
509
|
-
}
|
|
510
|
-
};
|
|
511
|
-
var ecommerceGlobals = [
|
|
512
|
-
{
|
|
513
|
-
slug: "storeSettings",
|
|
514
|
-
label: "Store Settings",
|
|
515
|
-
fields: [
|
|
516
|
-
{ name: "storeName", type: "text", defaultValue: "My Store" },
|
|
517
|
-
{ name: "storeEmail", type: "email", label: "Contact Email" },
|
|
518
|
-
{ name: "storePhone", type: "text", label: "Phone" },
|
|
519
|
-
{
|
|
520
|
-
name: "address",
|
|
521
|
-
type: "group",
|
|
522
|
-
label: "Address",
|
|
523
|
-
fields: [
|
|
524
|
-
{ name: "line1", type: "text", label: "Address Line 1" },
|
|
525
|
-
{ name: "city", type: "text", label: "City" },
|
|
526
|
-
{ name: "state", type: "text", label: "State" },
|
|
527
|
-
{ name: "postalCode", type: "text", label: "Postal Code" },
|
|
528
|
-
{ name: "country", type: "text", label: "Country" }
|
|
529
|
-
]
|
|
530
|
-
},
|
|
531
|
-
{ name: "currency", type: "text", defaultValue: "USD", label: "Currency" },
|
|
532
|
-
{ name: "taxRate", type: "number", defaultValue: 0, label: "Tax Rate (%)" }
|
|
533
|
-
]
|
|
534
|
-
}
|
|
535
|
-
];
|
|
536
7
|
|
|
537
|
-
exports
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
exports
|
|
8
|
+
Object.defineProperty(exports, "accessSettingsGlobal", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkF5B64H5S_cjs.accessSettingsGlobal; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "allSettingsGlobals", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunkF5B64H5S_cjs.allSettingsGlobals; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "blogCollections", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkF5B64H5S_cjs.blogCollections; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "blogGlobals", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunkF5B64H5S_cjs.blogGlobals; }
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "coreSettingsGlobals", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return chunkF5B64H5S_cjs.coreSettingsGlobals; }
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "createTemplateConfig", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return chunkF5B64H5S_cjs.createTemplateConfig; }
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "ecommerceCollections", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () { return chunkF5B64H5S_cjs.ecommerceCollections; }
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "ecommerceGlobals", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () { return chunkF5B64H5S_cjs.ecommerceGlobals; }
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, "ecommerceSettingsGlobals", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function () { return chunkF5B64H5S_cjs.ecommerceSettingsGlobals; }
|
|
43
|
+
});
|
|
44
|
+
Object.defineProperty(exports, "emailSettingsGlobal", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function () { return chunkF5B64H5S_cjs.emailSettingsGlobal; }
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "getSettingsForTemplate", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () { return chunkF5B64H5S_cjs.getSettingsForTemplate; }
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, "kitchenSinkCollections", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () { return chunkF5B64H5S_cjs.kitchenSinkCollections; }
|
|
55
|
+
});
|
|
56
|
+
Object.defineProperty(exports, "mediaCollection", {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function () { return chunkF5B64H5S_cjs.mediaCollection; }
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "mediaCollections", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () { return chunkF5B64H5S_cjs.mediaCollections; }
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(exports, "mediaFoldersCollection", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () { return chunkF5B64H5S_cjs.mediaFoldersCollection; }
|
|
67
|
+
});
|
|
68
|
+
Object.defineProperty(exports, "minimalCollections", {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: function () { return chunkF5B64H5S_cjs.minimalCollections; }
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "paymentSettingsGlobal", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () { return chunkF5B64H5S_cjs.paymentSettingsGlobal; }
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(exports, "seoSettingsGlobal", {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function () { return chunkF5B64H5S_cjs.seoSettingsGlobal; }
|
|
79
|
+
});
|
|
80
|
+
Object.defineProperty(exports, "settingsBySlug", {
|
|
81
|
+
enumerable: true,
|
|
82
|
+
get: function () { return chunkF5B64H5S_cjs.settingsBySlug; }
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "siteSettingsGlobal", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () { return chunkF5B64H5S_cjs.siteSettingsGlobal; }
|
|
87
|
+
});
|
|
88
|
+
Object.defineProperty(exports, "socialSettingsGlobal", {
|
|
89
|
+
enumerable: true,
|
|
90
|
+
get: function () { return chunkF5B64H5S_cjs.socialSettingsGlobal; }
|
|
91
|
+
});
|
|
92
|
+
Object.defineProperty(exports, "storageSettingsGlobal", {
|
|
93
|
+
enumerable: true,
|
|
94
|
+
get: function () { return chunkF5B64H5S_cjs.storageSettingsGlobal; }
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "storeSettingsGlobal", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () { return chunkF5B64H5S_cjs.storeSettingsGlobal; }
|
|
99
|
+
});
|
|
542
100
|
//# sourceMappingURL=index.cjs.map
|
|
543
101
|
//# sourceMappingURL=index.cjs.map
|