controlresell 0.0.8 → 0.0.9

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.
@@ -5,20 +5,20 @@ export declare const ConnectorAccountSchema: z.ZodObject<{
5
5
  id: z.ZodString;
6
6
  platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
7
7
  ownerId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
8
- credentials: z.ZodOptional<z.ZodString>;
9
- data: z.ZodOptional<z.ZodString>;
8
+ credentials: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
10
  }, "strip", z.ZodTypeAny, {
11
11
  id: string;
12
12
  platform: "VINTED" | "SHOPIFY";
13
13
  ownerId: string | number;
14
- credentials?: string | undefined;
15
- data?: string | undefined;
14
+ credentials?: string | null | undefined;
15
+ data?: string | null | undefined;
16
16
  }, {
17
17
  id: string;
18
18
  platform: "VINTED" | "SHOPIFY";
19
19
  ownerId: string | number;
20
- credentials?: string | undefined;
21
- data?: string | undefined;
20
+ credentials?: string | null | undefined;
21
+ data?: string | null | undefined;
22
22
  }>;
23
23
  export type ConnectorAccount = z.infer<typeof ConnectorAccountSchema>;
24
24
  export declare const CreateConnectorAccountPayloadSchema: z.ZodObject<{
@@ -36,13 +36,13 @@ export declare const CreateConnectorAccountPayloadSchema: z.ZodObject<{
36
36
  }>;
37
37
  export type CreateConnectorAccountPayload = z.infer<typeof CreateConnectorAccountPayloadSchema>;
38
38
  export declare const UpdateConnectorAccountPayloadSchema: z.ZodObject<{
39
- credentials: z.ZodOptional<z.ZodString>;
40
- data: z.ZodOptional<z.ZodString>;
39
+ credentials: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
41
  }, "strip", z.ZodTypeAny, {
42
- credentials?: string | undefined;
43
- data?: string | undefined;
42
+ credentials?: string | null | undefined;
43
+ data?: string | null | undefined;
44
44
  }, {
45
- credentials?: string | undefined;
46
- data?: string | undefined;
45
+ credentials?: string | null | undefined;
46
+ data?: string | null | undefined;
47
47
  }>;
48
48
  export type UpdateConnectorAccountPayload = z.infer<typeof UpdateConnectorAccountPayloadSchema>;
@@ -8,8 +8,8 @@ exports.ConnectorAccountSchema = zod_1.z.object({
8
8
  id: zod_1.z.string().uuid(),
9
9
  platform: exports.ConnectorAccountPlatformSchema,
10
10
  ownerId: primitives_1.IdSchema,
11
- credentials: zod_1.z.string().optional(),
12
- data: zod_1.z.string().optional(),
11
+ credentials: zod_1.z.string().nullish(),
12
+ data: zod_1.z.string().nullish(),
13
13
  });
14
14
  exports.CreateConnectorAccountPayloadSchema = zod_1.z.object({
15
15
  platform: exports.ConnectorAccountPlatformSchema,
@@ -17,6 +17,6 @@ exports.CreateConnectorAccountPayloadSchema = zod_1.z.object({
17
17
  credentials: zod_1.z.string(),
18
18
  });
19
19
  exports.UpdateConnectorAccountPayloadSchema = zod_1.z.object({
20
- credentials: zod_1.z.string().optional(),
21
- data: zod_1.z.string().optional(),
20
+ credentials: zod_1.z.string().nullish(),
21
+ data: zod_1.z.string().nullish(),
22
22
  });
@@ -4,20 +4,20 @@ export declare const JobRequestSchema: <Payload extends z.ZodTypeAny>(payload: P
4
4
  id: z.ZodString;
5
5
  platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
6
6
  ownerId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
7
- credentials: z.ZodOptional<z.ZodString>;
8
- data: z.ZodOptional<z.ZodString>;
7
+ credentials: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  id: string;
11
11
  platform: "VINTED" | "SHOPIFY";
12
12
  ownerId: string | number;
13
- credentials?: string | undefined;
14
- data?: string | undefined;
13
+ credentials?: string | null | undefined;
14
+ data?: string | null | undefined;
15
15
  }, {
16
16
  id: string;
17
17
  platform: "VINTED" | "SHOPIFY";
18
18
  ownerId: string | number;
19
- credentials?: string | undefined;
20
- data?: string | undefined;
19
+ credentials?: string | null | undefined;
20
+ data?: string | null | undefined;
21
21
  }>;
22
22
  payload: Payload;
23
23
  }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
@@ -25,20 +25,20 @@ export declare const JobRequestSchema: <Payload extends z.ZodTypeAny>(payload: P
25
25
  id: z.ZodString;
26
26
  platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
27
27
  ownerId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
28
- credentials: z.ZodOptional<z.ZodString>;
29
- data: z.ZodOptional<z.ZodString>;
28
+ credentials: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
30
  }, "strip", z.ZodTypeAny, {
31
31
  id: string;
32
32
  platform: "VINTED" | "SHOPIFY";
33
33
  ownerId: string | number;
34
- credentials?: string | undefined;
35
- data?: string | undefined;
34
+ credentials?: string | null | undefined;
35
+ data?: string | null | undefined;
36
36
  }, {
37
37
  id: string;
38
38
  platform: "VINTED" | "SHOPIFY";
39
39
  ownerId: string | number;
40
- credentials?: string | undefined;
41
- data?: string | undefined;
40
+ credentials?: string | null | undefined;
41
+ data?: string | null | undefined;
42
42
  }>;
43
43
  payload: Payload;
44
44
  }>, any> extends infer T ? { [k in keyof T]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
@@ -46,20 +46,20 @@ export declare const JobRequestSchema: <Payload extends z.ZodTypeAny>(payload: P
46
46
  id: z.ZodString;
47
47
  platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
48
48
  ownerId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
49
- credentials: z.ZodOptional<z.ZodString>;
50
- data: z.ZodOptional<z.ZodString>;
49
+ credentials: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
51
  }, "strip", z.ZodTypeAny, {
52
52
  id: string;
53
53
  platform: "VINTED" | "SHOPIFY";
54
54
  ownerId: string | number;
55
- credentials?: string | undefined;
56
- data?: string | undefined;
55
+ credentials?: string | null | undefined;
56
+ data?: string | null | undefined;
57
57
  }, {
58
58
  id: string;
59
59
  platform: "VINTED" | "SHOPIFY";
60
60
  ownerId: string | number;
61
- credentials?: string | undefined;
62
- data?: string | undefined;
61
+ credentials?: string | null | undefined;
62
+ data?: string | null | undefined;
63
63
  }>;
64
64
  payload: Payload;
65
65
  }>, any>[k]; } : never, z.baseObjectInputType<{
@@ -67,20 +67,20 @@ export declare const JobRequestSchema: <Payload extends z.ZodTypeAny>(payload: P
67
67
  id: z.ZodString;
68
68
  platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
69
69
  ownerId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
70
- credentials: z.ZodOptional<z.ZodString>;
71
- data: z.ZodOptional<z.ZodString>;
70
+ credentials: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
+ data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
72
  }, "strip", z.ZodTypeAny, {
73
73
  id: string;
74
74
  platform: "VINTED" | "SHOPIFY";
75
75
  ownerId: string | number;
76
- credentials?: string | undefined;
77
- data?: string | undefined;
76
+ credentials?: string | null | undefined;
77
+ data?: string | null | undefined;
78
78
  }, {
79
79
  id: string;
80
80
  platform: "VINTED" | "SHOPIFY";
81
81
  ownerId: string | number;
82
- credentials?: string | undefined;
83
- data?: string | undefined;
82
+ credentials?: string | null | undefined;
83
+ data?: string | null | undefined;
84
84
  }>;
85
85
  payload: Payload;
86
86
  }> extends infer T_1 ? { [k_1 in keyof T_1]: z.baseObjectInputType<{
@@ -88,20 +88,20 @@ export declare const JobRequestSchema: <Payload extends z.ZodTypeAny>(payload: P
88
88
  id: z.ZodString;
89
89
  platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
90
90
  ownerId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
91
- credentials: z.ZodOptional<z.ZodString>;
92
- data: z.ZodOptional<z.ZodString>;
91
+ credentials: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
+ data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
93
  }, "strip", z.ZodTypeAny, {
94
94
  id: string;
95
95
  platform: "VINTED" | "SHOPIFY";
96
96
  ownerId: string | number;
97
- credentials?: string | undefined;
98
- data?: string | undefined;
97
+ credentials?: string | null | undefined;
98
+ data?: string | null | undefined;
99
99
  }, {
100
100
  id: string;
101
101
  platform: "VINTED" | "SHOPIFY";
102
102
  ownerId: string | number;
103
- credentials?: string | undefined;
104
- data?: string | undefined;
103
+ credentials?: string | null | undefined;
104
+ data?: string | null | undefined;
105
105
  }>;
106
106
  payload: Payload;
107
107
  }>[k_1]; } : never>;
