controlresell 2.2.8 → 2.2.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "controlresell",
3
- "version": "2.2.8",
3
+ "version": "2.2.9",
4
4
  "main": "src/index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -299,6 +299,35 @@ export declare const CreatedItemsSchema: z.ZodObject<{
299
299
  soldOrderId: string;
300
300
  soldConversationId?: string | null | undefined;
301
301
  };
302
+ }>, z.ZodObject<{
303
+ type: z.ZodLiteral<"DELIVERED">;
304
+ data: z.ZodObject<{
305
+ soldAccountId: z.ZodString;
306
+ soldOrderId: z.ZodString;
307
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
308
+ }, "strip", z.ZodTypeAny, {
309
+ soldAccountId: string;
310
+ soldOrderId: string;
311
+ soldConversationId?: string | null | undefined;
312
+ }, {
313
+ soldAccountId: string;
314
+ soldOrderId: string;
315
+ soldConversationId?: string | null | undefined;
316
+ }>;
317
+ }, "strip", z.ZodTypeAny, {
318
+ type: "DELIVERED";
319
+ data: {
320
+ soldAccountId: string;
321
+ soldOrderId: string;
322
+ soldConversationId?: string | null | undefined;
323
+ };
324
+ }, {
325
+ type: "DELIVERED";
326
+ data: {
327
+ soldAccountId: string;
328
+ soldOrderId: string;
329
+ soldConversationId?: string | null | undefined;
330
+ };
302
331
  }>]>>>;
303
332
  createdAt: z.ZodDate;
304
333
  }, "strip", z.ZodTypeAny, {
@@ -326,6 +355,13 @@ export declare const CreatedItemsSchema: z.ZodObject<{
326
355
  soldOrderId: string;
327
356
  soldConversationId?: string | null | undefined;
328
357
  };
358
+ } | {
359
+ type: "DELIVERED";
360
+ data: {
361
+ soldAccountId: string;
362
+ soldOrderId: string;
363
+ soldConversationId?: string | null | undefined;
364
+ };
329
365
  } | null | undefined;
330
366
  }, {
331
367
  type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
@@ -352,6 +388,13 @@ export declare const CreatedItemsSchema: z.ZodObject<{
352
388
  soldOrderId: string;
353
389
  soldConversationId?: string | null | undefined;
354
390
  };
391
+ } | {
392
+ type: "DELIVERED";
393
+ data: {
394
+ soldAccountId: string;
395
+ soldOrderId: string;
396
+ soldConversationId?: string | null | undefined;
397
+ };
355
398
  } | null | undefined;
356
399
  }>>>;
357
400
  platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -542,6 +585,13 @@ export declare const CreatedItemsSchema: z.ZodObject<{
542
585
  soldOrderId: string;
543
586
  soldConversationId?: string | null | undefined;
544
587
  };
588
+ } | {
589
+ type: "DELIVERED";
590
+ data: {
591
+ soldAccountId: string;
592
+ soldOrderId: string;
593
+ soldConversationId?: string | null | undefined;
594
+ };
545
595
  } | null | undefined;
546
596
  } | null | undefined;
547
597
  }, {
@@ -672,6 +722,13 @@ export declare const CreatedItemsSchema: z.ZodObject<{
672
722
  soldOrderId: string;
673
723
  soldConversationId?: string | null | undefined;
674
724
  };
725
+ } | {
726
+ type: "DELIVERED";
727
+ data: {
728
+ soldAccountId: string;
729
+ soldOrderId: string;
730
+ soldConversationId?: string | null | undefined;
731
+ };
675
732
  } | null | undefined;
676
733
  } | null | undefined;
677
734
  }>, "many">;
@@ -826,6 +883,13 @@ export declare const CreatedItemsSchema: z.ZodObject<{
826
883
  soldOrderId: string;
827
884
  soldConversationId?: string | null | undefined;
828
885
  };
886
+ } | {
887
+ type: "DELIVERED";
888
+ data: {
889
+ soldAccountId: string;
890
+ soldOrderId: string;
891
+ soldConversationId?: string | null | undefined;
892
+ };
829
893
  } | null | undefined;
830
894
  } | null | undefined;
831
895
  }[];
@@ -966,6 +1030,13 @@ export declare const CreatedItemsSchema: z.ZodObject<{
966
1030
  soldOrderId: string;
967
1031
  soldConversationId?: string | null | undefined;
968
1032
  };
1033
+ } | {
1034
+ type: "DELIVERED";
1035
+ data: {
1036
+ soldAccountId: string;
1037
+ soldOrderId: string;
1038
+ soldConversationId?: string | null | undefined;
1039
+ };
969
1040
  } | null | undefined;
970
1041
  } | null | undefined;
971
1042
  }[];
@@ -298,6 +298,35 @@ export declare const ItemSchema: z.ZodObject<{
298
298
  soldOrderId: string;
299
299
  soldConversationId?: string | null | undefined;
300
300
  };
