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