controlresell 2.1.12 → 2.1.14
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 +3 -3
- package/src/com/controlresell/models/items/CreatedItems.d.ts +14 -0
- package/src/com/controlresell/models/items/Item.d.ts +7 -0
- package/src/com/controlresell/models/items/ItemFiltersContext.d.ts +3 -0
- package/src/com/controlresell/models/items/ItemFiltersContext.js +1 -0
- package/src/com/controlresell/models/items/ItemFiltersContext.ts +1 -0
- package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +9 -33
- package/src/com/controlresell/models/items/ItemsWithFilters.js +1 -3
- package/src/com/controlresell/models/items/ItemsWithFilters.ts +1 -3
- package/src/com/controlresell/models/items/UpdatedItem.d.ts +14 -0
- package/src/com/controlresell/models/items/labels/ItemLabel.d.ts +5 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.d.ts +7 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.d.ts +3 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.js +2 -1
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.ts +2 -1
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +5 -0
- package/src/com/controlresell/models/metadata/labels/Label.d.ts +3 -0
- package/src/com/controlresell/models/metadata/labels/Label.js +2 -1
- package/src/com/controlresell/models/metadata/labels/Label.ts +2 -1
- package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.d.ts +61 -164
- package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.d.ts +3 -3
- package/src/com/controlresell/models/platforms/orders/Order.d.ts +5 -5
- package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.d.ts +5 -5
- package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.d.ts +3 -3
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +18 -9
- package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.d.ts +33 -0
- package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.js +16 -0
- package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.ts +15 -0
- package/src/com/controlresell/models/platforms/preferences/PlatformPreference.d.ts +39 -0
- package/src/com/controlresell/models/platforms/preferences/PlatformPreference.js +19 -0
- package/src/com/controlresell/models/platforms/preferences/PlatformPreference.ts +18 -0
- package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.d.ts +27 -0
- package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.js +13 -0
- package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.ts +12 -0
- package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +9 -0
- package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +3 -3
- package/src/com/controlresell/models/users/platforms/UserOnPlatformSessionMessage.d.ts +6 -6
- package/src/index.d.ts +141 -138
- package/src/index.js +285 -152
- package/src/index.ts +141 -138
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const UpdateOrderPayloadSchema: z.ZodObject<{
|
|
3
|
-
status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PAYMENT_VALIDATED", "ORDER_CANCELLED", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_RECEIVED", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "ORDER_CANCELED_ITEM_UNAVAILABLE", "ORDER_CANCELLED_BY_VINTED", "ORDER_DISPUTE_STARTED", "UNKNOWN"]>>>;
|
|
3
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PAYMENT_VALIDATED", "ORDER_CANCELLED", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_RECEIVED", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "ORDER_CANCELED_ITEM_UNAVAILABLE", "ORDER_CANCELLED_BY_VINTED", "ORDER_DISPUTE_STARTED", "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING", "SHIPPING_LABEL_ORDERED", "UNKNOWN"]>>>;
|
|
4
4
|
conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
5
|
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
6
|
price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7
7
|
date: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
status?: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN" | null | undefined;
|
|
9
|
+
status?: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN" | null | undefined;
|
|
10
10
|
date?: Date | null | undefined;
|
|
11
11
|
price?: number | null | undefined;
|
|
12
12
|
transactionId?: string | null | undefined;
|
|
13
13
|
conversationId?: string | null | undefined;
|
|
14
14
|
}, {
|
|
15
|
-
status?: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN" | null | undefined;
|
|
15
|
+
status?: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN" | null | undefined;
|
|
16
16
|
date?: Date | null | undefined;
|
|
17
17
|
price?: number | null | undefined;
|
|
18
18
|
transactionId?: string | null | undefined;
|
|
@@ -4,7 +4,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
4
4
|
id: z.ZodString;
|
|
5
5
|
accountId: z.ZodString;
|
|
6
6
|
platformOrderId: z.ZodString;
|
|
7
|
-
status: z.ZodEnum<["PAYMENT_VALIDATED", "ORDER_CANCELLED", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_RECEIVED", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "ORDER_CANCELED_ITEM_UNAVAILABLE", "ORDER_CANCELLED_BY_VINTED", "ORDER_DISPUTE_STARTED", "UNKNOWN"]>;
|
|
7
|
+
status: z.ZodEnum<["PAYMENT_VALIDATED", "ORDER_CANCELLED", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_RECEIVED", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "ORDER_CANCELED_ITEM_UNAVAILABLE", "ORDER_CANCELLED_BY_VINTED", "ORDER_DISPUTE_STARTED", "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING", "SHIPPING_LABEL_ORDERED", "UNKNOWN"]>;
|
|
8
8
|
conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
10
|
price: z.ZodNumber;
|
|
@@ -192,7 +192,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
192
192
|
} | null | undefined;
|
|
193
193
|
}>, "many">>>;
|
|
194
194
|
}, "strip", z.ZodTypeAny, {
|
|
195
|
-
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN";
|
|
195
|
+
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
|
|
196
196
|
id: string;
|
|
197
197
|
date: Date;
|
|
198
198
|
price: number;
|
|
@@ -219,7 +219,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
219
219
|
} | null | undefined;
|
|
220
220
|
}[] | null | undefined;
|
|
221
221
|
transactionId?: string | null | undefined;
|
|
222
|
-
conversationId?: string | null | undefined;
|
|
223
222
|
labels?: {
|
|
224
223
|
id: string;
|
|
225
224
|
fileId: string;
|
|
@@ -240,8 +239,9 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
240
239
|
createdAt: Date;
|
|
241
240
|
} | null | undefined;
|
|
242
241
|
}[] | null | undefined;
|
|
242
|
+
conversationId?: string | null | undefined;
|
|
243
243
|
}, {
|
|
244
|
-
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN";
|
|
244
|
+
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
|
|
245
245
|
id: string;
|
|
246
246
|
date: Date;
|
|
247
247
|
price: number;
|
|
@@ -268,7 +268,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
268
268
|
} | null | undefined;
|
|
269
269
|
}[] | null | undefined;
|
|
270
270
|
transactionId?: string | null | undefined;
|
|
271
|
-
conversationId?: string | null | undefined;
|
|
272
271
|
labels?: {
|
|
273
272
|
id: string;
|
|
274
273
|
fileId: string;
|
|
@@ -289,6 +288,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
289
288
|
createdAt: Date;
|
|
290
289
|
} | null | undefined;
|
|
291
290
|
}[] | null | undefined;
|
|
291
|
+
conversationId?: string | null | undefined;
|
|
292
292
|
}>;
|
|
293
293
|
items: z.ZodArray<z.ZodObject<{
|
|
294
294
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
@@ -410,17 +410,20 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
410
410
|
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
411
411
|
isUserLabel: z.ZodBoolean;
|
|
412
412
|
createdAt: z.ZodDate;
|
|
413
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
413
414
|
}, "strip", z.ZodTypeAny, {
|
|
414
415
|
id: string | number;
|
|
415
416
|
createdAt: Date;
|
|
416
417
|
name: string;
|
|
417
418
|
isUserLabel: boolean;
|
|
419
|
+
itemCount?: number | null | undefined;
|
|
418
420
|
userId?: string | number | null | undefined;
|
|
419
421
|
}, {
|
|
420
422
|
id: string | number;
|
|
421
423
|
createdAt: Date;
|
|
422
424
|
name: string;
|
|
423
425
|
isUserLabel: boolean;
|
|
426
|
+
itemCount?: number | null | undefined;
|
|
424
427
|
userId?: string | number | null | undefined;
|
|
425
428
|
}>>>;
|
|
426
429
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -431,6 +434,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
431
434
|
createdAt: Date;
|
|
432
435
|
name: string;
|
|
433
436
|
isUserLabel: boolean;
|
|
437
|
+
itemCount?: number | null | undefined;
|
|
434
438
|
userId?: string | number | null | undefined;
|
|
435
439
|
} | null | undefined;
|
|
436
440
|
}, {
|
|
@@ -441,6 +445,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
441
445
|
createdAt: Date;
|
|
442
446
|
name: string;
|
|
443
447
|
isUserLabel: boolean;
|
|
448
|
+
itemCount?: number | null | undefined;
|
|
444
449
|
userId?: string | number | null | undefined;
|
|
445
450
|
} | null | undefined;
|
|
446
451
|
}>, "many">>>;
|
|
@@ -602,6 +607,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
602
607
|
createdAt: Date;
|
|
603
608
|
name: string;
|
|
604
609
|
isUserLabel: boolean;
|
|
610
|
+
itemCount?: number | null | undefined;
|
|
605
611
|
userId?: string | number | null | undefined;
|
|
606
612
|
} | null | undefined;
|
|
607
613
|
}[] | null | undefined;
|
|
@@ -711,6 +717,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
711
717
|
createdAt: Date;
|
|
712
718
|
name: string;
|
|
713
719
|
isUserLabel: boolean;
|
|
720
|
+
itemCount?: number | null | undefined;
|
|
714
721
|
userId?: string | number | null | undefined;
|
|
715
722
|
} | null | undefined;
|
|
716
723
|
}[] | null | undefined;
|
|
@@ -822,6 +829,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
822
829
|
createdAt: Date;
|
|
823
830
|
name: string;
|
|
824
831
|
isUserLabel: boolean;
|
|
832
|
+
itemCount?: number | null | undefined;
|
|
825
833
|
userId?: string | number | null | undefined;
|
|
826
834
|
} | null | undefined;
|
|
827
835
|
}[] | null | undefined;
|
|
@@ -912,7 +920,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
912
920
|
}[] | null | undefined;
|
|
913
921
|
}[];
|
|
914
922
|
order: {
|
|
915
|
-
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN";
|
|
923
|
+
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
|
|
916
924
|
id: string;
|
|
917
925
|
date: Date;
|
|
918
926
|
price: number;
|
|
@@ -939,7 +947,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
939
947
|
} | null | undefined;
|
|
940
948
|
}[] | null | undefined;
|
|
941
949
|
transactionId?: string | null | undefined;
|
|
942
|
-
conversationId?: string | null | undefined;
|
|
943
950
|
labels?: {
|
|
944
951
|
id: string;
|
|
945
952
|
fileId: string;
|
|
@@ -960,6 +967,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
960
967
|
createdAt: Date;
|
|
961
968
|
} | null | undefined;
|
|
962
969
|
}[] | null | undefined;
|
|
970
|
+
conversationId?: string | null | undefined;
|
|
963
971
|
};
|
|
964
972
|
}, {
|
|
965
973
|
items: {
|
|
@@ -983,6 +991,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
983
991
|
createdAt: Date;
|
|
984
992
|
name: string;
|
|
985
993
|
isUserLabel: boolean;
|
|
994
|
+
itemCount?: number | null | undefined;
|
|
986
995
|
userId?: string | number | null | undefined;
|
|
987
996
|
} | null | undefined;
|
|
988
997
|
}[] | null | undefined;
|
|
@@ -1073,7 +1082,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1073
1082
|
}[] | null | undefined;
|
|
1074
1083
|
}[];
|
|
1075
1084
|
order: {
|
|
1076
|
-
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN";
|
|
1085
|
+
status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
|
|
1077
1086
|
id: string;
|
|
1078
1087
|
date: Date;
|
|
1079
1088
|
price: number;
|
|
@@ -1100,7 +1109,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1100
1109
|
} | null | undefined;
|
|
1101
1110
|
}[] | null | undefined;
|
|
1102
1111
|
transactionId?: string | null | undefined;
|
|
1103
|
-
conversationId?: string | null | undefined;
|
|
1104
1112
|
labels?: {
|
|
1105
1113
|
id: string;
|
|
1106
1114
|
fileId: string;
|
|
@@ -1121,6 +1129,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1121
1129
|
createdAt: Date;
|
|
1122
1130
|
} | null | undefined;
|
|
1123
1131
|
}[] | null | undefined;
|
|
1132
|
+
conversationId?: string | null | undefined;
|
|
1124
1133
|
};
|
|
1125
1134
|
}>;
|
|
1126
1135
|
export type OrderWithItems = z.infer<typeof OrderWithItemsSchema>;
|
package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CreatePlatformPreferencePayloadSchema: z.ZodObject<{
|
|
3
|
+
accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
|
+
platform: z.ZodOptional<z.ZodNullable<z.ZodEnum<["VINTED", "SHOPIFY"]>>>;
|
|
5
|
+
doRemoveBackground: z.ZodBoolean;
|
|
6
|
+
doSmartCrop: z.ZodBoolean;
|
|
7
|
+
doChangeBackground: z.ZodBoolean;
|
|
8
|
+
targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9
|
+
targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
10
|
+
newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
doRemoveBackground: boolean;
|
|
14
|
+
doSmartCrop: boolean;
|
|
15
|
+
doChangeBackground: boolean;
|
|
16
|
+
platform?: "VINTED" | "SHOPIFY" | null | undefined;
|
|
17
|
+
accountId?: string | null | undefined;
|
|
18
|
+
targetWidth?: number | null | undefined;
|
|
19
|
+
targetHeight?: number | null | undefined;
|
|
20
|
+
newBackgroundColor?: string | null | undefined;
|
|
21
|
+
newBackgroundUrl?: string | null | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
doRemoveBackground: boolean;
|
|
24
|
+
doSmartCrop: boolean;
|
|
25
|
+
doChangeBackground: boolean;
|
|
26
|
+
platform?: "VINTED" | "SHOPIFY" | null | undefined;
|
|
27
|
+
accountId?: string | null | undefined;
|
|
28
|
+
targetWidth?: number | null | undefined;
|
|
29
|
+
targetHeight?: number | null | undefined;
|
|
30
|
+
newBackgroundColor?: string | null | undefined;
|
|
31
|
+
newBackgroundUrl?: string | null | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
export type CreatePlatformPreferencePayload = z.infer<typeof CreatePlatformPreferencePayloadSchema>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreatePlatformPreferencePayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const controlresell_connector_1 = require("controlresell-connector");
|
|
6
|
+
exports.CreatePlatformPreferencePayloadSchema = zod_1.z.object({
|
|
7
|
+
accountId: zod_1.z.string().uuid().nullish(),
|
|
8
|
+
platform: controlresell_connector_1.AccountPlatformSchema.nullish(),
|
|
9
|
+
doRemoveBackground: zod_1.z.boolean(),
|
|
10
|
+
doSmartCrop: zod_1.z.boolean(),
|
|
11
|
+
doChangeBackground: zod_1.z.boolean(),
|
|
12
|
+
targetWidth: zod_1.z.number().int().nullish(),
|
|
13
|
+
targetHeight: zod_1.z.number().int().nullish(),
|
|
14
|
+
newBackgroundColor: zod_1.z.string().nullish(),
|
|
15
|
+
newBackgroundUrl: zod_1.z.string().nullish()
|
|
16
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {AccountPlatformSchema} from "controlresell-connector"
|
|
3
|
+
|
|
4
|
+
export const CreatePlatformPreferencePayloadSchema = z.object({
|
|
5
|
+
accountId: z.string().uuid().nullish(),
|
|
6
|
+
platform: AccountPlatformSchema.nullish(),
|
|
7
|
+
doRemoveBackground: z.boolean(),
|
|
8
|
+
doSmartCrop: z.boolean(),
|
|
9
|
+
doChangeBackground: z.boolean(),
|
|
10
|
+
targetWidth: z.number().int().nullish(),
|
|
11
|
+
targetHeight: z.number().int().nullish(),
|
|
12
|
+
newBackgroundColor: z.string().nullish(),
|
|
13
|
+
newBackgroundUrl: z.string().nullish()
|
|
14
|
+
})
|
|
15
|
+
export type CreatePlatformPreferencePayload = z.infer<typeof CreatePlatformPreferencePayloadSchema>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PlatformPreferenceSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
platform: z.ZodOptional<z.ZodNullable<z.ZodEnum<["VINTED", "SHOPIFY"]>>>;
|
|
6
|
+
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
7
|
+
doRemoveBackground: z.ZodBoolean;
|
|
8
|
+
doSmartCrop: z.ZodBoolean;
|
|
9
|
+
doChangeBackground: z.ZodBoolean;
|
|
10
|
+
targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
+
targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
|
+
newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
id: string;
|
|
16
|
+
userId: string | number;
|
|
17
|
+
doRemoveBackground: boolean;
|
|
18
|
+
doSmartCrop: boolean;
|
|
19
|
+
doChangeBackground: boolean;
|
|
20
|
+
platform?: "VINTED" | "SHOPIFY" | null | undefined;
|
|
21
|
+
accountId?: string | null | undefined;
|
|
22
|
+
targetWidth?: number | null | undefined;
|
|
23
|
+
targetHeight?: number | null | undefined;
|
|
24
|
+
newBackgroundColor?: string | null | undefined;
|
|
25
|
+
newBackgroundUrl?: string | null | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
id: string;
|
|
28
|
+
userId: string | number;
|
|
29
|
+
doRemoveBackground: boolean;
|
|
30
|
+
doSmartCrop: boolean;
|
|
31
|
+
doChangeBackground: boolean;
|
|
32
|
+
platform?: "VINTED" | "SHOPIFY" | null | undefined;
|
|
33
|
+
accountId?: string | null | undefined;
|
|
34
|
+
targetWidth?: number | null | undefined;
|
|
35
|
+
targetHeight?: number | null | undefined;
|
|
36
|
+
newBackgroundColor?: string | null | undefined;
|
|
37
|
+
newBackgroundUrl?: string | null | undefined;
|
|
38
|
+
}>;
|
|
39
|
+
export type PlatformPreference = z.infer<typeof PlatformPreferenceSchema>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlatformPreferenceSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zodable_idschema_1 = require("zodable-idschema");
|
|
6
|
+
const controlresell_connector_1 = require("controlresell-connector");
|
|
7
|
+
exports.PlatformPreferenceSchema = zod_1.z.object({
|
|
8
|
+
id: zod_1.z.string().uuid(),
|
|
9
|
+
accountId: zod_1.z.string().uuid().nullish(),
|
|
10
|
+
platform: controlresell_connector_1.AccountPlatformSchema.nullish(),
|
|
11
|
+
userId: zodable_idschema_1.IdSchema,
|
|
12
|
+
doRemoveBackground: zod_1.z.boolean(),
|
|
13
|
+
doSmartCrop: zod_1.z.boolean(),
|
|
14
|
+
doChangeBackground: zod_1.z.boolean(),
|
|
15
|
+
targetWidth: zod_1.z.number().int().nullish(),
|
|
16
|
+
targetHeight: zod_1.z.number().int().nullish(),
|
|
17
|
+
newBackgroundColor: zod_1.z.string().nullish(),
|
|
18
|
+
newBackgroundUrl: zod_1.z.string().nullish()
|
|
19
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {IdSchema} from "zodable-idschema"
|
|
3
|
+
import {AccountPlatformSchema} from "controlresell-connector"
|
|
4
|
+
|
|
5
|
+
export const PlatformPreferenceSchema = z.object({
|
|
6
|
+
id: z.string().uuid(),
|
|
7
|
+
accountId: z.string().uuid().nullish(),
|
|
8
|
+
platform: AccountPlatformSchema.nullish(),
|
|
9
|
+
userId: IdSchema,
|
|
10
|
+
doRemoveBackground: z.boolean(),
|
|
11
|
+
doSmartCrop: z.boolean(),
|
|
12
|
+
doChangeBackground: z.boolean(),
|
|
13
|
+
targetWidth: z.number().int().nullish(),
|
|
14
|
+
targetHeight: z.number().int().nullish(),
|
|
15
|
+
newBackgroundColor: z.string().nullish(),
|
|
16
|
+
newBackgroundUrl: z.string().nullish()
|
|
17
|
+
})
|
|
18
|
+
export type PlatformPreference = z.infer<typeof PlatformPreferenceSchema>
|
package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const UpdatePlatformPreferencePayloadSchema: z.ZodObject<{
|
|
3
|
+
doRemoveBackground: z.ZodBoolean;
|
|
4
|
+
doSmartCrop: z.ZodBoolean;
|
|
5
|
+
doChangeBackground: z.ZodBoolean;
|
|
6
|
+
targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7
|
+
targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
8
|
+
newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
doRemoveBackground: boolean;
|
|
12
|
+
doSmartCrop: boolean;
|
|
13
|
+
doChangeBackground: boolean;
|
|
14
|
+
targetWidth?: number | null | undefined;
|
|
15
|
+
targetHeight?: number | null | undefined;
|
|
16
|
+
newBackgroundColor?: string | null | undefined;
|
|
17
|
+
newBackgroundUrl?: string | null | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
doRemoveBackground: boolean;
|
|
20
|
+
doSmartCrop: boolean;
|
|
21
|
+
doChangeBackground: boolean;
|
|
22
|
+
targetWidth?: number | null | undefined;
|
|
23
|
+
targetHeight?: number | null | undefined;
|
|
24
|
+
newBackgroundColor?: string | null | undefined;
|
|
25
|
+
newBackgroundUrl?: string | null | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
export type UpdatePlatformPreferencePayload = z.infer<typeof UpdatePlatformPreferencePayloadSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdatePlatformPreferencePayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.UpdatePlatformPreferencePayloadSchema = zod_1.z.object({
|
|
6
|
+
doRemoveBackground: zod_1.z.boolean(),
|
|
7
|
+
doSmartCrop: zod_1.z.boolean(),
|
|
8
|
+
doChangeBackground: zod_1.z.boolean(),
|
|
9
|
+
targetWidth: zod_1.z.number().int().nullish(),
|
|
10
|
+
targetHeight: zod_1.z.number().int().nullish(),
|
|
11
|
+
newBackgroundColor: zod_1.z.string().nullish(),
|
|
12
|
+
newBackgroundUrl: zod_1.z.string().nullish()
|
|
13
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
|
|
3
|
+
export const UpdatePlatformPreferencePayloadSchema = z.object({
|
|
4
|
+
doRemoveBackground: z.boolean(),
|
|
5
|
+
doSmartCrop: z.boolean(),
|
|
6
|
+
doChangeBackground: z.boolean(),
|
|
7
|
+
targetWidth: z.number().int().nullish(),
|
|
8
|
+
targetHeight: z.number().int().nullish(),
|
|
9
|
+
newBackgroundColor: z.string().nullish(),
|
|
10
|
+
newBackgroundUrl: z.string().nullish()
|
|
11
|
+
})
|
|
12
|
+
export type UpdatePlatformPreferencePayload = z.infer<typeof UpdatePlatformPreferencePayloadSchema>
|
|
@@ -285,17 +285,20 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
285
285
|
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
286
286
|
isUserLabel: z.ZodBoolean;
|
|
287
287
|
createdAt: z.ZodDate;
|
|
288
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
288
289
|
}, "strip", z.ZodTypeAny, {
|
|
289
290
|
id: string | number;
|
|
290
291
|
createdAt: Date;
|
|
291
292
|
name: string;
|
|
292
293
|
isUserLabel: boolean;
|
|
294
|
+
itemCount?: number | null | undefined;
|
|
293
295
|
userId?: string | number | null | undefined;
|
|
294
296
|
}, {
|
|
295
297
|
id: string | number;
|
|
296
298
|
createdAt: Date;
|
|
297
299
|
name: string;
|
|
298
300
|
isUserLabel: boolean;
|
|
301
|
+
itemCount?: number | null | undefined;
|
|
299
302
|
userId?: string | number | null | undefined;
|
|
300
303
|
}>>>;
|
|
301
304
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -306,6 +309,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
306
309
|
createdAt: Date;
|
|
307
310
|
name: string;
|
|
308
311
|
isUserLabel: boolean;
|
|
312
|
+
itemCount?: number | null | undefined;
|
|
309
313
|
userId?: string | number | null | undefined;
|
|
310
314
|
} | null | undefined;
|
|
311
315
|
}, {
|
|
@@ -316,6 +320,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
316
320
|
createdAt: Date;
|
|
317
321
|
name: string;
|
|
318
322
|
isUserLabel: boolean;
|
|
323
|
+
itemCount?: number | null | undefined;
|
|
319
324
|
userId?: string | number | null | undefined;
|
|
320
325
|
} | null | undefined;
|
|
321
326
|
}>, "many">>>;
|
|
@@ -477,6 +482,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
477
482
|
createdAt: Date;
|
|
478
483
|
name: string;
|
|
479
484
|
isUserLabel: boolean;
|
|
485
|
+
itemCount?: number | null | undefined;
|
|
480
486
|
userId?: string | number | null | undefined;
|
|
481
487
|
} | null | undefined;
|
|
482
488
|
}[] | null | undefined;
|
|
@@ -586,6 +592,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
586
592
|
createdAt: Date;
|
|
587
593
|
name: string;
|
|
588
594
|
isUserLabel: boolean;
|
|
595
|
+
itemCount?: number | null | undefined;
|
|
589
596
|
userId?: string | number | null | undefined;
|
|
590
597
|
} | null | undefined;
|
|
591
598
|
}[] | null | undefined;
|
|
@@ -697,6 +704,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
697
704
|
createdAt: Date;
|
|
698
705
|
name: string;
|
|
699
706
|
isUserLabel: boolean;
|
|
707
|
+
itemCount?: number | null | undefined;
|
|
700
708
|
userId?: string | number | null | undefined;
|
|
701
709
|
} | null | undefined;
|
|
702
710
|
}[] | null | undefined;
|
|
@@ -837,6 +845,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
837
845
|
createdAt: Date;
|
|
838
846
|
name: string;
|
|
839
847
|
isUserLabel: boolean;
|
|
848
|
+
itemCount?: number | null | undefined;
|
|
840
849
|
userId?: string | number | null | undefined;
|
|
841
850
|
} | null | undefined;
|
|
842
851
|
}[] | null | undefined;
|
|
@@ -19,7 +19,7 @@ export declare const PlatformJobUpdateSchema: z.ZodObject<{
|
|
|
19
19
|
platform: "VINTED" | "SHOPIFY";
|
|
20
20
|
accountId: string;
|
|
21
21
|
}>;
|
|
22
|
-
job: z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_PING", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>;
|
|
22
|
+
job: z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_PING", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "POSTS_SOLD", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>;
|
|
23
23
|
done: z.ZodBoolean;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
25
|
account: {
|
|
@@ -29,7 +29,7 @@ export declare const PlatformJobUpdateSchema: z.ZodObject<{
|
|
|
29
29
|
platform: "VINTED" | "SHOPIFY";
|
|
30
30
|
accountId: string;
|
|
31
31
|
};
|
|
32
|
-
job: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE";
|
|
32
|
+
job: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE";
|
|
33
33
|
done: boolean;
|
|
34
34
|
}, {
|
|
35
35
|
account: {
|
|
@@ -39,7 +39,7 @@ export declare const PlatformJobUpdateSchema: z.ZodObject<{
|
|
|
39
39
|
platform: "VINTED" | "SHOPIFY";
|
|
40
40
|
accountId: string;
|
|
41
41
|
};
|
|
42
|
-
job: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE";
|
|
42
|
+
job: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE";
|
|
43
43
|
done: boolean;
|
|
44
44
|
}>;
|
|
45
45
|
export type PlatformJobUpdate = z.infer<typeof PlatformJobUpdateSchema>;
|
|
@@ -2,17 +2,17 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const UserOnPlatformSessionMessageSchema: z.ZodObject<{
|
|
3
3
|
otp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4
4
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
-
launch: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_PING", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>>>;
|
|
6
|
-
done: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_PING", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>>>;
|
|
5
|
+
launch: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_PING", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "POSTS_SOLD", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>>>;
|
|
6
|
+
done: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_PING", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "POSTS_SOLD", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>>>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
error?: string | null | undefined;
|
|
9
9
|
otp?: number | null | undefined;
|
|
10
|
-
done?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
|
|
11
|
-
launch?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
|
|
10
|
+
done?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
|
|
11
|
+
launch?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
|
|
12
12
|
}, {
|
|
13
13
|
error?: string | null | undefined;
|
|
14
14
|
otp?: number | null | undefined;
|
|
15
|
-
done?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
|
|
16
|
-
launch?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
|
|
15
|
+
done?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
|
|
16
|
+
launch?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
|
|
17
17
|
}>;
|
|
18
18
|
export type UserOnPlatformSessionMessage = z.infer<typeof UserOnPlatformSessionMessageSchema>;
|