controlresell 2.2.0 → 2.2.2
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 +2 -2
- package/src/com/controlresell/models/filters/SavedFilters.d.ts +133 -0
- package/src/com/controlresell/models/filters/SavedFilters.js +13 -0
- package/src/com/controlresell/models/filters/SavedFilters.ts +12 -0
- package/src/com/controlresell/models/filters/SavedFiltersPayload.d.ts +127 -0
- package/src/com/controlresell/models/filters/SavedFiltersPayload.js +10 -0
- package/src/com/controlresell/models/filters/SavedFiltersPayload.ts +9 -0
- package/src/com/controlresell/models/items/CreatedItems.d.ts +70 -70
- package/src/com/controlresell/models/items/Item.d.ts +36 -36
- package/src/com/controlresell/models/items/ItemFiltersContext.d.ts +2 -2
- package/src/com/controlresell/models/items/ItemPayload.d.ts +2 -2
- package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +70 -70
- package/src/com/controlresell/models/items/UpdatedItem.d.ts +70 -70
- package/src/com/controlresell/models/items/platforms/CreateItemOnPlatformPayload.d.ts +2 -2
- package/src/com/controlresell/models/items/platforms/ItemOnPlatform.d.ts +2 -2
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.d.ts +4 -4
- package/src/com/controlresell/models/items/platforms/UpdateItemOnPlatformPayload.d.ts +2 -2
- package/src/com/controlresell/models/platforms/PlatformFiltersContext.d.ts +12 -0
- package/src/com/controlresell/models/platforms/PlatformFiltersContext.js +9 -0
- package/src/com/controlresell/models/platforms/PlatformFiltersContext.ts +8 -0
- package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.d.ts +6 -6
- package/src/com/controlresell/models/platforms/orders/Order.d.ts +6 -6
- package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +4 -4
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +78 -78
- package/src/com/controlresell/models/platforms/transactions/Transaction.d.ts +6 -6
- package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.d.ts +4 -4
- package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +78 -78
- package/src/com/controlresell/models/preferences/Preference.d.ts +10 -0
- package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +6 -0
- package/src/com/controlresell/models/preferences/cases/PreferenceCase.js +2 -0
- package/src/com/controlresell/models/preferences/cases/PreferenceCase.ts +2 -0
- package/src/com/controlresell/models/preferences/cases/PreferenceCasePayload.d.ts +9 -3
- package/src/com/controlresell/models/preferences/cases/PreferenceCasePayload.js +4 -2
- package/src/com/controlresell/models/preferences/cases/PreferenceCasePayload.ts +4 -2
- package/src/com/controlresell/models/preferences/payloads/prices/PreferencePriceNegotiationProfile.d.ts +3 -0
- package/src/com/controlresell/models/preferences/payloads/prices/PreferencePriceNegotiationProfile.js +7 -0
- package/src/com/controlresell/models/preferences/payloads/prices/PreferencePriceNegotiationProfile.ts +6 -0
- package/src/com/controlresell/models/preferences/payloads/prices/PreferencePricePayload.d.ts +3 -0
- package/src/com/controlresell/models/preferences/payloads/prices/PreferencePricePayload.js +3 -1
- package/src/com/controlresell/models/preferences/payloads/prices/PreferencePricePayload.ts +3 -1
- package/src/com/controlresell/models/preferences/payloads/wait/PreferenceWaitPayload.d.ts +9 -0
- package/src/com/controlresell/models/preferences/payloads/wait/PreferenceWaitPayload.js +7 -0
- package/src/com/controlresell/models/preferences/payloads/wait/PreferenceWaitPayload.ts +6 -0
- package/src/com/controlresell/models/preferences/variables/PreferenceVariable.d.ts +12 -0
- package/src/com/controlresell/models/preferences/variables/PreferenceVariable.js +10 -0
- package/src/com/controlresell/models/preferences/variables/PreferenceVariable.ts +9 -0
- package/src/com/controlresell/models/preferences/variables/PreferenceVariableName.d.ts +3 -0
- package/src/com/controlresell/models/preferences/variables/PreferenceVariableName.js +7 -0
- package/src/com/controlresell/models/preferences/variables/PreferenceVariableName.ts +6 -0
- package/src/com/controlresell/models/preferences/variables/PreferenceVariableTemplate.d.ts +3 -0
- package/src/com/controlresell/models/preferences/variables/PreferenceVariableTemplate.js +7 -0
- package/src/com/controlresell/models/preferences/variables/PreferenceVariableTemplate.ts +6 -0
- package/src/index.d.ts +8 -1
- package/src/index.js +20 -6
- package/src/index.ts +8 -1
- package/src/com/controlresell/models/users/preferences/UserPreference.d.ts +0 -18
- package/src/com/controlresell/models/users/preferences/UserPreference.js +0 -11
- package/src/com/controlresell/models/users/preferences/UserPreference.ts +0 -10
|
@@ -264,7 +264,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
264
264
|
accountId: string;
|
|
265
265
|
}>>>;
|
|
266
266
|
}, "strip", z.ZodTypeAny, {
|
|
267
|
-
status: "DELETED" | "
|
|
267
|
+
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
268
268
|
id: string;
|
|
269
269
|
itemId: string | number;
|
|
270
270
|
accountId: string;
|
|
@@ -279,7 +279,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
279
279
|
accountId: string;
|
|
280
280
|
} | null | undefined;
|
|
281
281
|
}, {
|
|
282
|
-
status: "DELETED" | "
|
|
282
|
+
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
283
283
|
id: string;
|
|
284
284
|
itemId: string | number;
|
|
285
285
|
accountId: string;
|
|
@@ -305,6 +305,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
305
305
|
sold: boolean;
|
|
306
306
|
description?: string | null | undefined;
|
|
307
307
|
customerId?: string | number | null | undefined;
|
|
308
|
+
sex?: string | null | undefined;
|
|
308
309
|
state?: number | null | undefined;
|
|
309
310
|
colorIds?: number[] | null | undefined;
|
|
310
311
|
packageSizeId?: number | null | undefined;
|
|
@@ -321,6 +322,22 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
321
322
|
userId?: string | number | null | undefined;
|
|
322
323
|
} | null | undefined;
|
|
323
324
|
}[] | null | undefined;
|
|
325
|
+
platforms?: {
|
|
326
|
+
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
327
|
+
id: string;
|
|
328
|
+
itemId: string | number;
|
|
329
|
+
accountId: string;
|
|
330
|
+
platformId: string;
|
|
331
|
+
platformUrl: string;
|
|
332
|
+
platformPrice: number;
|
|
333
|
+
account?: {
|
|
334
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
335
|
+
userId: string | number;
|
|
336
|
+
name: string;
|
|
337
|
+
platform: "VINTED" | "SHOPIFY";
|
|
338
|
+
accountId: string;
|
|
339
|
+
} | null | undefined;
|
|
340
|
+
}[] | null | undefined;
|
|
324
341
|
files?: {
|
|
325
342
|
fileId: string;
|
|
326
343
|
itemId: string | number;
|
|
@@ -335,7 +352,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
335
352
|
}[] | null | undefined;
|
|
336
353
|
categoryId?: number | null | undefined;
|
|
337
354
|
brandId?: string | number | null | undefined;
|
|
338
|
-
sex?: string | null | undefined;
|
|
339
355
|
purchasePrice?: number | null | undefined;
|
|
340
356
|
purchaseDate?: Date | null | undefined;
|
|
341
357
|
purchasePlaceId?: string | number | null | undefined;
|
|
@@ -390,22 +406,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
390
406
|
itemId: string | number;
|
|
391
407
|
data?: string | null | undefined;
|
|
392
408
|
} | null | undefined;
|
|
393
|
-
platforms?: {
|
|
394
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
395
|
-
id: string;
|
|
396
|
-
itemId: string | number;
|
|
397
|
-
accountId: string;
|
|
398
|
-
platformId: string;
|
|
399
|
-
platformUrl: string;
|
|
400
|
-
platformPrice: number;
|
|
401
|
-
account?: {
|
|
402
|
-
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
403
|
-
userId: string | number;
|
|
404
|
-
name: string;
|
|
405
|
-
platform: "VINTED" | "SHOPIFY";
|
|
406
|
-
accountId: string;
|
|
407
|
-
} | null | undefined;
|
|
408
|
-
}[] | null | undefined;
|
|
409
409
|
}, {
|
|
410
410
|
id: string | number;
|
|
411
411
|
userId: string | number;
|
|
@@ -415,6 +415,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
415
415
|
sold: boolean;
|
|
416
416
|
description?: string | null | undefined;
|
|
417
417
|
customerId?: string | number | null | undefined;
|
|
418
|
+
sex?: string | null | undefined;
|
|
418
419
|
state?: number | null | undefined;
|
|
419
420
|
colorIds?: number[] | null | undefined;
|
|
420
421
|
packageSizeId?: number | null | undefined;
|
|
@@ -431,6 +432,22 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
431
432
|
userId?: string | number | null | undefined;
|
|
432
433
|
} | null | undefined;
|
|
433
434
|
}[] | null | undefined;
|
|
435
|
+
platforms?: {
|
|
436
|
+
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
437
|
+
id: string;
|
|
438
|
+
itemId: string | number;
|
|
439
|
+
accountId: string;
|
|
440
|
+
platformId: string;
|
|
441
|
+
platformUrl: string;
|
|
442
|
+
platformPrice: number;
|
|
443
|
+
account?: {
|
|
444
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
445
|
+
userId: string | number;
|
|
446
|
+
name: string;
|
|
447
|
+
platform: "VINTED" | "SHOPIFY";
|
|
448
|
+
accountId: string;
|
|
449
|
+
} | null | undefined;
|
|
450
|
+
}[] | null | undefined;
|
|
434
451
|
files?: {
|
|
435
452
|
fileId: string;
|
|
436
453
|
itemId: string | number;
|
|
@@ -445,7 +462,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
445
462
|
}[] | null | undefined;
|
|
446
463
|
categoryId?: number | null | undefined;
|
|
447
464
|
brandId?: string | number | null | undefined;
|
|
448
|
-
sex?: string | null | undefined;
|
|
449
465
|
purchasePrice?: number | null | undefined;
|
|
450
466
|
purchaseDate?: Date | null | undefined;
|
|
451
467
|
purchasePlaceId?: string | number | null | undefined;
|
|
@@ -500,22 +516,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
500
516
|
itemId: string | number;
|
|
501
517
|
data?: string | null | undefined;
|
|
502
518
|
} | null | undefined;
|
|
503
|
-
platforms?: {
|
|
504
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
505
|
-
id: string;
|
|
506
|
-
itemId: string | number;
|
|
507
|
-
accountId: string;
|
|
508
|
-
platformId: string;
|
|
509
|
-
platformUrl: string;
|
|
510
|
-
platformPrice: number;
|
|
511
|
-
account?: {
|
|
512
|
-
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
513
|
-
userId: string | number;
|
|
514
|
-
name: string;
|
|
515
|
-
platform: "VINTED" | "SHOPIFY";
|
|
516
|
-
accountId: string;
|
|
517
|
-
} | null | undefined;
|
|
518
|
-
}[] | null | undefined;
|
|
519
519
|
}>;
|
|
520
520
|
newUserLabels: z.ZodArray<z.ZodObject<{
|
|
521
521
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
@@ -557,6 +557,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
557
557
|
sold: boolean;
|
|
558
558
|
description?: string | null | undefined;
|
|
559
559
|
customerId?: string | number | null | undefined;
|
|
560
|
+
sex?: string | null | undefined;
|
|
560
561
|
state?: number | null | undefined;
|
|
561
562
|
colorIds?: number[] | null | undefined;
|
|
562
563
|
packageSizeId?: number | null | undefined;
|
|
@@ -573,6 +574,22 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
573
574
|
userId?: string | number | null | undefined;
|
|
574
575
|
} | null | undefined;
|
|
575
576
|
}[] | null | undefined;
|
|
577
|
+
platforms?: {
|
|
578
|
+
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
579
|
+
id: string;
|
|
580
|
+
itemId: string | number;
|
|
581
|
+
accountId: string;
|
|
582
|
+
platformId: string;
|
|
583
|
+
platformUrl: string;
|
|
584
|
+
platformPrice: number;
|
|
585
|
+
account?: {
|
|
586
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
587
|
+
userId: string | number;
|
|
588
|
+
name: string;
|
|
589
|
+
platform: "VINTED" | "SHOPIFY";
|
|
590
|
+
accountId: string;
|
|
591
|
+
} | null | undefined;
|
|
592
|
+
}[] | null | undefined;
|
|
576
593
|
files?: {
|
|
577
594
|
fileId: string;
|
|
578
595
|
itemId: string | number;
|
|
@@ -587,7 +604,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
587
604
|
}[] | null | undefined;
|
|
588
605
|
categoryId?: number | null | undefined;
|
|
589
606
|
brandId?: string | number | null | undefined;
|
|
590
|
-
sex?: string | null | undefined;
|
|
591
607
|
purchasePrice?: number | null | undefined;
|
|
592
608
|
purchaseDate?: Date | null | undefined;
|
|
593
609
|
purchasePlaceId?: string | number | null | undefined;
|
|
@@ -642,22 +658,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
642
658
|
itemId: string | number;
|
|
643
659
|
data?: string | null | undefined;
|
|
644
660
|
} | null | undefined;
|
|
645
|
-
platforms?: {
|
|
646
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
647
|
-
id: string;
|
|
648
|
-
itemId: string | number;
|
|
649
|
-
accountId: string;
|
|
650
|
-
platformId: string;
|
|
651
|
-
platformUrl: string;
|
|
652
|
-
platformPrice: number;
|
|
653
|
-
account?: {
|
|
654
|
-
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
655
|
-
userId: string | number;
|
|
656
|
-
name: string;
|
|
657
|
-
platform: "VINTED" | "SHOPIFY";
|
|
658
|
-
accountId: string;
|
|
659
|
-
} | null | undefined;
|
|
660
|
-
}[] | null | undefined;
|
|
661
661
|
};
|
|
662
662
|
}, {
|
|
663
663
|
newUserLabels: {
|
|
@@ -677,6 +677,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
677
677
|
sold: boolean;
|
|
678
678
|
description?: string | null | undefined;
|
|
679
679
|
customerId?: string | number | null | undefined;
|
|
680
|
+
sex?: string | null | undefined;
|
|
680
681
|
state?: number | null | undefined;
|
|
681
682
|
colorIds?: number[] | null | undefined;
|
|
682
683
|
packageSizeId?: number | null | undefined;
|
|
@@ -693,6 +694,22 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
693
694
|
userId?: string | number | null | undefined;
|
|
694
695
|
} | null | undefined;
|
|
695
696
|
}[] | null | undefined;
|
|
697
|
+
platforms?: {
|
|
698
|
+
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
699
|
+
id: string;
|
|
700
|
+
itemId: string | number;
|
|
701
|
+
accountId: string;
|
|
702
|
+
platformId: string;
|
|
703
|
+
platformUrl: string;
|
|
704
|
+
platformPrice: number;
|
|
705
|
+
account?: {
|
|
706
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
707
|
+
userId: string | number;
|
|
708
|
+
name: string;
|
|
709
|
+
platform: "VINTED" | "SHOPIFY";
|
|
710
|
+
accountId: string;
|
|
711
|
+
} | null | undefined;
|
|
712
|
+
}[] | null | undefined;
|
|
696
713
|
files?: {
|
|
697
714
|
fileId: string;
|
|
698
715
|
itemId: string | number;
|
|
@@ -707,7 +724,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
707
724
|
}[] | null | undefined;
|
|
708
725
|
categoryId?: number | null | undefined;
|
|
709
726
|
brandId?: string | number | null | undefined;
|
|
710
|
-
sex?: string | null | undefined;
|
|
711
727
|
purchasePrice?: number | null | undefined;
|
|
712
728
|
purchaseDate?: Date | null | undefined;
|
|
713
729
|
purchasePlaceId?: string | number | null | undefined;
|
|
@@ -762,22 +778,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
762
778
|
itemId: string | number;
|
|
763
779
|
data?: string | null | undefined;
|
|
764
780
|
} | null | undefined;
|
|
765
|
-
platforms?: {
|
|
766
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
767
|
-
id: string;
|
|
768
|
-
itemId: string | number;
|
|
769
|
-
accountId: string;
|
|
770
|
-
platformId: string;
|
|
771
|
-
platformUrl: string;
|
|
772
|
-
platformPrice: number;
|
|
773
|
-
account?: {
|
|
774
|
-
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
775
|
-
userId: string | number;
|
|
776
|
-
name: string;
|
|
777
|
-
platform: "VINTED" | "SHOPIFY";
|
|
778
|
-
accountId: string;
|
|
779
|
-
} | null | undefined;
|
|
780
|
-
}[] | null | undefined;
|
|
781
781
|
};
|
|
782
782
|
}>;
|
|
783
783
|
export type UpdatedItem = z.infer<typeof UpdatedItemSchema>;
|
|
@@ -6,13 +6,13 @@ export declare const CreateItemOnPlatformPayloadSchema: z.ZodObject<{
|
|
|
6
6
|
platformPrice: z.ZodNumber;
|
|
7
7
|
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
status: "DELETED" | "
|
|
9
|
+
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
10
10
|
accountId: string;
|
|
11
11
|
platformId: string;
|
|
12
12
|
platformUrl: string;
|
|
13
13
|
platformPrice: number;
|
|
14
14
|
}, {
|
|
15
|
-
status: "DELETED" | "
|
|
15
|
+
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
16
16
|
accountId: string;
|
|
17
17
|
platformId: string;
|
|
18
18
|
platformUrl: string;
|
|
@@ -27,7 +27,7 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
|
|
|
27
27
|
accountId: string;
|
|
28
28
|
}>>>;
|
|
29
29
|
}, "strip", z.ZodTypeAny, {
|
|
30
|
-
status: "DELETED" | "
|
|
30
|
+
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
31
31
|
id: string;
|
|
32
32
|
itemId: string | number;
|
|
33
33
|
accountId: string;
|
|
@@ -42,7 +42,7 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
|
|
|
42
42
|
accountId: string;
|
|
43
43
|
} | null | undefined;
|
|
44
44
|
}, {
|
|
45
|
-
status: "DELETED" | "
|
|
45
|
+
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
46
46
|
id: string;
|
|
47
47
|
itemId: string | number;
|
|
48
48
|
accountId: string;
|
|
@@ -80,8 +80,8 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
80
80
|
};
|
|
81
81
|
data?: string | null | undefined;
|
|
82
82
|
createdAt?: Date | null | undefined;
|
|
83
|
-
platformUrl?: string | null | undefined;
|
|
84
83
|
sold?: boolean | null | undefined;
|
|
84
|
+
platformUrl?: string | null | undefined;
|
|
85
85
|
}, {
|
|
86
86
|
platformId: string;
|
|
87
87
|
post: {
|
|
@@ -104,8 +104,8 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
104
104
|
};
|
|
105
105
|
data?: string | null | undefined;
|
|
106
106
|
createdAt?: Date | null | undefined;
|
|
107
|
-
platformUrl?: string | null | undefined;
|
|
108
107
|
sold?: boolean | null | undefined;
|
|
108
|
+
platformUrl?: string | null | undefined;
|
|
109
109
|
}>;
|
|
110
110
|
account: z.ZodObject<{
|
|
111
111
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
@@ -156,8 +156,8 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
156
156
|
};
|
|
157
157
|
data?: string | null | undefined;
|
|
158
158
|
createdAt?: Date | null | undefined;
|
|
159
|
-
platformUrl?: string | null | undefined;
|
|
160
159
|
sold?: boolean | null | undefined;
|
|
160
|
+
platformUrl?: string | null | undefined;
|
|
161
161
|
};
|
|
162
162
|
}, {
|
|
163
163
|
account: {
|
|
@@ -189,8 +189,8 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
189
189
|
};
|
|
190
190
|
data?: string | null | undefined;
|
|
191
191
|
createdAt?: Date | null | undefined;
|
|
192
|
-
platformUrl?: string | null | undefined;
|
|
193
192
|
sold?: boolean | null | undefined;
|
|
193
|
+
platformUrl?: string | null | undefined;
|
|
194
194
|
};
|
|
195
195
|
}>;
|
|
196
196
|
export type ItemOnPlatformUpdateRequest = z.infer<typeof ItemOnPlatformUpdateRequestSchema>;
|
|
@@ -4,11 +4,11 @@ export declare const UpdateItemOnPlatformPayloadSchema: z.ZodObject<{
|
|
|
4
4
|
platformUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
5
|
platformPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
status?: "DELETED" | "
|
|
7
|
+
status?: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE" | null | undefined;
|
|
8
8
|
platformUrl?: string | null | undefined;
|
|
9
9
|
platformPrice?: number | null | undefined;
|
|
10
10
|
}, {
|
|
11
|
-
status?: "DELETED" | "
|
|
11
|
+
status?: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE" | null | undefined;
|
|
12
12
|
platformUrl?: string | null | undefined;
|
|
13
13
|
platformPrice?: number | null | undefined;
|
|
14
14
|
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PlatformFiltersContextSchema: z.ZodObject<{
|
|
3
|
+
accountIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
4
|
+
platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["VINTED", "SHOPIFY"]>, "many">>>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
accountIds?: string[] | null | undefined;
|
|
7
|
+
platforms?: ("VINTED" | "SHOPIFY")[] | null | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
accountIds?: string[] | null | undefined;
|
|
10
|
+
platforms?: ("VINTED" | "SHOPIFY")[] | null | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
export type PlatformFiltersContext = z.infer<typeof PlatformFiltersContextSchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlatformFiltersContextSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const controlresell_connector_1 = require("controlresell-connector");
|
|
6
|
+
exports.PlatformFiltersContextSchema = zod_1.z.object({
|
|
7
|
+
accountIds: zod_1.z.array(zod_1.z.string().uuid()).nullish(),
|
|
8
|
+
platforms: zod_1.z.array(controlresell_connector_1.AccountPlatformSchema).nullish()
|
|
9
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {AccountPlatformSchema} from "controlresell-connector"
|
|
3
|
+
|
|
4
|
+
export const PlatformFiltersContextSchema = z.object({
|
|
5
|
+
accountIds: z.array(z.string().uuid()).nullish(),
|
|
6
|
+
platforms: z.array(AccountPlatformSchema).nullish()
|
|
7
|
+
})
|
|
8
|
+
export type PlatformFiltersContext = z.infer<typeof PlatformFiltersContextSchema>
|
|
@@ -235,8 +235,8 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
235
235
|
};
|
|
236
236
|
data?: string | null | undefined;
|
|
237
237
|
createdAt?: Date | null | undefined;
|
|
238
|
-
platformUrl?: string | null | undefined;
|
|
239
238
|
sold?: boolean | null | undefined;
|
|
239
|
+
platformUrl?: string | null | undefined;
|
|
240
240
|
}, {
|
|
241
241
|
platformId: string;
|
|
242
242
|
post: {
|
|
@@ -259,8 +259,8 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
259
259
|
};
|
|
260
260
|
data?: string | null | undefined;
|
|
261
261
|
createdAt?: Date | null | undefined;
|
|
262
|
-
platformUrl?: string | null | undefined;
|
|
263
262
|
sold?: boolean | null | undefined;
|
|
263
|
+
platformUrl?: string | null | undefined;
|
|
264
264
|
}>, "many">>>;
|
|
265
265
|
orders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
266
266
|
id: z.ZodString;
|
|
@@ -384,8 +384,8 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
384
384
|
};
|
|
385
385
|
data?: string | null | undefined;
|
|
386
386
|
createdAt?: Date | null | undefined;
|
|
387
|
-
platformUrl?: string | null | undefined;
|
|
388
387
|
sold?: boolean | null | undefined;
|
|
388
|
+
platformUrl?: string | null | undefined;
|
|
389
389
|
}[] | null | undefined;
|
|
390
390
|
orders?: {
|
|
391
391
|
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";
|
|
@@ -477,8 +477,8 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
477
477
|
};
|
|
478
478
|
data?: string | null | undefined;
|
|
479
479
|
createdAt?: Date | null | undefined;
|
|
480
|
-
platformUrl?: string | null | undefined;
|
|
481
480
|
sold?: boolean | null | undefined;
|
|
481
|
+
platformUrl?: string | null | undefined;
|
|
482
482
|
}[] | null | undefined;
|
|
483
483
|
orders?: {
|
|
484
484
|
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";
|
|
@@ -598,8 +598,8 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
598
598
|
};
|
|
599
599
|
data?: string | null | undefined;
|
|
600
600
|
createdAt?: Date | null | undefined;
|
|
601
|
-
platformUrl?: string | null | undefined;
|
|
602
601
|
sold?: boolean | null | undefined;
|
|
602
|
+
platformUrl?: string | null | undefined;
|
|
603
603
|
}[] | null | undefined;
|
|
604
604
|
orders?: {
|
|
605
605
|
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";
|
|
@@ -700,8 +700,8 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
700
700
|
};
|
|
701
701
|
data?: string | null | undefined;
|
|
702
702
|
createdAt?: Date | null | undefined;
|
|
703
|
-
platformUrl?: string | null | undefined;
|
|
704
703
|
sold?: boolean | null | undefined;
|
|
704
|
+
platformUrl?: string | null | undefined;
|
|
705
705
|
}[] | null | undefined;
|
|
706
706
|
orders?: {
|
|
707
707
|
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";
|
|
@@ -39,7 +39,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
39
39
|
accountId: string;
|
|
40
40
|
}>>>;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
status: "DELETED" | "
|
|
42
|
+
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
43
43
|
id: string;
|
|
44
44
|
itemId: string | number;
|
|
45
45
|
accountId: string;
|
|
@@ -54,7 +54,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
54
54
|
accountId: string;
|
|
55
55
|
} | null | undefined;
|
|
56
56
|
}, {
|
|
57
|
-
status: "DELETED" | "
|
|
57
|
+
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
58
58
|
id: string;
|
|
59
59
|
itemId: string | number;
|
|
60
60
|
accountId: string;
|
|
@@ -73,7 +73,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
73
73
|
orderId: string;
|
|
74
74
|
itemOnPlatformId: string;
|
|
75
75
|
itemOnPlatform?: {
|
|
76
|
-
status: "DELETED" | "
|
|
76
|
+
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
77
77
|
id: string;
|
|
78
78
|
itemId: string | number;
|
|
79
79
|
accountId: string;
|
|
@@ -92,7 +92,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
92
92
|
orderId: string;
|
|
93
93
|
itemOnPlatformId: string;
|
|
94
94
|
itemOnPlatform?: {
|
|
95
|
-
status: "DELETED" | "
|
|
95
|
+
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
96
96
|
id: string;
|
|
97
97
|
itemId: string | number;
|
|
98
98
|
accountId: string;
|
|
@@ -201,7 +201,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
201
201
|
orderId: string;
|
|
202
202
|
itemOnPlatformId: string;
|
|
203
203
|
itemOnPlatform?: {
|
|
204
|
-
status: "DELETED" | "
|
|
204
|
+
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
205
205
|
id: string;
|
|
206
206
|
itemId: string | number;
|
|
207
207
|
accountId: string;
|
|
@@ -250,7 +250,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
250
250
|
orderId: string;
|
|
251
251
|
itemOnPlatformId: string;
|
|
252
252
|
itemOnPlatform?: {
|
|
253
|
-
status: "DELETED" | "
|
|
253
|
+
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
254
254
|
id: string;
|
|
255
255
|
itemId: string | number;
|
|
256
256
|
accountId: string;
|
|
@@ -30,7 +30,7 @@ export declare const ItemInOrderSchema: z.ZodObject<{
|
|
|
30
30
|
accountId: string;
|
|
31
31
|
}>>>;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
status: "DELETED" | "
|
|
33
|
+
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
34
34
|
id: string;
|
|
35
35
|
itemId: string | number;
|
|
36
36
|
accountId: string;
|
|
@@ -45,7 +45,7 @@ export declare const ItemInOrderSchema: z.ZodObject<{
|
|
|
45
45
|
accountId: string;
|
|
46
46
|
} | null | undefined;
|
|
47
47
|
}, {
|
|
48
|
-
status: "DELETED" | "
|
|
48
|
+
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
49
49
|
id: string;
|
|
50
50
|
itemId: string | number;
|
|
51
51
|
accountId: string;
|
|
@@ -64,7 +64,7 @@ export declare const ItemInOrderSchema: z.ZodObject<{
|
|
|
64
64
|
orderId: string;
|
|
65
65
|
itemOnPlatformId: string;
|
|
66
66
|
itemOnPlatform?: {
|
|
67
|
-
status: "DELETED" | "
|
|
67
|
+
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
68
68
|
id: string;
|
|
69
69
|
itemId: string | number;
|
|
70
70
|
accountId: string;
|
|
@@ -83,7 +83,7 @@ export declare const ItemInOrderSchema: z.ZodObject<{
|
|
|
83
83
|
orderId: string;
|
|
84
84
|
itemOnPlatformId: string;
|
|
85
85
|
itemOnPlatform?: {
|
|
86
|
-
status: "DELETED" | "
|
|
86
|
+
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
87
87
|
id: string;
|
|
88
88
|
itemId: string | number;
|
|
89
89
|
accountId: string;
|