@composable-os/sdk 0.1.0-beta.11 → 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.js +1 -2
- package/dist/checklists.d.ts +41 -0
- package/dist/checklists.js +75 -0
- package/dist/contract.d.ts +495 -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 +944 -56
- package/dist/manifest.js +1036 -60
- 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 +153 -2
- package/dist/sellable.js +188 -0
- 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 +17 -1
- package/dist/states.js +48 -20
- 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 +1 -2
- package/src/checklists.ts +118 -0
- package/src/contract.ts +489 -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 +1236 -65
- 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 +344 -0
- package/src/slug.ts +7 -2
- package/src/staffed.ts +474 -0
- package/src/states.ts +68 -26
- 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,14 +18,16 @@ 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";
|
|
22
24
|
relation: "relation";
|
|
25
|
+
datetime: "datetime";
|
|
23
26
|
text: "text";
|
|
27
|
+
select: "select";
|
|
28
|
+
percent: "percent";
|
|
24
29
|
longText: "longText";
|
|
25
30
|
currency: "currency";
|
|
26
|
-
percent: "percent";
|
|
27
|
-
datetime: "datetime";
|
|
28
|
-
select: "select";
|
|
29
31
|
multiSelect: "multiSelect";
|
|
30
32
|
user: "user";
|
|
31
33
|
email: "email";
|
|
@@ -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,14 +120,16 @@ 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";
|
|
116
126
|
relation: "relation";
|
|
127
|
+
datetime: "datetime";
|
|
117
128
|
text: "text";
|
|
129
|
+
select: "select";
|
|
130
|
+
percent: "percent";
|
|
118
131
|
longText: "longText";
|
|
119
132
|
currency: "currency";
|
|
120
|
-
percent: "percent";
|
|
121
|
-
datetime: "datetime";
|
|
122
|
-
select: "select";
|
|
123
133
|
multiSelect: "multiSelect";
|
|
124
134
|
user: "user";
|
|
125
135
|
email: "email";
|
|
@@ -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<{
|
|
@@ -277,6 +287,9 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
277
287
|
minDays: z.ZodOptional<z.ZodString>;
|
|
278
288
|
maxDays: z.ZodOptional<z.ZodString>;
|
|
279
289
|
}, z.core.$strict>>;
|
|
290
|
+
coolingOff: z.ZodOptional<z.ZodObject<{
|
|
291
|
+
setting: z.ZodString;
|
|
292
|
+
}, z.core.$strict>>;
|
|
280
293
|
grants: z.ZodOptional<z.ZodObject<{
|
|
281
294
|
object: z.ZodString;
|
|
282
295
|
set: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
|
|
@@ -297,33 +310,99 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
297
310
|
}, z.core.$strict>;
|
|
298
311
|
}, z.core.$strict>>;
|
|
299
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>;
|
|
300
369
|
}, z.core.$strict>>;
|
|
301
370
|
allowance: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
302
371
|
holds: z.ZodObject<{
|
|
303
372
|
person: z.ZodString;
|
|
304
373
|
uses: z.ZodString;
|
|
305
374
|
per: z.ZodUnion<readonly [z.ZodEnum<{
|
|
375
|
+
total: "total";
|
|
306
376
|
week: "week";
|
|
307
377
|
month: "month";
|
|
308
|
-
total: "total";
|
|
309
378
|
}>, z.ZodObject<{
|
|
310
379
|
field: z.ZodString;
|
|
311
380
|
}, z.core.$strict>]>;
|
|
312
381
|
spendsOn: z.ZodUnion<readonly [z.ZodObject<{
|
|
313
382
|
object: z.ZodString;
|
|
314
383
|
when: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
315
|
-
field: z.ZodString
|
|
384
|
+
field: z.ZodOptional<z.ZodString>;
|
|
385
|
+
value: z.ZodOptional<z.ZodString>;
|
|
316
386
|
in: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
317
387
|
atLeast: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
318
388
|
below: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
389
|
+
empty: z.ZodOptional<z.ZodEnum<{
|
|
390
|
+
any: "any";
|
|
391
|
+
none: "none";
|
|
392
|
+
}>>;
|
|
319
393
|
}, z.core.$strict>>>;
|
|
320
394
|
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
321
395
|
object: z.ZodString;
|
|
322
396
|
when: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
323
|
-
field: z.ZodString
|
|
397
|
+
field: z.ZodOptional<z.ZodString>;
|
|
398
|
+
value: z.ZodOptional<z.ZodString>;
|
|
324
399
|
in: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
325
400
|
atLeast: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
326
401
|
below: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
402
|
+
empty: z.ZodOptional<z.ZodEnum<{
|
|
403
|
+
any: "any";
|
|
404
|
+
none: "none";
|
|
405
|
+
}>>;
|
|
327
406
|
}, z.core.$strict>>>;
|
|
328
407
|
}, z.core.$strict>>]>;
|
|
329
408
|
from: z.ZodOptional<z.ZodString>;
|
|
@@ -348,11 +427,63 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
348
427
|
movedFrom: z.ZodOptional<z.ZodObject<{
|
|
349
428
|
field: z.ZodString;
|
|
350
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>>;
|
|
351
435
|
}, z.core.$strict>>;
|
|
352
436
|
paidBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
353
437
|
waived: z.ZodOptional<z.ZodString>;
|
|
438
|
+
released: z.ZodOptional<z.ZodString>;
|
|
354
439
|
}, z.core.$strict>;
|
|
355
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>>;
|
|
356
487
|
states: z.ZodOptional<z.ZodObject<{
|
|
357
488
|
field: z.ZodString;
|
|
358
489
|
initial: z.ZodString;
|
|
@@ -430,6 +561,7 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
430
561
|
}, z.core.$strict>>;
|
|
431
562
|
staffOnly: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
432
563
|
closed: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
564
|
+
requires: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
433
565
|
}, z.core.$strict>>;
|
|
434
566
|
requests: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
435
567
|
follows: z.ZodOptional<z.ZodObject<{
|
|
@@ -443,6 +575,7 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
443
575
|
at: z.ZodString;
|
|
444
576
|
minutesAfter: z.ZodOptional<z.ZodNumber>;
|
|
445
577
|
ifAnyIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
578
|
+
ifSet: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
446
579
|
}, z.core.$strict>>>;
|
|
447
580
|
}, z.core.$strip>>;
|
|
448
581
|
claims: z.ZodOptional<z.ZodObject<{
|
|
@@ -477,12 +610,17 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
477
610
|
generates: z.ZodString;
|
|
478
611
|
link: z.ZodString;
|
|
479
612
|
rule: z.ZodObject<{
|
|
480
|
-
weekdays: z.ZodString
|
|
613
|
+
weekdays: z.ZodOptional<z.ZodString>;
|
|
481
614
|
time: z.ZodString;
|
|
482
615
|
length: z.ZodOptional<z.ZodString>;
|
|
483
616
|
from: z.ZodString;
|
|
484
617
|
until: z.ZodOptional<z.ZodString>;
|
|
485
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>;
|
|
486
624
|
}, z.core.$strict>;
|
|
487
625
|
into: z.ZodObject<{
|
|
488
626
|
starts: z.ZodString;
|
|
@@ -506,6 +644,134 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
506
644
|
object: z.ZodString;
|
|
507
645
|
field: z.ZodString;
|
|
508
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>;
|
|
509
775
|
}, z.core.$strict>>;
|
|
510
776
|
owner: z.ZodOptional<z.ZodString>;
|
|
511
777
|
customer: z.ZodOptional<z.ZodObject<{
|
|
@@ -514,6 +780,7 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
514
780
|
write: z.ZodArray<z.ZodString>;
|
|
515
781
|
requireAccess: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
516
782
|
createOnly: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
783
|
+
delete: z.ZodOptional<z.ZodBoolean>;
|
|
517
784
|
guardians: z.ZodOptional<z.ZodObject<{
|
|
518
785
|
write: z.ZodOptional<z.ZodBoolean>;
|
|
519
786
|
madeBy: z.ZodOptional<z.ZodString>;
|
|
@@ -521,19 +788,27 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
521
788
|
}, z.core.$strict>>;
|
|
522
789
|
public: z.ZodOptional<z.ZodObject<{
|
|
523
790
|
read: z.ZodArray<z.ZodString>;
|
|
524
|
-
when: z.ZodOptional<z.ZodObject<{
|
|
791
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
525
792
|
via: z.ZodOptional<z.ZodString>;
|
|
526
|
-
field: z.ZodString
|
|
527
|
-
in: z.ZodArray<z.ZodString
|
|
528
|
-
}, 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>>]>>;
|
|
529
800
|
}, z.core.$strict>>;
|
|
530
801
|
signedIn: z.ZodOptional<z.ZodObject<{
|
|
531
802
|
read: z.ZodArray<z.ZodString>;
|
|
532
|
-
when: z.ZodOptional<z.ZodObject<{
|
|
803
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
533
804
|
via: z.ZodOptional<z.ZodString>;
|
|
534
|
-
field: z.ZodString
|
|
535
|
-
in: z.ZodArray<z.ZodString
|
|
536
|
-
}, 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>>]>>;
|
|
537
812
|
}, z.core.$strict>>;
|
|
538
813
|
customerVia: z.ZodOptional<z.ZodObject<{
|
|
539
814
|
from: z.ZodString;
|
|
@@ -556,6 +831,33 @@ export declare const objectManifestSchema: z.ZodObject<{
|
|
|
556
831
|
content: z.ZodArray<z.ZodString>;
|
|
557
832
|
slug: z.ZodOptional<z.ZodString>;
|
|
558
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>;
|
|
559
861
|
}, z.core.$strict>>;
|
|
560
862
|
navigationOrder: z.ZodOptional<z.ZodNumber>;
|
|
561
863
|
requireOneOf: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
@@ -615,11 +917,17 @@ export declare const toolManifestSchema: z.ZodObject<{
|
|
|
615
917
|
staff: "staff";
|
|
616
918
|
customer: "customer";
|
|
617
919
|
public: "public";
|
|
920
|
+
device: "device";
|
|
618
921
|
}>>>;
|
|
619
922
|
customerFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
620
|
-
permission: z.ZodOptional<z.ZodString
|
|
923
|
+
permission: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
621
924
|
humanOnly: z.ZodOptional<z.ZodLiteral<true>>;
|
|
622
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>>;
|
|
623
931
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
624
932
|
outputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
625
933
|
}, z.core.$strip>;
|
|
@@ -635,10 +943,37 @@ export declare const roleManifestSchema: z.ZodObject<{
|
|
|
635
943
|
until: z.ZodOptional<z.ZodString>;
|
|
636
944
|
zone: z.ZodOptional<z.ZodString>;
|
|
637
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>>>;
|
|
638
958
|
}, z.core.$strip>;
|
|
639
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>;
|
|
640
971
|
/** A role's or a tool's permission: `<extension id>:<word>`. */
|
|
641
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[];
|
|
642
977
|
export declare const viewManifestSchema: z.ZodObject<{
|
|
643
978
|
label: z.ZodString;
|
|
644
979
|
object: z.ZodString;
|
|
@@ -746,6 +1081,7 @@ export declare const permissionsManifestSchema: z.ZodObject<{
|
|
|
746
1081
|
operations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
747
1082
|
modules: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
748
1083
|
email: "email";
|
|
1084
|
+
"routine-mail": "routine-mail";
|
|
749
1085
|
google: "google";
|
|
750
1086
|
microsoft: "microsoft";
|
|
751
1087
|
slack: "slack";
|
|
@@ -763,6 +1099,78 @@ export declare const permissionsManifestSchema: z.ZodObject<{
|
|
|
763
1099
|
}>>>;
|
|
764
1100
|
}, z.core.$strip>;
|
|
765
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;
|
|
766
1174
|
export declare const manifestSchema: z.ZodObject<{
|
|
767
1175
|
id: z.ZodString;
|
|
768
1176
|
version: z.ZodString;
|
|
@@ -776,6 +1184,7 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
776
1184
|
operations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
777
1185
|
modules: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
778
1186
|
email: "email";
|
|
1187
|
+
"routine-mail": "routine-mail";
|
|
779
1188
|
google: "google";
|
|
780
1189
|
microsoft: "microsoft";
|
|
781
1190
|
slack: "slack";
|
|
@@ -803,14 +1212,16 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
803
1212
|
type: z.ZodEnum<{
|
|
804
1213
|
number: "number";
|
|
805
1214
|
boolean: "boolean";
|
|
1215
|
+
image: "image";
|
|
1216
|
+
video: "video";
|
|
806
1217
|
date: "date";
|
|
807
1218
|
relation: "relation";
|
|
1219
|
+
datetime: "datetime";
|
|
808
1220
|
text: "text";
|
|
1221
|
+
select: "select";
|
|
1222
|
+
percent: "percent";
|
|
809
1223
|
longText: "longText";
|
|
810
1224
|
currency: "currency";
|
|
811
|
-
percent: "percent";
|
|
812
|
-
datetime: "datetime";
|
|
813
|
-
select: "select";
|
|
814
1225
|
multiSelect: "multiSelect";
|
|
815
1226
|
user: "user";
|
|
816
1227
|
email: "email";
|
|
@@ -821,8 +1232,7 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
821
1232
|
timezone: "timezone";
|
|
822
1233
|
richText: "richText";
|
|
823
1234
|
slug: "slug";
|
|
824
|
-
|
|
825
|
-
video: "video";
|
|
1235
|
+
checklist: "checklist";
|
|
826
1236
|
}>;
|
|
827
1237
|
label: z.ZodString;
|
|
828
1238
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -842,6 +1252,7 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
842
1252
|
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
843
1253
|
defaultSetting: z.ZodOptional<z.ZodString>;
|
|
844
1254
|
personApproves: z.ZodOptional<z.ZodBoolean>;
|
|
1255
|
+
restricted: z.ZodOptional<z.ZodString>;
|
|
845
1256
|
to: z.ZodOptional<z.ZodString>;
|
|
846
1257
|
many: z.ZodOptional<z.ZodBoolean>;
|
|
847
1258
|
expression: z.ZodOptional<z.ZodString>;
|
|
@@ -858,9 +1269,9 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
858
1269
|
}, z.core.$strict>>>;
|
|
859
1270
|
}, z.core.$strip>>;
|
|
860
1271
|
navigation: z.ZodOptional<z.ZodEnum<{
|
|
1272
|
+
none: "none";
|
|
861
1273
|
main: "main";
|
|
862
1274
|
settings: "settings";
|
|
863
|
-
none: "none";
|
|
864
1275
|
}>>;
|
|
865
1276
|
indexes: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
866
1277
|
timelineLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -913,14 +1324,14 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
913
1324
|
grants: z.ZodOptional<z.ZodObject<{
|
|
914
1325
|
object: z.ZodString;
|
|
915
1326
|
set: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
|
|
916
|
-
|
|
1327
|
+
code: "code";
|
|
917
1328
|
order: "order";
|
|
1329
|
+
item: "item";
|
|
918
1330
|
"order.person": "order.person";
|
|
919
1331
|
"order.email": "order.email";
|
|
920
1332
|
line: "line";
|
|
921
1333
|
"line.title": "line.title";
|
|
922
1334
|
"line.unitPrice": "line.unitPrice";
|
|
923
|
-
code: "code";
|
|
924
1335
|
}>, z.ZodString]>>;
|
|
925
1336
|
void: z.ZodString;
|
|
926
1337
|
valid: z.ZodOptional<z.ZodObject<{
|
|
@@ -968,6 +1379,9 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
968
1379
|
minDays: z.ZodOptional<z.ZodString>;
|
|
969
1380
|
maxDays: z.ZodOptional<z.ZodString>;
|
|
970
1381
|
}, z.core.$strict>>;
|
|
1382
|
+
coolingOff: z.ZodOptional<z.ZodObject<{
|
|
1383
|
+
setting: z.ZodString;
|
|
1384
|
+
}, z.core.$strict>>;
|
|
971
1385
|
grants: z.ZodOptional<z.ZodObject<{
|
|
972
1386
|
object: z.ZodString;
|
|
973
1387
|
set: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
|
|
@@ -988,33 +1402,99 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
988
1402
|
}, z.core.$strict>;
|
|
989
1403
|
}, z.core.$strict>>;
|
|
990
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>;
|
|
991
1461
|
}, z.core.$strict>>;
|
|
992
1462
|
allowance: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
993
1463
|
holds: z.ZodObject<{
|
|
994
1464
|
person: z.ZodString;
|
|
995
1465
|
uses: z.ZodString;
|
|
996
1466
|
per: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1467
|
+
total: "total";
|
|
997
1468
|
week: "week";
|
|
998
1469
|
month: "month";
|
|
999
|
-
total: "total";
|
|
1000
1470
|
}>, z.ZodObject<{
|
|
1001
1471
|
field: z.ZodString;
|
|
1002
1472
|
}, z.core.$strict>]>;
|
|
1003
1473
|
spendsOn: z.ZodUnion<readonly [z.ZodObject<{
|
|
1004
1474
|
object: z.ZodString;
|
|
1005
1475
|
when: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1006
|
-
field: z.ZodString
|
|
1476
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1477
|
+
value: z.ZodOptional<z.ZodString>;
|
|
1007
1478
|
in: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1008
1479
|
atLeast: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1009
1480
|
below: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1481
|
+
empty: z.ZodOptional<z.ZodEnum<{
|
|
1482
|
+
any: "any";
|
|
1483
|
+
none: "none";
|
|
1484
|
+
}>>;
|
|
1010
1485
|
}, z.core.$strict>>>;
|
|
1011
1486
|
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
1012
1487
|
object: z.ZodString;
|
|
1013
1488
|
when: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1014
|
-
field: z.ZodString
|
|
1489
|
+
field: z.ZodOptional<z.ZodString>;
|
|
1490
|
+
value: z.ZodOptional<z.ZodString>;
|
|
1015
1491
|
in: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1016
1492
|
atLeast: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1017
1493
|
below: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1494
|
+
empty: z.ZodOptional<z.ZodEnum<{
|
|
1495
|
+
any: "any";
|
|
1496
|
+
none: "none";
|
|
1497
|
+
}>>;
|
|
1018
1498
|
}, z.core.$strict>>>;
|
|
1019
1499
|
}, z.core.$strict>>]>;
|
|
1020
1500
|
from: z.ZodOptional<z.ZodString>;
|
|
@@ -1039,11 +1519,63 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1039
1519
|
movedFrom: z.ZodOptional<z.ZodObject<{
|
|
1040
1520
|
field: z.ZodString;
|
|
1041
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>>;
|
|
1042
1527
|
}, z.core.$strict>>;
|
|
1043
1528
|
paidBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1044
1529
|
waived: z.ZodOptional<z.ZodString>;
|
|
1530
|
+
released: z.ZodOptional<z.ZodString>;
|
|
1045
1531
|
}, z.core.$strict>;
|
|
1046
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>>;
|
|
1047
1579
|
states: z.ZodOptional<z.ZodObject<{
|
|
1048
1580
|
field: z.ZodString;
|
|
1049
1581
|
initial: z.ZodString;
|
|
@@ -1121,6 +1653,7 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1121
1653
|
}, z.core.$strict>>;
|
|
1122
1654
|
staffOnly: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1123
1655
|
closed: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1656
|
+
requires: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1124
1657
|
}, z.core.$strict>>;
|
|
1125
1658
|
requests: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
1126
1659
|
follows: z.ZodOptional<z.ZodObject<{
|
|
@@ -1134,6 +1667,7 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1134
1667
|
at: z.ZodString;
|
|
1135
1668
|
minutesAfter: z.ZodOptional<z.ZodNumber>;
|
|
1136
1669
|
ifAnyIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1670
|
+
ifSet: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1137
1671
|
}, z.core.$strict>>>;
|
|
1138
1672
|
}, z.core.$strip>>;
|
|
1139
1673
|
claims: z.ZodOptional<z.ZodObject<{
|
|
@@ -1168,12 +1702,17 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1168
1702
|
generates: z.ZodString;
|
|
1169
1703
|
link: z.ZodString;
|
|
1170
1704
|
rule: z.ZodObject<{
|
|
1171
|
-
weekdays: z.ZodString
|
|
1705
|
+
weekdays: z.ZodOptional<z.ZodString>;
|
|
1172
1706
|
time: z.ZodString;
|
|
1173
1707
|
length: z.ZodOptional<z.ZodString>;
|
|
1174
1708
|
from: z.ZodString;
|
|
1175
1709
|
until: z.ZodOptional<z.ZodString>;
|
|
1176
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>;
|
|
1177
1716
|
}, z.core.$strict>;
|
|
1178
1717
|
into: z.ZodObject<{
|
|
1179
1718
|
starts: z.ZodString;
|
|
@@ -1197,6 +1736,134 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1197
1736
|
object: z.ZodString;
|
|
1198
1737
|
field: z.ZodString;
|
|
1199
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>;
|
|
1200
1867
|
}, z.core.$strict>>;
|
|
1201
1868
|
owner: z.ZodOptional<z.ZodString>;
|
|
1202
1869
|
customer: z.ZodOptional<z.ZodObject<{
|
|
@@ -1205,6 +1872,7 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1205
1872
|
write: z.ZodArray<z.ZodString>;
|
|
1206
1873
|
requireAccess: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1207
1874
|
createOnly: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1875
|
+
delete: z.ZodOptional<z.ZodBoolean>;
|
|
1208
1876
|
guardians: z.ZodOptional<z.ZodObject<{
|
|
1209
1877
|
write: z.ZodOptional<z.ZodBoolean>;
|
|
1210
1878
|
madeBy: z.ZodOptional<z.ZodString>;
|
|
@@ -1212,19 +1880,27 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1212
1880
|
}, z.core.$strict>>;
|
|
1213
1881
|
public: z.ZodOptional<z.ZodObject<{
|
|
1214
1882
|
read: z.ZodArray<z.ZodString>;
|
|
1215
|
-
when: z.ZodOptional<z.ZodObject<{
|
|
1883
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1216
1884
|
via: z.ZodOptional<z.ZodString>;
|
|
1217
|
-
field: z.ZodString
|
|
1218
|
-
in: z.ZodArray<z.ZodString
|
|
1219
|
-
}, 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>>]>>;
|
|
1220
1892
|
}, z.core.$strict>>;
|
|
1221
1893
|
signedIn: z.ZodOptional<z.ZodObject<{
|
|
1222
1894
|
read: z.ZodArray<z.ZodString>;
|
|
1223
|
-
when: z.ZodOptional<z.ZodObject<{
|
|
1895
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1224
1896
|
via: z.ZodOptional<z.ZodString>;
|
|
1225
|
-
field: z.ZodString
|
|
1226
|
-
in: z.ZodArray<z.ZodString
|
|
1227
|
-
}, 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>>]>>;
|
|
1228
1904
|
}, z.core.$strict>>;
|
|
1229
1905
|
customerVia: z.ZodOptional<z.ZodObject<{
|
|
1230
1906
|
from: z.ZodString;
|
|
@@ -1247,6 +1923,33 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1247
1923
|
content: z.ZodArray<z.ZodString>;
|
|
1248
1924
|
slug: z.ZodOptional<z.ZodString>;
|
|
1249
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>;
|
|
1250
1953
|
}, z.core.$strict>>;
|
|
1251
1954
|
navigationOrder: z.ZodOptional<z.ZodNumber>;
|
|
1252
1955
|
requireOneOf: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
@@ -1260,14 +1963,16 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1260
1963
|
type: z.ZodEnum<{
|
|
1261
1964
|
number: "number";
|
|
1262
1965
|
boolean: "boolean";
|
|
1966
|
+
image: "image";
|
|
1967
|
+
video: "video";
|
|
1263
1968
|
date: "date";
|
|
1264
1969
|
relation: "relation";
|
|
1970
|
+
datetime: "datetime";
|
|
1265
1971
|
text: "text";
|
|
1972
|
+
select: "select";
|
|
1973
|
+
percent: "percent";
|
|
1266
1974
|
longText: "longText";
|
|
1267
1975
|
currency: "currency";
|
|
1268
|
-
percent: "percent";
|
|
1269
|
-
datetime: "datetime";
|
|
1270
|
-
select: "select";
|
|
1271
1976
|
multiSelect: "multiSelect";
|
|
1272
1977
|
user: "user";
|
|
1273
1978
|
email: "email";
|
|
@@ -1278,8 +1983,7 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1278
1983
|
timezone: "timezone";
|
|
1279
1984
|
richText: "richText";
|
|
1280
1985
|
slug: "slug";
|
|
1281
|
-
|
|
1282
|
-
video: "video";
|
|
1986
|
+
checklist: "checklist";
|
|
1283
1987
|
}>;
|
|
1284
1988
|
label: z.ZodString;
|
|
1285
1989
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1299,6 +2003,7 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1299
2003
|
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1300
2004
|
defaultSetting: z.ZodOptional<z.ZodString>;
|
|
1301
2005
|
personApproves: z.ZodOptional<z.ZodBoolean>;
|
|
2006
|
+
restricted: z.ZodOptional<z.ZodString>;
|
|
1302
2007
|
to: z.ZodOptional<z.ZodString>;
|
|
1303
2008
|
many: z.ZodOptional<z.ZodBoolean>;
|
|
1304
2009
|
expression: z.ZodOptional<z.ZodString>;
|
|
@@ -1470,11 +2175,17 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1470
2175
|
staff: "staff";
|
|
1471
2176
|
customer: "customer";
|
|
1472
2177
|
public: "public";
|
|
2178
|
+
device: "device";
|
|
1473
2179
|
}>>>;
|
|
1474
2180
|
customerFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
1475
|
-
permission: z.ZodOptional<z.ZodString
|
|
2181
|
+
permission: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1476
2182
|
humanOnly: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1477
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>>;
|
|
1478
2189
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1479
2190
|
outputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1480
2191
|
}, z.core.$strip>>>;
|
|
@@ -1521,7 +2232,15 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1521
2232
|
type: z.ZodLiteral<"dateRelative">;
|
|
1522
2233
|
object: z.ZodString;
|
|
1523
2234
|
field: z.ZodString;
|
|
1524
|
-
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>]>>;
|
|
1525
2244
|
zoneField: z.ZodOptional<z.ZodString>;
|
|
1526
2245
|
}, z.core.$strict>, z.ZodObject<{
|
|
1527
2246
|
type: z.ZodLiteral<"manual">;
|
|
@@ -1644,6 +2363,7 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1644
2363
|
purpose: z.ZodString;
|
|
1645
2364
|
}, z.core.$strict>>>;
|
|
1646
2365
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2366
|
+
onlyWith: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1647
2367
|
}, z.core.$strip>>>;
|
|
1648
2368
|
roles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1649
2369
|
label: z.ZodString;
|
|
@@ -1655,8 +2375,113 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
1655
2375
|
until: z.ZodOptional<z.ZodString>;
|
|
1656
2376
|
zone: z.ZodOptional<z.ZodString>;
|
|
1657
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>>>;
|
|
1658
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>>>;
|
|
1659
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>>>;
|
|
1660
2485
|
}, z.core.$strip>;
|
|
1661
2486
|
export type ExtensionManifest = z.infer<typeof manifestSchema>;
|
|
1662
2487
|
/** One problem `check` found. `path` points into the manifest, e.g. `objects.project.fields.x`. */
|
|
@@ -1694,15 +2519,78 @@ export interface ValidateOptions {
|
|
|
1694
2519
|
* automation checks; null when unknown (those checks are skipped). Core objects are built in.
|
|
1695
2520
|
*/
|
|
1696
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[];
|
|
1697
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>;
|
|
1698
2538
|
/** Formula environment for a set of field manifests (formula fields compile on demand). */
|
|
1699
2539
|
export declare function formulaFields(fields: Record<string, FieldManifest>): Record<string, FormulaFieldRef>;
|
|
1700
2540
|
/**
|
|
1701
|
-
*
|
|
1702
|
-
*
|
|
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).
|
|
1703
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).
|
|
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
|
+
}[];
|
|
1704
2591
|
export declare function validateManifest(input: unknown, options?: ValidateOptions): {
|
|
1705
2592
|
manifest: ExtensionManifest | null;
|
|
1706
2593
|
issues: ManifestIssue[];
|
|
1707
2594
|
};
|
|
1708
2595
|
export declare function declaredModules(manifest: ExtensionManifest): HostModuleName[];
|
|
2596
|
+
export {};
|