@composable-os/sdk 0.1.0-beta.10 → 0.1.0-beta.13
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/acknowledge.d.ts +38 -0
- package/dist/acknowledge.js +30 -0
- package/dist/agreements.d.ts +80 -0
- package/dist/agreements.js +109 -0
- package/dist/allowance.d.ts +47 -5
- package/dist/allowance.js +59 -4
- package/dist/automation-check.d.ts +6 -1
- package/dist/automation-check.js +93 -8
- package/dist/automation.d.ts +62 -4
- package/dist/automation.js +32 -9
- package/dist/behaviour.js +25 -6
- package/dist/calendar-entry.d.ts +97 -0
- package/dist/calendar-entry.js +180 -0
- package/dist/capacity.d.ts +69 -0
- package/dist/capacity.js +63 -2
- package/dist/checklists.d.ts +41 -0
- package/dist/checklists.js +75 -0
- package/dist/contract.d.ts +527 -26
- package/dist/contract.js +21 -3
- package/dist/discount.d.ts +135 -0
- package/dist/discount.js +281 -0
- package/dist/document.d.ts +2 -1
- package/dist/document.js +2 -1
- package/dist/field-types.d.ts +1 -1
- package/dist/field-types.js +5 -0
- package/dist/formula/compile.d.ts +15 -0
- package/dist/formula/compile.js +9 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +17 -0
- package/dist/intake.d.ts +134 -0
- package/dist/intake.js +239 -0
- package/dist/journey-signals.d.ts +89 -0
- package/dist/journey-signals.js +151 -0
- package/dist/manifest.d.ts +1060 -60
- package/dist/manifest.js +1111 -61
- package/dist/mine.d.ts +45 -0
- package/dist/mine.js +119 -0
- package/dist/occupies.d.ts +64 -0
- package/dist/occupies.js +122 -0
- package/dist/questions.d.ts +179 -0
- package/dist/questions.js +514 -0
- package/dist/recurring.d.ts +33 -4
- package/dist/recurring.js +50 -3
- package/dist/restricted-fields.d.ts +15 -0
- package/dist/restricted-fields.js +97 -0
- package/dist/rich-text.d.ts +22 -0
- package/dist/rich-text.js +91 -0
- package/dist/routine-mail.d.ts +400 -0
- package/dist/routine-mail.js +955 -0
- package/dist/runtime.d.ts +5 -11
- package/dist/runtime.js +21 -11
- package/dist/screens.d.ts +3 -0
- package/dist/screens.js +74 -0
- package/dist/sellable.d.ts +231 -2
- package/dist/sellable.js +342 -1
- package/dist/slug.d.ts +2 -0
- package/dist/slug.js +6 -2
- package/dist/staffed.d.ts +178 -0
- package/dist/staffed.js +287 -0
- package/dist/states.d.ts +74 -4
- package/dist/states.js +154 -58
- package/dist/stock.d.ts +129 -0
- package/dist/stock.js +205 -0
- package/dist/team.d.ts +28 -0
- package/dist/team.js +52 -0
- package/dist/testing.d.ts +22 -1
- package/dist/testing.js +47 -5
- package/dist/worked-on.d.ts +42 -0
- package/dist/worked-on.js +79 -0
- package/package.json +9 -1
- package/src/acknowledge.ts +100 -0
- package/src/agreements.ts +185 -0
- package/src/allowance.ts +98 -8
- package/src/automation-check.ts +120 -9
- package/src/automation.ts +78 -10
- package/src/behaviour.ts +26 -6
- package/src/calendar-entry.ts +258 -0
- package/src/capacity.ts +103 -2
- package/src/checklists.ts +118 -0
- package/src/contract.ts +514 -27
- package/src/discount.ts +408 -0
- package/src/document.ts +4 -2
- package/src/field-types.ts +5 -0
- package/src/formula/compile.ts +10 -0
- package/src/index.ts +17 -0
- package/src/intake.ts +380 -0
- package/src/journey-signals.ts +215 -0
- package/src/manifest.ts +1313 -66
- package/src/mine.ts +161 -0
- package/src/occupies.ts +192 -0
- package/src/questions.ts +681 -0
- package/src/recurring.ts +90 -9
- package/src/restricted-fields.ts +129 -0
- package/src/rich-text.ts +112 -0
- package/src/routine-mail.ts +1272 -0
- package/src/runtime.ts +25 -12
- package/src/screens.ts +91 -0
- package/src/sellable.ts +595 -1
- package/src/slug.ts +7 -2
- package/src/staffed.ts +474 -0
- package/src/states.ts +220 -64
- package/src/stock.ts +332 -0
- package/src/team.ts +83 -0
- package/src/testing.ts +70 -6
- package/src/worked-on.ts +134 -0
package/dist/manifest.d.ts
CHANGED
|
@@ -18,15 +18,17 @@ export declare const fieldManifestSchema: z.ZodObject<{
|
|
|
18
18
|
type: z.ZodEnum<{
|
|
19
19
|
number: "number";
|
|
20
20
|
boolean: "boolean";
|
|
21
|
+
image: "image";
|
|
22
|
+
video: "video";
|
|
21
23
|
date: "date";
|
|
24
|
+
relation: "relation";
|
|
25
|
+
datetime: "datetime";
|
|
22
26
|
text: "text";
|
|
27
|
+
select: "select";
|
|
28
|
+
percent: "percent";
|
|
23
29
|
longText: "longText";
|
|
24
30
|
currency: "currency";
|
|
25
|
-
percent: "percent";
|
|
26
|
-
datetime: "datetime";
|
|
27
|
-
select: "select";
|
|
28
31
|
multiSelect: "multiSelect";
|
|
29
|
-
relation: "relation";
|
|
30
32
|
user: "user";
|
|
31
33
|
email: "email";
|
|
32
34
|
phone: "phone";
|
|
@@ -36,8 +38,7 @@ export declare const fieldManifestSchema: z.ZodObject<{
|
|
|
36
38
|
timezone: "timezone";
|
|
37
39
|
richText: "richText";
|
|
38
40
|
slug: "slug";
|
|
39
|
-
|
|
40
|
-
video: "video";
|
|
41
|
+
checklist: "checklist";
|
|
41
42
|
}>;
|
|
42
43
|
label: z.ZodString;
|
|
43
44
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -57,6 +58,7 @@ export declare const fieldManifestSchema: z.ZodObject<{
|
|
|
57
58
|
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
58
59
|
defaultSetting: z.ZodOptional<z.ZodString>;
|
|
59
60
|
personApproves: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
+
restricted: z.ZodOptional<z.ZodString>;
|
|
60
62
|
to: z.ZodOptional<z.ZodString>;
|
|
61
63
|
many: z.ZodOptional<z.ZodBoolean>;
|
|
62
64
|
expression: z.ZodOptional<z.ZodString>;
|
|
@@ -77,6 +79,8 @@ export type FieldManifest = z.infer<typeof fieldManifestSchema>;
|
|
|
77
79
|
export declare function onStep(value: number, from: number, step: number): boolean;
|
|
78
80
|
/** Field names a publishable object's records get from the host (ADR 0446). */
|
|
79
81
|
export declare const PUBLISHED_FIELD_NAMES: readonly ["publishedVersion", "publishedAt", "publishState", "publishAt"];
|
|
82
|
+
/** A `when` as its list of conditions, all of which must hold (ADR 0689). */
|
|
83
|
+
export declare function whenConditions<C>(when: C | readonly C[] | undefined): readonly C[];
|
|
80
84
|
export declare const stagesManifestSchema: z.ZodObject<{
|
|
81
85
|
field: z.ZodString;
|
|
82
86
|
stage: z.ZodObject<{
|
|
@@ -101,7 +105,11 @@ export declare const stagesManifestSchema: z.ZodObject<{
|
|
|
101
105
|
}> & z.core.$partial, z.ZodArray<z.ZodString>>>;
|
|
102
106
|
}, z.core.$strip>;
|
|
103
107
|
export type StagesManifest = z.infer<typeof stagesManifestSchema>;
|
|
104
|
-
export declare const
|
|
108
|
+
export declare const ackNotice: z.ZodObject<{
|
|
109
|
+
title: z.ZodString;
|
|
110
|
+
body: z.ZodOptional<z.ZodString>;
|
|
111
|
+
}, z.core.$strict>;
|
|
112
|
+
declare const objectManifestSchema: z.ZodObject<{
|
|
105
113
|
label: z.ZodString;
|
|
106
114
|
plural: z.ZodString;
|
|
107
115
|
icon: z.ZodOptional<z.ZodString>;
|
|
@@ -112,15 +120,17 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
112
120
|
type: z.ZodEnum<{
|
|
113
121
|
number: "number";
|
|
114
122
|
boolean: "boolean";
|
|
123
|
+
image: "image";
|
|
124
|
+
video: "video";
|
|
115
125
|
date: "date";
|
|
126
|
+
relation: "relation";
|
|
127
|
+
datetime: "datetime";
|
|
116
128
|
text: "text";
|
|
129
|
+
select: "select";
|
|
130
|
+
percent: "percent";
|
|
117
131
|
longText: "longText";
|
|
118
132
|
currency: "currency";
|
|
119
|
-
percent: "percent";
|
|
120
|
-
datetime: "datetime";
|
|
121
|
-
select: "select";
|
|
122
133
|
multiSelect: "multiSelect";
|
|
123
|
-
relation: "relation";
|
|
124
134
|
user: "user";
|
|
125
135
|
email: "email";
|
|
126
136
|
phone: "phone";
|
|
@@ -130,8 +140,7 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
130
140
|
timezone: "timezone";
|
|
131
141
|
richText: "richText";
|
|
132
142
|
slug: "slug";
|
|
133
|
-
|
|
134
|
-
video: "video";
|
|
143
|
+
checklist: "checklist";
|
|
135
144
|
}>;
|
|
136
145
|
label: z.ZodString;
|
|
137
146
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -151,6 +160,7 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
151
160
|
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
152
161
|
defaultSetting: z.ZodOptional<z.ZodString>;
|
|
153
162
|
personApproves: z.ZodOptional<z.ZodBoolean>;
|
|
163
|
+
restricted: z.ZodOptional<z.ZodString>;
|
|
154
164
|
to: z.ZodOptional<z.ZodString>;
|
|
155
165
|
many: z.ZodOptional<z.ZodBoolean>;
|
|
156
166
|
expression: z.ZodOptional<z.ZodString>;
|
|
@@ -167,9 +177,9 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
167
177
|
}, z.core.$strict>>>;
|
|
168
178
|
}, z.core.$strip>>;
|
|
169
179
|
navigation: z.ZodOptional<z.ZodEnum<{
|
|
180
|
+
none: "none";
|
|
170
181
|
main: "main";
|
|
171
182
|
settings: "settings";
|
|
172
|
-
none: "none";
|
|
173
183
|
}>>;
|
|
174
184
|
indexes: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
175
185
|
timelineLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -222,14 +232,14 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
222
232
|
grants: z.ZodOptional<z.ZodObject<{
|
|
223
233
|
object: z.ZodString;
|
|
224
234
|
set: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
|
|
225
|
-
|
|
235
|
+
code: "code";
|
|
226
236
|
order: "order";
|
|
237
|
+
item: "item";
|
|
227
238
|
"order.person": "order.person";
|
|
228
239
|
"order.email": "order.email";
|
|
229
240
|
line: "line";
|
|
230
241
|
"line.title": "line.title";
|
|
231
242
|
"line.unitPrice": "line.unitPrice";
|
|
232
|
-
code: "code";
|
|
233
243
|
}>, z.ZodString]>>;
|
|
234
244
|
void: z.ZodString;
|
|
235
245
|
valid: z.ZodOptional<z.ZodObject<{
|
|
@@ -239,6 +249,22 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
239
249
|
}, z.core.$strict>>;
|
|
240
250
|
}, z.core.$strict>>;
|
|
241
251
|
onePerPerson: z.ZodOptional<z.ZodString>;
|
|
252
|
+
moves: z.ZodOptional<z.ZodObject<{
|
|
253
|
+
held: z.ZodString;
|
|
254
|
+
paid: z.ZodString;
|
|
255
|
+
expired: z.ZodString;
|
|
256
|
+
refund: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
257
|
+
price: z.ZodOptional<z.ZodObject<{
|
|
258
|
+
field: z.ZodOptional<z.ZodString>;
|
|
259
|
+
setting: z.ZodOptional<z.ZodString>;
|
|
260
|
+
}, z.core.$strict>>;
|
|
261
|
+
title: z.ZodOptional<z.ZodString>;
|
|
262
|
+
order: z.ZodOptional<z.ZodString>;
|
|
263
|
+
guest: z.ZodOptional<z.ZodBoolean>;
|
|
264
|
+
holdCap: z.ZodOptional<z.ZodObject<{
|
|
265
|
+
setting: z.ZodString;
|
|
266
|
+
}, z.core.$strict>>;
|
|
267
|
+
}, z.core.$strict>>;
|
|
242
268
|
tax: z.ZodOptional<z.ZodObject<{
|
|
243
269
|
code: z.ZodString;
|
|
244
270
|
place: z.ZodOptional<z.ZodObject<{
|
|
@@ -257,6 +283,13 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
257
283
|
year: "year";
|
|
258
284
|
}>;
|
|
259
285
|
trialDays: z.ZodOptional<z.ZodString>;
|
|
286
|
+
pause: z.ZodOptional<z.ZodObject<{
|
|
287
|
+
minDays: z.ZodOptional<z.ZodString>;
|
|
288
|
+
maxDays: z.ZodOptional<z.ZodString>;
|
|
289
|
+
}, z.core.$strict>>;
|
|
290
|
+
coolingOff: z.ZodOptional<z.ZodObject<{
|
|
291
|
+
setting: z.ZodString;
|
|
292
|
+
}, z.core.$strict>>;
|
|
260
293
|
grants: z.ZodOptional<z.ZodObject<{
|
|
261
294
|
object: z.ZodString;
|
|
262
295
|
set: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
|
|
@@ -277,33 +310,99 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
277
310
|
}, z.core.$strict>;
|
|
278
311
|
}, z.core.$strict>>;
|
|
279
312
|
}, z.core.$strict>>;
|
|
313
|
+
finance: z.ZodOptional<z.ZodObject<{
|
|
314
|
+
category: z.ZodOptional<z.ZodObject<{
|
|
315
|
+
key: z.ZodString;
|
|
316
|
+
label: z.ZodString;
|
|
317
|
+
}, z.core.$strict>>;
|
|
318
|
+
earned: z.ZodOptional<z.ZodEnum<{
|
|
319
|
+
at_sale: "at_sale";
|
|
320
|
+
over_period: "over_period";
|
|
321
|
+
per_use: "per_use";
|
|
322
|
+
at_date: "at_date";
|
|
323
|
+
}>>;
|
|
324
|
+
at: z.ZodOptional<z.ZodString>;
|
|
325
|
+
}, z.core.$strict>>;
|
|
326
|
+
goods: z.ZodOptional<z.ZodObject<{
|
|
327
|
+
soldIn: z.ZodOptional<z.ZodString>;
|
|
328
|
+
}, z.core.$strict>>;
|
|
329
|
+
delivery: z.ZodOptional<z.ZodObject<{
|
|
330
|
+
kind: z.ZodString;
|
|
331
|
+
freeOver: z.ZodOptional<z.ZodString>;
|
|
332
|
+
countries: z.ZodOptional<z.ZodString>;
|
|
333
|
+
active: z.ZodOptional<z.ZodString>;
|
|
334
|
+
}, z.core.$strict>>;
|
|
335
|
+
}, z.core.$strict>>;
|
|
336
|
+
stock: z.ZodOptional<z.ZodObject<{
|
|
337
|
+
reorderAt: z.ZodOptional<z.ZodString>;
|
|
338
|
+
reorderQty: z.ZodOptional<z.ZodString>;
|
|
339
|
+
show: z.ZodOptional<z.ZodEnum<{
|
|
340
|
+
exact: "exact";
|
|
341
|
+
low: "low";
|
|
342
|
+
availability: "availability";
|
|
343
|
+
}>>;
|
|
344
|
+
lowAt: z.ZodOptional<z.ZodNumber>;
|
|
345
|
+
notify: z.ZodOptional<z.ZodString>;
|
|
346
|
+
}, z.core.$strict>>;
|
|
347
|
+
stockMoves: z.ZodOptional<z.ZodObject<{
|
|
348
|
+
move: z.ZodEnum<{
|
|
349
|
+
set: "set";
|
|
350
|
+
add: "add";
|
|
351
|
+
remove: "remove";
|
|
352
|
+
}>;
|
|
353
|
+
on: z.ZodString;
|
|
354
|
+
quantity: z.ZodString;
|
|
355
|
+
when: z.ZodString;
|
|
356
|
+
through: z.ZodOptional<z.ZodString>;
|
|
357
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
358
|
+
used: "used";
|
|
359
|
+
opening: "opening";
|
|
360
|
+
received: "received";
|
|
361
|
+
sold: "sold";
|
|
362
|
+
returned: "returned";
|
|
363
|
+
written_off: "written_off";
|
|
364
|
+
counted: "counted";
|
|
365
|
+
adjusted: "adjusted";
|
|
366
|
+
}>>;
|
|
367
|
+
unitCost: z.ZodOptional<z.ZodString>;
|
|
368
|
+
note: z.ZodOptional<z.ZodString>;
|
|
280
369
|
}, z.core.$strict>>;
|
|
281
370
|
allowance: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
282
371
|
holds: z.ZodObject<{
|
|
283
372
|
person: z.ZodString;
|
|
284
373
|
uses: z.ZodString;
|
|
285
374
|
per: z.ZodUnion<readonly [z.ZodEnum<{
|
|
375
|
+
total: "total";
|
|
286
376
|
week: "week";
|
|
287
377
|
month: "month";
|
|
288
|
-
total: "total";
|
|
289
378
|
}>, z.ZodObject<{
|
|
290
379
|
field: z.ZodString;
|
|
291
380
|
}, z.core.$strict>]>;
|
|
292
381
|
spendsOn: z.ZodUnion<readonly [z.ZodObject<{
|
|
293
382
|
object: z.ZodString;
|
|
294
383
|
when: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
295
|
-
field: z.ZodString
|
|
384
|
+
field: z.ZodOptional<z.ZodString>;
|
|
385
|
+
value: z.ZodOptional<z.ZodString>;
|
|
296
386
|
in: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
297
387
|
atLeast: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
298
388
|
below: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
389
|
+
empty: z.ZodOptional<z.ZodEnum<{
|
|
390
|
+
any: "any";
|
|
391
|
+
none: "none";
|
|
392
|
+
}>>;
|
|
299
393
|
}, z.core.$strict>>>;
|
|
300
394
|
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
301
395
|
object: z.ZodString;
|
|
302
396
|
when: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
303
|
-
field: z.ZodString
|
|
397
|
+
field: z.ZodOptional<z.ZodString>;
|
|
398
|
+
value: z.ZodOptional<z.ZodString>;
|
|
304
399
|
in: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
305
400
|
atLeast: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
306
401
|
below: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
402
|
+
empty: z.ZodOptional<z.ZodEnum<{
|
|
403
|
+
any: "any";
|
|
404
|
+
none: "none";
|
|
405
|
+
}>>;
|
|
307
406
|
}, z.core.$strict>>>;
|
|
308
407
|
}, z.core.$strict>>]>;
|
|
309
408
|
from: z.ZodOptional<z.ZodString>;
|
|
@@ -328,11 +427,63 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
328
427
|
movedFrom: z.ZodOptional<z.ZodObject<{
|
|
329
428
|
field: z.ZodString;
|
|
330
429
|
state: z.ZodString;
|
|
430
|
+
fixed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
431
|
+
anchor: z.ZodOptional<z.ZodObject<{
|
|
432
|
+
field: z.ZodString;
|
|
433
|
+
from: z.ZodString;
|
|
434
|
+
}, z.core.$strict>>;
|
|
331
435
|
}, z.core.$strict>>;
|
|
332
436
|
paidBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
333
437
|
waived: z.ZodOptional<z.ZodString>;
|
|
438
|
+
released: z.ZodOptional<z.ZodString>;
|
|
334
439
|
}, z.core.$strict>;
|
|
335
440
|
}, z.core.$strict>]>>;
|
|
441
|
+
discount: z.ZodOptional<z.ZodObject<{
|
|
442
|
+
kind: z.ZodString;
|
|
443
|
+
percent: z.ZodOptional<z.ZodString>;
|
|
444
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
445
|
+
live: z.ZodArray<z.ZodString>;
|
|
446
|
+
automatic: z.ZodOptional<z.ZodString>;
|
|
447
|
+
code: z.ZodOptional<z.ZodString>;
|
|
448
|
+
codes: z.ZodOptional<z.ZodObject<{
|
|
449
|
+
object: z.ZodString;
|
|
450
|
+
discount: z.ZodString;
|
|
451
|
+
word: z.ZodString;
|
|
452
|
+
uses: z.ZodOptional<z.ZodString>;
|
|
453
|
+
active: z.ZodOptional<z.ZodString>;
|
|
454
|
+
}, z.core.$strict>>;
|
|
455
|
+
who: z.ZodOptional<z.ZodString>;
|
|
456
|
+
plans: z.ZodOptional<z.ZodString>;
|
|
457
|
+
organisations: z.ZodOptional<z.ZodString>;
|
|
458
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
459
|
+
objects: z.ZodOptional<z.ZodString>;
|
|
460
|
+
records: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
461
|
+
from: z.ZodOptional<z.ZodString>;
|
|
462
|
+
until: z.ZodOptional<z.ZodString>;
|
|
463
|
+
totalUses: z.ZodOptional<z.ZodString>;
|
|
464
|
+
perPerson: z.ZodOptional<z.ZodString>;
|
|
465
|
+
minSpend: z.ZodOptional<z.ZodString>;
|
|
466
|
+
}, z.core.$strict>>;
|
|
467
|
+
agreements: z.ZodOptional<z.ZodObject<{
|
|
468
|
+
point: z.ZodString;
|
|
469
|
+
label: z.ZodString;
|
|
470
|
+
suggests: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
471
|
+
other: "other";
|
|
472
|
+
terms: "terms";
|
|
473
|
+
waiver: "waiver";
|
|
474
|
+
health: "health";
|
|
475
|
+
guardian: "guardian";
|
|
476
|
+
}>>>;
|
|
477
|
+
enter: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
478
|
+
person: z.ZodOptional<z.ZodString>;
|
|
479
|
+
keeps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
480
|
+
importMovesOver: z.ZodOptional<z.ZodBoolean>;
|
|
481
|
+
inlineStep: z.ZodOptional<z.ZodBoolean>;
|
|
482
|
+
}, z.core.$strip>>;
|
|
483
|
+
healthNotes: z.ZodOptional<z.ZodObject<{
|
|
484
|
+
list: z.ZodString;
|
|
485
|
+
person: z.ZodString;
|
|
486
|
+
}, z.core.$strip>>;
|
|
336
487
|
states: z.ZodOptional<z.ZodObject<{
|
|
337
488
|
field: z.ZodString;
|
|
338
489
|
initial: z.ZodString;
|
|
@@ -410,6 +561,7 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
410
561
|
}, z.core.$strict>>;
|
|
411
562
|
staffOnly: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
412
563
|
closed: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
564
|
+
requires: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
413
565
|
}, z.core.$strict>>;
|
|
414
566
|
requests: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
415
567
|
follows: z.ZodOptional<z.ZodObject<{
|
|
@@ -417,11 +569,38 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
417
569
|
when: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
418
570
|
from: z.ZodArray<z.ZodString>;
|
|
419
571
|
}, z.core.$strict>>;
|
|
572
|
+
after: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
573
|
+
from: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
574
|
+
to: z.ZodString;
|
|
575
|
+
at: z.ZodString;
|
|
576
|
+
minutesAfter: z.ZodOptional<z.ZodNumber>;
|
|
577
|
+
ifAnyIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
578
|
+
ifSet: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
579
|
+
}, z.core.$strict>>>;
|
|
420
580
|
}, z.core.$strip>>;
|
|
421
581
|
claims: z.ZodOptional<z.ZodObject<{
|
|
422
582
|
on: z.ZodString;
|
|
423
583
|
held: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
424
584
|
confirmed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
585
|
+
waitlist: z.ZodOptional<z.ZodObject<{
|
|
586
|
+
state: z.ZodString;
|
|
587
|
+
promote: z.ZodString;
|
|
588
|
+
until: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
589
|
+
at: z.ZodString;
|
|
590
|
+
daysBefore: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodObject<{
|
|
591
|
+
field: z.ZodOptional<z.ZodString>;
|
|
592
|
+
setting: z.ZodOptional<z.ZodString>;
|
|
593
|
+
}, z.core.$strict>]>>;
|
|
594
|
+
minutesBefore: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodObject<{
|
|
595
|
+
field: z.ZodOptional<z.ZodString>;
|
|
596
|
+
setting: z.ZodOptional<z.ZodString>;
|
|
597
|
+
}, z.core.$strict>]>>;
|
|
598
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
599
|
+
}, z.core.$strict>]>;
|
|
600
|
+
promotedAt: z.ZodOptional<z.ZodString>;
|
|
601
|
+
passedOverAt: z.ZodOptional<z.ZodString>;
|
|
602
|
+
passedOverReason: z.ZodOptional<z.ZodString>;
|
|
603
|
+
}, z.core.$strict>>;
|
|
425
604
|
}, z.core.$strict>>;
|
|
426
605
|
unique: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
427
606
|
fields: z.ZodArray<z.ZodString>;
|
|
@@ -431,12 +610,17 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
431
610
|
generates: z.ZodString;
|
|
432
611
|
link: z.ZodString;
|
|
433
612
|
rule: z.ZodObject<{
|
|
434
|
-
weekdays: z.ZodString
|
|
613
|
+
weekdays: z.ZodOptional<z.ZodString>;
|
|
435
614
|
time: z.ZodString;
|
|
436
615
|
length: z.ZodOptional<z.ZodString>;
|
|
437
616
|
from: z.ZodString;
|
|
438
617
|
until: z.ZodOptional<z.ZodString>;
|
|
439
618
|
zone: z.ZodOptional<z.ZodString>;
|
|
619
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
620
|
+
every: z.ZodOptional<z.ZodString>;
|
|
621
|
+
day: z.ZodOptional<z.ZodString>;
|
|
622
|
+
month: z.ZodOptional<z.ZodString>;
|
|
623
|
+
lengthDays: z.ZodOptional<z.ZodString>;
|
|
440
624
|
}, z.core.$strict>;
|
|
441
625
|
into: z.ZodObject<{
|
|
442
626
|
starts: z.ZodString;
|
|
@@ -460,6 +644,134 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
460
644
|
object: z.ZodString;
|
|
461
645
|
field: z.ZodString;
|
|
462
646
|
}, z.core.$strict>>;
|
|
647
|
+
horizonSetting: z.ZodOptional<z.ZodString>;
|
|
648
|
+
}, z.core.$strict>>;
|
|
649
|
+
staffed: z.ZodOptional<z.ZodObject<{
|
|
650
|
+
who: z.ZodObject<{
|
|
651
|
+
field: z.ZodString;
|
|
652
|
+
account: z.ZodOptional<z.ZodString>;
|
|
653
|
+
}, z.core.$strict>;
|
|
654
|
+
starts: z.ZodString;
|
|
655
|
+
ends: z.ZodString;
|
|
656
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
657
|
+
kind: z.ZodString;
|
|
658
|
+
live: z.ZodArray<z.ZodString>;
|
|
659
|
+
place: z.ZodOptional<z.ZodString>;
|
|
660
|
+
pattern: z.ZodOptional<z.ZodObject<{
|
|
661
|
+
link: z.ZodString;
|
|
662
|
+
who: z.ZodString;
|
|
663
|
+
}, z.core.$strict>>;
|
|
664
|
+
payBefore: z.ZodOptional<z.ZodObject<{
|
|
665
|
+
field: z.ZodString;
|
|
666
|
+
}, z.core.$strict>>;
|
|
667
|
+
payAfter: z.ZodOptional<z.ZodObject<{
|
|
668
|
+
field: z.ZodString;
|
|
669
|
+
}, z.core.$strict>>;
|
|
670
|
+
claimBefore: z.ZodOptional<z.ZodObject<{
|
|
671
|
+
field: z.ZodString;
|
|
672
|
+
}, z.core.$strict>>;
|
|
673
|
+
claimAfter: z.ZodOptional<z.ZodObject<{
|
|
674
|
+
field: z.ZodString;
|
|
675
|
+
}, z.core.$strict>>;
|
|
676
|
+
account: z.ZodOptional<z.ZodLiteral<"required">>;
|
|
677
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
678
|
+
open: z.ZodOptional<z.ZodObject<{
|
|
679
|
+
length: z.ZodObject<{
|
|
680
|
+
field: z.ZodString;
|
|
681
|
+
}, z.core.$strict>;
|
|
682
|
+
step: z.ZodOptional<z.ZodObject<{
|
|
683
|
+
field: z.ZodString;
|
|
684
|
+
}, z.core.$strict>>;
|
|
685
|
+
rooms: z.ZodOptional<z.ZodObject<{
|
|
686
|
+
field: z.ZodString;
|
|
687
|
+
}, z.core.$strict>>;
|
|
688
|
+
client: z.ZodOptional<z.ZodString>;
|
|
689
|
+
closedBy: z.ZodOptional<z.ZodObject<{
|
|
690
|
+
object: z.ZodString;
|
|
691
|
+
from: z.ZodString;
|
|
692
|
+
until: z.ZodString;
|
|
693
|
+
}, z.core.$strict>>;
|
|
694
|
+
customer: z.ZodOptional<z.ZodLiteral<true>>;
|
|
695
|
+
}, z.core.$strict>>;
|
|
696
|
+
evidence: z.ZodOptional<z.ZodObject<{
|
|
697
|
+
object: z.ZodString;
|
|
698
|
+
link: z.ZodString;
|
|
699
|
+
by: z.ZodString;
|
|
700
|
+
}, z.core.$strict>>;
|
|
701
|
+
timesFrom: z.ZodOptional<z.ZodString>;
|
|
702
|
+
}, z.core.$strict>>;
|
|
703
|
+
workedOn: z.ZodOptional<z.ZodObject<{
|
|
704
|
+
live: z.ZodArray<z.ZodString>;
|
|
705
|
+
title: z.ZodString;
|
|
706
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
707
|
+
place: z.ZodOptional<z.ZodString>;
|
|
708
|
+
readers: z.ZodString;
|
|
709
|
+
partOf: z.ZodOptional<z.ZodString>;
|
|
710
|
+
}, z.core.$strict>>;
|
|
711
|
+
team: z.ZodOptional<z.ZodObject<{
|
|
712
|
+
person: z.ZodString;
|
|
713
|
+
staff: z.ZodArray<z.ZodString>;
|
|
714
|
+
live: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
715
|
+
}, z.core.$strict>>;
|
|
716
|
+
occupies: z.ZodOptional<z.ZodObject<{
|
|
717
|
+
thing: z.ZodString;
|
|
718
|
+
starts: z.ZodString;
|
|
719
|
+
ends: z.ZodString;
|
|
720
|
+
live: z.ZodArray<z.ZodString>;
|
|
721
|
+
before: z.ZodOptional<z.ZodObject<{
|
|
722
|
+
field: z.ZodString;
|
|
723
|
+
}, z.core.$strict>>;
|
|
724
|
+
after: z.ZodOptional<z.ZodObject<{
|
|
725
|
+
field: z.ZodString;
|
|
726
|
+
}, z.core.$strict>>;
|
|
727
|
+
only: z.ZodOptional<z.ZodString>;
|
|
728
|
+
provisional: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
729
|
+
title: z.ZodOptional<z.ZodString>;
|
|
730
|
+
}, z.core.$strict>>;
|
|
731
|
+
calendarEntry: z.ZodOptional<z.ZodObject<{
|
|
732
|
+
starts: z.ZodString;
|
|
733
|
+
ends: z.ZodString;
|
|
734
|
+
title: z.ZodString;
|
|
735
|
+
place: z.ZodOptional<z.ZodString>;
|
|
736
|
+
live: z.ZodArray<z.ZodString>;
|
|
737
|
+
}, z.core.$strict>>;
|
|
738
|
+
intake: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
739
|
+
role: z.ZodLiteral<"form">;
|
|
740
|
+
questions: z.ZodString;
|
|
741
|
+
answeredBy: z.ZodString;
|
|
742
|
+
openIn: z.ZodArray<z.ZodString>;
|
|
743
|
+
anonymous: z.ZodOptional<z.ZodString>;
|
|
744
|
+
destination: z.ZodOptional<z.ZodString>;
|
|
745
|
+
opensAt: z.ZodOptional<z.ZodString>;
|
|
746
|
+
closesAt: z.ZodOptional<z.ZodString>;
|
|
747
|
+
dailyCap: z.ZodOptional<z.ZodString>;
|
|
748
|
+
notify: z.ZodOptional<z.ZodString>;
|
|
749
|
+
hourlyCap: z.ZodOptional<z.ZodString>;
|
|
750
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
751
|
+
role: z.ZodLiteral<"submission">;
|
|
752
|
+
form: z.ZodString;
|
|
753
|
+
version: z.ZodString;
|
|
754
|
+
answers: z.ZodString;
|
|
755
|
+
person: z.ZodString;
|
|
756
|
+
certainty: z.ZodString;
|
|
757
|
+
spam: z.ZodString;
|
|
758
|
+
via: z.ZodOptional<z.ZodString>;
|
|
759
|
+
rating: z.ZodOptional<z.ZodString>;
|
|
760
|
+
marketing: z.ZodOptional<z.ZodString>;
|
|
761
|
+
about: z.ZodOptional<z.ZodString>;
|
|
762
|
+
aboutObject: z.ZodOptional<z.ZodString>;
|
|
763
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
764
|
+
role: z.ZodLiteral<"destination">;
|
|
765
|
+
person: z.ZodString;
|
|
766
|
+
fields: z.ZodArray<z.ZodString>;
|
|
767
|
+
source: z.ZodOptional<z.ZodString>;
|
|
768
|
+
}, z.core.$strict>], "role">>;
|
|
769
|
+
checklists: z.ZodOptional<z.ZodObject<{
|
|
770
|
+
template: z.ZodString;
|
|
771
|
+
who: z.ZodString;
|
|
772
|
+
opens: z.ZodString;
|
|
773
|
+
closes: z.ZodString;
|
|
774
|
+
live: z.ZodArray<z.ZodString>;
|
|
463
775
|
}, z.core.$strict>>;
|
|
464
776
|
owner: z.ZodOptional<z.ZodString>;
|
|
465
777
|
customer: z.ZodOptional<z.ZodObject<{
|
|
@@ -468,22 +780,35 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
468
780
|
write: z.ZodArray<z.ZodString>;
|
|
469
781
|
requireAccess: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
470
782
|
createOnly: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
783
|
+
delete: z.ZodOptional<z.ZodBoolean>;
|
|
784
|
+
guardians: z.ZodOptional<z.ZodObject<{
|
|
785
|
+
write: z.ZodOptional<z.ZodBoolean>;
|
|
786
|
+
madeBy: z.ZodOptional<z.ZodString>;
|
|
787
|
+
}, z.core.$strict>>;
|
|
471
788
|
}, z.core.$strict>>;
|
|
472
789
|
public: z.ZodOptional<z.ZodObject<{
|
|
473
790
|
read: z.ZodArray<z.ZodString>;
|
|
474
|
-
when: z.ZodOptional<z.ZodObject<{
|
|
791
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
475
792
|
via: z.ZodOptional<z.ZodString>;
|
|
476
|
-
field: z.ZodString
|
|
477
|
-
in: z.ZodArray<z.ZodString
|
|
478
|
-
}, z.core.$strict
|
|
793
|
+
field: z.ZodOptional<z.ZodString>;
|
|
794
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
795
|
+
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
796
|
+
via: z.ZodOptional<z.ZodString>;
|
|
797
|
+
field: z.ZodOptional<z.ZodString>;
|
|
798
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
799
|
+
}, z.core.$strict>>]>>;
|
|
479
800
|
}, z.core.$strict>>;
|
|
480
801
|
signedIn: z.ZodOptional<z.ZodObject<{
|
|
481
802
|
read: z.ZodArray<z.ZodString>;
|
|
482
|
-
when: z.ZodOptional<z.ZodObject<{
|
|
803
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
483
804
|
via: z.ZodOptional<z.ZodString>;
|
|
484
|
-
field: z.ZodString
|
|
485
|
-
in: z.ZodArray<z.ZodString
|
|
486
|
-
}, z.core.$strict
|
|
805
|
+
field: z.ZodOptional<z.ZodString>;
|
|
806
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
807
|
+
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
808
|
+
via: z.ZodOptional<z.ZodString>;
|
|
809
|
+
field: z.ZodOptional<z.ZodString>;
|
|
810
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
811
|
+
}, z.core.$strict>>]>>;
|
|
487
812
|
}, z.core.$strict>>;
|
|
488
813
|
customerVia: z.ZodOptional<z.ZodObject<{
|
|
489
814
|
from: z.ZodString;
|
|
@@ -506,6 +831,33 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
506
831
|
content: z.ZodArray<z.ZodString>;
|
|
507
832
|
slug: z.ZodOptional<z.ZodString>;
|
|
508
833
|
date: z.ZodOptional<z.ZodString>;
|
|
834
|
+
publishIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
835
|
+
acknowledge: z.ZodOptional<z.ZodObject<{
|
|
836
|
+
who: z.ZodString;
|
|
837
|
+
manage: z.ZodString;
|
|
838
|
+
managed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
839
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
840
|
+
notices: z.ZodOptional<z.ZodObject<{
|
|
841
|
+
asked: z.ZodOptional<z.ZodObject<{
|
|
842
|
+
title: z.ZodString;
|
|
843
|
+
body: z.ZodOptional<z.ZodString>;
|
|
844
|
+
}, z.core.$strict>>;
|
|
845
|
+
reminder: z.ZodOptional<z.ZodObject<{
|
|
846
|
+
title: z.ZodString;
|
|
847
|
+
body: z.ZodOptional<z.ZodString>;
|
|
848
|
+
afterDays: z.ZodNumber;
|
|
849
|
+
}, z.core.$strict>>;
|
|
850
|
+
outstanding: z.ZodOptional<z.ZodObject<{
|
|
851
|
+
title: z.ZodString;
|
|
852
|
+
body: z.ZodOptional<z.ZodString>;
|
|
853
|
+
}, z.core.$strict>>;
|
|
854
|
+
welcome: z.ZodOptional<z.ZodObject<{
|
|
855
|
+
title: z.ZodString;
|
|
856
|
+
body: z.ZodOptional<z.ZodString>;
|
|
857
|
+
}, z.core.$strict>>;
|
|
858
|
+
}, z.core.$strict>>;
|
|
859
|
+
}, z.core.$strict>>;
|
|
860
|
+
staffRead: z.ZodOptional<z.ZodBoolean>;
|
|
509
861
|
}, z.core.$strict>>;
|
|
510
862
|
navigationOrder: z.ZodOptional<z.ZodNumber>;
|
|
511
863
|
requireOneOf: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
@@ -565,10 +917,17 @@ export declare const toolManifestSchema: z.ZodObject<{
|
|
|
565
917
|
staff: "staff";
|
|
566
918
|
customer: "customer";
|
|
567
919
|
public: "public";
|
|
920
|
+
device: "device";
|
|
568
921
|
}>>>;
|
|
569
922
|
customerFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
570
|
-
permission: z.ZodOptional<z.ZodString
|
|
923
|
+
permission: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
571
924
|
humanOnly: z.ZodOptional<z.ZodLiteral<true>>;
|
|
925
|
+
personApproves: z.ZodOptional<z.ZodLiteral<true>>;
|
|
926
|
+
grantLiftsRoleLimits: z.ZodOptional<z.ZodLiteral<true>>;
|
|
927
|
+
anyStaff: z.ZodOptional<z.ZodLiteral<true>>;
|
|
928
|
+
corePermission: z.ZodOptional<z.ZodString>;
|
|
929
|
+
redact: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
930
|
+
redactResult: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
572
931
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
573
932
|
outputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
574
933
|
}, z.core.$strip>;
|
|
@@ -579,10 +938,42 @@ export declare const roleManifestSchema: z.ZodObject<{
|
|
|
579
938
|
description: z.ZodString;
|
|
580
939
|
permissions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
581
940
|
read: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
941
|
+
today: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
942
|
+
at: z.ZodString;
|
|
943
|
+
until: z.ZodOptional<z.ZodString>;
|
|
944
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
945
|
+
}, z.core.$strict>]>>>;
|
|
946
|
+
looksAfter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
947
|
+
mine: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
948
|
+
through: z.ZodString;
|
|
949
|
+
who: z.ZodString;
|
|
950
|
+
path: z.ZodOptional<z.ZodString>;
|
|
951
|
+
live: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
952
|
+
within: z.ZodOptional<z.ZodObject<{
|
|
953
|
+
from: z.ZodString;
|
|
954
|
+
to: z.ZodOptional<z.ZodString>;
|
|
955
|
+
days: z.ZodNumber;
|
|
956
|
+
}, z.core.$strict>>;
|
|
957
|
+
}, z.core.$strict>>>;
|
|
582
958
|
}, z.core.$strip>;
|
|
583
959
|
export type RoleManifest = z.infer<typeof roleManifestSchema>;
|
|
960
|
+
/** A device role (ADR 0781): see `DeviceRoleSpec`. */
|
|
961
|
+
export declare const deviceRoleManifestSchema: z.ZodObject<{
|
|
962
|
+
label: z.ZodString;
|
|
963
|
+
description: z.ZodString;
|
|
964
|
+
permissions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
965
|
+
screen: z.ZodObject<{
|
|
966
|
+
block: z.ZodString;
|
|
967
|
+
export: z.ZodString;
|
|
968
|
+
}, z.core.$strict>;
|
|
969
|
+
}, z.core.$strict>;
|
|
970
|
+
export type DeviceRoleManifest = z.infer<typeof deviceRoleManifestSchema>;
|
|
584
971
|
/** A role's or a tool's permission: `<extension id>:<word>`. */
|
|
585
972
|
export declare const EXTENSION_PERMISSION_RE: RegExp;
|
|
973
|
+
/** A tool's permissions, one or several (any one opens it, ADR 0600); none when it declares none. */
|
|
974
|
+
export declare function toolPermissions(tool: {
|
|
975
|
+
permission?: string | readonly string[] | undefined;
|
|
976
|
+
}): string[];
|
|
586
977
|
export declare const viewManifestSchema: z.ZodObject<{
|
|
587
978
|
label: z.ZodString;
|
|
588
979
|
object: z.ZodString;
|
|
@@ -690,6 +1081,7 @@ export declare const permissionsManifestSchema: z.ZodObject<{
|
|
|
690
1081
|
operations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
691
1082
|
modules: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
692
1083
|
email: "email";
|
|
1084
|
+
"routine-mail": "routine-mail";
|
|
693
1085
|
google: "google";
|
|
694
1086
|
microsoft: "microsoft";
|
|
695
1087
|
slack: "slack";
|
|
@@ -707,6 +1099,78 @@ export declare const permissionsManifestSchema: z.ZodObject<{
|
|
|
707
1099
|
}>>>;
|
|
708
1100
|
}, z.core.$strip>;
|
|
709
1101
|
export type PermissionsManifest = z.infer<typeof permissionsManifestSchema>;
|
|
1102
|
+
/** A shipped pack's staff screen (stage 47, ADR 0660): see `ScreenSpec`. */
|
|
1103
|
+
export declare const screenManifestSchema: z.ZodObject<{
|
|
1104
|
+
label: z.ZodString;
|
|
1105
|
+
block: z.ZodString;
|
|
1106
|
+
export: z.ZodString;
|
|
1107
|
+
nav: z.ZodOptional<z.ZodObject<{
|
|
1108
|
+
group: z.ZodString;
|
|
1109
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
1110
|
+
}, z.core.$strict>>;
|
|
1111
|
+
opens: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1112
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1113
|
+
record: z.ZodOptional<z.ZodObject<{
|
|
1114
|
+
object: z.ZodString;
|
|
1115
|
+
as: z.ZodString;
|
|
1116
|
+
}, z.core.$strict>>;
|
|
1117
|
+
}, z.core.$strict>;
|
|
1118
|
+
export type ScreenManifest = z.infer<typeof screenManifestSchema>;
|
|
1119
|
+
/** A shipped pack's number on Today (stage 60, ADR 0870): see `TodayItemSpec`. */
|
|
1120
|
+
export declare const todayItemManifestSchema: z.ZodObject<{
|
|
1121
|
+
label: z.ZodString;
|
|
1122
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
1123
|
+
format: z.ZodString;
|
|
1124
|
+
sql: z.ZodString;
|
|
1125
|
+
compare: z.ZodOptional<z.ZodEnum<{
|
|
1126
|
+
none: "none";
|
|
1127
|
+
yesterday: "yesterday";
|
|
1128
|
+
lastWeek: "lastWeek";
|
|
1129
|
+
}>>;
|
|
1130
|
+
attention: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1131
|
+
above: z.ZodNumber;
|
|
1132
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1133
|
+
below: z.ZodNumber;
|
|
1134
|
+
}, z.core.$strict>]>>;
|
|
1135
|
+
rows: z.ZodOptional<z.ZodObject<{
|
|
1136
|
+
sql: z.ZodString;
|
|
1137
|
+
label: z.ZodString;
|
|
1138
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1139
|
+
record: z.ZodObject<{
|
|
1140
|
+
object: z.ZodString;
|
|
1141
|
+
id: z.ZodString;
|
|
1142
|
+
}, z.core.$strict>;
|
|
1143
|
+
}, z.core.$strict>>;
|
|
1144
|
+
opens: z.ZodArray<z.ZodString>;
|
|
1145
|
+
web: z.ZodOptional<z.ZodObject<{
|
|
1146
|
+
screen: z.ZodString;
|
|
1147
|
+
}, z.core.$strict>>;
|
|
1148
|
+
}, z.core.$strict>;
|
|
1149
|
+
export type TodayItemManifest = z.infer<typeof todayItemManifestSchema>;
|
|
1150
|
+
/** At most this many Today items per pack (stage 60). */
|
|
1151
|
+
export declare const MAX_TODAY_ITEMS = 8;
|
|
1152
|
+
/** A shipped pack's section of My account (stage 48, ADR 0710): see `PortalSectionSpec`. */
|
|
1153
|
+
export declare const portalSectionManifestSchema: z.ZodObject<{
|
|
1154
|
+
label: z.ZodString;
|
|
1155
|
+
web: z.ZodOptional<z.ZodObject<{
|
|
1156
|
+
block: z.ZodString;
|
|
1157
|
+
export: z.ZodString;
|
|
1158
|
+
}, z.core.$strict>>;
|
|
1159
|
+
native: z.ZodOptional<z.ZodObject<{
|
|
1160
|
+
block: z.ZodString;
|
|
1161
|
+
export: z.ZodString;
|
|
1162
|
+
}, z.core.$strict>>;
|
|
1163
|
+
order: z.ZodNumber;
|
|
1164
|
+
has: z.ZodArray<z.ZodString>;
|
|
1165
|
+
}, z.core.$strict>;
|
|
1166
|
+
export type PortalSectionManifest = z.infer<typeof portalSectionManifestSchema>;
|
|
1167
|
+
/** Where a pack's section may sit: before the base sections, which start at 60. */
|
|
1168
|
+
export declare const PORTAL_ORDER: {
|
|
1169
|
+
readonly min: 1;
|
|
1170
|
+
readonly max: 59;
|
|
1171
|
+
};
|
|
1172
|
+
/** A screen's key, as a tool's: `desk`, `classList`. */
|
|
1173
|
+
export declare const SCREEN_NAME_RE: RegExp;
|
|
710
1174
|
export declare const manifestSchema: z.ZodObject<{
|
|
711
1175
|
id: z.ZodString;
|
|
712
1176
|
version: z.ZodString;
|
|
@@ -720,6 +1184,7 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
720
1184
|
operations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
721
1185
|
modules: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
722
1186
|
email: "email";
|
|
1187
|
+
"routine-mail": "routine-mail";
|
|
723
1188
|
google: "google";
|
|
724
1189
|
microsoft: "microsoft";
|
|
725
1190
|
slack: "slack";
|
|
@@ -747,15 +1212,17 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
747
1212
|
type: z.ZodEnum<{
|
|
748
1213
|
number: "number";
|
|
749
1214
|
boolean: "boolean";
|
|
1215
|
+
image: "image";
|
|
1216
|
+
video: "video";
|
|
750
1217
|
date: "date";
|
|
1218
|
+
relation: "relation";
|
|
1219
|
+
datetime: "datetime";
|
|
751
1220
|
text: "text";
|
|
1221
|
+
select: "select";
|
|
1222
|
+
percent: "percent";
|
|
752
1223
|
longText: "longText";
|
|
753
1224
|
currency: "currency";
|
|
754
|
-
percent: "percent";
|
|
755
|
-
datetime: "datetime";
|
|
756
|
-
select: "select";
|
|
757
1225
|
multiSelect: "multiSelect";
|
|
758
|
-
relation: "relation";
|
|
759
1226
|
user: "user";
|
|
760
1227
|
email: "email";
|
|
761
1228
|
phone: "phone";
|
|
@@ -765,8 +1232,7 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
765
1232
|
timezone: "timezone";
|
|
766
1233
|
richText: "richText";
|
|
767
1234
|
slug: "slug";
|
|
768
|
-
|
|
769
|
-
video: "video";
|
|
1235
|
+
checklist: "checklist";
|
|
770
1236
|
}>;
|
|
771
1237
|
label: z.ZodString;
|
|
772
1238
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -786,6 +1252,7 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
786
1252
|
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
787
1253
|
defaultSetting: z.ZodOptional<z.ZodString>;
|
|
788
1254
|
personApproves: z.ZodOptional<z.ZodBoolean>;
|
|
1255
|
+
restricted: z.ZodOptional<z.ZodString>;
|
|
789
1256
|
to: z.ZodOptional<z.ZodString>;
|
|
790
1257
|
many: z.ZodOptional<z.ZodBoolean>;
|
|
791
1258
|
expression: z.ZodOptional<z.ZodString>;
|
|
@@ -802,9 +1269,9 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
802
1269
|
}, z.core.$strict>>>;
|
|
803
1270
|
}, z.core.$strip>>;
|
|
804
1271
|
navigation: z.ZodOptional<z.ZodEnum<{
|
|
1272
|
+
none: "none";
|
|
805
1273
|
main: "main";
|
|
806
1274
|
settings: "settings";
|
|
807
|
-
none: "none";
|
|
808
1275
|
}>>;
|
|
809
1276
|
indexes: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
810
1277
|
timelineLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -857,14 +1324,14 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
857
1324
|
grants: z.ZodOptional<z.ZodObject<{
|
|
858
1325
|
object: z.ZodString;
|
|
859
1326
|
set: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
|
|
860
|
-
|
|
1327
|
+
code: "code";
|
|
861
1328
|
order: "order";
|
|
1329
|
+
item: "item";
|
|
862
1330
|
"order.person": "order.person";
|
|
863
1331
|
"order.email": "order.email";
|
|
864
1332
|
line: "line";
|
|
865
1333
|
"line.title": "line.title";
|
|
866
1334
|
"line.unitPrice": "line.unitPrice";
|
|
867
|
-
code: "code";
|
|
868
1335
|
}>, z.ZodString]>>;
|
|
869
1336
|
void: z.ZodString;
|
|
870
1337
|
valid: z.ZodOptional<z.ZodObject<{
|
|
@@ -874,6 +1341,22 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
874
1341
|
}, z.core.$strict>>;
|
|
875
1342
|
}, z.core.$strict>>;
|
|
876
1343
|
onePerPerson: z.ZodOptional<z.ZodString>;
|
|
1344
|
+
moves: z.ZodOptional<z.ZodObject<{
|
|
1345
|
+
held: z.ZodString;
|
|
1346
|
+
paid: z.ZodString;
|
|
1347
|
+
expired: z.ZodString;
|
|
1348
|
+
refund: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1349
|
+
price: z.ZodOptional<z.ZodObject<{
|
|
1350
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1351
|
+
setting: z.ZodOptional<z.ZodString>;
|
|
1352
|
+
}, z.core.$strict>>;
|
|
1353
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1354
|
+
order: z.ZodOptional<z.ZodString>;
|
|
1355
|
+
guest: z.ZodOptional<z.ZodBoolean>;
|
|
1356
|
+
holdCap: z.ZodOptional<z.ZodObject<{
|
|
1357
|
+
setting: z.ZodString;
|
|
1358
|
+
}, z.core.$strict>>;
|
|
1359
|
+
}, z.core.$strict>>;
|
|
877
1360
|
tax: z.ZodOptional<z.ZodObject<{
|
|
878
1361
|
code: z.ZodString;
|
|
879
1362
|
place: z.ZodOptional<z.ZodObject<{
|
|
@@ -892,6 +1375,13 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
892
1375
|
year: "year";
|
|
893
1376
|
}>;
|
|
894
1377
|
trialDays: z.ZodOptional<z.ZodString>;
|
|
1378
|
+
pause: z.ZodOptional<z.ZodObject<{
|
|
1379
|
+
minDays: z.ZodOptional<z.ZodString>;
|
|
1380
|
+
maxDays: z.ZodOptional<z.ZodString>;
|
|
1381
|
+
}, z.core.$strict>>;
|
|
1382
|
+
coolingOff: z.ZodOptional<z.ZodObject<{
|
|
1383
|
+
setting: z.ZodString;
|
|
1384
|
+
}, z.core.$strict>>;
|
|
895
1385
|
grants: z.ZodOptional<z.ZodObject<{
|
|
896
1386
|
object: z.ZodString;
|
|
897
1387
|
set: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
|
|
@@ -912,33 +1402,99 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
912
1402
|
}, z.core.$strict>;
|
|
913
1403
|
}, z.core.$strict>>;
|
|
914
1404
|
}, z.core.$strict>>;
|
|
1405
|
+
finance: z.ZodOptional<z.ZodObject<{
|
|
1406
|
+
category: z.ZodOptional<z.ZodObject<{
|
|
1407
|
+
key: z.ZodString;
|
|
1408
|
+
label: z.ZodString;
|
|
1409
|
+
}, z.core.$strict>>;
|
|
1410
|
+
earned: z.ZodOptional<z.ZodEnum<{
|
|
1411
|
+
at_sale: "at_sale";
|
|
1412
|
+
over_period: "over_period";
|
|
1413
|
+
per_use: "per_use";
|
|
1414
|
+
at_date: "at_date";
|
|
1415
|
+
}>>;
|
|
1416
|
+
at: z.ZodOptional<z.ZodString>;
|
|
1417
|
+
}, z.core.$strict>>;
|
|
1418
|
+
goods: z.ZodOptional<z.ZodObject<{
|
|
1419
|
+
soldIn: z.ZodOptional<z.ZodString>;
|
|
1420
|
+
}, z.core.$strict>>;
|
|
1421
|
+
delivery: z.ZodOptional<z.ZodObject<{
|
|
1422
|
+
kind: z.ZodString;
|
|
1423
|
+
freeOver: z.ZodOptional<z.ZodString>;
|
|
1424
|
+
countries: z.ZodOptional<z.ZodString>;
|
|
1425
|
+
active: z.ZodOptional<z.ZodString>;
|
|
1426
|
+
}, z.core.$strict>>;
|
|
1427
|
+
}, z.core.$strict>>;
|
|
1428
|
+
stock: z.ZodOptional<z.ZodObject<{
|
|
1429
|
+
reorderAt: z.ZodOptional<z.ZodString>;
|
|
1430
|
+
reorderQty: z.ZodOptional<z.ZodString>;
|
|
1431
|
+
show: z.ZodOptional<z.ZodEnum<{
|
|
1432
|
+
exact: "exact";
|
|
1433
|
+
low: "low";
|
|
1434
|
+
availability: "availability";
|
|
1435
|
+
}>>;
|
|
1436
|
+
lowAt: z.ZodOptional<z.ZodNumber>;
|
|
1437
|
+
notify: z.ZodOptional<z.ZodString>;
|
|
1438
|
+
}, z.core.$strict>>;
|
|
1439
|
+
stockMoves: z.ZodOptional<z.ZodObject<{
|
|
1440
|
+
move: z.ZodEnum<{
|
|
1441
|
+
set: "set";
|
|
1442
|
+
add: "add";
|
|
1443
|
+
remove: "remove";
|
|
1444
|
+
}>;
|
|
1445
|
+
on: z.ZodString;
|
|
1446
|
+
quantity: z.ZodString;
|
|
1447
|
+
when: z.ZodString;
|
|
1448
|
+
through: z.ZodOptional<z.ZodString>;
|
|
1449
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
1450
|
+
used: "used";
|
|
1451
|
+
opening: "opening";
|
|
1452
|
+
received: "received";
|
|
1453
|
+
sold: "sold";
|
|
1454
|
+
returned: "returned";
|
|
1455
|
+
written_off: "written_off";
|
|
1456
|
+
counted: "counted";
|
|
1457
|
+
adjusted: "adjusted";
|
|
1458
|
+
}>>;
|
|
1459
|
+
unitCost: z.ZodOptional<z.ZodString>;
|
|
1460
|
+
note: z.ZodOptional<z.ZodString>;
|
|
915
1461
|
}, z.core.$strict>>;
|
|
916
1462
|
allowance: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
917
1463
|
holds: z.ZodObject<{
|
|
918
1464
|
person: z.ZodString;
|
|
919
1465
|
uses: z.ZodString;
|
|
920
1466
|
per: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1467
|
+
total: "total";
|
|
921
1468
|
week: "week";
|
|
922
1469
|
month: "month";
|
|
923
|
-
total: "total";
|
|
924
1470
|
}>, z.ZodObject<{
|
|
925
1471
|
field: z.ZodString;
|
|
926
1472
|
}, z.core.$strict>]>;
|
|
927
1473
|
spendsOn: z.ZodUnion<readonly [z.ZodObject<{
|
|
928
1474
|
object: z.ZodString;
|
|
929
1475
|
when: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
930
|
-
field: z.ZodString
|
|
1476
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1477
|
+
value: z.ZodOptional<z.ZodString>;
|
|
931
1478
|
in: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
932
1479
|
atLeast: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
933
1480
|
below: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1481
|
+
empty: z.ZodOptional<z.ZodEnum<{
|
|
1482
|
+
any: "any";
|
|
1483
|
+
none: "none";
|
|
1484
|
+
}>>;
|
|
934
1485
|
}, z.core.$strict>>>;
|
|
935
1486
|
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
936
1487
|
object: z.ZodString;
|
|
937
1488
|
when: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
938
|
-
field: z.ZodString
|
|
1489
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1490
|
+
value: z.ZodOptional<z.ZodString>;
|
|
939
1491
|
in: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
940
1492
|
atLeast: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
941
1493
|
below: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1494
|
+
empty: z.ZodOptional<z.ZodEnum<{
|
|
1495
|
+
any: "any";
|
|
1496
|
+
none: "none";
|
|
1497
|
+
}>>;
|
|
942
1498
|
}, z.core.$strict>>>;
|
|
943
1499
|
}, z.core.$strict>>]>;
|
|
944
1500
|
from: z.ZodOptional<z.ZodString>;
|
|
@@ -963,11 +1519,63 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
963
1519
|
movedFrom: z.ZodOptional<z.ZodObject<{
|
|
964
1520
|
field: z.ZodString;
|
|
965
1521
|
state: z.ZodString;
|
|
1522
|
+
fixed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1523
|
+
anchor: z.ZodOptional<z.ZodObject<{
|
|
1524
|
+
field: z.ZodString;
|
|
1525
|
+
from: z.ZodString;
|
|
1526
|
+
}, z.core.$strict>>;
|
|
966
1527
|
}, z.core.$strict>>;
|
|
967
1528
|
paidBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
968
1529
|
waived: z.ZodOptional<z.ZodString>;
|
|
1530
|
+
released: z.ZodOptional<z.ZodString>;
|
|
969
1531
|
}, z.core.$strict>;
|
|
970
1532
|
}, z.core.$strict>]>>;
|
|
1533
|
+
discount: z.ZodOptional<z.ZodObject<{
|
|
1534
|
+
kind: z.ZodString;
|
|
1535
|
+
percent: z.ZodOptional<z.ZodString>;
|
|
1536
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
1537
|
+
live: z.ZodArray<z.ZodString>;
|
|
1538
|
+
automatic: z.ZodOptional<z.ZodString>;
|
|
1539
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1540
|
+
codes: z.ZodOptional<z.ZodObject<{
|
|
1541
|
+
object: z.ZodString;
|
|
1542
|
+
discount: z.ZodString;
|
|
1543
|
+
word: z.ZodString;
|
|
1544
|
+
uses: z.ZodOptional<z.ZodString>;
|
|
1545
|
+
active: z.ZodOptional<z.ZodString>;
|
|
1546
|
+
}, z.core.$strict>>;
|
|
1547
|
+
who: z.ZodOptional<z.ZodString>;
|
|
1548
|
+
plans: z.ZodOptional<z.ZodString>;
|
|
1549
|
+
organisations: z.ZodOptional<z.ZodString>;
|
|
1550
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
1551
|
+
objects: z.ZodOptional<z.ZodString>;
|
|
1552
|
+
records: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1553
|
+
from: z.ZodOptional<z.ZodString>;
|
|
1554
|
+
until: z.ZodOptional<z.ZodString>;
|
|
1555
|
+
totalUses: z.ZodOptional<z.ZodString>;
|
|
1556
|
+
perPerson: z.ZodOptional<z.ZodString>;
|
|
1557
|
+
minSpend: z.ZodOptional<z.ZodString>;
|
|
1558
|
+
}, z.core.$strict>>;
|
|
1559
|
+
agreements: z.ZodOptional<z.ZodObject<{
|
|
1560
|
+
point: z.ZodString;
|
|
1561
|
+
label: z.ZodString;
|
|
1562
|
+
suggests: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1563
|
+
other: "other";
|
|
1564
|
+
terms: "terms";
|
|
1565
|
+
waiver: "waiver";
|
|
1566
|
+
health: "health";
|
|
1567
|
+
guardian: "guardian";
|
|
1568
|
+
}>>>;
|
|
1569
|
+
enter: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1570
|
+
person: z.ZodOptional<z.ZodString>;
|
|
1571
|
+
keeps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1572
|
+
importMovesOver: z.ZodOptional<z.ZodBoolean>;
|
|
1573
|
+
inlineStep: z.ZodOptional<z.ZodBoolean>;
|
|
1574
|
+
}, z.core.$strip>>;
|
|
1575
|
+
healthNotes: z.ZodOptional<z.ZodObject<{
|
|
1576
|
+
list: z.ZodString;
|
|
1577
|
+
person: z.ZodString;
|
|
1578
|
+
}, z.core.$strip>>;
|
|
971
1579
|
states: z.ZodOptional<z.ZodObject<{
|
|
972
1580
|
field: z.ZodString;
|
|
973
1581
|
initial: z.ZodString;
|
|
@@ -1045,6 +1653,7 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1045
1653
|
}, z.core.$strict>>;
|
|
1046
1654
|
staffOnly: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1047
1655
|
closed: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1656
|
+
requires: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1048
1657
|
}, z.core.$strict>>;
|
|
1049
1658
|
requests: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
1050
1659
|
follows: z.ZodOptional<z.ZodObject<{
|
|
@@ -1052,11 +1661,38 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1052
1661
|
when: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1053
1662
|
from: z.ZodArray<z.ZodString>;
|
|
1054
1663
|
}, z.core.$strict>>;
|
|
1664
|
+
after: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1665
|
+
from: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
1666
|
+
to: z.ZodString;
|
|
1667
|
+
at: z.ZodString;
|
|
1668
|
+
minutesAfter: z.ZodOptional<z.ZodNumber>;
|
|
1669
|
+
ifAnyIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1670
|
+
ifSet: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1671
|
+
}, z.core.$strict>>>;
|
|
1055
1672
|
}, z.core.$strip>>;
|
|
1056
1673
|
claims: z.ZodOptional<z.ZodObject<{
|
|
1057
1674
|
on: z.ZodString;
|
|
1058
1675
|
held: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1059
1676
|
confirmed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1677
|
+
waitlist: z.ZodOptional<z.ZodObject<{
|
|
1678
|
+
state: z.ZodString;
|
|
1679
|
+
promote: z.ZodString;
|
|
1680
|
+
until: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1681
|
+
at: z.ZodString;
|
|
1682
|
+
daysBefore: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodObject<{
|
|
1683
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1684
|
+
setting: z.ZodOptional<z.ZodString>;
|
|
1685
|
+
}, z.core.$strict>]>>;
|
|
1686
|
+
minutesBefore: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodObject<{
|
|
1687
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1688
|
+
setting: z.ZodOptional<z.ZodString>;
|
|
1689
|
+
}, z.core.$strict>]>>;
|
|
1690
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
1691
|
+
}, z.core.$strict>]>;
|
|
1692
|
+
promotedAt: z.ZodOptional<z.ZodString>;
|
|
1693
|
+
passedOverAt: z.ZodOptional<z.ZodString>;
|
|
1694
|
+
passedOverReason: z.ZodOptional<z.ZodString>;
|
|
1695
|
+
}, z.core.$strict>>;
|
|
1060
1696
|
}, z.core.$strict>>;
|
|
1061
1697
|
unique: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1062
1698
|
fields: z.ZodArray<z.ZodString>;
|
|
@@ -1066,12 +1702,17 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1066
1702
|
generates: z.ZodString;
|
|
1067
1703
|
link: z.ZodString;
|
|
1068
1704
|
rule: z.ZodObject<{
|
|
1069
|
-
weekdays: z.ZodString
|
|
1705
|
+
weekdays: z.ZodOptional<z.ZodString>;
|
|
1070
1706
|
time: z.ZodString;
|
|
1071
1707
|
length: z.ZodOptional<z.ZodString>;
|
|
1072
1708
|
from: z.ZodString;
|
|
1073
1709
|
until: z.ZodOptional<z.ZodString>;
|
|
1074
1710
|
zone: z.ZodOptional<z.ZodString>;
|
|
1711
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
1712
|
+
every: z.ZodOptional<z.ZodString>;
|
|
1713
|
+
day: z.ZodOptional<z.ZodString>;
|
|
1714
|
+
month: z.ZodOptional<z.ZodString>;
|
|
1715
|
+
lengthDays: z.ZodOptional<z.ZodString>;
|
|
1075
1716
|
}, z.core.$strict>;
|
|
1076
1717
|
into: z.ZodObject<{
|
|
1077
1718
|
starts: z.ZodString;
|
|
@@ -1095,6 +1736,134 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1095
1736
|
object: z.ZodString;
|
|
1096
1737
|
field: z.ZodString;
|
|
1097
1738
|
}, z.core.$strict>>;
|
|
1739
|
+
horizonSetting: z.ZodOptional<z.ZodString>;
|
|
1740
|
+
}, z.core.$strict>>;
|
|
1741
|
+
staffed: z.ZodOptional<z.ZodObject<{
|
|
1742
|
+
who: z.ZodObject<{
|
|
1743
|
+
field: z.ZodString;
|
|
1744
|
+
account: z.ZodOptional<z.ZodString>;
|
|
1745
|
+
}, z.core.$strict>;
|
|
1746
|
+
starts: z.ZodString;
|
|
1747
|
+
ends: z.ZodString;
|
|
1748
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
1749
|
+
kind: z.ZodString;
|
|
1750
|
+
live: z.ZodArray<z.ZodString>;
|
|
1751
|
+
place: z.ZodOptional<z.ZodString>;
|
|
1752
|
+
pattern: z.ZodOptional<z.ZodObject<{
|
|
1753
|
+
link: z.ZodString;
|
|
1754
|
+
who: z.ZodString;
|
|
1755
|
+
}, z.core.$strict>>;
|
|
1756
|
+
payBefore: z.ZodOptional<z.ZodObject<{
|
|
1757
|
+
field: z.ZodString;
|
|
1758
|
+
}, z.core.$strict>>;
|
|
1759
|
+
payAfter: z.ZodOptional<z.ZodObject<{
|
|
1760
|
+
field: z.ZodString;
|
|
1761
|
+
}, z.core.$strict>>;
|
|
1762
|
+
claimBefore: z.ZodOptional<z.ZodObject<{
|
|
1763
|
+
field: z.ZodString;
|
|
1764
|
+
}, z.core.$strict>>;
|
|
1765
|
+
claimAfter: z.ZodOptional<z.ZodObject<{
|
|
1766
|
+
field: z.ZodString;
|
|
1767
|
+
}, z.core.$strict>>;
|
|
1768
|
+
account: z.ZodOptional<z.ZodLiteral<"required">>;
|
|
1769
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
1770
|
+
open: z.ZodOptional<z.ZodObject<{
|
|
1771
|
+
length: z.ZodObject<{
|
|
1772
|
+
field: z.ZodString;
|
|
1773
|
+
}, z.core.$strict>;
|
|
1774
|
+
step: z.ZodOptional<z.ZodObject<{
|
|
1775
|
+
field: z.ZodString;
|
|
1776
|
+
}, z.core.$strict>>;
|
|
1777
|
+
rooms: z.ZodOptional<z.ZodObject<{
|
|
1778
|
+
field: z.ZodString;
|
|
1779
|
+
}, z.core.$strict>>;
|
|
1780
|
+
client: z.ZodOptional<z.ZodString>;
|
|
1781
|
+
closedBy: z.ZodOptional<z.ZodObject<{
|
|
1782
|
+
object: z.ZodString;
|
|
1783
|
+
from: z.ZodString;
|
|
1784
|
+
until: z.ZodString;
|
|
1785
|
+
}, z.core.$strict>>;
|
|
1786
|
+
customer: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1787
|
+
}, z.core.$strict>>;
|
|
1788
|
+
evidence: z.ZodOptional<z.ZodObject<{
|
|
1789
|
+
object: z.ZodString;
|
|
1790
|
+
link: z.ZodString;
|
|
1791
|
+
by: z.ZodString;
|
|
1792
|
+
}, z.core.$strict>>;
|
|
1793
|
+
timesFrom: z.ZodOptional<z.ZodString>;
|
|
1794
|
+
}, z.core.$strict>>;
|
|
1795
|
+
workedOn: z.ZodOptional<z.ZodObject<{
|
|
1796
|
+
live: z.ZodArray<z.ZodString>;
|
|
1797
|
+
title: z.ZodString;
|
|
1798
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
1799
|
+
place: z.ZodOptional<z.ZodString>;
|
|
1800
|
+
readers: z.ZodString;
|
|
1801
|
+
partOf: z.ZodOptional<z.ZodString>;
|
|
1802
|
+
}, z.core.$strict>>;
|
|
1803
|
+
team: z.ZodOptional<z.ZodObject<{
|
|
1804
|
+
person: z.ZodString;
|
|
1805
|
+
staff: z.ZodArray<z.ZodString>;
|
|
1806
|
+
live: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1807
|
+
}, z.core.$strict>>;
|
|
1808
|
+
occupies: z.ZodOptional<z.ZodObject<{
|
|
1809
|
+
thing: z.ZodString;
|
|
1810
|
+
starts: z.ZodString;
|
|
1811
|
+
ends: z.ZodString;
|
|
1812
|
+
live: z.ZodArray<z.ZodString>;
|
|
1813
|
+
before: z.ZodOptional<z.ZodObject<{
|
|
1814
|
+
field: z.ZodString;
|
|
1815
|
+
}, z.core.$strict>>;
|
|
1816
|
+
after: z.ZodOptional<z.ZodObject<{
|
|
1817
|
+
field: z.ZodString;
|
|
1818
|
+
}, z.core.$strict>>;
|
|
1819
|
+
only: z.ZodOptional<z.ZodString>;
|
|
1820
|
+
provisional: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1821
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1822
|
+
}, z.core.$strict>>;
|
|
1823
|
+
calendarEntry: z.ZodOptional<z.ZodObject<{
|
|
1824
|
+
starts: z.ZodString;
|
|
1825
|
+
ends: z.ZodString;
|
|
1826
|
+
title: z.ZodString;
|
|
1827
|
+
place: z.ZodOptional<z.ZodString>;
|
|
1828
|
+
live: z.ZodArray<z.ZodString>;
|
|
1829
|
+
}, z.core.$strict>>;
|
|
1830
|
+
intake: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1831
|
+
role: z.ZodLiteral<"form">;
|
|
1832
|
+
questions: z.ZodString;
|
|
1833
|
+
answeredBy: z.ZodString;
|
|
1834
|
+
openIn: z.ZodArray<z.ZodString>;
|
|
1835
|
+
anonymous: z.ZodOptional<z.ZodString>;
|
|
1836
|
+
destination: z.ZodOptional<z.ZodString>;
|
|
1837
|
+
opensAt: z.ZodOptional<z.ZodString>;
|
|
1838
|
+
closesAt: z.ZodOptional<z.ZodString>;
|
|
1839
|
+
dailyCap: z.ZodOptional<z.ZodString>;
|
|
1840
|
+
notify: z.ZodOptional<z.ZodString>;
|
|
1841
|
+
hourlyCap: z.ZodOptional<z.ZodString>;
|
|
1842
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1843
|
+
role: z.ZodLiteral<"submission">;
|
|
1844
|
+
form: z.ZodString;
|
|
1845
|
+
version: z.ZodString;
|
|
1846
|
+
answers: z.ZodString;
|
|
1847
|
+
person: z.ZodString;
|
|
1848
|
+
certainty: z.ZodString;
|
|
1849
|
+
spam: z.ZodString;
|
|
1850
|
+
via: z.ZodOptional<z.ZodString>;
|
|
1851
|
+
rating: z.ZodOptional<z.ZodString>;
|
|
1852
|
+
marketing: z.ZodOptional<z.ZodString>;
|
|
1853
|
+
about: z.ZodOptional<z.ZodString>;
|
|
1854
|
+
aboutObject: z.ZodOptional<z.ZodString>;
|
|
1855
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1856
|
+
role: z.ZodLiteral<"destination">;
|
|
1857
|
+
person: z.ZodString;
|
|
1858
|
+
fields: z.ZodArray<z.ZodString>;
|
|
1859
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1860
|
+
}, z.core.$strict>], "role">>;
|
|
1861
|
+
checklists: z.ZodOptional<z.ZodObject<{
|
|
1862
|
+
template: z.ZodString;
|
|
1863
|
+
who: z.ZodString;
|
|
1864
|
+
opens: z.ZodString;
|
|
1865
|
+
closes: z.ZodString;
|
|
1866
|
+
live: z.ZodArray<z.ZodString>;
|
|
1098
1867
|
}, z.core.$strict>>;
|
|
1099
1868
|
owner: z.ZodOptional<z.ZodString>;
|
|
1100
1869
|
customer: z.ZodOptional<z.ZodObject<{
|
|
@@ -1103,22 +1872,35 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1103
1872
|
write: z.ZodArray<z.ZodString>;
|
|
1104
1873
|
requireAccess: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1105
1874
|
createOnly: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1875
|
+
delete: z.ZodOptional<z.ZodBoolean>;
|
|
1876
|
+
guardians: z.ZodOptional<z.ZodObject<{
|
|
1877
|
+
write: z.ZodOptional<z.ZodBoolean>;
|
|
1878
|
+
madeBy: z.ZodOptional<z.ZodString>;
|
|
1879
|
+
}, z.core.$strict>>;
|
|
1106
1880
|
}, z.core.$strict>>;
|
|
1107
1881
|
public: z.ZodOptional<z.ZodObject<{
|
|
1108
1882
|
read: z.ZodArray<z.ZodString>;
|
|
1109
|
-
when: z.ZodOptional<z.ZodObject<{
|
|
1883
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1110
1884
|
via: z.ZodOptional<z.ZodString>;
|
|
1111
|
-
field: z.ZodString
|
|
1112
|
-
in: z.ZodArray<z.ZodString
|
|
1113
|
-
}, z.core.$strict
|
|
1885
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1886
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1887
|
+
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
1888
|
+
via: z.ZodOptional<z.ZodString>;
|
|
1889
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1890
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1891
|
+
}, z.core.$strict>>]>>;
|
|
1114
1892
|
}, z.core.$strict>>;
|
|
1115
1893
|
signedIn: z.ZodOptional<z.ZodObject<{
|
|
1116
1894
|
read: z.ZodArray<z.ZodString>;
|
|
1117
|
-
when: z.ZodOptional<z.ZodObject<{
|
|
1895
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1118
1896
|
via: z.ZodOptional<z.ZodString>;
|
|
1119
|
-
field: z.ZodString
|
|
1120
|
-
in: z.ZodArray<z.ZodString
|
|
1121
|
-
}, z.core.$strict
|
|
1897
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1898
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1899
|
+
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
1900
|
+
via: z.ZodOptional<z.ZodString>;
|
|
1901
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1902
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1903
|
+
}, z.core.$strict>>]>>;
|
|
1122
1904
|
}, z.core.$strict>>;
|
|
1123
1905
|
customerVia: z.ZodOptional<z.ZodObject<{
|
|
1124
1906
|
from: z.ZodString;
|
|
@@ -1141,6 +1923,33 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1141
1923
|
content: z.ZodArray<z.ZodString>;
|
|
1142
1924
|
slug: z.ZodOptional<z.ZodString>;
|
|
1143
1925
|
date: z.ZodOptional<z.ZodString>;
|
|
1926
|
+
publishIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1927
|
+
acknowledge: z.ZodOptional<z.ZodObject<{
|
|
1928
|
+
who: z.ZodString;
|
|
1929
|
+
manage: z.ZodString;
|
|
1930
|
+
managed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1931
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
1932
|
+
notices: z.ZodOptional<z.ZodObject<{
|
|
1933
|
+
asked: z.ZodOptional<z.ZodObject<{
|
|
1934
|
+
title: z.ZodString;
|
|
1935
|
+
body: z.ZodOptional<z.ZodString>;
|
|
1936
|
+
}, z.core.$strict>>;
|
|
1937
|
+
reminder: z.ZodOptional<z.ZodObject<{
|
|
1938
|
+
title: z.ZodString;
|
|
1939
|
+
body: z.ZodOptional<z.ZodString>;
|
|
1940
|
+
afterDays: z.ZodNumber;
|
|
1941
|
+
}, z.core.$strict>>;
|
|
1942
|
+
outstanding: z.ZodOptional<z.ZodObject<{
|
|
1943
|
+
title: z.ZodString;
|
|
1944
|
+
body: z.ZodOptional<z.ZodString>;
|
|
1945
|
+
}, z.core.$strict>>;
|
|
1946
|
+
welcome: z.ZodOptional<z.ZodObject<{
|
|
1947
|
+
title: z.ZodString;
|
|
1948
|
+
body: z.ZodOptional<z.ZodString>;
|
|
1949
|
+
}, z.core.$strict>>;
|
|
1950
|
+
}, z.core.$strict>>;
|
|
1951
|
+
}, z.core.$strict>>;
|
|
1952
|
+
staffRead: z.ZodOptional<z.ZodBoolean>;
|
|
1144
1953
|
}, z.core.$strict>>;
|
|
1145
1954
|
navigationOrder: z.ZodOptional<z.ZodNumber>;
|
|
1146
1955
|
requireOneOf: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
@@ -1154,15 +1963,17 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1154
1963
|
type: z.ZodEnum<{
|
|
1155
1964
|
number: "number";
|
|
1156
1965
|
boolean: "boolean";
|
|
1966
|
+
image: "image";
|
|
1967
|
+
video: "video";
|
|
1157
1968
|
date: "date";
|
|
1969
|
+
relation: "relation";
|
|
1970
|
+
datetime: "datetime";
|
|
1158
1971
|
text: "text";
|
|
1972
|
+
select: "select";
|
|
1973
|
+
percent: "percent";
|
|
1159
1974
|
longText: "longText";
|
|
1160
1975
|
currency: "currency";
|
|
1161
|
-
percent: "percent";
|
|
1162
|
-
datetime: "datetime";
|
|
1163
|
-
select: "select";
|
|
1164
1976
|
multiSelect: "multiSelect";
|
|
1165
|
-
relation: "relation";
|
|
1166
1977
|
user: "user";
|
|
1167
1978
|
email: "email";
|
|
1168
1979
|
phone: "phone";
|
|
@@ -1172,8 +1983,7 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1172
1983
|
timezone: "timezone";
|
|
1173
1984
|
richText: "richText";
|
|
1174
1985
|
slug: "slug";
|
|
1175
|
-
|
|
1176
|
-
video: "video";
|
|
1986
|
+
checklist: "checklist";
|
|
1177
1987
|
}>;
|
|
1178
1988
|
label: z.ZodString;
|
|
1179
1989
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1193,6 +2003,7 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1193
2003
|
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1194
2004
|
defaultSetting: z.ZodOptional<z.ZodString>;
|
|
1195
2005
|
personApproves: z.ZodOptional<z.ZodBoolean>;
|
|
2006
|
+
restricted: z.ZodOptional<z.ZodString>;
|
|
1196
2007
|
to: z.ZodOptional<z.ZodString>;
|
|
1197
2008
|
many: z.ZodOptional<z.ZodBoolean>;
|
|
1198
2009
|
expression: z.ZodOptional<z.ZodString>;
|
|
@@ -1364,10 +2175,17 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1364
2175
|
staff: "staff";
|
|
1365
2176
|
customer: "customer";
|
|
1366
2177
|
public: "public";
|
|
2178
|
+
device: "device";
|
|
1367
2179
|
}>>>;
|
|
1368
2180
|
customerFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
1369
|
-
permission: z.ZodOptional<z.ZodString
|
|
2181
|
+
permission: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1370
2182
|
humanOnly: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2183
|
+
personApproves: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2184
|
+
grantLiftsRoleLimits: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2185
|
+
anyStaff: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2186
|
+
corePermission: z.ZodOptional<z.ZodString>;
|
|
2187
|
+
redact: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2188
|
+
redactResult: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1371
2189
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1372
2190
|
outputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1373
2191
|
}, z.core.$strip>>>;
|
|
@@ -1414,7 +2232,15 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1414
2232
|
type: z.ZodLiteral<"dateRelative">;
|
|
1415
2233
|
object: z.ZodString;
|
|
1416
2234
|
field: z.ZodString;
|
|
1417
|
-
offsetDays: z.ZodNumber
|
|
2235
|
+
offsetDays: z.ZodOptional<z.ZodNumber>;
|
|
2236
|
+
minutesBefore: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
2237
|
+
field: z.ZodOptional<z.ZodString>;
|
|
2238
|
+
setting: z.ZodOptional<z.ZodString>;
|
|
2239
|
+
}, z.core.$strict>]>>;
|
|
2240
|
+
minutesAfter: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
2241
|
+
field: z.ZodOptional<z.ZodString>;
|
|
2242
|
+
setting: z.ZodOptional<z.ZodString>;
|
|
2243
|
+
}, z.core.$strict>]>>;
|
|
1418
2244
|
zoneField: z.ZodOptional<z.ZodString>;
|
|
1419
2245
|
}, z.core.$strict>, z.ZodObject<{
|
|
1420
2246
|
type: z.ZodLiteral<"manual">;
|
|
@@ -1537,14 +2363,125 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1537
2363
|
purpose: z.ZodString;
|
|
1538
2364
|
}, z.core.$strict>>>;
|
|
1539
2365
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2366
|
+
onlyWith: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1540
2367
|
}, z.core.$strip>>>;
|
|
1541
2368
|
roles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1542
2369
|
label: z.ZodString;
|
|
1543
2370
|
description: z.ZodString;
|
|
1544
2371
|
permissions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1545
2372
|
read: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2373
|
+
today: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2374
|
+
at: z.ZodString;
|
|
2375
|
+
until: z.ZodOptional<z.ZodString>;
|
|
2376
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
2377
|
+
}, z.core.$strict>]>>>;
|
|
2378
|
+
looksAfter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2379
|
+
mine: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2380
|
+
through: z.ZodString;
|
|
2381
|
+
who: z.ZodString;
|
|
2382
|
+
path: z.ZodOptional<z.ZodString>;
|
|
2383
|
+
live: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2384
|
+
within: z.ZodOptional<z.ZodObject<{
|
|
2385
|
+
from: z.ZodString;
|
|
2386
|
+
to: z.ZodOptional<z.ZodString>;
|
|
2387
|
+
days: z.ZodNumber;
|
|
2388
|
+
}, z.core.$strict>>;
|
|
2389
|
+
}, z.core.$strict>>>;
|
|
1546
2390
|
}, z.core.$strip>>>;
|
|
2391
|
+
deviceRoles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2392
|
+
label: z.ZodString;
|
|
2393
|
+
description: z.ZodString;
|
|
2394
|
+
permissions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2395
|
+
screen: z.ZodObject<{
|
|
2396
|
+
block: z.ZodString;
|
|
2397
|
+
export: z.ZodString;
|
|
2398
|
+
}, z.core.$strict>;
|
|
2399
|
+
}, z.core.$strict>>>;
|
|
1547
2400
|
grantable: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2401
|
+
routineMail: z.ZodOptional<z.ZodType<Record<string, import("./routine-mail.ts").RoutineMailKindManifest>, unknown, z.core.$ZodTypeInternals<Record<string, import("./routine-mail.ts").RoutineMailKindManifest>, unknown>>>;
|
|
2402
|
+
journeySignals: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2403
|
+
label: z.ZodString;
|
|
2404
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2405
|
+
object: z.ZodString;
|
|
2406
|
+
person: z.ZodOptional<z.ZodString>;
|
|
2407
|
+
enters: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2408
|
+
from: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2409
|
+
created: z.ZodOptional<z.ZodBoolean>;
|
|
2410
|
+
}, z.core.$strict>>>;
|
|
2411
|
+
grantableLabels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2412
|
+
restricted: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2413
|
+
staffing: z.ZodOptional<z.ZodObject<{
|
|
2414
|
+
rosters: z.ZodString;
|
|
2415
|
+
pays: z.ZodOptional<z.ZodString>;
|
|
2416
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
2417
|
+
offerCutoffMinutes: z.ZodOptional<z.ZodString>;
|
|
2418
|
+
uncoveredDays: z.ZodOptional<z.ZodString>;
|
|
2419
|
+
payPeriod: z.ZodOptional<z.ZodString>;
|
|
2420
|
+
payPeriodStart: z.ZodOptional<z.ZodString>;
|
|
2421
|
+
payPeriodDay: z.ZodOptional<z.ZodString>;
|
|
2422
|
+
recordsTime: z.ZodOptional<z.ZodString>;
|
|
2423
|
+
enterDays: z.ZodOptional<z.ZodString>;
|
|
2424
|
+
finishMissingHours: z.ZodOptional<z.ZodString>;
|
|
2425
|
+
matchMinutes: z.ZodOptional<z.ZodString>;
|
|
2426
|
+
}, z.core.$strict>>;
|
|
2427
|
+
}, z.core.$strict>>;
|
|
2428
|
+
screens: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2429
|
+
label: z.ZodString;
|
|
2430
|
+
block: z.ZodString;
|
|
2431
|
+
export: z.ZodString;
|
|
2432
|
+
nav: z.ZodOptional<z.ZodObject<{
|
|
2433
|
+
group: z.ZodString;
|
|
2434
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
2435
|
+
}, z.core.$strict>>;
|
|
2436
|
+
opens: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2437
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2438
|
+
record: z.ZodOptional<z.ZodObject<{
|
|
2439
|
+
object: z.ZodString;
|
|
2440
|
+
as: z.ZodString;
|
|
2441
|
+
}, z.core.$strict>>;
|
|
2442
|
+
}, z.core.$strict>>>;
|
|
2443
|
+
portal: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2444
|
+
label: z.ZodString;
|
|
2445
|
+
web: z.ZodOptional<z.ZodObject<{
|
|
2446
|
+
block: z.ZodString;
|
|
2447
|
+
export: z.ZodString;
|
|
2448
|
+
}, z.core.$strict>>;
|
|
2449
|
+
native: z.ZodOptional<z.ZodObject<{
|
|
2450
|
+
block: z.ZodString;
|
|
2451
|
+
export: z.ZodString;
|
|
2452
|
+
}, z.core.$strict>>;
|
|
2453
|
+
order: z.ZodNumber;
|
|
2454
|
+
has: z.ZodArray<z.ZodString>;
|
|
2455
|
+
}, z.core.$strict>>>;
|
|
2456
|
+
todayItems: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2457
|
+
label: z.ZodString;
|
|
2458
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
2459
|
+
format: z.ZodString;
|
|
2460
|
+
sql: z.ZodString;
|
|
2461
|
+
compare: z.ZodOptional<z.ZodEnum<{
|
|
2462
|
+
none: "none";
|
|
2463
|
+
yesterday: "yesterday";
|
|
2464
|
+
lastWeek: "lastWeek";
|
|
2465
|
+
}>>;
|
|
2466
|
+
attention: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2467
|
+
above: z.ZodNumber;
|
|
2468
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2469
|
+
below: z.ZodNumber;
|
|
2470
|
+
}, z.core.$strict>]>>;
|
|
2471
|
+
rows: z.ZodOptional<z.ZodObject<{
|
|
2472
|
+
sql: z.ZodString;
|
|
2473
|
+
label: z.ZodString;
|
|
2474
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
2475
|
+
record: z.ZodObject<{
|
|
2476
|
+
object: z.ZodString;
|
|
2477
|
+
id: z.ZodString;
|
|
2478
|
+
}, z.core.$strict>;
|
|
2479
|
+
}, z.core.$strict>>;
|
|
2480
|
+
opens: z.ZodArray<z.ZodString>;
|
|
2481
|
+
web: z.ZodOptional<z.ZodObject<{
|
|
2482
|
+
screen: z.ZodString;
|
|
2483
|
+
}, z.core.$strict>>;
|
|
2484
|
+
}, z.core.$strict>>>;
|
|
1548
2485
|
}, z.core.$strip>;
|
|
1549
2486
|
export type ExtensionManifest = z.infer<typeof manifestSchema>;
|
|
1550
2487
|
/** One problem `check` found. `path` points into the manifest, e.g. `objects.project.fields.x`. */
|
|
@@ -1582,15 +2519,78 @@ export interface ValidateOptions {
|
|
|
1582
2519
|
* automation checks; null when unknown (those checks are skipped). Core objects are built in.
|
|
1583
2520
|
*/
|
|
1584
2521
|
objectFields?: (object: string) => Record<string, FieldTypeName> | null;
|
|
2522
|
+
/**
|
|
2523
|
+
* Further ids no extension may take: the host passes the namespaces of its own permissions
|
|
2524
|
+
* (`agreements`, `orders`, `people`, …), derived from its permission list, so a pack can never
|
|
2525
|
+
* declare a core permission such as `agreements:manage` as its own grantable one.
|
|
2526
|
+
*/
|
|
2527
|
+
reservedIds?: readonly string[];
|
|
1585
2528
|
}
|
|
2529
|
+
/**
|
|
2530
|
+
* The environment a formula of an object's own field compiles in, as on the host
|
|
2531
|
+
* (formulaEnvironment): its fields, every record's timestamps and, on a publishable object, when
|
|
2532
|
+
* its current version went live and its number (ADR 0706).
|
|
2533
|
+
*/
|
|
2534
|
+
export declare function objectFormulaEnvironment(object: {
|
|
2535
|
+
fields: Record<string, FieldManifest>;
|
|
2536
|
+
publishable?: unknown;
|
|
2537
|
+
}): Record<string, FormulaFieldRef>;
|
|
1586
2538
|
/** Formula environment for a set of field manifests (formula fields compile on demand). */
|
|
1587
2539
|
export declare function formulaFields(fields: Record<string, FieldManifest>): Record<string, FormulaFieldRef>;
|
|
1588
2540
|
/**
|
|
1589
|
-
*
|
|
1590
|
-
*
|
|
2541
|
+
* A shipped pack's screens (stage 47, ADR 0660), against its own manifest: each names a web block
|
|
2542
|
+
* of this pack and a component it exports (that both exist is the admin's build's check, which
|
|
2543
|
+
* fails on a missing one), and is gated by this pack's own tools, at least one of them for staff
|
|
2544
|
+
* only. A record screen is on one of this pack's objects or a base one. That only a shipped pack
|
|
2545
|
+
* declares screens is the host's check (`cos ext check` and install refuse a runtime one).
|
|
2546
|
+
*/
|
|
2547
|
+
export declare function screenIssues(m: ExtensionManifest): {
|
|
2548
|
+
path: string;
|
|
2549
|
+
message: string;
|
|
2550
|
+
}[];
|
|
2551
|
+
/**
|
|
2552
|
+
* Device roles and the tools open to a device (ADR 0781), against the manifest itself:
|
|
2553
|
+
* - a tool open to `device` is open to nobody else, is a read or a write, and names a
|
|
2554
|
+
* permission of this pack that a device role holds; it is no record action, waits for no
|
|
2555
|
+
* person and is no staff tool's;
|
|
2556
|
+
* - a device role holds at least one permission, each a permission of this pack's device tools
|
|
2557
|
+
* only (never a staff tool's, a staff role's, a grantable or a restricted one), and names its
|
|
2558
|
+
* screen: a web block of this pack and the component it exports.
|
|
2559
|
+
* That only a shipped pack declares device roles is the host's check (`cos ext check` and
|
|
2560
|
+
* install refuse a runtime one).
|
|
2561
|
+
*/
|
|
2562
|
+
export declare function deviceRoleIssues(m: ExtensionManifest): {
|
|
2563
|
+
path: string;
|
|
2564
|
+
message: string;
|
|
2565
|
+
}[];
|
|
2566
|
+
/**
|
|
2567
|
+
* A shipped pack's Today items (stage 60, ADR 0870), against its own manifest: at most 8, keys
|
|
2568
|
+
* camelCase, a count or a percent (never money: that is the host's, through Finance reports), gated
|
|
2569
|
+
* by this pack's own tools as a screen is (at least one for staff only), rows that open one of
|
|
2570
|
+
* this pack's objects or a base one, and a web screen this pack declares. What the SQL reads,
|
|
2571
|
+
* that it writes nothing and that it returns `value` is the host's check (it has the SQL guards);
|
|
2572
|
+
* so is that only a shipped pack declares items (`cos ext check` and install refuse a runtime one).
|
|
1591
2573
|
*/
|
|
2574
|
+
export declare function todayItemIssues(m: ExtensionManifest): {
|
|
2575
|
+
path: string;
|
|
2576
|
+
message: string;
|
|
2577
|
+
}[];
|
|
2578
|
+
/**
|
|
2579
|
+
* A shipped pack's sections of My account (stage 48, ADR 0710), against its own manifest: each
|
|
2580
|
+
* names a web block of this pack (never a native one) and a native block of this pack, at least
|
|
2581
|
+
* one of the two, each with a component it exports; sits before the base sections; and shows on
|
|
2582
|
+
* records of this pack's own objects that declare a customer (`has`, never empty). What the
|
|
2583
|
+
* blocks are (their skin, their pack, that they call only what a customer or the public may) is
|
|
2584
|
+
* read from their block.json by `cos ext check`; that only a shipped pack declares sections is the
|
|
2585
|
+
* host's check (`cos ext check` and install refuse a runtime one).
|
|
2586
|
+
*/
|
|
2587
|
+
export declare function portalIssues(m: ExtensionManifest): {
|
|
2588
|
+
path: string;
|
|
2589
|
+
message: string;
|
|
2590
|
+
}[];
|
|
1592
2591
|
export declare function validateManifest(input: unknown, options?: ValidateOptions): {
|
|
1593
2592
|
manifest: ExtensionManifest | null;
|
|
1594
2593
|
issues: ManifestIssue[];
|
|
1595
2594
|
};
|
|
1596
2595
|
export declare function declaredModules(manifest: ExtensionManifest): HostModuleName[];
|
|
2596
|
+
export {};
|