@hexclave/shared 1.0.22 → 1.0.24
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/ai/unified-prompts/reminders.js +2 -1
- package/dist/ai/unified-prompts/reminders.js.map +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +15 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.d.ts +1 -46
- package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js +1 -62
- package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js.map +1 -1
- package/dist/config/schema.d.ts +80 -80
- package/dist/esm/ai/unified-prompts/reminders.js +2 -1
- package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +15 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.d.ts +1 -46
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js +1 -62
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js.map +1 -1
- package/dist/esm/config/schema.d.ts +80 -80
- package/dist/esm/interface/admin-interface.js +1 -1
- package/dist/esm/interface/admin-metrics.d.ts +13 -13
- package/dist/esm/interface/client-interface.js +1 -1
- package/dist/esm/interface/conversations.d.ts +35 -35
- package/dist/esm/interface/crud/current-user.d.ts +10 -10
- package/dist/esm/interface/crud/email-outbox.d.ts +116 -116
- package/dist/esm/interface/crud/invoices.d.ts +2 -2
- package/dist/esm/interface/crud/products.d.ts +15 -15
- package/dist/esm/interface/crud/products.d.ts.map +1 -1
- package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
- package/dist/esm/interface/crud/projects.d.ts +36 -36
- package/dist/esm/interface/crud/team-member-profiles.d.ts +36 -36
- package/dist/esm/interface/crud/transactions.d.ts +21 -21
- package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
- package/dist/esm/interface/crud/users.d.ts +18 -18
- package/dist/esm/interface/server-interface.js +1 -1
- package/dist/esm/interface/webhooks.d.ts +2 -2
- package/dist/esm/known-errors.d.ts +5 -5
- package/dist/esm/schema-fields.d.ts +5 -5
- package/dist/esm/sessions.d.ts +7 -7
- package/dist/esm/utils/env.d.ts +2 -1
- package/dist/esm/utils/env.d.ts.map +1 -1
- package/dist/esm/utils/env.js +29 -17
- package/dist/esm/utils/env.js.map +1 -1
- package/dist/esm/utils/env.test.d.ts +1 -0
- package/dist/esm/utils/env.test.js +49 -0
- package/dist/esm/utils/env.test.js.map +1 -0
- package/dist/esm/utils/errors.d.ts.map +1 -1
- package/dist/esm/utils/errors.js +4 -1
- package/dist/esm/utils/errors.js.map +1 -1
- package/dist/interface/admin-interface.js +1 -1
- package/dist/interface/admin-metrics.d.ts +13 -13
- package/dist/interface/client-interface.js +1 -1
- package/dist/interface/conversations.d.ts +35 -35
- package/dist/interface/crud/current-user.d.ts +10 -10
- package/dist/interface/crud/email-outbox.d.ts +116 -116
- package/dist/interface/crud/invoices.d.ts +2 -2
- package/dist/interface/crud/products.d.ts +15 -15
- package/dist/interface/crud/products.d.ts.map +1 -1
- package/dist/interface/crud/project-api-keys.d.ts +2 -2
- package/dist/interface/crud/projects.d.ts +36 -36
- package/dist/interface/crud/team-member-profiles.d.ts +36 -36
- package/dist/interface/crud/transactions.d.ts +21 -21
- package/dist/interface/crud/transactions.d.ts.map +1 -1
- package/dist/interface/crud/users.d.ts +18 -18
- package/dist/interface/server-interface.js +1 -1
- package/dist/interface/webhooks.d.ts +2 -2
- package/dist/known-errors.d.ts +5 -5
- package/dist/schema-fields.d.ts +5 -5
- package/dist/sessions.d.ts +7 -7
- package/dist/utils/env.d.ts +2 -1
- package/dist/utils/env.d.ts.map +1 -1
- package/dist/utils/env.js +29 -16
- package/dist/utils/env.js.map +1 -1
- package/dist/utils/env.test.d.ts +1 -0
- package/dist/utils/env.test.js +49 -0
- package/dist/utils/env.test.js.map +1 -0
- package/dist/utils/errors.d.ts.map +1 -1
- package/dist/utils/errors.js +4 -1
- package/dist/utils/errors.js.map +1 -1
- package/package.json +1 -1
- package/src/ai/unified-prompts/reminders.ts +1 -0
- package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +15 -0
- package/src/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.ts +1 -62
- package/src/utils/env.test.tsx +58 -0
- package/src/utils/env.tsx +36 -20
- package/src/utils/errors.tsx +6 -1
|
@@ -3,18 +3,18 @@ import * as yup$1 from "yup";
|
|
|
3
3
|
|
|
4
4
|
//#region src/interface/crud/email-outbox.d.ts
|
|
5
5
|
declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
6
|
-
status: "paused";
|
|
7
6
|
id: string;
|
|
7
|
+
status: "paused";
|
|
8
8
|
created_at_millis: number;
|
|
9
9
|
updated_at_millis: number;
|
|
10
10
|
tsx_source: string;
|
|
11
11
|
theme_id: string | null;
|
|
12
12
|
to: {
|
|
13
|
-
user_id: string;
|
|
14
13
|
type: "user-primary-email";
|
|
15
|
-
} | {
|
|
16
14
|
user_id: string;
|
|
15
|
+
} | {
|
|
17
16
|
type: "user-custom-emails";
|
|
17
|
+
user_id: string;
|
|
18
18
|
emails: string[];
|
|
19
19
|
} | {
|
|
20
20
|
type: "custom-emails";
|
|
@@ -41,18 +41,18 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
41
41
|
has_rendered: boolean;
|
|
42
42
|
has_delivered: boolean;
|
|
43
43
|
} | {
|
|
44
|
-
status: "preparing";
|
|
45
44
|
id: string;
|
|
45
|
+
status: "preparing";
|
|
46
46
|
created_at_millis: number;
|
|
47
47
|
updated_at_millis: number;
|
|
48
48
|
tsx_source: string;
|
|
49
49
|
theme_id: string | null;
|
|
50
50
|
to: {
|
|
51
|
-
user_id: string;
|
|
52
51
|
type: "user-primary-email";
|
|
53
|
-
} | {
|
|
54
52
|
user_id: string;
|
|
53
|
+
} | {
|
|
55
54
|
type: "user-custom-emails";
|
|
55
|
+
user_id: string;
|
|
56
56
|
emails: string[];
|
|
57
57
|
} | {
|
|
58
58
|
type: "custom-emails";
|
|
@@ -79,18 +79,18 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
79
79
|
has_rendered: boolean;
|
|
80
80
|
has_delivered: boolean;
|
|
81
81
|
} | {
|
|
82
|
-
status: "rendering";
|
|
83
82
|
id: string;
|
|
83
|
+
status: "rendering";
|
|
84
84
|
created_at_millis: number;
|
|
85
85
|
updated_at_millis: number;
|
|
86
86
|
tsx_source: string;
|
|
87
87
|
theme_id: string | null;
|
|
88
88
|
to: {
|
|
89
|
-
user_id: string;
|
|
90
89
|
type: "user-primary-email";
|
|
91
|
-
} | {
|
|
92
90
|
user_id: string;
|
|
91
|
+
} | {
|
|
93
92
|
type: "user-custom-emails";
|
|
93
|
+
user_id: string;
|
|
94
94
|
emails: string[];
|
|
95
95
|
} | {
|
|
96
96
|
type: "custom-emails";
|
|
@@ -118,18 +118,18 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
118
118
|
has_delivered: boolean;
|
|
119
119
|
started_rendering_at_millis: number;
|
|
120
120
|
} | {
|
|
121
|
-
status: "render-error";
|
|
122
121
|
id: string;
|
|
122
|
+
status: "render-error";
|
|
123
123
|
created_at_millis: number;
|
|
124
124
|
updated_at_millis: number;
|
|
125
125
|
tsx_source: string;
|
|
126
126
|
theme_id: string | null;
|
|
127
127
|
to: {
|
|
128
|
-
user_id: string;
|
|
129
128
|
type: "user-primary-email";
|
|
130
|
-
} | {
|
|
131
129
|
user_id: string;
|
|
130
|
+
} | {
|
|
132
131
|
type: "user-custom-emails";
|
|
132
|
+
user_id: string;
|
|
133
133
|
emails: string[];
|
|
134
134
|
} | {
|
|
135
135
|
type: "custom-emails";
|
|
@@ -159,22 +159,22 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
159
159
|
rendered_at_millis: number;
|
|
160
160
|
render_error: string;
|
|
161
161
|
} | {
|
|
162
|
-
status: "scheduled";
|
|
163
162
|
id: string;
|
|
164
|
-
|
|
163
|
+
status: "scheduled";
|
|
165
164
|
created_at_millis: number;
|
|
166
165
|
html: string | null;
|
|
167
166
|
text: string | null;
|
|
167
|
+
subject: string;
|
|
168
168
|
notification_category_id: string | null;
|
|
169
169
|
updated_at_millis: number;
|
|
170
170
|
tsx_source: string;
|
|
171
171
|
theme_id: string | null;
|
|
172
172
|
to: {
|
|
173
|
-
user_id: string;
|
|
174
173
|
type: "user-primary-email";
|
|
175
|
-
} | {
|
|
176
174
|
user_id: string;
|
|
175
|
+
} | {
|
|
177
176
|
type: "user-custom-emails";
|
|
177
|
+
user_id: string;
|
|
178
178
|
emails: string[];
|
|
179
179
|
} | {
|
|
180
180
|
type: "custom-emails";
|
|
@@ -205,22 +205,22 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
205
205
|
is_transactional: boolean;
|
|
206
206
|
is_high_priority: boolean;
|
|
207
207
|
} | {
|
|
208
|
-
status: "queued";
|
|
209
208
|
id: string;
|
|
210
|
-
|
|
209
|
+
status: "queued";
|
|
211
210
|
created_at_millis: number;
|
|
212
211
|
html: string | null;
|
|
213
212
|
text: string | null;
|
|
213
|
+
subject: string;
|
|
214
214
|
notification_category_id: string | null;
|
|
215
215
|
updated_at_millis: number;
|
|
216
216
|
tsx_source: string;
|
|
217
217
|
theme_id: string | null;
|
|
218
218
|
to: {
|
|
219
|
-
user_id: string;
|
|
220
219
|
type: "user-primary-email";
|
|
221
|
-
} | {
|
|
222
220
|
user_id: string;
|
|
221
|
+
} | {
|
|
223
222
|
type: "user-custom-emails";
|
|
223
|
+
user_id: string;
|
|
224
224
|
emails: string[];
|
|
225
225
|
} | {
|
|
226
226
|
type: "custom-emails";
|
|
@@ -251,22 +251,22 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
251
251
|
is_transactional: boolean;
|
|
252
252
|
is_high_priority: boolean;
|
|
253
253
|
} | {
|
|
254
|
-
status: "sending";
|
|
255
254
|
id: string;
|
|
256
|
-
|
|
255
|
+
status: "sending";
|
|
257
256
|
created_at_millis: number;
|
|
258
257
|
html: string | null;
|
|
259
258
|
text: string | null;
|
|
259
|
+
subject: string;
|
|
260
260
|
notification_category_id: string | null;
|
|
261
261
|
updated_at_millis: number;
|
|
262
262
|
tsx_source: string;
|
|
263
263
|
theme_id: string | null;
|
|
264
264
|
to: {
|
|
265
|
-
user_id: string;
|
|
266
265
|
type: "user-primary-email";
|
|
267
|
-
} | {
|
|
268
266
|
user_id: string;
|
|
267
|
+
} | {
|
|
269
268
|
type: "user-custom-emails";
|
|
269
|
+
user_id: string;
|
|
270
270
|
emails: string[];
|
|
271
271
|
} | {
|
|
272
272
|
type: "custom-emails";
|
|
@@ -298,22 +298,22 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
298
298
|
is_high_priority: boolean;
|
|
299
299
|
started_sending_at_millis: number;
|
|
300
300
|
} | {
|
|
301
|
-
status: "server-error";
|
|
302
301
|
id: string;
|
|
303
|
-
|
|
302
|
+
status: "server-error";
|
|
304
303
|
created_at_millis: number;
|
|
305
304
|
html: string | null;
|
|
306
305
|
text: string | null;
|
|
306
|
+
subject: string;
|
|
307
307
|
notification_category_id: string | null;
|
|
308
308
|
updated_at_millis: number;
|
|
309
309
|
tsx_source: string;
|
|
310
310
|
theme_id: string | null;
|
|
311
311
|
to: {
|
|
312
|
-
user_id: string;
|
|
313
312
|
type: "user-primary-email";
|
|
314
|
-
} | {
|
|
315
313
|
user_id: string;
|
|
314
|
+
} | {
|
|
316
315
|
type: "user-custom-emails";
|
|
316
|
+
user_id: string;
|
|
317
317
|
emails: string[];
|
|
318
318
|
} | {
|
|
319
319
|
type: "custom-emails";
|
|
@@ -347,27 +347,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
347
347
|
error_at_millis: number;
|
|
348
348
|
server_error: string;
|
|
349
349
|
} | {
|
|
350
|
-
subject?: string | undefined;
|
|
351
350
|
html?: string | null | undefined;
|
|
352
351
|
text?: string | null | undefined;
|
|
352
|
+
subject?: string | undefined;
|
|
353
353
|
notification_category_id?: string | null | undefined;
|
|
354
354
|
started_rendering_at_millis?: number | undefined;
|
|
355
355
|
rendered_at_millis?: number | undefined;
|
|
356
356
|
is_transactional?: boolean | undefined;
|
|
357
357
|
is_high_priority?: boolean | undefined;
|
|
358
358
|
started_sending_at_millis?: number | undefined;
|
|
359
|
-
status: "skipped";
|
|
360
359
|
id: string;
|
|
360
|
+
status: "skipped";
|
|
361
361
|
created_at_millis: number;
|
|
362
362
|
updated_at_millis: number;
|
|
363
363
|
tsx_source: string;
|
|
364
364
|
theme_id: string | null;
|
|
365
365
|
to: {
|
|
366
|
-
user_id: string;
|
|
367
366
|
type: "user-primary-email";
|
|
368
|
-
} | {
|
|
369
367
|
user_id: string;
|
|
368
|
+
} | {
|
|
370
369
|
type: "user-custom-emails";
|
|
370
|
+
user_id: string;
|
|
371
371
|
emails: string[];
|
|
372
372
|
} | {
|
|
373
373
|
type: "custom-emails";
|
|
@@ -397,22 +397,22 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
397
397
|
skipped_reason: string;
|
|
398
398
|
skipped_details: Record<string, {} | null>;
|
|
399
399
|
} | {
|
|
400
|
-
status: "bounced";
|
|
401
400
|
id: string;
|
|
402
|
-
|
|
401
|
+
status: "bounced";
|
|
403
402
|
created_at_millis: number;
|
|
404
403
|
html: string | null;
|
|
405
404
|
text: string | null;
|
|
405
|
+
subject: string;
|
|
406
406
|
notification_category_id: string | null;
|
|
407
407
|
updated_at_millis: number;
|
|
408
408
|
tsx_source: string;
|
|
409
409
|
theme_id: string | null;
|
|
410
410
|
to: {
|
|
411
|
-
user_id: string;
|
|
412
411
|
type: "user-primary-email";
|
|
413
|
-
} | {
|
|
414
412
|
user_id: string;
|
|
413
|
+
} | {
|
|
415
414
|
type: "user-custom-emails";
|
|
415
|
+
user_id: string;
|
|
416
416
|
emails: string[];
|
|
417
417
|
} | {
|
|
418
418
|
type: "custom-emails";
|
|
@@ -445,22 +445,22 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
445
445
|
started_sending_at_millis: number;
|
|
446
446
|
bounced_at_millis: number;
|
|
447
447
|
} | {
|
|
448
|
-
status: "delivery-delayed";
|
|
449
448
|
id: string;
|
|
450
|
-
|
|
449
|
+
status: "delivery-delayed";
|
|
451
450
|
created_at_millis: number;
|
|
452
451
|
html: string | null;
|
|
453
452
|
text: string | null;
|
|
453
|
+
subject: string;
|
|
454
454
|
notification_category_id: string | null;
|
|
455
455
|
updated_at_millis: number;
|
|
456
456
|
tsx_source: string;
|
|
457
457
|
theme_id: string | null;
|
|
458
458
|
to: {
|
|
459
|
-
user_id: string;
|
|
460
459
|
type: "user-primary-email";
|
|
461
|
-
} | {
|
|
462
460
|
user_id: string;
|
|
461
|
+
} | {
|
|
463
462
|
type: "user-custom-emails";
|
|
463
|
+
user_id: string;
|
|
464
464
|
emails: string[];
|
|
465
465
|
} | {
|
|
466
466
|
type: "custom-emails";
|
|
@@ -493,22 +493,22 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
493
493
|
started_sending_at_millis: number;
|
|
494
494
|
delivery_delayed_at_millis: number;
|
|
495
495
|
} | {
|
|
496
|
-
status: "sent";
|
|
497
496
|
id: string;
|
|
498
|
-
|
|
497
|
+
status: "sent";
|
|
499
498
|
created_at_millis: number;
|
|
500
499
|
html: string | null;
|
|
501
500
|
text: string | null;
|
|
501
|
+
subject: string;
|
|
502
502
|
notification_category_id: string | null;
|
|
503
503
|
updated_at_millis: number;
|
|
504
504
|
tsx_source: string;
|
|
505
505
|
theme_id: string | null;
|
|
506
506
|
to: {
|
|
507
|
-
user_id: string;
|
|
508
507
|
type: "user-primary-email";
|
|
509
|
-
} | {
|
|
510
508
|
user_id: string;
|
|
509
|
+
} | {
|
|
511
510
|
type: "user-custom-emails";
|
|
511
|
+
user_id: string;
|
|
512
512
|
emails: string[];
|
|
513
513
|
} | {
|
|
514
514
|
type: "custom-emails";
|
|
@@ -542,22 +542,22 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
542
542
|
delivered_at_millis: number;
|
|
543
543
|
can_have_delivery_info: boolean;
|
|
544
544
|
} | {
|
|
545
|
-
status: "opened";
|
|
546
545
|
id: string;
|
|
547
|
-
|
|
546
|
+
status: "opened";
|
|
548
547
|
created_at_millis: number;
|
|
549
548
|
html: string | null;
|
|
550
549
|
text: string | null;
|
|
550
|
+
subject: string;
|
|
551
551
|
notification_category_id: string | null;
|
|
552
552
|
updated_at_millis: number;
|
|
553
553
|
tsx_source: string;
|
|
554
554
|
theme_id: string | null;
|
|
555
555
|
to: {
|
|
556
|
-
user_id: string;
|
|
557
556
|
type: "user-primary-email";
|
|
558
|
-
} | {
|
|
559
557
|
user_id: string;
|
|
558
|
+
} | {
|
|
560
559
|
type: "user-custom-emails";
|
|
560
|
+
user_id: string;
|
|
561
561
|
emails: string[];
|
|
562
562
|
} | {
|
|
563
563
|
type: "custom-emails";
|
|
@@ -592,22 +592,22 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
592
592
|
can_have_delivery_info: boolean;
|
|
593
593
|
opened_at_millis: number;
|
|
594
594
|
} | {
|
|
595
|
-
status: "clicked";
|
|
596
595
|
id: string;
|
|
597
|
-
|
|
596
|
+
status: "clicked";
|
|
598
597
|
created_at_millis: number;
|
|
599
598
|
html: string | null;
|
|
600
599
|
text: string | null;
|
|
600
|
+
subject: string;
|
|
601
601
|
notification_category_id: string | null;
|
|
602
602
|
updated_at_millis: number;
|
|
603
603
|
tsx_source: string;
|
|
604
604
|
theme_id: string | null;
|
|
605
605
|
to: {
|
|
606
|
-
user_id: string;
|
|
607
606
|
type: "user-primary-email";
|
|
608
|
-
} | {
|
|
609
607
|
user_id: string;
|
|
608
|
+
} | {
|
|
610
609
|
type: "user-custom-emails";
|
|
610
|
+
user_id: string;
|
|
611
611
|
emails: string[];
|
|
612
612
|
} | {
|
|
613
613
|
type: "custom-emails";
|
|
@@ -642,22 +642,22 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
642
642
|
can_have_delivery_info: boolean;
|
|
643
643
|
clicked_at_millis: number;
|
|
644
644
|
} | {
|
|
645
|
-
status: "marked-as-spam";
|
|
646
645
|
id: string;
|
|
647
|
-
|
|
646
|
+
status: "marked-as-spam";
|
|
648
647
|
created_at_millis: number;
|
|
649
648
|
html: string | null;
|
|
650
649
|
text: string | null;
|
|
650
|
+
subject: string;
|
|
651
651
|
notification_category_id: string | null;
|
|
652
652
|
updated_at_millis: number;
|
|
653
653
|
tsx_source: string;
|
|
654
654
|
theme_id: string | null;
|
|
655
655
|
to: {
|
|
656
|
-
user_id: string;
|
|
657
656
|
type: "user-primary-email";
|
|
658
|
-
} | {
|
|
659
657
|
user_id: string;
|
|
658
|
+
} | {
|
|
660
659
|
type: "user-custom-emails";
|
|
660
|
+
user_id: string;
|
|
661
661
|
emails: string[];
|
|
662
662
|
} | {
|
|
663
663
|
type: "custom-emails";
|
|
@@ -696,11 +696,11 @@ declare const emailOutboxUpdateSchema: yup$1.ObjectSchema<{
|
|
|
696
696
|
tsx_source: string | undefined;
|
|
697
697
|
theme_id: string | null | undefined;
|
|
698
698
|
to: {
|
|
699
|
-
user_id: string;
|
|
700
699
|
type: "user-primary-email";
|
|
701
|
-
} | {
|
|
702
700
|
user_id: string;
|
|
701
|
+
} | {
|
|
703
702
|
type: "user-custom-emails";
|
|
703
|
+
user_id: string;
|
|
704
704
|
emails: string[];
|
|
705
705
|
} | {
|
|
706
706
|
type: "custom-emails";
|
|
@@ -723,18 +723,18 @@ declare const emailOutboxUpdateSchema: yup$1.ObjectSchema<{
|
|
|
723
723
|
}, "">;
|
|
724
724
|
declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
725
725
|
serverReadSchema: yup$1.MixedSchema<{
|
|
726
|
-
status: "paused";
|
|
727
726
|
id: string;
|
|
727
|
+
status: "paused";
|
|
728
728
|
created_at_millis: number;
|
|
729
729
|
updated_at_millis: number;
|
|
730
730
|
tsx_source: string;
|
|
731
731
|
theme_id: string | null;
|
|
732
732
|
to: {
|
|
733
|
-
user_id: string;
|
|
734
733
|
type: "user-primary-email";
|
|
735
|
-
} | {
|
|
736
734
|
user_id: string;
|
|
735
|
+
} | {
|
|
737
736
|
type: "user-custom-emails";
|
|
737
|
+
user_id: string;
|
|
738
738
|
emails: string[];
|
|
739
739
|
} | {
|
|
740
740
|
type: "custom-emails";
|
|
@@ -761,18 +761,18 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
761
761
|
has_rendered: boolean;
|
|
762
762
|
has_delivered: boolean;
|
|
763
763
|
} | {
|
|
764
|
-
status: "preparing";
|
|
765
764
|
id: string;
|
|
765
|
+
status: "preparing";
|
|
766
766
|
created_at_millis: number;
|
|
767
767
|
updated_at_millis: number;
|
|
768
768
|
tsx_source: string;
|
|
769
769
|
theme_id: string | null;
|
|
770
770
|
to: {
|
|
771
|
-
user_id: string;
|
|
772
771
|
type: "user-primary-email";
|
|
773
|
-
} | {
|
|
774
772
|
user_id: string;
|
|
773
|
+
} | {
|
|
775
774
|
type: "user-custom-emails";
|
|
775
|
+
user_id: string;
|
|
776
776
|
emails: string[];
|
|
777
777
|
} | {
|
|
778
778
|
type: "custom-emails";
|
|
@@ -799,18 +799,18 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
799
799
|
has_rendered: boolean;
|
|
800
800
|
has_delivered: boolean;
|
|
801
801
|
} | {
|
|
802
|
-
status: "rendering";
|
|
803
802
|
id: string;
|
|
803
|
+
status: "rendering";
|
|
804
804
|
created_at_millis: number;
|
|
805
805
|
updated_at_millis: number;
|
|
806
806
|
tsx_source: string;
|
|
807
807
|
theme_id: string | null;
|
|
808
808
|
to: {
|
|
809
|
-
user_id: string;
|
|
810
809
|
type: "user-primary-email";
|
|
811
|
-
} | {
|
|
812
810
|
user_id: string;
|
|
811
|
+
} | {
|
|
813
812
|
type: "user-custom-emails";
|
|
813
|
+
user_id: string;
|
|
814
814
|
emails: string[];
|
|
815
815
|
} | {
|
|
816
816
|
type: "custom-emails";
|
|
@@ -838,18 +838,18 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
838
838
|
has_delivered: boolean;
|
|
839
839
|
started_rendering_at_millis: number;
|
|
840
840
|
} | {
|
|
841
|
-
status: "render-error";
|
|
842
841
|
id: string;
|
|
842
|
+
status: "render-error";
|
|
843
843
|
created_at_millis: number;
|
|
844
844
|
updated_at_millis: number;
|
|
845
845
|
tsx_source: string;
|
|
846
846
|
theme_id: string | null;
|
|
847
847
|
to: {
|
|
848
|
-
user_id: string;
|
|
849
848
|
type: "user-primary-email";
|
|
850
|
-
} | {
|
|
851
849
|
user_id: string;
|
|
850
|
+
} | {
|
|
852
851
|
type: "user-custom-emails";
|
|
852
|
+
user_id: string;
|
|
853
853
|
emails: string[];
|
|
854
854
|
} | {
|
|
855
855
|
type: "custom-emails";
|
|
@@ -879,22 +879,22 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
879
879
|
rendered_at_millis: number;
|
|
880
880
|
render_error: string;
|
|
881
881
|
} | {
|
|
882
|
-
status: "scheduled";
|
|
883
882
|
id: string;
|
|
884
|
-
|
|
883
|
+
status: "scheduled";
|
|
885
884
|
created_at_millis: number;
|
|
886
885
|
html: string | null;
|
|
887
886
|
text: string | null;
|
|
887
|
+
subject: string;
|
|
888
888
|
notification_category_id: string | null;
|
|
889
889
|
updated_at_millis: number;
|
|
890
890
|
tsx_source: string;
|
|
891
891
|
theme_id: string | null;
|
|
892
892
|
to: {
|
|
893
|
-
user_id: string;
|
|
894
893
|
type: "user-primary-email";
|
|
895
|
-
} | {
|
|
896
894
|
user_id: string;
|
|
895
|
+
} | {
|
|
897
896
|
type: "user-custom-emails";
|
|
897
|
+
user_id: string;
|
|
898
898
|
emails: string[];
|
|
899
899
|
} | {
|
|
900
900
|
type: "custom-emails";
|
|
@@ -925,22 +925,22 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
925
925
|
is_transactional: boolean;
|
|
926
926
|
is_high_priority: boolean;
|
|
927
927
|
} | {
|
|
928
|
-
status: "queued";
|
|
929
928
|
id: string;
|
|
930
|
-
|
|
929
|
+
status: "queued";
|
|
931
930
|
created_at_millis: number;
|
|
932
931
|
html: string | null;
|
|
933
932
|
text: string | null;
|
|
933
|
+
subject: string;
|
|
934
934
|
notification_category_id: string | null;
|
|
935
935
|
updated_at_millis: number;
|
|
936
936
|
tsx_source: string;
|
|
937
937
|
theme_id: string | null;
|
|
938
938
|
to: {
|
|
939
|
-
user_id: string;
|
|
940
939
|
type: "user-primary-email";
|
|
941
|
-
} | {
|
|
942
940
|
user_id: string;
|
|
941
|
+
} | {
|
|
943
942
|
type: "user-custom-emails";
|
|
943
|
+
user_id: string;
|
|
944
944
|
emails: string[];
|
|
945
945
|
} | {
|
|
946
946
|
type: "custom-emails";
|
|
@@ -971,22 +971,22 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
971
971
|
is_transactional: boolean;
|
|
972
972
|
is_high_priority: boolean;
|
|
973
973
|
} | {
|
|
974
|
-
status: "sending";
|
|
975
974
|
id: string;
|
|
976
|
-
|
|
975
|
+
status: "sending";
|
|
977
976
|
created_at_millis: number;
|
|
978
977
|
html: string | null;
|
|
979
978
|
text: string | null;
|
|
979
|
+
subject: string;
|
|
980
980
|
notification_category_id: string | null;
|
|
981
981
|
updated_at_millis: number;
|
|
982
982
|
tsx_source: string;
|
|
983
983
|
theme_id: string | null;
|
|
984
984
|
to: {
|
|
985
|
-
user_id: string;
|
|
986
985
|
type: "user-primary-email";
|
|
987
|
-
} | {
|
|
988
986
|
user_id: string;
|
|
987
|
+
} | {
|
|
989
988
|
type: "user-custom-emails";
|
|
989
|
+
user_id: string;
|
|
990
990
|
emails: string[];
|
|
991
991
|
} | {
|
|
992
992
|
type: "custom-emails";
|
|
@@ -1018,22 +1018,22 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1018
1018
|
is_high_priority: boolean;
|
|
1019
1019
|
started_sending_at_millis: number;
|
|
1020
1020
|
} | {
|
|
1021
|
-
status: "server-error";
|
|
1022
1021
|
id: string;
|
|
1023
|
-
|
|
1022
|
+
status: "server-error";
|
|
1024
1023
|
created_at_millis: number;
|
|
1025
1024
|
html: string | null;
|
|
1026
1025
|
text: string | null;
|
|
1026
|
+
subject: string;
|
|
1027
1027
|
notification_category_id: string | null;
|
|
1028
1028
|
updated_at_millis: number;
|
|
1029
1029
|
tsx_source: string;
|
|
1030
1030
|
theme_id: string | null;
|
|
1031
1031
|
to: {
|
|
1032
|
-
user_id: string;
|
|
1033
1032
|
type: "user-primary-email";
|
|
1034
|
-
} | {
|
|
1035
1033
|
user_id: string;
|
|
1034
|
+
} | {
|
|
1036
1035
|
type: "user-custom-emails";
|
|
1036
|
+
user_id: string;
|
|
1037
1037
|
emails: string[];
|
|
1038
1038
|
} | {
|
|
1039
1039
|
type: "custom-emails";
|
|
@@ -1067,27 +1067,27 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1067
1067
|
error_at_millis: number;
|
|
1068
1068
|
server_error: string;
|
|
1069
1069
|
} | {
|
|
1070
|
-
subject?: string | undefined;
|
|
1071
1070
|
html?: string | null | undefined;
|
|
1072
1071
|
text?: string | null | undefined;
|
|
1072
|
+
subject?: string | undefined;
|
|
1073
1073
|
notification_category_id?: string | null | undefined;
|
|
1074
1074
|
started_rendering_at_millis?: number | undefined;
|
|
1075
1075
|
rendered_at_millis?: number | undefined;
|
|
1076
1076
|
is_transactional?: boolean | undefined;
|
|
1077
1077
|
is_high_priority?: boolean | undefined;
|
|
1078
1078
|
started_sending_at_millis?: number | undefined;
|
|
1079
|
-
status: "skipped";
|
|
1080
1079
|
id: string;
|
|
1080
|
+
status: "skipped";
|
|
1081
1081
|
created_at_millis: number;
|
|
1082
1082
|
updated_at_millis: number;
|
|
1083
1083
|
tsx_source: string;
|
|
1084
1084
|
theme_id: string | null;
|
|
1085
1085
|
to: {
|
|
1086
|
-
user_id: string;
|
|
1087
1086
|
type: "user-primary-email";
|
|
1088
|
-
} | {
|
|
1089
1087
|
user_id: string;
|
|
1088
|
+
} | {
|
|
1090
1089
|
type: "user-custom-emails";
|
|
1090
|
+
user_id: string;
|
|
1091
1091
|
emails: string[];
|
|
1092
1092
|
} | {
|
|
1093
1093
|
type: "custom-emails";
|
|
@@ -1117,22 +1117,22 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1117
1117
|
skipped_reason: string;
|
|
1118
1118
|
skipped_details: Record<string, {} | null>;
|
|
1119
1119
|
} | {
|
|
1120
|
-
status: "bounced";
|
|
1121
1120
|
id: string;
|
|
1122
|
-
|
|
1121
|
+
status: "bounced";
|
|
1123
1122
|
created_at_millis: number;
|
|
1124
1123
|
html: string | null;
|
|
1125
1124
|
text: string | null;
|
|
1125
|
+
subject: string;
|
|
1126
1126
|
notification_category_id: string | null;
|
|
1127
1127
|
updated_at_millis: number;
|
|
1128
1128
|
tsx_source: string;
|
|
1129
1129
|
theme_id: string | null;
|
|
1130
1130
|
to: {
|
|
1131
|
-
user_id: string;
|
|
1132
1131
|
type: "user-primary-email";
|
|
1133
|
-
} | {
|
|
1134
1132
|
user_id: string;
|
|
1133
|
+
} | {
|
|
1135
1134
|
type: "user-custom-emails";
|
|
1135
|
+
user_id: string;
|
|
1136
1136
|
emails: string[];
|
|
1137
1137
|
} | {
|
|
1138
1138
|
type: "custom-emails";
|
|
@@ -1165,22 +1165,22 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1165
1165
|
started_sending_at_millis: number;
|
|
1166
1166
|
bounced_at_millis: number;
|
|
1167
1167
|
} | {
|
|
1168
|
-
status: "delivery-delayed";
|
|
1169
1168
|
id: string;
|
|
1170
|
-
|
|
1169
|
+
status: "delivery-delayed";
|
|
1171
1170
|
created_at_millis: number;
|
|
1172
1171
|
html: string | null;
|
|
1173
1172
|
text: string | null;
|
|
1173
|
+
subject: string;
|
|
1174
1174
|
notification_category_id: string | null;
|
|
1175
1175
|
updated_at_millis: number;
|
|
1176
1176
|
tsx_source: string;
|
|
1177
1177
|
theme_id: string | null;
|
|
1178
1178
|
to: {
|
|
1179
|
-
user_id: string;
|
|
1180
1179
|
type: "user-primary-email";
|
|
1181
|
-
} | {
|
|
1182
1180
|
user_id: string;
|
|
1181
|
+
} | {
|
|
1183
1182
|
type: "user-custom-emails";
|
|
1183
|
+
user_id: string;
|
|
1184
1184
|
emails: string[];
|
|
1185
1185
|
} | {
|
|
1186
1186
|
type: "custom-emails";
|
|
@@ -1213,22 +1213,22 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1213
1213
|
started_sending_at_millis: number;
|
|
1214
1214
|
delivery_delayed_at_millis: number;
|
|
1215
1215
|
} | {
|
|
1216
|
-
status: "sent";
|
|
1217
1216
|
id: string;
|
|
1218
|
-
|
|
1217
|
+
status: "sent";
|
|
1219
1218
|
created_at_millis: number;
|
|
1220
1219
|
html: string | null;
|
|
1221
1220
|
text: string | null;
|
|
1221
|
+
subject: string;
|
|
1222
1222
|
notification_category_id: string | null;
|
|
1223
1223
|
updated_at_millis: number;
|
|
1224
1224
|
tsx_source: string;
|
|
1225
1225
|
theme_id: string | null;
|
|
1226
1226
|
to: {
|
|
1227
|
-
user_id: string;
|
|
1228
1227
|
type: "user-primary-email";
|
|
1229
|
-
} | {
|
|
1230
1228
|
user_id: string;
|
|
1229
|
+
} | {
|
|
1231
1230
|
type: "user-custom-emails";
|
|
1231
|
+
user_id: string;
|
|
1232
1232
|
emails: string[];
|
|
1233
1233
|
} | {
|
|
1234
1234
|
type: "custom-emails";
|
|
@@ -1262,22 +1262,22 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1262
1262
|
delivered_at_millis: number;
|
|
1263
1263
|
can_have_delivery_info: boolean;
|
|
1264
1264
|
} | {
|
|
1265
|
-
status: "opened";
|
|
1266
1265
|
id: string;
|
|
1267
|
-
|
|
1266
|
+
status: "opened";
|
|
1268
1267
|
created_at_millis: number;
|
|
1269
1268
|
html: string | null;
|
|
1270
1269
|
text: string | null;
|
|
1270
|
+
subject: string;
|
|
1271
1271
|
notification_category_id: string | null;
|
|
1272
1272
|
updated_at_millis: number;
|
|
1273
1273
|
tsx_source: string;
|
|
1274
1274
|
theme_id: string | null;
|
|
1275
1275
|
to: {
|
|
1276
|
-
user_id: string;
|
|
1277
1276
|
type: "user-primary-email";
|
|
1278
|
-
} | {
|
|
1279
1277
|
user_id: string;
|
|
1278
|
+
} | {
|
|
1280
1279
|
type: "user-custom-emails";
|
|
1280
|
+
user_id: string;
|
|
1281
1281
|
emails: string[];
|
|
1282
1282
|
} | {
|
|
1283
1283
|
type: "custom-emails";
|
|
@@ -1312,22 +1312,22 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1312
1312
|
can_have_delivery_info: boolean;
|
|
1313
1313
|
opened_at_millis: number;
|
|
1314
1314
|
} | {
|
|
1315
|
-
status: "clicked";
|
|
1316
1315
|
id: string;
|
|
1317
|
-
|
|
1316
|
+
status: "clicked";
|
|
1318
1317
|
created_at_millis: number;
|
|
1319
1318
|
html: string | null;
|
|
1320
1319
|
text: string | null;
|
|
1320
|
+
subject: string;
|
|
1321
1321
|
notification_category_id: string | null;
|
|
1322
1322
|
updated_at_millis: number;
|
|
1323
1323
|
tsx_source: string;
|
|
1324
1324
|
theme_id: string | null;
|
|
1325
1325
|
to: {
|
|
1326
|
-
user_id: string;
|
|
1327
1326
|
type: "user-primary-email";
|
|
1328
|
-
} | {
|
|
1329
1327
|
user_id: string;
|
|
1328
|
+
} | {
|
|
1330
1329
|
type: "user-custom-emails";
|
|
1330
|
+
user_id: string;
|
|
1331
1331
|
emails: string[];
|
|
1332
1332
|
} | {
|
|
1333
1333
|
type: "custom-emails";
|
|
@@ -1362,22 +1362,22 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1362
1362
|
can_have_delivery_info: boolean;
|
|
1363
1363
|
clicked_at_millis: number;
|
|
1364
1364
|
} | {
|
|
1365
|
-
status: "marked-as-spam";
|
|
1366
1365
|
id: string;
|
|
1367
|
-
|
|
1366
|
+
status: "marked-as-spam";
|
|
1368
1367
|
created_at_millis: number;
|
|
1369
1368
|
html: string | null;
|
|
1370
1369
|
text: string | null;
|
|
1370
|
+
subject: string;
|
|
1371
1371
|
notification_category_id: string | null;
|
|
1372
1372
|
updated_at_millis: number;
|
|
1373
1373
|
tsx_source: string;
|
|
1374
1374
|
theme_id: string | null;
|
|
1375
1375
|
to: {
|
|
1376
|
-
user_id: string;
|
|
1377
1376
|
type: "user-primary-email";
|
|
1378
|
-
} | {
|
|
1379
1377
|
user_id: string;
|
|
1378
|
+
} | {
|
|
1380
1379
|
type: "user-custom-emails";
|
|
1380
|
+
user_id: string;
|
|
1381
1381
|
emails: string[];
|
|
1382
1382
|
} | {
|
|
1383
1383
|
type: "custom-emails";
|
|
@@ -1416,11 +1416,11 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1416
1416
|
tsx_source: string | undefined;
|
|
1417
1417
|
theme_id: string | null | undefined;
|
|
1418
1418
|
to: {
|
|
1419
|
-
user_id: string;
|
|
1420
1419
|
type: "user-primary-email";
|
|
1421
|
-
} | {
|
|
1422
1420
|
user_id: string;
|
|
1421
|
+
} | {
|
|
1423
1422
|
type: "user-custom-emails";
|
|
1423
|
+
user_id: string;
|
|
1424
1424
|
emails: string[];
|
|
1425
1425
|
} | {
|
|
1426
1426
|
type: "custom-emails";
|