301
+ }>, z.ZodObject<{
302
+ type: z.ZodLiteral<"DELIVERED">;
303
+ data: z.ZodObject<{
304
+ soldAccountId: z.ZodString;
305
+ soldOrderId: z.ZodString;
306
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
307
+ }, "strip", z.ZodTypeAny, {
308
+ soldAccountId: string;
309
+ soldOrderId: string;
310
+ soldConversationId?: string | null | undefined;
311
+ }, {
312
+ soldAccountId: string;
313
+ soldOrderId: string;
314
+ soldConversationId?: string | null | undefined;
315
+ }>;
316
+ }, "strip", z.ZodTypeAny, {
317
+ type: "DELIVERED";
318
+ data: {
319
+ soldAccountId: string;
320
+ soldOrderId: string;
321
+ soldConversationId?: string | null | undefined;
322
+ };
323
+ }, {
324
+ type: "DELIVERED";
325
+ data: {
326
+ soldAccountId: string;
327
+ soldOrderId: string;
328
+ soldConversationId?: string | null | undefined;
329
+ };
301
330
  }>]>>>;
302
331
  createdAt: z.ZodDate;
303
332
  }, "strip", z.ZodTypeAny, {
@@ -325,6 +354,13 @@ export declare const ItemSchema: z.ZodObject<{
325
354
  soldOrderId: string;
326
355
  soldConversationId?: string | null | undefined;
327
356
  };
357
+ } | {
358
+ type: "DELIVERED";
359
+ data: {
360
+ soldAccountId: string;
361
+ soldOrderId: string;
362
+ soldConversationId?: string | null | undefined;
363
+ };
328
364
  } | null | undefined;
329
365
  }, {
330
366
  type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
@@ -351,6 +387,13 @@ export declare const ItemSchema: z.ZodObject<{
351
387
  soldOrderId: string;
352
388
  soldConversationId?: string | null | undefined;
353
389
  };
390
+ } | {
391
+ type: "DELIVERED";
392
+ data: {
393
+ soldAccountId: string;
394
+ soldOrderId: string;
395
+ soldConversationId?: string | null | undefined;
396
+ };
354
397
  } | null | undefined;
355
398
  }>>>;
356
399
  platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -541,6 +584,13 @@ export declare const ItemSchema: z.ZodObject<{
541
584
  soldOrderId: string;
542
585
  soldConversationId?: string | null | undefined;
543
586
  };
587
+ } | {
588
+ type: "DELIVERED";
589
+ data: {
590
+ soldAccountId: string;
591
+ soldOrderId: string;
592
+ soldConversationId?: string | null | undefined;
593
+ };
544
594
  } | null | undefined;
545
595
  } | null | undefined;
546
596
  }, {
@@ -671,6 +721,13 @@ export declare const ItemSchema: z.ZodObject<{
671
721
  soldOrderId: string;
672
722
  soldConversationId?: string | null | undefined;
673
723
  };
724
+ } | {
725
+ type: "DELIVERED";
726
+ data: {
727
+ soldAccountId: string;
728
+ soldOrderId: string;
729
+ soldConversationId?: string | null | undefined;
730
+ };
674
731
  } | null | undefined;
675
732
  } | null | undefined;
676
733
  }>;
@@ -301,6 +301,35 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
301
301
  soldOrderId: string;
302
302
  soldConversationId?: string | null | undefined;
303
303
  };
304
+ }>, z.ZodObject<{
305
+ type: z.ZodLiteral<"DELIVERED">;
306
+ data: z.ZodObject<{
307
+ soldAccountId: z.ZodString;
308
+ soldOrderId: z.ZodString;
309
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
310
+ }, "strip", z.ZodTypeAny, {
311
+ soldAccountId: string;
312
+ soldOrderId: string;
313
+ soldConversationId?: string | null | undefined;
314
+ }, {
315
+ soldAccountId: string;
316
+ soldOrderId: string;
317
+ soldConversationId?: string | null | undefined;
318
+ }>;
319
+ }, "strip", z.ZodTypeAny, {
320
+ type: "DELIVERED";
321
+ data: {
322
+ soldAccountId: string;
323
+ soldOrderId: string;
324
+ soldConversationId?: string | null | undefined;
325
+ };
326
+ }, {
327
+ type: "DELIVERED";
328
+ data: {
329
+ soldAccountId: string;
330
+ soldOrderId: string;
331
+ soldConversationId?: string | null | undefined;
332
+ };
304
333
  }>]>>>;
305
334
  createdAt: z.ZodDate;
306
335
  }, "strip", z.ZodTypeAny, {
@@ -328,6 +357,13 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
328
357
  soldOrderId: string;
329
358
  soldConversationId?: string | null | undefined;
330
359
  };
360
+ } | {
361
+ type: "DELIVERED";
362
+ data: {
363
+ soldAccountId: string;
364
+ soldOrderId: string;
365
+ soldConversationId?: string | null | undefined;
366
+ };
331
367
  } | null | undefined;
332
368
  }, {
333
369
  type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
@@ -354,6 +390,13 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
354
390
  soldOrderId: string;
355
391
  soldConversationId?: string | null | undefined;
356
392
  };
