erpnext-queue-client 1.21.3 → 1.22.0
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.
|
@@ -149,24 +149,100 @@ export declare const UpdateInternalReasonCollectionInput: z.ZodArray<z.ZodObject
|
|
|
149
149
|
}, {
|
|
150
150
|
internal_reason: string;
|
|
151
151
|
}>, "many">;
|
|
152
|
-
export declare const
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
152
|
+
export declare const ReturnItemBase: z.ZodObject<{
|
|
153
|
+
item: z.ZodString;
|
|
154
|
+
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
155
|
+
return_quantity: z.ZodNumber;
|
|
156
|
+
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
157
|
+
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
158
|
+
is_complaint: z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>;
|
|
159
|
+
servicecase_reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
160
|
+
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
161
|
+
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
162
|
+
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
163
|
+
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
item: string;
|
|
165
|
+
return_quantity: number;
|
|
166
|
+
is_complaint: boolean;
|
|
167
|
+
line_item_id?: string | null | undefined;
|
|
168
|
+
total_price?: number | null | undefined;
|
|
169
|
+
return_fee?: number | null | undefined;
|
|
170
|
+
servicecase_reason?: string | null | undefined;
|
|
171
|
+
servicecase_solution?: string | null | undefined;
|
|
172
|
+
batch_number?: string | null | undefined;
|
|
173
|
+
complaint_description?: string | null | undefined;
|
|
174
|
+
}, {
|
|
175
|
+
item: string;
|
|
176
|
+
return_quantity: number;
|
|
177
|
+
line_item_id?: string | null | undefined;
|
|
178
|
+
total_price?: number | null | undefined;
|
|
179
|
+
return_fee?: number | null | undefined;
|
|
180
|
+
is_complaint?: unknown;
|
|
181
|
+
servicecase_reason?: string | null | undefined;
|
|
182
|
+
servicecase_solution?: string | null | undefined;
|
|
183
|
+
batch_number?: string | null | undefined;
|
|
184
|
+
complaint_description?: string | null | undefined;
|
|
185
|
+
}>;
|
|
186
|
+
export declare const ReturnItemInput: z.ZodObject<{
|
|
159
187
|
item: z.ZodString;
|
|
160
188
|
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
161
189
|
return_quantity: z.ZodNumber;
|
|
162
190
|
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
163
191
|
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
164
|
-
is_complaint: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
192
|
+
is_complaint: z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>;
|
|
165
193
|
servicecase_reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
166
194
|
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
167
195
|
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
196
|
+
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
197
|
+
} & {
|
|
168
198
|
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
199
|
+
attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
200
|
+
}, "strip", z.ZodTypeAny, {
|
|
201
|
+
item: string;
|
|
202
|
+
return_quantity: number;
|
|
203
|
+
is_complaint: boolean;
|
|
204
|
+
attachments?: string | null | undefined;
|
|
205
|
+
internal_reasons?: string | null | undefined;
|
|
206
|
+
line_item_id?: string | null | undefined;
|
|
207
|
+
total_price?: number | null | undefined;
|
|
208
|
+
return_fee?: number | null | undefined;
|
|
209
|
+
servicecase_reason?: string | null | undefined;
|
|
210
|
+
servicecase_solution?: string | null | undefined;
|
|
211
|
+
batch_number?: string | null | undefined;
|
|
212
|
+
complaint_description?: string | null | undefined;
|
|
213
|
+
}, {
|
|
214
|
+
item: string;
|
|
215
|
+
return_quantity: number;
|
|
216
|
+
attachments?: string | null | undefined;
|
|
217
|
+
internal_reasons?: string | null | undefined;
|
|
218
|
+
line_item_id?: string | null | undefined;
|
|
219
|
+
total_price?: number | null | undefined;
|
|
220
|
+
return_fee?: number | null | undefined;
|
|
221
|
+
is_complaint?: unknown;
|
|
222
|
+
servicecase_reason?: string | null | undefined;
|
|
223
|
+
servicecase_solution?: string | null | undefined;
|
|
224
|
+
batch_number?: string | null | undefined;
|
|
225
|
+
complaint_description?: string | null | undefined;
|
|
226
|
+
}>;
|
|
227
|
+
export declare const ReturnItem: z.ZodObject<{
|
|
228
|
+
item: z.ZodString;
|
|
229
|
+
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
230
|
+
return_quantity: z.ZodNumber;
|
|
231
|
+
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
232
|
+
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
233
|
+
is_complaint: z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>;
|
|
234
|
+
servicecase_reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
235
|
+
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
236
|
+
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
169
237
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
238
|
+
} & {
|
|
239
|
+
name: z.ZodString;
|
|
240
|
+
owner: z.ZodString;
|
|
241
|
+
creation: z.ZodString;
|
|
242
|
+
modified: z.ZodString;
|
|
243
|
+
modified_by: z.ZodString;
|
|
244
|
+
idx: z.ZodNumber;
|
|
245
|
+
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
170
246
|
attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
171
247
|
}, "strip", z.ZodTypeAny, {
|
|
172
248
|
name: string;
|
|
@@ -196,23 +272,83 @@ export declare const ReturnItem: z.ZodObject<{
|
|
|
196
272
|
idx: number;
|
|
197
273
|
item: string;
|
|
198
274
|
return_quantity: number;
|
|
199
|
-
is_complaint: number;
|
|
200
275
|
attachments?: string | null | undefined;
|
|
201
276
|
internal_reasons?: string | null | undefined;
|
|
202
277
|
line_item_id?: string | null | undefined;
|
|
203
278
|
total_price?: number | null | undefined;
|
|
204
279
|
return_fee?: number | null | undefined;
|
|
280
|
+
is_complaint?: unknown;
|
|
205
281
|
servicecase_reason?: string | null | undefined;
|
|
206
282
|
servicecase_solution?: string | null | undefined;
|
|
207
283
|
batch_number?: string | null | undefined;
|
|
208
284
|
complaint_description?: string | null | undefined;
|
|
209
285
|
}>;
|
|
210
|
-
export declare const
|
|
286
|
+
export declare const ReturnItemExtended: z.ZodObject<{
|
|
287
|
+
item: z.ZodString;
|
|
288
|
+
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
289
|
+
return_quantity: z.ZodNumber;
|
|
290
|
+
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
291
|
+
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
292
|
+
is_complaint: z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>;
|
|
293
|
+
servicecase_reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
294
|
+
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
295
|
+
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
296
|
+
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
297
|
+
} & {
|
|
211
298
|
name: z.ZodString;
|
|
212
299
|
owner: z.ZodString;
|
|
213
300
|
creation: z.ZodString;
|
|
214
301
|
modified: z.ZodString;
|
|
215
302
|
modified_by: z.ZodString;
|
|
303
|
+
idx: z.ZodNumber;
|
|
304
|
+
attachments: z.ZodArray<z.ZodString, "many">;
|
|
305
|
+
attachments_collection_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
306
|
+
internal_reasons: z.ZodArray<z.ZodString, "many">;
|
|
307
|
+
internal_reasons_collection_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
308
|
+
}, "strip", z.ZodTypeAny, {
|
|
309
|
+
name: string;
|
|
310
|
+
owner: string;
|
|
311
|
+
creation: string;
|
|
312
|
+
modified: string;
|
|
313
|
+
modified_by: string;
|
|
314
|
+
idx: number;
|
|
315
|
+
attachments: string[];
|
|
316
|
+
internal_reasons: string[];
|
|
317
|
+
item: string;
|
|
318
|
+
return_quantity: number;
|
|
319
|
+
is_complaint: boolean;
|
|
320
|
+
line_item_id?: string | null | undefined;
|
|
321
|
+
total_price?: number | null | undefined;
|
|
322
|
+
return_fee?: number | null | undefined;
|
|
323
|
+
servicecase_reason?: string | null | undefined;
|
|
324
|
+
servicecase_solution?: string | null | undefined;
|
|
325
|
+
batch_number?: string | null | undefined;
|
|
326
|
+
complaint_description?: string | null | undefined;
|
|
327
|
+
attachments_collection_name?: string | null | undefined;
|
|
328
|
+
internal_reasons_collection_name?: string | null | undefined;
|
|
329
|
+
}, {
|
|
330
|
+
name: string;
|
|
331
|
+
owner: string;
|
|
332
|
+
creation: string;
|
|
333
|
+
modified: string;
|
|
334
|
+
modified_by: string;
|
|
335
|
+
idx: number;
|
|
336
|
+
attachments: string[];
|
|
337
|
+
internal_reasons: string[];
|
|
338
|
+
item: string;
|
|
339
|
+
return_quantity: number;
|
|
340
|
+
line_item_id?: string | null | undefined;
|
|
341
|
+
total_price?: number | null | undefined;
|
|
342
|
+
return_fee?: number | null | undefined;
|
|
343
|
+
is_complaint?: unknown;
|
|
344
|
+
servicecase_reason?: string | null | undefined;
|
|
345
|
+
servicecase_solution?: string | null | undefined;
|
|
346
|
+
batch_number?: string | null | undefined;
|
|
347
|
+
complaint_description?: string | null | undefined;
|
|
348
|
+
attachments_collection_name?: string | null | undefined;
|
|
349
|
+
internal_reasons_collection_name?: string | null | undefined;
|
|
350
|
+
}>;
|
|
351
|
+
export declare const Servicecase: z.ZodObject<{
|
|
216
352
|
title: z.ZodString;
|
|
217
353
|
order_number: z.ZodString;
|
|
218
354
|
external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -220,30 +356,37 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
220
356
|
customer_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
221
357
|
status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTING", "VALIDATING", "REJECTED", "SHIPPING", "COMPLETED"]>>;
|
|
222
358
|
complaint_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
223
|
-
is_sent_to_client: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, boolean, number>>>;
|
|
224
|
-
is_sent_to_cc: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, boolean, number>>>;
|
|
359
|
+
is_sent_to_client: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>>>;
|
|
360
|
+
is_sent_to_cc: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>>>;
|
|
225
361
|
customer_message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
226
362
|
agreed_terms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
227
363
|
created_with: z.ZodDefault<z.ZodEnum<["Serviceportal", "Missive Sidebar", "Amazon FBA", "Amazon FBM"]>>;
|
|
228
364
|
country: z.ZodEnum<["Afghanistan", "Åland Islands", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia, Plurinational State of", "Bonaire, Sint Eustatius and Saba", "Bosnia and Herzegovina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, The Democratic Republic of the", "Cook Islands", "Costa Rica", "Croatia", "Cuba", "Curaçao", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Islands (Malvinas)", "Faroe Islands", "Fiji", "Finland", "France", "French Guiana", "French Polynesia", "French Southern Territories", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Gibraltar", "Greece", "Greenland", "Grenada", "Guadeloupe", "Guam", "Guatemala", "Guernsey", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Heard Island and McDonald Islands", "Holy See (Vatican City State)", "Honduras", "Hong Kong", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Isle of Man", "Israel", "Italy", "Ivory Coast", "Jamaica", "Japan", "Jersey", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, Democratic Peoples Republic of", "Korea, Republic of", "Kuwait", "Kyrgyzstan", "Lao Peoples Democratic Republic", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macao", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Martinique", "Mauritania", "Mauritius", "Mayotte", "Mexico", "Micronesia, Federated States of", "Moldova, Republic of", "Monaco", "Mongolia", "Montenegro", "Montserrat", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "New Caledonia", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Niue", "Norfolk Island", "Northern Mariana Islands", "Norway", "Oman", "Pakistan", "Palau", "Palestinian Territory, Occupied", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Pitcairn", "Poland", "Portugal", "Puerto Rico", "Qatar", "Réunion", "Romania", "Russian Federation", "Rwanda", "Saint Barthélemy", "Saint Helena, Ascension and Tristan da Cunha", "Saint Kitts and Nevis", "Saint Lucia", "Saint Martin (French part)", "Saint Pierre and Miquelon", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia", "Seychelles", "Sierra Leone", "Singapore", "Sint Maarten (Dutch part)", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Georgia and the South Sandwich Islands", "South Sudan", "Spain", "Sri Lanka", "Sudan", "Suriname", "Svalbard and Jan Mayen", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", "Tajikistan", "Tanzania", "Thailand", "Timor-Leste", "Togo", "Tokelau", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Turks and Caicos Islands", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "United States Minor Outlying Islands", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela, Bolivarian Republic of", "Vietnam", "Virgin Islands, British", "Virgin Islands, U.S.", "Wallis and Futuna", "Western Sahara", "Yemen", "Zambia", "Zimbabwe"]>;
|
|
365
|
+
} & {
|
|
366
|
+
name: z.ZodString;
|
|
367
|
+
owner: z.ZodString;
|
|
368
|
+
creation: z.ZodString;
|
|
369
|
+
modified: z.ZodString;
|
|
370
|
+
modified_by: z.ZodString;
|
|
229
371
|
return_items: z.ZodArray<z.ZodObject<{
|
|
230
|
-
name: z.ZodString;
|
|
231
|
-
owner: z.ZodString;
|
|
232
|
-
creation: z.ZodString;
|
|
233
|
-
modified: z.ZodString;
|
|
234
|
-
modified_by: z.ZodString;
|
|
235
|
-
idx: z.ZodNumber;
|
|
236
372
|
item: z.ZodString;
|
|
237
373
|
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
238
374
|
return_quantity: z.ZodNumber;
|
|
239
375
|
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
240
376
|
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
241
|
-
is_complaint: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
377
|
+
is_complaint: z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>;
|
|
242
378
|
servicecase_reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
243
379
|
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
244
380
|
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
245
|
-
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
246
381
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
382
|
+
} & {
|
|
383
|
+
name: z.ZodString;
|
|
384
|
+
owner: z.ZodString;
|
|
385
|
+
creation: z.ZodString;
|
|
386
|
+
modified: z.ZodString;
|
|
387
|
+
modified_by: z.ZodString;
|
|
388
|
+
idx: z.ZodNumber;
|
|
389
|
+
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
247
390
|
attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
248
391
|
}, "strip", z.ZodTypeAny, {
|
|
249
392
|
name: string;
|
|
@@ -273,12 +416,12 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
273
416
|
idx: number;
|
|
274
417
|
item: string;
|
|
275
418
|
return_quantity: number;
|
|
276
|
-
is_complaint: number;
|
|
277
419
|
attachments?: string | null | undefined;
|
|
278
420
|
internal_reasons?: string | null | undefined;
|
|
279
421
|
line_item_id?: string | null | undefined;
|
|
280
422
|
total_price?: number | null | undefined;
|
|
281
423
|
return_fee?: number | null | undefined;
|
|
424
|
+
is_complaint?: unknown;
|
|
282
425
|
servicecase_reason?: string | null | undefined;
|
|
283
426
|
servicecase_solution?: string | null | undefined;
|
|
284
427
|
batch_number?: string | null | undefined;
|
|
@@ -342,12 +485,12 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
342
485
|
idx: number;
|
|
343
486
|
item: string;
|
|
344
487
|
return_quantity: number;
|
|
345
|
-
is_complaint: number;
|
|
346
488
|
attachments?: string | null | undefined;
|
|
347
489
|
internal_reasons?: string | null | undefined;
|
|
348
490
|
line_item_id?: string | null | undefined;
|
|
349
491
|
total_price?: number | null | undefined;
|
|
350
492
|
return_fee?: number | null | undefined;
|
|
493
|
+
is_complaint?: unknown;
|
|
351
494
|
servicecase_reason?: string | null | undefined;
|
|
352
495
|
servicecase_solution?: string | null | undefined;
|
|
353
496
|
batch_number?: string | null | undefined;
|
|
@@ -357,18 +500,14 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
357
500
|
external_id?: string | null | undefined;
|
|
358
501
|
customer_email?: string | null | undefined;
|
|
359
502
|
complaint_date?: string | null | undefined;
|
|
360
|
-
is_sent_to_client?:
|
|
361
|
-
is_sent_to_cc?:
|
|
503
|
+
is_sent_to_client?: unknown;
|
|
504
|
+
is_sent_to_cc?: unknown;
|
|
362
505
|
customer_message?: string | null | undefined;
|
|
363
506
|
agreed_terms?: string | null | undefined;
|
|
364
507
|
created_with?: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar" | undefined;
|
|
365
508
|
}>;
|
|
366
|
-
export
|
|
367
|
-
|
|
368
|
-
owner: z.ZodString;
|
|
369
|
-
creation: z.ZodString;
|
|
370
|
-
modified: z.ZodString;
|
|
371
|
-
modified_by: z.ZodString;
|
|
509
|
+
export type ServicecaseType = z.infer<typeof Servicecase>;
|
|
510
|
+
export declare const ServicecaseInput: z.ZodObject<{
|
|
372
511
|
title: z.ZodString;
|
|
373
512
|
order_number: z.ZodString;
|
|
374
513
|
external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -376,98 +515,31 @@ export declare const ServicecaseInput: z.ZodObject<Omit<{
|
|
|
376
515
|
customer_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
377
516
|
status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTING", "VALIDATING", "REJECTED", "SHIPPING", "COMPLETED"]>>;
|
|
378
517
|
complaint_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
379
|
-
is_sent_to_client: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, boolean, number>>>;
|
|
380
|
-
is_sent_to_cc: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, boolean, number>>>;
|
|
518
|
+
is_sent_to_client: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>>>;
|
|
519
|
+
is_sent_to_cc: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>>>;
|
|
381
520
|
customer_message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
382
521
|
agreed_terms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
383
522
|
created_with: z.ZodDefault<z.ZodEnum<["Serviceportal", "Missive Sidebar", "Amazon FBA", "Amazon FBM"]>>;
|
|
384
523
|
country: z.ZodEnum<["Afghanistan", "Åland Islands", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia, Plurinational State of", "Bonaire, Sint Eustatius and Saba", "Bosnia and Herzegovina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, The Democratic Republic of the", "Cook Islands", "Costa Rica", "Croatia", "Cuba", "Curaçao", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Islands (Malvinas)", "Faroe Islands", "Fiji", "Finland", "France", "French Guiana", "French Polynesia", "French Southern Territories", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Gibraltar", "Greece", "Greenland", "Grenada", "Guadeloupe", "Guam", "Guatemala", "Guernsey", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Heard Island and McDonald Islands", "Holy See (Vatican City State)", "Honduras", "Hong Kong", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Isle of Man", "Israel", "Italy", "Ivory Coast", "Jamaica", "Japan", "Jersey", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, Democratic Peoples Republic of", "Korea, Republic of", "Kuwait", "Kyrgyzstan", "Lao Peoples Democratic Republic", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macao", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Martinique", "Mauritania", "Mauritius", "Mayotte", "Mexico", "Micronesia, Federated States of", "Moldova, Republic of", "Monaco", "Mongolia", "Montenegro", "Montserrat", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "New Caledonia", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Niue", "Norfolk Island", "Northern Mariana Islands", "Norway", "Oman", "Pakistan", "Palau", "Palestinian Territory, Occupied", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Pitcairn", "Poland", "Portugal", "Puerto Rico", "Qatar", "Réunion", "Romania", "Russian Federation", "Rwanda", "Saint Barthélemy", "Saint Helena, Ascension and Tristan da Cunha", "Saint Kitts and Nevis", "Saint Lucia", "Saint Martin (French part)", "Saint Pierre and Miquelon", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia", "Seychelles", "Sierra Leone", "Singapore", "Sint Maarten (Dutch part)", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Georgia and the South Sandwich Islands", "South Sudan", "Spain", "Sri Lanka", "Sudan", "Suriname", "Svalbard and Jan Mayen", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", "Tajikistan", "Tanzania", "Thailand", "Timor-Leste", "Togo", "Tokelau", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Turks and Caicos Islands", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "United States Minor Outlying Islands", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela, Bolivarian Republic of", "Vietnam", "Virgin Islands, British", "Virgin Islands, U.S.", "Wallis and Futuna", "Western Sahara", "Yemen", "Zambia", "Zimbabwe"]>;
|
|
524
|
+
} & {
|
|
385
525
|
return_items: z.ZodArray<z.ZodObject<{
|
|
386
|
-
name: z.ZodString;
|
|
387
|
-
owner: z.ZodString;
|
|
388
|
-
creation: z.ZodString;
|
|
389
|
-
modified: z.ZodString;
|
|
390
|
-
modified_by: z.ZodString;
|
|
391
|
-
idx: z.ZodNumber;
|
|
392
526
|
item: z.ZodString;
|
|
393
527
|
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
394
528
|
return_quantity: z.ZodNumber;
|
|
395
529
|
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
396
530
|
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
397
|
-
is_complaint: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
531
|
+
is_complaint: z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>;
|
|
398
532
|
servicecase_reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
399
533
|
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
400
534
|
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
401
|
-
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
402
535
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
403
|
-
|
|
404
|
-
}, "strip", z.ZodTypeAny, {
|
|
405
|
-
name: string;
|
|
406
|
-
owner: string;
|
|
407
|
-
creation: string;
|
|
408
|
-
modified: string;
|
|
409
|
-
modified_by: string;
|
|
410
|
-
idx: number;
|
|
411
|
-
item: string;
|
|
412
|
-
return_quantity: number;
|
|
413
|
-
is_complaint: boolean;
|
|
414
|
-
attachments?: string | null | undefined;
|
|
415
|
-
internal_reasons?: string | null | undefined;
|
|
416
|
-
line_item_id?: string | null | undefined;
|
|
417
|
-
total_price?: number | null | undefined;
|
|
418
|
-
return_fee?: number | null | undefined;
|
|
419
|
-
servicecase_reason?: string | null | undefined;
|
|
420
|
-
servicecase_solution?: string | null | undefined;
|
|
421
|
-
batch_number?: string | null | undefined;
|
|
422
|
-
complaint_description?: string | null | undefined;
|
|
423
|
-
}, {
|
|
424
|
-
name: string;
|
|
425
|
-
owner: string;
|
|
426
|
-
creation: string;
|
|
427
|
-
modified: string;
|
|
428
|
-
modified_by: string;
|
|
429
|
-
idx: number;
|
|
430
|
-
item: string;
|
|
431
|
-
return_quantity: number;
|
|
432
|
-
is_complaint: number;
|
|
433
|
-
attachments?: string | null | undefined;
|
|
434
|
-
internal_reasons?: string | null | undefined;
|
|
435
|
-
line_item_id?: string | null | undefined;
|
|
436
|
-
total_price?: number | null | undefined;
|
|
437
|
-
return_fee?: number | null | undefined;
|
|
438
|
-
servicecase_reason?: string | null | undefined;
|
|
439
|
-
servicecase_solution?: string | null | undefined;
|
|
440
|
-
batch_number?: string | null | undefined;
|
|
441
|
-
complaint_description?: string | null | undefined;
|
|
442
|
-
}>, "many">;
|
|
443
|
-
}, "name" | "owner" | "creation" | "modified" | "modified_by" | "is_sent_to_client" | "is_sent_to_cc" | "return_items"> & {
|
|
444
|
-
is_sent_to_client: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
445
|
-
is_sent_to_cc: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
446
|
-
return_items: z.ZodArray<z.ZodObject<Omit<{
|
|
447
|
-
name: z.ZodString;
|
|
448
|
-
owner: z.ZodString;
|
|
449
|
-
creation: z.ZodString;
|
|
450
|
-
modified: z.ZodString;
|
|
451
|
-
modified_by: z.ZodString;
|
|
452
|
-
idx: z.ZodNumber;
|
|
453
|
-
item: z.ZodString;
|
|
454
|
-
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
455
|
-
return_quantity: z.ZodNumber;
|
|
456
|
-
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
457
|
-
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
458
|
-
is_complaint: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
459
|
-
servicecase_reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
460
|
-
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
461
|
-
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
536
|
+
} & {
|
|
462
537
|
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
463
|
-
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
464
538
|
attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
465
|
-
}, "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "is_complaint"> & {
|
|
466
|
-
is_complaint: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
467
539
|
}, "strip", z.ZodTypeAny, {
|
|
468
540
|
item: string;
|
|
469
541
|
return_quantity: number;
|
|
470
|
-
is_complaint:
|
|
542
|
+
is_complaint: boolean;
|
|
471
543
|
attachments?: string | null | undefined;
|
|
472
544
|
internal_reasons?: string | null | undefined;
|
|
473
545
|
line_item_id?: string | null | undefined;
|
|
@@ -501,7 +573,7 @@ export declare const ServicecaseInput: z.ZodObject<Omit<{
|
|
|
501
573
|
return_items: {
|
|
502
574
|
item: string;
|
|
503
575
|
return_quantity: number;
|
|
504
|
-
is_complaint:
|
|
576
|
+
is_complaint: boolean;
|
|
505
577
|
attachments?: string | null | undefined;
|
|
506
578
|
internal_reasons?: string | null | undefined;
|
|
507
579
|
line_item_id?: string | null | undefined;
|
|
@@ -515,8 +587,8 @@ export declare const ServicecaseInput: z.ZodObject<Omit<{
|
|
|
515
587
|
external_id?: string | null | undefined;
|
|
516
588
|
customer_email?: string | null | undefined;
|
|
517
589
|
complaint_date?: string | null | undefined;
|
|
518
|
-
is_sent_to_client?:
|
|
519
|
-
is_sent_to_cc?:
|
|
590
|
+
is_sent_to_client?: boolean | null | undefined;
|
|
591
|
+
is_sent_to_cc?: boolean | null | undefined;
|
|
520
592
|
customer_message?: string | null | undefined;
|
|
521
593
|
agreed_terms?: string | null | undefined;
|
|
522
594
|
}, {
|
|
@@ -542,18 +614,14 @@ export declare const ServicecaseInput: z.ZodObject<Omit<{
|
|
|
542
614
|
external_id?: string | null | undefined;
|
|
543
615
|
customer_email?: string | null | undefined;
|
|
544
616
|
complaint_date?: string | null | undefined;
|
|
545
|
-
is_sent_to_client?:
|
|
546
|
-
is_sent_to_cc?:
|
|
617
|
+
is_sent_to_client?: unknown;
|
|
618
|
+
is_sent_to_cc?: unknown;
|
|
547
619
|
customer_message?: string | null | undefined;
|
|
548
620
|
agreed_terms?: string | null | undefined;
|
|
549
621
|
created_with?: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar" | undefined;
|
|
550
622
|
}>;
|
|
551
|
-
export
|
|
552
|
-
|
|
553
|
-
owner: z.ZodString;
|
|
554
|
-
creation: z.ZodString;
|
|
555
|
-
modified: z.ZodString;
|
|
556
|
-
modified_by: z.ZodString;
|
|
623
|
+
export type ServicecaseInputType = z.infer<typeof ServicecaseInput>;
|
|
624
|
+
export declare const ServicecaseExtended: z.ZodObject<{
|
|
557
625
|
title: z.ZodString;
|
|
558
626
|
order_number: z.ZodString;
|
|
559
627
|
external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -561,91 +629,36 @@ export declare const ServicecaseExtended: z.ZodObject<Omit<{
|
|
|
561
629
|
customer_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
562
630
|
status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTING", "VALIDATING", "REJECTED", "SHIPPING", "COMPLETED"]>>;
|
|
563
631
|
complaint_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
564
|
-
is_sent_to_client: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, boolean, number>>>;
|
|
565
|
-
is_sent_to_cc: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, boolean, number>>>;
|
|
632
|
+
is_sent_to_client: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>>>;
|
|
633
|
+
is_sent_to_cc: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>>>;
|
|
566
634
|
customer_message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
567
635
|
agreed_terms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
568
636
|
created_with: z.ZodDefault<z.ZodEnum<["Serviceportal", "Missive Sidebar", "Amazon FBA", "Amazon FBM"]>>;
|
|
569
637
|
country: z.ZodEnum<["Afghanistan", "Åland Islands", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia, Plurinational State of", "Bonaire, Sint Eustatius and Saba", "Bosnia and Herzegovina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, The Democratic Republic of the", "Cook Islands", "Costa Rica", "Croatia", "Cuba", "Curaçao", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Islands (Malvinas)", "Faroe Islands", "Fiji", "Finland", "France", "French Guiana", "French Polynesia", "French Southern Territories", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Gibraltar", "Greece", "Greenland", "Grenada", "Guadeloupe", "Guam", "Guatemala", "Guernsey", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Heard Island and McDonald Islands", "Holy See (Vatican City State)", "Honduras", "Hong Kong", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Isle of Man", "Israel", "Italy", "Ivory Coast", "Jamaica", "Japan", "Jersey", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, Democratic Peoples Republic of", "Korea, Republic of", "Kuwait", "Kyrgyzstan", "Lao Peoples Democratic Republic", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macao", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Martinique", "Mauritania", "Mauritius", "Mayotte", "Mexico", "Micronesia, Federated States of", "Moldova, Republic of", "Monaco", "Mongolia", "Montenegro", "Montserrat", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "New Caledonia", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Niue", "Norfolk Island", "Northern Mariana Islands", "Norway", "Oman", "Pakistan", "Palau", "Palestinian Territory, Occupied", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Pitcairn", "Poland", "Portugal", "Puerto Rico", "Qatar", "Réunion", "Romania", "Russian Federation", "Rwanda", "Saint Barthélemy", "Saint Helena, Ascension and Tristan da Cunha", "Saint Kitts and Nevis", "Saint Lucia", "Saint Martin (French part)", "Saint Pierre and Miquelon", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia", "Seychelles", "Sierra Leone", "Singapore", "Sint Maarten (Dutch part)", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Georgia and the South Sandwich Islands", "South Sudan", "Spain", "Sri Lanka", "Sudan", "Suriname", "Svalbard and Jan Mayen", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", "Tajikistan", "Tanzania", "Thailand", "Timor-Leste", "Togo", "Tokelau", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Turks and Caicos Islands", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "United States Minor Outlying Islands", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela, Bolivarian Republic of", "Vietnam", "Virgin Islands, British", "Virgin Islands, U.S.", "Wallis and Futuna", "Western Sahara", "Yemen", "Zambia", "Zimbabwe"]>;
|
|
638
|
+
name: z.ZodString;
|
|
639
|
+
owner: z.ZodString;
|
|
640
|
+
creation: z.ZodString;
|
|
641
|
+
modified: z.ZodString;
|
|
642
|
+
modified_by: z.ZodString;
|
|
643
|
+
} & {
|
|
570
644
|
return_items: z.ZodArray<z.ZodObject<{
|
|
571
|
-
name: z.ZodString;
|
|
572
|
-
owner: z.ZodString;
|
|
573
|
-
creation: z.ZodString;
|
|
574
|
-
modified: z.ZodString;
|
|
575
|
-
modified_by: z.ZodString;
|
|
576
|
-
idx: z.ZodNumber;
|
|
577
645
|
item: z.ZodString;
|
|
578
646
|
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
579
647
|
return_quantity: z.ZodNumber;
|
|
580
648
|
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
581
649
|
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
582
|
-
is_complaint: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
650
|
+
is_complaint: z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>;
|
|
583
651
|
servicecase_reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
584
652
|
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
585
653
|
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
586
|
-
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
587
654
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
588
|
-
|
|
589
|
-
}, "strip", z.ZodTypeAny, {
|
|
590
|
-
name: string;
|
|
591
|
-
owner: string;
|
|
592
|
-
creation: string;
|
|
593
|
-
modified: string;
|
|
594
|
-
modified_by: string;
|
|
595
|
-
idx: number;
|
|
596
|
-
item: string;
|
|
597
|
-
return_quantity: number;
|
|
598
|
-
is_complaint: boolean;
|
|
599
|
-
attachments?: string | null | undefined;
|
|
600
|
-
internal_reasons?: string | null | undefined;
|
|
601
|
-
line_item_id?: string | null | undefined;
|
|
602
|
-
total_price?: number | null | undefined;
|
|
603
|
-
return_fee?: number | null | undefined;
|
|
604
|
-
servicecase_reason?: string | null | undefined;
|
|
605
|
-
servicecase_solution?: string | null | undefined;
|
|
606
|
-
batch_number?: string | null | undefined;
|
|
607
|
-
complaint_description?: string | null | undefined;
|
|
608
|
-
}, {
|
|
609
|
-
name: string;
|
|
610
|
-
owner: string;
|
|
611
|
-
creation: string;
|
|
612
|
-
modified: string;
|
|
613
|
-
modified_by: string;
|
|
614
|
-
idx: number;
|
|
615
|
-
item: string;
|
|
616
|
-
return_quantity: number;
|
|
617
|
-
is_complaint: number;
|
|
618
|
-
attachments?: string | null | undefined;
|
|
619
|
-
internal_reasons?: string | null | undefined;
|
|
620
|
-
line_item_id?: string | null | undefined;
|
|
621
|
-
total_price?: number | null | undefined;
|
|
622
|
-
return_fee?: number | null | undefined;
|
|
623
|
-
servicecase_reason?: string | null | undefined;
|
|
624
|
-
servicecase_solution?: string | null | undefined;
|
|
625
|
-
batch_number?: string | null | undefined;
|
|
626
|
-
complaint_description?: string | null | undefined;
|
|
627
|
-
}>, "many">;
|
|
628
|
-
}, "return_items"> & {
|
|
629
|
-
return_items: z.ZodArray<z.ZodObject<Omit<{
|
|
655
|
+
} & {
|
|
630
656
|
name: z.ZodString;
|
|
631
657
|
owner: z.ZodString;
|
|
632
658
|
creation: z.ZodString;
|
|
633
659
|
modified: z.ZodString;
|
|
634
660
|
modified_by: z.ZodString;
|
|
635
661
|
idx: z.ZodNumber;
|
|
636
|
-
item: z.ZodString;
|
|
637
|
-
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
638
|
-
return_quantity: z.ZodNumber;
|
|
639
|
-
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
640
|
-
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
641
|
-
is_complaint: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
642
|
-
servicecase_reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
643
|
-
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
644
|
-
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
645
|
-
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
646
|
-
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
647
|
-
attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
648
|
-
}, "attachments" | "internal_reasons"> & {
|
|
649
662
|
attachments: z.ZodArray<z.ZodString, "many">;
|
|
650
663
|
attachments_collection_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
651
664
|
internal_reasons: z.ZodArray<z.ZodString, "many">;
|
|
@@ -682,10 +695,10 @@ export declare const ServicecaseExtended: z.ZodObject<Omit<{
|
|
|
682
695
|
internal_reasons: string[];
|
|
683
696
|
item: string;
|
|
684
697
|
return_quantity: number;
|
|
685
|
-
is_complaint: number;
|
|
686
698
|
line_item_id?: string | null | undefined;
|
|
687
699
|
total_price?: number | null | undefined;
|
|
688
700
|
return_fee?: number | null | undefined;
|
|
701
|
+
is_complaint?: unknown;
|
|
689
702
|
servicecase_reason?: string | null | undefined;
|
|
690
703
|
servicecase_solution?: string | null | undefined;
|
|
691
704
|
batch_number?: string | null | undefined;
|
|
@@ -755,10 +768,10 @@ export declare const ServicecaseExtended: z.ZodObject<Omit<{
|
|
|
755
768
|
internal_reasons: string[];
|
|
756
769
|
item: string;
|
|
757
770
|
return_quantity: number;
|
|
758
|
-
is_complaint: number;
|
|
759
771
|
line_item_id?: string | null | undefined;
|
|
760
772
|
total_price?: number | null | undefined;
|
|
761
773
|
return_fee?: number | null | undefined;
|
|
774
|
+
is_complaint?: unknown;
|
|
762
775
|
servicecase_reason?: string | null | undefined;
|
|
763
776
|
servicecase_solution?: string | null | undefined;
|
|
764
777
|
batch_number?: string | null | undefined;
|
|
@@ -770,19 +783,14 @@ export declare const ServicecaseExtended: z.ZodObject<Omit<{
|
|
|
770
783
|
external_id?: string | null | undefined;
|
|
771
784
|
customer_email?: string | null | undefined;
|
|
772
785
|
complaint_date?: string | null | undefined;
|
|
773
|
-
is_sent_to_client?:
|
|
774
|
-
is_sent_to_cc?:
|
|
786
|
+
is_sent_to_client?: unknown;
|
|
787
|
+
is_sent_to_cc?: unknown;
|
|
775
788
|
customer_message?: string | null | undefined;
|
|
776
789
|
agreed_terms?: string | null | undefined;
|
|
777
790
|
created_with?: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar" | undefined;
|
|
778
791
|
}>;
|
|
779
792
|
export type ServicecaseExtendedType = z.infer<typeof ServicecaseExtended>;
|
|
780
|
-
export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<
|
|
781
|
-
name: z.ZodString;
|
|
782
|
-
owner: z.ZodString;
|
|
783
|
-
creation: z.ZodString;
|
|
784
|
-
modified: z.ZodString;
|
|
785
|
-
modified_by: z.ZodString;
|
|
793
|
+
export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
786
794
|
title: z.ZodString;
|
|
787
795
|
order_number: z.ZodString;
|
|
788
796
|
external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -790,91 +798,36 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<Omit<{
|
|
|
790
798
|
customer_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
791
799
|
status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTING", "VALIDATING", "REJECTED", "SHIPPING", "COMPLETED"]>>;
|
|
792
800
|
complaint_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
793
|
-
is_sent_to_client: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, boolean, number>>>;
|
|
794
|
-
is_sent_to_cc: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, boolean, number>>>;
|
|
801
|
+
is_sent_to_client: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>>>;
|
|
802
|
+
is_sent_to_cc: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>>>;
|
|
795
803
|
customer_message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
796
804
|
agreed_terms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
797
805
|
created_with: z.ZodDefault<z.ZodEnum<["Serviceportal", "Missive Sidebar", "Amazon FBA", "Amazon FBM"]>>;
|
|
798
806
|
country: z.ZodEnum<["Afghanistan", "Åland Islands", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia, Plurinational State of", "Bonaire, Sint Eustatius and Saba", "Bosnia and Herzegovina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, The Democratic Republic of the", "Cook Islands", "Costa Rica", "Croatia", "Cuba", "Curaçao", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Islands (Malvinas)", "Faroe Islands", "Fiji", "Finland", "France", "French Guiana", "French Polynesia", "French Southern Territories", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Gibraltar", "Greece", "Greenland", "Grenada", "Guadeloupe", "Guam", "Guatemala", "Guernsey", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Heard Island and McDonald Islands", "Holy See (Vatican City State)", "Honduras", "Hong Kong", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Isle of Man", "Israel", "Italy", "Ivory Coast", "Jamaica", "Japan", "Jersey", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, Democratic Peoples Republic of", "Korea, Republic of", "Kuwait", "Kyrgyzstan", "Lao Peoples Democratic Republic", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macao", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Martinique", "Mauritania", "Mauritius", "Mayotte", "Mexico", "Micronesia, Federated States of", "Moldova, Republic of", "Monaco", "Mongolia", "Montenegro", "Montserrat", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "New Caledonia", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Niue", "Norfolk Island", "Northern Mariana Islands", "Norway", "Oman", "Pakistan", "Palau", "Palestinian Territory, Occupied", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Pitcairn", "Poland", "Portugal", "Puerto Rico", "Qatar", "Réunion", "Romania", "Russian Federation", "Rwanda", "Saint Barthélemy", "Saint Helena, Ascension and Tristan da Cunha", "Saint Kitts and Nevis", "Saint Lucia", "Saint Martin (French part)", "Saint Pierre and Miquelon", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia", "Seychelles", "Sierra Leone", "Singapore", "Sint Maarten (Dutch part)", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Georgia and the South Sandwich Islands", "South Sudan", "Spain", "Sri Lanka", "Sudan", "Suriname", "Svalbard and Jan Mayen", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", "Tajikistan", "Tanzania", "Thailand", "Timor-Leste", "Togo", "Tokelau", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Turks and Caicos Islands", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "United States Minor Outlying Islands", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela, Bolivarian Republic of", "Vietnam", "Virgin Islands, British", "Virgin Islands, U.S.", "Wallis and Futuna", "Western Sahara", "Yemen", "Zambia", "Zimbabwe"]>;
|
|
807
|
+
name: z.ZodString;
|
|
808
|
+
owner: z.ZodString;
|
|
809
|
+
creation: z.ZodString;
|
|
810
|
+
modified: z.ZodString;
|
|
811
|
+
modified_by: z.ZodString;
|
|
812
|
+
} & {
|
|
799
813
|
return_items: z.ZodArray<z.ZodObject<{
|
|
800
|
-
name: z.ZodString;
|
|
801
|
-
owner: z.ZodString;
|
|
802
|
-
creation: z.ZodString;
|
|
803
|
-
modified: z.ZodString;
|
|
804
|
-
modified_by: z.ZodString;
|
|
805
|
-
idx: z.ZodNumber;
|
|
806
814
|
item: z.ZodString;
|
|
807
815
|
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
808
816
|
return_quantity: z.ZodNumber;
|
|
809
817
|
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
810
818
|
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
811
|
-
is_complaint: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
819
|
+
is_complaint: z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>;
|
|
812
820
|
servicecase_reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
813
821
|
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
814
822
|
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
815
|
-
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
816
823
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
817
|
-
|
|
818
|
-
}, "strip", z.ZodTypeAny, {
|
|
819
|
-
name: string;
|
|
820
|
-
owner: string;
|
|
821
|
-
creation: string;
|
|
822
|
-
modified: string;
|
|
823
|
-
modified_by: string;
|
|
824
|
-
idx: number;
|
|
825
|
-
item: string;
|
|
826
|
-
return_quantity: number;
|
|
827
|
-
is_complaint: boolean;
|
|
828
|
-
attachments?: string | null | undefined;
|
|
829
|
-
internal_reasons?: string | null | undefined;
|
|
830
|
-
line_item_id?: string | null | undefined;
|
|
831
|
-
total_price?: number | null | undefined;
|
|
832
|
-
return_fee?: number | null | undefined;
|
|
833
|
-
servicecase_reason?: string | null | undefined;
|
|
834
|
-
servicecase_solution?: string | null | undefined;
|
|
835
|
-
batch_number?: string | null | undefined;
|
|
836
|
-
complaint_description?: string | null | undefined;
|
|
837
|
-
}, {
|
|
838
|
-
name: string;
|
|
839
|
-
owner: string;
|
|
840
|
-
creation: string;
|
|
841
|
-
modified: string;
|
|
842
|
-
modified_by: string;
|
|
843
|
-
idx: number;
|
|
844
|
-
item: string;
|
|
845
|
-
return_quantity: number;
|
|
846
|
-
is_complaint: number;
|
|
847
|
-
attachments?: string | null | undefined;
|
|
848
|
-
internal_reasons?: string | null | undefined;
|
|
849
|
-
line_item_id?: string | null | undefined;
|
|
850
|
-
total_price?: number | null | undefined;
|
|
851
|
-
return_fee?: number | null | undefined;
|
|
852
|
-
servicecase_reason?: string | null | undefined;
|
|
853
|
-
servicecase_solution?: string | null | undefined;
|
|
854
|
-
batch_number?: string | null | undefined;
|
|
855
|
-
complaint_description?: string | null | undefined;
|
|
856
|
-
}>, "many">;
|
|
857
|
-
}, "return_items"> & {
|
|
858
|
-
return_items: z.ZodArray<z.ZodObject<Omit<{
|
|
824
|
+
} & {
|
|
859
825
|
name: z.ZodString;
|
|
860
826
|
owner: z.ZodString;
|
|
861
827
|
creation: z.ZodString;
|
|
862
828
|
modified: z.ZodString;
|
|
863
829
|
modified_by: z.ZodString;
|
|
864
830
|
idx: z.ZodNumber;
|
|
865
|
-
item: z.ZodString;
|
|
866
|
-
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
867
|
-
return_quantity: z.ZodNumber;
|
|
868
|
-
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
869
|
-
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
870
|
-
is_complaint: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
871
|
-
servicecase_reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
872
|
-
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
873
|
-
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
874
|
-
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
875
|
-
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
876
|
-
attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
877
|
-
}, "attachments" | "internal_reasons"> & {
|
|
878
831
|
attachments: z.ZodArray<z.ZodString, "many">;
|
|
879
832
|
attachments_collection_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
880
833
|
internal_reasons: z.ZodArray<z.ZodString, "many">;
|
|
@@ -911,10 +864,10 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<Omit<{
|
|
|
911
864
|
internal_reasons: string[];
|
|
912
865
|
item: string;
|
|
913
866
|
return_quantity: number;
|
|
914
|
-
is_complaint: number;
|
|
915
867
|
line_item_id?: string | null | undefined;
|
|
916
868
|
total_price?: number | null | undefined;
|
|
917
869
|
return_fee?: number | null | undefined;
|
|
870
|
+
is_complaint?: unknown;
|
|
918
871
|
servicecase_reason?: string | null | undefined;
|
|
919
872
|
servicecase_solution?: string | null | undefined;
|
|
920
873
|
batch_number?: string | null | undefined;
|
|
@@ -984,10 +937,10 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<Omit<{
|
|
|
984
937
|
internal_reasons: string[];
|
|
985
938
|
item: string;
|
|
986
939
|
return_quantity: number;
|
|
987
|
-
is_complaint: number;
|
|
988
940
|
line_item_id?: string | null | undefined;
|
|
989
941
|
total_price?: number | null | undefined;
|
|
990
942
|
return_fee?: number | null | undefined;
|
|
943
|
+
is_complaint?: unknown;
|
|
991
944
|
servicecase_reason?: string | null | undefined;
|
|
992
945
|
servicecase_solution?: string | null | undefined;
|
|
993
946
|
batch_number?: string | null | undefined;
|
|
@@ -999,14 +952,12 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<Omit<{
|
|
|
999
952
|
external_id?: string | null | undefined;
|
|
1000
953
|
customer_email?: string | null | undefined;
|
|
1001
954
|
complaint_date?: string | null | undefined;
|
|
1002
|
-
is_sent_to_client?:
|
|
1003
|
-
is_sent_to_cc?:
|
|
955
|
+
is_sent_to_client?: unknown;
|
|
956
|
+
is_sent_to_cc?: unknown;
|
|
1004
957
|
customer_message?: string | null | undefined;
|
|
1005
958
|
agreed_terms?: string | null | undefined;
|
|
1006
959
|
created_with?: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar" | undefined;
|
|
1007
960
|
}>, "many">;
|
|
1008
961
|
export type AttachmentCollectionInputType = z.infer<typeof UpdateAttachmentCollectionInput>;
|
|
1009
962
|
export type InternalReasonCollectionInputType = z.infer<typeof UpdateInternalReasonCollectionInput>;
|
|
1010
|
-
export type ServicecaseInputType = z.infer<typeof ServicecaseInput>;
|
|
1011
|
-
export type ServicecaseType = z.infer<typeof Servicecase>;
|
|
1012
963
|
export type ServicecaseMethodResponseType = z.infer<typeof ServicecaseMethodResponse>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ServicecaseMethodResponse = exports.ServicecaseExtended = exports.ServicecaseInput = exports.Servicecase = exports.ReturnItem = exports.UpdateInternalReasonCollectionInput = exports.InternalReasonCollection = exports.UpdateAttachmentCollectionInput = exports.AttachmentCollection = void 0;
|
|
3
|
+
exports.ServicecaseMethodResponse = exports.ServicecaseExtended = exports.ServicecaseInput = exports.Servicecase = exports.ReturnItemExtended = exports.ReturnItem = exports.ReturnItemInput = exports.ReturnItemBase = exports.UpdateInternalReasonCollectionInput = exports.InternalReasonCollection = exports.UpdateAttachmentCollectionInput = exports.AttachmentCollection = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const Country_1 = require("./Country");
|
|
6
6
|
const Shop = zod_1.z.enum(["Shopify", "Amazon FBA", "Amazon FBM", "Otto"]);
|
|
@@ -76,35 +76,50 @@ exports.UpdateInternalReasonCollectionInput = zod_1.z
|
|
|
76
76
|
idx: true,
|
|
77
77
|
}))
|
|
78
78
|
.describe("UpdateInternalReasonCollectionInput");
|
|
79
|
-
|
|
79
|
+
// Base type to prevent having to use omit combined with extend, not to be used directly
|
|
80
|
+
exports.ReturnItemBase = zod_1.z
|
|
80
81
|
.object({
|
|
81
|
-
name: zod_1.z.string(),
|
|
82
|
-
owner: zod_1.z.string(),
|
|
83
|
-
creation: zod_1.z.string(),
|
|
84
|
-
modified: zod_1.z.string(),
|
|
85
|
-
modified_by: zod_1.z.string(),
|
|
86
|
-
idx: zod_1.z.number(),
|
|
87
82
|
item: zod_1.z.string(),
|
|
88
83
|
line_item_id: zod_1.z.string().optional().nullable(),
|
|
89
84
|
return_quantity: zod_1.z.number(),
|
|
90
85
|
total_price: zod_1.z.number().optional().nullable(),
|
|
91
86
|
return_fee: zod_1.z.number().optional().nullable(),
|
|
92
|
-
is_complaint: zod_1.z.number().transform(Boolean),
|
|
87
|
+
is_complaint: zod_1.z.preprocess((val) => Number(val), zod_1.z.number().transform(Boolean)),
|
|
93
88
|
servicecase_reason: zod_1.z.string().optional().nullable(),
|
|
94
89
|
servicecase_solution: zod_1.z.string().optional().nullable(),
|
|
95
90
|
batch_number: zod_1.z.string().optional().nullable(),
|
|
96
|
-
internal_reasons: zod_1.z.string().optional().nullable(),
|
|
97
91
|
complaint_description: zod_1.z.string().optional().nullable(),
|
|
98
|
-
attachments: zod_1.z.string().optional().nullable(),
|
|
99
92
|
})
|
|
100
|
-
.describe("
|
|
101
|
-
exports.
|
|
102
|
-
.
|
|
93
|
+
.describe("ReturnItemBase");
|
|
94
|
+
exports.ReturnItemInput = exports.ReturnItemBase.extend({
|
|
95
|
+
internal_reasons: zod_1.z.string().optional().nullable(),
|
|
96
|
+
attachments: zod_1.z.string().optional().nullable(),
|
|
97
|
+
});
|
|
98
|
+
exports.ReturnItem = exports.ReturnItemBase.extend({
|
|
99
|
+
name: zod_1.z.string(),
|
|
100
|
+
owner: zod_1.z.string(),
|
|
101
|
+
creation: zod_1.z.string(),
|
|
102
|
+
modified: zod_1.z.string(),
|
|
103
|
+
modified_by: zod_1.z.string(),
|
|
104
|
+
idx: zod_1.z.number(),
|
|
105
|
+
internal_reasons: zod_1.z.string().optional().nullable(),
|
|
106
|
+
attachments: zod_1.z.string().optional().nullable(),
|
|
107
|
+
}).describe("ReturnItem");
|
|
108
|
+
exports.ReturnItemExtended = exports.ReturnItemBase.extend({
|
|
103
109
|
name: zod_1.z.string(),
|
|
104
110
|
owner: zod_1.z.string(),
|
|
105
111
|
creation: zod_1.z.string(),
|
|
106
112
|
modified: zod_1.z.string(),
|
|
107
113
|
modified_by: zod_1.z.string(),
|
|
114
|
+
idx: zod_1.z.number(),
|
|
115
|
+
attachments: zod_1.z.array(zod_1.z.string()),
|
|
116
|
+
attachments_collection_name: zod_1.z.string().optional().nullable(),
|
|
117
|
+
internal_reasons: zod_1.z.array(zod_1.z.string()),
|
|
118
|
+
internal_reasons_collection_name: zod_1.z.string().optional().nullable(),
|
|
119
|
+
});
|
|
120
|
+
// Base type to prevent having to use omit combined with extend, not to be used directly
|
|
121
|
+
const ServicecaseBase = zod_1.z
|
|
122
|
+
.object({
|
|
108
123
|
title: zod_1.z.string(),
|
|
109
124
|
order_number: zod_1.z.string(),
|
|
110
125
|
external_id: zod_1.z.string().optional().nullable(),
|
|
@@ -112,53 +127,34 @@ exports.Servicecase = zod_1.z
|
|
|
112
127
|
customer_email: zod_1.z.string().email().optional().nullable(),
|
|
113
128
|
status: Status.default("EDITING"),
|
|
114
129
|
complaint_date: zod_1.z.string().optional().nullable(),
|
|
115
|
-
is_sent_to_client: zod_1.z
|
|
116
|
-
|
|
130
|
+
is_sent_to_client: zod_1.z
|
|
131
|
+
.preprocess((val) => Number(val), zod_1.z.number().transform(Boolean))
|
|
132
|
+
.optional()
|
|
133
|
+
.nullable(),
|
|
134
|
+
is_sent_to_cc: zod_1.z
|
|
135
|
+
.preprocess((val) => Number(val), zod_1.z.number().transform(Boolean))
|
|
136
|
+
.optional()
|
|
137
|
+
.nullable(),
|
|
117
138
|
customer_message: zod_1.z.string().optional().nullable(),
|
|
118
139
|
agreed_terms: zod_1.z.string().optional().nullable(),
|
|
119
140
|
created_with: CreatedWith.default("Serviceportal"),
|
|
120
141
|
country: Country_1.CountryEnum,
|
|
121
|
-
return_items: zod_1.z.array(exports.ReturnItem),
|
|
122
|
-
})
|
|
123
|
-
.describe("Servicecase");
|
|
124
|
-
exports.ServicecaseInput = exports.Servicecase.omit({
|
|
125
|
-
name: true,
|
|
126
|
-
owner: true,
|
|
127
|
-
creation: true,
|
|
128
|
-
modified: true,
|
|
129
|
-
modified_by: true,
|
|
130
|
-
return_items: true,
|
|
131
|
-
is_sent_to_client: true,
|
|
132
|
-
is_sent_to_cc: true,
|
|
133
142
|
})
|
|
134
|
-
.
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
})
|
|
149
|
-
.describe("ServicecaseInput");
|
|
150
|
-
exports.ServicecaseExtended = exports.Servicecase.omit({
|
|
151
|
-
return_items: true,
|
|
152
|
-
})
|
|
153
|
-
.extend({
|
|
154
|
-
return_items: zod_1.z.array(exports.ReturnItem.omit({ attachments: true, internal_reasons: true }).extend({
|
|
155
|
-
attachments: zod_1.z.array(zod_1.z.string()),
|
|
156
|
-
attachments_collection_name: zod_1.z.string().optional().nullable(),
|
|
157
|
-
internal_reasons: zod_1.z.array(zod_1.z.string()),
|
|
158
|
-
internal_reasons_collection_name: zod_1.z.string().optional().nullable(),
|
|
159
|
-
})),
|
|
160
|
-
})
|
|
161
|
-
.describe("ServicecaseExtended");
|
|
143
|
+
.describe("Servicecase Base");
|
|
144
|
+
exports.Servicecase = ServicecaseBase.extend({
|
|
145
|
+
name: zod_1.z.string(),
|
|
146
|
+
owner: zod_1.z.string(),
|
|
147
|
+
creation: zod_1.z.string(),
|
|
148
|
+
modified: zod_1.z.string(),
|
|
149
|
+
modified_by: zod_1.z.string(),
|
|
150
|
+
return_items: zod_1.z.array(exports.ReturnItem),
|
|
151
|
+
}).describe("Servicecase");
|
|
152
|
+
exports.ServicecaseInput = ServicecaseBase.extend({
|
|
153
|
+
return_items: zod_1.z.array(exports.ReturnItemInput),
|
|
154
|
+
}).describe("ServicecaseInput");
|
|
155
|
+
exports.ServicecaseExtended = exports.Servicecase.extend({
|
|
156
|
+
return_items: zod_1.z.array(exports.ReturnItemExtended),
|
|
157
|
+
}).describe("ServicecaseExtended");
|
|
162
158
|
exports.ServicecaseMethodResponse = zod_1.z
|
|
163
159
|
.array(exports.ServicecaseExtended)
|
|
164
160
|
.describe("ServicecaseMethodResponse");
|
|
@@ -2,17 +2,17 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const ServiceCaseSolution: z.ZodObject<{
|
|
3
3
|
name: z.ZodString;
|
|
4
4
|
title: z.ZodString;
|
|
5
|
-
is_return: z.
|
|
6
|
-
return_message: z.ZodString
|
|
5
|
+
is_return: z.ZodEffects<z.ZodDefault<z.ZodNumber>, boolean, number | undefined>;
|
|
6
|
+
return_message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
name: string;
|
|
9
9
|
title: string;
|
|
10
10
|
is_return: boolean;
|
|
11
|
-
return_message
|
|
11
|
+
return_message?: string | null | undefined;
|
|
12
12
|
}, {
|
|
13
13
|
name: string;
|
|
14
14
|
title: string;
|
|
15
|
-
is_return
|
|
16
|
-
return_message
|
|
15
|
+
is_return?: number | undefined;
|
|
16
|
+
return_message?: string | null | undefined;
|
|
17
17
|
}>;
|
|
18
18
|
export type ServiceCaseSolutionType = z.infer<typeof ServiceCaseSolution>;
|
|
@@ -6,7 +6,7 @@ exports.ServiceCaseSolution = zod_1.z
|
|
|
6
6
|
.object({
|
|
7
7
|
name: zod_1.z.string(),
|
|
8
8
|
title: zod_1.z.string(),
|
|
9
|
-
is_return: zod_1.z.
|
|
10
|
-
return_message: zod_1.z.string(),
|
|
9
|
+
is_return: zod_1.z.number().default(0).transform(Boolean),
|
|
10
|
+
return_message: zod_1.z.string().optional().nullable(),
|
|
11
11
|
})
|
|
12
12
|
.describe("ServiceCaseSolution");
|