controlresell 0.0.4 → 0.0.6

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.
@@ -0,0 +1,631 @@
1
+ import { z } from "zod";
2
+ export declare const JobPostSchema: z.ZodObject<{
3
+ brand: z.ZodString;
4
+ catalogId: z.ZodNumber;
5
+ colorIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
6
+ description: z.ZodString;
7
+ measurementLength: z.ZodOptional<z.ZodNumber>;
8
+ measurementWidth: z.ZodOptional<z.ZodNumber>;
9
+ packageSizeId: z.ZodNumber;
10
+ photoUrls: z.ZodArray<z.ZodString, "many">;
11
+ price: z.ZodNumber;
12
+ sizeId: z.ZodOptional<z.ZodNumber>;
13
+ statusId: z.ZodNumber;
14
+ title: z.ZodString;
15
+ isDraft: z.ZodBoolean;
16
+ material: z.ZodArray<z.ZodNumber, "many">;
17
+ manufacturerLabelling: z.ZodString;
18
+ }, "strip", z.ZodTypeAny, {
19
+ brand: string;
20
+ catalogId: number;
21
+ description: string;
22
+ packageSizeId: number;
23
+ photoUrls: string[];
24
+ price: number;
25
+ statusId: number;
26
+ title: string;
27
+ isDraft: boolean;
28
+ material: number[];
29
+ manufacturerLabelling: string;
30
+ colorIds?: number[] | undefined;
31
+ measurementLength?: number | undefined;
32
+ measurementWidth?: number | undefined;
33
+ sizeId?: number | undefined;
34
+ }, {
35
+ brand: string;
36
+ catalogId: number;
37
+ description: string;
38
+ packageSizeId: number;
39
+ photoUrls: string[];
40
+ price: number;
41
+ statusId: number;
42
+ title: string;
43
+ isDraft: boolean;
44
+ material: number[];
45
+ manufacturerLabelling: string;
46
+ colorIds?: number[] | undefined;
47
+ measurementLength?: number | undefined;
48
+ measurementWidth?: number | undefined;
49
+ sizeId?: number | undefined;
50
+ }>;
51
+ export type JobPost = z.infer<typeof JobPostSchema>;
52
+ export declare const JobPostsCreatePayloadSchema: z.ZodObject<{
53
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
54
+ post: z.ZodObject<{
55
+ brand: z.ZodString;
56
+ catalogId: z.ZodNumber;
57
+ colorIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
58
+ description: z.ZodString;
59
+ measurementLength: z.ZodOptional<z.ZodNumber>;
60
+ measurementWidth: z.ZodOptional<z.ZodNumber>;
61
+ packageSizeId: z.ZodNumber;
62
+ photoUrls: z.ZodArray<z.ZodString, "many">;
63
+ price: z.ZodNumber;
64
+ sizeId: z.ZodOptional<z.ZodNumber>;
65
+ statusId: z.ZodNumber;
66
+ title: z.ZodString;
67
+ isDraft: z.ZodBoolean;
68
+ material: z.ZodArray<z.ZodNumber, "many">;
69
+ manufacturerLabelling: z.ZodString;
70
+ }, "strip", z.ZodTypeAny, {
71
+ brand: string;
72
+ catalogId: number;
73
+ description: string;
74
+ packageSizeId: number;
75
+ photoUrls: string[];
76
+ price: number;
77
+ statusId: number;
78
+ title: string;
79
+ isDraft: boolean;
80
+ material: number[];
81
+ manufacturerLabelling: string;
82
+ colorIds?: number[] | undefined;
83
+ measurementLength?: number | undefined;
84
+ measurementWidth?: number | undefined;
85
+ sizeId?: number | undefined;
86
+ }, {
87
+ brand: string;
88
+ catalogId: number;
89
+ description: string;
90
+ packageSizeId: number;
91
+ photoUrls: string[];
92
+ price: number;
93
+ statusId: number;
94
+ title: string;
95
+ isDraft: boolean;
96
+ material: number[];
97
+ manufacturerLabelling: string;
98
+ colorIds?: number[] | undefined;
99
+ measurementLength?: number | undefined;
100
+ measurementWidth?: number | undefined;
101
+ sizeId?: number | undefined;
102
+ }>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ itemId: string | number;
105
+ post: {
106
+ brand: string;
107
+ catalogId: number;
108
+ description: string;
109
+ packageSizeId: number;
110
+ photoUrls: string[];
111
+ price: number;
112
+ statusId: number;
113
+ title: string;
114
+ isDraft: boolean;
115
+ material: number[];
116
+ manufacturerLabelling: string;
117
+ colorIds?: number[] | undefined;
118
+ measurementLength?: number | undefined;
119
+ measurementWidth?: number | undefined;
120
+ sizeId?: number | undefined;
121
+ };
122
+ }, {
123
+ itemId: string | number;
124
+ post: {
125
+ brand: string;
126
+ catalogId: number;
127
+ description: string;
128
+ packageSizeId: number;
129
+ photoUrls: string[];
130
+ price: number;
131
+ statusId: number;
132
+ title: string;
133
+ isDraft: boolean;
134
+ material: number[];
135
+ manufacturerLabelling: string;
136
+ colorIds?: number[] | undefined;
137
+ measurementLength?: number | undefined;
138
+ measurementWidth?: number | undefined;
139
+ sizeId?: number | undefined;
140
+ };
141
+ }>;
142
+ export type JobPostsCreatePayload = z.infer<typeof JobPostsCreatePayloadSchema>;
143
+ export declare const JobPostsCreatePayloadWithAccounts: z.ZodObject<{
144
+ accountsId: z.ZodArray<z.ZodString, "many">;
145
+ payload: z.ZodObject<{
146
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
147
+ post: z.ZodObject<{
148
+ brand: z.ZodString;
149
+ catalogId: z.ZodNumber;
150
+ colorIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
151
+ description: z.ZodString;
152
+ measurementLength: z.ZodOptional<z.ZodNumber>;
153
+ measurementWidth: z.ZodOptional<z.ZodNumber>;
154
+ packageSizeId: z.ZodNumber;
155
+ photoUrls: z.ZodArray<z.ZodString, "many">;
156
+ price: z.ZodNumber;
157
+ sizeId: z.ZodOptional<z.ZodNumber>;
158
+ statusId: z.ZodNumber;
159
+ title: z.ZodString;
160
+ isDraft: z.ZodBoolean;
161
+ material: z.ZodArray<z.ZodNumber, "many">;
162
+ manufacturerLabelling: z.ZodString;
163
+ }, "strip", z.ZodTypeAny, {
164
+ brand: string;
165
+ catalogId: number;
166
+ description: string;
167
+ packageSizeId: number;
168
+ photoUrls: string[];
169
+ price: number;
170
+ statusId: number;
171
+ title: string;
172
+ isDraft: boolean;
173
+ material: number[];
174
+ manufacturerLabelling: string;
175
+ colorIds?: number[] | undefined;
176
+ measurementLength?: number | undefined;
177
+ measurementWidth?: number | undefined;
178
+ sizeId?: number | undefined;
179
+ }, {
180
+ brand: string;
181
+ catalogId: number;
182
+ description: string;
183
+ packageSizeId: number;
184
+ photoUrls: string[];
185
+ price: number;
186
+ statusId: number;
187
+ title: string;
188
+ isDraft: boolean;
189
+ material: number[];
190
+ manufacturerLabelling: string;
191
+ colorIds?: number[] | undefined;
192
+ measurementLength?: number | undefined;
193
+ measurementWidth?: number | undefined;
194
+ sizeId?: number | undefined;
195
+ }>;
196
+ }, "strip", z.ZodTypeAny, {
197
+ itemId: string | number;
198
+ post: {
199
+ brand: string;
200
+ catalogId: number;
201
+ description: string;
202
+ packageSizeId: number;
203
+ photoUrls: string[];
204
+ price: number;
205
+ statusId: number;
206
+ title: string;
207
+ isDraft: boolean;
208
+ material: number[];
209
+ manufacturerLabelling: string;
210
+ colorIds?: number[] | undefined;
211
+ measurementLength?: number | undefined;
212
+ measurementWidth?: number | undefined;
213
+ sizeId?: number | undefined;
214
+ };
215
+ }, {
216
+ itemId: string | number;
217
+ post: {
218
+ brand: string;
219
+ catalogId: number;
220
+ description: string;
221
+ packageSizeId: number;
222
+ photoUrls: string[];
223
+ price: number;
224
+ statusId: number;
225
+ title: string;
226
+ isDraft: boolean;
227
+ material: number[];
228
+ manufacturerLabelling: string;
229
+ colorIds?: number[] | undefined;
230
+ measurementLength?: number | undefined;
231
+ measurementWidth?: number | undefined;
232
+ sizeId?: number | undefined;
233
+ };
234
+ }>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ payload: {
237
+ itemId: string | number;
238
+ post: {
239
+ brand: string;
240
+ catalogId: number;
241
+ description: string;
242
+ packageSizeId: number;
243
+ photoUrls: string[];
244
+ price: number;
245
+ statusId: number;
246
+ title: string;
247
+ isDraft: boolean;
248
+ material: number[];
249
+ manufacturerLabelling: string;
250
+ colorIds?: number[] | undefined;
251
+ measurementLength?: number | undefined;
252
+ measurementWidth?: number | undefined;
253
+ sizeId?: number | undefined;
254
+ };
255
+ };
256
+ accountsId: string[];
257
+ }, {
258
+ payload: {
259
+ itemId: string | number;
260
+ post: {
261
+ brand: string;
262
+ catalogId: number;
263
+ description: string;
264
+ packageSizeId: number;
265
+ photoUrls: string[];
266
+ price: number;
267
+ statusId: number;
268
+ title: string;
269
+ isDraft: boolean;
270
+ material: number[];
271
+ manufacturerLabelling: string;
272
+ colorIds?: number[] | undefined;
273
+ measurementLength?: number | undefined;
274
+ measurementWidth?: number | undefined;
275
+ sizeId?: number | undefined;
276
+ };
277
+ };
278
+ accountsId: string[];
279
+ }>;
280
+ export type JobPostsCreatePayloadWithAccounts = z.infer<typeof JobPostsCreatePayloadWithAccounts>;
281
+ export declare const JobPostsCreateResponseSchema: z.ZodObject<{
282
+ platformId: z.ZodString;
283
+ platformUrl: z.ZodString;
284
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
285
+ }, "strip", z.ZodTypeAny, {
286
+ itemId: string | number;
287
+ platformId: string;
288
+ platformUrl: string;
289
+ }, {
290
+ itemId: string | number;
291
+ platformId: string;
292
+ platformUrl: string;
293
+ }>;
294
+ export type JobPostsCreateResponse = z.infer<typeof JobPostsCreateResponseSchema>;
295
+ export declare const JobPostsDeletePayloadSchema: z.ZodObject<{
296
+ accountId: z.ZodString;
297
+ platformId: z.ZodString;
298
+ }, "strip", z.ZodTypeAny, {
299
+ accountId: string;
300
+ platformId: string;
301
+ }, {
302
+ accountId: string;
303
+ platformId: string;
304
+ }>;
305
+ export type JobPostsDeletePayload = z.infer<typeof JobPostsDeletePayloadSchema>;
306
+ export declare const JobPostsDeletePayloadListSchema: z.ZodObject<{
307
+ payloads: z.ZodArray<z.ZodObject<{
308
+ accountId: z.ZodString;
309
+ platformId: z.ZodString;
310
+ }, "strip", z.ZodTypeAny, {
311
+ accountId: string;
312
+ platformId: string;
313
+ }, {
314
+ accountId: string;
315
+ platformId: string;
316
+ }>, "many">;
317
+ }, "strip", z.ZodTypeAny, {
318
+ payloads: {
319
+ accountId: string;
320
+ platformId: string;
321
+ }[];
322
+ }, {
323
+ payloads: {
324
+ accountId: string;
325
+ platformId: string;
326
+ }[];
327
+ }>;
328
+ export type JobPostsDeletePayloadList = z.infer<typeof JobPostsDeletePayloadListSchema>;
329
+ export declare const JobPostsDeleteResponseSchema: z.ZodObject<{
330
+ accountId: z.ZodString;
331
+ platformId: z.ZodString;
332
+ }, "strip", z.ZodTypeAny, {
333
+ accountId: string;
334
+ platformId: string;
335
+ }, {
336
+ accountId: string;
337
+ platformId: string;
338
+ }>;
339
+ export type JobPostsDeleteResponse = z.infer<typeof JobPostsDeleteResponseSchema>;
340
+ export declare const JobPostsListPayloadSchema: z.ZodObject<{
341
+ lastRetrieve: z.ZodOptional<z.ZodString>;
342
+ }, "strip", z.ZodTypeAny, {
343
+ lastRetrieve?: string | undefined;
344
+ }, {
345
+ lastRetrieve?: string | undefined;
346
+ }>;
347
+ export type JobPostsListPayload = z.infer<typeof JobPostsListPayloadSchema>;
348
+ export declare const JobPostsListPayloadWithAccountSchema: z.ZodObject<{
349
+ accountId: z.ZodString;
350
+ }, "strip", z.ZodTypeAny, {
351
+ accountId: string;
352
+ }, {
353
+ accountId: string;
354
+ }>;
355
+ export type JobPostsListPayloadWithAccount = z.infer<typeof JobPostsListPayloadWithAccountSchema>;
356
+ export declare const JobPostsListResponseSchema: z.ZodObject<{
357
+ items: z.ZodArray<z.ZodObject<{
358
+ brand: z.ZodString;
359
+ catalogId: z.ZodNumber;
360
+ colorIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
361
+ description: z.ZodString;
362
+ measurementLength: z.ZodOptional<z.ZodNumber>;
363
+ measurementWidth: z.ZodOptional<z.ZodNumber>;
364
+ packageSizeId: z.ZodNumber;
365
+ photoUrls: z.ZodArray<z.ZodString, "many">;
366
+ price: z.ZodNumber;
367
+ sizeId: z.ZodOptional<z.ZodNumber>;
368
+ statusId: z.ZodNumber;
369
+ title: z.ZodString;
370
+ isDraft: z.ZodBoolean;
371
+ material: z.ZodArray<z.ZodNumber, "many">;
372
+ manufacturerLabelling: z.ZodString;
373
+ }, "strip", z.ZodTypeAny, {
374
+ brand: string;
375
+ catalogId: number;
376
+ description: string;
377
+ packageSizeId: number;
378
+ photoUrls: string[];
379
+ price: number;
380
+ statusId: number;
381
+ title: string;
382
+ isDraft: boolean;
383
+ material: number[];
384
+ manufacturerLabelling: string;
385
+ colorIds?: number[] | undefined;
386
+ measurementLength?: number | undefined;
387
+ measurementWidth?: number | undefined;
388
+ sizeId?: number | undefined;
389
+ }, {
390
+ brand: string;
391
+ catalogId: number;
392
+ description: string;
393
+ packageSizeId: number;
394
+ photoUrls: string[];
395
+ price: number;
396
+ statusId: number;
397
+ title: string;
398
+ isDraft: boolean;
399
+ material: number[];
400
+ manufacturerLabelling: string;
401
+ colorIds?: number[] | undefined;
402
+ measurementLength?: number | undefined;
403
+ measurementWidth?: number | undefined;
404
+ sizeId?: number | undefined;
405
+ }>, "many">;
406
+ }, "strip", z.ZodTypeAny, {
407
+ items: {
408
+ brand: string;
409
+ catalogId: number;
410
+ description: string;
411
+ packageSizeId: number;
412
+ photoUrls: string[];
413
+ price: number;
414
+ statusId: number;
415
+ title: string;
416
+ isDraft: boolean;
417
+ material: number[];
418
+ manufacturerLabelling: string;
419
+ colorIds?: number[] | undefined;
420
+ measurementLength?: number | undefined;
421
+ measurementWidth?: number | undefined;
422
+ sizeId?: number | undefined;
423
+ }[];
424
+ }, {
425
+ items: {
426
+ brand: string;
427
+ catalogId: number;
428
+ description: string;
429
+ packageSizeId: number;
430
+ photoUrls: string[];
431
+ price: number;
432
+ statusId: number;
433
+ title: string;
434
+ isDraft: boolean;
435
+ material: number[];
436
+ manufacturerLabelling: string;
437
+ colorIds?: number[] | undefined;
438
+ measurementLength?: number | undefined;
439
+ measurementWidth?: number | undefined;
440
+ sizeId?: number | undefined;
441
+ }[];
442
+ }>;
443
+ export type JobPostsListResponse = z.infer<typeof JobPostsListResponseSchema>;
444
+ export declare const JobPostsUpdatePayloadSchema: z.ZodObject<{
445
+ accountId: z.ZodString;
446
+ platformId: z.ZodString;
447
+ post: z.ZodObject<{
448
+ brand: z.ZodString;
449
+ catalogId: z.ZodNumber;
450
+ colorIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
451
+ description: z.ZodString;
452
+ measurementLength: z.ZodOptional<z.ZodNumber>;
453
+ measurementWidth: z.ZodOptional<z.ZodNumber>;
454
+ packageSizeId: z.ZodNumber;
455
+ photoUrls: z.ZodArray<z.ZodString, "many">;
456
+ price: z.ZodNumber;
457
+ sizeId: z.ZodOptional<z.ZodNumber>;
458
+ statusId: z.ZodNumber;
459
+ title: z.ZodString;
460
+ isDraft: z.ZodBoolean;
461
+ material: z.ZodArray<z.ZodNumber, "many">;
462
+ manufacturerLabelling: z.ZodString;
463
+ }, "strip", z.ZodTypeAny, {
464
+ brand: string;
465
+ catalogId: number;
466
+ description: string;
467
+ packageSizeId: number;
468
+ photoUrls: string[];
469
+ price: number;
470
+ statusId: number;
471
+ title: string;
472
+ isDraft: boolean;
473
+ material: number[];
474
+ manufacturerLabelling: string;
475
+ colorIds?: number[] | undefined;
476
+ measurementLength?: number | undefined;
477
+ measurementWidth?: number | undefined;
478
+ sizeId?: number | undefined;
479
+ }, {
480
+ brand: string;
481
+ catalogId: number;
482
+ description: string;
483
+ packageSizeId: number;
484
+ photoUrls: string[];
485
+ price: number;
486
+ statusId: number;
487
+ title: string;
488
+ isDraft: boolean;
489
+ material: number[];
490
+ manufacturerLabelling: string;
491
+ colorIds?: number[] | undefined;
492
+ measurementLength?: number | undefined;
493
+ measurementWidth?: number | undefined;
494
+ sizeId?: number | undefined;
495
+ }>;
496
+ }, "strip", z.ZodTypeAny, {
497
+ accountId: string;
498
+ post: {
499
+ brand: string;
500
+ catalogId: number;
501
+ description: string;
502
+ packageSizeId: number;
503
+ photoUrls: string[];
504
+ price: number;
505
+ statusId: number;
506
+ title: string;
507
+ isDraft: boolean;
508
+ material: number[];
509
+ manufacturerLabelling: string;
510
+ colorIds?: number[] | undefined;
511
+ measurementLength?: number | undefined;
512
+ measurementWidth?: number | undefined;
513
+ sizeId?: number | undefined;
514
+ };
515
+ platformId: string;
516
+ }, {
517
+ accountId: string;
518
+ post: {
519
+ brand: string;
520
+ catalogId: number;
521
+ description: string;
522
+ packageSizeId: number;
523
+ photoUrls: string[];
524
+ price: number;
525
+ statusId: number;
526
+ title: string;
527
+ isDraft: boolean;
528
+ material: number[];
529
+ manufacturerLabelling: string;
530
+ colorIds?: number[] | undefined;
531
+ measurementLength?: number | undefined;
532
+ measurementWidth?: number | undefined;
533
+ sizeId?: number | undefined;
534
+ };
535
+ platformId: string;
536
+ }>;
537
+ export type JobPostsUpdatePayload = z.infer<typeof JobPostsUpdatePayloadSchema>;
538
+ export declare const JobPostsUpdateResponseSchema: z.ZodObject<{
539
+ accountId: z.ZodString;
540
+ platformId: z.ZodString;
541
+ post: z.ZodObject<{
542
+ brand: z.ZodString;
543
+ catalogId: z.ZodNumber;
544
+ colorIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
545
+ description: z.ZodString;
546
+ measurementLength: z.ZodOptional<z.ZodNumber>;
547
+ measurementWidth: z.ZodOptional<z.ZodNumber>;
548
+ packageSizeId: z.ZodNumber;
549
+ photoUrls: z.ZodArray<z.ZodString, "many">;
550
+ price: z.ZodNumber;
551
+ sizeId: z.ZodOptional<z.ZodNumber>;
552
+ statusId: z.ZodNumber;
553
+ title: z.ZodString;
554
+ isDraft: z.ZodBoolean;
555
+ material: z.ZodArray<z.ZodNumber, "many">;
556
+ manufacturerLabelling: z.ZodString;
557
+ }, "strip", z.ZodTypeAny, {
558
+ brand: string;
559
+ catalogId: number;
560
+ description: string;
561
+ packageSizeId: number;
562
+ photoUrls: string[];
563
+ price: number;
564
+ statusId: number;
565
+ title: string;
566
+ isDraft: boolean;
567
+ material: number[];
568
+ manufacturerLabelling: string;
569
+ colorIds?: number[] | undefined;
570
+ measurementLength?: number | undefined;
571
+ measurementWidth?: number | undefined;
572
+ sizeId?: number | undefined;
573
+ }, {
574
+ brand: string;
575
+ catalogId: number;
576
+ description: string;
577
+ packageSizeId: number;
578
+ photoUrls: string[];
579
+ price: number;
580
+ statusId: number;
581
+ title: string;
582
+ isDraft: boolean;
583
+ material: number[];
584
+ manufacturerLabelling: string;
585
+ colorIds?: number[] | undefined;
586
+ measurementLength?: number | undefined;
587
+ measurementWidth?: number | undefined;
588
+ sizeId?: number | undefined;
589
+ }>;
590
+ }, "strip", z.ZodTypeAny, {
591
+ accountId: string;
592
+ post: {
593
+ brand: string;
594
+ catalogId: number;
595
+ description: string;
596
+ packageSizeId: number;
597
+ photoUrls: string[];
598
+ price: number;
599
+ statusId: number;
600
+ title: string;
601
+ isDraft: boolean;
602
+ material: number[];
603
+ manufacturerLabelling: string;
604
+ colorIds?: number[] | undefined;
605
+ measurementLength?: number | undefined;
606
+ measurementWidth?: number | undefined;
607
+ sizeId?: number | undefined;
608
+ };
609
+ platformId: string;
610
+ }, {
611
+ accountId: string;
612
+ post: {
613
+ brand: string;
614
+ catalogId: number;
615
+ description: string;
616
+ packageSizeId: number;
617
+ photoUrls: string[];
618
+ price: number;
619
+ statusId: number;
620
+ title: string;
621
+ isDraft: boolean;
622
+ material: number[];
623
+ manufacturerLabelling: string;
624
+ colorIds?: number[] | undefined;
625
+ measurementLength?: number | undefined;
626
+ measurementWidth?: number | undefined;
627
+ sizeId?: number | undefined;
628
+ };
629
+ platformId: string;
630
+ }>;
631
+ export type JobPostsUpdateResponse = z.infer<typeof JobPostsUpdateResponseSchema>;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.JobPostsUpdateResponseSchema = exports.JobPostsUpdatePayloadSchema = exports.JobPostsListResponseSchema = exports.JobPostsListPayloadWithAccountSchema = exports.JobPostsListPayloadSchema = exports.JobPostsDeleteResponseSchema = exports.JobPostsDeletePayloadListSchema = exports.JobPostsDeletePayloadSchema = exports.JobPostsCreateResponseSchema = exports.JobPostsCreatePayloadWithAccounts = exports.JobPostsCreatePayloadSchema = exports.JobPostSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const primitives_1 = require("../../primitives");
6
+ exports.JobPostSchema = zod_1.z.object({
7
+ brand: zod_1.z.string(),
8
+ catalogId: zod_1.z.number(),
9
+ colorIds: zod_1.z.array(zod_1.z.number()).optional(),
10
+ description: zod_1.z.string(),
11
+ measurementLength: zod_1.z.number().optional(),
12
+ measurementWidth: zod_1.z.number().optional(),
13
+ packageSizeId: zod_1.z.number(),
14
+ photoUrls: zod_1.z.array(zod_1.z.string()),
15
+ price: zod_1.z.number(),
16
+ sizeId: zod_1.z.number().optional(),
17
+ statusId: zod_1.z.number(),
18
+ title: zod_1.z.string(),
19
+ isDraft: zod_1.z.boolean(),
20
+ material: zod_1.z.array(zod_1.z.number()),
21
+ manufacturerLabelling: zod_1.z.string(),
22
+ });
23
+ exports.JobPostsCreatePayloadSchema = zod_1.z.object({
24
+ itemId: primitives_1.IdSchema,
25
+ post: exports.JobPostSchema,
26
+ });
27
+ exports.JobPostsCreatePayloadWithAccounts = zod_1.z.object({
28
+ accountsId: zod_1.z.array(zod_1.z.string().uuid()),
29
+ payload: exports.JobPostsCreatePayloadSchema,
30
+ });
31
+ exports.JobPostsCreateResponseSchema = zod_1.z.object({
32
+ platformId: zod_1.z.string(),
33
+ platformUrl: zod_1.z.string(),
34
+ itemId: primitives_1.IdSchema,
35
+ });
36
+ exports.JobPostsDeletePayloadSchema = zod_1.z.object({
37
+ accountId: zod_1.z.string().uuid(),
38
+ platformId: zod_1.z.string(),
39
+ });
40
+ exports.JobPostsDeletePayloadListSchema = zod_1.z.object({
41
+ payloads: zod_1.z.array(exports.JobPostsDeletePayloadSchema),
42
+ });
43
+ exports.JobPostsDeleteResponseSchema = zod_1.z.object({
44
+ accountId: zod_1.z.string().uuid(),
45
+ platformId: zod_1.z.string(),
46
+ });
47
+ exports.JobPostsListPayloadSchema = zod_1.z.object({
48
+ lastRetrieve: zod_1.z.string().optional(),
49
+ });
50
+ exports.JobPostsListPayloadWithAccountSchema = zod_1.z.object({
51
+ accountId: zod_1.z.string().uuid(),
52
+ });
53
+ exports.JobPostsListResponseSchema = zod_1.z.object({
54
+ items: zod_1.z.array(exports.JobPostSchema),
55
+ });
56
+ exports.JobPostsUpdatePayloadSchema = zod_1.z.object({
57
+ accountId: zod_1.z.string().uuid(),
58
+ platformId: zod_1.z.string(),
59
+ post: exports.JobPostSchema,
60
+ });
61
+ exports.JobPostsUpdateResponseSchema = zod_1.z.object({
62
+ accountId: zod_1.z.string().uuid(),
63
+ platformId: zod_1.z.string(),
64
+ post: exports.JobPostSchema,
65
+ });