393
+ } | {
394
+ type: "DELIVERED";
395
+ data: {
396
+ soldAccountId: string;
397
+ soldOrderId: string;
398
+ soldConversationId?: string | null | undefined;
399
+ };
357
400
  } | null | undefined;
358
401
  }>>>;
359
402
  platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -544,6 +587,13 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
544
587
  soldOrderId: string;
545
588
  soldConversationId?: string | null | undefined;
546
589
  };
590
+ } | {
591
+ type: "DELIVERED";
592
+ data: {
593
+ soldAccountId: string;
594
+ soldOrderId: string;
595
+ soldConversationId?: string | null | undefined;
596
+ };
547
597
  } | null | undefined;
548
598
  } | null | undefined;
549
599
  }, {
@@ -674,6 +724,13 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
674
724
  soldOrderId: string;
675
725
  soldConversationId?: string | null | undefined;
676
726
  };
727
+ } | {
728
+ type: "DELIVERED";
729
+ data: {
730
+ soldAccountId: string;
731
+ soldOrderId: string;
732
+ soldConversationId?: string | null | undefined;
733
+ };
677
734
  } | null | undefined;
678
735
  } | null | undefined;
679
736
  }>, "many">;
@@ -810,6 +867,13 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
810
867
  soldOrderId: string;
811
868
  soldConversationId?: string | null | undefined;
812
869
  };
870
+ } | {
871
+ type: "DELIVERED";
872
+ data: {
873
+ soldAccountId: string;
874
+ soldOrderId: string;
875
+ soldConversationId?: string | null | undefined;
876
+ };
813
877
  } | null | undefined;
814
878
  } | null | undefined;
815
879
  }[];
@@ -946,6 +1010,13 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
946
1010
  soldOrderId: string;
947
1011
  soldConversationId?: string | null | undefined;
948
1012
  };
1013
+ } | {
1014
+ type: "DELIVERED";
1015
+ data: {
1016
+ soldAccountId: string;
1017
+ soldOrderId: string;
1018
+ soldConversationId?: string | null | undefined;
1019
+ };
949
1020
  } | null | undefined;
950
1021
  } | null | undefined;
951
1022
  }[];
@@ -299,6 +299,35 @@ export declare const UpdatedItemSchema: z.ZodObject<{
299
299
  soldOrderId: string;
300
300
  soldConversationId?: string | null | undefined;
301
301
  };
302
+ }>, z.ZodObject<{
303
+ type: z.ZodLiteral<"DELIVERED">;
304
+ data: z.ZodObject<{
305
+ soldAccountId: z.ZodString;
306
+ soldOrderId: z.ZodString;
307
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
308
+ }, "strip", z.ZodTypeAny, {
309
+ soldAccountId: string;
310
+ soldOrderId: string;
311
+ soldConversationId?: string | null | undefined;
312
+ }, {
313
+ soldAccountId: string;
314
+ soldOrderId: string;
315
+ soldConversationId?: string | null | undefined;
316
+ }>;
317
+ }, "strip", z.ZodTypeAny, {
318
+ type: "DELIVERED";
319
+ data: {
320
+ soldAccountId: string;
321
+ soldOrderId: string;
322
+ soldConversationId?: string | null | undefined;
323
+ };
324
+ }, {
325
+ type: "DELIVERED";
326
+ data: {
327
+ soldAccountId: string;
328
+ soldOrderId: string;
329
+ soldConversationId?: string | null | undefined;
330
+ };
302
331
  }>]>>>;
303
332
  createdAt: z.ZodDate;
304
333
  }, "strip", z.ZodTypeAny, {
@@ -326,6 +355,13 @@ export declare const UpdatedItemSchema: z.ZodObject<{
326
355
  soldOrderId: string;
327
356
  soldConversationId?: string | null | undefined;
328
357
  };
358
+ } | {
359
+ type: "DELIVERED";
360
+ data: {
361
+ soldAccountId: string;
362
+ soldOrderId: string;
363
+ soldConversationId?: string | null | undefined;
364
+ };
329
365
  } | null | undefined;
330
366
  }, {
331
367
  type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
@@ -352,6 +388,13 @@ export declare const UpdatedItemSchema: z.ZodObject<{
352
388
  soldOrderId: string;
353
389
  soldConversationId?: string | null | undefined;
354
390
  };
391
+ } | {
392
+ type: "DELIVERED";
393
+ data: {
394
+ soldAccountId: string;
395
+ soldOrderId: string;
396
+ soldConversationId?: string | null | undefined;
397
+ };
355
398
  } | null | undefined;
356
399
  }>>>;
357
400
  platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -542,6 +585,13 @@ export declare const UpdatedItemSchema: z.ZodObject<{
542
585
  soldOrderId: string;
543
586
  soldConversationId?: string | null | undefined;
544
587
  };
588
+ } | {
589
+ type: "DELIVERED";
590
+ data: {
591
+ soldAccountId: string;
592
+ soldOrderId: string;
593
+ soldConversationId?: string | null | undefined;
594
+ };
545
595
  } | null | undefined;
546
596
  } | null | undefined;
