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
@@ -1,15 +1,494 @@
1
1
  import { z } from "zod";
2
2
  export declare const ResourceUpdateSchema: z.ZodObject<{
3
3
  userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
4
- value: z.ZodUnknown;
4
+ value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5
+ brand: z.ZodObject<{
6
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
7
+ name: z.ZodString;
8
+ userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
9
+ createdAt: z.ZodDate;
10
+ itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ id: string | number;
13
+ createdAt: Date;
14
+ name: string;
15
+ itemCount?: number | null | undefined;
16
+ userId?: string | number | null | undefined;
17
+ }, {
18
+ id: string | number;
19
+ createdAt: Date;
20
+ name: string;
21
+ itemCount?: number | null | undefined;
22
+ userId?: string | number | null | undefined;
23
+ }>;
24
+ type: z.ZodLiteral<"BRAND">;
25
+ }, "strip", z.ZodTypeAny, {
26
+ type: "BRAND";
27
+ brand: {
28
+ id: string | number;
29
+ createdAt: Date;
30
+ name: string;
31
+ itemCount?: number | null | undefined;
32
+ userId?: string | number | null | undefined;
33
+ };
34
+ }, {
35
+ type: "BRAND";
36
+ brand: {
37
+ id: string | number;
38
+ createdAt: Date;
39
+ name: string;
40
+ itemCount?: number | null | undefined;
41
+ userId?: string | number | null | undefined;
42
+ };
43
+ }>, 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
+ }>, z.ZodObject<{
78
+ color: z.ZodObject<{
79
+ id: z.ZodNumber;
80
+ title: z.ZodString;
81
+ }, "strip", z.ZodTypeAny, {
82
+ id: number;
83
+ title: string;
84
+ }, {
85
+ id: number;
86
+ title: string;
87
+ }>;
88
+ type: z.ZodLiteral<"COLOR">;
89
+ }, "strip", z.ZodTypeAny, {
90
+ type: "COLOR";
91
+ color: {
92
+ id: number;
93
+ title: string;
94
+ };
95
+ }, {
96
+ type: "COLOR";
97
+ color: {
98
+ id: number;
99
+ title: string;
100
+ };
101
+ }>, z.ZodObject<{
102
+ favorite: z.ZodObject<{
103
+ resourceId: z.ZodNumber;
104
+ type: z.ZodEnum<["BRAND", "CATALOG", "PURCHASE_PRICE", "ESTIMATED_PRICE", "PURCHASE_PLACE", "SELLING_PLACE", "SIZE", "COLOR", "PACKAGE_SIZE", "CONDITION"]>;
105
+ value: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
106
+ userId: z.ZodNumber;
107
+ isSuggestion: z.ZodBoolean;
108
+ }, "strip", z.ZodTypeAny, {
109
+ type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
110
+ userId: number;
111
+ resourceId: number;
112
+ isSuggestion: boolean;
113
+ value?: number | null | undefined;
114
+ }, {
115
+ type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
116
+ userId: number;
117
+ resourceId: number;
118
+ isSuggestion: boolean;
119
+ value?: number | null | undefined;
120
+ }>;
121
+ type: z.ZodLiteral<"FAVORITE">;
122
+ }, "strip", z.ZodTypeAny, {
123
+ type: "FAVORITE";
124
+ favorite: {
125
+ type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
126
+ userId: number;
127
+ resourceId: number;
128
+ isSuggestion: boolean;
129
+ value?: number | null | undefined;
130
+ };
131
+ }, {
132
+ type: "FAVORITE";
133
+ favorite: {
134
+ type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
135
+ userId: number;
136
+ resourceId: number;
137
+ isSuggestion: boolean;
138
+ value?: number | null | undefined;
139
+ };
140
+ }>, z.ZodObject<{
141
+ historyType: z.ZodObject<{
142
+ 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"]>>>;
143
+ count: z.ZodNumber;
144
+ }, "strip", z.ZodTypeAny, {
145
+ count: number;
146
+ 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;
147
+ }, {
148
+ count: number;
149
+ 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;
150
+ }>;
151
+ type: z.ZodLiteral<"HISTORY_TYPE">;
152
+ }, "strip", z.ZodTypeAny, {
153
+ type: "HISTORY_TYPE";
154
+ historyType: {
155
+ count: number;
156
+ 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;
157
+ };
158
+ }, {
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
+ }>, z.ZodObject<{
165
+ label: z.ZodObject<{
166
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
167
+ name: z.ZodString;
168
+ userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
169
+ isUserLabel: z.ZodBoolean;
170
+ createdAt: z.ZodDate;
171
+ itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
172
+ }, "strip", z.ZodTypeAny, {
173
+ id: string | number;
174
+ createdAt: Date;
175
+ name: string;
176
+ isUserLabel: boolean;
177
+ itemCount?: number | null | undefined;
178
+ userId?: string | number | null | undefined;
179
+ }, {
180
+ id: string | number;
181
+ createdAt: Date;
182
+ name: string;
183
+ isUserLabel: boolean;
184
+ itemCount?: number | null | undefined;
185
+ userId?: string | number | null | undefined;
186
+ }>;
187
+ type: z.ZodLiteral<"LABEL">;
188
+ }, "strip", z.ZodTypeAny, {
189
+ type: "LABEL";
190
+ label: {
191
+ id: string | number;
192
+ createdAt: Date;
193
+ name: string;
194
+ isUserLabel: boolean;
195
+ itemCount?: number | null | undefined;
196
+ userId?: string | number | null | undefined;
197
+ };
198
+ }, {
199
+ type: "LABEL";
200
+ label: {
201
+ id: string | number;
202
+ createdAt: Date;
203
+ name: string;
204
+ isUserLabel: boolean;
205
+ itemCount?: number | null | undefined;
206
+ userId?: string | number | null | undefined;
207
+ };
208
+ }>, z.ZodObject<{
209
+ packageSize: z.ZodObject<{
210
+ id: z.ZodNumber;
211
+ title: z.ZodString;
212
+ weightDescription: z.ZodString;
213
+ }, "strip", z.ZodTypeAny, {
214
+ id: number;
215
+ title: string;
216
+ weightDescription: string;
217
+ }, {
218
+ id: number;
219
+ title: string;
220
+ weightDescription: string;
221
+ }>;
222
+ type: z.ZodLiteral<"PACKAGE_SIZE">;
223
+ }, "strip", z.ZodTypeAny, {
224
+ type: "PACKAGE_SIZE";
225
+ packageSize: {
226
+ id: number;
227
+ title: string;
228
+ weightDescription: string;
229
+ };
230
+ }, {
231
+ type: "PACKAGE_SIZE";
232
+ packageSize: {
233
+ id: number;
234
+ title: string;
235
+ weightDescription: string;
236
+ };
237
+ }>, z.ZodObject<{
238
+ place: z.ZodObject<{
239
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
240
+ name: z.ZodString;
241
+ userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
242
+ createdAt: z.ZodDate;
243
+ }, "strip", z.ZodTypeAny, {
244
+ id: string | number;
245
+ createdAt: Date;
246
+ name: string;
247
+ userId?: string | number | null | undefined;
248
+ }, {
249
+ id: string | number;
250
+ createdAt: Date;
251
+ name: string;
252
+ userId?: string | number | null | undefined;
253
+ }>;
254
+ type: z.ZodLiteral<"PLACE">;
255
+ }, "strip", z.ZodTypeAny, {
256
+ type: "PLACE";
257
+ place: {
258
+ id: string | number;
259
+ createdAt: Date;
260
+ name: string;
261
+ userId?: string | number | null | undefined;
262
+ };
263
+ }, {
264
+ type: "PLACE";
265
+ place: {
266
+ id: string | number;
267
+ createdAt: Date;
268
+ name: string;
269
+ userId?: string | number | null | undefined;
270
+ };
271
+ }>, z.ZodObject<{
272
+ size: z.ZodObject<{
273
+ id: z.ZodNumber;
274
+ title: z.ZodString;
275
+ itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
276
+ }, "strip", z.ZodTypeAny, {
277
+ id: number;
278
+ title: string;
279
+ itemCount?: number | null | undefined;
280
+ }, {
281
+ id: number;
282
+ title: string;
283
+ itemCount?: number | null | undefined;
284
+ }>;
285
+ type: z.ZodLiteral<"SIZE">;
286
+ }, "strip", z.ZodTypeAny, {
287
+ type: "SIZE";
288
+ size: {
289
+ id: number;
290
+ title: string;
291
+ itemCount?: number | null | undefined;
292
+ };
293
+ }, {
294
+ type: "SIZE";
295
+ size: {
296
+ id: number;
297
+ title: string;
298
+ itemCount?: number | null | undefined;
299
+ };
300
+ }>, z.ZodObject<{
301
+ status: z.ZodObject<{
302
+ id: z.ZodNumber;
303
+ title: z.ZodString;
304
+ description: z.ZodString;
305
+ }, "strip", z.ZodTypeAny, {
306
+ id: number;
307
+ title: string;
308
+ description: string;
309
+ }, {
310
+ id: number;
311
+ title: string;
312
+ description: string;
313
+ }>;
314
+ type: z.ZodLiteral<"STATUS">;
315
+ }, "strip", z.ZodTypeAny, {
316
+ type: "STATUS";
317
+ status: {
318
+ id: number;
319
+ title: string;
320
+ description: string;
321
+ };
322
+ }, {
323
+ type: "STATUS";
324
+ status: {
325
+ id: number;
326
+ title: string;
327
+ description: string;
328
+ };
329
+ }>]>;
5
330
  deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
