@adminiumjs/manifest 0.3.5 → 0.3.7
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/capacity.d.ts +786 -0
- package/dist/capacity.d.ts.map +1 -0
- package/dist/capacity.js +717 -0
- package/dist/capacity.js.map +1 -0
- package/dist/documents.d.ts +91 -5
- package/dist/documents.d.ts.map +1 -1
- package/dist/documents.js +129 -32
- package/dist/documents.js.map +1 -1
- package/dist/formula.d.ts +114 -2
- package/dist/formula.d.ts.map +1 -1
- package/dist/formula.js +291 -5
- package/dist/formula.js.map +1 -1
- package/dist/index.d.ts +12 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -6
- package/dist/index.js.map +1 -1
- package/dist/marketplace-wire.d.ts +230 -0
- package/dist/marketplace-wire.d.ts.map +1 -0
- package/dist/marketplace-wire.js +138 -0
- package/dist/marketplace-wire.js.map +1 -0
- package/dist/outbox.d.ts +242 -27
- package/dist/outbox.d.ts.map +1 -1
- package/dist/outbox.js +553 -27
- package/dist/outbox.js.map +1 -1
- package/dist/plan-context.d.ts +28 -3
- package/dist/plan-context.d.ts.map +1 -1
- package/dist/plan-context.js +291 -14
- package/dist/plan-context.js.map +1 -1
- package/dist/plan-model.d.ts +58 -3
- package/dist/plan-model.d.ts.map +1 -1
- package/dist/public-access.d.ts +637 -0
- package/dist/public-access.d.ts.map +1 -1
- package/dist/public-access.js +1593 -12
- package/dist/public-access.js.map +1 -1
- package/dist/refs.d.ts +86 -0
- package/dist/refs.d.ts.map +1 -1
- package/dist/refs.js +186 -0
- package/dist/refs.js.map +1 -1
- package/dist/roles.d.ts +10 -2
- package/dist/roles.d.ts.map +1 -1
- package/dist/roles.js +27 -5
- package/dist/roles.js.map +1 -1
- package/dist/sample.d.ts +218 -2
- package/dist/sample.d.ts.map +1 -1
- package/dist/sample.js +145 -7
- package/dist/sample.js.map +1 -1
- package/dist/schema.d.ts +2860 -360
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +1002 -54
- package/dist/schema.js.map +1 -1
- package/dist/shapes.d.ts +5 -1
- package/dist/shapes.d.ts.map +1 -1
- package/dist/shapes.js +13 -3
- package/dist/shapes.js.map +1 -1
- package/dist/states.d.ts +342 -2
- package/dist/states.d.ts.map +1 -1
- package/dist/states.js +566 -7
- package/dist/states.js.map +1 -1
- package/dist/table-shapes.d.ts +47 -0
- package/dist/table-shapes.d.ts.map +1 -0
- package/dist/table-shapes.js +159 -0
- package/dist/table-shapes.js.map +1 -0
- package/dist/validate.d.ts.map +1 -1
- package/dist/validate.js +80 -2
- package/dist/validate.js.map +1 -1
- package/package.json +2 -2
package/dist/outbox.d.ts
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
*/
|
|
26
26
|
import { z } from 'zod';
|
|
27
27
|
import type { AddOnNeeds } from './add-ons.js';
|
|
28
|
+
import { unlistedColumn } from './public-access.js';
|
|
28
29
|
import { type ReferenceIssue, type TableIndex } from './refs.js';
|
|
29
30
|
/** The statuses an outbox table's status column must offer. */
|
|
30
31
|
export declare const OUTBOX_STATUSES: readonly ["queued", "sent", "failed", "skipped"];
|
|
@@ -50,6 +51,14 @@ export declare const outboxProducerSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
50
51
|
table: z.ZodString;
|
|
51
52
|
column: z.ZodString;
|
|
52
53
|
}, z.core.$strict>;
|
|
54
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
55
|
+
feature: z.ZodString;
|
|
56
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
57
|
+
feature: z.ZodString;
|
|
58
|
+
setting: z.ZodObject<{
|
|
59
|
+
table: z.ZodString;
|
|
60
|
+
column: z.ZodString;
|
|
61
|
+
}, z.core.$strict>;
|
|
53
62
|
}, z.core.$strict>]>>;
|
|
54
63
|
optIn: z.ZodOptional<z.ZodLiteral<true>>;
|
|
55
64
|
hold: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -85,7 +94,7 @@ export declare const outboxProducerSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
85
94
|
"no-longer-needed": "no-longer-needed";
|
|
86
95
|
}>;
|
|
87
96
|
}, z.core.$strict>>>;
|
|
88
|
-
recipient: z.ZodOptional<z.ZodObject<{
|
|
97
|
+
recipient: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
89
98
|
setting: z.ZodUnion<readonly [z.ZodObject<{
|
|
90
99
|
table: z.ZodString;
|
|
91
100
|
column: z.ZodString;
|
|
@@ -93,15 +102,23 @@ export declare const outboxProducerSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
93
102
|
addOn: z.ZodString;
|
|
94
103
|
setting: z.ZodString;
|
|
95
104
|
}, z.core.$strict>]>;
|
|
96
|
-
}, z.core.$strict
|
|
105
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
106
|
+
column: z.ZodString;
|
|
107
|
+
name: z.ZodOptional<z.ZodString>;
|
|
108
|
+
language: z.ZodOptional<z.ZodString>;
|
|
109
|
+
}, z.core.$strict>]>>;
|
|
97
110
|
batchMinutes: z.ZodOptional<z.ZodNumber>;
|
|
111
|
+
holdSeconds: z.ZodOptional<z.ZodNumber>;
|
|
112
|
+
repeatBy: z.ZodOptional<z.ZodString>;
|
|
113
|
+
repeat: z.ZodOptional<z.ZodLiteral<true>>;
|
|
114
|
+
was: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
98
115
|
onSent: z.ZodOptional<z.ZodObject<{
|
|
99
116
|
table: z.ZodString;
|
|
100
117
|
via: z.ZodOptional<z.ZodString>;
|
|
101
118
|
set: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodNull]>>;
|
|
102
119
|
}, z.core.$strict>>;
|
|
103
120
|
}, z.core.$strict>, z.ZodObject<{
|
|
104
|
-
onChange: z.ZodObject<{
|
|
121
|
+
onChange: z.ZodUnion<readonly [z.ZodObject<{
|
|
105
122
|
table: z.ZodString;
|
|
106
123
|
via: z.ZodOptional<z.ZodString>;
|
|
107
124
|
column: z.ZodString;
|
|
@@ -112,7 +129,18 @@ export declare const outboxProducerSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
112
129
|
in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
113
130
|
isNull: z.ZodOptional<z.ZodBoolean>;
|
|
114
131
|
}, z.core.$strict>>;
|
|
115
|
-
}, z.core.$strict
|
|
132
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
133
|
+
table: z.ZodString;
|
|
134
|
+
via: z.ZodOptional<z.ZodString>;
|
|
135
|
+
columns: z.ZodArray<z.ZodString>;
|
|
136
|
+
changed: z.ZodLiteral<true>;
|
|
137
|
+
where: z.ZodOptional<z.ZodObject<{
|
|
138
|
+
column: z.ZodString;
|
|
139
|
+
eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
140
|
+
in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
141
|
+
isNull: z.ZodOptional<z.ZodBoolean>;
|
|
142
|
+
}, z.core.$strict>>;
|
|
143
|
+
}, z.core.$strict>]>;
|
|
116
144
|
kind: z.ZodString;
|
|
117
145
|
link: z.ZodString;
|
|
118
146
|
gate: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"enabled">, z.ZodObject<{
|
|
@@ -120,6 +148,14 @@ export declare const outboxProducerSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
120
148
|
table: z.ZodString;
|
|
121
149
|
column: z.ZodString;
|
|
122
150
|
}, z.core.$strict>;
|
|
151
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
152
|
+
feature: z.ZodString;
|
|
153
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
154
|
+
feature: z.ZodString;
|
|
155
|
+
setting: z.ZodObject<{
|
|
156
|
+
table: z.ZodString;
|
|
157
|
+
column: z.ZodString;
|
|
158
|
+
}, z.core.$strict>;
|
|
123
159
|
}, z.core.$strict>]>>;
|
|
124
160
|
optIn: z.ZodOptional<z.ZodLiteral<true>>;
|
|
125
161
|
hold: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -155,7 +191,7 @@ export declare const outboxProducerSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
155
191
|
"no-longer-needed": "no-longer-needed";
|
|
156
192
|
}>;
|
|
157
193
|
}, z.core.$strict>>>;
|
|
158
|
-
recipient: z.ZodOptional<z.ZodObject<{
|
|
194
|
+
recipient: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
159
195
|
setting: z.ZodUnion<readonly [z.ZodObject<{
|
|
160
196
|
table: z.ZodString;
|
|
161
197
|
column: z.ZodString;
|
|
@@ -163,8 +199,16 @@ export declare const outboxProducerSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
163
199
|
addOn: z.ZodString;
|
|
164
200
|
setting: z.ZodString;
|
|
165
201
|
}, z.core.$strict>]>;
|
|
166
|
-
}, z.core.$strict
|
|
202
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
203
|
+
column: z.ZodString;
|
|
204
|
+
name: z.ZodOptional<z.ZodString>;
|
|
205
|
+
language: z.ZodOptional<z.ZodString>;
|
|
206
|
+
}, z.core.$strict>]>>;
|
|
167
207
|
batchMinutes: z.ZodOptional<z.ZodNumber>;
|
|
208
|
+
holdSeconds: z.ZodOptional<z.ZodNumber>;
|
|
209
|
+
repeatBy: z.ZodOptional<z.ZodString>;
|
|
210
|
+
repeat: z.ZodOptional<z.ZodLiteral<true>>;
|
|
211
|
+
was: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
168
212
|
onSent: z.ZodOptional<z.ZodObject<{
|
|
169
213
|
table: z.ZodString;
|
|
170
214
|
via: z.ZodOptional<z.ZodString>;
|
|
@@ -183,6 +227,7 @@ export declare const outboxProducerSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
183
227
|
column: z.ZodString;
|
|
184
228
|
}, z.core.$strict>>;
|
|
185
229
|
max: z.ZodNumber;
|
|
230
|
+
at: z.ZodOptional<z.ZodString>;
|
|
186
231
|
}, z.core.$strict>;
|
|
187
232
|
where: z.ZodOptional<z.ZodObject<{
|
|
188
233
|
column: z.ZodString;
|
|
@@ -198,6 +243,14 @@ export declare const outboxProducerSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
198
243
|
table: z.ZodString;
|
|
199
244
|
column: z.ZodString;
|
|
200
245
|
}, z.core.$strict>;
|
|
246
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
247
|
+
feature: z.ZodString;
|
|
248
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
249
|
+
feature: z.ZodString;
|
|
250
|
+
setting: z.ZodObject<{
|
|
251
|
+
table: z.ZodString;
|
|
252
|
+
column: z.ZodString;
|
|
253
|
+
}, z.core.$strict>;
|
|
201
254
|
}, z.core.$strict>]>>;
|
|
202
255
|
optIn: z.ZodOptional<z.ZodLiteral<true>>;
|
|
203
256
|
hold: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -233,7 +286,7 @@ export declare const outboxProducerSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
233
286
|
"no-longer-needed": "no-longer-needed";
|
|
234
287
|
}>;
|
|
235
288
|
}, z.core.$strict>>>;
|
|
236
|
-
recipient: z.ZodOptional<z.ZodObject<{
|
|
289
|
+
recipient: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
237
290
|
setting: z.ZodUnion<readonly [z.ZodObject<{
|
|
238
291
|
table: z.ZodString;
|
|
239
292
|
column: z.ZodString;
|
|
@@ -241,8 +294,16 @@ export declare const outboxProducerSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
241
294
|
addOn: z.ZodString;
|
|
242
295
|
setting: z.ZodString;
|
|
243
296
|
}, z.core.$strict>]>;
|
|
244
|
-
}, z.core.$strict
|
|
297
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
298
|
+
column: z.ZodString;
|
|
299
|
+
name: z.ZodOptional<z.ZodString>;
|
|
300
|
+
language: z.ZodOptional<z.ZodString>;
|
|
301
|
+
}, z.core.$strict>]>>;
|
|
245
302
|
batchMinutes: z.ZodOptional<z.ZodNumber>;
|
|
303
|
+
holdSeconds: z.ZodOptional<z.ZodNumber>;
|
|
304
|
+
repeatBy: z.ZodOptional<z.ZodString>;
|
|
305
|
+
repeat: z.ZodOptional<z.ZodLiteral<true>>;
|
|
306
|
+
was: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
246
307
|
onSent: z.ZodOptional<z.ZodObject<{
|
|
247
308
|
table: z.ZodString;
|
|
248
309
|
via: z.ZodOptional<z.ZodString>;
|
|
@@ -266,6 +327,8 @@ export declare const outboxSchema: z.ZodObject<{
|
|
|
266
327
|
approvedBy: z.ZodOptional<z.ZodString>;
|
|
267
328
|
effectAt: z.ZodOptional<z.ZodString>;
|
|
268
329
|
effectError: z.ZodOptional<z.ZodString>;
|
|
330
|
+
repeatKey: z.ZodOptional<z.ZodString>;
|
|
331
|
+
was: z.ZodOptional<z.ZodString>;
|
|
269
332
|
}, z.core.$strict>;
|
|
270
333
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
271
334
|
recipient: z.ZodObject<{
|
|
@@ -273,7 +336,9 @@ export declare const outboxSchema: z.ZodObject<{
|
|
|
273
336
|
table: z.ZodString;
|
|
274
337
|
email: z.ZodString;
|
|
275
338
|
name: z.ZodOptional<z.ZodString>;
|
|
276
|
-
language: z.ZodOptional<z.ZodString
|
|
339
|
+
language: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
340
|
+
column: z.ZodString;
|
|
341
|
+
}, z.core.$strict>]>>;
|
|
277
342
|
optIn: z.ZodOptional<z.ZodString>;
|
|
278
343
|
fallback: z.ZodOptional<z.ZodObject<{
|
|
279
344
|
via: z.ZodString;
|
|
@@ -287,6 +352,7 @@ export declare const outboxSchema: z.ZodObject<{
|
|
|
287
352
|
enabled: z.ZodOptional<z.ZodString>;
|
|
288
353
|
name: z.ZodOptional<z.ZodString>;
|
|
289
354
|
phone: z.ZodOptional<z.ZodString>;
|
|
355
|
+
replyTo: z.ZodOptional<z.ZodString>;
|
|
290
356
|
}, z.core.$strict>>;
|
|
291
357
|
pages: z.ZodOptional<z.ZodObject<{
|
|
292
358
|
manage: z.ZodOptional<z.ZodString>;
|
|
@@ -311,6 +377,14 @@ export declare const outboxSchema: z.ZodObject<{
|
|
|
311
377
|
table: z.ZodString;
|
|
312
378
|
column: z.ZodString;
|
|
313
379
|
}, z.core.$strict>;
|
|
380
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
381
|
+
feature: z.ZodString;
|
|
382
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
383
|
+
feature: z.ZodString;
|
|
384
|
+
setting: z.ZodObject<{
|
|
385
|
+
table: z.ZodString;
|
|
386
|
+
column: z.ZodString;
|
|
387
|
+
}, z.core.$strict>;
|
|
314
388
|
}, z.core.$strict>]>>;
|
|
315
389
|
optIn: z.ZodOptional<z.ZodLiteral<true>>;
|
|
316
390
|
hold: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -346,7 +420,7 @@ export declare const outboxSchema: z.ZodObject<{
|
|
|
346
420
|
"no-longer-needed": "no-longer-needed";
|
|
347
421
|
}>;
|
|
348
422
|
}, z.core.$strict>>>;
|
|
349
|
-
recipient: z.ZodOptional<z.ZodObject<{
|
|
423
|
+
recipient: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
350
424
|
setting: z.ZodUnion<readonly [z.ZodObject<{
|
|
351
425
|
table: z.ZodString;
|
|
352
426
|
column: z.ZodString;
|
|
@@ -354,15 +428,23 @@ export declare const outboxSchema: z.ZodObject<{
|
|
|
354
428
|
addOn: z.ZodString;
|
|
355
429
|
setting: z.ZodString;
|
|
356
430
|
}, z.core.$strict>]>;
|
|
357
|
-
}, z.core.$strict
|
|
431
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
432
|
+
column: z.ZodString;
|
|
433
|
+
name: z.ZodOptional<z.ZodString>;
|
|
434
|
+
language: z.ZodOptional<z.ZodString>;
|
|
435
|
+
}, z.core.$strict>]>>;
|
|
358
436
|
batchMinutes: z.ZodOptional<z.ZodNumber>;
|
|
437
|
+
holdSeconds: z.ZodOptional<z.ZodNumber>;
|
|
438
|
+
repeatBy: z.ZodOptional<z.ZodString>;
|
|
439
|
+
repeat: z.ZodOptional<z.ZodLiteral<true>>;
|
|
440
|
+
was: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
359
441
|
onSent: z.ZodOptional<z.ZodObject<{
|
|
360
442
|
table: z.ZodString;
|
|
361
443
|
via: z.ZodOptional<z.ZodString>;
|
|
362
444
|
set: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodNull]>>;
|
|
363
445
|
}, z.core.$strict>>;
|
|
364
446
|
}, z.core.$strict>, z.ZodObject<{
|
|
365
|
-
onChange: z.ZodObject<{
|
|
447
|
+
onChange: z.ZodUnion<readonly [z.ZodObject<{
|
|
366
448
|
table: z.ZodString;
|
|
367
449
|
via: z.ZodOptional<z.ZodString>;
|
|
368
450
|
column: z.ZodString;
|
|
@@ -373,7 +455,18 @@ export declare const outboxSchema: z.ZodObject<{
|
|
|
373
455
|
in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
374
456
|
isNull: z.ZodOptional<z.ZodBoolean>;
|
|
375
457
|
}, z.core.$strict>>;
|
|
376
|
-
}, z.core.$strict
|
|
458
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
459
|
+
table: z.ZodString;
|
|
460
|
+
via: z.ZodOptional<z.ZodString>;
|
|
461
|
+
columns: z.ZodArray<z.ZodString>;
|
|
462
|
+
changed: z.ZodLiteral<true>;
|
|
463
|
+
where: z.ZodOptional<z.ZodObject<{
|
|
464
|
+
column: z.ZodString;
|
|
465
|
+
eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
466
|
+
in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
467
|
+
isNull: z.ZodOptional<z.ZodBoolean>;
|
|
468
|
+
}, z.core.$strict>>;
|
|
469
|
+
}, z.core.$strict>]>;
|
|
377
470
|
kind: z.ZodString;
|
|
378
471
|
link: z.ZodString;
|
|
379
472
|
gate: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"enabled">, z.ZodObject<{
|
|
@@ -381,6 +474,14 @@ export declare const outboxSchema: z.ZodObject<{
|
|
|
381
474
|
table: z.ZodString;
|
|
382
475
|
column: z.ZodString;
|
|
383
476
|
}, z.core.$strict>;
|
|
477
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
478
|
+
feature: z.ZodString;
|
|
479
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
480
|
+
feature: z.ZodString;
|
|
481
|
+
setting: z.ZodObject<{
|
|
482
|
+
table: z.ZodString;
|
|
483
|
+
column: z.ZodString;
|
|
484
|
+
}, z.core.$strict>;
|
|
384
485
|
}, z.core.$strict>]>>;
|
|
385
486
|
optIn: z.ZodOptional<z.ZodLiteral<true>>;
|
|
386
487
|
hold: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -416,7 +517,7 @@ export declare const outboxSchema: z.ZodObject<{
|
|
|
416
517
|
"no-longer-needed": "no-longer-needed";
|
|
417
518
|
}>;
|
|
418
519
|
}, z.core.$strict>>>;
|
|
419
|
-
recipient: z.ZodOptional<z.ZodObject<{
|
|
520
|
+
recipient: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
420
521
|
setting: z.ZodUnion<readonly [z.ZodObject<{
|
|
421
522
|
table: z.ZodString;
|
|
422
523
|
column: z.ZodString;
|
|
@@ -424,8 +525,16 @@ export declare const outboxSchema: z.ZodObject<{
|
|
|
424
525
|
addOn: z.ZodString;
|
|
425
526
|
setting: z.ZodString;
|
|
426
527
|
}, z.core.$strict>]>;
|
|
427
|
-
}, z.core.$strict
|
|
528
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
529
|
+
column: z.ZodString;
|
|
530
|
+
name: z.ZodOptional<z.ZodString>;
|
|
531
|
+
language: z.ZodOptional<z.ZodString>;
|
|
532
|
+
}, z.core.$strict>]>>;
|
|
428
533
|
batchMinutes: z.ZodOptional<z.ZodNumber>;
|
|
534
|
+
holdSeconds: z.ZodOptional<z.ZodNumber>;
|
|
535
|
+
repeatBy: z.ZodOptional<z.ZodString>;
|
|
536
|
+
repeat: z.ZodOptional<z.ZodLiteral<true>>;
|
|
537
|
+
was: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
429
538
|
onSent: z.ZodOptional<z.ZodObject<{
|
|
430
539
|
table: z.ZodString;
|
|
431
540
|
via: z.ZodOptional<z.ZodString>;
|
|
@@ -444,6 +553,7 @@ export declare const outboxSchema: z.ZodObject<{
|
|
|
444
553
|
column: z.ZodString;
|
|
445
554
|
}, z.core.$strict>>;
|
|
446
555
|
max: z.ZodNumber;
|
|
556
|
+
at: z.ZodOptional<z.ZodString>;
|
|
447
557
|
}, z.core.$strict>;
|
|
448
558
|
where: z.ZodOptional<z.ZodObject<{
|
|
449
559
|
column: z.ZodString;
|
|
@@ -459,6 +569,14 @@ export declare const outboxSchema: z.ZodObject<{
|
|
|
459
569
|
table: z.ZodString;
|
|
460
570
|
column: z.ZodString;
|
|
461
571
|
}, z.core.$strict>;
|
|
572
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
573
|
+
feature: z.ZodString;
|
|
574
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
575
|
+
feature: z.ZodString;
|
|
576
|
+
setting: z.ZodObject<{
|
|
577
|
+
table: z.ZodString;
|
|
578
|
+
column: z.ZodString;
|
|
579
|
+
}, z.core.$strict>;
|
|
462
580
|
}, z.core.$strict>]>>;
|
|
463
581
|
optIn: z.ZodOptional<z.ZodLiteral<true>>;
|
|
464
582
|
hold: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -494,7 +612,7 @@ export declare const outboxSchema: z.ZodObject<{
|
|
|
494
612
|
"no-longer-needed": "no-longer-needed";
|
|
495
613
|
}>;
|
|
496
614
|
}, z.core.$strict>>>;
|
|
497
|
-
recipient: z.ZodOptional<z.ZodObject<{
|
|
615
|
+
recipient: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
498
616
|
setting: z.ZodUnion<readonly [z.ZodObject<{
|
|
499
617
|
table: z.ZodString;
|
|
500
618
|
column: z.ZodString;
|
|
@@ -502,8 +620,16 @@ export declare const outboxSchema: z.ZodObject<{
|
|
|
502
620
|
addOn: z.ZodString;
|
|
503
621
|
setting: z.ZodString;
|
|
504
622
|
}, z.core.$strict>]>;
|
|
505
|
-
}, z.core.$strict
|
|
623
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
624
|
+
column: z.ZodString;
|
|
625
|
+
name: z.ZodOptional<z.ZodString>;
|
|
626
|
+
language: z.ZodOptional<z.ZodString>;
|
|
627
|
+
}, z.core.$strict>]>>;
|
|
506
628
|
batchMinutes: z.ZodOptional<z.ZodNumber>;
|
|
629
|
+
holdSeconds: z.ZodOptional<z.ZodNumber>;
|
|
630
|
+
repeatBy: z.ZodOptional<z.ZodString>;
|
|
631
|
+
repeat: z.ZodOptional<z.ZodLiteral<true>>;
|
|
632
|
+
was: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
507
633
|
onSent: z.ZodOptional<z.ZodObject<{
|
|
508
634
|
table: z.ZodString;
|
|
509
635
|
via: z.ZodOptional<z.ZodString>;
|
|
@@ -518,6 +644,7 @@ export declare const emailTemplateSchema: z.ZodObject<{
|
|
|
518
644
|
attach: z.ZodOptional<z.ZodObject<{
|
|
519
645
|
kind: z.ZodString;
|
|
520
646
|
link: z.ZodString;
|
|
647
|
+
optional: z.ZodOptional<z.ZodLiteral<true>>;
|
|
521
648
|
}, z.core.$strict>>;
|
|
522
649
|
vars: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
523
650
|
locales: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -533,17 +660,25 @@ export declare const emailTemplateSchema: z.ZodObject<{
|
|
|
533
660
|
}, z.core.$strict>>;
|
|
534
661
|
}, z.core.$strict>;
|
|
535
662
|
export type EmailTemplate = z.infer<typeof emailTemplateSchema>;
|
|
663
|
+
/** How long a `repeatKey` is: a SHA-256 digest in base64url. */
|
|
664
|
+
export declare const REPEAT_KEY_LENGTH = 43;
|
|
665
|
+
/** The fewest characters a bounded `was` column holds: the columns a message keeps, as they were. */
|
|
666
|
+
export declare const WAS_MIN_LENGTH = 1000;
|
|
667
|
+
/** The mark on a template's block that is sent only with the document the template carries (`attach.optional`). */
|
|
668
|
+
export declare const WITH_ATTACHMENT = "withAttachment";
|
|
536
669
|
/** What the outbox writes, and which rules each refuses: everything, but a check of the address a person types. */
|
|
537
670
|
export declare const OUTBOX_WRITTEN: {
|
|
538
|
-
readonly status: readonly ["copy", "default", "sequence", "format", "code", "rollup", "formula", "stamp", "options", "validation", "required", "requiredWhen", "notAfter", "notBefore"];
|
|
539
|
-
readonly sentAt: readonly ["copy", "default", "sequence", "format", "code", "rollup", "formula", "stamp", "options", "validation", "required", "requiredWhen", "notAfter", "notBefore"];
|
|
540
|
-
readonly error: readonly ["copy", "default", "sequence", "format", "code", "rollup", "formula", "stamp", "options", "validation", "required", "requiredWhen", "notAfter", "notBefore"];
|
|
541
|
-
readonly skipReason: readonly ["copy", "default", "sequence", "format", "code", "rollup", "formula", "stamp", "options", "validation", "required", "requiredWhen", "notAfter", "notBefore"];
|
|
542
|
-
readonly approvedBy: readonly ["copy", "default", "sequence", "format", "code", "rollup", "formula", "stamp", "options", "validation", "required", "requiredWhen", "notAfter", "notBefore"];
|
|
543
|
-
readonly effectAt: readonly ["copy", "default", "sequence", "format", "code", "rollup", "formula", "stamp", "options", "validation", "required", "requiredWhen", "notAfter", "notBefore"];
|
|
544
|
-
readonly effectError: readonly ["copy", "default", "sequence", "format", "code", "rollup", "formula", "stamp", "options", "validation", "required", "requiredWhen", "notAfter", "notBefore"];
|
|
545
|
-
readonly
|
|
546
|
-
readonly
|
|
671
|
+
readonly status: readonly ["copy", "default", "sequence", "format", "code", "rollup", "formula", "stamp", "perNight", "options", "validation", "required", "requiredWhen", "notAfter", "notBefore"];
|
|
672
|
+
readonly sentAt: readonly ["copy", "default", "sequence", "format", "code", "rollup", "formula", "stamp", "perNight", "options", "validation", "required", "requiredWhen", "notAfter", "notBefore"];
|
|
673
|
+
readonly error: readonly ["copy", "default", "sequence", "format", "code", "rollup", "formula", "stamp", "perNight", "options", "validation", "required", "requiredWhen", "notAfter", "notBefore"];
|
|
674
|
+
readonly skipReason: readonly ["copy", "default", "sequence", "format", "code", "rollup", "formula", "stamp", "perNight", "options", "validation", "required", "requiredWhen", "notAfter", "notBefore"];
|
|
675
|
+
readonly approvedBy: readonly ["copy", "default", "sequence", "format", "code", "rollup", "formula", "stamp", "perNight", "options", "validation", "required", "requiredWhen", "notAfter", "notBefore"];
|
|
676
|
+
readonly effectAt: readonly ["copy", "default", "sequence", "format", "code", "rollup", "formula", "stamp", "perNight", "options", "validation", "required", "requiredWhen", "notAfter", "notBefore"];
|
|
677
|
+
readonly effectError: readonly ["copy", "default", "sequence", "format", "code", "rollup", "formula", "stamp", "perNight", "options", "validation", "required", "requiredWhen", "notAfter", "notBefore"];
|
|
678
|
+
readonly repeatKey: readonly ["copy", "default", "sequence", "format", "code", "rollup", "formula", "stamp", "perNight", "options", "validation", "required", "requiredWhen", "notAfter", "notBefore"];
|
|
679
|
+
readonly was: readonly ["copy", "default", "sequence", "format", "code", "rollup", "formula", "stamp", "perNight", "options", "validation", "required", "requiredWhen", "notAfter", "notBefore"];
|
|
680
|
+
readonly to: readonly ["copy", "default", "sequence", "format", "code", "rollup", "formula", "stamp", "perNight", "options", "required", "requiredWhen"];
|
|
681
|
+
readonly language: readonly ["copy", "default", "sequence", "format", "code", "rollup", "formula", "stamp", "perNight", "options", "required", "requiredWhen"];
|
|
547
682
|
};
|
|
548
683
|
/**
|
|
549
684
|
* The columns of its own row one column's rules read where the read can
|
|
@@ -563,5 +698,85 @@ export declare function outboxIssues(m: {
|
|
|
563
698
|
outbox?: Outbox | undefined;
|
|
564
699
|
emailTemplates?: readonly EmailTemplate[] | undefined;
|
|
565
700
|
addOns?: AddOnNeeds | undefined;
|
|
566
|
-
}, index: TableIndex): ReferenceIssue[];
|
|
701
|
+
} & Parameters<typeof unlistedColumn>[0], index: TableIndex): ReferenceIssue[];
|
|
702
|
+
/**
|
|
703
|
+
* `email.rows`: the rows of a child table that link to the row an outbox link
|
|
704
|
+
* names, one line each (an order's tickets, with a QR code each). `from` is
|
|
705
|
+
* the documents' collection spelling: the link, the child table, the child's
|
|
706
|
+
* link back, its order, a filter and a bool that leaves a row out, and at
|
|
707
|
+
* most 50 rows. `joins` gathers up to two child lists of each row into one
|
|
708
|
+
* text (a dish's options). `row` is each line's text, reading `{{row.<column>}}`
|
|
709
|
+
* (`{{row.<link>.<column>}}` through one of the row's own links, and a join by
|
|
710
|
+
* its name); `image` is a QR code of a code column (`{{row.code.qr}}`) and
|
|
711
|
+
* nothing else. `empty` is said when there are no rows; without it the block
|
|
712
|
+
* is left out.
|
|
713
|
+
*/
|
|
714
|
+
export declare const emailRowsDataSchema: z.ZodObject<{
|
|
715
|
+
from: z.ZodObject<{
|
|
716
|
+
link: z.ZodString;
|
|
717
|
+
table: z.ZodString;
|
|
718
|
+
via: z.ZodString;
|
|
719
|
+
orderBy: z.ZodOptional<z.ZodString>;
|
|
720
|
+
where: z.ZodOptional<z.ZodObject<{
|
|
721
|
+
column: z.ZodString;
|
|
722
|
+
in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
723
|
+
}, z.core.$strict>>;
|
|
724
|
+
unless: z.ZodOptional<z.ZodString>;
|
|
725
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
726
|
+
}, z.core.$strict>;
|
|
727
|
+
joins: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
728
|
+
table: z.ZodString;
|
|
729
|
+
via: z.ZodString;
|
|
730
|
+
column: z.ZodString;
|
|
731
|
+
orderBy: z.ZodOptional<z.ZodString>;
|
|
732
|
+
separator: z.ZodOptional<z.ZodString>;
|
|
733
|
+
}, z.core.$strict>>>;
|
|
734
|
+
row: z.ZodObject<{
|
|
735
|
+
title: z.ZodOptional<z.ZodString>;
|
|
736
|
+
meta: z.ZodOptional<z.ZodString>;
|
|
737
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
738
|
+
note: z.ZodOptional<z.ZodString>;
|
|
739
|
+
image: z.ZodOptional<z.ZodString>;
|
|
740
|
+
}, z.core.$strict>;
|
|
741
|
+
empty: z.ZodOptional<z.ZodString>;
|
|
742
|
+
}, z.core.$strict>;
|
|
743
|
+
export type EmailRowsData = z.infer<typeof emailRowsDataSchema>;
|
|
744
|
+
/** The most characters a time of day kept as text takes: `09:30:00`. */
|
|
745
|
+
export declare const CLOCK_TEXT_MAX = 8;
|
|
746
|
+
/**
|
|
747
|
+
* Whether a text column keeps a time of day (`15:00`): one no longer than
|
|
748
|
+
* {@link CLOCK_TEXT_MAX} characters. Only such a column has a `time` form —
|
|
749
|
+
* the sender fills it from a value shaped like a clock, and a longer text
|
|
750
|
+
* column (a note, a name) never holds one.
|
|
751
|
+
*/
|
|
752
|
+
export declare function clockShaped(column: {
|
|
753
|
+
type: string;
|
|
754
|
+
maxLength?: number | undefined;
|
|
755
|
+
rules?: {
|
|
756
|
+
validation?: {
|
|
757
|
+
maxLength?: number | undefined;
|
|
758
|
+
} | undefined;
|
|
759
|
+
} | undefined;
|
|
760
|
+
}): boolean;
|
|
761
|
+
/** The form of a code in groups of four (`K7QX-M2PD`), as a person reads it out. */
|
|
762
|
+
export declare const GROUPED_FORM = "grouped";
|
|
763
|
+
/**
|
|
764
|
+
* A code in groups of four joined by `-` (`K7QXM2PD` → `K7QX-M2PD`), the way
|
|
765
|
+
* a person reads it out; separators already in it are dropped first. Empty
|
|
766
|
+
* stays empty.
|
|
767
|
+
*/
|
|
768
|
+
export declare function groupedCode(value: unknown): string;
|
|
769
|
+
/** Whether a column holds a code Adminium makes: a text column with a `code` rule. */
|
|
770
|
+
export declare function isCodeColumn(column: {
|
|
771
|
+
type: string;
|
|
772
|
+
rules?: {
|
|
773
|
+
code?: unknown;
|
|
774
|
+
} | undefined;
|
|
775
|
+
}): boolean;
|
|
776
|
+
/** The forms a row's column may be read in: its type's, a text column's `time` only when it keeps a time of day, and a code's groups. */
|
|
777
|
+
export declare function rowFormsOf(column: Parameters<typeof clockShaped>[0] & {
|
|
778
|
+
rules?: {
|
|
779
|
+
code?: unknown;
|
|
780
|
+
} | undefined;
|
|
781
|
+
}): readonly string[];
|
|
567
782
|
//# sourceMappingURL=outbox.d.ts.map
|
package/dist/outbox.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outbox.d.ts","sourceRoot":"","sources":["../src/outbox.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAQL,KAAK,cAAc,EAEnB,KAAK,UAAU,EAChB,MAAM,WAAW,CAAC;AAEnB,+DAA+D;AAC/D,eAAO,MAAM,eAAe,kDAAmD,CAAC;AAEhF,mEAAmE;AACnE,eAAO,MAAM,WAAW,SAAS,CAAC;AAElC,kGAAkG;AAClG,eAAO,MAAM,mBAAmB,uEAAwE,CAAC;
|
|
1
|
+
{"version":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