547
597
  }, {
@@ -672,6 +722,13 @@ export declare const UpdatedItemSchema: z.ZodObject<{
672
722
  soldOrderId: string;
673
723
  soldConversationId?: string | null | undefined;
674
724
  };
725
+ } | {
726
+ type: "DELIVERED";
727
+ data: {
728
+ soldAccountId: string;
729
+ soldOrderId: string;
730
+ soldConversationId?: string | null | undefined;
731
+ };
675
732
  } | null | undefined;
676
733
  } | null | undefined;
677
734
  }>;
@@ -834,6 +891,13 @@ export declare const UpdatedItemSchema: z.ZodObject<{
834
891
  soldOrderId: string;
835
892
  soldConversationId?: string | null | undefined;
836
893
  };
894
+ } | {
895
+ type: "DELIVERED";
896
+ data: {
897
+ soldAccountId: string;
898
+ soldOrderId: string;
899
+ soldConversationId?: string | null | undefined;
900
+ };
837
901
  } | null | undefined;
838
902
  } | null | undefined;
839
903
  };
@@ -974,6 +1038,13 @@ export declare const UpdatedItemSchema: z.ZodObject<{
974
1038
  soldOrderId: string;
975
1039
  soldConversationId?: string | null | undefined;
976
1040
  };
1041
+ } | {
1042
+ type: "DELIVERED";
1043
+ data: {
1044
+ soldAccountId: string;
1045
+ soldOrderId: string;
1046
+ soldConversationId?: string | null | undefined;
1047
+ };
977
1048
  } | null | undefined;
978
1049
  } | null | undefined;
979
1050
  };
@@ -79,6 +79,35 @@ export declare const CreateItemHistoryPayloadSchema: z.ZodObject<{
79
79
  soldOrderId: string;
80
80
  soldConversationId?: string | null | undefined;
81
81
  };
82
+ }>, z.ZodObject<{
83
+ type: z.ZodLiteral<"DELIVERED">;
84
+ data: z.ZodObject<{
85
+ soldAccountId: z.ZodString;
86
+ soldOrderId: z.ZodString;
87
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
88
+ }, "strip", z.ZodTypeAny, {
89
+ soldAccountId: string;
90
+ soldOrderId: string;
91
+ soldConversationId?: string | null | undefined;
92
+ }, {
93
+ soldAccountId: string;
94
+ soldOrderId: string;
95
+ soldConversationId?: string | null | undefined;
96
+ }>;
97
+ }, "strip", z.ZodTypeAny, {
98
+ type: "DELIVERED";
99
+ data: {
100
+ soldAccountId: string;
101
+ soldOrderId: string;
102
+ soldConversationId?: string | null | undefined;
103
+ };
104
+ }, {
105
+ type: "DELIVERED";
106
+ data: {
107
+ soldAccountId: string;
108
+ soldOrderId: string;
109
+ soldConversationId?: string | null | undefined;
110
+ };
82
111
  }>]>;
83
112
  }, "strip", z.ZodTypeAny, {
84
113
  type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
@@ -102,6 +131,13 @@ export declare const CreateItemHistoryPayloadSchema: z.ZodObject<{
102
131
  soldOrderId: string;
103
132
  soldConversationId?: string | null | undefined;
104
133
  };
134
+ } | {
135
+ type: "DELIVERED";
136
+ data: {
137
+ soldAccountId: string;
138
+ soldOrderId: string;
139
+ soldConversationId?: string | null | undefined;
140
+ };
105
141
  };
106
142
  }, {
107
143
  type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
@@ -125,6 +161,13 @@ export declare const CreateItemHistoryPayloadSchema: z.ZodObject<{
125
161
  soldOrderId: string;
126
162
  soldConversationId?: string | null | undefined;
127
163
  };
164
+ } | {
165
+ type: "DELIVERED";
166
+ data: {
167
+ soldAccountId: string;
168
+ soldOrderId: string;
169
+ soldConversationId?: string | null | undefined;
170
+ };
128
171
  };
129
172
  }>;
130
173
  export type CreateItemHistoryPayload = z.infer<typeof CreateItemHistoryPayloadSchema>;
@@ -81,6 +81,35 @@ export declare const ItemHistorySchema: z.ZodObject<{
81
81
  soldOrderId: string;
82
82
  soldConversationId?: string | null | undefined;
83
83
  };
84
+ }>, z.ZodObject<{
85
+ type: z.ZodLiteral<"DELIVERED">;
86
+ data: z.ZodObject<{
87
+ soldAccountId: z.ZodString;
88
+ soldOrderId: z.ZodString;
89
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ soldAccountId: string;
92
+ soldOrderId: string;
93
+ soldConversationId?: string | null | undefined;
94
+ }, {
95
+ soldAccountId: string;
96
+ soldOrderId: string;
97
+ soldConversationId?: string | null | undefined;
98
+ }>;
99
+ }, "strip", z.ZodTypeAny, {
100
+ type: "DELIVERED";
101
+ data: {
102
+ soldAccountId: string;
103
+ soldOrderId: string;
104
+ soldConversationId?: string | null | undefined;
105
+ };
106
+ }, {
107
+ type: "DELIVERED";
108
+ data: {
109
+ soldAccountId: string;
110
+ soldOrderId: string;
111
+ soldConversationId?: string | null | undefined;
112
+ };
84
113
  }>]>>>;