6
331
  }, "strip", z.ZodTypeAny, {
332
+ value: {
333
+ type: "BRAND";
334
+ brand: {
335
+ id: string | number;
336
+ createdAt: Date;
337
+ name: string;
338
+ itemCount?: number | null | undefined;
339
+ userId?: string | number | null | undefined;
340
+ };
341
+ } | {
342
+ type: "CATALOG";
343
+ catalog: {
344
+ id: number;
345
+ title: string;
346
+ multipleSizeGroupIds?: number[] | null | undefined;
347
+ itemCount?: number | null | undefined;
348
+ };
349
+ } | {
350
+ type: "COLOR";
351
+ color: {
352
+ id: number;
353
+ title: string;
354
+ };
355
+ } | {
356
+ type: "FAVORITE";
357
+ favorite: {
358
+ type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
359
+ userId: number;
360
+ resourceId: number;
361
+ isSuggestion: boolean;
362
+ value?: number | null | undefined;
363
+ };
364
+ } | {
365
+ type: "HISTORY_TYPE";
366
+ historyType: {
367
+ count: number;
368
+ 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;
369
+ };
370
+ } | {
371
+ type: "LABEL";
372
+ label: {
373
+ id: string | number;
374
+ createdAt: Date;
375
+ name: string;
376
+ isUserLabel: boolean;
377
+ itemCount?: number | null | undefined;
378
+ userId?: string | number | null | undefined;
379
+ };
380
+ } | {
381
+ type: "PACKAGE_SIZE";
382
+ packageSize: {
383
+ id: number;
384
+ title: string;
385
+ weightDescription: string;
386
+ };
387
+ } | {
388
+ type: "PLACE";
389
+ place: {
390
+ id: string | number;
391
+ createdAt: Date;
392
+ name: string;
393
+ userId?: string | number | null | undefined;
394
+ };
395
+ } | {
396
+ type: "SIZE";
397
+ size: {
398
+ id: number;
399
+ title: string;
400
+ itemCount?: number | null | undefined;
401
+ };
402
+ } | {
403
+ type: "STATUS";
404
+ status: {
405
+ id: number;
406
+ title: string;
407
+ description: string;
408
+ };
409
+ };
7
410
  userId: string | number;
8
- value?: unknown;
9
411
  deleted?: boolean | null | undefined;
10
412
  }, {
413
+ value: {
414
+ type: "BRAND";
415
+ brand: {
416
+ id: string | number;
417
+ createdAt: Date;
418
+ name: string;
419
+ itemCount?: number | null | undefined;
420
+ userId?: string | number | null | undefined;
421
+ };
422
+ } | {
423
+ type: "CATALOG";
424
+ catalog: {
425
+ id: number;
426
+ title: string;
427
+ multipleSizeGroupIds?: number[] | null | undefined;
428
+ itemCount?: number | null | undefined;
429
+ };
430
+ } | {
431
+ type: "COLOR";
432
+ color: {
433
+ id: number;
434
+ title: string;
435
+ };
436
+ } | {
437
+ type: "FAVORITE";
438
+ favorite: {
439
+ type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
440
+ userId: number;
441
+ resourceId: number;
442
+ isSuggestion: boolean;
443
+ value?: number | null | undefined;
444
+ };
445
+ } | {
446
+ type: "HISTORY_TYPE";
447
+ historyType: {
448
+ count: number;
449
+ 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;
450
+ };
451
+ } | {
452
+ type: "LABEL";
453
+ label: {
454
+ id: string | number;
455
+ createdAt: Date;
456
+ name: string;
457
+ isUserLabel: boolean;
458
+ itemCount?: number | null | undefined;
459
+ userId?: string | number | null | undefined;
460
+ };
461
+ } | {
462
+ type: "PACKAGE_SIZE";
463
+ packageSize: {
464
+ id: number;
465
+ title: string;
466
+ weightDescription: string;
467
+ };
468
+ } | {
469
+ type: "PLACE";
470
+ place: {
471
+ id: string | number;
472
+ createdAt: Date;
473
+ name: string;
474
+ userId?: string | number | null | undefined;
475
+ };
476
+ } | {
477
+ type: "SIZE";
478
+ size: {
479
+ id: number;
480
+ title: string;
481
+ itemCount?: number | null | undefined;
482
+ };
483
+ } | {
484
+ type: "STATUS";
485
+ status: {
486
+ id: number;
487
+ title: string;
488
+ description: string;
489
+ };
490
+ };
11
491
  userId: string | number;
12
- value?: unknown;
13
492
  deleted?: boolean | null | undefined;
14
493
  }>;
