erpnext-queue-client 2.6.2 → 2.6.3
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/doctypes/servicecase.d.ts +147 -21
- package/dist/erpnext/doctypes/servicecase.js +2 -0
- package/dist/erpnext/model/Servicecase.d.ts +67 -9
- package/dist/erpnext/model/Servicecase.js +2 -0
- package/dist/erpnext/model/ServiceportalProductConfiguration.d.ts +61 -8
- package/dist/erpnext/model/ServiceportalProductConfiguration.js +2 -2
- package/package.json +1 -1
|
@@ -13,30 +13,154 @@ export declare class ERPNextServicecase extends ERPNextDoctypeResourceRequest<ty
|
|
|
13
13
|
createServicecase(servicecase: ServicecaseInputType, options?: {
|
|
14
14
|
priority: number;
|
|
15
15
|
}): Promise<{
|
|
16
|
-
|
|
17
|
-
name
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
doctype
|
|
25
|
-
|
|
16
|
+
status: "EDITING" | "SUBMITTED" | "COMPLETED";
|
|
17
|
+
name: string;
|
|
18
|
+
docstatus: number;
|
|
19
|
+
owner: string;
|
|
20
|
+
creation: string;
|
|
21
|
+
modified: string;
|
|
22
|
+
modified_by: string;
|
|
23
|
+
idx: number;
|
|
24
|
+
doctype: string;
|
|
25
|
+
country: string;
|
|
26
|
+
title: string;
|
|
27
|
+
order_number: string;
|
|
28
|
+
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto" | "Amazon" | "WordPress";
|
|
29
|
+
is_sent_to_client: 0 | 1;
|
|
30
|
+
is_sent_to_cc: 0 | 1;
|
|
31
|
+
created_with: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar";
|
|
32
|
+
return_items: {
|
|
33
|
+
name: string;
|
|
34
|
+
docstatus: number;
|
|
35
|
+
owner: string;
|
|
36
|
+
creation: string;
|
|
37
|
+
modified: string;
|
|
38
|
+
modified_by: string;
|
|
39
|
+
idx: number;
|
|
40
|
+
doctype: string;
|
|
41
|
+
parent: string;
|
|
42
|
+
parenttype: string;
|
|
43
|
+
parentfield: string;
|
|
44
|
+
item: string;
|
|
45
|
+
return_quantity: number;
|
|
46
|
+
is_complaint: 0 | 1;
|
|
47
|
+
return_fee: number;
|
|
48
|
+
_user_tags?: string | null | undefined;
|
|
49
|
+
attachments?: string | null | undefined;
|
|
50
|
+
internal_reasons?: string | null | undefined;
|
|
51
|
+
line_item_id?: string | null | undefined;
|
|
52
|
+
bundle_parent_item?: string | null | undefined;
|
|
53
|
+
total_price?: number | null | undefined;
|
|
54
|
+
intent?: "return" | "solve" | null | undefined;
|
|
55
|
+
servicecase_reason?: string | null | undefined;
|
|
56
|
+
servicecase_solution?: string | null | undefined;
|
|
57
|
+
batch_number?: string | null | undefined;
|
|
58
|
+
complaint_description?: string | null | undefined;
|
|
59
|
+
return_label?: string | null | undefined;
|
|
60
|
+
}[];
|
|
61
|
+
return_shipping_items: {
|
|
62
|
+
name: string;
|
|
63
|
+
docstatus: number;
|
|
64
|
+
owner: string;
|
|
65
|
+
creation: string;
|
|
66
|
+
modified: string;
|
|
67
|
+
modified_by: string;
|
|
68
|
+
idx: number;
|
|
69
|
+
doctype: string;
|
|
70
|
+
parent: string;
|
|
71
|
+
parenttype: string;
|
|
72
|
+
parentfield: string;
|
|
73
|
+
quantity: number;
|
|
74
|
+
item: string;
|
|
75
|
+
return_fee: number;
|
|
76
|
+
return_item: string;
|
|
77
|
+
shipment_id: string;
|
|
78
|
+
_user_tags?: string | null | undefined;
|
|
79
|
+
return_label?: string | null | undefined;
|
|
80
|
+
shipping_provider?: string | null | undefined;
|
|
81
|
+
}[];
|
|
82
|
+
_user_tags?: string | null | undefined;
|
|
83
|
+
external_id?: string | null | undefined;
|
|
84
|
+
customer_email?: string | null | undefined;
|
|
85
|
+
complaint_date?: string | null | undefined;
|
|
86
|
+
customer_message?: string | null | undefined;
|
|
87
|
+
agreed_terms?: string | null | undefined;
|
|
26
88
|
}>;
|
|
27
89
|
updateServicecase(resourceId: string, servicecase: ServicecaseInputType, options?: {
|
|
28
90
|
priority: number;
|
|
29
91
|
}): Promise<{
|
|
30
|
-
|
|
31
|
-
name
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
doctype
|
|
39
|
-
|
|
92
|
+
status: "EDITING" | "SUBMITTED" | "COMPLETED";
|
|
93
|
+
name: string;
|
|
94
|
+
docstatus: number;
|
|
95
|
+
owner: string;
|
|
96
|
+
creation: string;
|
|
97
|
+
modified: string;
|
|
98
|
+
modified_by: string;
|
|
99
|
+
idx: number;
|
|
100
|
+
doctype: string;
|
|
101
|
+
country: string;
|
|
102
|
+
title: string;
|
|
103
|
+
order_number: string;
|
|
104
|
+
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto" | "Amazon" | "WordPress";
|
|
105
|
+
is_sent_to_client: 0 | 1;
|
|
106
|
+
is_sent_to_cc: 0 | 1;
|
|
107
|
+
created_with: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar";
|
|
108
|
+
return_items: {
|
|
109
|
+
name: string;
|
|
110
|
+
docstatus: number;
|
|
111
|
+
owner: string;
|
|
112
|
+
creation: string;
|
|
113
|
+
modified: string;
|
|
114
|
+
modified_by: string;
|
|
115
|
+
idx: number;
|
|
116
|
+
doctype: string;
|
|
117
|
+
parent: string;
|
|
118
|
+
parenttype: string;
|
|
119
|
+
parentfield: string;
|
|
120
|
+
item: string;
|
|
121
|
+
return_quantity: number;
|
|
122
|
+
is_complaint: 0 | 1;
|
|
123
|
+
return_fee: number;
|
|
124
|
+
_user_tags?: string | null | undefined;
|
|
125
|
+
attachments?: string | null | undefined;
|
|
126
|
+
internal_reasons?: string | null | undefined;
|
|
127
|
+
line_item_id?: string | null | undefined;
|
|
128
|
+
bundle_parent_item?: string | null | undefined;
|
|
129
|
+
total_price?: number | null | undefined;
|
|
130
|
+
intent?: "return" | "solve" | null | undefined;
|
|
131
|
+
servicecase_reason?: string | null | undefined;
|
|
132
|
+
servicecase_solution?: string | null | undefined;
|
|
133
|
+
batch_number?: string | null | undefined;
|
|
134
|
+
complaint_description?: string | null | undefined;
|
|
135
|
+
return_label?: string | null | undefined;
|
|
136
|
+
}[];
|
|
137
|
+
return_shipping_items: {
|
|
138
|
+
name: string;
|
|
139
|
+
docstatus: number;
|
|
140
|
+
owner: string;
|
|
141
|
+
creation: string;
|
|
142
|
+
modified: string;
|
|
143
|
+
modified_by: string;
|
|
144
|
+
idx: number;
|
|
145
|
+
doctype: string;
|
|
146
|
+
parent: string;
|
|
147
|
+
parenttype: string;
|
|
148
|
+
parentfield: string;
|
|
149
|
+
quantity: number;
|
|
150
|
+
item: string;
|
|
151
|
+
return_fee: number;
|
|
152
|
+
return_item: string;
|
|
153
|
+
shipment_id: string;
|
|
154
|
+
_user_tags?: string | null | undefined;
|
|
155
|
+
return_label?: string | null | undefined;
|
|
156
|
+
shipping_provider?: string | null | undefined;
|
|
157
|
+
}[];
|
|
158
|
+
_user_tags?: string | null | undefined;
|
|
159
|
+
external_id?: string | null | undefined;
|
|
160
|
+
customer_email?: string | null | undefined;
|
|
161
|
+
complaint_date?: string | null | undefined;
|
|
162
|
+
customer_message?: string | null | undefined;
|
|
163
|
+
agreed_terms?: string | null | undefined;
|
|
40
164
|
}>;
|
|
41
165
|
getServicecasesExtended({ email, id, priority, }: {
|
|
42
166
|
email?: string;
|
|
@@ -103,6 +227,7 @@ export declare class ERPNextServicecase extends ERPNextDoctypeResourceRequest<ty
|
|
|
103
227
|
item: string;
|
|
104
228
|
return_quantity: number;
|
|
105
229
|
is_complaint: boolean;
|
|
230
|
+
return_fee: number;
|
|
106
231
|
_user_tags?: string | null | undefined;
|
|
107
232
|
line_item_id?: string | null | undefined;
|
|
108
233
|
bundle_parent_item?: string | null | undefined;
|
|
@@ -112,15 +237,16 @@ export declare class ERPNextServicecase extends ERPNextDoctypeResourceRequest<ty
|
|
|
112
237
|
servicecase_solution?: string | null | undefined;
|
|
113
238
|
batch_number?: string | null | undefined;
|
|
114
239
|
complaint_description?: string | null | undefined;
|
|
240
|
+
return_label?: string | null | undefined;
|
|
115
241
|
attachments_collection_name?: string | null | undefined;
|
|
116
242
|
internal_reasons_collection_name?: string | null | undefined;
|
|
117
243
|
}[];
|
|
118
244
|
return_shipping_items: {
|
|
119
245
|
quantity: number;
|
|
120
246
|
item: string;
|
|
247
|
+
return_fee: number;
|
|
121
248
|
return_item: string;
|
|
122
249
|
shipment_id: string;
|
|
123
|
-
return_fee: number;
|
|
124
250
|
return_label?: string | null | undefined;
|
|
125
251
|
shipping_provider?: string | null | undefined;
|
|
126
252
|
}[];
|
|
@@ -49,6 +49,7 @@ class ERPNextServicecase extends doctypeResourceRequest_1.ERPNextDoctypeResource
|
|
|
49
49
|
}
|
|
50
50
|
const newServicecase = await this.baseRequest.create({
|
|
51
51
|
resourceName: this.resourceName,
|
|
52
|
+
resourceModel: Servicecase_1.Servicecase,
|
|
52
53
|
body: servicecase,
|
|
53
54
|
inputValidationModel: Servicecase_1.ServicecaseInput,
|
|
54
55
|
priority: options.priority,
|
|
@@ -73,6 +74,7 @@ class ERPNextServicecase extends doctypeResourceRequest_1.ERPNextDoctypeResource
|
|
|
73
74
|
const updatedServicecase = await this.baseRequest.updateById({
|
|
74
75
|
resourceName: this.resourceName,
|
|
75
76
|
resourceId,
|
|
77
|
+
resourceModel: Servicecase_1.Servicecase,
|
|
76
78
|
body: servicecase,
|
|
77
79
|
inputValidationModel: Servicecase_1.ServicecaseInput,
|
|
78
80
|
priority: options.priority,
|
|
@@ -75,10 +75,13 @@ export declare const ReturnItem: z.ZodObject<{
|
|
|
75
75
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
76
76
|
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
77
77
|
attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
78
|
+
return_fee: z.ZodDefault<z.ZodNumber>;
|
|
79
|
+
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
78
80
|
}, "strip", z.ZodTypeAny, {
|
|
79
81
|
item: string;
|
|
80
82
|
return_quantity: number;
|
|
81
83
|
is_complaint: 0 | 1;
|
|
84
|
+
return_fee: number;
|
|
82
85
|
attachments?: string | null | undefined;
|
|
83
86
|
internal_reasons?: string | null | undefined;
|
|
84
87
|
line_item_id?: string | null | undefined;
|
|
@@ -89,6 +92,7 @@ export declare const ReturnItem: z.ZodObject<{
|
|
|
89
92
|
servicecase_solution?: string | null | undefined;
|
|
90
93
|
batch_number?: string | null | undefined;
|
|
91
94
|
complaint_description?: string | null | undefined;
|
|
95
|
+
return_label?: string | null | undefined;
|
|
92
96
|
}, {
|
|
93
97
|
item: string;
|
|
94
98
|
return_quantity: number;
|
|
@@ -103,6 +107,8 @@ export declare const ReturnItem: z.ZodObject<{
|
|
|
103
107
|
servicecase_solution?: string | null | undefined;
|
|
104
108
|
batch_number?: string | null | undefined;
|
|
105
109
|
complaint_description?: string | null | undefined;
|
|
110
|
+
return_fee?: number | undefined;
|
|
111
|
+
return_label?: string | null | undefined;
|
|
106
112
|
}>;
|
|
107
113
|
export type ReturnItemType = z.infer<typeof ReturnItem>;
|
|
108
114
|
export declare const ReturnItemInput: z.ZodObject<{
|
|
@@ -121,6 +127,8 @@ export declare const ReturnItemInput: z.ZodObject<{
|
|
|
121
127
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
122
128
|
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
123
129
|
attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
130
|
+
return_fee: z.ZodDefault<z.ZodNumber>;
|
|
131
|
+
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
124
132
|
} & {
|
|
125
133
|
name: z.ZodString;
|
|
126
134
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -128,6 +136,7 @@ export declare const ReturnItemInput: z.ZodObject<{
|
|
|
128
136
|
item: string;
|
|
129
137
|
return_quantity: number;
|
|
130
138
|
is_complaint: 0 | 1;
|
|
139
|
+
return_fee: number;
|
|
131
140
|
attachments?: string | null | undefined;
|
|
132
141
|
internal_reasons?: string | null | undefined;
|
|
133
142
|
line_item_id?: string | null | undefined;
|
|
@@ -138,6 +147,7 @@ export declare const ReturnItemInput: z.ZodObject<{
|
|
|
138
147
|
servicecase_solution?: string | null | undefined;
|
|
139
148
|
batch_number?: string | null | undefined;
|
|
140
149
|
complaint_description?: string | null | undefined;
|
|
150
|
+
return_label?: string | null | undefined;
|
|
141
151
|
}, {
|
|
142
152
|
name: string;
|
|
143
153
|
item: string;
|
|
@@ -153,6 +163,8 @@ export declare const ReturnItemInput: z.ZodObject<{
|
|
|
153
163
|
servicecase_solution?: string | null | undefined;
|
|
154
164
|
batch_number?: string | null | undefined;
|
|
155
165
|
complaint_description?: string | null | undefined;
|
|
166
|
+
return_fee?: number | undefined;
|
|
167
|
+
return_label?: string | null | undefined;
|
|
156
168
|
}>;
|
|
157
169
|
export type ReturnItemInputType = z.infer<typeof ReturnItemInput>;
|
|
158
170
|
export declare const ReturnItemExtended: import("./DocTypeHelpers").DocModelType<z.ZodObject<{
|
|
@@ -166,6 +178,8 @@ export declare const ReturnItemExtended: import("./DocTypeHelpers").DocModelType
|
|
|
166
178
|
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
167
179
|
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
168
180
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
181
|
+
return_fee: z.ZodDefault<z.ZodNumber>;
|
|
182
|
+
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
169
183
|
} & {
|
|
170
184
|
attachments: z.ZodArray<z.ZodObject<{
|
|
171
185
|
url: z.ZodString;
|
|
@@ -202,6 +216,7 @@ export declare const ReturnItemExtended: import("./DocTypeHelpers").DocModelType
|
|
|
202
216
|
item: string;
|
|
203
217
|
return_quantity: number;
|
|
204
218
|
is_complaint: boolean;
|
|
219
|
+
return_fee: number;
|
|
205
220
|
line_item_id?: string | null | undefined;
|
|
206
221
|
bundle_parent_item?: string | null | undefined;
|
|
207
222
|
total_price?: number | null | undefined;
|
|
@@ -210,6 +225,7 @@ export declare const ReturnItemExtended: import("./DocTypeHelpers").DocModelType
|
|
|
210
225
|
servicecase_solution?: string | null | undefined;
|
|
211
226
|
batch_number?: string | null | undefined;
|
|
212
227
|
complaint_description?: string | null | undefined;
|
|
228
|
+
return_label?: string | null | undefined;
|
|
213
229
|
attachments_collection_name?: string | null | undefined;
|
|
214
230
|
internal_reasons_collection_name?: string | null | undefined;
|
|
215
231
|
}, {
|
|
@@ -232,6 +248,8 @@ export declare const ReturnItemExtended: import("./DocTypeHelpers").DocModelType
|
|
|
232
248
|
servicecase_solution?: string | null | undefined;
|
|
233
249
|
batch_number?: string | null | undefined;
|
|
234
250
|
complaint_description?: string | null | undefined;
|
|
251
|
+
return_fee?: number | undefined;
|
|
252
|
+
return_label?: string | null | undefined;
|
|
235
253
|
attachments_collection_name?: string | null | undefined;
|
|
236
254
|
internal_reasons_collection_name?: string | null | undefined;
|
|
237
255
|
}>>;
|
|
@@ -247,9 +265,9 @@ export declare const ReturnShippingItem: z.ZodObject<{
|
|
|
247
265
|
}, "strip", z.ZodTypeAny, {
|
|
248
266
|
quantity: number;
|
|
249
267
|
item: string;
|
|
268
|
+
return_fee: number;
|
|
250
269
|
return_item: string;
|
|
251
270
|
shipment_id: string;
|
|
252
|
-
return_fee: number;
|
|
253
271
|
return_label?: string | null | undefined;
|
|
254
272
|
shipping_provider?: string | null | undefined;
|
|
255
273
|
}, {
|
|
@@ -296,10 +314,13 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
296
314
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
297
315
|
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
298
316
|
attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
317
|
+
return_fee: z.ZodDefault<z.ZodNumber>;
|
|
318
|
+
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
299
319
|
}, "strip", z.ZodTypeAny, {
|
|
300
320
|
item: string;
|
|
301
321
|
return_quantity: number;
|
|
302
322
|
is_complaint: 0 | 1;
|
|
323
|
+
return_fee: number;
|
|
303
324
|
attachments?: string | null | undefined;
|
|
304
325
|
internal_reasons?: string | null | undefined;
|
|
305
326
|
line_item_id?: string | null | undefined;
|
|
@@ -310,6 +331,7 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
310
331
|
servicecase_solution?: string | null | undefined;
|
|
311
332
|
batch_number?: string | null | undefined;
|
|
312
333
|
complaint_description?: string | null | undefined;
|
|
334
|
+
return_label?: string | null | undefined;
|
|
313
335
|
}, {
|
|
314
336
|
item: string;
|
|
315
337
|
return_quantity: number;
|
|
@@ -324,6 +346,8 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
324
346
|
servicecase_solution?: string | null | undefined;
|
|
325
347
|
batch_number?: string | null | undefined;
|
|
326
348
|
complaint_description?: string | null | undefined;
|
|
349
|
+
return_fee?: number | undefined;
|
|
350
|
+
return_label?: string | null | undefined;
|
|
327
351
|
}>, "many">;
|
|
328
352
|
return_shipping_items: z.ZodArray<z.ZodObject<{
|
|
329
353
|
item: z.ZodString;
|
|
@@ -336,9 +360,9 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
336
360
|
}, "strip", z.ZodTypeAny, {
|
|
337
361
|
quantity: number;
|
|
338
362
|
item: string;
|
|
363
|
+
return_fee: number;
|
|
339
364
|
return_item: string;
|
|
340
365
|
shipment_id: string;
|
|
341
|
-
return_fee: number;
|
|
342
366
|
return_label?: string | null | undefined;
|
|
343
367
|
shipping_provider?: string | null | undefined;
|
|
344
368
|
}, {
|
|
@@ -363,6 +387,7 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
363
387
|
item: string;
|
|
364
388
|
return_quantity: number;
|
|
365
389
|
is_complaint: 0 | 1;
|
|
390
|
+
return_fee: number;
|
|
366
391
|
attachments?: string | null | undefined;
|
|
367
392
|
internal_reasons?: string | null | undefined;
|
|
368
393
|
line_item_id?: string | null | undefined;
|
|
@@ -373,13 +398,14 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
373
398
|
servicecase_solution?: string | null | undefined;
|
|
374
399
|
batch_number?: string | null | undefined;
|
|
375
400
|
complaint_description?: string | null | undefined;
|
|
401
|
+
return_label?: string | null | undefined;
|
|
376
402
|
}[];
|
|
377
403
|
return_shipping_items: {
|
|
378
404
|
quantity: number;
|
|
379
405
|
item: string;
|
|
406
|
+
return_fee: number;
|
|
380
407
|
return_item: string;
|
|
381
408
|
shipment_id: string;
|
|
382
|
-
return_fee: number;
|
|
383
409
|
return_label?: string | null | undefined;
|
|
384
410
|
shipping_provider?: string | null | undefined;
|
|
385
411
|
}[];
|
|
@@ -407,6 +433,8 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
407
433
|
servicecase_solution?: string | null | undefined;
|
|
408
434
|
batch_number?: string | null | undefined;
|
|
409
435
|
complaint_description?: string | null | undefined;
|
|
436
|
+
return_fee?: number | undefined;
|
|
437
|
+
return_label?: string | null | undefined;
|
|
410
438
|
}[];
|
|
411
439
|
return_shipping_items: {
|
|
412
440
|
quantity: number;
|
|
@@ -463,6 +491,8 @@ export declare const ServicecaseInput: import("../../utils/zodContextOptionals")
|
|
|
463
491
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
464
492
|
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
465
493
|
attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
494
|
+
return_fee: z.ZodDefault<z.ZodNumber>;
|
|
495
|
+
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
466
496
|
} & {
|
|
467
497
|
name: z.ZodString;
|
|
468
498
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -470,6 +500,7 @@ export declare const ServicecaseInput: import("../../utils/zodContextOptionals")
|
|
|
470
500
|
item: string;
|
|
471
501
|
return_quantity: number;
|
|
472
502
|
is_complaint: 0 | 1;
|
|
503
|
+
return_fee: number;
|
|
473
504
|
attachments?: string | null | undefined;
|
|
474
505
|
internal_reasons?: string | null | undefined;
|
|
475
506
|
line_item_id?: string | null | undefined;
|
|
@@ -480,6 +511,7 @@ export declare const ServicecaseInput: import("../../utils/zodContextOptionals")
|
|
|
480
511
|
servicecase_solution?: string | null | undefined;
|
|
481
512
|
batch_number?: string | null | undefined;
|
|
482
513
|
complaint_description?: string | null | undefined;
|
|
514
|
+
return_label?: string | null | undefined;
|
|
483
515
|
}, {
|
|
484
516
|
name: string;
|
|
485
517
|
item: string;
|
|
@@ -495,6 +527,8 @@ export declare const ServicecaseInput: import("../../utils/zodContextOptionals")
|
|
|
495
527
|
servicecase_solution?: string | null | undefined;
|
|
496
528
|
batch_number?: string | null | undefined;
|
|
497
529
|
complaint_description?: string | null | undefined;
|
|
530
|
+
return_fee?: number | undefined;
|
|
531
|
+
return_label?: string | null | undefined;
|
|
498
532
|
}>, "many">;
|
|
499
533
|
return_shipping_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
500
534
|
item: z.ZodString;
|
|
@@ -507,9 +541,9 @@ export declare const ServicecaseInput: import("../../utils/zodContextOptionals")
|
|
|
507
541
|
}, "strip", z.ZodTypeAny, {
|
|
508
542
|
quantity: number;
|
|
509
543
|
item: string;
|
|
544
|
+
return_fee: number;
|
|
510
545
|
return_item: string;
|
|
511
546
|
shipment_id: string;
|
|
512
|
-
return_fee: number;
|
|
513
547
|
return_label?: string | null | undefined;
|
|
514
548
|
shipping_provider?: string | null | undefined;
|
|
515
549
|
}, {
|
|
@@ -535,6 +569,7 @@ export declare const ServicecaseInput: import("../../utils/zodContextOptionals")
|
|
|
535
569
|
item: string;
|
|
536
570
|
return_quantity: number;
|
|
537
571
|
is_complaint: 0 | 1;
|
|
572
|
+
return_fee: number;
|
|
538
573
|
attachments?: string | null | undefined;
|
|
539
574
|
internal_reasons?: string | null | undefined;
|
|
540
575
|
line_item_id?: string | null | undefined;
|
|
@@ -545,6 +580,7 @@ export declare const ServicecaseInput: import("../../utils/zodContextOptionals")
|
|
|
545
580
|
servicecase_solution?: string | null | undefined;
|
|
546
581
|
batch_number?: string | null | undefined;
|
|
547
582
|
complaint_description?: string | null | undefined;
|
|
583
|
+
return_label?: string | null | undefined;
|
|
548
584
|
}[];
|
|
549
585
|
external_id?: string | null | undefined;
|
|
550
586
|
customer_email?: string | null | undefined;
|
|
@@ -554,9 +590,9 @@ export declare const ServicecaseInput: import("../../utils/zodContextOptionals")
|
|
|
554
590
|
return_shipping_items?: {
|
|
555
591
|
quantity: number;
|
|
556
592
|
item: string;
|
|
593
|
+
return_fee: number;
|
|
557
594
|
return_item: string;
|
|
558
595
|
shipment_id: string;
|
|
559
|
-
return_fee: number;
|
|
560
596
|
return_label?: string | null | undefined;
|
|
561
597
|
shipping_provider?: string | null | undefined;
|
|
562
598
|
}[] | undefined;
|
|
@@ -580,6 +616,8 @@ export declare const ServicecaseInput: import("../../utils/zodContextOptionals")
|
|
|
580
616
|
servicecase_solution?: string | null | undefined;
|
|
581
617
|
batch_number?: string | null | undefined;
|
|
582
618
|
complaint_description?: string | null | undefined;
|
|
619
|
+
return_fee?: number | undefined;
|
|
620
|
+
return_label?: string | null | undefined;
|
|
583
621
|
}[];
|
|
584
622
|
status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
|
|
585
623
|
external_id?: string | null | undefined;
|
|
@@ -636,6 +674,8 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
636
674
|
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
637
675
|
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
638
676
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
677
|
+
return_fee: z.ZodDefault<z.ZodNumber>;
|
|
678
|
+
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
639
679
|
} & {
|
|
640
680
|
attachments: z.ZodArray<z.ZodObject<{
|
|
641
681
|
url: z.ZodString;
|
|
@@ -672,6 +712,7 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
672
712
|
item: string;
|
|
673
713
|
return_quantity: number;
|
|
674
714
|
is_complaint: boolean;
|
|
715
|
+
return_fee: number;
|
|
675
716
|
line_item_id?: string | null | undefined;
|
|
676
717
|
bundle_parent_item?: string | null | undefined;
|
|
677
718
|
total_price?: number | null | undefined;
|
|
@@ -680,6 +721,7 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
680
721
|
servicecase_solution?: string | null | undefined;
|
|
681
722
|
batch_number?: string | null | undefined;
|
|
682
723
|
complaint_description?: string | null | undefined;
|
|
724
|
+
return_label?: string | null | undefined;
|
|
683
725
|
attachments_collection_name?: string | null | undefined;
|
|
684
726
|
internal_reasons_collection_name?: string | null | undefined;
|
|
685
727
|
}, {
|
|
@@ -702,6 +744,8 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
702
744
|
servicecase_solution?: string | null | undefined;
|
|
703
745
|
batch_number?: string | null | undefined;
|
|
704
746
|
complaint_description?: string | null | undefined;
|
|
747
|
+
return_fee?: number | undefined;
|
|
748
|
+
return_label?: string | null | undefined;
|
|
705
749
|
attachments_collection_name?: string | null | undefined;
|
|
706
750
|
internal_reasons_collection_name?: string | null | undefined;
|
|
707
751
|
}>>, "many">;
|
|
@@ -716,9 +760,9 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
716
760
|
}, "strip", z.ZodTypeAny, {
|
|
717
761
|
quantity: number;
|
|
718
762
|
item: string;
|
|
763
|
+
return_fee: number;
|
|
719
764
|
return_item: string;
|
|
720
765
|
shipment_id: string;
|
|
721
|
-
return_fee: number;
|
|
722
766
|
return_label?: string | null | undefined;
|
|
723
767
|
shipping_provider?: string | null | undefined;
|
|
724
768
|
}, {
|
|
@@ -793,6 +837,7 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
793
837
|
item: string;
|
|
794
838
|
return_quantity: number;
|
|
795
839
|
is_complaint: boolean;
|
|
840
|
+
return_fee: number;
|
|
796
841
|
_user_tags?: string | null | undefined;
|
|
797
842
|
line_item_id?: string | null | undefined;
|
|
798
843
|
bundle_parent_item?: string | null | undefined;
|
|
@@ -802,15 +847,16 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
802
847
|
servicecase_solution?: string | null | undefined;
|
|
803
848
|
batch_number?: string | null | undefined;
|
|
804
849
|
complaint_description?: string | null | undefined;
|
|
850
|
+
return_label?: string | null | undefined;
|
|
805
851
|
attachments_collection_name?: string | null | undefined;
|
|
806
852
|
internal_reasons_collection_name?: string | null | undefined;
|
|
807
853
|
}[];
|
|
808
854
|
return_shipping_items: {
|
|
809
855
|
quantity: number;
|
|
810
856
|
item: string;
|
|
857
|
+
return_fee: number;
|
|
811
858
|
return_item: string;
|
|
812
859
|
shipment_id: string;
|
|
813
|
-
return_fee: number;
|
|
814
860
|
return_label?: string | null | undefined;
|
|
815
861
|
shipping_provider?: string | null | undefined;
|
|
816
862
|
}[];
|
|
@@ -887,6 +933,8 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
887
933
|
servicecase_solution?: string | null | undefined;
|
|
888
934
|
batch_number?: string | null | undefined;
|
|
889
935
|
complaint_description?: string | null | undefined;
|
|
936
|
+
return_fee?: number | undefined;
|
|
937
|
+
return_label?: string | null | undefined;
|
|
890
938
|
attachments_collection_name?: string | null | undefined;
|
|
891
939
|
internal_reasons_collection_name?: string | null | undefined;
|
|
892
940
|
}[];
|
|
@@ -945,6 +993,8 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
945
993
|
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
946
994
|
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
947
995
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
996
|
+
return_fee: z.ZodDefault<z.ZodNumber>;
|
|
997
|
+
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
948
998
|
} & {
|
|
949
999
|
attachments: z.ZodArray<z.ZodObject<{
|
|
950
1000
|
url: z.ZodString;
|
|
@@ -981,6 +1031,7 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
981
1031
|
item: string;
|
|
982
1032
|
return_quantity: number;
|
|
983
1033
|
is_complaint: boolean;
|
|
1034
|
+
return_fee: number;
|
|
984
1035
|
line_item_id?: string | null | undefined;
|
|
985
1036
|
bundle_parent_item?: string | null | undefined;
|
|
986
1037
|
total_price?: number | null | undefined;
|
|
@@ -989,6 +1040,7 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
989
1040
|
servicecase_solution?: string | null | undefined;
|
|
990
1041
|
batch_number?: string | null | undefined;
|
|
991
1042
|
complaint_description?: string | null | undefined;
|
|
1043
|
+
return_label?: string | null | undefined;
|
|
992
1044
|
attachments_collection_name?: string | null | undefined;
|
|
993
1045
|
internal_reasons_collection_name?: string | null | undefined;
|
|
994
1046
|
}, {
|
|
@@ -1011,6 +1063,8 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1011
1063
|
servicecase_solution?: string | null | undefined;
|
|
1012
1064
|
batch_number?: string | null | undefined;
|
|
1013
1065
|
complaint_description?: string | null | undefined;
|
|
1066
|
+
return_fee?: number | undefined;
|
|
1067
|
+
return_label?: string | null | undefined;
|
|
1014
1068
|
attachments_collection_name?: string | null | undefined;
|
|
1015
1069
|
internal_reasons_collection_name?: string | null | undefined;
|
|
1016
1070
|
}>>, "many">;
|
|
@@ -1025,9 +1079,9 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1025
1079
|
}, "strip", z.ZodTypeAny, {
|
|
1026
1080
|
quantity: number;
|
|
1027
1081
|
item: string;
|
|
1082
|
+
return_fee: number;
|
|
1028
1083
|
return_item: string;
|
|
1029
1084
|
shipment_id: string;
|
|
1030
|
-
return_fee: number;
|
|
1031
1085
|
return_label?: string | null | undefined;
|
|
1032
1086
|
shipping_provider?: string | null | undefined;
|
|
1033
1087
|
}, {
|
|
@@ -1102,6 +1156,7 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1102
1156
|
item: string;
|
|
1103
1157
|
return_quantity: number;
|
|
1104
1158
|
is_complaint: boolean;
|
|
1159
|
+
return_fee: number;
|
|
1105
1160
|
_user_tags?: string | null | undefined;
|
|
1106
1161
|
line_item_id?: string | null | undefined;
|
|
1107
1162
|
bundle_parent_item?: string | null | undefined;
|
|
@@ -1111,15 +1166,16 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1111
1166
|
servicecase_solution?: string | null | undefined;
|
|
1112
1167
|
batch_number?: string | null | undefined;
|
|
1113
1168
|
complaint_description?: string | null | undefined;
|
|
1169
|
+
return_label?: string | null | undefined;
|
|
1114
1170
|
attachments_collection_name?: string | null | undefined;
|
|
1115
1171
|
internal_reasons_collection_name?: string | null | undefined;
|
|
1116
1172
|
}[];
|
|
1117
1173
|
return_shipping_items: {
|
|
1118
1174
|
quantity: number;
|
|
1119
1175
|
item: string;
|
|
1176
|
+
return_fee: number;
|
|
1120
1177
|
return_item: string;
|
|
1121
1178
|
shipment_id: string;
|
|
1122
|
-
return_fee: number;
|
|
1123
1179
|
return_label?: string | null | undefined;
|
|
1124
1180
|
shipping_provider?: string | null | undefined;
|
|
1125
1181
|
}[];
|
|
@@ -1196,6 +1252,8 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1196
1252
|
servicecase_solution?: string | null | undefined;
|
|
1197
1253
|
batch_number?: string | null | undefined;
|
|
1198
1254
|
complaint_description?: string | null | undefined;
|
|
1255
|
+
return_fee?: number | undefined;
|
|
1256
|
+
return_label?: string | null | undefined;
|
|
1199
1257
|
attachments_collection_name?: string | null | undefined;
|
|
1200
1258
|
internal_reasons_collection_name?: string | null | undefined;
|
|
1201
1259
|
}[];
|
|
@@ -56,6 +56,8 @@ exports.ReturnItem = zod_1.z
|
|
|
56
56
|
complaint_description: zod_1.z.string().optional().nullable(),
|
|
57
57
|
internal_reasons: zod_1.z.string().optional().nullable(),
|
|
58
58
|
attachments: zod_1.z.string().optional().nullable(),
|
|
59
|
+
return_fee: zod_1.z.number().default(0),
|
|
60
|
+
return_label: zod_1.z.string().optional().nullable(),
|
|
59
61
|
})
|
|
60
62
|
.describe("ReturnItem");
|
|
61
63
|
exports.ReturnItemInput = exports.ReturnItem.extend({
|
|
@@ -132,7 +132,9 @@ export declare const ServiceportalProductConfigurationMethodResponse: z.ZodObjec
|
|
|
132
132
|
return_instructions: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
133
133
|
} & {
|
|
134
134
|
return_fees: z.ZodArray<z.ZodObject<Pick<{
|
|
135
|
-
|
|
135
|
+
shipping_provider: z.ZodString;
|
|
136
|
+
country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
137
|
+
fee: z.ZodNumber;
|
|
136
138
|
} & {
|
|
137
139
|
name: z.ZodString;
|
|
138
140
|
owner: z.ZodString;
|
|
@@ -145,9 +147,20 @@ export declare const ServiceportalProductConfigurationMethodResponse: z.ZodObjec
|
|
|
145
147
|
};
|
|
146
148
|
doctype: z.ZodString;
|
|
147
149
|
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
148
|
-
|
|
150
|
+
parent: z.ZodString;
|
|
151
|
+
parenttype: z.ZodString;
|
|
152
|
+
parentfield: z.ZodString;
|
|
153
|
+
}, "country" | "shipping_provider" | "fee">, "strip", z.ZodTypeAny, {
|
|
154
|
+
shipping_provider: string;
|
|
155
|
+
fee: number;
|
|
156
|
+
country?: string | null | undefined;
|
|
157
|
+
}, {
|
|
158
|
+
shipping_provider: string;
|
|
159
|
+
fee: number;
|
|
160
|
+
country?: string | null | undefined;
|
|
161
|
+
}>, "many">;
|
|
149
162
|
batch_numbers: z.ZodArray<z.ZodObject<Pick<{
|
|
150
|
-
|
|
163
|
+
batch_number: z.ZodString;
|
|
151
164
|
} & {
|
|
152
165
|
name: z.ZodString;
|
|
153
166
|
owner: z.ZodString;
|
|
@@ -160,7 +173,25 @@ export declare const ServiceportalProductConfigurationMethodResponse: z.ZodObjec
|
|
|
160
173
|
};
|
|
161
174
|
doctype: z.ZodString;
|
|
162
175
|
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
163
|
-
}
|
|
176
|
+
} & {
|
|
177
|
+
parent: z.ZodString;
|
|
178
|
+
parenttype: z.ZodString;
|
|
179
|
+
parentfield: z.ZodString;
|
|
180
|
+
}, "idx" | "doctype" | "parent" | "parenttype" | "parentfield" | "batch_number">, "strip", z.ZodTypeAny, {
|
|
181
|
+
idx: number;
|
|
182
|
+
doctype: string;
|
|
183
|
+
parent: string;
|
|
184
|
+
parenttype: string;
|
|
185
|
+
parentfield: string;
|
|
186
|
+
batch_number: string;
|
|
187
|
+
}, {
|
|
188
|
+
idx: number;
|
|
189
|
+
doctype: string;
|
|
190
|
+
parent: string;
|
|
191
|
+
parenttype: string;
|
|
192
|
+
parentfield: string;
|
|
193
|
+
batch_number: string;
|
|
194
|
+
}>, "many">;
|
|
164
195
|
internal_reasons: z.ZodArray<z.ZodObject<Pick<{
|
|
165
196
|
internal_reason: z.ZodString;
|
|
166
197
|
}, "internal_reason">, "strip", z.ZodTypeAny, {
|
|
@@ -176,9 +207,20 @@ export declare const ServiceportalProductConfigurationMethodResponse: z.ZodObjec
|
|
|
176
207
|
internal_reason: string;
|
|
177
208
|
}[];
|
|
178
209
|
return_fee: number;
|
|
179
|
-
return_fees: {
|
|
210
|
+
return_fees: {
|
|
211
|
+
shipping_provider: string;
|
|
212
|
+
fee: number;
|
|
213
|
+
country?: string | null | undefined;
|
|
214
|
+
}[];
|
|
180
215
|
is_ask_for_batch_number: number;
|
|
181
|
-
batch_numbers: {
|
|
216
|
+
batch_numbers: {
|
|
217
|
+
idx: number;
|
|
218
|
+
doctype: string;
|
|
219
|
+
parent: string;
|
|
220
|
+
parenttype: string;
|
|
221
|
+
parentfield: string;
|
|
222
|
+
batch_number: string;
|
|
223
|
+
}[];
|
|
182
224
|
return_fee_explanation?: string | null | undefined;
|
|
183
225
|
batch_number_location_description?: string | null | undefined;
|
|
184
226
|
return_conditions?: string | null | undefined;
|
|
@@ -192,9 +234,20 @@ export declare const ServiceportalProductConfigurationMethodResponse: z.ZodObjec
|
|
|
192
234
|
internal_reason: string;
|
|
193
235
|
}[];
|
|
194
236
|
return_fee: number;
|
|
195
|
-
return_fees: {
|
|
237
|
+
return_fees: {
|
|
238
|
+
shipping_provider: string;
|
|
239
|
+
fee: number;
|
|
240
|
+
country?: string | null | undefined;
|
|
241
|
+
}[];
|
|
196
242
|
is_ask_for_batch_number: number;
|
|
197
|
-
batch_numbers: {
|
|
243
|
+
batch_numbers: {
|
|
244
|
+
idx: number;
|
|
245
|
+
doctype: string;
|
|
246
|
+
parent: string;
|
|
247
|
+
parenttype: string;
|
|
248
|
+
parentfield: string;
|
|
249
|
+
batch_number: string;
|
|
250
|
+
}[];
|
|
198
251
|
return_fee_explanation?: string | null | undefined;
|
|
199
252
|
batch_number_location_description?: string | null | undefined;
|
|
200
253
|
return_conditions?: string | null | undefined;
|
|
@@ -46,12 +46,12 @@ exports.ServiceportalProductConfigurationMethodResponse = (0, DocTypeHelpers_1.D
|
|
|
46
46
|
return_instructions: true,
|
|
47
47
|
})
|
|
48
48
|
.extend({
|
|
49
|
-
return_fees: zod_1.z.array((0, DocTypeHelpers_1.
|
|
49
|
+
return_fees: zod_1.z.array((0, DocTypeHelpers_1.CreateChildTableEntrySchema)(ShippingFees_1.ShippingFee).pick({
|
|
50
50
|
shipping_provider: true,
|
|
51
51
|
country: true,
|
|
52
52
|
fee: true,
|
|
53
53
|
})),
|
|
54
|
-
batch_numbers: zod_1.z.array((0, DocTypeHelpers_1.
|
|
54
|
+
batch_numbers: zod_1.z.array((0, DocTypeHelpers_1.CreateChildTableEntrySchema)(BatchNumberList).pick({
|
|
55
55
|
idx: true,
|
|
56
56
|
batch_number: true,
|
|
57
57
|
parent: true,
|