85
114
  createdAt: z.ZodDate;
86
115
  }, "strip", z.ZodTypeAny, {
@@ -108,6 +137,13 @@ export declare const ItemHistorySchema: z.ZodObject<{
108
137
  soldOrderId: string;
109
138
  soldConversationId?: string | null | undefined;
110
139
  };
140
+ } | {
141
+ type: "DELIVERED";
142
+ data: {
143
+ soldAccountId: string;
144
+ soldOrderId: string;
145
+ soldConversationId?: string | null | undefined;
146
+ };
111
147
  } | null | undefined;
112
148
  }, {
113
149
  type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
@@ -134,6 +170,13 @@ export declare const ItemHistorySchema: z.ZodObject<{
134
170
  soldOrderId: string;
135
171
  soldConversationId?: string | null | undefined;
136
172
  };
173
+ } | {
174
+ type: "DELIVERED";
175
+ data: {
176
+ soldAccountId: string;
177
+ soldOrderId: string;
178
+ soldConversationId?: string | null | undefined;
179
+ };
137
180
  } | null | undefined;
138
181
  }>;
139
182
  export type ItemHistory = z.infer<typeof ItemHistorySchema>;
@@ -77,5 +77,34 @@ export declare const ItemHistoryDecodedPayloadSchema: z.ZodDiscriminatedUnion<"t
77
77
  soldOrderId: string;
78
78
  soldConversationId?: string | null | undefined;
79
79
  };
80
+ }>, z.ZodObject<{
81
+ type: z.ZodLiteral<"DELIVERED">;
82
+ data: z.ZodObject<{
83
+ soldAccountId: z.ZodString;
84
+ soldOrderId: z.ZodString;
85
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
86
+ }, "strip", z.ZodTypeAny, {
87
+ soldAccountId: string;
88
+ soldOrderId: string;
89
+ soldConversationId?: string | null | undefined;
90
+ }, {
91
+ soldAccountId: string;
92
+ soldOrderId: string;
93
+ soldConversationId?: string | null | undefined;
94
+ }>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ type: "DELIVERED";
97
+ data: {
98
+ soldAccountId: string;
99
+ soldOrderId: string;
100
+ soldConversationId?: string | null | undefined;
101
+ };
102
+ }, {
103
+ type: "DELIVERED";
104
+ data: {
105
+ soldAccountId: string;
106
+ soldOrderId: string;
107
+ soldConversationId?: string | null | undefined;
108
+ };
80
109
  }>]>;
81
110
  export type ItemHistoryDecodedPayload = z.infer<typeof ItemHistoryDecodedPayloadSchema>;
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
5
5
  const ItemHistoryScheduledPayload_1 = require("./data/ItemHistoryScheduledPayload");
6
6
  const ItemHistoryFailedToPublishPayload_1 = require("./data/ItemHistoryFailedToPublishPayload");
7
7
  const ItemHistoryBuyerPaidPayload_1 = require("./data/ItemHistoryBuyerPaidPayload");
8
+ const ItemHistoryDeliveredPayload_1 = require("./data/ItemHistoryDeliveredPayload");
8
9
  exports.ItemHistoryDecodedPayloadSchema = zod_1.z.discriminatedUnion("type", [
9
10
  zod_1.z.object({
10
11
  type: zod_1.z.literal("EMPTY"),
@@ -21,4 +22,8 @@ exports.ItemHistoryDecodedPayloadSchema = zod_1.z.discriminatedUnion("type", [
21
22
  type: zod_1.z.literal("BUYER_PAID"),
22
23
  data: ItemHistoryBuyerPaidPayload_1.ItemHistoryBuyerPaidPayloadSchema,
23
24
  }),
25
+ zod_1.z.object({
26
+ type: zod_1.z.literal("DELIVERED"),
27
+ data: ItemHistoryDeliveredPayload_1.ItemHistoryDeliveredPayloadSchema,
28
+ }),
24
29
  ]);
@@ -3,6 +3,7 @@ import {z} from "zod"
3
3
  import {ItemHistoryScheduledPayloadSchema} from "./data/ItemHistoryScheduledPayload"
4
4
  import {ItemHistoryFailedToPublishPayloadSchema} from "./data/ItemHistoryFailedToPublishPayload"
5
5
  import {ItemHistoryBuyerPaidPayloadSchema} from "./data/ItemHistoryBuyerPaidPayload"
6
+ import {ItemHistoryDeliveredPayloadSchema} from "./data/ItemHistoryDeliveredPayload"
6
7
 
7
8
  export const ItemHistoryDecodedPayloadSchema = z.discriminatedUnion("type", [
8
9
  z.object({
@@ -20,5 +21,9 @@ export const ItemHistoryDecodedPayloadSchema = z.discriminatedUnion("type", [
20
21
  type: z.literal("BUYER_PAID"),
21
22
  data: ItemHistoryBuyerPaidPayloadSchema,
22
23
  }),
24
+ z.object({
25
+ type: z.literal("DELIVERED"),
26
+ data: ItemHistoryDeliveredPayloadSchema,
27
+ }),
23
28
  ])
24
29
  export type ItemHistoryDecodedPayload = z.infer<typeof ItemHistoryDecodedPayloadSchema>
@@ -589,6 +589,35 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
589
589
  soldOrderId: string;
590
590
  soldConversationId?: string | null | undefined;
591
591
  };
592
+ }>, z.ZodObject<{
593
+ type: z.ZodLiteral<"DELIVERED">;
594
+ data: z.ZodObject<{
595
+ soldAccountId: z.ZodString;
596
+ soldOrderId: z.ZodString;
597
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
598
+ }, "strip", z.ZodTypeAny, {
599
+ soldAccountId: string;
600
+ soldOrderId: string;
601
+ soldConversationId?: string | null | undefined;
602
+ }, {
603
+ soldAccountId: string;
604
+ soldOrderId: string;
605
+ soldConversationId?: string | null | undefined;
606
+ }>;
607
+ }, "strip", z.ZodTypeAny, {
608
+ type: "DELIVERED";
609
+ data: {
610
+ soldAccountId: string;
611
+ soldOrderId: string;
612
+ soldConversationId?: string | null | undefined;
613
+ };
614
+ }, {
615
+ type: "DELIVERED";
616
+ data: {
617
+ soldAccountId: string;
618
+ soldOrderId: string;
619
+ soldConversationId?: string | null | undefined;
620
+ };
592
621
  }>]>>>;
593
622
  createdAt: z.ZodDate;
594
623
  }, "strip", z.ZodTypeAny, {
@@ -616,6 +645,13 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
616
645
  soldOrderId: string;
617
646
  soldConversationId?: string | null | undefined;
618
647
  };
