controlresell 2.8.2 → 2.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/package.json +3 -3
  2. package/src/com/controlresell/models/filters/SavedFilters.d.ts +15 -5
  3. package/src/com/controlresell/models/filters/SavedFilters.d.ts.map +1 -1
  4. package/src/com/controlresell/models/filters/SavedFiltersPayload.d.ts +15 -5
  5. package/src/com/controlresell/models/filters/SavedFiltersPayload.d.ts.map +1 -1
  6. package/src/com/controlresell/models/users/ws/ResourceUpdate.d.ts +482 -3
  7. package/src/com/controlresell/models/users/ws/ResourceUpdate.d.ts.map +1 -1
  8. package/src/com/controlresell/models/users/ws/ResourceUpdate.js +2 -1
  9. package/src/com/controlresell/models/users/ws/ResourceUpdate.js.map +1 -1
  10. package/src/com/controlresell/models/users/ws/ResourceUpdate.ts +2 -1
  11. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +974 -6
  12. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts.map +1 -1
  13. package/src/com/controlresell/models/users/ws/UserWsPayload.js +2 -1
  14. package/src/com/controlresell/models/users/ws/UserWsPayload.js.map +1 -1
  15. package/src/com/controlresell/models/users/ws/UserWsPayload.ts +2 -1
  16. package/src/com/controlresell/models/users/ws/UserWsResourcePayload.d.ts +674 -0
  17. package/src/com/controlresell/models/users/ws/UserWsResourcePayload.d.ts.map +1 -0
  18. package/src/com/controlresell/models/users/ws/UserWsResourcePayload.js +67 -0
  19. package/src/com/controlresell/models/users/ws/UserWsResourcePayload.js.map +1 -0
  20. package/src/com/controlresell/models/users/ws/UserWsResourcePayload.ts +85 -0
  21. package/src/index.d.ts +1 -0
  22. package/src/index.d.ts.map +1 -1
  23. package/src/index.js +3 -1
  24. package/src/index.js.map +1 -1
  25. package/src/index.ts +1 -0
