erpnext-queue-client 1.21.4 → 1.22.1
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.
- package/dist/erpnext/model/Servicecase.d.ts +259 -260
- package/dist/erpnext/model/Servicecase.js +52 -56
- package/package.json +1 -1
|
@@ -149,24 +149,102 @@ 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 type ReturnItemBaseType = z.infer<typeof ReturnItemBase>;
|
|
187
|
+
export declare const ReturnItemInput: z.ZodObject<{
|
|
159
188
|
item: z.ZodString;
|
|
160
189
|
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
161
190
|
return_quantity: z.ZodNumber;
|
|
162
191
|
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
163
192
|
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
164
|
-
is_complaint: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
193
|
+
is_complaint: z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>;
|
|
165
194
|
servicecase_reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
166
195
|
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
167
196
|
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
197
|
+
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
198
|
+
} & {
|
|
168
199
|
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
200
|
+
attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
201
|
+
}, "strip", z.ZodTypeAny, {
|
|
202
|
+
item: string;
|
|
203
|
+
return_quantity: number;
|
|
204
|
+
is_complaint: boolean;
|
|
205
|
+
attachments?: string | null | undefined;
|
|
206
|
+
internal_reasons?: string | null | undefined;
|
|
207
|
+
line_item_id?: string | null | undefined;
|
|
208
|
+
total_price?: number | null | undefined;
|
|
209
|
+
return_fee?: number | null | undefined;
|
|
210
|
+
servicecase_reason?: string | null | undefined;
|
|
211
|
+
servicecase_solution?: string | null | undefined;
|
|
212
|
+
batch_number?: string | null | undefined;
|
|
213
|
+
complaint_description?: string | null | undefined;
|
|
214
|
+
}, {
|
|
215
|
+
item: string;
|
|
216
|
+
return_quantity: number;
|
|
217
|
+
attachments?: string | null | undefined;
|
|
218
|
+
internal_reasons?: string | null | undefined;
|
|
219
|
+
line_item_id?: string | null | undefined;
|
|
220
|
+
total_price?: number | null | undefined;
|
|
221
|
+
return_fee?: number | null | undefined;
|
|
222
|
+
is_complaint?: unknown;
|
|
223
|
+
servicecase_reason?: string | null | undefined;
|
|
224
|
+
servicecase_solution?: string | null | undefined;
|
|
225
|
+
batch_number?: string | null | undefined;
|
|
226
|
+
complaint_description?: string | null | undefined;
|
|
227
|
+
}>;
|
|
228
|
+
export type ReturnItemInputType = z.infer<typeof ReturnItemInput>;
|
|
229
|
+
export declare const ReturnItem: z.ZodObject<{
|
|
230
|
+
item: z.ZodString;
|
|
231
|
+
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
232
|
+
return_quantity: z.ZodNumber;
|
|
233
|
+
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
234
|
+
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
235
|
+
is_complaint: z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>;
|
|
236
|
+
servicecase_reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
237
|
+
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
238
|
+
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
169
239
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
240
|
+
} & {
|
|
241
|
+
name: z.ZodString;
|
|
242
|
+
owner: z.ZodString;
|
|
243
|
+
creation: z.ZodString;
|
|
244
|
+
modified: z.ZodString;
|
|
245
|
+
modified_by: z.ZodString;
|
|
246
|
+
idx: z.ZodNumber;
|
|
247
|
+
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
170
248
|
attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
171
249
|
}, "strip", z.ZodTypeAny, {
|
|
172
250
|
name: string;
|
|
@@ -196,23 +274,129 @@ export declare const ReturnItem: z.ZodObject<{
|
|
|
196
274
|
idx: number;
|
|
197
275
|
item: string;
|
|
198
276
|
return_quantity: number;
|
|
199
|
-
is_complaint: number;
|
|
200
277
|
attachments?: string | null | undefined;
|
|
201
278
|
internal_reasons?: string | null | undefined;
|
|
202
279
|
line_item_id?: string | null | undefined;
|
|
203
280
|
total_price?: number | null | undefined;
|
|
204
281
|
return_fee?: number | null | undefined;
|
|
282
|
+
is_complaint?: unknown;
|
|
205
283
|
servicecase_reason?: string | null | undefined;
|
|
206
284
|
servicecase_solution?: string | null | undefined;
|
|
207
285
|
batch_number?: string | null | undefined;
|
|
208
286
|
complaint_description?: string | null | undefined;
|
|
209
287
|
}>;
|
|
210
|
-
export
|
|
288
|
+
export type ReturnItemType = z.infer<typeof ReturnItem>;
|
|
289
|
+
export declare const ReturnItemExtended: z.ZodObject<{
|
|
290
|
+
item: z.ZodString;
|
|
291
|
+
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
292
|
+
return_quantity: z.ZodNumber;
|
|
293
|
+
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
294
|
+
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
295
|
+
is_complaint: z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>;
|
|
296
|
+
servicecase_reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
297
|
+
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
298
|
+
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
299
|
+
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
300
|
+
} & {
|
|
211
301
|
name: z.ZodString;
|
|
212
302
|
owner: z.ZodString;
|
|
213
303
|
creation: z.ZodString;
|
|
214
304
|
modified: z.ZodString;
|
|
215
305
|
modified_by: z.ZodString;
|
|
306
|
+
idx: z.ZodNumber;
|
|
307
|
+
attachments: z.ZodArray<z.ZodString, "many">;
|
|
308
|
+
attachments_collection_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
309
|
+
internal_reasons: z.ZodArray<z.ZodString, "many">;
|
|
310
|
+
internal_reasons_collection_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
311
|
+
}, "strip", z.ZodTypeAny, {
|
|
312
|
+
name: string;
|
|
313
|
+
owner: string;
|
|
314
|
+
creation: string;
|
|
315
|
+
modified: string;
|
|
316
|
+
modified_by: string;
|
|
317
|
+
idx: number;
|
|
318
|
+
attachments: string[];
|
|
319
|
+
internal_reasons: string[];
|
|
320
|
+
item: string;
|
|
321
|
+
return_quantity: number;
|
|
322
|
+
is_complaint: boolean;
|
|
323
|
+
line_item_id?: string | null | undefined;
|
|
324
|
+
total_price?: number | null | undefined;
|
|
325
|
+
return_fee?: number | null | undefined;
|
|
326
|
+
servicecase_reason?: string | null | undefined;
|
|
327
|
+
servicecase_solution?: string | null | undefined;
|
|
328
|
+
batch_number?: string | null | undefined;
|
|
329
|
+
complaint_description?: string | null | undefined;
|
|
330
|
+
attachments_collection_name?: string | null | undefined;
|
|
331
|
+
internal_reasons_collection_name?: string | null | undefined;
|
|
332
|
+
}, {
|
|
333
|
+
name: string;
|
|
334
|
+
owner: string;
|
|
335
|
+
creation: string;
|
|
336
|
+
modified: string;
|
|
337
|
+
modified_by: string;
|
|
338
|
+
idx: number;
|
|
339
|
+
attachments: string[];
|
|
340
|
+
internal_reasons: string[];
|
|
341
|
+
item: string;
|
|
342
|
+
return_quantity: number;
|
|
343
|
+
line_item_id?: string | null | undefined;
|
|
344
|
+
total_price?: number | null | undefined;
|
|
345
|
+
return_fee?: number | null | undefined;
|
|
346
|
+
is_complaint?: unknown;
|
|
347
|
+
servicecase_reason?: string | null | undefined;
|
|
348
|
+
servicecase_solution?: string | null | undefined;
|
|
349
|
+
batch_number?: string | null | undefined;
|
|
350
|
+
complaint_description?: string | null | undefined;
|
|
351
|
+
attachments_collection_name?: string | null | undefined;
|
|
352
|
+
internal_reasons_collection_name?: string | null | undefined;
|
|
353
|
+
}>;
|
|
354
|
+
export type ReturnItemExtendedType = z.infer<typeof ReturnItemExtended>;
|
|
355
|
+
export declare const ServicecaseBase: z.ZodObject<{
|
|
356
|
+
title: z.ZodString;
|
|
357
|
+
order_number: z.ZodString;
|
|
358
|
+
external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
359
|
+
shop: z.ZodEnum<["Shopify", "Amazon FBA", "Amazon FBM", "Otto"]>;
|
|
360
|
+
customer_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
361
|
+
status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTING", "VALIDATING", "REJECTED", "SHIPPING", "COMPLETED"]>>;
|
|
362
|
+
complaint_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
363
|
+
is_sent_to_client: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>>>;
|
|
364
|
+
is_sent_to_cc: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>>>;
|
|
365
|
+
customer_message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
366
|
+
agreed_terms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
367
|
+
created_with: z.ZodDefault<z.ZodEnum<["Serviceportal", "Missive Sidebar", "Amazon FBA", "Amazon FBM"]>>;
|
|
368
|
+
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"]>;
|
|
369
|
+
}, "strip", z.ZodTypeAny, {
|
|
370
|
+
status: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED";
|
|
371
|
+
country: "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";
|
|
372
|
+
title: string;
|
|
373
|
+
order_number: string;
|
|
374
|
+
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto";
|
|
375
|
+
created_with: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar";
|
|
376
|
+
external_id?: string | null | undefined;
|
|
377
|
+
customer_email?: string | null | undefined;
|
|
378
|
+
complaint_date?: string | null | undefined;
|
|
379
|
+
is_sent_to_client?: boolean | null | undefined;
|
|
380
|
+
is_sent_to_cc?: boolean | null | undefined;
|
|
381
|
+
customer_message?: string | null | undefined;
|
|
382
|
+
agreed_terms?: string | null | undefined;
|
|
383
|
+
}, {
|
|
384
|
+
country: "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";
|
|
385
|
+
title: string;
|
|
386
|
+
order_number: string;
|
|
387
|
+
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto";
|
|
388
|
+
status?: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED" | undefined;
|
|
389
|
+
external_id?: string | null | undefined;
|
|
390
|
+
customer_email?: string | null | undefined;
|
|
391
|
+
complaint_date?: string | null | undefined;
|
|
392
|
+
is_sent_to_client?: unknown;
|
|
393
|
+
is_sent_to_cc?: unknown;
|
|
394
|
+
customer_message?: string | null | undefined;
|
|
395
|
+
agreed_terms?: string | null | undefined;
|
|
396
|
+
created_with?: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar" | undefined;
|
|
397
|
+
}>;
|
|
398
|
+
export type ServicecaseBaseType = z.infer<typeof ServicecaseBase>;
|
|
399
|
+
export declare const Servicecase: z.ZodObject<{
|
|
216
400
|
title: z.ZodString;
|
|
217
401
|
order_number: z.ZodString;
|
|
218
402
|
external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -220,30 +404,37 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
220
404
|
customer_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
221
405
|
status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTING", "VALIDATING", "REJECTED", "SHIPPING", "COMPLETED"]>>;
|
|
222
406
|
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>>>;
|
|
407
|
+
is_sent_to_client: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>>>;
|
|
408
|
+
is_sent_to_cc: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>>>;
|
|
225
409
|
customer_message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
226
410
|
agreed_terms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
227
411
|
created_with: z.ZodDefault<z.ZodEnum<["Serviceportal", "Missive Sidebar", "Amazon FBA", "Amazon FBM"]>>;
|
|
228
412
|
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"]>;
|
|
413
|
+
} & {
|
|
414
|
+
name: z.ZodString;
|
|
415
|
+
owner: z.ZodString;
|
|
416
|
+
creation: z.ZodString;
|
|
417
|
+
modified: z.ZodString;
|
|
418
|
+
modified_by: z.ZodString;
|
|
229
419
|
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
420
|
item: z.ZodString;
|
|
237
421
|
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
238
422
|
return_quantity: z.ZodNumber;
|
|
239
423
|
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
240
424
|
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
241
|
-
is_complaint: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
425
|
+
is_complaint: z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>;
|
|
242
426
|
servicecase_reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
243
427
|
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
244
428
|
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
245
|
-
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
246
429
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
430
|
+
} & {
|
|
431
|
+
name: z.ZodString;
|
|
432
|
+
owner: z.ZodString;
|
|
433
|
+
creation: z.ZodString;
|
|
434
|
+
modified: z.ZodString;
|
|
435
|
+
modified_by: z.ZodString;
|
|
436
|
+
idx: z.ZodNumber;
|
|
437
|
+
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
247
438
|
attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
248
439
|
}, "strip", z.ZodTypeAny, {
|
|
249
440
|
name: string;
|
|
@@ -273,12 +464,12 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
273
464
|
idx: number;
|
|
274
465
|
item: string;
|
|
275
466
|
return_quantity: number;
|
|
276
|
-
is_complaint: number;
|
|
277
467
|
attachments?: string | null | undefined;
|
|
278
468
|
internal_reasons?: string | null | undefined;
|
|
279
469
|
line_item_id?: string | null | undefined;
|
|
280
470
|
total_price?: number | null | undefined;
|
|
281
471
|
return_fee?: number | null | undefined;
|
|
472
|
+
is_complaint?: unknown;
|
|
282
473
|
servicecase_reason?: string | null | undefined;
|
|
283
474
|
servicecase_solution?: string | null | undefined;
|
|
284
475
|
batch_number?: string | null | undefined;
|
|
@@ -342,12 +533,12 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
342
533
|
idx: number;
|
|
343
534
|
item: string;
|
|
344
535
|
return_quantity: number;
|
|
345
|
-
is_complaint: number;
|
|
346
536
|
attachments?: string | null | undefined;
|
|
347
537
|
internal_reasons?: string | null | undefined;
|
|
348
538
|
line_item_id?: string | null | undefined;
|
|
349
539
|
total_price?: number | null | undefined;
|
|
350
540
|
return_fee?: number | null | undefined;
|
|
541
|
+
is_complaint?: unknown;
|
|
351
542
|
servicecase_reason?: string | null | undefined;
|
|
352
543
|
servicecase_solution?: string | null | undefined;
|
|
353
544
|
batch_number?: string | null | undefined;
|
|
@@ -357,18 +548,14 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
357
548
|
external_id?: string | null | undefined;
|
|
358
549
|
customer_email?: string | null | undefined;
|
|
359
550
|
complaint_date?: string | null | undefined;
|
|
360
|
-
is_sent_to_client?:
|
|
361
|
-
is_sent_to_cc?:
|
|
551
|
+
is_sent_to_client?: unknown;
|
|
552
|
+
is_sent_to_cc?: unknown;
|
|
362
553
|
customer_message?: string | null | undefined;
|
|
363
554
|
agreed_terms?: string | null | undefined;
|
|
364
555
|
created_with?: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar" | undefined;
|
|
365
556
|
}>;
|
|
366
|
-
export
|
|
367
|
-
|
|
368
|
-
owner: z.ZodString;
|
|
369
|
-
creation: z.ZodString;
|
|
370
|
-
modified: z.ZodString;
|
|
371
|
-
modified_by: z.ZodString;
|
|
557
|
+
export type ServicecaseType = z.infer<typeof Servicecase>;
|
|
558
|
+
export declare const ServicecaseInput: z.ZodObject<{
|
|
372
559
|
title: z.ZodString;
|
|
373
560
|
order_number: z.ZodString;
|
|
374
561
|
external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -376,98 +563,31 @@ export declare const ServicecaseInput: z.ZodObject<Omit<{
|
|
|
376
563
|
customer_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
377
564
|
status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTING", "VALIDATING", "REJECTED", "SHIPPING", "COMPLETED"]>>;
|
|
378
565
|
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>>>;
|
|
566
|
+
is_sent_to_client: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>>>;
|
|
567
|
+
is_sent_to_cc: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>>>;
|
|
381
568
|
customer_message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
382
569
|
agreed_terms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
383
570
|
created_with: z.ZodDefault<z.ZodEnum<["Serviceportal", "Missive Sidebar", "Amazon FBA", "Amazon FBM"]>>;
|
|
384
571
|
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"]>;
|
|
572
|
+
} & {
|
|
385
573
|
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
574
|
item: z.ZodString;
|
|
393
575
|
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
394
576
|
return_quantity: z.ZodNumber;
|
|
395
577
|
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
396
578
|
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
397
|
-
is_complaint: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
579
|
+
is_complaint: z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>;
|
|
398
580
|
servicecase_reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
399
581
|
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
400
582
|
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
401
|
-
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
402
583
|
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>>;
|
|
584
|
+
} & {
|
|
462
585
|
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
463
|
-
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
464
586
|
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
587
|
}, "strip", z.ZodTypeAny, {
|
|
468
588
|
item: string;
|
|
469
589
|
return_quantity: number;
|
|
470
|
-
is_complaint:
|
|
590
|
+
is_complaint: boolean;
|
|
471
591
|
attachments?: string | null | undefined;
|
|
472
592
|
internal_reasons?: string | null | undefined;
|
|
473
593
|
line_item_id?: string | null | undefined;
|
|
@@ -501,7 +621,7 @@ export declare const ServicecaseInput: z.ZodObject<Omit<{
|
|
|
501
621
|
return_items: {
|
|
502
622
|
item: string;
|
|
503
623
|
return_quantity: number;
|
|
504
|
-
is_complaint:
|
|
624
|
+
is_complaint: boolean;
|
|
505
625
|
attachments?: string | null | undefined;
|
|
506
626
|
internal_reasons?: string | null | undefined;
|
|
507
627
|
line_item_id?: string | null | undefined;
|
|
@@ -515,8 +635,8 @@ export declare const ServicecaseInput: z.ZodObject<Omit<{
|
|
|
515
635
|
external_id?: string | null | undefined;
|
|
516
636
|
customer_email?: string | null | undefined;
|
|
517
637
|
complaint_date?: string | null | undefined;
|
|
518
|
-
is_sent_to_client?:
|
|
519
|
-
is_sent_to_cc?:
|
|
638
|
+
is_sent_to_client?: boolean | null | undefined;
|
|
639
|
+
is_sent_to_cc?: boolean | null | undefined;
|
|
520
640
|
customer_message?: string | null | undefined;
|
|
521
641
|
agreed_terms?: string | null | undefined;
|
|
522
642
|
}, {
|
|
@@ -542,18 +662,14 @@ export declare const ServicecaseInput: z.ZodObject<Omit<{
|
|
|
542
662
|
external_id?: string | null | undefined;
|
|
543
663
|
customer_email?: string | null | undefined;
|
|
544
664
|
complaint_date?: string | null | undefined;
|
|
545
|
-
is_sent_to_client?:
|
|
546
|
-
is_sent_to_cc?:
|
|
665
|
+
is_sent_to_client?: unknown;
|
|
666
|
+
is_sent_to_cc?: unknown;
|
|
547
667
|
customer_message?: string | null | undefined;
|
|
548
668
|
agreed_terms?: string | null | undefined;
|
|
549
669
|
created_with?: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar" | undefined;
|
|
550
670
|
}>;
|
|
551
|
-
export
|
|
552
|
-
|
|
553
|
-
owner: z.ZodString;
|
|
554
|
-
creation: z.ZodString;
|
|
555
|
-
modified: z.ZodString;
|
|
556
|
-
modified_by: z.ZodString;
|
|
671
|
+
export type ServicecaseInputType = z.infer<typeof ServicecaseInput>;
|
|
672
|
+
export declare const ServicecaseExtended: z.ZodObject<{
|
|
557
673
|
title: z.ZodString;
|
|
558
674
|
order_number: z.ZodString;
|
|
559
675
|
external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -561,91 +677,36 @@ export declare const ServicecaseExtended: z.ZodObject<Omit<{
|
|
|
561
677
|
customer_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
562
678
|
status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTING", "VALIDATING", "REJECTED", "SHIPPING", "COMPLETED"]>>;
|
|
563
679
|
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>>>;
|
|
680
|
+
is_sent_to_client: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>>>;
|
|
681
|
+
is_sent_to_cc: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>>>;
|
|
566
682
|
customer_message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
567
683
|
agreed_terms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
568
684
|
created_with: z.ZodDefault<z.ZodEnum<["Serviceportal", "Missive Sidebar", "Amazon FBA", "Amazon FBM"]>>;
|
|
569
685
|
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"]>;
|
|
686
|
+
name: z.ZodString;
|
|
687
|
+
owner: z.ZodString;
|
|
688
|
+
creation: z.ZodString;
|
|
689
|
+
modified: z.ZodString;
|
|
690
|
+
modified_by: z.ZodString;
|
|
691
|
+
} & {
|
|
570
692
|
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
693
|
item: z.ZodString;
|
|
578
694
|
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
579
695
|
return_quantity: z.ZodNumber;
|
|
580
696
|
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
581
697
|
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
582
|
-
is_complaint: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
698
|
+
is_complaint: z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>;
|
|
583
699
|
servicecase_reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
584
700
|
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
585
701
|
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
586
|
-
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
587
702
|
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<{
|
|
703
|
+
} & {
|
|
630
704
|
name: z.ZodString;
|
|
631
705
|
owner: z.ZodString;
|
|
632
706
|
creation: z.ZodString;
|
|
633
707
|
modified: z.ZodString;
|
|
634
708
|
modified_by: z.ZodString;
|
|
635
709
|
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
710
|
attachments: z.ZodArray<z.ZodString, "many">;
|
|
650
711
|
attachments_collection_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
651
712
|
internal_reasons: z.ZodArray<z.ZodString, "many">;
|
|
@@ -682,10 +743,10 @@ export declare const ServicecaseExtended: z.ZodObject<Omit<{
|
|
|
682
743
|
internal_reasons: string[];
|
|
683
744
|
item: string;
|
|
684
745
|
return_quantity: number;
|
|
685
|
-
is_complaint: number;
|
|
686
746
|
line_item_id?: string | null | undefined;
|
|
687
747
|
total_price?: number | null | undefined;
|
|
688
748
|
return_fee?: number | null | undefined;
|
|
749
|
+
is_complaint?: unknown;
|
|
689
750
|
servicecase_reason?: string | null | undefined;
|
|
690
751
|
servicecase_solution?: string | null | undefined;
|
|
691
752
|
batch_number?: string | null | undefined;
|
|
@@ -755,10 +816,10 @@ export declare const ServicecaseExtended: z.ZodObject<Omit<{
|
|
|
755
816
|
internal_reasons: string[];
|
|
756
817
|
item: string;
|
|
757
818
|
return_quantity: number;
|
|
758
|
-
is_complaint: number;
|
|
759
819
|
line_item_id?: string | null | undefined;
|
|
760
820
|
total_price?: number | null | undefined;
|
|
761
821
|
return_fee?: number | null | undefined;
|
|
822
|
+
is_complaint?: unknown;
|
|
762
823
|
servicecase_reason?: string | null | undefined;
|
|
763
824
|
servicecase_solution?: string | null | undefined;
|
|
764
825
|
batch_number?: string | null | undefined;
|
|
@@ -770,19 +831,14 @@ export declare const ServicecaseExtended: z.ZodObject<Omit<{
|
|
|
770
831
|
external_id?: string | null | undefined;
|
|
771
832
|
customer_email?: string | null | undefined;
|
|
772
833
|
complaint_date?: string | null | undefined;
|
|
773
|
-
is_sent_to_client?:
|
|
774
|
-
is_sent_to_cc?:
|
|
834
|
+
is_sent_to_client?: unknown;
|
|
835
|
+
is_sent_to_cc?: unknown;
|
|
775
836
|
customer_message?: string | null | undefined;
|
|
776
837
|
agreed_terms?: string | null | undefined;
|
|
777
838
|
created_with?: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar" | undefined;
|
|
778
839
|
}>;
|
|
779
840
|
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;
|
|
841
|
+
export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
786
842
|
title: z.ZodString;
|
|
787
843
|
order_number: z.ZodString;
|
|
788
844
|
external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -790,91 +846,36 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<Omit<{
|
|
|
790
846
|
customer_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
791
847
|
status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTING", "VALIDATING", "REJECTED", "SHIPPING", "COMPLETED"]>>;
|
|
792
848
|
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>>>;
|
|
849
|
+
is_sent_to_client: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>>>;
|
|
850
|
+
is_sent_to_cc: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>>>;
|
|
795
851
|
customer_message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
796
852
|
agreed_terms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
797
853
|
created_with: z.ZodDefault<z.ZodEnum<["Serviceportal", "Missive Sidebar", "Amazon FBA", "Amazon FBM"]>>;
|
|
798
854
|
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"]>;
|
|
855
|
+
name: z.ZodString;
|
|
856
|
+
owner: z.ZodString;
|
|
857
|
+
creation: z.ZodString;
|
|
858
|
+
modified: z.ZodString;
|
|
859
|
+
modified_by: z.ZodString;
|
|
860
|
+
} & {
|
|
799
861
|
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
862
|
item: z.ZodString;
|
|
807
863
|
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
808
864
|
return_quantity: z.ZodNumber;
|
|
809
865
|
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
810
866
|
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
811
|
-
is_complaint: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
867
|
+
is_complaint: z.ZodEffects<z.ZodEffects<z.ZodNumber, boolean, number>, boolean, unknown>;
|
|
812
868
|
servicecase_reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
813
869
|
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
814
870
|
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
815
|
-
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
816
871
|
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<{
|
|
872
|
+
} & {
|
|
859
873
|
name: z.ZodString;
|
|
860
874
|
owner: z.ZodString;
|
|
861
875
|
creation: z.ZodString;
|
|
862
876
|
modified: z.ZodString;
|
|
863
877
|
modified_by: z.ZodString;
|
|
864
878
|
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
879
|
attachments: z.ZodArray<z.ZodString, "many">;
|
|
879
880
|
attachments_collection_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
880
881
|
internal_reasons: z.ZodArray<z.ZodString, "many">;
|
|
@@ -911,10 +912,10 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<Omit<{
|
|
|
911
912
|
internal_reasons: string[];
|
|
912
913
|
item: string;
|
|
913
914
|
return_quantity: number;
|
|
914
|
-
is_complaint: number;
|
|
915
915
|
line_item_id?: string | null | undefined;
|
|
916
916
|
total_price?: number | null | undefined;
|
|
917
917
|
return_fee?: number | null | undefined;
|
|
918
|
+
is_complaint?: unknown;
|
|
918
919
|
servicecase_reason?: string | null | undefined;
|
|
919
920
|
servicecase_solution?: string | null | undefined;
|
|
920
921
|
batch_number?: string | null | undefined;
|
|
@@ -984,10 +985,10 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<Omit<{
|
|
|
984
985
|
internal_reasons: string[];
|
|
985
986
|
item: string;
|
|
986
987
|
return_quantity: number;
|
|
987
|
-
is_complaint: number;
|
|
988
988
|
line_item_id?: string | null | undefined;
|
|
989
989
|
total_price?: number | null | undefined;
|
|
990
990
|
return_fee?: number | null | undefined;
|
|
991
|
+
is_complaint?: unknown;
|
|
991
992
|
servicecase_reason?: string | null | undefined;
|
|
992
993
|
servicecase_solution?: string | null | undefined;
|
|
993
994
|
batch_number?: string | null | undefined;
|
|
@@ -999,14 +1000,12 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<Omit<{
|
|
|
999
1000
|
external_id?: string | null | undefined;
|
|
1000
1001
|
customer_email?: string | null | undefined;
|
|
1001
1002
|
complaint_date?: string | null | undefined;
|
|
1002
|
-
is_sent_to_client?:
|
|
1003
|
-
is_sent_to_cc?:
|
|
1003
|
+
is_sent_to_client?: unknown;
|
|
1004
|
+
is_sent_to_cc?: unknown;
|
|
1004
1005
|
customer_message?: string | null | undefined;
|
|
1005
1006
|
agreed_terms?: string | null | undefined;
|
|
1006
1007
|
created_with?: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar" | undefined;
|
|
1007
1008
|
}>, "many">;
|
|
1008
1009
|
export type AttachmentCollectionInputType = z.infer<typeof UpdateAttachmentCollectionInput>;
|
|
1009
1010
|
export type InternalReasonCollectionInputType = z.infer<typeof UpdateInternalReasonCollectionInput>;
|
|
1010
|
-
export type ServicecaseInputType = z.infer<typeof ServicecaseInput>;
|
|
1011
|
-
export type ServicecaseType = z.infer<typeof Servicecase>;
|
|
1012
1011
|
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.ServicecaseBase = 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
|
+
}).describe("ReturnItemInput");
|
|
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
|
+
}).describe("ReturnItemExtended");
|
|
120
|
+
// Base type to prevent having to use omit combined with extend, not to be used directly
|
|
121
|
+
exports.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 = exports.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 = exports.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");
|