648
+ } | {
649
+ type: "DELIVERED";
650
+ data: {
651
+ soldAccountId: string;
652
+ soldOrderId: string;
653
+ soldConversationId?: string | null | undefined;
654
+ };
619
655
  } | null | undefined;
620
656
  }, {
621
657
  type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
@@ -642,6 +678,13 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
642
678
  soldOrderId: string;
643
679
  soldConversationId?: string | null | undefined;
644
680
  };
681
+ } | {
682
+ type: "DELIVERED";
683
+ data: {
684
+ soldAccountId: string;
685
+ soldOrderId: string;
686
+ soldConversationId?: string | null | undefined;
687
+ };
645
688
  } | null | undefined;
646
689
  }>>>;
647
690
  platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -832,6 +875,13 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
832
875
  soldOrderId: string;
833
876
  soldConversationId?: string | null | undefined;
834
877
  };
878
+ } | {
879
+ type: "DELIVERED";
880
+ data: {
881
+ soldAccountId: string;
882
+ soldOrderId: string;
883
+ soldConversationId?: string | null | undefined;
884
+ };
835
885
  } | null | undefined;
836
886
  } | null | undefined;
837
887
  }, {
@@ -962,6 +1012,13 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
962
1012
  soldOrderId: string;
963
1013
  soldConversationId?: string | null | undefined;
964
1014
  };
1015
+ } | {
1016
+ type: "DELIVERED";
1017
+ data: {
1018
+ soldAccountId: string;
1019
+ soldOrderId: string;
1020
+ soldConversationId?: string | null | undefined;
1021
+ };
965
1022
  } | null | undefined;
966
1023
  } | null | undefined;
967
1024
  }>, "many">;
@@ -1094,6 +1151,13 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1094
1151
  soldOrderId: string;
1095
1152
  soldConversationId?: string | null | undefined;
1096
1153
  };
1154
+ } | {
1155
+ type: "DELIVERED";
1156
+ data: {
1157
+ soldAccountId: string;
1158
+ soldOrderId: string;
1159
+ soldConversationId?: string | null | undefined;
1160
+ };
1097
1161
  } | null | undefined;
1098
1162
  } | null | undefined;
1099
1163
  }[];
@@ -1276,6 +1340,13 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1276
1340
  soldOrderId: string;
1277
1341
  soldConversationId?: string | null | undefined;
1278
1342
  };
1343
+ } | {
1344
+ type: "DELIVERED";
1345
+ data: {
1346
+ soldAccountId: string;
1347
+ soldOrderId: string;
1348
+ soldConversationId?: string | null | undefined;
1349
+ };
1279
1350
  } | null | undefined;
1280
1351
  } | null | undefined;
1281
1352
  }[];
@@ -464,6 +464,35 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
464
464
  soldOrderId: string;
465
465
  soldConversationId?: string | null | undefined;
466
466
  };