@@ -0,0 +1,674 @@
1
+ import { z } from "zod";
2
+ export declare const UserWsResourcePayloadBrandSchema: z.ZodObject<{
3
+ brand: z.ZodObject<{
4
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
5
+ name: z.ZodString;
6
+ userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
7
+ createdAt: z.ZodDate;
8
+ itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ id: string | number;
11
+ createdAt: Date;
12
+ name: string;
13
+ itemCount?: number | null | undefined;
14
+ userId?: string | number | null | undefined;
15
+ }, {
16
+ id: string | number;
17
+ createdAt: Date;
18
+ name: string;
19
+ itemCount?: number | null | undefined;
20
+ userId?: string | number | null | undefined;
21
+ }>;
22
+ type: z.ZodLiteral<"BRAND">;
23
+ }, "strip", z.ZodTypeAny, {
24
+ type: "BRAND";
25
+ brand: {
26
+ id: string | number;
27
+ createdAt: Date;
28
+ name: string;
29
+ itemCount?: number | null | undefined;
30
+ userId?: string | number | null | undefined;
31
+ };
32
+ }, {
33
+ type: "BRAND";
34
+ brand: {
35
+ id: string | number;
36
+ createdAt: Date;
37
+ name: string;
38
+ itemCount?: number | null | undefined;
39
+ userId?: string | number | null | undefined;
40
+ };
41
+ }>;
42
+ export type UserWsResourcePayloadBrand = z.infer<typeof UserWsResourcePayloadBrandSchema>;
43
+ export declare const UserWsResourcePayloadCatalogSchema: z.ZodObject<{
44
+ catalog: z.ZodObject<{
45
+ id: z.ZodNumber;
46
+ multipleSizeGroupIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
47
+ title: z.ZodString;
48
+ itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
49
+ }, "strip", z.ZodTypeAny, {
50
+ id: number;
51
+ title: string;
52
+ multipleSizeGroupIds?: number[] | null | undefined;
53
+ itemCount?: number | null | undefined;
54
+ }, {
55
+ id: number;
56
+ title: string;
57
+ multipleSizeGroupIds?: number[] | null | undefined;
58
+ itemCount?: number | null | undefined;
59
+ }>;
60
+ type: z.ZodLiteral<"CATALOG">;
61
+ }, "strip", z.ZodTypeAny, {
62
+ type: "CATALOG";
63
+ catalog: {
64
+ id: number;
65
+ title: string;
66
+ multipleSizeGroupIds?: number[] | null | undefined;
67
+ itemCount?: number | null | undefined;
68
+ };
69
+ }, {
70
+ type: "CATALOG";
71
+ catalog: {
72
+ id: number;
73
+ title: string;
74
+ multipleSizeGroupIds?: number[] | null | undefined;
75
+ itemCount?: number | null | undefined;
76
+ };
77
+ }>;
78
+ export type UserWsResourcePayloadCatalog = z.infer<typeof UserWsResourcePayloadCatalogSchema>;
79
+ export declare const UserWsResourcePayloadColorSchema: z.ZodObject<{
80
+ color: z.ZodObject<{
81
+ id: z.ZodNumber;
82
+ title: z.ZodString;
83
+ }, "strip", z.ZodTypeAny, {
84
+ id: number;
85
+ title: string;
86
+ }, {
87
+ id: number;
88
+ title: string;
89
+ }>;
90
+ type: z.ZodLiteral<"COLOR">;
91
+ }, "strip", z.ZodTypeAny, {
92
+ type: "COLOR";
93
+ color: {
94
+ id: number;
95
+ title: string;
96
+ };
97
+ }, {
98
+ type: "COLOR";
99
+ color: {
100
+ id: number;
101
+ title: string;
102
+ };
103
+ }>;
104
+ export type UserWsResourcePayloadColor = z.infer<typeof UserWsResourcePayloadColorSchema>;
105
+ export declare const UserWsResourcePayloadFavoriteSchema: z.ZodObject<{
106
+ favorite: z.ZodObject<{
107
+ resourceId: z.ZodNumber;
108
+ type: z.ZodEnum<["BRAND", "CATALOG", "PURCHASE_PRICE", "ESTIMATED_PRICE", "PURCHASE_PLACE", "SELLING_PLACE", "SIZE", "COLOR", "PACKAGE_SIZE", "CONDITION"]>;
109
+ value: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
110
+ userId: z.ZodNumber;
111
+ isSuggestion: z.ZodBoolean;
112
+ }, "strip", z.ZodTypeAny, {
113
+ type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
114
+ userId: number;
115
+ resourceId: number;
116
+ isSuggestion: boolean;
117
+ value?: number | null | undefined;
118
+ }, {
119
+ type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
120
+ userId: number;
121
+ resourceId: number;
122
+ isSuggestion: boolean;
123
+ value?: number | null | undefined;
124
+ }>;
125
+ type: z.ZodLiteral<"FAVORITE">;
126
+ }, "strip", z.ZodTypeAny, {
127
+ type: "FAVORITE";
128
+ favorite: {
129
+ type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
130
+ userId: number;
131
+ resourceId: number;
132
+ isSuggestion: boolean;
133
+ value?: number | null | undefined;
134
+ };
135
+ }, {
136
+ type: "FAVORITE";
137
+ favorite: {
138
+ type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
139
+ userId: number;
140
+ resourceId: number;
141
+ isSuggestion: boolean;
142
+ value?: number | null | undefined;
143
+ };
144
+ }>;
145
+ export type UserWsResourcePayloadFavorite = z.infer<typeof UserWsResourcePayloadFavoriteSchema>;
146
+ export declare const UserWsResourcePayloadHistoryTypeSchema: z.ZodObject<{
147
+ historyType: z.ZodObject<{
148
+ type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["IMPORTED", "ARCHIVED", "UNARCHIVED", "PUBLISHED", "FAILED_TO_PUBLISH", "PUBLISH_CANCELED", "SCHEDULED", "REPUBLISHING", "REPUBLISHED", "UPDATING", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>>>;
149
+ count: z.ZodNumber;
150
+ }, "strip", z.ZodTypeAny, {
151
+ count: number;
152
+ type?: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | null | undefined;
153
+ }, {
154
+ count: number;
155
+ type?: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | null | undefined;
156
+ }>;
157
+ type: z.ZodLiteral<"HISTORY_TYPE">;
158
+ }, "strip", z.ZodTypeAny, {
159
+ type: "HISTORY_TYPE";
160
+ historyType: {
161
+ count: number;
162
+ type?: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | null | undefined;
163
+ };
164
+ }, {
165
+ type: "HISTORY_TYPE";
166
+ historyType: {
167
+ count: number;
168
+ type?: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | null | undefined;
169
+ };
170
+ }>;
171
+ export type UserWsResourcePayloadHistoryType = z.infer<typeof UserWsResourcePayloadHistoryTypeSchema>;
172
+ export declare const UserWsResourcePayloadLabelSchema: z.ZodObject<{
173
+ label: z.ZodObject<{
174
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
175
+ name: z.ZodString;
176
+ userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
177
+ isUserLabel: z.ZodBoolean;
178
+ createdAt: z.ZodDate;
179
+ itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
180
+ }, "strip", z.ZodTypeAny, {
181
+ id: string | number;
182
+ createdAt: Date;
183
+ name: string;
184
+ isUserLabel: boolean;
185
+ itemCount?: number | null | undefined;
186
+ userId?: string | number | null | undefined;
187
+ }, {
188
+ id: string | number;
189
+ createdAt: Date;
190
+ name: string;
191
+ isUserLabel: boolean;
192
+ itemCount?: number | null | undefined;
193
+ userId?: string | number | null | undefined;
194
+ }>;
195
+ type: z.ZodLiteral<"LABEL">;
196
+ }, "strip", z.ZodTypeAny, {
197
+ type: "LABEL";
198
+ label: {
199
+ id: string | number;
200
+ createdAt: Date;
201
+ name: string;
202
+ isUserLabel: boolean;
203
+ itemCount?: number | null | undefined;
204
+ userId?: string | number | null | undefined;
205
+ };
206
+ }, {
207
+ type: "LABEL";
208
+ label: {
209
+ id: string | number;
210
+ createdAt: Date;
211
+ name: string;
212
+ isUserLabel: boolean;
213
+ itemCount?: number | null | undefined;
214
+ userId?: string | number | null | undefined;
215
+ };
216
+ }>;
217
+ export type UserWsResourcePayloadLabel = z.infer<typeof UserWsResourcePayloadLabelSchema>;
218
+ export declare const UserWsResourcePayloadPackageSizeSchema: z.ZodObject<{
219
+ packageSize: z.ZodObject<{
220
+ id: z.ZodNumber;
221
+ title: z.ZodString;
222
+ weightDescription: z.ZodString;
223
+ }, "strip", z.ZodTypeAny, {
224
+ id: number;
225
+ title: string;
226
+ weightDescription: string;
227
+ }, {
228
+ id: number;
229
+ title: string;
230
+ weightDescription: string;
231
+ }>;
232
+ type: z.ZodLiteral<"PACKAGE_SIZE">;
233
+ }, "strip", z.ZodTypeAny, {
234
+ type: "PACKAGE_SIZE";
235
+ packageSize: {
236
+ id: number;
237
+ title: string;
238
+ weightDescription: string;
239
+ };
240
+ }, {
241
+ type: "PACKAGE_SIZE";
242
+ packageSize: {
243
+ id: number;
244
+ title: string;
245
+ weightDescription: string;
246
+ };
247
+ }>;
248
+ export type UserWsResourcePayloadPackageSize = z.infer<typeof UserWsResourcePayloadPackageSizeSchema>;
249
+ export declare const UserWsResourcePayloadPlaceSchema: z.ZodObject<{
250
+ place: z.ZodObject<{
251
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
252
+ name: z.ZodString;
253
+ userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
254
+ createdAt: z.ZodDate;
255
+ }, "strip", z.ZodTypeAny, {
256
+ id: string | number;
257
+ createdAt: Date;
258
+ name: string;
259
+ userId?: string | number | null | undefined;
260
+ }, {
261
+ id: string | number;
262
+ createdAt: Date;
263
+ name: string;
264
+ userId?: string | number | null | undefined;
265
+ }>;
266
+ type: z.ZodLiteral<"PLACE">;
267
+ }, "strip", z.ZodTypeAny, {
268
+ type: "PLACE";
269
+ place: {
270
+ id: string | number;
271
+ createdAt: Date;
272
+ name: string;
273
+ userId?: string | number | null | undefined;
274
+ };
275
+ }, {
276
+ type: "PLACE";
277
+ place: {
278
+ id: string | number;
279
+ createdAt: Date;
280
+ name: string;
281
+ userId?: string | number | null | undefined;
282
+ };
283
+ }>;
284
+ export type UserWsResourcePayloadPlace = z.infer<typeof UserWsResourcePayloadPlaceSchema>;
285
+ export declare const UserWsResourcePayloadSizeSchema: z.ZodObject<{
286
+ size: z.ZodObject<{
287
+ id: z.ZodNumber;
288
+ title: z.ZodString;
289
+ itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
290
+ }, "strip", z.ZodTypeAny, {
291
+ id: number;
292
+ title: string;
293
+ itemCount?: number | null | undefined;
294
+ }, {
295
+ id: number;
296
+ title: string;
297
+ itemCount?: number | null | undefined;
298
+ }>;
299
+ type: z.ZodLiteral<"SIZE">;
300
+ }, "strip", z.ZodTypeAny, {
301
+ type: "SIZE";
302
+ size: {
303
+ id: number;
304
+ title: string;
305
+ itemCount?: number | null | undefined;
306
+ };
307
+ }, {
308
+ type: "SIZE";
309
+ size: {
310
+ id: number;
311
+ title: string;
312
+ itemCount?: number | null | undefined;
313
+ };
314
+ }>;
315
+ export type UserWsResourcePayloadSize = z.infer<typeof UserWsResourcePayloadSizeSchema>;
316
+ export declare const UserWsResourcePayloadStatusSchema: z.ZodObject<{
317
+ status: z.ZodObject<{
318
+ id: z.ZodNumber;
319
+ title: z.ZodString;
320
+ description: z.ZodString;
321
+ }, "strip", z.ZodTypeAny, {
322
+ id: number;
323
+ title: string;
324
+ description: string;
325
+ }, {
326
+ id: number;
327
+ title: string;
328
+ description: string;
329
+ }>;
330
+ type: z.ZodLiteral<"STATUS">;
331
+ }, "strip", z.ZodTypeAny, {
332
+ type: "STATUS";
333
+ status: {
334
+ id: number;
335
+ title: string;
336
+ description: string;
337
+ };
338
+ }, {
339
+ type: "STATUS";
340
+ status: {
341
+ id: number;
342
+ title: string;
343
+ description: string;
344
+ };
345
+ }>;
346
+ export type UserWsResourcePayloadStatus = z.infer<typeof UserWsResourcePayloadStatusSchema>;
347
+ export declare const UserWsResourcePayloadSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
348
+ brand: z.ZodObject<{
349
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
350
+ name: z.ZodString;
351
+ userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
352
+ createdAt: z.ZodDate;
353
+ itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
354
+ }, "strip", z.ZodTypeAny, {
355
+ id: string | number;
356
+ createdAt: Date;
357
+ name: string;
358
+ itemCount?: number | null | undefined;
359
+ userId?: string | number | null | undefined;
360
+ }, {
361
+ id: string | number;
362
+ createdAt: Date;
363
+ name: string;
364
+ itemCount?: number | null | undefined;
365
+ userId?: string | number | null | undefined;
366
+ }>;
367
+ type: z.ZodLiteral<"BRAND">;
368
+ }, "strip", z.ZodTypeAny, {
369
+ type: "BRAND";
370
+ brand: {
371
+ id: string | number;
372
+ createdAt: Date;
373
+ name: string;
374
+ itemCount?: number | null | undefined;
375
+ userId?: string | number | null | undefined;
376
+ };
377
+ }, {
378
+ type: "BRAND";
379
+ brand: {
380
+ id: string | number;
381
+ createdAt: Date;
382
+ name: string;
383
+ itemCount?: number | null | undefined;
384
+ userId?: string | number | null | undefined;
385
+ };
386
+ }>, z.ZodObject<{
387
+ catalog: z.ZodObject<{
388
+ id: z.ZodNumber;
389
+ multipleSizeGroupIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
390
+ title: z.ZodString;
391
+ itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
392
+ }, "strip", z.ZodTypeAny, {
393
+ id: number;
394
+ title: string;
395
+ multipleSizeGroupIds?: number[] | null | undefined;
396
+ itemCount?: number | null | undefined;
397
+ }, {
398
+ id: number;
399
+ title: string;
400
+ multipleSizeGroupIds?: number[] | null | undefined;
401
+ itemCount?: number | null | undefined;
402
+ }>;
403
+ type: z.ZodLiteral<"CATALOG">;
404
+ }, "strip", z.ZodTypeAny, {
405
+ type: "CATALOG";
406
+ catalog: {
407
+ id: number;
408
+ title: string;
409
+ multipleSizeGroupIds?: number[] | null | undefined;
410
+ itemCount?: number | null | undefined;
411
+ };
412
+ }, {
413
+ type: "CATALOG";
414
+ catalog: {
415
+ id: number;
416
+ title: string;
417
+ multipleSizeGroupIds?: number[] | null | undefined;
418
+ itemCount?: number | null | undefined;
419
+ };
420
+ }>, z.ZodObject<{
421
+ color: z.ZodObject<{
422
+ id: z.ZodNumber;
423
+ title: z.ZodString;
424
+ }, "strip", z.ZodTypeAny, {
425
+ id: number;
426
+ title: string;
427
+ }, {
428
+ id: number;
429
+ title: string;
430
+ }>;
431
+ type: z.ZodLiteral<"COLOR">;
432
+ }, "strip", z.ZodTypeAny, {
433
+ type: "COLOR";
434
+ color: {
435
+ id: number;
436
+ title: string;
437
+ };
438
+ }, {
439
+ type: "COLOR";
440
+ color: {
441
+ id: number;
442
+ title: string;
443
+ };
444
+ }>, z.ZodObject<{
445
+ favorite: z.ZodObject<{
446
+ resourceId: z.ZodNumber;
447
+ type: z.ZodEnum<["BRAND", "CATALOG", "PURCHASE_PRICE", "ESTIMATED_PRICE", "PURCHASE_PLACE", "SELLING_PLACE", "SIZE", "COLOR", "PACKAGE_SIZE", "CONDITION"]>;
448
+ value: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
449
+ userId: z.ZodNumber;
450
+ isSuggestion: z.ZodBoolean;
451
+ }, "strip", z.ZodTypeAny, {
452
+ type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
453
+ userId: number;
454
+ resourceId: number;
455
+ isSuggestion: boolean;
456
+ value?: number | null | undefined;
457
+ }, {
458
+ type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
459
+ userId: number;
460
+ resourceId: number;
461
+ isSuggestion: boolean;
462
+ value?: number | null | undefined;
463
+ }>;
464
+ type: z.ZodLiteral<"FAVORITE">;
465
+ }, "strip", z.ZodTypeAny, {
466
+ type: "FAVORITE";
467
+ favorite: {
468
+ type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
469
+ userId: number;
470
+ resourceId: number;
471
+ isSuggestion: boolean;
472
+ value?: number | null | undefined;
473
+ };
474
+ }, {
475
+ type: "FAVORITE";
476
+ favorite: {
477
+ type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
478
+ userId: number;
479
+ resourceId: number;
480
+ isSuggestion: boolean;
481
+ value?: number | null | undefined;
482
+ };
483
+ }>, z.ZodObject<{
484
+ historyType: z.ZodObject<{
485
+ type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["IMPORTED", "ARCHIVED", "UNARCHIVED", "PUBLISHED", "FAILED_TO_PUBLISH", "PUBLISH_CANCELED", "SCHEDULED", "REPUBLISHING", "REPUBLISHED", "UPDATING", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>>>;
486
+ count: z.ZodNumber;
487
+ }, "strip", z.ZodTypeAny, {
488
+ count: number;
489
+ type?: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | null | undefined;
490
+ }, {
491
+ count: number;
492
+ type?: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | null | undefined;
493
+ }>;
494
+ type: z.ZodLiteral<"HISTORY_TYPE">;
495
+ }, "strip", z.ZodTypeAny, {
496
+ type: "HISTORY_TYPE";
497
+ historyType: {
498
+ count: number;
499
+ type?: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | null | undefined;
500
+ };
501
+ }, {
502
+ type: "HISTORY_TYPE";
503
+ historyType: {
504
+ count: number;
505
+ type?: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | null | undefined;
506
+ };
507
+ }>, z.ZodObject<{
508
+ label: z.ZodObject<{
509
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
510
+ name: z.ZodString;
511
+ userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
512
+ isUserLabel: z.ZodBoolean;
513
+ createdAt: z.ZodDate;
514
+ itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
515
+ }, "strip", z.ZodTypeAny, {
516
+ id: string | number;
517
+ createdAt: Date;
518
+ name: string;
519
+ isUserLabel: boolean;
520
+ itemCount?: number | null | undefined;
521
+ userId?: string | number | null | undefined;
522
+ }, {
523
+ id: string | number;
524
+ createdAt: Date;
525
+ name: string;
526
+ isUserLabel: boolean;
527
+ itemCount?: number | null | undefined;
528
+ userId?: string | number | null | undefined;
529
+ }>;
530
+ type: z.ZodLiteral<"LABEL">;
531
+ }, "strip", z.ZodTypeAny, {
532
+ type: "LABEL";
533
+ label: {
534
+ id: string | number;
535
+ createdAt: Date;
536
+ name: string;
537
+ isUserLabel: boolean;
538
+ itemCount?: number | null | undefined;
539
+ userId?: string | number | null | undefined;
540
+ };
541
+ }, {
542
+ type: "LABEL";
543
+ label: {
544
+ id: string | number;
545
+ createdAt: Date;
546
+ name: string;
547
+ isUserLabel: boolean;
548
+ itemCount?: number | null | undefined;
549
+ userId?: string | number | null | undefined;
550
+ };
551
+ }>, z.ZodObject<{
552
+ packageSize: z.ZodObject<{
553
+ id: z.ZodNumber;
554
+ title: z.ZodString;
555
+ weightDescription: z.ZodString;
556
+ }, "strip", z.ZodTypeAny, {
557
+ id: number;
558
+ title: string;
559
+ weightDescription: string;
560
+ }, {
561
+ id: number;
562
+ title: string;
563
+ weightDescription: string;
564
+ }>;
565
+ type: z.ZodLiteral<"PACKAGE_SIZE">;
566
+ }, "strip", z.ZodTypeAny, {
567
+ type: "PACKAGE_SIZE";
568
+ packageSize: {
569
+ id: number;
570
+ title: string;
571
+ weightDescription: string;
572
+ };
573
+ }, {
574
+ type: "PACKAGE_SIZE";
575
+ packageSize: {
576
+ id: number;
577
+ title: string;
578
+ weightDescription: string;
579
+ };
580
+ }>, z.ZodObject<{
581
+ place: z.ZodObject<{
582
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
583
+ name: z.ZodString;
584
+ userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
585
+ createdAt: z.ZodDate;
586
+ }, "strip", z.ZodTypeAny, {
587
+ id: string | number;
588
+ createdAt: Date;
589
+ name: string;
590
+ userId?: string | number | null | undefined;
591
+ }, {
592
+ id: string | number;
593
+ createdAt: Date;
594
+ name: string;
595
+ userId?: string | number | null | undefined;
596
+ }>;
597
+ type: z.ZodLiteral<"PLACE">;
598
+ }, "strip", z.ZodTypeAny, {
599
+ type: "PLACE";
600
+ place: {
601
+ id: string | number;
602
+ createdAt: Date;
603
+ name: string;
604
+ userId?: string | number | null | undefined;
605
+ };
606
+ }, {
607
+ type: "PLACE";
608
+ place: {
609
+ id: string | number;
610
+ createdAt: Date;
611
+ name: string;
612
+ userId?: string | number | null | undefined;
613
+ };
614
+ }>, z.ZodObject<{
615
+ size: z.ZodObject<{
616
+ id: z.ZodNumber;
617
+ title: z.ZodString;
618
+ itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
619
+ }, "strip", z.ZodTypeAny, {
620
+ id: number;
621
+ title: string;
622
+ itemCount?: number | null | undefined;
623
+ }, {
624
+ id: number;
625
+ title: string;
626
+ itemCount?: number | null | undefined;
627
+ }>;
628
+ type: z.ZodLiteral<"SIZE">;
629
+ }, "strip", z.ZodTypeAny, {
630
+ type: "SIZE";
631
+ size: {
632
+ id: number;
633
+ title: string;
634
+ itemCount?: number | null | undefined;
635
+ };
636
+ }, {
637
+ type: "SIZE";
638
+ size: {
639
+ id: number;
640
+ title: string;
641
+ itemCount?: number | null | undefined;
642
+ };
643
+ }>, z.ZodObject<{
644
+ status: z.ZodObject<{
645
+ id: z.ZodNumber;
646
+ title: z.ZodString;
647
+ description: z.ZodString;
648
+ }, "strip", z.ZodTypeAny, {
649
+ id: number;
650
+ title: string;
651
+ description: string;
652
+ }, {
653
+ id: number;
654
+ title: string;
655
+ description: string;
656
+ }>;
657
+ type: z.ZodLiteral<"STATUS">;
658
+ }, "strip", z.ZodTypeAny, {
659
+ type: "STATUS";
660
+ status: {
661
+ id: number;
662
+ title: string;
663
+ description: string;
664
+ };
665
+ }, {
666
+ type: "STATUS";
667
+ status: {
668
+ id: number;
669
+ title: string;
670
+ description: string;
671
+ };
672
+ }>]>;
673
+ export type UserWsResourcePayload = z.infer<typeof UserWsResourcePayloadSchema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