@composable-os/sdk 0.1.0-beta.7 → 0.1.0-beta.9
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/allowance.d.ts +192 -0
- package/dist/allowance.js +365 -0
- package/dist/capacity.d.ts +26 -0
- package/dist/capacity.js +59 -0
- package/dist/contract.d.ts +92 -1
- package/dist/document.d.ts +52 -6
- package/dist/document.js +101 -11
- package/dist/field-types.d.ts +1 -1
- package/dist/field-types.js +5 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/manifest.d.ts +356 -17
- package/dist/manifest.js +179 -5
- package/dist/media.d.ts +32 -0
- package/dist/media.js +47 -0
- package/dist/recurring.d.ts +114 -0
- package/dist/recurring.js +166 -0
- package/dist/rich-text.d.ts +16 -2
- package/dist/rich-text.js +50 -4
- package/dist/sellable.d.ts +62 -0
- package/dist/sellable.js +70 -0
- package/dist/states.d.ts +94 -2
- package/dist/states.js +109 -1
- package/dist/unique.d.ts +20 -0
- package/dist/unique.js +58 -0
- package/package.json +1 -1
- package/src/allowance.ts +508 -0
- package/src/capacity.ts +89 -0
- package/src/contract.ts +97 -1
- package/src/document.ts +161 -14
- package/src/field-types.ts +5 -0
- package/src/index.ts +3 -0
- package/src/manifest.ts +206 -5
- package/src/media.ts +62 -0
- package/src/recurring.ts +314 -0
- package/src/rich-text.ts +52 -4
- package/src/sellable.ts +120 -0
- package/src/states.ts +162 -1
- package/src/unique.ts +81 -0
package/dist/manifest.d.ts
CHANGED
|
@@ -18,11 +18,11 @@ export declare const fieldManifestSchema: z.ZodObject<{
|
|
|
18
18
|
type: z.ZodEnum<{
|
|
19
19
|
number: "number";
|
|
20
20
|
boolean: "boolean";
|
|
21
|
+
date: "date";
|
|
21
22
|
text: "text";
|
|
22
23
|
longText: "longText";
|
|
23
24
|
currency: "currency";
|
|
24
25
|
percent: "percent";
|
|
25
|
-
date: "date";
|
|
26
26
|
datetime: "datetime";
|
|
27
27
|
select: "select";
|
|
28
28
|
multiSelect: "multiSelect";
|
|
@@ -37,6 +37,7 @@ export declare const fieldManifestSchema: z.ZodObject<{
|
|
|
37
37
|
richText: "richText";
|
|
38
38
|
slug: "slug";
|
|
39
39
|
image: "image";
|
|
40
|
+
video: "video";
|
|
40
41
|
}>;
|
|
41
42
|
label: z.ZodString;
|
|
42
43
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -110,11 +111,11 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
110
111
|
type: z.ZodEnum<{
|
|
111
112
|
number: "number";
|
|
112
113
|
boolean: "boolean";
|
|
114
|
+
date: "date";
|
|
113
115
|
text: "text";
|
|
114
116
|
longText: "longText";
|
|
115
117
|
currency: "currency";
|
|
116
118
|
percent: "percent";
|
|
117
|
-
date: "date";
|
|
118
119
|
datetime: "datetime";
|
|
119
120
|
select: "select";
|
|
120
121
|
multiSelect: "multiSelect";
|
|
@@ -129,6 +130,7 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
129
130
|
richText: "richText";
|
|
130
131
|
slug: "slug";
|
|
131
132
|
image: "image";
|
|
133
|
+
video: "video";
|
|
132
134
|
}>;
|
|
133
135
|
label: z.ZodString;
|
|
134
136
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -229,7 +231,80 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
229
231
|
}>, z.ZodString]>>;
|
|
230
232
|
void: z.ZodString;
|
|
231
233
|
}, z.core.$strict>>;
|
|
234
|
+
tax: z.ZodOptional<z.ZodObject<{
|
|
235
|
+
code: z.ZodString;
|
|
236
|
+
place: z.ZodOptional<z.ZodObject<{
|
|
237
|
+
via: z.ZodOptional<z.ZodString>;
|
|
238
|
+
country: z.ZodString;
|
|
239
|
+
region: z.ZodOptional<z.ZodString>;
|
|
240
|
+
postcode: z.ZodOptional<z.ZodString>;
|
|
241
|
+
city: z.ZodOptional<z.ZodString>;
|
|
242
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
243
|
+
}, z.core.$strict>>;
|
|
244
|
+
}, z.core.$strict>>;
|
|
245
|
+
recurring: z.ZodOptional<z.ZodObject<{
|
|
246
|
+
interval: z.ZodEnum<{
|
|
247
|
+
week: "week";
|
|
248
|
+
month: "month";
|
|
249
|
+
year: "year";
|
|
250
|
+
}>;
|
|
251
|
+
trialDays: z.ZodOptional<z.ZodString>;
|
|
252
|
+
}, z.core.$strict>>;
|
|
232
253
|
}, z.core.$strict>>;
|
|
254
|
+
allowance: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
255
|
+
holds: z.ZodObject<{
|
|
256
|
+
person: z.ZodString;
|
|
257
|
+
uses: z.ZodString;
|
|
258
|
+
per: z.ZodUnion<readonly [z.ZodEnum<{
|
|
259
|
+
week: "week";
|
|
260
|
+
month: "month";
|
|
261
|
+
total: "total";
|
|
262
|
+
}>, z.ZodObject<{
|
|
263
|
+
field: z.ZodString;
|
|
264
|
+
}, z.core.$strict>]>;
|
|
265
|
+
spendsOn: z.ZodUnion<readonly [z.ZodObject<{
|
|
266
|
+
object: z.ZodString;
|
|
267
|
+
when: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
268
|
+
field: z.ZodString;
|
|
269
|
+
in: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
270
|
+
atLeast: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
271
|
+
below: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
272
|
+
}, z.core.$strict>>>;
|
|
273
|
+
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
274
|
+
object: z.ZodString;
|
|
275
|
+
when: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
276
|
+
field: z.ZodString;
|
|
277
|
+
in: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
278
|
+
atLeast: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
279
|
+
below: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
280
|
+
}, z.core.$strict>>>;
|
|
281
|
+
}, z.core.$strict>>]>;
|
|
282
|
+
from: z.ZodOptional<z.ZodString>;
|
|
283
|
+
until: z.ZodOptional<z.ZodString>;
|
|
284
|
+
live: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
285
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
286
|
+
emptyIsUnlimited: z.ZodOptional<z.ZodBoolean>;
|
|
287
|
+
}, z.core.$strict>;
|
|
288
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
289
|
+
spends: z.ZodObject<{
|
|
290
|
+
person: z.ZodString;
|
|
291
|
+
holder: z.ZodString;
|
|
292
|
+
spendIn: z.ZodArray<z.ZodString>;
|
|
293
|
+
returnIn: z.ZodArray<z.ZodString>;
|
|
294
|
+
at: z.ZodOptional<z.ZodString>;
|
|
295
|
+
copy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
296
|
+
local: z.ZodOptional<z.ZodObject<{
|
|
297
|
+
weekday: z.ZodOptional<z.ZodString>;
|
|
298
|
+
minute: z.ZodOptional<z.ZodString>;
|
|
299
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
300
|
+
}, z.core.$strict>>;
|
|
301
|
+
movedFrom: z.ZodOptional<z.ZodObject<{
|
|
302
|
+
field: z.ZodString;
|
|
303
|
+
state: z.ZodString;
|
|
304
|
+
}, z.core.$strict>>;
|
|
305
|
+
paidBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
306
|
+
}, z.core.$strict>;
|
|
307
|
+
}, z.core.$strict>]>>;
|
|
233
308
|
states: z.ZodOptional<z.ZodObject<{
|
|
234
309
|
field: z.ZodString;
|
|
235
310
|
initial: z.ZodString;
|
|
@@ -243,13 +318,95 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
243
318
|
}>>;
|
|
244
319
|
requires: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
245
320
|
final: z.ZodOptional<z.ZodBoolean>;
|
|
321
|
+
window: z.ZodOptional<z.ZodObject<{
|
|
322
|
+
from: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
323
|
+
at: z.ZodString;
|
|
324
|
+
daysBefore: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
325
|
+
minutesBefore: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
326
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
327
|
+
}, z.core.$strict>]>>;
|
|
328
|
+
until: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
329
|
+
at: z.ZodString;
|
|
330
|
+
daysBefore: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
331
|
+
minutesBefore: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
332
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
333
|
+
}, z.core.$strict>]>>;
|
|
334
|
+
}, z.core.$strict>>;
|
|
335
|
+
staffOnly: z.ZodOptional<z.ZodString>;
|
|
246
336
|
}, z.core.$strip>>;
|
|
337
|
+
create: z.ZodOptional<z.ZodObject<{
|
|
338
|
+
in: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodEnum<{
|
|
339
|
+
staff: "staff";
|
|
340
|
+
customer: "customer";
|
|
341
|
+
host: "host";
|
|
342
|
+
}>>>>;
|
|
343
|
+
window: z.ZodOptional<z.ZodObject<{
|
|
344
|
+
from: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
345
|
+
at: z.ZodString;
|
|
346
|
+
daysBefore: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
347
|
+
minutesBefore: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
348
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
349
|
+
}, z.core.$strict>]>>;
|
|
350
|
+
until: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
351
|
+
at: z.ZodString;
|
|
352
|
+
daysBefore: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
353
|
+
minutesBefore: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
354
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
355
|
+
}, z.core.$strict>]>>;
|
|
356
|
+
}, z.core.$strict>>;
|
|
357
|
+
staffOnly: z.ZodOptional<z.ZodString>;
|
|
358
|
+
}, z.core.$strict>>;
|
|
359
|
+
requests: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
247
360
|
}, z.core.$strip>>;
|
|
361
|
+
claims: z.ZodOptional<z.ZodObject<{
|
|
362
|
+
on: z.ZodString;
|
|
363
|
+
held: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
364
|
+
confirmed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
365
|
+
}, z.core.$strict>>;
|
|
366
|
+
unique: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
367
|
+
fields: z.ZodArray<z.ZodString>;
|
|
368
|
+
states: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
369
|
+
}, z.core.$strict>>>;
|
|
370
|
+
recurring: z.ZodOptional<z.ZodObject<{
|
|
371
|
+
generates: z.ZodString;
|
|
372
|
+
link: z.ZodString;
|
|
373
|
+
rule: z.ZodObject<{
|
|
374
|
+
weekdays: z.ZodString;
|
|
375
|
+
time: z.ZodString;
|
|
376
|
+
length: z.ZodOptional<z.ZodString>;
|
|
377
|
+
from: z.ZodString;
|
|
378
|
+
until: z.ZodOptional<z.ZodString>;
|
|
379
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
380
|
+
}, z.core.$strict>;
|
|
381
|
+
into: z.ZodObject<{
|
|
382
|
+
starts: z.ZodString;
|
|
383
|
+
ends: z.ZodOptional<z.ZodString>;
|
|
384
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
385
|
+
changed: z.ZodOptional<z.ZodString>;
|
|
386
|
+
}, z.core.$strict>;
|
|
387
|
+
copy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
388
|
+
cancel: z.ZodString;
|
|
389
|
+
ended: z.ZodOptional<z.ZodObject<{
|
|
390
|
+
field: z.ZodString;
|
|
391
|
+
in: z.ZodArray<z.ZodString>;
|
|
392
|
+
}, z.core.$strict>>;
|
|
393
|
+
closures: z.ZodOptional<z.ZodObject<{
|
|
394
|
+
object: z.ZodString;
|
|
395
|
+
from: z.ZodString;
|
|
396
|
+
until: z.ZodString;
|
|
397
|
+
}, z.core.$strict>>;
|
|
398
|
+
horizonDays: z.ZodOptional<z.ZodNumber>;
|
|
399
|
+
horizonAtLeast: z.ZodOptional<z.ZodObject<{
|
|
400
|
+
object: z.ZodString;
|
|
401
|
+
field: z.ZodString;
|
|
402
|
+
}, z.core.$strict>>;
|
|
403
|
+
}, z.core.$strict>>;
|
|
248
404
|
owner: z.ZodOptional<z.ZodString>;
|
|
249
405
|
customer: z.ZodOptional<z.ZodObject<{
|
|
250
406
|
field: z.ZodString;
|
|
251
407
|
read: z.ZodArray<z.ZodString>;
|
|
252
408
|
write: z.ZodArray<z.ZodString>;
|
|
409
|
+
requireAccess: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
253
410
|
}, z.core.$strict>>;
|
|
254
411
|
public: z.ZodOptional<z.ZodObject<{
|
|
255
412
|
read: z.ZodArray<z.ZodString>;
|
|
@@ -272,6 +429,18 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
272
429
|
field: z.ZodString;
|
|
273
430
|
read: z.ZodArray<z.ZodString>;
|
|
274
431
|
}, z.core.$strict>>;
|
|
432
|
+
access: z.ZodOptional<z.ZodObject<{
|
|
433
|
+
sources: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
434
|
+
via: z.ZodString;
|
|
435
|
+
field: z.ZodString;
|
|
436
|
+
through: z.ZodOptional<z.ZodString>;
|
|
437
|
+
states: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
438
|
+
until: z.ZodOptional<z.ZodString>;
|
|
439
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
440
|
+
kind: z.ZodString;
|
|
441
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
|
|
442
|
+
}, z.core.$strict>]>>;
|
|
443
|
+
}, z.core.$strict>>;
|
|
275
444
|
publishable: z.ZodOptional<z.ZodObject<{
|
|
276
445
|
content: z.ZodArray<z.ZodString>;
|
|
277
446
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -374,8 +543,8 @@ export declare const viewManifestSchema: z.ZodObject<{
|
|
|
374
543
|
sumField: z.ZodOptional<z.ZodString>;
|
|
375
544
|
dateField: z.ZodOptional<z.ZodString>;
|
|
376
545
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
377
|
-
month: "month";
|
|
378
546
|
week: "week";
|
|
547
|
+
month: "month";
|
|
379
548
|
agenda: "agenda";
|
|
380
549
|
}>>;
|
|
381
550
|
imageField: z.ZodOptional<z.ZodString>;
|
|
@@ -407,8 +576,8 @@ export declare const recordViewManifestSchema: z.ZodObject<{
|
|
|
407
576
|
sumField: z.ZodOptional<z.ZodString>;
|
|
408
577
|
dateField: z.ZodOptional<z.ZodString>;
|
|
409
578
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
410
|
-
month: "month";
|
|
411
579
|
week: "week";
|
|
580
|
+
month: "month";
|
|
412
581
|
agenda: "agenda";
|
|
413
582
|
}>>;
|
|
414
583
|
imageField: z.ZodOptional<z.ZodString>;
|
|
@@ -458,10 +627,6 @@ export declare const permissionsManifestSchema: z.ZodObject<{
|
|
|
458
627
|
operations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
459
628
|
modules: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
460
629
|
email: "email";
|
|
461
|
-
ops: "ops";
|
|
462
|
-
storage: "storage";
|
|
463
|
-
log: "log";
|
|
464
|
-
ai: "ai";
|
|
465
630
|
google: "google";
|
|
466
631
|
microsoft: "microsoft";
|
|
467
632
|
slack: "slack";
|
|
@@ -472,6 +637,10 @@ export declare const permissionsManifestSchema: z.ZodObject<{
|
|
|
472
637
|
websearch: "websearch";
|
|
473
638
|
webhook: "webhook";
|
|
474
639
|
fake: "fake";
|
|
640
|
+
ops: "ops";
|
|
641
|
+
storage: "storage";
|
|
642
|
+
log: "log";
|
|
643
|
+
ai: "ai";
|
|
475
644
|
}>>>;
|
|
476
645
|
}, z.core.$strip>;
|
|
477
646
|
export type PermissionsManifest = z.infer<typeof permissionsManifestSchema>;
|
|
@@ -481,16 +650,13 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
481
650
|
contractVersion: z.ZodNumber;
|
|
482
651
|
label: z.ZodOptional<z.ZodString>;
|
|
483
652
|
description: z.ZodOptional<z.ZodString>;
|
|
653
|
+
requires: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
484
654
|
permissions: z.ZodDefault<z.ZodObject<{
|
|
485
655
|
read: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
486
656
|
write: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
487
657
|
operations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
488
658
|
modules: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
489
659
|
email: "email";
|
|
490
|
-
ops: "ops";
|
|
491
|
-
storage: "storage";
|
|
492
|
-
log: "log";
|
|
493
|
-
ai: "ai";
|
|
494
660
|
google: "google";
|
|
495
661
|
microsoft: "microsoft";
|
|
496
662
|
slack: "slack";
|
|
@@ -501,6 +667,10 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
501
667
|
websearch: "websearch";
|
|
502
668
|
webhook: "webhook";
|
|
503
669
|
fake: "fake";
|
|
670
|
+
ops: "ops";
|
|
671
|
+
storage: "storage";
|
|
672
|
+
log: "log";
|
|
673
|
+
ai: "ai";
|
|
504
674
|
}>>>;
|
|
505
675
|
}, z.core.$strip>>;
|
|
506
676
|
objects: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -514,11 +684,11 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
514
684
|
type: z.ZodEnum<{
|
|
515
685
|
number: "number";
|
|
516
686
|
boolean: "boolean";
|
|
687
|
+
date: "date";
|
|
517
688
|
text: "text";
|
|
518
689
|
longText: "longText";
|
|
519
690
|
currency: "currency";
|
|
520
691
|
percent: "percent";
|
|
521
|
-
date: "date";
|
|
522
692
|
datetime: "datetime";
|
|
523
693
|
select: "select";
|
|
524
694
|
multiSelect: "multiSelect";
|
|
@@ -533,6 +703,7 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
533
703
|
richText: "richText";
|
|
534
704
|
slug: "slug";
|
|
535
705
|
image: "image";
|
|
706
|
+
video: "video";
|
|
536
707
|
}>;
|
|
537
708
|
label: z.ZodString;
|
|
538
709
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -633,7 +804,80 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
633
804
|
}>, z.ZodString]>>;
|
|
634
805
|
void: z.ZodString;
|
|
635
806
|
}, z.core.$strict>>;
|
|
807
|
+
tax: z.ZodOptional<z.ZodObject<{
|
|
808
|
+
code: z.ZodString;
|
|
809
|
+
place: z.ZodOptional<z.ZodObject<{
|
|
810
|
+
via: z.ZodOptional<z.ZodString>;
|
|
811
|
+
country: z.ZodString;
|
|
812
|
+
region: z.ZodOptional<z.ZodString>;
|
|
813
|
+
postcode: z.ZodOptional<z.ZodString>;
|
|
814
|
+
city: z.ZodOptional<z.ZodString>;
|
|
815
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
816
|
+
}, z.core.$strict>>;
|
|
817
|
+
}, z.core.$strict>>;
|
|
818
|
+
recurring: z.ZodOptional<z.ZodObject<{
|
|
819
|
+
interval: z.ZodEnum<{
|
|
820
|
+
week: "week";
|
|
821
|
+
month: "month";
|
|
822
|
+
year: "year";
|
|
823
|
+
}>;
|
|
824
|
+
trialDays: z.ZodOptional<z.ZodString>;
|
|
825
|
+
}, z.core.$strict>>;
|
|
636
826
|
}, z.core.$strict>>;
|
|
827
|
+
allowance: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
828
|
+
holds: z.ZodObject<{
|
|
829
|
+
person: z.ZodString;
|
|
830
|
+
uses: z.ZodString;
|
|
831
|
+
per: z.ZodUnion<readonly [z.ZodEnum<{
|
|
832
|
+
week: "week";
|
|
833
|
+
month: "month";
|
|
834
|
+
total: "total";
|
|
835
|
+
}>, z.ZodObject<{
|
|
836
|
+
field: z.ZodString;
|
|
837
|
+
}, z.core.$strict>]>;
|
|
838
|
+
spendsOn: z.ZodUnion<readonly [z.ZodObject<{
|
|
839
|
+
object: z.ZodString;
|
|
840
|
+
when: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
841
|
+
field: z.ZodString;
|
|
842
|
+
in: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
843
|
+
atLeast: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
844
|
+
below: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
845
|
+
}, z.core.$strict>>>;
|
|
846
|
+
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
847
|
+
object: z.ZodString;
|
|
848
|
+
when: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
849
|
+
field: z.ZodString;
|
|
850
|
+
in: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
851
|
+
atLeast: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
852
|
+
below: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
853
|
+
}, z.core.$strict>>>;
|
|
854
|
+
}, z.core.$strict>>]>;
|
|
855
|
+
from: z.ZodOptional<z.ZodString>;
|
|
856
|
+
until: z.ZodOptional<z.ZodString>;
|
|
857
|
+
live: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
858
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
859
|
+
emptyIsUnlimited: z.ZodOptional<z.ZodBoolean>;
|
|
860
|
+
}, z.core.$strict>;
|
|
861
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
862
|
+
spends: z.ZodObject<{
|
|
863
|
+
person: z.ZodString;
|
|
864
|
+
holder: z.ZodString;
|
|
865
|
+
spendIn: z.ZodArray<z.ZodString>;
|
|
866
|
+
returnIn: z.ZodArray<z.ZodString>;
|
|
867
|
+
at: z.ZodOptional<z.ZodString>;
|
|
868
|
+
copy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
869
|
+
local: z.ZodOptional<z.ZodObject<{
|
|
870
|
+
weekday: z.ZodOptional<z.ZodString>;
|
|
871
|
+
minute: z.ZodOptional<z.ZodString>;
|
|
872
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
873
|
+
}, z.core.$strict>>;
|
|
874
|
+
movedFrom: z.ZodOptional<z.ZodObject<{
|
|
875
|
+
field: z.ZodString;
|
|
876
|
+
state: z.ZodString;
|
|
877
|
+
}, z.core.$strict>>;
|
|
878
|
+
paidBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
879
|
+
}, z.core.$strict>;
|
|
880
|
+
}, z.core.$strict>]>>;
|
|
637
881
|
states: z.ZodOptional<z.ZodObject<{
|
|
638
882
|
field: z.ZodString;
|
|
639
883
|
initial: z.ZodString;
|
|
@@ -647,13 +891,95 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
647
891
|
}>>;
|
|
648
892
|
requires: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
649
893
|
final: z.ZodOptional<z.ZodBoolean>;
|
|
894
|
+
window: z.ZodOptional<z.ZodObject<{
|
|
895
|
+
from: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
896
|
+
at: z.ZodString;
|
|
897
|
+
daysBefore: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
898
|
+
minutesBefore: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
899
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
900
|
+
}, z.core.$strict>]>>;
|
|
901
|
+
until: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
902
|
+
at: z.ZodString;
|
|
903
|
+
daysBefore: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
904
|
+
minutesBefore: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
905
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
906
|
+
}, z.core.$strict>]>>;
|
|
907
|
+
}, z.core.$strict>>;
|
|
908
|
+
staffOnly: z.ZodOptional<z.ZodString>;
|
|
650
909
|
}, z.core.$strip>>;
|
|
910
|
+
create: z.ZodOptional<z.ZodObject<{
|
|
911
|
+
in: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodEnum<{
|
|
912
|
+
staff: "staff";
|
|
913
|
+
customer: "customer";
|
|
914
|
+
host: "host";
|
|
915
|
+
}>>>>;
|
|
916
|
+
window: z.ZodOptional<z.ZodObject<{
|
|
917
|
+
from: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
918
|
+
at: z.ZodString;
|
|
919
|
+
daysBefore: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
920
|
+
minutesBefore: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
921
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
922
|
+
}, z.core.$strict>]>>;
|
|
923
|
+
until: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
924
|
+
at: z.ZodString;
|
|
925
|
+
daysBefore: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
926
|
+
minutesBefore: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
927
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
928
|
+
}, z.core.$strict>]>>;
|
|
929
|
+
}, z.core.$strict>>;
|
|
930
|
+
staffOnly: z.ZodOptional<z.ZodString>;
|
|
931
|
+
}, z.core.$strict>>;
|
|
932
|
+
requests: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
651
933
|
}, z.core.$strip>>;
|
|
934
|
+
claims: z.ZodOptional<z.ZodObject<{
|
|
935
|
+
on: z.ZodString;
|
|
936
|
+
held: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
937
|
+
confirmed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
938
|
+
}, z.core.$strict>>;
|
|
939
|
+
unique: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
940
|
+
fields: z.ZodArray<z.ZodString>;
|
|
941
|
+
states: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
942
|
+
}, z.core.$strict>>>;
|
|
943
|
+
recurring: z.ZodOptional<z.ZodObject<{
|
|
944
|
+
generates: z.ZodString;
|
|
945
|
+
link: z.ZodString;
|
|
946
|
+
rule: z.ZodObject<{
|
|
947
|
+
weekdays: z.ZodString;
|
|
948
|
+
time: z.ZodString;
|
|
949
|
+
length: z.ZodOptional<z.ZodString>;
|
|
950
|
+
from: z.ZodString;
|
|
951
|
+
until: z.ZodOptional<z.ZodString>;
|
|
952
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
953
|
+
}, z.core.$strict>;
|
|
954
|
+
into: z.ZodObject<{
|
|
955
|
+
starts: z.ZodString;
|
|
956
|
+
ends: z.ZodOptional<z.ZodString>;
|
|
957
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
958
|
+
changed: z.ZodOptional<z.ZodString>;
|
|
959
|
+
}, z.core.$strict>;
|
|
960
|
+
copy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
961
|
+
cancel: z.ZodString;
|
|
962
|
+
ended: z.ZodOptional<z.ZodObject<{
|
|
963
|
+
field: z.ZodString;
|
|
964
|
+
in: z.ZodArray<z.ZodString>;
|
|
965
|
+
}, z.core.$strict>>;
|
|
966
|
+
closures: z.ZodOptional<z.ZodObject<{
|
|
967
|
+
object: z.ZodString;
|
|
968
|
+
from: z.ZodString;
|
|
969
|
+
until: z.ZodString;
|
|
970
|
+
}, z.core.$strict>>;
|
|
971
|
+
horizonDays: z.ZodOptional<z.ZodNumber>;
|
|
972
|
+
horizonAtLeast: z.ZodOptional<z.ZodObject<{
|
|
973
|
+
object: z.ZodString;
|
|
974
|
+
field: z.ZodString;
|
|
975
|
+
}, z.core.$strict>>;
|
|
976
|
+
}, z.core.$strict>>;
|
|
652
977
|
owner: z.ZodOptional<z.ZodString>;
|
|
653
978
|
customer: z.ZodOptional<z.ZodObject<{
|
|
654
979
|
field: z.ZodString;
|
|
655
980
|
read: z.ZodArray<z.ZodString>;
|
|
656
981
|
write: z.ZodArray<z.ZodString>;
|
|
982
|
+
requireAccess: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
657
983
|
}, z.core.$strict>>;
|
|
658
984
|
public: z.ZodOptional<z.ZodObject<{
|
|
659
985
|
read: z.ZodArray<z.ZodString>;
|
|
@@ -676,6 +1002,18 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
676
1002
|
field: z.ZodString;
|
|
677
1003
|
read: z.ZodArray<z.ZodString>;
|
|
678
1004
|
}, z.core.$strict>>;
|
|
1005
|
+
access: z.ZodOptional<z.ZodObject<{
|
|
1006
|
+
sources: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1007
|
+
via: z.ZodString;
|
|
1008
|
+
field: z.ZodString;
|
|
1009
|
+
through: z.ZodOptional<z.ZodString>;
|
|
1010
|
+
states: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1011
|
+
until: z.ZodOptional<z.ZodString>;
|
|
1012
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1013
|
+
kind: z.ZodString;
|
|
1014
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
|
|
1015
|
+
}, z.core.$strict>]>>;
|
|
1016
|
+
}, z.core.$strict>>;
|
|
679
1017
|
publishable: z.ZodOptional<z.ZodObject<{
|
|
680
1018
|
content: z.ZodArray<z.ZodString>;
|
|
681
1019
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -693,11 +1031,11 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
693
1031
|
type: z.ZodEnum<{
|
|
694
1032
|
number: "number";
|
|
695
1033
|
boolean: "boolean";
|
|
1034
|
+
date: "date";
|
|
696
1035
|
text: "text";
|
|
697
1036
|
longText: "longText";
|
|
698
1037
|
currency: "currency";
|
|
699
1038
|
percent: "percent";
|
|
700
|
-
date: "date";
|
|
701
1039
|
datetime: "datetime";
|
|
702
1040
|
select: "select";
|
|
703
1041
|
multiSelect: "multiSelect";
|
|
@@ -712,6 +1050,7 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
712
1050
|
richText: "richText";
|
|
713
1051
|
slug: "slug";
|
|
714
1052
|
image: "image";
|
|
1053
|
+
video: "video";
|
|
715
1054
|
}>;
|
|
716
1055
|
label: z.ZodString;
|
|
717
1056
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -767,8 +1106,8 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
767
1106
|
sumField: z.ZodOptional<z.ZodString>;
|
|
768
1107
|
dateField: z.ZodOptional<z.ZodString>;
|
|
769
1108
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
770
|
-
month: "month";
|
|
771
1109
|
week: "week";
|
|
1110
|
+
month: "month";
|
|
772
1111
|
agenda: "agenda";
|
|
773
1112
|
}>>;
|
|
774
1113
|
imageField: z.ZodOptional<z.ZodString>;
|
|
@@ -799,8 +1138,8 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
799
1138
|
sumField: z.ZodOptional<z.ZodString>;
|
|
800
1139
|
dateField: z.ZodOptional<z.ZodString>;
|
|
801
1140
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
802
|
-
month: "month";
|
|
803
1141
|
week: "week";
|
|
1142
|
+
month: "month";
|
|
804
1143
|
agenda: "agenda";
|
|
805
1144
|
}>>;
|
|
806
1145
|
imageField: z.ZodOptional<z.ZodString>;
|
|
@@ -833,8 +1172,8 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
833
1172
|
sumField: z.ZodOptional<z.ZodString>;
|
|
834
1173
|
dateField: z.ZodOptional<z.ZodString>;
|
|
835
1174
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
836
|
-
month: "month";
|
|
837
1175
|
week: "week";
|
|
1176
|
+
month: "month";
|
|
838
1177
|
agenda: "agenda";
|
|
839
1178
|
}>>;
|
|
840
1179
|
imageField: z.ZodOptional<z.ZodString>;
|