@adminiumjs/manifest 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/add-ons.d.ts +63 -0
- package/dist/add-ons.d.ts.map +1 -0
- package/dist/add-ons.js +100 -0
- package/dist/add-ons.js.map +1 -0
- package/dist/documents.d.ts +115 -0
- package/dist/documents.d.ts.map +1 -0
- package/dist/documents.js +171 -0
- package/dist/documents.js.map +1 -0
- package/dist/formula.d.ts +124 -0
- package/dist/formula.d.ts.map +1 -0
- package/dist/formula.js +428 -0
- package/dist/formula.js.map +1 -0
- package/dist/index.d.ts +10 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/dist/outbox.d.ts +354 -9
- package/dist/outbox.d.ts.map +1 -1
- package/dist/outbox.js +223 -9
- package/dist/outbox.js.map +1 -1
- package/dist/plan-model.d.ts +1 -1
- package/dist/plan-model.d.ts.map +1 -1
- package/dist/public-access.d.ts +48 -7
- package/dist/public-access.d.ts.map +1 -1
- package/dist/public-access.js +235 -28
- package/dist/public-access.js.map +1 -1
- package/dist/refs.d.ts +17 -0
- package/dist/refs.d.ts.map +1 -1
- package/dist/refs.js +12 -0
- package/dist/refs.js.map +1 -1
- package/dist/sample.d.ts +49 -1
- package/dist/sample.d.ts.map +1 -1
- package/dist/sample.js +39 -2
- package/dist/sample.js.map +1 -1
- package/dist/schema.d.ts +2501 -158
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +518 -26
- package/dist/schema.js.map +1 -1
- package/dist/shapes.d.ts +97 -0
- package/dist/shapes.d.ts.map +1 -0
- package/dist/shapes.js +190 -0
- package/dist/shapes.js.map +1 -0
- package/dist/states.d.ts +134 -0
- package/dist/states.d.ts.map +1 -0
- package/dist/states.js +244 -0
- package/dist/states.js.map +1 -0
- package/dist/validate.d.ts +14 -0
- package/dist/validate.d.ts.map +1 -1
- package/dist/validate.js +29 -2
- package/dist/validate.js.map +1 -1
- package/package.json +2 -2
package/dist/outbox.d.ts
CHANGED
|
@@ -14,14 +14,28 @@
|
|
|
14
14
|
*
|
|
15
15
|
* Templates are stored with the app as their owner. An operator who edits
|
|
16
16
|
* one keeps the edit across the app's updates.
|
|
17
|
+
*
|
|
18
|
+
* A producer may HOLD what it queues: the row is written `held`, with the
|
|
19
|
+
* moment it becomes due, and nothing is sent until someone approves it (a
|
|
20
|
+
* reminder about an unpaid invoice, whose wording the sender may edit).
|
|
21
|
+
* Messages of one `supersede` group give way to a later one that comes due,
|
|
22
|
+
* `dropWhen` skips waiting ones once they are no longer needed (the invoice
|
|
23
|
+
* was paid), and `onSent` changes a linked row once the message has gone
|
|
24
|
+
* (the third reminder pauses the project).
|
|
17
25
|
*/
|
|
18
26
|
import { z } from 'zod';
|
|
27
|
+
import type { AddOnNeeds } from './add-ons.js';
|
|
19
28
|
import { type ReferenceIssue, type TableIndex } from './refs.js';
|
|
20
29
|
/** The statuses an outbox table's status column must offer. */
|
|
21
30
|
export declare const OUTBOX_STATUSES: readonly ["queued", "sent", "failed", "skipped"];
|
|
22
|
-
|
|
31
|
+
/** The status a held message waits in, when any producer holds. */
|
|
32
|
+
export declare const OUTBOX_HELD = "held";
|
|
33
|
+
/** Why a waiting message was skipped. `overtaken` and `by-hand` are Adminium's and the desk's. */
|
|
34
|
+
export declare const OUTBOX_SKIP_REASONS: readonly ["overtaken", "paid", "void", "no-longer-needed", "by-hand"];
|
|
35
|
+
export declare const outboxProducerSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
23
36
|
onCreate: z.ZodObject<{
|
|
24
37
|
table: z.ZodString;
|
|
38
|
+
via: z.ZodOptional<z.ZodString>;
|
|
25
39
|
where: z.ZodOptional<z.ZodObject<{
|
|
26
40
|
column: z.ZodString;
|
|
27
41
|
eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
@@ -31,11 +45,65 @@ declare const producerSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
31
45
|
}, z.core.$strict>;
|
|
32
46
|
kind: z.ZodString;
|
|
33
47
|
link: z.ZodString;
|
|
34
|
-
gate: z.ZodOptional<z.ZodLiteral<"enabled"
|
|
48
|
+
gate: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"enabled">, z.ZodObject<{
|
|
49
|
+
setting: z.ZodObject<{
|
|
50
|
+
table: z.ZodString;
|
|
51
|
+
column: z.ZodString;
|
|
52
|
+
}, z.core.$strict>;
|
|
53
|
+
}, z.core.$strict>]>>;
|
|
35
54
|
optIn: z.ZodOptional<z.ZodLiteral<true>>;
|
|
55
|
+
hold: z.ZodOptional<z.ZodLiteral<true>>;
|
|
56
|
+
due: z.ZodOptional<z.ZodObject<{
|
|
57
|
+
date: z.ZodString;
|
|
58
|
+
days: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
59
|
+
byColumn: z.ZodString;
|
|
60
|
+
values: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
61
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
62
|
+
setting: z.ZodUnion<readonly [z.ZodObject<{
|
|
63
|
+
table: z.ZodString;
|
|
64
|
+
column: z.ZodString;
|
|
65
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
66
|
+
addOn: z.ZodString;
|
|
67
|
+
setting: z.ZodString;
|
|
68
|
+
}, z.core.$strict>]>;
|
|
69
|
+
byColumn: z.ZodOptional<z.ZodString>;
|
|
70
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
71
|
+
}, z.core.$strict>]>;
|
|
72
|
+
at: z.ZodOptional<z.ZodString>;
|
|
73
|
+
}, z.core.$strict>>;
|
|
74
|
+
supersede: z.ZodOptional<z.ZodString>;
|
|
75
|
+
dropWhen: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
76
|
+
column: z.ZodString;
|
|
77
|
+
eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
78
|
+
in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
79
|
+
isNull: z.ZodOptional<z.ZodBoolean>;
|
|
80
|
+
lte: z.ZodOptional<z.ZodNumber>;
|
|
81
|
+
gte: z.ZodOptional<z.ZodNumber>;
|
|
82
|
+
reason: z.ZodEnum<{
|
|
83
|
+
void: "void";
|
|
84
|
+
paid: "paid";
|
|
85
|
+
"no-longer-needed": "no-longer-needed";
|
|
86
|
+
}>;
|
|
87
|
+
}, z.core.$strict>>>;
|
|
88
|
+
recipient: z.ZodOptional<z.ZodObject<{
|
|
89
|
+
setting: z.ZodUnion<readonly [z.ZodObject<{
|
|
90
|
+
table: z.ZodString;
|
|
91
|
+
column: z.ZodString;
|
|
92
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
93
|
+
addOn: z.ZodString;
|
|
94
|
+
setting: z.ZodString;
|
|
95
|
+
}, z.core.$strict>]>;
|
|
96
|
+
}, z.core.$strict>>;
|
|
97
|
+
batchMinutes: z.ZodOptional<z.ZodNumber>;
|
|
98
|
+
onSent: z.ZodOptional<z.ZodObject<{
|
|
99
|
+
table: z.ZodString;
|
|
100
|
+
via: z.ZodOptional<z.ZodString>;
|
|
101
|
+
set: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodNull]>>;
|
|
102
|
+
}, z.core.$strict>>;
|
|
36
103
|
}, z.core.$strict>, z.ZodObject<{
|
|
37
104
|
onChange: z.ZodObject<{
|
|
38
105
|
table: z.ZodString;
|
|
106
|
+
via: z.ZodOptional<z.ZodString>;
|
|
39
107
|
column: z.ZodString;
|
|
40
108
|
to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>;
|
|
41
109
|
where: z.ZodOptional<z.ZodObject<{
|
|
@@ -47,8 +115,61 @@ declare const producerSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
47
115
|
}, z.core.$strict>;
|
|
48
116
|
kind: z.ZodString;
|
|
49
117
|
link: z.ZodString;
|
|
50
|
-
gate: z.ZodOptional<z.ZodLiteral<"enabled"
|
|
118
|
+
gate: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"enabled">, z.ZodObject<{
|
|
119
|
+
setting: z.ZodObject<{
|
|
120
|
+
table: z.ZodString;
|
|
121
|
+
column: z.ZodString;
|
|
122
|
+
}, z.core.$strict>;
|
|
123
|
+
}, z.core.$strict>]>>;
|
|
51
124
|
optIn: z.ZodOptional<z.ZodLiteral<true>>;
|
|
125
|
+
hold: z.ZodOptional<z.ZodLiteral<true>>;
|
|
126
|
+
due: z.ZodOptional<z.ZodObject<{
|
|
127
|
+
date: z.ZodString;
|
|
128
|
+
days: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
129
|
+
byColumn: z.ZodString;
|
|
130
|
+
values: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
131
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
132
|
+
setting: z.ZodUnion<readonly [z.ZodObject<{
|
|
133
|
+
table: z.ZodString;
|
|
134
|
+
column: z.ZodString;
|
|
135
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
136
|
+
addOn: z.ZodString;
|
|
137
|
+
setting: z.ZodString;
|
|
138
|
+
}, z.core.$strict>]>;
|
|
139
|
+
byColumn: z.ZodOptional<z.ZodString>;
|
|
140
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
141
|
+
}, z.core.$strict>]>;
|
|
142
|
+
at: z.ZodOptional<z.ZodString>;
|
|
143
|
+
}, z.core.$strict>>;
|
|
144
|
+
supersede: z.ZodOptional<z.ZodString>;
|
|
145
|
+
dropWhen: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
146
|
+
column: z.ZodString;
|
|
147
|
+
eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
148
|
+
in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
149
|
+
isNull: z.ZodOptional<z.ZodBoolean>;
|
|
150
|
+
lte: z.ZodOptional<z.ZodNumber>;
|
|
151
|
+
gte: z.ZodOptional<z.ZodNumber>;
|
|
152
|
+
reason: z.ZodEnum<{
|
|
153
|
+
void: "void";
|
|
154
|
+
paid: "paid";
|
|
155
|
+
"no-longer-needed": "no-longer-needed";
|
|
156
|
+
}>;
|
|
157
|
+
}, z.core.$strict>>>;
|
|
158
|
+
recipient: z.ZodOptional<z.ZodObject<{
|
|
159
|
+
setting: z.ZodUnion<readonly [z.ZodObject<{
|
|
160
|
+
table: z.ZodString;
|
|
161
|
+
column: z.ZodString;
|
|
162
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
163
|
+
addOn: z.ZodString;
|
|
164
|
+
setting: z.ZodString;
|
|
165
|
+
}, z.core.$strict>]>;
|
|
166
|
+
}, z.core.$strict>>;
|
|
167
|
+
batchMinutes: z.ZodOptional<z.ZodNumber>;
|
|
168
|
+
onSent: z.ZodOptional<z.ZodObject<{
|
|
169
|
+
table: z.ZodString;
|
|
170
|
+
via: z.ZodOptional<z.ZodString>;
|
|
171
|
+
set: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodNull]>>;
|
|
172
|
+
}, z.core.$strict>>;
|
|
52
173
|
}, z.core.$strict>, z.ZodObject<{
|
|
53
174
|
before: z.ZodObject<{
|
|
54
175
|
table: z.ZodString;
|
|
@@ -72,10 +193,63 @@ declare const producerSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
72
193
|
}, z.core.$strict>;
|
|
73
194
|
kind: z.ZodString;
|
|
74
195
|
link: z.ZodString;
|
|
75
|
-
gate: z.ZodOptional<z.ZodLiteral<"enabled"
|
|
196
|
+
gate: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"enabled">, z.ZodObject<{
|
|
197
|
+
setting: z.ZodObject<{
|
|
198
|
+
table: z.ZodString;
|
|
199
|
+
column: z.ZodString;
|
|
200
|
+
}, z.core.$strict>;
|
|
201
|
+
}, z.core.$strict>]>>;
|
|
76
202
|
optIn: z.ZodOptional<z.ZodLiteral<true>>;
|
|
203
|
+
hold: z.ZodOptional<z.ZodLiteral<true>>;
|
|
204
|
+
due: z.ZodOptional<z.ZodObject<{
|
|
205
|
+
date: z.ZodString;
|
|
206
|
+
days: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
207
|
+
byColumn: z.ZodString;
|
|
208
|
+
values: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
209
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
210
|
+
setting: z.ZodUnion<readonly [z.ZodObject<{
|
|
211
|
+
table: z.ZodString;
|
|
212
|
+
column: z.ZodString;
|
|
213
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
214
|
+
addOn: z.ZodString;
|
|
215
|
+
setting: z.ZodString;
|
|
216
|
+
}, z.core.$strict>]>;
|
|
217
|
+
byColumn: z.ZodOptional<z.ZodString>;
|
|
218
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
219
|
+
}, z.core.$strict>]>;
|
|
220
|
+
at: z.ZodOptional<z.ZodString>;
|
|
221
|
+
}, z.core.$strict>>;
|
|
222
|
+
supersede: z.ZodOptional<z.ZodString>;
|
|
223
|
+
dropWhen: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
224
|
+
column: z.ZodString;
|
|
225
|
+
eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
226
|
+
in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
227
|
+
isNull: z.ZodOptional<z.ZodBoolean>;
|
|
228
|
+
lte: z.ZodOptional<z.ZodNumber>;
|
|
229
|
+
gte: z.ZodOptional<z.ZodNumber>;
|
|
230
|
+
reason: z.ZodEnum<{
|
|
231
|
+
void: "void";
|
|
232
|
+
paid: "paid";
|
|
233
|
+
"no-longer-needed": "no-longer-needed";
|
|
234
|
+
}>;
|
|
235
|
+
}, z.core.$strict>>>;
|
|
236
|
+
recipient: z.ZodOptional<z.ZodObject<{
|
|
237
|
+
setting: z.ZodUnion<readonly [z.ZodObject<{
|
|
238
|
+
table: z.ZodString;
|
|
239
|
+
column: z.ZodString;
|
|
240
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
241
|
+
addOn: z.ZodString;
|
|
242
|
+
setting: z.ZodString;
|
|
243
|
+
}, z.core.$strict>]>;
|
|
244
|
+
}, z.core.$strict>>;
|
|
245
|
+
batchMinutes: z.ZodOptional<z.ZodNumber>;
|
|
246
|
+
onSent: z.ZodOptional<z.ZodObject<{
|
|
247
|
+
table: z.ZodString;
|
|
248
|
+
via: z.ZodOptional<z.ZodString>;
|
|
249
|
+
set: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodNull]>>;
|
|
250
|
+
}, z.core.$strict>>;
|
|
77
251
|
}, z.core.$strict>]>;
|
|
78
|
-
export type OutboxProducer = z.infer<typeof
|
|
252
|
+
export type OutboxProducer = z.infer<typeof outboxProducerSchema>;
|
|
79
253
|
export declare const outboxSchema: z.ZodObject<{
|
|
80
254
|
table: z.ZodString;
|
|
81
255
|
columns: z.ZodObject<{
|
|
@@ -86,6 +260,12 @@ export declare const outboxSchema: z.ZodObject<{
|
|
|
86
260
|
due: z.ZodOptional<z.ZodString>;
|
|
87
261
|
sentAt: z.ZodOptional<z.ZodString>;
|
|
88
262
|
error: z.ZodOptional<z.ZodString>;
|
|
263
|
+
skipReason: z.ZodOptional<z.ZodString>;
|
|
264
|
+
subjectOverride: z.ZodOptional<z.ZodString>;
|
|
265
|
+
bodyOverride: z.ZodOptional<z.ZodString>;
|
|
266
|
+
approvedBy: z.ZodOptional<z.ZodString>;
|
|
267
|
+
effectAt: z.ZodOptional<z.ZodString>;
|
|
268
|
+
effectError: z.ZodOptional<z.ZodString>;
|
|
89
269
|
}, z.core.$strict>;
|
|
90
270
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
91
271
|
recipient: z.ZodObject<{
|
|
@@ -116,6 +296,7 @@ export declare const outboxSchema: z.ZodObject<{
|
|
|
116
296
|
producers: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
117
297
|
onCreate: z.ZodObject<{
|
|
118
298
|
table: z.ZodString;
|
|
299
|
+
via: z.ZodOptional<z.ZodString>;
|
|
119
300
|
where: z.ZodOptional<z.ZodObject<{
|
|
120
301
|
column: z.ZodString;
|
|
121
302
|
eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
@@ -125,11 +306,65 @@ export declare const outboxSchema: z.ZodObject<{
|
|
|
125
306
|
}, z.core.$strict>;
|
|
126
307
|
kind: z.ZodString;
|
|
127
308
|
link: z.ZodString;
|
|
128
|
-
gate: z.ZodOptional<z.ZodLiteral<"enabled"
|
|
309
|
+
gate: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"enabled">, z.ZodObject<{
|
|
310
|
+
setting: z.ZodObject<{
|
|
311
|
+
table: z.ZodString;
|
|
312
|
+
column: z.ZodString;
|
|
313
|
+
}, z.core.$strict>;
|
|
314
|
+
}, z.core.$strict>]>>;
|
|
129
315
|
optIn: z.ZodOptional<z.ZodLiteral<true>>;
|
|
316
|
+
hold: z.ZodOptional<z.ZodLiteral<true>>;
|
|
317
|
+
due: z.ZodOptional<z.ZodObject<{
|
|
318
|
+
date: z.ZodString;
|
|
319
|
+
days: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
320
|
+
byColumn: z.ZodString;
|
|
321
|
+
values: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
322
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
323
|
+
setting: z.ZodUnion<readonly [z.ZodObject<{
|
|
324
|
+
table: z.ZodString;
|
|
325
|
+
column: z.ZodString;
|
|
326
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
327
|
+
addOn: z.ZodString;
|
|
328
|
+
setting: z.ZodString;
|
|
329
|
+
}, z.core.$strict>]>;
|
|
330
|
+
byColumn: z.ZodOptional<z.ZodString>;
|
|
331
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
332
|
+
}, z.core.$strict>]>;
|
|
333
|
+
at: z.ZodOptional<z.ZodString>;
|
|
334
|
+
}, z.core.$strict>>;
|
|
335
|
+
supersede: z.ZodOptional<z.ZodString>;
|
|
336
|
+
dropWhen: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
337
|
+
column: z.ZodString;
|
|
338
|
+
eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
339
|
+
in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
340
|
+
isNull: z.ZodOptional<z.ZodBoolean>;
|
|
341
|
+
lte: z.ZodOptional<z.ZodNumber>;
|
|
342
|
+
gte: z.ZodOptional<z.ZodNumber>;
|
|
343
|
+
reason: z.ZodEnum<{
|
|
344
|
+
void: "void";
|
|
345
|
+
paid: "paid";
|
|
346
|
+
"no-longer-needed": "no-longer-needed";
|
|
347
|
+
}>;
|
|
348
|
+
}, z.core.$strict>>>;
|
|
349
|
+
recipient: z.ZodOptional<z.ZodObject<{
|
|
350
|
+
setting: z.ZodUnion<readonly [z.ZodObject<{
|
|
351
|
+
table: z.ZodString;
|
|
352
|
+
column: z.ZodString;
|
|
353
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
354
|
+
addOn: z.ZodString;
|
|
355
|
+
setting: z.ZodString;
|
|
356
|
+
}, z.core.$strict>]>;
|
|
357
|
+
}, z.core.$strict>>;
|
|
358
|
+
batchMinutes: z.ZodOptional<z.ZodNumber>;
|
|
359
|
+
onSent: z.ZodOptional<z.ZodObject<{
|
|
360
|
+
table: z.ZodString;
|
|
361
|
+
via: z.ZodOptional<z.ZodString>;
|
|
362
|
+
set: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodNull]>>;
|
|
363
|
+
}, z.core.$strict>>;
|
|
130
364
|
}, z.core.$strict>, z.ZodObject<{
|
|
131
365
|
onChange: z.ZodObject<{
|
|
132
366
|
table: z.ZodString;
|
|
367
|
+
via: z.ZodOptional<z.ZodString>;
|
|
133
368
|
column: z.ZodString;
|
|
134
369
|
to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>;
|
|
135
370
|
where: z.ZodOptional<z.ZodObject<{
|
|
@@ -141,8 +376,61 @@ export declare const outboxSchema: z.ZodObject<{
|
|
|
141
376
|
}, z.core.$strict>;
|
|
142
377
|
kind: z.ZodString;
|
|
143
378
|
link: z.ZodString;
|
|
144
|
-
gate: z.ZodOptional<z.ZodLiteral<"enabled"
|
|
379
|
+
gate: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"enabled">, z.ZodObject<{
|
|
380
|
+
setting: z.ZodObject<{
|
|
381
|
+
table: z.ZodString;
|
|
382
|
+
column: z.ZodString;
|
|
383
|
+
}, z.core.$strict>;
|
|
384
|
+
}, z.core.$strict>]>>;
|
|
145
385
|
optIn: z.ZodOptional<z.ZodLiteral<true>>;
|
|
386
|
+
hold: z.ZodOptional<z.ZodLiteral<true>>;
|
|
387
|
+
due: z.ZodOptional<z.ZodObject<{
|
|
388
|
+
date: z.ZodString;
|
|
389
|
+
days: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
390
|
+
byColumn: z.ZodString;
|
|
391
|
+
values: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
392
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
393
|
+
setting: z.ZodUnion<readonly [z.ZodObject<{
|
|
394
|
+
table: z.ZodString;
|
|
395
|
+
column: z.ZodString;
|
|
396
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
397
|
+
addOn: z.ZodString;
|
|
398
|
+
setting: z.ZodString;
|
|
399
|
+
}, z.core.$strict>]>;
|
|
400
|
+
byColumn: z.ZodOptional<z.ZodString>;
|
|
401
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
402
|
+
}, z.core.$strict>]>;
|
|
403
|
+
at: z.ZodOptional<z.ZodString>;
|
|
404
|
+
}, z.core.$strict>>;
|
|
405
|
+
supersede: z.ZodOptional<z.ZodString>;
|
|
406
|
+
dropWhen: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
407
|
+
column: z.ZodString;
|
|
408
|
+
eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
409
|
+
in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
410
|
+
isNull: z.ZodOptional<z.ZodBoolean>;
|
|
411
|
+
lte: z.ZodOptional<z.ZodNumber>;
|
|
412
|
+
gte: z.ZodOptional<z.ZodNumber>;
|
|
413
|
+
reason: z.ZodEnum<{
|
|
414
|
+
void: "void";
|
|
415
|
+
paid: "paid";
|
|
416
|
+
"no-longer-needed": "no-longer-needed";
|
|
417
|
+
}>;
|
|
418
|
+
}, z.core.$strict>>>;
|
|
419
|
+
recipient: z.ZodOptional<z.ZodObject<{
|
|
420
|
+
setting: z.ZodUnion<readonly [z.ZodObject<{
|
|
421
|
+
table: z.ZodString;
|
|
422
|
+
column: z.ZodString;
|
|
423
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
424
|
+
addOn: z.ZodString;
|
|
425
|
+
setting: z.ZodString;
|
|
426
|
+
}, z.core.$strict>]>;
|
|
427
|
+
}, z.core.$strict>>;
|
|
428
|
+
batchMinutes: z.ZodOptional<z.ZodNumber>;
|
|
429
|
+
onSent: z.ZodOptional<z.ZodObject<{
|
|
430
|
+
table: z.ZodString;
|
|
431
|
+
via: z.ZodOptional<z.ZodString>;
|
|
432
|
+
set: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodNull]>>;
|
|
433
|
+
}, z.core.$strict>>;
|
|
146
434
|
}, z.core.$strict>, z.ZodObject<{
|
|
147
435
|
before: z.ZodObject<{
|
|
148
436
|
table: z.ZodString;
|
|
@@ -166,14 +454,71 @@ export declare const outboxSchema: z.ZodObject<{
|
|
|
166
454
|
}, z.core.$strict>;
|
|
167
455
|
kind: z.ZodString;
|
|
168
456
|
link: z.ZodString;
|
|
169
|
-
gate: z.ZodOptional<z.ZodLiteral<"enabled"
|
|
457
|
+
gate: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"enabled">, z.ZodObject<{
|
|
458
|
+
setting: z.ZodObject<{
|
|
459
|
+
table: z.ZodString;
|
|
460
|
+
column: z.ZodString;
|
|
461
|
+
}, z.core.$strict>;
|
|
462
|
+
}, z.core.$strict>]>>;
|
|
170
463
|
optIn: z.ZodOptional<z.ZodLiteral<true>>;
|
|
464
|
+
hold: z.ZodOptional<z.ZodLiteral<true>>;
|
|
465
|
+
due: z.ZodOptional<z.ZodObject<{
|
|
466
|
+
date: z.ZodString;
|
|
467
|
+
days: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
468
|
+
byColumn: z.ZodString;
|
|
469
|
+
values: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
470
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
471
|
+
setting: z.ZodUnion<readonly [z.ZodObject<{
|
|
472
|
+
table: z.ZodString;
|
|
473
|
+
column: z.ZodString;
|
|
474
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
475
|
+
addOn: z.ZodString;
|
|
476
|
+
setting: z.ZodString;
|
|
477
|
+
}, z.core.$strict>]>;
|
|
478
|
+
byColumn: z.ZodOptional<z.ZodString>;
|
|
479
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
480
|
+
}, z.core.$strict>]>;
|
|
481
|
+
at: z.ZodOptional<z.ZodString>;
|
|
482
|
+
}, z.core.$strict>>;
|
|
483
|
+
supersede: z.ZodOptional<z.ZodString>;
|
|
484
|
+
dropWhen: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
485
|
+
column: z.ZodString;
|
|
486
|
+
eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
487
|
+
in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
488
|
+
isNull: z.ZodOptional<z.ZodBoolean>;
|
|
489
|
+
lte: z.ZodOptional<z.ZodNumber>;
|
|
490
|
+
gte: z.ZodOptional<z.ZodNumber>;
|
|
491
|
+
reason: z.ZodEnum<{
|
|
492
|
+
void: "void";
|
|
493
|
+
paid: "paid";
|
|
494
|
+
"no-longer-needed": "no-longer-needed";
|
|
495
|
+
}>;
|
|
496
|
+
}, z.core.$strict>>>;
|
|
497
|
+
recipient: z.ZodOptional<z.ZodObject<{
|
|
498
|
+
setting: z.ZodUnion<readonly [z.ZodObject<{
|
|
499
|
+
table: z.ZodString;
|
|
500
|
+
column: z.ZodString;
|
|
501
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
502
|
+
addOn: z.ZodString;
|
|
503
|
+
setting: z.ZodString;
|
|
504
|
+
}, z.core.$strict>]>;
|
|
505
|
+
}, z.core.$strict>>;
|
|
506
|
+
batchMinutes: z.ZodOptional<z.ZodNumber>;
|
|
507
|
+
onSent: z.ZodOptional<z.ZodObject<{
|
|
508
|
+
table: z.ZodString;
|
|
509
|
+
via: z.ZodOptional<z.ZodString>;
|
|
510
|
+
set: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodNull]>>;
|
|
511
|
+
}, z.core.$strict>>;
|
|
171
512
|
}, z.core.$strict>]>>>;
|
|
172
513
|
}, z.core.$strict>;
|
|
173
514
|
export type Outbox = z.infer<typeof outboxSchema>;
|
|
174
515
|
export declare const emailTemplateSchema: z.ZodObject<{
|
|
175
516
|
key: z.ZodString;
|
|
176
517
|
name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
|
|
518
|
+
attach: z.ZodOptional<z.ZodObject<{
|
|
519
|
+
kind: z.ZodString;
|
|
520
|
+
link: z.ZodString;
|
|
521
|
+
}, z.core.$strict>>;
|
|
177
522
|
vars: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
178
523
|
locales: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
179
524
|
subject: z.ZodString;
|
|
@@ -193,6 +538,6 @@ export declare function outboxIssues(m: {
|
|
|
193
538
|
key: string;
|
|
194
539
|
outbox?: Outbox | undefined;
|
|
195
540
|
emailTemplates?: readonly EmailTemplate[] | undefined;
|
|
541
|
+
addOns?: AddOnNeeds | undefined;
|
|
196
542
|
}, index: TableIndex): ReferenceIssue[];
|
|
197
|
-
export {};
|
|
198
543
|
//# 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
|
|
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;AAC/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;AA4FzG,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA8C/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAuBlE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAuDd,CAAC;AACZ,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AA0ClD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;kBAmBrB,CAAC;AACZ,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,oGAAoG;AACpG,wBAAgB,YAAY,CAC1B,CAAC,EAAE;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,cAAc,CAAC,EAAE,SAAS,aAAa,EAAE,GAAG,SAAS,CAAC;IACtD,MAAM,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;CACjC,EACD,KAAK,EAAE,UAAU,GAChB,cAAc,EAAE,CA0OlB"}
|