467
+ }>, z.ZodObject<{
468
+ type: z.ZodLiteral<"DELIVERED">;
469
+ data: z.ZodObject<{
470
+ soldAccountId: z.ZodString;
471
+ soldOrderId: z.ZodString;
472
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
473
+ }, "strip", z.ZodTypeAny, {
474
+ soldAccountId: string;
475
+ soldOrderId: string;
476
+ soldConversationId?: string | null | undefined;
477
+ }, {
478
+ soldAccountId: string;
479
+ soldOrderId: string;
480
+ soldConversationId?: string | null | undefined;
481
+ }>;
482
+ }, "strip", z.ZodTypeAny, {
483
+ type: "DELIVERED";
484
+ data: {
485
+ soldAccountId: string;
486
+ soldOrderId: string;
487
+ soldConversationId?: string | null | undefined;
488
+ };
489
+ }, {
490
+ type: "DELIVERED";
491
+ data: {
492
+ soldAccountId: string;
493
+ soldOrderId: string;
494
+ soldConversationId?: string | null | undefined;
495
+ };
467
496
  }>]>>>;
468
497
  createdAt: z.ZodDate;
469
498
  }, "strip", z.ZodTypeAny, {
@@ -491,6 +520,13 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
491
520
  soldOrderId: string;
492
521
  soldConversationId?: string | null | undefined;
493
522
  };
523
+ } | {
524
+ type: "DELIVERED";
525
+ data: {
526
+ soldAccountId: string;
527
+ soldOrderId: string;
528
+ soldConversationId?: string | null | undefined;
529
+ };
494
530
  } | null | undefined;
495
531
  }, {
496
532
  type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
@@ -517,6 +553,13 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
517
553
  soldOrderId: string;
518
554
  soldConversationId?: string | null | undefined;
519
555
  };
556
+ } | {
557
+ type: "DELIVERED";
558
+ data: {
559
+ soldAccountId: string;
560
+ soldOrderId: string;
561
+ soldConversationId?: string | null | undefined;
562
+ };
520
563
  } | null | undefined;
521
564
  }>>>;
522
565
  platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -707,6 +750,13 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
707
750
  soldOrderId: string;
708
751
  soldConversationId?: string | null | undefined;
709
752
  };
753
+ } | {
754
+ type: "DELIVERED";
755
+ data: {
756
+ soldAccountId: string;
757
+ soldOrderId: string;
758
+ soldConversationId?: string | null | undefined;
759
+ };
710
760
  } | null | undefined;
711
761
  } | null | undefined;
712
762
  }, {
@@ -837,6 +887,13 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
837
887
  soldOrderId: string;
838
888
  soldConversationId?: string | null | undefined;
839
889
  };
890
+ } | {
891
+ type: "DELIVERED";
892
+ data: {
893
+ soldAccountId: string;
894
+ soldOrderId: string;
895
+ soldConversationId?: string | null | undefined;
896
+ };
840
897
  } | null | undefined;
841
898
  } | null | undefined;
842
899
  }>, "many">;
@@ -969,6 +1026,13 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
969
1026
  soldOrderId: string;
970
1027
  soldConversationId?: string | null | undefined;
971
1028
  };
1029
+ } | {
1030
+ type: "DELIVERED";
1031
+ data: {
1032
+ soldAccountId: string;
1033
+ soldOrderId: string;
1034
+ soldConversationId?: string | null | undefined;
1035
+ };
972
1036
  } | null | undefined;
973
1037
  } | null | undefined;
974
1038
  }[];
@@ -1130,6 +1194,13 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
1130
1194
  soldOrderId: string;
1131
1195
  soldConversationId?: string | null | undefined;
1132
1196
  };
1197
+ } | {
1198
+ type: "DELIVERED";
1199
+ data: {
1200
+ soldAccountId: string;
1201
+ soldOrderId: string;
1202
+ soldConversationId?: string | null | undefined;
1203
+ };
1133
1204
  } | null | undefined;
1134
1205
  } | null | undefined;
1135
1206
  }[];
@@ -299,6 +299,35 @@ export declare const PreferenceFilterSchema: z.ZodObject<{
299
299
  soldOrderId: string;
300
300
  soldConversationId?: string | null | undefined;
301
301
  };
302
+ }>, z.ZodObject<{
303
+ type: z.ZodLiteral<"DELIVERED">;
304
+ data: z.ZodObject<{
305
+ soldAccountId: z.ZodString;
306
+ soldOrderId: z.ZodString;
307
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
308
+ }, "strip", z.ZodTypeAny, {
309
+ soldAccountId: string;
310
+ soldOrderId: string;
311
+ soldConversationId?: string | null | undefined;
312
+ }, {
313
+ soldAccountId: string;
314
+ soldOrderId: string;
315
+ soldConversationId?: string | null | undefined;
316
+ }>;
317
+ }, "strip", z.ZodTypeAny, {
318
+ type: "DELIVERED";
319
+ data: {
320
+ soldAccountId: string;
321
+ soldOrderId: string;
322
+ soldConversationId?: string | null | undefined;
323
+ };
324
+ }, {
325
+ type: "DELIVERED";
326
+ data: {
327
+ soldAccountId: string;
328
+ soldOrderId: string;
329
+ soldConversationId?: string | null | undefined;
330
+ };
302
331
  }>]>>>;
303
332
  createdAt: z.ZodDate;