@@ -2,14 +2,14 @@ import { z } from "zod";
2
2
  export declare const JobPostSchema: z.ZodObject<{
3
3
  brand: z.ZodString;
4
4
  catalogId: z.ZodNumber;
5
- colorIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
5
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
6
6
  description: z.ZodString;
7
- measurementLength: z.ZodOptional<z.ZodNumber>;
8
- measurementWidth: z.ZodOptional<z.ZodNumber>;
7
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9
9
  packageSizeId: z.ZodNumber;
10
10
  photoUrls: z.ZodArray<z.ZodString, "many">;
11
11
  price: z.ZodNumber;
12
- sizeId: z.ZodOptional<z.ZodNumber>;
12
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
13
13
  statusId: z.ZodNumber;
14
14
  title: z.ZodString;
15
15
  isDraft: z.ZodBoolean;
@@ -27,10 +27,10 @@ export declare const JobPostSchema: z.ZodObject<{
27
27
  isDraft: boolean;
28
28
  material: number[];
29
29
  manufacturerLabelling: string;
30
- colorIds?: number[] | undefined;
31
- measurementLength?: number | undefined;
32
- measurementWidth?: number | undefined;
33
- sizeId?: number | undefined;
30
+ colorIds?: number[] | null | undefined;
31
+ measurementLength?: number | null | undefined;
32
+ measurementWidth?: number | null | undefined;
33
+ sizeId?: number | null | undefined;
34
34
  }, {
35
35
  brand: string;
36
36
  catalogId: number;
@@ -43,10 +43,10 @@ export declare const JobPostSchema: z.ZodObject<{
43
43
  isDraft: boolean;
44
44
  material: number[];
45
45
  manufacturerLabelling: string;
46
- colorIds?: number[] | undefined;
47
- measurementLength?: number | undefined;
48
- measurementWidth?: number | undefined;
49
- sizeId?: number | undefined;
46
+ colorIds?: number[] | null | undefined;
47
+ measurementLength?: number | null | undefined;
48
+ measurementWidth?: number | null | undefined;
49
+ sizeId?: number | null | undefined;
50
50
  }>;
51
51
  export type JobPost = z.infer<typeof JobPostSchema>;
52
52
  export declare const JobPostsCreatePayloadSchema: z.ZodObject<{
@@ -54,14 +54,14 @@ export declare const JobPostsCreatePayloadSchema: z.ZodObject<{
54
54
  post: z.ZodObject<{
55
55
  brand: z.ZodString;
56
56
  catalogId: z.ZodNumber;
57
- colorIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
57
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
58
58
  description: z.ZodString;
59
- measurementLength: z.ZodOptional<z.ZodNumber>;
60
- measurementWidth: z.ZodOptional<z.ZodNumber>;
59
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
60
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
61
61
  packageSizeId: z.ZodNumber;
62
62
  photoUrls: z.ZodArray<z.ZodString, "many">;
63
63
  price: z.ZodNumber;
64
- sizeId: z.ZodOptional<z.ZodNumber>;
64
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
65
65
  statusId: z.ZodNumber;
66
66
  title: z.ZodString;
67
67
  isDraft: z.ZodBoolean;
@@ -79,10 +79,10 @@ export declare const JobPostsCreatePayloadSchema: z.ZodObject<{
79
79
  isDraft: boolean;
80
80
  material: number[];
81
81
  manufacturerLabelling: string;
82
- colorIds?: number[] | undefined;
83
- measurementLength?: number | undefined;
84
- measurementWidth?: number | undefined;
85
- sizeId?: number | undefined;
82
+ colorIds?: number[] | null | undefined;
83
+ measurementLength?: number | null | undefined;
84
+ measurementWidth?: number | null | undefined;
85
+ sizeId?: number | null | undefined;
86
86
  }, {
87
87
  brand: string;
88
88
  catalogId: number;
@@ -95,10 +95,10 @@ export declare const JobPostsCreatePayloadSchema: z.ZodObject<{
95
95
  isDraft: boolean;
96
96
  material: number[];
97
97
  manufacturerLabelling: string;
98
- colorIds?: number[] | undefined;
99
- measurementLength?: number | undefined;
100
- measurementWidth?: number | undefined;
101
- sizeId?: number | undefined;
98
+ colorIds?: number[] | null | undefined;
99
+ measurementLength?: number | null | undefined;
100
+ measurementWidth?: number | null | undefined;
101
+ sizeId?: number | null | undefined;
102
102
  }>;
103
103
  }, "strip", z.ZodTypeAny, {
104
104
  itemId: string | number;
@@ -114,10 +114,10 @@ export declare const JobPostsCreatePayloadSchema: z.ZodObject<{
114
114
  isDraft: boolean;
115
115
  material: number[];
116
116
  manufacturerLabelling: string;
117
- colorIds?: number[] | undefined;
118
- measurementLength?: number | undefined;
119
- measurementWidth?: number | undefined;
120
- sizeId?: number | undefined;
117
+ colorIds?: number[] | null | undefined;
118
+ measurementLength?: number | null | undefined;
119
+ measurementWidth?: number | null | undefined;
120
+ sizeId?: number | null | undefined;
121
121
  };
122
122
  }, {
123
123
  itemId: string | number;
@@ -133,10 +133,10 @@ export declare const JobPostsCreatePayloadSchema: z.ZodObject<{
133
133
  isDraft: boolean;
134
134
  material: number[];
135
135
  manufacturerLabelling: string;
136
- colorIds?: number[] | undefined;
137
- measurementLength?: number | undefined;
138
- measurementWidth?: number | undefined;
139
- sizeId?: number | undefined;
136
+ colorIds?: number[] | null | undefined;
137
+ measurementLength?: number | null | undefined;
138
+ measurementWidth?: number | null | undefined;
139
+ sizeId?: number | null | undefined;
140
140
  };
141
141
  }>;
142
142
  export type JobPostsCreatePayload = z.infer<typeof JobPostsCreatePayloadSchema>;
@@ -147,14 +147,14 @@ export declare const JobPostsCreatePayloadWithAccounts: z.ZodObject<{
147
147
  post: z.ZodObject<{
148
148
  brand: z.ZodString;
149
149
  catalogId: z.ZodNumber;
150
- colorIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
150
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
151
151
  description: z.ZodString;
152
- measurementLength: z.ZodOptional<z.ZodNumber>;
153
- measurementWidth: z.ZodOptional<z.ZodNumber>;
152
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
153
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
154
154
  packageSizeId: z.ZodNumber;
155
155
  photoUrls: z.ZodArray<z.ZodString, "many">;
156
156
  price: z.ZodNumber;
157
- sizeId: z.ZodOptional<z.ZodNumber>;
157
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
158
158
  statusId: z.ZodNumber;
159
159
  title: z.ZodString;
160
160
  isDraft: z.ZodBoolean;
@@ -172,10 +172,10 @@ export declare const JobPostsCreatePayloadWithAccounts: z.ZodObject<{
172
172
  isDraft: boolean;
173
173
  material: number[];
174
174
  manufacturerLabelling: string;
175
- colorIds?: number[] | undefined;
176
- measurementLength?: number | undefined;
177
- measurementWidth?: number | undefined;
178
- sizeId?: number | undefined;
175
+ colorIds?: number[] | null | undefined;
176
+ measurementLength?: number | null | undefined;
177
+ measurementWidth?: number | null | undefined;
178
+ sizeId?: number | null | undefined;
179
179
  }, {
180
180
  brand: string;
181
181
  catalogId: number;
@@ -188,10 +188,10 @@ export declare const JobPostsCreatePayloadWithAccounts: z.ZodObject<{
188
188
  isDraft: boolean;
189
189
  material: number[];
190
190
  manufacturerLabelling: string;
191
- colorIds?: number[] | undefined;
192
- measurementLength?: number | undefined;
193
- measurementWidth?: number | undefined;
194
- sizeId?: number | undefined;
191
+ colorIds?: number[] | null | undefined;
192
+ measurementLength?: number | null | undefined;
193
+ measurementWidth?: number | null | undefined;
194
+ sizeId?: number | null | undefined;
195
195
  }>;
196
196
  }, "strip", z.ZodTypeAny, {
197
197
  itemId: string | number;
@@ -207,10 +207,10 @@ export declare const JobPostsCreatePayloadWithAccounts: z.ZodObject<{
207
207
  isDraft: boolean;
208
208
  material: number[];
209
209
  manufacturerLabelling: string;
210
- colorIds?: number[] | undefined;
211
- measurementLength?: number | undefined;
212
- measurementWidth?: number | undefined;
213
- sizeId?: number | undefined;
210
+ colorIds?: number[] | null | undefined;
211
+ measurementLength?: number | null | undefined;
212
+ measurementWidth?: number | null | undefined;
213
+ sizeId?: number | null | undefined;
214
214
  };
215
215
  }, {
216
216
  itemId: string | number;
@@ -226,10 +226,10 @@ export declare const JobPostsCreatePayloadWithAccounts: z.ZodObject<{
226
226
  isDraft: boolean;
227
227
  material: number[];
228
228
  manufacturerLabelling: string;
229
- colorIds?: number[] | undefined;
230
- measurementLength?: number | undefined;
231
- measurementWidth?: number | undefined;
232
- sizeId?: number | undefined;
229
+ colorIds?: number[] | null | undefined;
230
+ measurementLength?: number | null | undefined;
231
+ measurementWidth?: number | null | undefined;
232
+ sizeId?: number | null | undefined;
233
233
  };
234
234
  }>;
235
235
  }, "strip", z.ZodTypeAny, {
@@ -247,10 +247,10 @@ export declare const JobPostsCreatePayloadWithAccounts: z.ZodObject<{
247
247
  isDraft: boolean;
248
248
  material: number[];
249
249
  manufacturerLabelling: string;
250
- colorIds?: number[] | undefined;
251
- measurementLength?: number | undefined;
252
- measurementWidth?: number | undefined;
253
- sizeId?: number | undefined;
250
+ colorIds?: number[] | null | undefined;
251
+ measurementLength?: number | null | undefined;
252
+ measurementWidth?: number | null | undefined;
253
+ sizeId?: number | null | undefined;
254
254
  };
255
255
  };
256
256
  accountsId: string[];
@@ -269,10 +269,10 @@ export declare const JobPostsCreatePayloadWithAccounts: z.ZodObject<{
269
269
  isDraft: boolean;
270
270
  material: number[];
271
271
  manufacturerLabelling: string;
272
- colorIds?: number[] | undefined;
273
- measurementLength?: number | undefined;
274
- measurementWidth?: number | undefined;
275
- sizeId?: number | undefined;
272
+ colorIds?: number[] | null | undefined;
273
+ measurementLength?: number | null | undefined;
274
+ measurementWidth?: number | null | undefined;
275
+ sizeId?: number | null | undefined;
276
276
  };
277
277
  };
278
278
  accountsId: string[];
@@ -338,11 +338,11 @@ export declare const JobPostsDeleteResponseSchema: z.ZodObject<{
338
338
  }>;
339
339
  export type JobPostsDeleteResponse = z.infer<typeof JobPostsDeleteResponseSchema>;
340
340
  export declare const JobPostsListPayloadSchema: z.ZodObject<{
341
- lastRetrieve: z.ZodOptional<z.ZodString>;
341
+ lastRetrieve: z.ZodOptional<z.ZodNullable<z.ZodString>>;
342
342
  }, "strip", z.ZodTypeAny, {
343
- lastRetrieve?: string | undefined;
343
+ lastRetrieve?: string | null | undefined;
344
344
  }, {
345
- lastRetrieve?: string | undefined;
345
+ lastRetrieve?: string | null | undefined;
346
346
  }>;
347
347
  export type JobPostsListPayload = z.infer<typeof JobPostsListPayloadSchema>;
348
348
  export declare const JobPostsListPayloadWithAccountSchema: z.ZodObject<{
@@ -357,14 +357,14 @@ export declare const JobPostsListResponseSchema: z.ZodObject<{
357
357
  items: z.ZodArray<z.ZodObject<{
358
358
  brand: z.ZodString;
359
359
  catalogId: z.ZodNumber;
360
- colorIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
360
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
361
361
  description: z.ZodString;
362
- measurementLength: z.ZodOptional<z.ZodNumber>;
363
- measurementWidth: z.ZodOptional<z.ZodNumber>;
362
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
363
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
364
364
  packageSizeId: z.ZodNumber;
365
365
  photoUrls: z.ZodArray<z.ZodString, "many">;
366
366
  price: z.ZodNumber;
367
- sizeId: z.ZodOptional<z.ZodNumber>;
367
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
368
368
  statusId: z.ZodNumber;
369
369
  title: z.ZodString;
370
370
  isDraft: z.ZodBoolean;
@@ -382,10 +382,10 @@ export declare const JobPostsListResponseSchema: z.ZodObject<{
382
382
  isDraft: boolean;
383
383
  material: number[];
384
384
  manufacturerLabelling: string;
385
- colorIds?: number[] | undefined;
386
- measurementLength?: number | undefined;
387
- measurementWidth?: number | undefined;
388
- sizeId?: number | undefined;
385
+ colorIds?: number[] | null | undefined;
386
+ measurementLength?: number | null | undefined;
387
+ measurementWidth?: number | null | undefined;
388
+ sizeId?: number | null | undefined;
389
389
  }, {
390
390
  brand: string;
391
391
  catalogId: number;
@@ -398,10 +398,10 @@ export declare const JobPostsListResponseSchema: z.ZodObject<{
398
398
  isDraft: boolean;
399
399
  material: number[];
400
400
  manufacturerLabelling: string;
401
- colorIds?: number[] | undefined;
402
- measurementLength?: number | undefined;
403
- measurementWidth?: number | undefined;
404
- sizeId?: number | undefined;
401
+ colorIds?: number[] | null | undefined;
402
+ measurementLength?: number | null | undefined;
403
+ measurementWidth?: number | null | undefined;
404
+ sizeId?: number | null | undefined;
405
405
  }>, "many">;
406
406
  }, "strip", z.ZodTypeAny, {
407
407
  items: {
@@ -416,10 +416,10 @@ export declare const JobPostsListResponseSchema: z.ZodObject<{
416
416
  isDraft: boolean;
417
417
  material: number[];
418
418
  manufacturerLabelling: string;
419
- colorIds?: number[] | undefined;
420
- measurementLength?: number | undefined;
421
- measurementWidth?: number | undefined;
422
- sizeId?: number | undefined;
419
+ colorIds?: number[] | null | undefined;
420
+ measurementLength?: number | null | undefined;
421
+ measurementWidth?: number | null | undefined;
422
+ sizeId?: number | null | undefined;
423
423
  }[];
424
424
  }, {
425
425
  items: {
@@ -434,10 +434,10 @@ export declare const JobPostsListResponseSchema: z.ZodObject<{
434
434
  isDraft: boolean;
435
435
  material: number[];
436
436
  manufacturerLabelling: string;
437
- colorIds?: number[] | undefined;
438
- measurementLength?: number | undefined;
439
- measurementWidth?: number | undefined;
440
- sizeId?: number | undefined;
437
+ colorIds?: number[] | null | undefined;
438
+ measurementLength?: number | null | undefined;
439
+ measurementWidth?: number | null | undefined;
440
+ sizeId?: number | null | undefined;
441
441
  }[];
442
442
  }>;
443
443
  export type JobPostsListResponse = z.infer<typeof JobPostsListResponseSchema>;
@@ -447,14 +447,14 @@ export declare const JobPostsUpdatePayloadSchema: z.ZodObject<{
447
447
  post: z.ZodObject<{
448
448
  brand: z.ZodString;
449
449
  catalogId: z.ZodNumber;
450
- colorIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
450
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
451
451
  description: z.ZodString;
452
- measurementLength: z.ZodOptional<z.ZodNumber>;
453
- measurementWidth: z.ZodOptional<z.ZodNumber>;
452
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
453
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
454
454
  packageSizeId: z.ZodNumber;
455
455
  photoUrls: z.ZodArray<z.ZodString, "many">;
456
456
  price: z.ZodNumber;
457
- sizeId: z.ZodOptional<z.ZodNumber>;
457
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
458
458
  statusId: z.ZodNumber;
459
459
  title: z.ZodString;
460
460
  isDraft: z.ZodBoolean;
@@ -472,10 +472,10 @@ export declare const JobPostsUpdatePayloadSchema: z.ZodObject<{
472
472
  isDraft: boolean;
473
473
  material: number[];
474
474
  manufacturerLabelling: string;
475
- colorIds?: number[] | undefined;
476
- measurementLength?: number | undefined;
477
- measurementWidth?: number | undefined;
478
- sizeId?: number | undefined;
475
+ colorIds?: number[] | null | undefined;
476
+ measurementLength?: number | null | undefined;
477
+ measurementWidth?: number | null | undefined;
478
+ sizeId?: number | null | undefined;
479
479
  }, {
480
480
  brand: string;
481
481
  catalogId: number;
@@ -488,10 +488,10 @@ export declare const JobPostsUpdatePayloadSchema: z.ZodObject<{
488
488
  isDraft: boolean;
489
489
  material: number[];
490
490
  manufacturerLabelling: string;
491
- colorIds?: number[] | undefined;
492
- measurementLength?: number | undefined;
493
- measurementWidth?: number | undefined;
494
- sizeId?: number | undefined;
491
+ colorIds?: number[] | null | undefined;
492
+ measurementLength?: number | null | undefined;
493
+ measurementWidth?: number | null | undefined;
494
+ sizeId?: number | null | undefined;
495
495
  }>;
496
496
  }, "strip", z.ZodTypeAny, {
497
497
  accountId: string;
@@ -507,10 +507,10 @@ export declare const JobPostsUpdatePayloadSchema: z.ZodObject<{
507
507
  isDraft: boolean;
508
508
  material: number[];
509
509
  manufacturerLabelling: string;
510
- colorIds?: number[] | undefined;
511
- measurementLength?: number | undefined;
512
- measurementWidth?: number | undefined;
513
- sizeId?: number | undefined;
510
+ colorIds?: number[] | null | undefined;
511
+ measurementLength?: number | null | undefined;
512
+ measurementWidth?: number | null | undefined;
513
+ sizeId?: number | null | undefined;
514
514
  };
515
515
  platformId: string;
516
516
  }, {
@@ -527,10 +527,10 @@ export declare const JobPostsUpdatePayloadSchema: z.ZodObject<{
527
527
  isDraft: boolean;
528
528
  material: number[];
529
529
  manufacturerLabelling: string;
530
- colorIds?: number[] | undefined;
531
- measurementLength?: number | undefined;
532
- measurementWidth?: number | undefined;
533
- sizeId?: number | undefined;
530
+ colorIds?: number[] | null | undefined;
531
+ measurementLength?: number | null | undefined;
532
+ measurementWidth?: number | null | undefined;
533
+ sizeId?: number | null | undefined;
534
534
  };
535
535
  platformId: string;
536
536
  }>;
@@ -541,14 +541,14 @@ export declare const JobPostsUpdateResponseSchema: z.ZodObject<{
541
541
  post: z.ZodObject<{
542
542
  brand: z.ZodString;
543
543
  catalogId: z.ZodNumber;
544
- colorIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
544
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
545
545
  description: z.ZodString;
546
- measurementLength: z.ZodOptional<z.ZodNumber>;
547
- measurementWidth: z.ZodOptional<z.ZodNumber>;
546
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
547
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
548
548
  packageSizeId: z.ZodNumber;
549
549
  photoUrls: z.ZodArray<z.ZodString, "many">;
550
550
  price: z.ZodNumber;
551
- sizeId: z.ZodOptional<z.ZodNumber>;
551
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
552
552
  statusId: z.ZodNumber;
553
553
  title: z.ZodString;
554
554
  isDraft: z.ZodBoolean;
@@ -566,10 +566,10 @@ export declare const JobPostsUpdateResponseSchema: z.ZodObject<{
566
566
  isDraft: boolean;
567
567
  material: number[];
568
568
  manufacturerLabelling: string;
569
- colorIds?: number[] | undefined;
570
- measurementLength?: number | undefined;
571
- measurementWidth?: number | undefined;
572
- sizeId?: number | undefined;
569
+ colorIds?: number[] | null | undefined;
570
+ measurementLength?: number | null | undefined;
571
+ measurementWidth?: number | null | undefined;
572
+ sizeId?: number | null | undefined;
573
573
  }, {
574
574
  brand: string;
575
575
  catalogId: number;
@@ -582,10 +582,10 @@ export declare const JobPostsUpdateResponseSchema: z.ZodObject<{
582
582
  isDraft: boolean;
583
583
  material: number[];
584
584
  manufacturerLabelling: string;
585
- colorIds?: number[] | undefined;
586
- measurementLength?: number | undefined;
587
- measurementWidth?: number | undefined;
588
- sizeId?: number | undefined;
585
+ colorIds?: number[] | null | undefined;
586
+ measurementLength?: number | null | undefined;
587
+ measurementWidth?: number | null | undefined;
588
+ sizeId?: number | null | undefined;
589
589
  }>;
590
590
  }, "strip", z.ZodTypeAny, {
591
591
  accountId: string;
@@ -601,10 +601,10 @@ export declare const JobPostsUpdateResponseSchema: z.ZodObject<{
601
601
  isDraft: boolean;
602
602
  material: number[];
603
603
  manufacturerLabelling: string;
604
- colorIds?: number[] | undefined;
605
- measurementLength?: number | undefined;
606
- measurementWidth?: number | undefined;
607
- sizeId?: number | undefined;
604
+ colorIds?: number[] | null | undefined;
605
+ measurementLength?: number | null | undefined;
606
+ measurementWidth?: number | null | undefined;
607
+ sizeId?: number | null | undefined;
608
608
  };
609
609
  platformId: string;
610
610
  }, {
@@ -621,10 +621,10 @@ export declare const JobPostsUpdateResponseSchema: z.ZodObject<{
621
621
  isDraft: boolean;
622
622
  material: number[];
623
623
  manufacturerLabelling: string;
624
- colorIds?: number[] | undefined;
625
- measurementLength?: number | undefined;
626
- measurementWidth?: number | undefined;
627
- sizeId?: number | undefined;
624
+ colorIds?: number[] | null | undefined;
625
+ measurementLength?: number | null | undefined;
626
+ measurementWidth?: number | null | undefined;
627
+ sizeId?: number | null | undefined;
628
628
  };
629
629
  platformId: string;
630
630
  }>;
@@ -6,14 +6,14 @@ const primitives_1 = require("../../primitives");
6
6
  exports.JobPostSchema = zod_1.z.object({
7
7
  brand: zod_1.z.string(),
8
8
  catalogId: zod_1.z.number(),
9
- colorIds: zod_1.z.array(zod_1.z.number()).optional(),
9
+ colorIds: zod_1.z.array(zod_1.z.number()).nullish(),
10
10
  description: zod_1.z.string(),
11
- measurementLength: zod_1.z.number().optional(),
12
- measurementWidth: zod_1.z.number().optional(),
11
+ measurementLength: zod_1.z.number().nullish(),
12
+ measurementWidth: zod_1.z.number().nullish(),
13
13
  packageSizeId: zod_1.z.number(),
14
14
  photoUrls: zod_1.z.array(zod_1.z.string()),
15
15
  price: zod_1.z.number(),
16
- sizeId: zod_1.z.number().optional(),
16
+ sizeId: zod_1.z.number().nullish(),
17
17
  statusId: zod_1.z.number(),
18
18
  title: zod_1.z.string(),
19
19
  isDraft: zod_1.z.boolean(),
@@ -45,7 +45,7 @@ exports.JobPostsDeleteResponseSchema = zod_1.z.object({
45
45
  platformId: zod_1.z.string(),
46
46
  });
47
47
  exports.JobPostsListPayloadSchema = zod_1.z.object({
48
- lastRetrieve: zod_1.z.string().optional(),
48
+ lastRetrieve: zod_1.z.string().nullish(),
49
49
  });
50
50
  exports.JobPostsListPayloadWithAccountSchema = zod_1.z.object({
51
51
  accountId: zod_1.z.string().uuid(),
@@ -11,8 +11,8 @@ export declare const CustomerSchema: z.ZodObject<{
11
11
  iban: z.ZodString;
12
12
  bic: z.ZodString;
13
13
  phoneVerified: z.ZodBoolean;
14
- createdAt: z.ZodOptional<z.ZodDate>;
15
- items: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
14
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
15
+ items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodAny, "many">>>;
16
16
  }, "strip", z.ZodTypeAny, {
17
17
  id: string | number;
18
18
  userId: string | number;
@@ -25,8 +25,8 @@ export declare const CustomerSchema: z.ZodObject<{
25
25
  iban: string;
26
26
  bic: string;
27
27
  phoneVerified: boolean;
28
- items?: any[] | undefined;
29
- createdAt?: Date | undefined;
28
+ items?: any[] | null | undefined;
29
+ createdAt?: Date | null | undefined;
30
30
  }, {
31
31
  id: string | number;
32
32
  userId: string | number;
@@ -39,7 +39,7 @@ export declare const CustomerSchema: z.ZodObject<{
39
39
  iban: string;
40
40
  bic: string;
41
41
  phoneVerified: boolean;
42
- items?: any[] | undefined;
43
- createdAt?: Date | undefined;
42
+ items?: any[] | null | undefined;
43
+ createdAt?: Date | null | undefined;
44
44
  }>;
45
45
  export type Customer = z.infer<typeof CustomerSchema>;
@@ -16,6 +16,6 @@ exports.CustomerSchema = (0, legacy_1.legacy)(zod_1.z.object({
16
16
  iban: zod_1.z.string(),
17
17
  bic: zod_1.z.string(),
18
18
  phoneVerified: zod_1.z.boolean(),
19
- createdAt: zod_1.z.coerce.date().optional(),
20
- items: zod_1.z.array(zod_1.z.any()).optional(),
19
+ createdAt: zod_1.z.coerce.date().nullish(),
20
+ items: zod_1.z.array(zod_1.z.any()).nullish(),
21
21
  }));
@@ -25,27 +25,27 @@ export declare const SpotConfigSchema: z.ZodArray<z.ZodObject<{
25
25
  }>, "many">;
26
26
  export type SpotConfig = z.infer<typeof SpotConfigSchema>;
27
27
  export declare const SpotValueSchema: z.ZodObject<{
28
- name: z.ZodOptional<z.ZodString>;
29
- index: z.ZodOptional<z.ZodNumber>;
28
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
30
30
  }, "strip", z.ZodTypeAny, {
31
- name?: string | undefined;
32
- index?: number | undefined;
31
+ name?: string | null | undefined;
32
+ index?: number | null | undefined;
33
33
  }, {
34
- name?: string | undefined;
35
- index?: number | undefined;
34
+ name?: string | null | undefined;
35
+ index?: number | null | undefined;
36
36
  }>;
37
37
  export type SpotValue = z.infer<typeof SpotValueSchema>;
38
38
  export declare const SpotDefaultValueSchema: z.ZodObject<{
39
- name: z.ZodOptional<z.ZodString>;
40
- index: z.ZodOptional<z.ZodNumber>;
39
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
41
41
  fill: z.ZodDefault<z.ZodBoolean>;
42
42
  }, "strip", z.ZodTypeAny, {
43
43
  fill: boolean;
44
- name?: string | undefined;
45
- index?: number | undefined;
44
+ name?: string | null | undefined;
45
+ index?: number | null | undefined;
46
46
  }, {
47
47
  fill?: boolean | undefined;
48
- name?: string | undefined;
49
- index?: number | undefined;
48
+ name?: string | null | undefined;
49
+ index?: number | null | undefined;
50
50
  }>;
51
51
  export type SpotDefaultValue = z.infer<typeof SpotDefaultValueSchema>;
@@ -14,11 +14,11 @@ exports.SpotConfigSchema = zod_1.z.array(zod_1.z.object({
14
14
  end: zod_1.z.number(),
15
15
  }));
16
16
  exports.SpotValueSchema = zod_1.z.object({
17
- name: zod_1.z.string().optional(),
18
- index: zod_1.z.number().optional(),
17
+ name: zod_1.z.string().nullish(),
18
+ index: zod_1.z.number().nullish(),
19
19
  });
20
20
  exports.SpotDefaultValueSchema = zod_1.z.object({
21
- name: zod_1.z.string().optional(),
22
- index: zod_1.z.number().optional(),
21
+ name: zod_1.z.string().nullish(),
22
+ index: zod_1.z.number().nullish(),
23
23
  fill: zod_1.z.boolean().default(false),
24
24
  });
@@ -6,8 +6,8 @@ export declare const ItemFieldSchema: z.ZodObject<{
6
6
  userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
7
7
  name: z.ZodString;
8
8
  type: z.ZodEnum<["text", "spot"]>;
9
- config: z.ZodOptional<z.ZodString>;
10
- defaultValue: z.ZodOptional<z.ZodString>;
9
+ config: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
11
  section: z.ZodString;
12
12
  }, "strip", z.ZodTypeAny, {
13
13
  type: "text" | "spot";
@@ -15,35 +15,35 @@ export declare const ItemFieldSchema: z.ZodObject<{
15
15
  userId: string | number;
16
16
  name: string;
17
17
  section: string;
18
- defaultValue?: string | undefined;
19
- config?: string | undefined;
18
+ defaultValue?: string | null | undefined;
19
+ config?: string | null | undefined;
20
20
  }, {
21
21
  type: "text" | "spot";
22
22
  id: string | number;
23
23
  userId: string | number;
24
24
  name: string;
25
25
  section: string;
26
- defaultValue?: string | undefined;
27
- config?: string | undefined;
26
+ defaultValue?: string | null | undefined;
27
+ config?: string | null | undefined;
28
28
  }>;
29
29
  export type ItemField = z.infer<typeof ItemFieldSchema>;
30
30
  export declare const ItemFieldPayloadSchema: z.ZodObject<{
31
31
  name: z.ZodString;
32
32
  type: z.ZodEnum<["text", "spot"]>;
33
- config: z.ZodOptional<z.ZodString>;
34
- defaultValue: z.ZodOptional<z.ZodString>;
33
+ config: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
35
  section: z.ZodString;
36
36
  }, "strip", z.ZodTypeAny, {
37
37
  type: "text" | "spot";
38
38
  name: string;
39
39
  section: string;
40
- defaultValue?: string | undefined;
41
- config?: string | undefined;
40
+ defaultValue?: string | null | undefined;
41
+ config?: string | null | undefined;
42
42
  }, {
43
43
  type: "text" | "spot";
44
44
  name: string;
45
45
  section: string;
46
- defaultValue?: string | undefined;
47
- config?: string | undefined;
46
+ defaultValue?: string | null | undefined;
47
+ config?: string | null | undefined;
48
48
  }>;
49
49
  export type ItemFieldPayload = z.infer<typeof ItemFieldPayloadSchema>;
@@ -12,14 +12,14 @@ exports.ItemFieldSchema = (0, legacy_1.legacy)(zod_1.z.object({
12
12
  userId: primitives_1.IdSchema,
13
13
  name: zod_1.z.string(),
14
14
  type: exports.ItemFieldTypeSchema,
15
- config: zod_1.z.string().optional(),
16
- defaultValue: zod_1.z.string().optional(),
15
+ config: zod_1.z.string().nullish(),
16
+ defaultValue: zod_1.z.string().nullish(),
17
17
  section: zod_1.z.string(),
18
18
  }));
19
19
  exports.ItemFieldPayloadSchema = zod_1.z.object({
20
20
  name: zod_1.z.string(),
21
21
  type: exports.ItemFieldTypeSchema,
22
- config: zod_1.z.string().optional(),
23
- defaultValue: zod_1.z.string().optional(),
22
+ config: zod_1.z.string().nullish(),
23
+ defaultValue: zod_1.z.string().nullish(),
24
24
  section: zod_1.z.string(),
25
25
  });
@@ -42,10 +42,10 @@ export declare const CreateItemOnPlatformPayloadSchema: z.ZodObject<{
42
42
  }>;
43
43
  export type CreateItemOnPlatformPayload = z.infer<typeof CreateItemOnPlatformPayloadSchema>;
44
44
  export declare const UpdateItemOnPlatformPayloadSchema: z.ZodObject<{
45
- status: z.ZodOptional<z.ZodEnum<["online", "draft", "deleted", "sold", "hidden", "pending", "error", "dispute"]>>;
45
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["online", "draft", "deleted", "sold", "hidden", "pending", "error", "dispute"]>>>;
46
46
  }, "strip", z.ZodTypeAny, {
47
- status?: "online" | "draft" | "deleted" | "sold" | "hidden" | "pending" | "error" | "dispute" | undefined;
47
+ status?: "online" | "draft" | "deleted" | "sold" | "hidden" | "pending" | "error" | "dispute" | null | undefined;
48
48
  }, {
49
- status?: "online" | "draft" | "deleted" | "sold" | "hidden" | "pending" | "error" | "dispute" | undefined;
49
+ status?: "online" | "draft" | "deleted" | "sold" | "hidden" | "pending" | "error" | "dispute" | null | undefined;
50
50
  }>;
51
51
  export type UpdateItemOnPlatformPayload = z.infer<typeof UpdateItemOnPlatformPayloadSchema>;
@@ -21,5 +21,5 @@ exports.CreateItemOnPlatformPayloadSchema = zod_1.z.object({
21
21
  status: exports.ItemOnPlatformStatusSchema,
22
22
  });
23
23
  exports.UpdateItemOnPlatformPayloadSchema = zod_1.z.object({
24
- status: exports.ItemOnPlatformStatusSchema.optional(),
24
+ status: exports.ItemOnPlatformStatusSchema.nullish(),
25
25
  });
@@ -2,18 +2,18 @@ import { z } from "zod";
2
2
  export declare const UserMembershipSchema: z.ZodEnum<["free", "monthly", "yearly", "apprentice_monthly", "apprentice_yearly", "confirmed_monthly", "confirmed_yearly"]>;
3
3
  export declare const UserSchema: z.ZodObject<{
4
4
  id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
5
- email: z.ZodOptional<z.ZodString>;
5
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
6
  username: z.ZodString;
7
- firstName: z.ZodOptional<z.ZodString>;
8
- password: z.ZodOptional<z.ZodString>;
7
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
9
  anonymous: z.ZodBoolean;
10
10
  membership: z.ZodString;
11
11
  affiliate: z.ZodString;
12
- notificationToken: z.ZodOptional<z.ZodString>;
13
- token: z.ZodOptional<z.ZodString>;
14
- prevId: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
15
- phoneNumber: z.ZodOptional<z.ZodString>;
16
- countryDialCode: z.ZodOptional<z.ZodString>;
12
+ notificationToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ prevId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
15
+ phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ countryDialCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  wallet: z.ZodObject<{
18
18
  profit: z.ZodNumber;
19
19
  revenue: z.ZodNumber;
@@ -29,7 +29,7 @@ export declare const UserSchema: z.ZodObject<{
29
29
  }>;
30
30
  isPro: z.ZodBoolean;
31
31
  isShop: z.ZodBoolean;
32
- customers: z.ZodOptional<z.ZodArray<z.ZodObject<{
32
+ customers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
33
33
  id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
34
34
  userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
35
35
  firstName: z.ZodString;
@@ -41,8 +41,8 @@ export declare const UserSchema: z.ZodObject<{
41
41
  iban: z.ZodString;
42
42
  bic: z.ZodString;
43
43
  phoneVerified: z.ZodBoolean;
44
- createdAt: z.ZodOptional<z.ZodDate>;
45
- items: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
44
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
45
+ items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodAny, "many">>>;
46
46
  }, "strip", z.ZodTypeAny, {
47
47
  id: string | number;
48
48
  userId: string | number;
@@ -55,8 +55,8 @@ export declare const UserSchema: z.ZodObject<{
55
55
  iban: string;
56
56
  bic: string;
57
57
  phoneVerified: boolean;
58
- items?: any[] | undefined;
59
- createdAt?: Date | undefined;
58
+ items?: any[] | null | undefined;
59
+ createdAt?: Date | null | undefined;
60
60
  }, {
61
61
  id: string | number;
62
62
  userId: string | number;
@@ -69,10 +69,10 @@ export declare const UserSchema: z.ZodObject<{
69
69
  iban: string;
70
70
  bic: string;
71
71
  phoneVerified: boolean;
72
- items?: any[] | undefined;
73
- createdAt?: Date | undefined;
74
- }>, "many">>;
75
- fields: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodObject<{
72
+ items?: any[] | null | undefined;
73
+ createdAt?: Date | null | undefined;
74
+ }>, "many">>>;
75
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodObject<{
76
76
  name: z.ZodString;
77
77
  defaultValue: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
78
78
  }, "strip", z.ZodTypeAny, {
@@ -81,7 +81,7 @@ export declare const UserSchema: z.ZodObject<{
81
81
  }, {
82
82
  name: string;
83
83
  defaultValue: string | number;
84
- }>]>, "many">>;
84
+ }>]>, "many">>>;
85
85
  createdAt: z.ZodDate;
86
86
  updatedAt: z.ZodDate;
87
87
  }, "strip", z.ZodTypeAny, {
@@ -99,14 +99,14 @@ export declare const UserSchema: z.ZodObject<{
99
99
  isPro: boolean;
100
100
  isShop: boolean;
101
101
  updatedAt: Date;
102
- firstName?: string | undefined;
103
- email?: string | undefined;
104
- password?: string | undefined;
105
- notificationToken?: string | undefined;
106
- token?: string | undefined;
107
- prevId?: string | number | undefined;
108
- phoneNumber?: string | undefined;
109
- countryDialCode?: string | undefined;
102
+ firstName?: string | null | undefined;
103
+ email?: string | null | undefined;
104
+ password?: string | null | undefined;
105
+ notificationToken?: string | null | undefined;
106
+ token?: string | null | undefined;
107
+ prevId?: string | number | null | undefined;
108
+ phoneNumber?: string | null | undefined;
109
+ countryDialCode?: string | null | undefined;
110
110
  customers?: {
111
111
  id: string | number;
112
112
  userId: string | number;
@@ -119,13 +119,13 @@ export declare const UserSchema: z.ZodObject<{
119
119
  iban: string;
120
120
  bic: string;
121
121
  phoneVerified: boolean;
122
- items?: any[] | undefined;
123
- createdAt?: Date | undefined;
124
- }[] | undefined;
122
+ items?: any[] | null | undefined;
123
+ createdAt?: Date | null | undefined;
124
+ }[] | null | undefined;
125
125
  fields?: (string | number | {
126
126
  name: string;
127
127
  defaultValue: string | number;
128
- })[] | undefined;
128
+ })[] | null | undefined;
129
129
  }, {
130
130
  id: string | number;
131
131
  createdAt: Date;
@@ -141,14 +141,14 @@ export declare const UserSchema: z.ZodObject<{
141
141
  isPro: boolean;
142
142
  isShop: boolean;
143
143
  updatedAt: Date;
144
- firstName?: string | undefined;
145
- email?: string | undefined;
146
- password?: string | undefined;
147
- notificationToken?: string | undefined;
148
- token?: string | undefined;
149
- prevId?: string | number | undefined;
150
- phoneNumber?: string | undefined;
151
- countryDialCode?: string | undefined;
144
+ firstName?: string | null | undefined;
145
+ email?: string | null | undefined;
146
+ password?: string | null | undefined;
147
+ notificationToken?: string | null | undefined;
148
+ token?: string | null | undefined;
149
+ prevId?: string | number | null | undefined;
150
+ phoneNumber?: string | null | undefined;
151
+ countryDialCode?: string | null | undefined;
152
152
  customers?: {
153
153
  id: string | number;
154
154
  userId: string | number;
@@ -161,12 +161,12 @@ export declare const UserSchema: z.ZodObject<{
161
161
  iban: string;
162
162
  bic: string;
163
163
  phoneVerified: boolean;
164
- items?: any[] | undefined;
165
- createdAt?: Date | undefined;
166
- }[] | undefined;
164
+ items?: any[] | null | undefined;
165
+ createdAt?: Date | null | undefined;
166
+ }[] | null | undefined;
167
167
  fields?: (string | number | {
168
168
  name: string;
169
169
  defaultValue: string | number;
170
- })[] | undefined;
170
+ })[] | null | undefined;
171
171
  }>;
172
172
  export type User = z.infer<typeof UserSchema>;
@@ -12,23 +12,23 @@ exports.UserMembershipSchema = zod_1.z.enum([
12
12
  ]);
13
13
  exports.UserSchema = (0, legacy_1.legacy)(zod_1.z.object({
14
14
  id: primitives_1.IdSchema,
15
- email: zod_1.z.string().optional(),
15
+ email: zod_1.z.string().nullish(),
16
16
  username: zod_1.z.string(),
17
- firstName: zod_1.z.string().optional(),
18
- password: zod_1.z.string().optional(),
17
+ firstName: zod_1.z.string().nullish(),
18
+ password: zod_1.z.string().nullish(),
19
19
  anonymous: zod_1.z.boolean(),
20
20
  membership: zod_1.z.string(),
21
21
  affiliate: zod_1.z.string(),
22
- notificationToken: zod_1.z.string().optional(),
23
- token: zod_1.z.string().optional(),
24
- prevId: primitives_1.IdSchema.optional(),
25
- phoneNumber: zod_1.z.string().optional(),
26
- countryDialCode: zod_1.z.string().optional(),
22
+ notificationToken: zod_1.z.string().nullish(),
23
+ token: zod_1.z.string().nullish(),
24
+ prevId: primitives_1.IdSchema.nullish(),
25
+ phoneNumber: zod_1.z.string().nullish(),
26
+ countryDialCode: zod_1.z.string().nullish(),
27
27
  wallet: wallet_1.WalletSchema,
28
28
  isPro: zod_1.z.boolean(),
29
29
  isShop: zod_1.z.boolean(),
30
- customers: zod_1.z.array(customer_1.CustomerSchema).optional(),
31
- fields: zod_1.z.array(customField_1.CustomFieldIdSchema).optional(),
30
+ customers: zod_1.z.array(customer_1.CustomerSchema).nullish(),
31
+ fields: zod_1.z.array(customField_1.CustomFieldIdSchema).nullish(),
32
32
  createdAt: zod_1.z.coerce.date(),
33
33
  updatedAt: zod_1.z.coerce.date(),
34
34
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "controlresell",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "module": "dist/index.js",