controlresell 0.0.53 → 0.0.55
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 +9 -0
- package/src/com/controlresell/models/items/Item.d.ts +7 -0
- package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +9 -0
- package/src/com/controlresell/models/items/UpdatedItem.d.ts +9 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatform.d.ts +5 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +9 -0
- package/src/com/controlresell/models/platforms/orders/Order.d.ts +9 -0
- package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +7 -0
- package/src/com/controlresell/models/users/UpdateUserPayload.d.ts +0 -3
- package/src/com/controlresell/models/users/UpdateUserPayload.js +0 -1
- package/src/com/controlresell/models/users/UpdateUserPayload.ts +0 -1
- package/src/com/controlresell/models/users/User.d.ts +0 -9
- package/src/com/controlresell/models/users/User.js +0 -3
- package/src/com/controlresell/models/users/User.ts +0 -3
- package/src/com/controlresell/models/users/platforms/PlatformAuthRequest.d.ts +8 -0
- package/src/com/controlresell/models/users/platforms/PlatformAuthRequest.js +2 -1
- package/src/com/controlresell/models/users/platforms/PlatformAuthRequest.ts +2 -1
- package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.d.ts +12 -0
- package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.js +9 -0
- package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.ts +8 -0
- package/src/com/controlresell/models/users/platforms/UserOnPlatform.d.ts +3 -0
- package/src/com/controlresell/models/users/platforms/UserOnPlatform.js +3 -1
- package/src/com/controlresell/models/users/platforms/UserOnPlatform.ts +3 -1
- package/src/com/controlresell/models/users/platforms/UserOnPlatformSessionMessage.d.ts +3 -0
- package/src/com/controlresell/models/users/platforms/UserOnPlatformSessionMessage.js +2 -1
- package/src/com/controlresell/models/users/platforms/UserOnPlatformSessionMessage.ts +2 -1
- package/src/com/controlresell/models/users/platforms/UserOnPlatformStatus.d.ts +3 -0
- package/src/com/controlresell/models/users/platforms/UserOnPlatformStatus.js +7 -0
- package/src/com/controlresell/models/users/platforms/UserOnPlatformStatus.ts +6 -0
- package/src/index.d.ts +2 -0
- package/src/index.js +2 -0
- package/src/index.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "controlresell",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.55",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"src/**/*"
|
|
15
15
|
],
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"typescript": "^5.8.
|
|
17
|
+
"typescript": "^5.8.3"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"controlresell-connector": "^0.0.
|
|
20
|
+
"controlresell-connector": "^0.0.22",
|
|
21
21
|
"zod": "^3.24.2",
|
|
22
22
|
"zodable-idschema": "^1.0.0"
|
|
23
23
|
}
|
|
@@ -240,12 +240,15 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
240
240
|
accountId: z.ZodString;
|
|
241
241
|
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
242
242
|
name: z.ZodString;
|
|
243
|
+
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
243
244
|
}, "strip", z.ZodTypeAny, {
|
|
245
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
244
246
|
platform: "VINTED" | "SHOPIFY";
|
|
245
247
|
accountId: string;
|
|
246
248
|
userId: string | number;
|
|
247
249
|
name: string;
|
|
248
250
|
}, {
|
|
251
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
249
252
|
platform: "VINTED" | "SHOPIFY";
|
|
250
253
|
accountId: string;
|
|
251
254
|
userId: string | number;
|
|
@@ -260,6 +263,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
260
263
|
platformUrl: string;
|
|
261
264
|
platformPrice: number;
|
|
262
265
|
account?: {
|
|
266
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
263
267
|
platform: "VINTED" | "SHOPIFY";
|
|
264
268
|
accountId: string;
|
|
265
269
|
userId: string | number;
|
|
@@ -274,6 +278,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
274
278
|
platformUrl: string;
|
|
275
279
|
platformPrice: number;
|
|
276
280
|
account?: {
|
|
281
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
277
282
|
platform: "VINTED" | "SHOPIFY";
|
|
278
283
|
accountId: string;
|
|
279
284
|
userId: string | number;
|
|
@@ -384,6 +389,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
384
389
|
platformUrl: string;
|
|
385
390
|
platformPrice: number;
|
|
386
391
|
account?: {
|
|
392
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
387
393
|
platform: "VINTED" | "SHOPIFY";
|
|
388
394
|
accountId: string;
|
|
389
395
|
userId: string | number;
|
|
@@ -492,6 +498,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
492
498
|
platformUrl: string;
|
|
493
499
|
platformPrice: number;
|
|
494
500
|
account?: {
|
|
501
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
495
502
|
platform: "VINTED" | "SHOPIFY";
|
|
496
503
|
accountId: string;
|
|
497
504
|
userId: string | number;
|
|
@@ -618,6 +625,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
618
625
|
platformUrl: string;
|
|
619
626
|
platformPrice: number;
|
|
620
627
|
account?: {
|
|
628
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
621
629
|
platform: "VINTED" | "SHOPIFY";
|
|
622
630
|
accountId: string;
|
|
623
631
|
userId: string | number;
|
|
@@ -734,6 +742,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
734
742
|
platformUrl: string;
|
|
735
743
|
platformPrice: number;
|
|
736
744
|
account?: {
|
|
745
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
737
746
|
platform: "VINTED" | "SHOPIFY";
|
|
738
747
|
accountId: string;
|
|
739
748
|
userId: string | number;
|
|
@@ -239,12 +239,15 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
239
239
|
accountId: z.ZodString;
|
|
240
240
|
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
241
241
|
name: z.ZodString;
|
|
242
|
+
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
242
243
|
}, "strip", z.ZodTypeAny, {
|
|
244
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
243
245
|
platform: "VINTED" | "SHOPIFY";
|
|
244
246
|
accountId: string;
|
|
245
247
|
userId: string | number;
|
|
246
248
|
name: string;
|
|
247
249
|
}, {
|
|
250
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
248
251
|
platform: "VINTED" | "SHOPIFY";
|
|
249
252
|
accountId: string;
|
|
250
253
|
userId: string | number;
|
|
@@ -259,6 +262,7 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
259
262
|
platformUrl: string;
|
|
260
263
|
platformPrice: number;
|
|
261
264
|
account?: {
|
|
265
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
262
266
|
platform: "VINTED" | "SHOPIFY";
|
|
263
267
|
accountId: string;
|
|
264
268
|
userId: string | number;
|
|
@@ -273,6 +277,7 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
273
277
|
platformUrl: string;
|
|
274
278
|
platformPrice: number;
|
|
275
279
|
account?: {
|
|
280
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
276
281
|
platform: "VINTED" | "SHOPIFY";
|
|
277
282
|
accountId: string;
|
|
278
283
|
userId: string | number;
|
|
@@ -383,6 +388,7 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
383
388
|
platformUrl: string;
|
|
384
389
|
platformPrice: number;
|
|
385
390
|
account?: {
|
|
391
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
386
392
|
platform: "VINTED" | "SHOPIFY";
|
|
387
393
|
accountId: string;
|
|
388
394
|
userId: string | number;
|
|
@@ -491,6 +497,7 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
491
497
|
platformUrl: string;
|
|
492
498
|
platformPrice: number;
|
|
493
499
|
account?: {
|
|
500
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
494
501
|
platform: "VINTED" | "SHOPIFY";
|
|
495
502
|
accountId: string;
|
|
496
503
|
userId: string | number;
|
|
@@ -242,12 +242,15 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
242
242
|
accountId: z.ZodString;
|
|
243
243
|
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
244
244
|
name: z.ZodString;
|
|
245
|
+
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
245
246
|
}, "strip", z.ZodTypeAny, {
|
|
247
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
246
248
|
platform: "VINTED" | "SHOPIFY";
|
|
247
249
|
accountId: string;
|
|
248
250
|
userId: string | number;
|
|
249
251
|
name: string;
|
|
250
252
|
}, {
|
|
253
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
251
254
|
platform: "VINTED" | "SHOPIFY";
|
|
252
255
|
accountId: string;
|
|
253
256
|
userId: string | number;
|
|
@@ -262,6 +265,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
262
265
|
platformUrl: string;
|
|
263
266
|
platformPrice: number;
|
|
264
267
|
account?: {
|
|
268
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
265
269
|
platform: "VINTED" | "SHOPIFY";
|
|
266
270
|
accountId: string;
|
|
267
271
|
userId: string | number;
|
|
@@ -276,6 +280,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
276
280
|
platformUrl: string;
|
|
277
281
|
platformPrice: number;
|
|
278
282
|
account?: {
|
|
283
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
279
284
|
platform: "VINTED" | "SHOPIFY";
|
|
280
285
|
accountId: string;
|
|
281
286
|
userId: string | number;
|
|
@@ -386,6 +391,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
386
391
|
platformUrl: string;
|
|
387
392
|
platformPrice: number;
|
|
388
393
|
account?: {
|
|
394
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
389
395
|
platform: "VINTED" | "SHOPIFY";
|
|
390
396
|
accountId: string;
|
|
391
397
|
userId: string | number;
|
|
@@ -494,6 +500,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
494
500
|
platformUrl: string;
|
|
495
501
|
platformPrice: number;
|
|
496
502
|
account?: {
|
|
503
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
497
504
|
platform: "VINTED" | "SHOPIFY";
|
|
498
505
|
accountId: string;
|
|
499
506
|
userId: string | number;
|
|
@@ -662,6 +669,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
662
669
|
platformUrl: string;
|
|
663
670
|
platformPrice: number;
|
|
664
671
|
account?: {
|
|
672
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
665
673
|
platform: "VINTED" | "SHOPIFY";
|
|
666
674
|
accountId: string;
|
|
667
675
|
userId: string | number;
|
|
@@ -793,6 +801,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
793
801
|
platformUrl: string;
|
|
794
802
|
platformPrice: number;
|
|
795
803
|
account?: {
|
|
804
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
796
805
|
platform: "VINTED" | "SHOPIFY";
|
|
797
806
|
accountId: string;
|
|
798
807
|
userId: string | number;
|
|
@@ -240,12 +240,15 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
240
240
|
accountId: z.ZodString;
|
|
241
241
|
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
242
242
|
name: z.ZodString;
|
|
243
|
+
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
243
244
|
}, "strip", z.ZodTypeAny, {
|
|
245
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
244
246
|
platform: "VINTED" | "SHOPIFY";
|
|
245
247
|
accountId: string;
|
|
246
248
|
userId: string | number;
|
|
247
249
|
name: string;
|
|
248
250
|
}, {
|
|
251
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
249
252
|
platform: "VINTED" | "SHOPIFY";
|
|
250
253
|
accountId: string;
|
|
251
254
|
userId: string | number;
|
|
@@ -260,6 +263,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
260
263
|
platformUrl: string;
|
|
261
264
|
platformPrice: number;
|
|
262
265
|
account?: {
|
|
266
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
263
267
|
platform: "VINTED" | "SHOPIFY";
|
|
264
268
|
accountId: string;
|
|
265
269
|
userId: string | number;
|
|
@@ -274,6 +278,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
274
278
|
platformUrl: string;
|
|
275
279
|
platformPrice: number;
|
|
276
280
|
account?: {
|
|
281
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
277
282
|
platform: "VINTED" | "SHOPIFY";
|
|
278
283
|
accountId: string;
|
|
279
284
|
userId: string | number;
|
|
@@ -384,6 +389,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
384
389
|
platformUrl: string;
|
|
385
390
|
platformPrice: number;
|
|
386
391
|
account?: {
|
|
392
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
387
393
|
platform: "VINTED" | "SHOPIFY";
|
|
388
394
|
accountId: string;
|
|
389
395
|
userId: string | number;
|
|
@@ -492,6 +498,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
492
498
|
platformUrl: string;
|
|
493
499
|
platformPrice: number;
|
|
494
500
|
account?: {
|
|
501
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
495
502
|
platform: "VINTED" | "SHOPIFY";
|
|
496
503
|
accountId: string;
|
|
497
504
|
userId: string | number;
|
|
@@ -624,6 +631,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
624
631
|
platformUrl: string;
|
|
625
632
|
platformPrice: number;
|
|
626
633
|
account?: {
|
|
634
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
627
635
|
platform: "VINTED" | "SHOPIFY";
|
|
628
636
|
accountId: string;
|
|
629
637
|
userId: string | number;
|
|
@@ -740,6 +748,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
740
748
|
platformUrl: string;
|
|
741
749
|
platformPrice: number;
|
|
742
750
|
account?: {
|
|
751
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
743
752
|
platform: "VINTED" | "SHOPIFY";
|
|
744
753
|
accountId: string;
|
|
745
754
|
userId: string | number;
|
|
@@ -12,12 +12,15 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
|
|
|
12
12
|
accountId: z.ZodString;
|
|
13
13
|
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
14
14
|
name: z.ZodString;
|
|
15
|
+
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
15
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
16
18
|
platform: "VINTED" | "SHOPIFY";
|
|
17
19
|
accountId: string;
|
|
18
20
|
userId: string | number;
|
|
19
21
|
name: string;
|
|
20
22
|
}, {
|
|
23
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
21
24
|
platform: "VINTED" | "SHOPIFY";
|
|
22
25
|
accountId: string;
|
|
23
26
|
userId: string | number;
|
|
@@ -32,6 +35,7 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
|
|
|
32
35
|
platformUrl: string;
|
|
33
36
|
platformPrice: number;
|
|
34
37
|
account?: {
|
|
38
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
35
39
|
platform: "VINTED" | "SHOPIFY";
|
|
36
40
|
accountId: string;
|
|
37
41
|
userId: string | number;
|
|
@@ -46,6 +50,7 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
|
|
|
46
50
|
platformUrl: string;
|
|
47
51
|
platformPrice: number;
|
|
48
52
|
account?: {
|
|
53
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
49
54
|
platform: "VINTED" | "SHOPIFY";
|
|
50
55
|
accountId: string;
|
|
51
56
|
userId: string | number;
|
|
@@ -250,12 +250,15 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
|
|
|
250
250
|
accountId: z.ZodString;
|
|
251
251
|
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
252
252
|
name: z.ZodString;
|
|
253
|
+
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
253
254
|
}, "strip", z.ZodTypeAny, {
|
|
255
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
254
256
|
platform: "VINTED" | "SHOPIFY";
|
|
255
257
|
accountId: string;
|
|
256
258
|
userId: string | number;
|
|
257
259
|
name: string;
|
|
258
260
|
}, {
|
|
261
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
259
262
|
platform: "VINTED" | "SHOPIFY";
|
|
260
263
|
accountId: string;
|
|
261
264
|
userId: string | number;
|
|
@@ -270,6 +273,7 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
|
|
|
270
273
|
platformUrl: string;
|
|
271
274
|
platformPrice: number;
|
|
272
275
|
account?: {
|
|
276
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
273
277
|
platform: "VINTED" | "SHOPIFY";
|
|
274
278
|
accountId: string;
|
|
275
279
|
userId: string | number;
|
|
@@ -284,6 +288,7 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
|
|
|
284
288
|
platformUrl: string;
|
|
285
289
|
platformPrice: number;
|
|
286
290
|
account?: {
|
|
291
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
287
292
|
platform: "VINTED" | "SHOPIFY";
|
|
288
293
|
accountId: string;
|
|
289
294
|
userId: string | number;
|
|
@@ -394,6 +399,7 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
|
|
|
394
399
|
platformUrl: string;
|
|
395
400
|
platformPrice: number;
|
|
396
401
|
account?: {
|
|
402
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
397
403
|
platform: "VINTED" | "SHOPIFY";
|
|
398
404
|
accountId: string;
|
|
399
405
|
userId: string | number;
|
|
@@ -502,6 +508,7 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
|
|
|
502
508
|
platformUrl: string;
|
|
503
509
|
platformPrice: number;
|
|
504
510
|
account?: {
|
|
511
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
505
512
|
platform: "VINTED" | "SHOPIFY";
|
|
506
513
|
accountId: string;
|
|
507
514
|
userId: string | number;
|
|
@@ -612,6 +619,7 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
|
|
|
612
619
|
platformUrl: string;
|
|
613
620
|
platformPrice: number;
|
|
614
621
|
account?: {
|
|
622
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
615
623
|
platform: "VINTED" | "SHOPIFY";
|
|
616
624
|
accountId: string;
|
|
617
625
|
userId: string | number;
|
|
@@ -726,6 +734,7 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
|
|
|
726
734
|
platformUrl: string;
|
|
727
735
|
platformPrice: number;
|
|
728
736
|
account?: {
|
|
737
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
729
738
|
platform: "VINTED" | "SHOPIFY";
|
|
730
739
|
accountId: string;
|
|
731
740
|
userId: string | number;
|
|
@@ -23,12 +23,15 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
23
23
|
accountId: z.ZodString;
|
|
24
24
|
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
25
25
|
name: z.ZodString;
|
|
26
|
+
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
26
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
27
29
|
platform: "VINTED" | "SHOPIFY";
|
|
28
30
|
accountId: string;
|
|
29
31
|
userId: string | number;
|
|
30
32
|
name: string;
|
|
31
33
|
}, {
|
|
34
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
32
35
|
platform: "VINTED" | "SHOPIFY";
|
|
33
36
|
accountId: string;
|
|
34
37
|
userId: string | number;
|
|
@@ -43,6 +46,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
43
46
|
platformUrl: string;
|
|
44
47
|
platformPrice: number;
|
|
45
48
|
account?: {
|
|
49
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
46
50
|
platform: "VINTED" | "SHOPIFY";
|
|
47
51
|
accountId: string;
|
|
48
52
|
userId: string | number;
|
|
@@ -57,6 +61,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
57
61
|
platformUrl: string;
|
|
58
62
|
platformPrice: number;
|
|
59
63
|
account?: {
|
|
64
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
60
65
|
platform: "VINTED" | "SHOPIFY";
|
|
61
66
|
accountId: string;
|
|
62
67
|
userId: string | number;
|
|
@@ -75,6 +80,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
75
80
|
platformUrl: string;
|
|
76
81
|
platformPrice: number;
|
|
77
82
|
account?: {
|
|
83
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
78
84
|
platform: "VINTED" | "SHOPIFY";
|
|
79
85
|
accountId: string;
|
|
80
86
|
userId: string | number;
|
|
@@ -93,6 +99,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
93
99
|
platformUrl: string;
|
|
94
100
|
platformPrice: number;
|
|
95
101
|
account?: {
|
|
102
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
96
103
|
platform: "VINTED" | "SHOPIFY";
|
|
97
104
|
accountId: string;
|
|
98
105
|
userId: string | number;
|
|
@@ -202,6 +209,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
202
209
|
platformUrl: string;
|
|
203
210
|
platformPrice: number;
|
|
204
211
|
account?: {
|
|
212
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
205
213
|
platform: "VINTED" | "SHOPIFY";
|
|
206
214
|
accountId: string;
|
|
207
215
|
userId: string | number;
|
|
@@ -249,6 +257,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
249
257
|
platformUrl: string;
|
|
250
258
|
platformPrice: number;
|
|
251
259
|
account?: {
|
|
260
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
252
261
|
platform: "VINTED" | "SHOPIFY";
|
|
253
262
|
accountId: string;
|
|
254
263
|
userId: string | number;
|
|
@@ -15,12 +15,15 @@ export declare const ItemInOrderSchema: z.ZodObject<{
|
|
|
15
15
|
accountId: z.ZodString;
|
|
16
16
|
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
17
17
|
name: z.ZodString;
|
|
18
|
+
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
18
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
19
21
|
platform: "VINTED" | "SHOPIFY";
|
|
20
22
|
accountId: string;
|
|
21
23
|
userId: string | number;
|
|
22
24
|
name: string;
|
|
23
25
|
}, {
|
|
26
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
24
27
|
platform: "VINTED" | "SHOPIFY";
|
|
25
28
|
accountId: string;
|
|
26
29
|
userId: string | number;
|
|
@@ -35,6 +38,7 @@ export declare const ItemInOrderSchema: z.ZodObject<{
|
|
|
35
38
|
platformUrl: string;
|
|
36
39
|
platformPrice: number;
|
|
37
40
|
account?: {
|
|
41
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
38
42
|
platform: "VINTED" | "SHOPIFY";
|
|
39
43
|
accountId: string;
|
|
40
44
|
userId: string | number;
|
|
@@ -49,6 +53,7 @@ export declare const ItemInOrderSchema: z.ZodObject<{
|
|
|
49
53
|
platformUrl: string;
|
|
50
54
|
platformPrice: number;
|
|
51
55
|
account?: {
|
|
56
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
52
57
|
platform: "VINTED" | "SHOPIFY";
|
|
53
58
|
accountId: string;
|
|
54
59
|
userId: string | number;
|
|
@@ -67,6 +72,7 @@ export declare const ItemInOrderSchema: z.ZodObject<{
|
|
|
67
72
|
platformUrl: string;
|
|
68
73
|
platformPrice: number;
|
|
69
74
|
account?: {
|
|
75
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
70
76
|
platform: "VINTED" | "SHOPIFY";
|
|
71
77
|
accountId: string;
|
|
72
78
|
userId: string | number;
|
|
@@ -85,6 +91,7 @@ export declare const ItemInOrderSchema: z.ZodObject<{
|
|
|
85
91
|
platformUrl: string;
|
|
86
92
|
platformPrice: number;
|
|
87
93
|
account?: {
|
|
94
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
88
95
|
platform: "VINTED" | "SHOPIFY";
|
|
89
96
|
accountId: string;
|
|
90
97
|
userId: string | number;
|
|
@@ -2,7 +2,6 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const UpdateUserPayloadSchema: z.ZodObject<{
|
|
3
3
|
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
4
|
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
-
membership: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
5
|
affiliate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
6
|
notificationToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
7
|
phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -20,7 +19,6 @@ export declare const UpdateUserPayloadSchema: z.ZodObject<{
|
|
|
20
19
|
}, "strip", z.ZodTypeAny, {
|
|
21
20
|
username?: string | null | undefined;
|
|
22
21
|
firstName?: string | null | undefined;
|
|
23
|
-
membership?: string | null | undefined;
|
|
24
22
|
affiliate?: string | null | undefined;
|
|
25
23
|
notificationToken?: string | null | undefined;
|
|
26
24
|
phoneNumber?: string | null | undefined;
|
|
@@ -32,7 +30,6 @@ export declare const UpdateUserPayloadSchema: z.ZodObject<{
|
|
|
32
30
|
}, {
|
|
33
31
|
username?: string | null | undefined;
|
|
34
32
|
firstName?: string | null | undefined;
|
|
35
|
-
membership?: string | null | undefined;
|
|
36
33
|
affiliate?: string | null | undefined;
|
|
37
34
|
notificationToken?: string | null | undefined;
|
|
38
35
|
phoneNumber?: string | null | undefined;
|
|
@@ -6,7 +6,6 @@ const FieldConfig_1 = require("./fields/FieldConfig");
|
|
|
6
6
|
exports.UpdateUserPayloadSchema = zod_1.z.object({
|
|
7
7
|
username: zod_1.z.string().nullish(),
|
|
8
8
|
firstName: zod_1.z.string().nullish(),
|
|
9
|
-
membership: zod_1.z.string().nullish(),
|
|
10
9
|
affiliate: zod_1.z.string().nullish(),
|
|
11
10
|
notificationToken: zod_1.z.string().nullish(),
|
|
12
11
|
phoneNumber: zod_1.z.string().nullish(),
|
|
@@ -4,7 +4,6 @@ import {FieldConfigSchema} from "./fields/FieldConfig"
|
|
|
4
4
|
export const UpdateUserPayloadSchema = z.object({
|
|
5
5
|
username: z.string().nullish(),
|
|
6
6
|
firstName: z.string().nullish(),
|
|
7
|
-
membership: z.string().nullish(),
|
|
8
7
|
affiliate: z.string().nullish(),
|
|
9
8
|
notificationToken: z.string().nullish(),
|
|
10
9
|
phoneNumber: z.string().nullish(),
|
|
@@ -6,7 +6,6 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
6
6
|
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
7
|
password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
8
|
anonymous: z.ZodBoolean;
|
|
9
|
-
membership: z.ZodString;
|
|
10
9
|
affiliate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
10
|
notificationToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
11
|
phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -24,8 +23,6 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
24
23
|
revenue: number;
|
|
25
24
|
currentMonthProfit: number;
|
|
26
25
|
}>>>;
|
|
27
|
-
isPro: z.ZodBoolean;
|
|
28
|
-
isShop: z.ZodBoolean;
|
|
29
26
|
customers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
30
27
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
31
28
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
@@ -80,10 +77,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
80
77
|
username: string;
|
|
81
78
|
createdAt: Date;
|
|
82
79
|
updatedAt: Date;
|
|
83
|
-
membership: string;
|
|
84
80
|
anonymous: boolean;
|
|
85
|
-
isPro: boolean;
|
|
86
|
-
isShop: boolean;
|
|
87
81
|
password?: string | null | undefined;
|
|
88
82
|
firstName?: string | null | undefined;
|
|
89
83
|
email?: string | null | undefined;
|
|
@@ -118,10 +112,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
118
112
|
username: string;
|
|
119
113
|
createdAt: Date;
|
|
120
114
|
updatedAt: Date;
|
|
121
|
-
membership: string;
|
|
122
115
|
anonymous: boolean;
|
|
123
|
-
isPro: boolean;
|
|
124
|
-
isShop: boolean;
|
|
125
116
|
password?: string | null | undefined;
|
|
126
117
|
firstName?: string | null | undefined;
|
|
127
118
|
email?: string | null | undefined;
|
|
@@ -13,14 +13,11 @@ exports.UserSchema = zod_1.z.object({
|
|
|
13
13
|
firstName: zod_1.z.string().nullish(),
|
|
14
14
|
password: zod_1.z.string().nullish(),
|
|
15
15
|
anonymous: zod_1.z.boolean(),
|
|
16
|
-
membership: zod_1.z.string(),
|
|
17
16
|
affiliate: zod_1.z.string().nullish(),
|
|
18
17
|
notificationToken: zod_1.z.string().nullish(),
|
|
19
18
|
phoneNumber: zod_1.z.string().nullish(),
|
|
20
19
|
countryDialCode: zod_1.z.string().nullish(),
|
|
21
20
|
wallet: Wallet_1.WalletSchema.nullish(),
|
|
22
|
-
isPro: zod_1.z.boolean(),
|
|
23
|
-
isShop: zod_1.z.boolean(),
|
|
24
21
|
customers: zod_1.z.array(Customer_1.CustomerSchema).nullish(),
|
|
25
22
|
fieldConfigs: zod_1.z.array(FieldConfig_1.FieldConfigSchema).nullish(),
|
|
26
23
|
createdAt: zod_1.z.coerce.date(),
|
|
@@ -11,14 +11,11 @@ export const UserSchema = z.object({
|
|
|
11
11
|
firstName: z.string().nullish(),
|
|
12
12
|
password: z.string().nullish(),
|
|
13
13
|
anonymous: z.boolean(),
|
|
14
|
-
membership: z.string(),
|
|
15
14
|
affiliate: z.string().nullish(),
|
|
16
15
|
notificationToken: z.string().nullish(),
|
|
17
16
|
phoneNumber: z.string().nullish(),
|
|
18
17
|
countryDialCode: z.string().nullish(),
|
|
19
18
|
wallet: WalletSchema.nullish(),
|
|
20
|
-
isPro: z.boolean(),
|
|
21
|
-
isShop: z.boolean(),
|
|
22
19
|
customers: z.array(CustomerSchema).nullish(),
|
|
23
20
|
fieldConfigs: z.array(FieldConfigSchema).nullish(),
|
|
24
21
|
createdAt: z.coerce.date(),
|
|
@@ -5,33 +5,41 @@ export declare const PlatformAuthRequestSchema: z.ZodObject<{
|
|
|
5
5
|
accountId: z.ZodString;
|
|
6
6
|
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
7
7
|
name: z.ZodString;
|
|
8
|
+
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
8
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
9
11
|
platform: "VINTED" | "SHOPIFY";
|
|
10
12
|
accountId: string;
|
|
11
13
|
userId: string | number;
|
|
12
14
|
name: string;
|
|
13
15
|
}, {
|
|
16
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
14
17
|
platform: "VINTED" | "SHOPIFY";
|
|
15
18
|
accountId: string;
|
|
16
19
|
userId: string | number;
|
|
17
20
|
name: string;
|
|
18
21
|
}>;
|
|
19
22
|
otp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
24
|
}, "strip", z.ZodTypeAny, {
|
|
21
25
|
account: {
|
|
26
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
22
27
|
platform: "VINTED" | "SHOPIFY";
|
|
23
28
|
accountId: string;
|
|
24
29
|
userId: string | number;
|
|
25
30
|
name: string;
|
|
26
31
|
};
|
|
32
|
+
error?: string | null | undefined;
|
|
27
33
|
otp?: number | null | undefined;
|
|
28
34
|
}, {
|
|
29
35
|
account: {
|
|
36
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
30
37
|
platform: "VINTED" | "SHOPIFY";
|
|
31
38
|
accountId: string;
|
|
32
39
|
userId: string | number;
|
|
33
40
|
name: string;
|
|
34
41
|
};
|
|
42
|
+
error?: string | null | undefined;
|
|
35
43
|
otp?: number | null | undefined;
|
|
36
44
|
}>;
|
|
37
45
|
export type PlatformAuthRequest = z.infer<typeof PlatformAuthRequestSchema>;
|
|
@@ -5,5 +5,6 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const UserOnPlatform_1 = require("./UserOnPlatform");
|
|
6
6
|
exports.PlatformAuthRequestSchema = zod_1.z.object({
|
|
7
7
|
account: UserOnPlatform_1.UserOnPlatformSchema,
|
|
8
|
-
otp: zod_1.z.number().int().nullish()
|
|
8
|
+
otp: zod_1.z.number().int().nullish(),
|
|
9
|
+
error: zod_1.z.string().nullish()
|
|
9
10
|
});
|
|
@@ -3,6 +3,7 @@ import {UserOnPlatformSchema} from "./UserOnPlatform"
|
|
|
3
3
|
|
|
4
4
|
export const PlatformAuthRequestSchema = z.object({
|
|
5
5
|
account: UserOnPlatformSchema,
|
|
6
|
-
otp: z.number().int().nullish()
|
|
6
|
+
otp: z.number().int().nullish(),
|
|
7
|
+
error: z.string().nullish()
|
|
7
8
|
})
|
|
8
9
|
export type PlatformAuthRequest = z.infer<typeof PlatformAuthRequestSchema>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const UpdateUserOnPlatformPayloadSchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>>>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
status?: "ERROR" | "CONNECTED" | "DISCONNECTED" | null | undefined;
|
|
7
|
+
name?: string | null | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
status?: "ERROR" | "CONNECTED" | "DISCONNECTED" | null | undefined;
|
|
10
|
+
name?: string | null | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
export type UpdateUserOnPlatformPayload = z.infer<typeof UpdateUserOnPlatformPayloadSchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateUserOnPlatformPayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const UserOnPlatformStatus_1 = require("./UserOnPlatformStatus");
|
|
6
|
+
exports.UpdateUserOnPlatformPayloadSchema = zod_1.z.object({
|
|
7
|
+
name: zod_1.z.string().nullish(),
|
|
8
|
+
status: UserOnPlatformStatus_1.UserOnPlatformStatusSchema.nullish()
|
|
9
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {UserOnPlatformStatusSchema} from "./UserOnPlatformStatus"
|
|
3
|
+
|
|
4
|
+
export const UpdateUserOnPlatformPayloadSchema = z.object({
|
|
5
|
+
name: z.string().nullish(),
|
|
6
|
+
status: UserOnPlatformStatusSchema.nullish()
|
|
7
|
+
})
|
|
8
|
+
export type UpdateUserOnPlatformPayload = z.infer<typeof UpdateUserOnPlatformPayloadSchema>
|
|
@@ -4,12 +4,15 @@ export declare const UserOnPlatformSchema: z.ZodObject<{
|
|
|
4
4
|
accountId: z.ZodString;
|
|
5
5
|
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
6
6
|
name: z.ZodString;
|
|
7
|
+
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
7
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
8
10
|
platform: "VINTED" | "SHOPIFY";
|
|
9
11
|
accountId: string;
|
|
10
12
|
userId: string | number;
|
|
11
13
|
name: string;
|
|
12
14
|
}, {
|
|
15
|
+
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
13
16
|
platform: "VINTED" | "SHOPIFY";
|
|
14
17
|
accountId: string;
|
|
15
18
|
userId: string | number;
|
|
@@ -4,9 +4,11 @@ exports.UserOnPlatformSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const zodable_idschema_1 = require("zodable-idschema");
|
|
6
6
|
const controlresell_connector_1 = require("controlresell-connector");
|
|
7
|
+
const UserOnPlatformStatus_1 = require("./UserOnPlatformStatus");
|
|
7
8
|
exports.UserOnPlatformSchema = zod_1.z.object({
|
|
8
9
|
userId: zodable_idschema_1.IdSchema,
|
|
9
10
|
accountId: zod_1.z.string().uuid(),
|
|
10
11
|
platform: controlresell_connector_1.AccountPlatformSchema,
|
|
11
|
-
name: zod_1.z.string()
|
|
12
|
+
name: zod_1.z.string(),
|
|
13
|
+
status: UserOnPlatformStatus_1.UserOnPlatformStatusSchema
|
|
12
14
|
});
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import {z} from "zod"
|
|
2
2
|
import {IdSchema} from "zodable-idschema"
|
|
3
3
|
import {AccountPlatformSchema} from "controlresell-connector"
|
|
4
|
+
import {UserOnPlatformStatusSchema} from "./UserOnPlatformStatus"
|
|
4
5
|
|
|
5
6
|
export const UserOnPlatformSchema = z.object({
|
|
6
7
|
userId: IdSchema,
|
|
7
8
|
accountId: z.string().uuid(),
|
|
8
9
|
platform: AccountPlatformSchema,
|
|
9
|
-
name: z.string()
|
|
10
|
+
name: z.string(),
|
|
11
|
+
status: UserOnPlatformStatusSchema
|
|
10
12
|
})
|
|
11
13
|
export type UserOnPlatform = z.infer<typeof UserOnPlatformSchema>
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const UserOnPlatformSessionMessageSchema: z.ZodObject<{
|
|
3
3
|
otp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
error?: string | null | undefined;
|
|
5
7
|
otp?: number | null | undefined;
|
|
6
8
|
}, {
|
|
9
|
+
error?: string | null | undefined;
|
|
7
10
|
otp?: number | null | undefined;
|
|
8
11
|
}>;
|
|
9
12
|
export type UserOnPlatformSessionMessage = z.infer<typeof UserOnPlatformSessionMessageSchema>;
|
|
@@ -3,5 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UserOnPlatformSessionMessageSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.UserOnPlatformSessionMessageSchema = zod_1.z.object({
|
|
6
|
-
otp: zod_1.z.number().int().nullish()
|
|
6
|
+
otp: zod_1.z.number().int().nullish(),
|
|
7
|
+
error: zod_1.z.string().nullish()
|
|
7
8
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {z} from "zod"
|
|
2
2
|
|
|
3
3
|
export const UserOnPlatformSessionMessageSchema = z.object({
|
|
4
|
-
otp: z.number().int().nullish()
|
|
4
|
+
otp: z.number().int().nullish(),
|
|
5
|
+
error: z.string().nullish()
|
|
5
6
|
})
|
|
6
7
|
export type UserOnPlatformSessionMessage = z.infer<typeof UserOnPlatformSessionMessageSchema>
|
package/src/index.d.ts
CHANGED
|
@@ -76,6 +76,8 @@ export * from "./com/controlresell/models/users/files/CreateFilePayload";
|
|
|
76
76
|
export * from "./com/controlresell/models/users/files/File";
|
|
77
77
|
export * from "./com/controlresell/models/users/platforms/CreateUserOnPlatformPayload";
|
|
78
78
|
export * from "./com/controlresell/models/users/platforms/PlatformAuthRequest";
|
|
79
|
+
export * from "./com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload";
|
|
79
80
|
export * from "./com/controlresell/models/users/platforms/UserOnPlatform";
|
|
80
81
|
export * from "./com/controlresell/models/users/platforms/UserOnPlatformSessionMessage";
|
|
82
|
+
export * from "./com/controlresell/models/users/platforms/UserOnPlatformStatus";
|
|
81
83
|
export * from "./com/controlresell/models/users/preferences/UserPreference";
|
package/src/index.js
CHANGED
|
@@ -92,6 +92,8 @@ __exportStar(require("./com/controlresell/models/users/files/CreateFilePayload")
|
|
|
92
92
|
__exportStar(require("./com/controlresell/models/users/files/File"), exports);
|
|
93
93
|
__exportStar(require("./com/controlresell/models/users/platforms/CreateUserOnPlatformPayload"), exports);
|
|
94
94
|
__exportStar(require("./com/controlresell/models/users/platforms/PlatformAuthRequest"), exports);
|
|
95
|
+
__exportStar(require("./com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload"), exports);
|
|
95
96
|
__exportStar(require("./com/controlresell/models/users/platforms/UserOnPlatform"), exports);
|
|
96
97
|
__exportStar(require("./com/controlresell/models/users/platforms/UserOnPlatformSessionMessage"), exports);
|
|
98
|
+
__exportStar(require("./com/controlresell/models/users/platforms/UserOnPlatformStatus"), exports);
|
|
97
99
|
__exportStar(require("./com/controlresell/models/users/preferences/UserPreference"), exports);
|
package/src/index.ts
CHANGED
|
@@ -76,6 +76,8 @@ export * from "./com/controlresell/models/users/files/CreateFilePayload"
|
|
|
76
76
|
export * from "./com/controlresell/models/users/files/File"
|
|
77
77
|
export * from "./com/controlresell/models/users/platforms/CreateUserOnPlatformPayload"
|
|
78
78
|
export * from "./com/controlresell/models/users/platforms/PlatformAuthRequest"
|
|
79
|
+
export * from "./com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload"
|
|
79
80
|
export * from "./com/controlresell/models/users/platforms/UserOnPlatform"
|
|
80
81
|
export * from "./com/controlresell/models/users/platforms/UserOnPlatformSessionMessage"
|
|
82
|
+
export * from "./com/controlresell/models/users/platforms/UserOnPlatformStatus"
|
|
81
83
|
export * from "./com/controlresell/models/users/preferences/UserPreference"
|