15
494
  export type ResourceUpdate = z.infer<typeof ResourceUpdateSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"ResourceUpdate.d.ts","sourceRoot":"","sources":["ResourceUpdate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAGrB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
1
+ {"version":3,"file":"ResourceUpdate.d.ts","sourceRoot":"","sources":["ResourceUpdate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAIrB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI/B,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
@@ -3,9 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ResourceUpdateSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const zodable_idschema_1 = require("zodable-idschema");
6
+ const UserWsResourcePayload_1 = require("./UserWsResourcePayload");
6
7
  exports.ResourceUpdateSchema = zod_1.z.object({
7
8
  userId: zodable_idschema_1.IdSchema,
8
- value: zod_1.z.unknown(),
9
+ value: UserWsResourcePayload_1.UserWsResourcePayloadSchema,
9
10
  deleted: zod_1.z.boolean().nullish()
10
11
  });
11
12
  //# sourceMappingURL=ResourceUpdate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ResourceUpdate.js","sourceRoot":"","sources":["ResourceUpdate.ts"],"names":[],"mappings":";;;AAAA,6BAAqB;AACrB,uDAAyC;AAE5B,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,MAAM,EAAE,2BAAQ;IAChB,KAAK,EAAE,OAAC,CAAC,OAAO,EAAE;IAClB,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE;CACjC,CAAC,CAAA"}
1
+ {"version":3,"file":"ResourceUpdate.js","sourceRoot":"","sources":["ResourceUpdate.ts"],"names":[],"mappings":";;;AAAA,6BAAqB;AACrB,uDAAyC;AACzC,mEAAmE;AAEtD,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,MAAM,EAAE,2BAAQ;IAChB,KAAK,EAAE,mDAA2B;IAClC,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE;CACjC,CAAC,CAAA"}
@@ -1,9 +1,10 @@
1
1
  import {z} from "zod"
2
2
  import {IdSchema} from "zodable-idschema"
3
+ import {UserWsResourcePayloadSchema} from "./UserWsResourcePayload"
3
4
 
4
5
  export const ResourceUpdateSchema = z.object({
5
6
  userId: IdSchema,
6
- value: z.unknown(),
7
+ value: UserWsResourcePayloadSchema,
7
8
  deleted: z.boolean().nullish()
8
9
  })
9
10
  export type ResourceUpdate = z.infer<typeof ResourceUpdateSchema>