@hexclave/shared 1.0.28 → 1.0.30
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/config/schema.d.ts +48 -48
- package/dist/esm/config/schema.d.ts +48 -48
- package/dist/esm/hooks/use-async-callback.js +1 -1
- package/dist/esm/hooks/use-async-external-store.js +1 -1
- package/dist/esm/hooks/use-strict-memo.js +1 -1
- package/dist/esm/interface/admin-interface.js +1 -1
- package/dist/esm/interface/admin-metrics.d.ts +7 -7
- package/dist/esm/interface/client-interface.js +1 -1
- package/dist/esm/interface/conversations.d.ts +2 -2
- package/dist/esm/interface/crud/current-user.d.ts +6 -6
- package/dist/esm/interface/crud/email-outbox.d.ts +72 -72
- package/dist/esm/interface/crud/invoices.d.ts +2 -2
- package/dist/esm/interface/crud/products.d.ts +4 -4
- package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
- package/dist/esm/interface/crud/team-member-profiles.d.ts +10 -10
- package/dist/esm/interface/crud/transactions.d.ts +2 -2
- package/dist/esm/interface/crud/users.d.ts +4 -4
- package/dist/esm/interface/server-interface.js +1 -1
- package/dist/esm/schema-fields.d.ts +1 -1
- package/dist/esm/sessions.d.ts +2 -2
- package/dist/esm/utils/promises.d.ts +12 -1
- package/dist/esm/utils/promises.d.ts.map +1 -1
- package/dist/esm/utils/promises.js +58 -2
- package/dist/esm/utils/promises.js.map +1 -1
- package/dist/hooks/use-async-callback.js +1 -1
- package/dist/hooks/use-async-external-store.js +1 -1
- package/dist/hooks/use-strict-memo.js +1 -1
- package/dist/interface/admin-interface.js +1 -1
- package/dist/interface/admin-metrics.d.ts +7 -7
- package/dist/interface/client-interface.js +1 -1
- package/dist/interface/conversations.d.ts +2 -2
- package/dist/interface/crud/current-user.d.ts +6 -6
- package/dist/interface/crud/email-outbox.d.ts +72 -72
- package/dist/interface/crud/invoices.d.ts +2 -2
- package/dist/interface/crud/products.d.ts +4 -4
- package/dist/interface/crud/project-api-keys.d.ts +2 -2
- package/dist/interface/crud/team-member-profiles.d.ts +10 -10
- package/dist/interface/crud/transactions.d.ts +2 -2
- package/dist/interface/crud/users.d.ts +4 -4
- package/dist/interface/server-interface.js +1 -1
- package/dist/schema-fields.d.ts +1 -1
- package/dist/sessions.d.ts +2 -2
- package/dist/utils/promises.d.ts +12 -1
- package/dist/utils/promises.d.ts.map +1 -1
- package/dist/utils/promises.js +58 -1
- package/dist/utils/promises.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/promises.tsx +65 -0
|
@@ -5,6 +5,7 @@ import * as yup$1 from "yup";
|
|
|
5
5
|
declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
6
6
|
status: "paused";
|
|
7
7
|
id: string;
|
|
8
|
+
created_at_millis: number;
|
|
8
9
|
to: {
|
|
9
10
|
user_id: string;
|
|
10
11
|
type: "user-primary-email";
|
|
@@ -16,7 +17,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
16
17
|
type: "custom-emails";
|
|
17
18
|
emails: string[];
|
|
18
19
|
};
|
|
19
|
-
created_at_millis: number;
|
|
20
20
|
updated_at_millis: number;
|
|
21
21
|
tsx_source: string;
|
|
22
22
|
theme_id: string | null;
|
|
@@ -43,6 +43,7 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
43
43
|
} | {
|
|
44
44
|
status: "preparing";
|
|
45
45
|
id: string;
|
|
46
|
+
created_at_millis: number;
|
|
46
47
|
to: {
|
|
47
48
|
user_id: string;
|
|
48
49
|
type: "user-primary-email";
|
|
@@ -54,7 +55,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
54
55
|
type: "custom-emails";
|
|
55
56
|
emails: string[];
|
|
56
57
|
};
|
|
57
|
-
created_at_millis: number;
|
|
58
58
|
updated_at_millis: number;
|
|
59
59
|
tsx_source: string;
|
|
60
60
|
theme_id: string | null;
|
|
@@ -81,6 +81,7 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
81
81
|
} | {
|
|
82
82
|
status: "rendering";
|
|
83
83
|
id: string;
|
|
84
|
+
created_at_millis: number;
|
|
84
85
|
to: {
|
|
85
86
|
user_id: string;
|
|
86
87
|
type: "user-primary-email";
|
|
@@ -92,7 +93,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
92
93
|
type: "custom-emails";
|
|
93
94
|
emails: string[];
|
|
94
95
|
};
|
|
95
|
-
created_at_millis: number;
|
|
96
96
|
updated_at_millis: number;
|
|
97
97
|
tsx_source: string;
|
|
98
98
|
theme_id: string | null;
|
|
@@ -120,6 +120,7 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
120
120
|
} | {
|
|
121
121
|
status: "render-error";
|
|
122
122
|
id: string;
|
|
123
|
+
created_at_millis: number;
|
|
123
124
|
to: {
|
|
124
125
|
user_id: string;
|
|
125
126
|
type: "user-primary-email";
|
|
@@ -131,7 +132,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
131
132
|
type: "custom-emails";
|
|
132
133
|
emails: string[];
|
|
133
134
|
};
|
|
134
|
-
created_at_millis: number;
|
|
135
135
|
updated_at_millis: number;
|
|
136
136
|
tsx_source: string;
|
|
137
137
|
theme_id: string | null;
|
|
@@ -160,9 +160,10 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
160
160
|
render_error: string;
|
|
161
161
|
} | {
|
|
162
162
|
status: "scheduled";
|
|
163
|
+
id: string;
|
|
163
164
|
html: string | null;
|
|
164
165
|
text: string | null;
|
|
165
|
-
|
|
166
|
+
created_at_millis: number;
|
|
166
167
|
subject: string;
|
|
167
168
|
to: {
|
|
168
169
|
user_id: string;
|
|
@@ -175,8 +176,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
175
176
|
type: "custom-emails";
|
|
176
177
|
emails: string[];
|
|
177
178
|
};
|
|
178
|
-
created_at_millis: number;
|
|
179
|
-
notification_category_id: string | null;
|
|
180
179
|
updated_at_millis: number;
|
|
181
180
|
tsx_source: string;
|
|
182
181
|
theme_id: string | null;
|
|
@@ -204,11 +203,13 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
204
203
|
rendered_at_millis: number;
|
|
205
204
|
is_transactional: boolean;
|
|
206
205
|
is_high_priority: boolean;
|
|
206
|
+
notification_category_id: string | null;
|
|
207
207
|
} | {
|
|
208
208
|
status: "queued";
|
|
209
|
+
id: string;
|
|
209
210
|
html: string | null;
|
|
210
211
|
text: string | null;
|
|
211
|
-
|
|
212
|
+
created_at_millis: number;
|
|
212
213
|
subject: string;
|
|
213
214
|
to: {
|
|
214
215
|
user_id: string;
|
|
@@ -221,8 +222,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
221
222
|
type: "custom-emails";
|
|
222
223
|
emails: string[];
|
|
223
224
|
};
|
|
224
|
-
created_at_millis: number;
|
|
225
|
-
notification_category_id: string | null;
|
|
226
225
|
updated_at_millis: number;
|
|
227
226
|
tsx_source: string;
|
|
228
227
|
theme_id: string | null;
|
|
@@ -250,11 +249,13 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
250
249
|
rendered_at_millis: number;
|
|
251
250
|
is_transactional: boolean;
|
|
252
251
|
is_high_priority: boolean;
|
|
252
|
+
notification_category_id: string | null;
|
|
253
253
|
} | {
|
|
254
254
|
status: "sending";
|
|
255
|
+
id: string;
|
|
255
256
|
html: string | null;
|
|
256
257
|
text: string | null;
|
|
257
|
-
|
|
258
|
+
created_at_millis: number;
|
|
258
259
|
subject: string;
|
|
259
260
|
to: {
|
|
260
261
|
user_id: string;
|
|
@@ -267,8 +268,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
267
268
|
type: "custom-emails";
|
|
268
269
|
emails: string[];
|
|
269
270
|
};
|
|
270
|
-
created_at_millis: number;
|
|
271
|
-
notification_category_id: string | null;
|
|
272
271
|
updated_at_millis: number;
|
|
273
272
|
tsx_source: string;
|
|
274
273
|
theme_id: string | null;
|
|
@@ -296,12 +295,14 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
296
295
|
rendered_at_millis: number;
|
|
297
296
|
is_transactional: boolean;
|
|
298
297
|
is_high_priority: boolean;
|
|
298
|
+
notification_category_id: string | null;
|
|
299
299
|
started_sending_at_millis: number;
|
|
300
300
|
} | {
|
|
301
301
|
status: "server-error";
|
|
302
|
+
id: string;
|
|
302
303
|
html: string | null;
|
|
303
304
|
text: string | null;
|
|
304
|
-
|
|
305
|
+
created_at_millis: number;
|
|
305
306
|
subject: string;
|
|
306
307
|
to: {
|
|
307
308
|
user_id: string;
|
|
@@ -314,8 +315,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
314
315
|
type: "custom-emails";
|
|
315
316
|
emails: string[];
|
|
316
317
|
};
|
|
317
|
-
created_at_millis: number;
|
|
318
|
-
notification_category_id: string | null;
|
|
319
318
|
updated_at_millis: number;
|
|
320
319
|
tsx_source: string;
|
|
321
320
|
theme_id: string | null;
|
|
@@ -343,6 +342,7 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
343
342
|
rendered_at_millis: number;
|
|
344
343
|
is_transactional: boolean;
|
|
345
344
|
is_high_priority: boolean;
|
|
345
|
+
notification_category_id: string | null;
|
|
346
346
|
started_sending_at_millis: number;
|
|
347
347
|
error_at_millis: number;
|
|
348
348
|
server_error: string;
|
|
@@ -350,14 +350,15 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
350
350
|
html?: string | null | undefined;
|
|
351
351
|
text?: string | null | undefined;
|
|
352
352
|
subject?: string | undefined;
|
|
353
|
-
notification_category_id?: string | null | undefined;
|
|
354
353
|
started_rendering_at_millis?: number | undefined;
|
|
355
354
|
rendered_at_millis?: number | undefined;
|
|
356
355
|
is_transactional?: boolean | undefined;
|
|
357
356
|
is_high_priority?: boolean | undefined;
|
|
357
|
+
notification_category_id?: string | null | undefined;
|
|
358
358
|
started_sending_at_millis?: number | undefined;
|
|
359
359
|
status: "skipped";
|
|
360
360
|
id: string;
|
|
361
|
+
created_at_millis: number;
|
|
361
362
|
to: {
|
|
362
363
|
user_id: string;
|
|
363
364
|
type: "user-primary-email";
|
|
@@ -369,7 +370,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
369
370
|
type: "custom-emails";
|
|
370
371
|
emails: string[];
|
|
371
372
|
};
|
|
372
|
-
created_at_millis: number;
|
|
373
373
|
updated_at_millis: number;
|
|
374
374
|
tsx_source: string;
|
|
375
375
|
theme_id: string | null;
|
|
@@ -398,9 +398,10 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
398
398
|
skipped_details: Record<string, {} | null>;
|
|
399
399
|
} | {
|
|
400
400
|
status: "bounced";
|
|
401
|
+
id: string;
|
|
401
402
|
html: string | null;
|
|
402
403
|
text: string | null;
|
|
403
|
-
|
|
404
|
+
created_at_millis: number;
|
|
404
405
|
subject: string;
|
|
405
406
|
to: {
|
|
406
407
|
user_id: string;
|
|
@@ -413,8 +414,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
413
414
|
type: "custom-emails";
|
|
414
415
|
emails: string[];
|
|
415
416
|
};
|
|
416
|
-
created_at_millis: number;
|
|
417
|
-
notification_category_id: string | null;
|
|
418
417
|
updated_at_millis: number;
|
|
419
418
|
tsx_source: string;
|
|
420
419
|
theme_id: string | null;
|
|
@@ -442,13 +441,15 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
442
441
|
rendered_at_millis: number;
|
|
443
442
|
is_transactional: boolean;
|
|
444
443
|
is_high_priority: boolean;
|
|
444
|
+
notification_category_id: string | null;
|
|
445
445
|
started_sending_at_millis: number;
|
|
446
446
|
bounced_at_millis: number;
|
|
447
447
|
} | {
|
|
448
448
|
status: "delivery-delayed";
|
|
449
|
+
id: string;
|
|
449
450
|
html: string | null;
|
|
450
451
|
text: string | null;
|
|
451
|
-
|
|
452
|
+
created_at_millis: number;
|
|
452
453
|
subject: string;
|
|
453
454
|
to: {
|
|
454
455
|
user_id: string;
|
|
@@ -461,8 +462,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
461
462
|
type: "custom-emails";
|
|
462
463
|
emails: string[];
|
|
463
464
|
};
|
|
464
|
-
created_at_millis: number;
|
|
465
|
-
notification_category_id: string | null;
|
|
466
465
|
updated_at_millis: number;
|
|
467
466
|
tsx_source: string;
|
|
468
467
|
theme_id: string | null;
|
|
@@ -490,13 +489,15 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
490
489
|
rendered_at_millis: number;
|
|
491
490
|
is_transactional: boolean;
|
|
492
491
|
is_high_priority: boolean;
|
|
492
|
+
notification_category_id: string | null;
|
|
493
493
|
started_sending_at_millis: number;
|
|
494
494
|
delivery_delayed_at_millis: number;
|
|
495
495
|
} | {
|
|
496
496
|
status: "sent";
|
|
497
|
+
id: string;
|
|
497
498
|
html: string | null;
|
|
498
499
|
text: string | null;
|
|
499
|
-
|
|
500
|
+
created_at_millis: number;
|
|
500
501
|
subject: string;
|
|
501
502
|
to: {
|
|
502
503
|
user_id: string;
|
|
@@ -509,8 +510,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
509
510
|
type: "custom-emails";
|
|
510
511
|
emails: string[];
|
|
511
512
|
};
|
|
512
|
-
created_at_millis: number;
|
|
513
|
-
notification_category_id: string | null;
|
|
514
513
|
updated_at_millis: number;
|
|
515
514
|
tsx_source: string;
|
|
516
515
|
theme_id: string | null;
|
|
@@ -538,14 +537,16 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
538
537
|
rendered_at_millis: number;
|
|
539
538
|
is_transactional: boolean;
|
|
540
539
|
is_high_priority: boolean;
|
|
540
|
+
notification_category_id: string | null;
|
|
541
541
|
started_sending_at_millis: number;
|
|
542
542
|
delivered_at_millis: number;
|
|
543
543
|
can_have_delivery_info: boolean;
|
|
544
544
|
} | {
|
|
545
545
|
status: "opened";
|
|
546
|
+
id: string;
|
|
546
547
|
html: string | null;
|
|
547
548
|
text: string | null;
|
|
548
|
-
|
|
549
|
+
created_at_millis: number;
|
|
549
550
|
subject: string;
|
|
550
551
|
to: {
|
|
551
552
|
user_id: string;
|
|
@@ -558,8 +559,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
558
559
|
type: "custom-emails";
|
|
559
560
|
emails: string[];
|
|
560
561
|
};
|
|
561
|
-
created_at_millis: number;
|
|
562
|
-
notification_category_id: string | null;
|
|
563
562
|
updated_at_millis: number;
|
|
564
563
|
tsx_source: string;
|
|
565
564
|
theme_id: string | null;
|
|
@@ -587,15 +586,17 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
587
586
|
rendered_at_millis: number;
|
|
588
587
|
is_transactional: boolean;
|
|
589
588
|
is_high_priority: boolean;
|
|
589
|
+
notification_category_id: string | null;
|
|
590
590
|
started_sending_at_millis: number;
|
|
591
591
|
delivered_at_millis: number;
|
|
592
592
|
can_have_delivery_info: boolean;
|
|
593
593
|
opened_at_millis: number;
|
|
594
594
|
} | {
|
|
595
595
|
status: "clicked";
|
|
596
|
+
id: string;
|
|
596
597
|
html: string | null;
|
|
597
598
|
text: string | null;
|
|
598
|
-
|
|
599
|
+
created_at_millis: number;
|
|
599
600
|
subject: string;
|
|
600
601
|
to: {
|
|
601
602
|
user_id: string;
|
|
@@ -608,8 +609,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
608
609
|
type: "custom-emails";
|
|
609
610
|
emails: string[];
|
|
610
611
|
};
|
|
611
|
-
created_at_millis: number;
|
|
612
|
-
notification_category_id: string | null;
|
|
613
612
|
updated_at_millis: number;
|
|
614
613
|
tsx_source: string;
|
|
615
614
|
theme_id: string | null;
|
|
@@ -637,15 +636,17 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
637
636
|
rendered_at_millis: number;
|
|
638
637
|
is_transactional: boolean;
|
|
639
638
|
is_high_priority: boolean;
|
|
639
|
+
notification_category_id: string | null;
|
|
640
640
|
started_sending_at_millis: number;
|
|
641
641
|
delivered_at_millis: number;
|
|
642
642
|
can_have_delivery_info: boolean;
|
|
643
643
|
clicked_at_millis: number;
|
|
644
644
|
} | {
|
|
645
645
|
status: "marked-as-spam";
|
|
646
|
+
id: string;
|
|
646
647
|
html: string | null;
|
|
647
648
|
text: string | null;
|
|
648
|
-
|
|
649
|
+
created_at_millis: number;
|
|
649
650
|
subject: string;
|
|
650
651
|
to: {
|
|
651
652
|
user_id: string;
|
|
@@ -658,8 +659,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
658
659
|
type: "custom-emails";
|
|
659
660
|
emails: string[];
|
|
660
661
|
};
|
|
661
|
-
created_at_millis: number;
|
|
662
|
-
notification_category_id: string | null;
|
|
663
662
|
updated_at_millis: number;
|
|
664
663
|
tsx_source: string;
|
|
665
664
|
theme_id: string | null;
|
|
@@ -687,6 +686,7 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
|
|
|
687
686
|
rendered_at_millis: number;
|
|
688
687
|
is_transactional: boolean;
|
|
689
688
|
is_high_priority: boolean;
|
|
689
|
+
notification_category_id: string | null;
|
|
690
690
|
started_sending_at_millis: number;
|
|
691
691
|
delivered_at_millis: number;
|
|
692
692
|
can_have_delivery_info: boolean;
|
|
@@ -725,6 +725,7 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
725
725
|
serverReadSchema: yup$1.MixedSchema<{
|
|
726
726
|
status: "paused";
|
|
727
727
|
id: string;
|
|
728
|
+
created_at_millis: number;
|
|
728
729
|
to: {
|
|
729
730
|
user_id: string;
|
|
730
731
|
type: "user-primary-email";
|
|
@@ -736,7 +737,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
736
737
|
type: "custom-emails";
|
|
737
738
|
emails: string[];
|
|
738
739
|
};
|
|
739
|
-
created_at_millis: number;
|
|
740
740
|
updated_at_millis: number;
|
|
741
741
|
tsx_source: string;
|
|
742
742
|
theme_id: string | null;
|
|
@@ -763,6 +763,7 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
763
763
|
} | {
|
|
764
764
|
status: "preparing";
|
|
765
765
|
id: string;
|
|
766
|
+
created_at_millis: number;
|
|
766
767
|
to: {
|
|
767
768
|
user_id: string;
|
|
768
769
|
type: "user-primary-email";
|
|
@@ -774,7 +775,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
774
775
|
type: "custom-emails";
|
|
775
776
|
emails: string[];
|
|
776
777
|
};
|
|
777
|
-
created_at_millis: number;
|
|
778
778
|
updated_at_millis: number;
|
|
779
779
|
tsx_source: string;
|
|
780
780
|
theme_id: string | null;
|
|
@@ -801,6 +801,7 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
801
801
|
} | {
|
|
802
802
|
status: "rendering";
|
|
803
803
|
id: string;
|
|
804
|
+
created_at_millis: number;
|
|
804
805
|
to: {
|
|
805
806
|
user_id: string;
|
|
806
807
|
type: "user-primary-email";
|
|
@@ -812,7 +813,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
812
813
|
type: "custom-emails";
|
|
813
814
|
emails: string[];
|
|
814
815
|
};
|
|
815
|
-
created_at_millis: number;
|
|
816
816
|
updated_at_millis: number;
|
|
817
817
|
tsx_source: string;
|
|
818
818
|
theme_id: string | null;
|
|
@@ -840,6 +840,7 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
840
840
|
} | {
|
|
841
841
|
status: "render-error";
|
|
842
842
|
id: string;
|
|
843
|
+
created_at_millis: number;
|
|
843
844
|
to: {
|
|
844
845
|
user_id: string;
|
|
845
846
|
type: "user-primary-email";
|
|
@@ -851,7 +852,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
851
852
|
type: "custom-emails";
|
|
852
853
|
emails: string[];
|
|
853
854
|
};
|
|
854
|
-
created_at_millis: number;
|
|
855
855
|
updated_at_millis: number;
|
|
856
856
|
tsx_source: string;
|
|
857
857
|
theme_id: string | null;
|
|
@@ -880,9 +880,10 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
880
880
|
render_error: string;
|
|
881
881
|
} | {
|
|
882
882
|
status: "scheduled";
|
|
883
|
+
id: string;
|
|
883
884
|
html: string | null;
|
|
884
885
|
text: string | null;
|
|
885
|
-
|
|
886
|
+
created_at_millis: number;
|
|
886
887
|
subject: string;
|
|
887
888
|
to: {
|
|
888
889
|
user_id: string;
|
|
@@ -895,8 +896,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
895
896
|
type: "custom-emails";
|
|
896
897
|
emails: string[];
|
|
897
898
|
};
|
|
898
|
-
created_at_millis: number;
|
|
899
|
-
notification_category_id: string | null;
|
|
900
899
|
updated_at_millis: number;
|
|
901
900
|
tsx_source: string;
|
|
902
901
|
theme_id: string | null;
|
|
@@ -924,11 +923,13 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
924
923
|
rendered_at_millis: number;
|
|
925
924
|
is_transactional: boolean;
|
|
926
925
|
is_high_priority: boolean;
|
|
926
|
+
notification_category_id: string | null;
|
|
927
927
|
} | {
|
|
928
928
|
status: "queued";
|
|
929
|
+
id: string;
|
|
929
930
|
html: string | null;
|
|
930
931
|
text: string | null;
|
|
931
|
-
|
|
932
|
+
created_at_millis: number;
|
|
932
933
|
subject: string;
|
|
933
934
|
to: {
|
|
934
935
|
user_id: string;
|
|
@@ -941,8 +942,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
941
942
|
type: "custom-emails";
|
|
942
943
|
emails: string[];
|
|
943
944
|
};
|
|
944
|
-
created_at_millis: number;
|
|
945
|
-
notification_category_id: string | null;
|
|
946
945
|
updated_at_millis: number;
|
|
947
946
|
tsx_source: string;
|
|
948
947
|
theme_id: string | null;
|
|
@@ -970,11 +969,13 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
970
969
|
rendered_at_millis: number;
|
|
971
970
|
is_transactional: boolean;
|
|
972
971
|
is_high_priority: boolean;
|
|
972
|
+
notification_category_id: string | null;
|
|
973
973
|
} | {
|
|
974
974
|
status: "sending";
|
|
975
|
+
id: string;
|
|
975
976
|
html: string | null;
|
|
976
977
|
text: string | null;
|
|
977
|
-
|
|
978
|
+
created_at_millis: number;
|
|
978
979
|
subject: string;
|
|
979
980
|
to: {
|
|
980
981
|
user_id: string;
|
|
@@ -987,8 +988,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
987
988
|
type: "custom-emails";
|
|
988
989
|
emails: string[];
|
|
989
990
|
};
|
|
990
|
-
created_at_millis: number;
|
|
991
|
-
notification_category_id: string | null;
|
|
992
991
|
updated_at_millis: number;
|
|
993
992
|
tsx_source: string;
|
|
994
993
|
theme_id: string | null;
|
|
@@ -1016,12 +1015,14 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1016
1015
|
rendered_at_millis: number;
|
|
1017
1016
|
is_transactional: boolean;
|
|
1018
1017
|
is_high_priority: boolean;
|
|
1018
|
+
notification_category_id: string | null;
|
|
1019
1019
|
started_sending_at_millis: number;
|
|
1020
1020
|
} | {
|
|
1021
1021
|
status: "server-error";
|
|
1022
|
+
id: string;
|
|
1022
1023
|
html: string | null;
|
|
1023
1024
|
text: string | null;
|
|
1024
|
-
|
|
1025
|
+
created_at_millis: number;
|
|
1025
1026
|
subject: string;
|
|
1026
1027
|
to: {
|
|
1027
1028
|
user_id: string;
|
|
@@ -1034,8 +1035,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1034
1035
|
type: "custom-emails";
|
|
1035
1036
|
emails: string[];
|
|
1036
1037
|
};
|
|
1037
|
-
created_at_millis: number;
|
|
1038
|
-
notification_category_id: string | null;
|
|
1039
1038
|
updated_at_millis: number;
|
|
1040
1039
|
tsx_source: string;
|
|
1041
1040
|
theme_id: string | null;
|
|
@@ -1063,6 +1062,7 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1063
1062
|
rendered_at_millis: number;
|
|
1064
1063
|
is_transactional: boolean;
|
|
1065
1064
|
is_high_priority: boolean;
|
|
1065
|
+
notification_category_id: string | null;
|
|
1066
1066
|
started_sending_at_millis: number;
|
|
1067
1067
|
error_at_millis: number;
|
|
1068
1068
|
server_error: string;
|
|
@@ -1070,14 +1070,15 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1070
1070
|
html?: string | null | undefined;
|
|
1071
1071
|
text?: string | null | undefined;
|
|
1072
1072
|
subject?: string | undefined;
|
|
1073
|
-
notification_category_id?: string | null | undefined;
|
|
1074
1073
|
started_rendering_at_millis?: number | undefined;
|
|
1075
1074
|
rendered_at_millis?: number | undefined;
|
|
1076
1075
|
is_transactional?: boolean | undefined;
|
|
1077
1076
|
is_high_priority?: boolean | undefined;
|
|
1077
|
+
notification_category_id?: string | null | undefined;
|
|
1078
1078
|
started_sending_at_millis?: number | undefined;
|
|
1079
1079
|
status: "skipped";
|
|
1080
1080
|
id: string;
|
|
1081
|
+
created_at_millis: number;
|
|
1081
1082
|
to: {
|
|
1082
1083
|
user_id: string;
|
|
1083
1084
|
type: "user-primary-email";
|
|
@@ -1089,7 +1090,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1089
1090
|
type: "custom-emails";
|
|
1090
1091
|
emails: string[];
|
|
1091
1092
|
};
|
|
1092
|
-
created_at_millis: number;
|
|
1093
1093
|
updated_at_millis: number;
|
|
1094
1094
|
tsx_source: string;
|
|
1095
1095
|
theme_id: string | null;
|
|
@@ -1118,9 +1118,10 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1118
1118
|
skipped_details: Record<string, {} | null>;
|
|
1119
1119
|
} | {
|
|
1120
1120
|
status: "bounced";
|
|
1121
|
+
id: string;
|
|
1121
1122
|
html: string | null;
|
|
1122
1123
|
text: string | null;
|
|
1123
|
-
|
|
1124
|
+
created_at_millis: number;
|
|
1124
1125
|
subject: string;
|
|
1125
1126
|
to: {
|
|
1126
1127
|
user_id: string;
|
|
@@ -1133,8 +1134,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1133
1134
|
type: "custom-emails";
|
|
1134
1135
|
emails: string[];
|
|
1135
1136
|
};
|
|
1136
|
-
created_at_millis: number;
|
|
1137
|
-
notification_category_id: string | null;
|
|
1138
1137
|
updated_at_millis: number;
|
|
1139
1138
|
tsx_source: string;
|
|
1140
1139
|
theme_id: string | null;
|
|
@@ -1162,13 +1161,15 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1162
1161
|
rendered_at_millis: number;
|
|
1163
1162
|
is_transactional: boolean;
|
|
1164
1163
|
is_high_priority: boolean;
|
|
1164
|
+
notification_category_id: string | null;
|
|
1165
1165
|
started_sending_at_millis: number;
|
|
1166
1166
|
bounced_at_millis: number;
|
|
1167
1167
|
} | {
|
|
1168
1168
|
status: "delivery-delayed";
|
|
1169
|
+
id: string;
|
|
1169
1170
|
html: string | null;
|
|
1170
1171
|
text: string | null;
|
|
1171
|
-
|
|
1172
|
+
created_at_millis: number;
|
|
1172
1173
|
subject: string;
|
|
1173
1174
|
to: {
|
|
1174
1175
|
user_id: string;
|
|
@@ -1181,8 +1182,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1181
1182
|
type: "custom-emails";
|
|
1182
1183
|
emails: string[];
|
|
1183
1184
|
};
|
|
1184
|
-
created_at_millis: number;
|
|
1185
|
-
notification_category_id: string | null;
|
|
1186
1185
|
updated_at_millis: number;
|
|
1187
1186
|
tsx_source: string;
|
|
1188
1187
|
theme_id: string | null;
|
|
@@ -1210,13 +1209,15 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1210
1209
|
rendered_at_millis: number;
|
|
1211
1210
|
is_transactional: boolean;
|
|
1212
1211
|
is_high_priority: boolean;
|
|
1212
|
+
notification_category_id: string | null;
|
|
1213
1213
|
started_sending_at_millis: number;
|
|
1214
1214
|
delivery_delayed_at_millis: number;
|
|
1215
1215
|
} | {
|
|
1216
1216
|
status: "sent";
|
|
1217
|
+
id: string;
|
|
1217
1218
|
html: string | null;
|
|
1218
1219
|
text: string | null;
|
|
1219
|
-
|
|
1220
|
+
created_at_millis: number;
|
|
1220
1221
|
subject: string;
|
|
1221
1222
|
to: {
|
|
1222
1223
|
user_id: string;
|
|
@@ -1229,8 +1230,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1229
1230
|
type: "custom-emails";
|
|
1230
1231
|
emails: string[];
|
|
1231
1232
|
};
|
|
1232
|
-
created_at_millis: number;
|
|
1233
|
-
notification_category_id: string | null;
|
|
1234
1233
|
updated_at_millis: number;
|
|
1235
1234
|
tsx_source: string;
|
|
1236
1235
|
theme_id: string | null;
|
|
@@ -1258,14 +1257,16 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1258
1257
|
rendered_at_millis: number;
|
|
1259
1258
|
is_transactional: boolean;
|
|
1260
1259
|
is_high_priority: boolean;
|
|
1260
|
+
notification_category_id: string | null;
|
|
1261
1261
|
started_sending_at_millis: number;
|
|
1262
1262
|
delivered_at_millis: number;
|
|
1263
1263
|
can_have_delivery_info: boolean;
|
|
1264
1264
|
} | {
|
|
1265
1265
|
status: "opened";
|
|
1266
|
+
id: string;
|
|
1266
1267
|
html: string | null;
|
|
1267
1268
|
text: string | null;
|
|
1268
|
-
|
|
1269
|
+
created_at_millis: number;
|
|
1269
1270
|
subject: string;
|
|
1270
1271
|
to: {
|
|
1271
1272
|
user_id: string;
|
|
@@ -1278,8 +1279,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1278
1279
|
type: "custom-emails";
|
|
1279
1280
|
emails: string[];
|
|
1280
1281
|
};
|
|
1281
|
-
created_at_millis: number;
|
|
1282
|
-
notification_category_id: string | null;
|
|
1283
1282
|
updated_at_millis: number;
|
|
1284
1283
|
tsx_source: string;
|
|
1285
1284
|
theme_id: string | null;
|
|
@@ -1307,15 +1306,17 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1307
1306
|
rendered_at_millis: number;
|
|
1308
1307
|
is_transactional: boolean;
|
|
1309
1308
|
is_high_priority: boolean;
|
|
1309
|
+
notification_category_id: string | null;
|
|
1310
1310
|
started_sending_at_millis: number;
|
|
1311
1311
|
delivered_at_millis: number;
|
|
1312
1312
|
can_have_delivery_info: boolean;
|
|
1313
1313
|
opened_at_millis: number;
|
|
1314
1314
|
} | {
|
|
1315
1315
|
status: "clicked";
|
|
1316
|
+
id: string;
|
|
1316
1317
|
html: string | null;
|
|
1317
1318
|
text: string | null;
|
|
1318
|
-
|
|
1319
|
+
created_at_millis: number;
|
|
1319
1320
|
subject: string;
|
|
1320
1321
|
to: {
|
|
1321
1322
|
user_id: string;
|
|
@@ -1328,8 +1329,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1328
1329
|
type: "custom-emails";
|
|
1329
1330
|
emails: string[];
|
|
1330
1331
|
};
|
|
1331
|
-
created_at_millis: number;
|
|
1332
|
-
notification_category_id: string | null;
|
|
1333
1332
|
updated_at_millis: number;
|
|
1334
1333
|
tsx_source: string;
|
|
1335
1334
|
theme_id: string | null;
|
|
@@ -1357,15 +1356,17 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1357
1356
|
rendered_at_millis: number;
|
|
1358
1357
|
is_transactional: boolean;
|
|
1359
1358
|
is_high_priority: boolean;
|
|
1359
|
+
notification_category_id: string | null;
|
|
1360
1360
|
started_sending_at_millis: number;
|
|
1361
1361
|
delivered_at_millis: number;
|
|
1362
1362
|
can_have_delivery_info: boolean;
|
|
1363
1363
|
clicked_at_millis: number;
|
|
1364
1364
|
} | {
|
|
1365
1365
|
status: "marked-as-spam";
|
|
1366
|
+
id: string;
|
|
1366
1367
|
html: string | null;
|
|
1367
1368
|
text: string | null;
|
|
1368
|
-
|
|
1369
|
+
created_at_millis: number;
|
|
1369
1370
|
subject: string;
|
|
1370
1371
|
to: {
|
|
1371
1372
|
user_id: string;
|
|
@@ -1378,8 +1379,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1378
1379
|
type: "custom-emails";
|
|
1379
1380
|
emails: string[];
|
|
1380
1381
|
};
|
|
1381
|
-
created_at_millis: number;
|
|
1382
|
-
notification_category_id: string | null;
|
|
1383
1382
|
updated_at_millis: number;
|
|
1384
1383
|
tsx_source: string;
|
|
1385
1384
|
theme_id: string | null;
|
|
@@ -1407,6 +1406,7 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
|
|
|
1407
1406
|
rendered_at_millis: number;
|
|
1408
1407
|
is_transactional: boolean;
|
|
1409
1408
|
is_high_priority: boolean;
|
|
1409
|
+
notification_category_id: string | null;
|
|
1410
1410
|
started_sending_at_millis: number;
|
|
1411
1411
|
delivered_at_millis: number;
|
|
1412
1412
|
can_have_delivery_info: boolean;
|
|
@@ -3,7 +3,7 @@ import * as yup$1 from "yup";
|
|
|
3
3
|
//#region src/interface/crud/invoices.d.ts
|
|
4
4
|
declare const customerInvoiceReadSchema: yup$1.ObjectSchema<{
|
|
5
5
|
created_at_millis: number;
|
|
6
|
-
status: "
|
|
6
|
+
status: "open" | "draft" | "paid" | "uncollectible" | "void" | null;
|
|
7
7
|
amount_total: number;
|
|
8
8
|
hosted_invoice_url: string | null;
|
|
9
9
|
}, yup$1.AnyObject, {
|
|
@@ -15,7 +15,7 @@ declare const customerInvoiceReadSchema: yup$1.ObjectSchema<{
|
|
|
15
15
|
type CustomerInvoiceRead = yup$1.InferType<typeof customerInvoiceReadSchema>;
|
|
16
16
|
declare const customerInvoicesListResponseSchema: yup$1.ObjectSchema<{
|
|
17
17
|
items: {
|
|
18
|
-
status: "
|
|
18
|
+
status: "open" | "draft" | "paid" | "uncollectible" | "void" | null;
|
|
19
19
|
created_at_millis: number;
|
|
20
20
|
amount_total: number;
|
|
21
21
|
hosted_invoice_url: string | null;
|