304
333
  }, "strip", z.ZodTypeAny, {
@@ -326,6 +355,13 @@ export declare const PreferenceFilterSchema: z.ZodObject<{
326
355
  soldOrderId: string;
327
356
  soldConversationId?: string | null | undefined;
328
357
  };
358
+ } | {
359
+ type: "DELIVERED";
360
+ data: {
361
+ soldAccountId: string;
362
+ soldOrderId: string;
363
+ soldConversationId?: string | null | undefined;
364
+ };
329
365
  } | null | undefined;
330
366
  }, {
331
367
  type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
@@ -352,6 +388,13 @@ export declare const PreferenceFilterSchema: z.ZodObject<{
352
388
  soldOrderId: string;
353
389
  soldConversationId?: string | null | undefined;
354
390
  };
391
+ } | {
392
+ type: "DELIVERED";
393
+ data: {
394
+ soldAccountId: string;
395
+ soldOrderId: string;
396
+ soldConversationId?: string | null | undefined;
397
+ };
355
398
  } | null | undefined;
356
399
  }>>>;
357
400
  platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -542,6 +585,13 @@ export declare const PreferenceFilterSchema: z.ZodObject<{
542
585
  soldOrderId: string;
543
586
  soldConversationId?: string | null | undefined;
544
587
  };
588
+ } | {
589
+ type: "DELIVERED";
590
+ data: {
591
+ soldAccountId: string;
592
+ soldOrderId: string;
593
+ soldConversationId?: string | null | undefined;
594
+ };
545
595
  } | null | undefined;
546
596
  } | null | undefined;
547
597
  }, {
@@ -672,6 +722,13 @@ export declare const PreferenceFilterSchema: z.ZodObject<{
672
722
  soldOrderId: string;
673
723
  soldConversationId?: string | null | undefined;
674
724
  };
725
+ } | {
726
+ type: "DELIVERED";
727
+ data: {
728
+ soldAccountId: string;
729
+ soldOrderId: string;
730
+ soldConversationId?: string | null | undefined;
731
+ };
675
732
  } | null | undefined;
676
733
  } | null | undefined;
677
734
  }>, "many">>>;
@@ -823,6 +880,13 @@ export declare const PreferenceFilterSchema: z.ZodObject<{
823
880
  soldOrderId: string;
824
881
  soldConversationId?: string | null | undefined;
825
882
  };
883
+ } | {
884
+ type: "DELIVERED";
885
+ data: {
886
+ soldAccountId: string;
887
+ soldOrderId: string;
888
+ soldConversationId?: string | null | undefined;
889
+ };
826
890
  } | null | undefined;
827
891
  } | null | undefined;
828
892
  }[] | null | undefined;
@@ -962,6 +1026,13 @@ export declare const PreferenceFilterSchema: z.ZodObject<{
962
1026
  soldOrderId: string;
963
1027
  soldConversationId?: string | null | undefined;
964
1028
  };
1029
+ } | {
1030
+ type: "DELIVERED";
1031
+ data: {
1032
+ soldAccountId: string;
1033
+ soldOrderId: string;
1034
+ soldConversationId?: string | null | undefined;
1035
+ };
965
1036
  } | null | undefined;
966
1037
  } | null | undefined;
967
1038
  }[] | null | undefined;
@@ -145,6 +145,7 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
145
145
  resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
146
146
  userId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
147
147
  accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
+ referenceTime: z.ZodDate;
148
149
  }, "strip", z.ZodTypeAny, {
149
150
  type: "ITEM" | "CONVERSATION";
150
151
  actions: {
@@ -174,6 +175,7 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
174
175
  enabled: boolean;
175
176
  mandatory?: boolean | null | undefined;
176
177
  }[];
178
+ referenceTime: Date;
177
179
  userId?: number | null | undefined;
178
180
  accountId?: string | null | undefined;
179
181
  resourceId?: string | null | undefined;
@@ -206,6 +208,7 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
206
208
  enabled: boolean;
207
209
  mandatory?: boolean | null | undefined;
208
210
  }[];
211
+ referenceTime: Date;
209
212
  userId?: number | null | undefined;
210
213
  accountId?: string | null | undefined;
211
214
  resourceId?: string | null | undefined;
@@ -9,5 +9,6 @@ exports.PreferenceNextActionPayloadSchema = zod_1.z.object({
9
9
  type: PreferenceNextActionPayloadType_1.PreferenceNextActionPayloadTypeSchema,
10
10
  resourceId: zod_1.z.string().nullish(),
11
11
  userId: zod_1.z.number().nullish(),
12
- accountId: zod_1.z.string().uuid().nullish()
12
+ accountId: zod_1.z.string().uuid().nullish(),
13
+ referenceTime: zod_1.z.coerce.date()
13
14
  });
@@ -7,6 +7,7 @@ export const PreferenceNextActionPayloadSchema = z.object({
7
7
  type: PreferenceNextActionPayloadTypeSchema,
8
8
  resourceId: z.string().nullish(),
9
9
  userId: z.number().nullish(),
10
- accountId: z.string().uuid().nullish()
10
+ accountId: z.string().uuid().nullish(),
11
+ referenceTime: z.coerce.date()
11
12
  })
12
13
  export type PreferenceNextActionPayload = z.infer<typeof PreferenceNextActionPayloadSchema>