erpnext-queue-client 2.0.0-beta.0 → 2.0.0-beta.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/client.js +1 -4
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +4 -4
- package/dist/erpnext/doctypeResourceRequest.d.ts +1 -1
- package/dist/erpnext/doctypeSubmittableResourceRequest.d.ts +56 -16
- package/dist/erpnext/doctypeSubmittableResourceRequest.js +10 -8
- package/dist/erpnext/doctypes/address.d.ts +18 -18
- package/dist/erpnext/doctypes/contact.d.ts +18 -18
- package/dist/erpnext/doctypes/deliveryNote.d.ts +44 -33
- package/dist/erpnext/doctypes/item.d.ts +49 -49
- package/dist/erpnext/doctypes/paymentEntry.d.ts +820 -0
- package/dist/erpnext/doctypes/paymentEntry.js +72 -0
- package/dist/erpnext/doctypes/productBundle.d.ts +16 -16
- package/dist/erpnext/doctypes/purchaseInvoice.d.ts +99 -99
- package/dist/erpnext/doctypes/purchaseReceipt.d.ts +48 -49
- package/dist/erpnext/doctypes/salesInvoice.d.ts +2205 -2203
- package/dist/erpnext/doctypes/servicecase.d.ts +56 -56
- package/dist/erpnext/doctypes/shipment.d.ts +76 -44
- package/dist/erpnext/doctypes/stock.d.ts +2 -0
- package/dist/erpnext/doctypes/stock.js +19 -3
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.d.ts +321 -0
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.js +83 -0
- package/dist/erpnext/model/DeliveryNote.d.ts +3 -0
- package/dist/erpnext/model/DeliveryNote.js +1 -0
- package/dist/erpnext/model/DispatchRun.d.ts +3 -3
- package/dist/erpnext/model/DispatchRun.js +1 -1
- package/dist/erpnext/model/DocTypeHelpers.d.ts +26 -7
- package/dist/erpnext/model/DocTypeHelpers.js +0 -8
- package/dist/erpnext/model/ERPNextDocTypeMeta.d.ts +28 -15
- package/dist/erpnext/model/ERPNextDocTypeMeta.js +12 -7
- package/dist/erpnext/model/FulfillmentStation.d.ts +3 -0
- package/dist/erpnext/model/FulfillmentStation.js +1 -0
- package/dist/erpnext/model/Item.d.ts +35 -25
- package/dist/erpnext/model/ItemTaxTemplate.d.ts +57 -0
- package/dist/erpnext/model/ItemTaxTemplate.js +25 -0
- package/dist/erpnext/model/PaymentEntry.d.ts +183 -16
- package/dist/erpnext/model/PaymentEntry.js +6 -1
- package/dist/erpnext/model/PurchaseInvoice.d.ts +49 -47
- package/dist/erpnext/model/PurchaseInvoice.js +0 -1
- package/dist/erpnext/model/PurchaseOrder.d.ts +10 -10
- package/dist/erpnext/model/Receipt.d.ts +2 -2
- package/dist/erpnext/model/ReceiptDraft.d.ts +0 -3
- package/dist/erpnext/model/ReceiptDraft.js +0 -1
- package/dist/erpnext/model/SalesInvoice.d.ts +1530 -1526
- package/dist/erpnext/model/SalesInvoice.js +182 -178
- package/dist/erpnext/model/SalesOrder.d.ts +766 -748
- package/dist/erpnext/model/SalesOrder.js +150 -149
- package/dist/erpnext/model/Servicecase.d.ts +30 -30
- package/dist/erpnext/model/Servicecase.js +8 -1
- package/dist/erpnext/model/ServiceportalProductConfiguration.d.ts +128 -3
- package/dist/erpnext/model/ServiceportalProductConfiguration.js +34 -2
- package/dist/erpnext/model/Shipment.d.ts +14 -0
- package/dist/erpnext/model/Shipment.js +14 -1
- package/dist/erpnext/model/ShippingFees.d.ts +36 -0
- package/dist/erpnext/model/ShippingFees.js +18 -0
- package/dist/erpnext/model/ShippingProvider.d.ts +2 -2
- package/dist/erpnext/model/Stock.d.ts +6 -6
- package/dist/erpnext/model/StockEntry.d.ts +2 -2
- package/dist/erpnext/model/TaxCategory.d.ts +20 -0
- package/dist/erpnext/model/TaxCategory.js +16 -0
- package/dist/erpnext/resourceRequest.d.ts +1 -1
- package/dist/erpnext/resourceRequest.js +11 -5
- package/dist/index.d.ts +8 -2
- package/dist/index.js +9 -2
- package/dist/index.test.js +104 -70
- package/dist/utils/zodContextOptionals.js +7 -4
- package/dist/utils/zodUtils.js +14 -2
- package/package.json +7 -2
|
@@ -12,36 +12,36 @@ export declare class ERPNextServicecase {
|
|
|
12
12
|
priority: number;
|
|
13
13
|
}) => Promise<{
|
|
14
14
|
status: "EDITING" | "SUBMITTED" | "COMPLETED";
|
|
15
|
+
docstatus: number;
|
|
15
16
|
name: string;
|
|
16
17
|
owner: string;
|
|
17
18
|
creation: string;
|
|
18
19
|
modified: string;
|
|
19
20
|
modified_by: string;
|
|
20
21
|
idx: number;
|
|
21
|
-
docstatus: number;
|
|
22
22
|
doctype: string;
|
|
23
23
|
country: string;
|
|
24
24
|
title: string;
|
|
25
25
|
order_number: string;
|
|
26
|
-
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto";
|
|
26
|
+
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto" | "Amazon" | "WordPress";
|
|
27
27
|
is_sent_to_client: 0 | 1;
|
|
28
28
|
is_sent_to_cc: 0 | 1;
|
|
29
29
|
created_with: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar";
|
|
30
30
|
return_items: {
|
|
31
|
+
docstatus: number;
|
|
31
32
|
name: string;
|
|
32
33
|
owner: string;
|
|
33
34
|
creation: string;
|
|
34
35
|
modified: string;
|
|
35
36
|
modified_by: string;
|
|
36
37
|
idx: number;
|
|
37
|
-
docstatus: number;
|
|
38
38
|
doctype: string;
|
|
39
39
|
parenttype: string;
|
|
40
40
|
parentfield: string;
|
|
41
41
|
item: string;
|
|
42
42
|
return_quantity: number;
|
|
43
43
|
is_complaint: 0 | 1;
|
|
44
|
-
_user_tags?: string | undefined;
|
|
44
|
+
_user_tags?: string | null | undefined;
|
|
45
45
|
attachments?: string | null | undefined;
|
|
46
46
|
internal_reasons?: string | null | undefined;
|
|
47
47
|
line_item_id?: string | null | undefined;
|
|
@@ -54,13 +54,13 @@ export declare class ERPNextServicecase {
|
|
|
54
54
|
complaint_description?: string | null | undefined;
|
|
55
55
|
}[];
|
|
56
56
|
return_shipping_items: {
|
|
57
|
+
docstatus: number;
|
|
57
58
|
name: string;
|
|
58
59
|
owner: string;
|
|
59
60
|
creation: string;
|
|
60
61
|
modified: string;
|
|
61
62
|
modified_by: string;
|
|
62
63
|
idx: number;
|
|
63
|
-
docstatus: number;
|
|
64
64
|
doctype: string;
|
|
65
65
|
parenttype: string;
|
|
66
66
|
parentfield: string;
|
|
@@ -69,18 +69,18 @@ export declare class ERPNextServicecase {
|
|
|
69
69
|
return_item: string;
|
|
70
70
|
shipment_id: string;
|
|
71
71
|
return_fee: number;
|
|
72
|
-
_user_tags?: string | undefined;
|
|
72
|
+
_user_tags?: string | null | undefined;
|
|
73
73
|
return_label?: string | null | undefined;
|
|
74
74
|
shipping_provider?: string | null | undefined;
|
|
75
75
|
}[];
|
|
76
|
-
_user_tags?: string | undefined;
|
|
76
|
+
_user_tags?: string | null | undefined;
|
|
77
77
|
external_id?: string | null | undefined;
|
|
78
78
|
customer_email?: string | null | undefined;
|
|
79
79
|
complaint_date?: string | null | undefined;
|
|
80
80
|
customer_message?: string | null | undefined;
|
|
81
81
|
agreed_terms?: string | null | undefined;
|
|
82
82
|
}>;
|
|
83
|
-
getList: <TFieldOptions extends ("status" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "
|
|
83
|
+
getList: <TFieldOptions extends ("status" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "country" | "title" | "order_number" | "shop" | "is_sent_to_client" | "is_sent_to_cc" | "created_with") | ("_user_tags" | "external_id" | "customer_email" | "complaint_date" | "customer_message" | "agreed_terms"), TSelectedFields extends readonly ["*"] | TFieldOptions[] | undefined = undefined, TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
|
|
84
84
|
fields?: TSelectedFields;
|
|
85
85
|
filters?: (string | string[])[][];
|
|
86
86
|
skip?: number;
|
|
@@ -92,84 +92,84 @@ export declare class ERPNextServicecase {
|
|
|
92
92
|
name: string;
|
|
93
93
|
}[] : TSelectedFields extends readonly ["*"] ? {
|
|
94
94
|
status: "EDITING" | "SUBMITTED" | "COMPLETED";
|
|
95
|
+
docstatus: number;
|
|
95
96
|
name: string;
|
|
96
97
|
owner: string;
|
|
97
98
|
creation: string;
|
|
98
99
|
modified: string;
|
|
99
100
|
modified_by: string;
|
|
100
101
|
idx: number;
|
|
101
|
-
docstatus: number;
|
|
102
102
|
country: string;
|
|
103
103
|
title: string;
|
|
104
104
|
order_number: string;
|
|
105
|
-
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto";
|
|
105
|
+
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto" | "Amazon" | "WordPress";
|
|
106
106
|
is_sent_to_client: 0 | 1;
|
|
107
107
|
is_sent_to_cc: 0 | 1;
|
|
108
108
|
created_with: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar";
|
|
109
|
-
_user_tags?: string | undefined;
|
|
109
|
+
_user_tags?: string | null | undefined;
|
|
110
110
|
external_id?: string | null | undefined;
|
|
111
111
|
customer_email?: string | null | undefined;
|
|
112
112
|
complaint_date?: string | null | undefined;
|
|
113
113
|
customer_message?: string | null | undefined;
|
|
114
114
|
agreed_terms?: string | null | undefined;
|
|
115
|
-
}[] : TSelectedFields extends TFieldOptions[] ?
|
|
115
|
+
}[] : TSelectedFields extends TFieldOptions[] ? { [K_1 in TSelectedFields[number] as K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1]: (K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1) extends ("status" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "country" | "title" | "order_number" | "shop" | "is_sent_to_client" | "is_sent_to_cc" | "created_with") | ("_user_tags" | "external_id" | "customer_email" | "complaint_date" | "customer_message" | "agreed_terms") ? {
|
|
116
116
|
status: "EDITING" | "SUBMITTED" | "COMPLETED";
|
|
117
|
+
docstatus: number;
|
|
117
118
|
name: string;
|
|
118
119
|
owner: string;
|
|
119
120
|
creation: string;
|
|
120
121
|
modified: string;
|
|
121
122
|
modified_by: string;
|
|
122
123
|
idx: number;
|
|
123
|
-
docstatus: number;
|
|
124
124
|
country: string;
|
|
125
125
|
title: string;
|
|
126
126
|
order_number: string;
|
|
127
|
-
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto";
|
|
127
|
+
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto" | "Amazon" | "WordPress";
|
|
128
128
|
is_sent_to_client: 0 | 1;
|
|
129
129
|
is_sent_to_cc: 0 | 1;
|
|
130
130
|
created_with: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar";
|
|
131
|
-
_user_tags?: string | undefined;
|
|
131
|
+
_user_tags?: string | null | undefined;
|
|
132
132
|
external_id?: string | null | undefined;
|
|
133
133
|
customer_email?: string | null | undefined;
|
|
134
134
|
complaint_date?: string | null | undefined;
|
|
135
135
|
customer_message?: string | null | undefined;
|
|
136
136
|
agreed_terms?: string | null | undefined;
|
|
137
|
-
}
|
|
137
|
+
}[(("status" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "country" | "title" | "order_number" | "shop" | "is_sent_to_client" | "is_sent_to_cc" | "created_with") | ("_user_tags" | "external_id" | "customer_email" | "complaint_date" | "customer_message" | "agreed_terms")) & (K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1)] : never; }[] : any) extends infer T ? { [K in keyof T]: T[K]; } : never>;
|
|
138
138
|
getById: ({ resourceId, priority, }: {
|
|
139
139
|
resourceId: string;
|
|
140
140
|
priority?: number;
|
|
141
141
|
}) => Promise<{
|
|
142
142
|
status: "EDITING" | "SUBMITTED" | "COMPLETED";
|
|
143
|
+
docstatus: number;
|
|
143
144
|
name: string;
|
|
144
145
|
owner: string;
|
|
145
146
|
creation: string;
|
|
146
147
|
modified: string;
|
|
147
148
|
modified_by: string;
|
|
148
149
|
idx: number;
|
|
149
|
-
docstatus: number;
|
|
150
150
|
doctype: string;
|
|
151
151
|
country: string;
|
|
152
152
|
title: string;
|
|
153
153
|
order_number: string;
|
|
154
|
-
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto";
|
|
154
|
+
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto" | "Amazon" | "WordPress";
|
|
155
155
|
is_sent_to_client: 0 | 1;
|
|
156
156
|
is_sent_to_cc: 0 | 1;
|
|
157
157
|
created_with: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar";
|
|
158
158
|
return_items: {
|
|
159
|
+
docstatus: number;
|
|
159
160
|
name: string;
|
|
160
161
|
owner: string;
|
|
161
162
|
creation: string;
|
|
162
163
|
modified: string;
|
|
163
164
|
modified_by: string;
|
|
164
165
|
idx: number;
|
|
165
|
-
docstatus: number;
|
|
166
166
|
doctype: string;
|
|
167
167
|
parenttype: string;
|
|
168
168
|
parentfield: string;
|
|
169
169
|
item: string;
|
|
170
170
|
return_quantity: number;
|
|
171
171
|
is_complaint: 0 | 1;
|
|
172
|
-
_user_tags?: string | undefined;
|
|
172
|
+
_user_tags?: string | null | undefined;
|
|
173
173
|
attachments?: string | null | undefined;
|
|
174
174
|
internal_reasons?: string | null | undefined;
|
|
175
175
|
line_item_id?: string | null | undefined;
|
|
@@ -182,13 +182,13 @@ export declare class ERPNextServicecase {
|
|
|
182
182
|
complaint_description?: string | null | undefined;
|
|
183
183
|
}[];
|
|
184
184
|
return_shipping_items: {
|
|
185
|
+
docstatus: number;
|
|
185
186
|
name: string;
|
|
186
187
|
owner: string;
|
|
187
188
|
creation: string;
|
|
188
189
|
modified: string;
|
|
189
190
|
modified_by: string;
|
|
190
191
|
idx: number;
|
|
191
|
-
docstatus: number;
|
|
192
192
|
doctype: string;
|
|
193
193
|
parenttype: string;
|
|
194
194
|
parentfield: string;
|
|
@@ -197,51 +197,51 @@ export declare class ERPNextServicecase {
|
|
|
197
197
|
return_item: string;
|
|
198
198
|
shipment_id: string;
|
|
199
199
|
return_fee: number;
|
|
200
|
-
_user_tags?: string | undefined;
|
|
200
|
+
_user_tags?: string | null | undefined;
|
|
201
201
|
return_label?: string | null | undefined;
|
|
202
202
|
shipping_provider?: string | null | undefined;
|
|
203
203
|
}[];
|
|
204
|
-
_user_tags?: string | undefined;
|
|
204
|
+
_user_tags?: string | null | undefined;
|
|
205
205
|
external_id?: string | null | undefined;
|
|
206
206
|
customer_email?: string | null | undefined;
|
|
207
207
|
complaint_date?: string | null | undefined;
|
|
208
208
|
customer_message?: string | null | undefined;
|
|
209
209
|
agreed_terms?: string | null | undefined;
|
|
210
|
-
}>;
|
|
210
|
+
} | undefined>;
|
|
211
211
|
updateById: (resourceId: string, servicecase: ServicecaseInputType, options?: {
|
|
212
212
|
priority: number;
|
|
213
213
|
}) => Promise<{
|
|
214
214
|
status: "EDITING" | "SUBMITTED" | "COMPLETED";
|
|
215
|
+
docstatus: number;
|
|
215
216
|
name: string;
|
|
216
217
|
owner: string;
|
|
217
218
|
creation: string;
|
|
218
219
|
modified: string;
|
|
219
220
|
modified_by: string;
|
|
220
221
|
idx: number;
|
|
221
|
-
docstatus: number;
|
|
222
222
|
doctype: string;
|
|
223
223
|
country: string;
|
|
224
224
|
title: string;
|
|
225
225
|
order_number: string;
|
|
226
|
-
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto";
|
|
226
|
+
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto" | "Amazon" | "WordPress";
|
|
227
227
|
is_sent_to_client: 0 | 1;
|
|
228
228
|
is_sent_to_cc: 0 | 1;
|
|
229
229
|
created_with: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar";
|
|
230
230
|
return_items: {
|
|
231
|
+
docstatus: number;
|
|
231
232
|
name: string;
|
|
232
233
|
owner: string;
|
|
233
234
|
creation: string;
|
|
234
235
|
modified: string;
|
|
235
236
|
modified_by: string;
|
|
236
237
|
idx: number;
|
|
237
|
-
docstatus: number;
|
|
238
238
|
doctype: string;
|
|
239
239
|
parenttype: string;
|
|
240
240
|
parentfield: string;
|
|
241
241
|
item: string;
|
|
242
242
|
return_quantity: number;
|
|
243
243
|
is_complaint: 0 | 1;
|
|
244
|
-
_user_tags?: string | undefined;
|
|
244
|
+
_user_tags?: string | null | undefined;
|
|
245
245
|
attachments?: string | null | undefined;
|
|
246
246
|
internal_reasons?: string | null | undefined;
|
|
247
247
|
line_item_id?: string | null | undefined;
|
|
@@ -254,13 +254,13 @@ export declare class ERPNextServicecase {
|
|
|
254
254
|
complaint_description?: string | null | undefined;
|
|
255
255
|
}[];
|
|
256
256
|
return_shipping_items: {
|
|
257
|
+
docstatus: number;
|
|
257
258
|
name: string;
|
|
258
259
|
owner: string;
|
|
259
260
|
creation: string;
|
|
260
261
|
modified: string;
|
|
261
262
|
modified_by: string;
|
|
262
263
|
idx: number;
|
|
263
|
-
docstatus: number;
|
|
264
264
|
doctype: string;
|
|
265
265
|
parenttype: string;
|
|
266
266
|
parentfield: string;
|
|
@@ -269,11 +269,11 @@ export declare class ERPNextServicecase {
|
|
|
269
269
|
return_item: string;
|
|
270
270
|
shipment_id: string;
|
|
271
271
|
return_fee: number;
|
|
272
|
-
_user_tags?: string | undefined;
|
|
272
|
+
_user_tags?: string | null | undefined;
|
|
273
273
|
return_label?: string | null | undefined;
|
|
274
274
|
shipping_provider?: string | null | undefined;
|
|
275
275
|
}[];
|
|
276
|
-
_user_tags?: string | undefined;
|
|
276
|
+
_user_tags?: string | null | undefined;
|
|
277
277
|
external_id?: string | null | undefined;
|
|
278
278
|
customer_email?: string | null | undefined;
|
|
279
279
|
complaint_date?: string | null | undefined;
|
|
@@ -289,36 +289,36 @@ export declare class ERPNextServicecase {
|
|
|
289
289
|
priority: number;
|
|
290
290
|
}): Promise<{
|
|
291
291
|
status: "EDITING" | "SUBMITTED" | "COMPLETED";
|
|
292
|
+
docstatus: number;
|
|
292
293
|
name: string;
|
|
293
294
|
owner: string;
|
|
294
295
|
creation: string;
|
|
295
296
|
modified: string;
|
|
296
297
|
modified_by: string;
|
|
297
298
|
idx: number;
|
|
298
|
-
docstatus: number;
|
|
299
299
|
doctype: string;
|
|
300
300
|
country: string;
|
|
301
301
|
title: string;
|
|
302
302
|
order_number: string;
|
|
303
|
-
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto";
|
|
303
|
+
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto" | "Amazon" | "WordPress";
|
|
304
304
|
is_sent_to_client: 0 | 1;
|
|
305
305
|
is_sent_to_cc: 0 | 1;
|
|
306
306
|
created_with: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar";
|
|
307
307
|
return_items: {
|
|
308
|
+
docstatus: number;
|
|
308
309
|
name: string;
|
|
309
310
|
owner: string;
|
|
310
311
|
creation: string;
|
|
311
312
|
modified: string;
|
|
312
313
|
modified_by: string;
|
|
313
314
|
idx: number;
|
|
314
|
-
docstatus: number;
|
|
315
315
|
doctype: string;
|
|
316
316
|
parenttype: string;
|
|
317
317
|
parentfield: string;
|
|
318
318
|
item: string;
|
|
319
319
|
return_quantity: number;
|
|
320
320
|
is_complaint: 0 | 1;
|
|
321
|
-
_user_tags?: string | undefined;
|
|
321
|
+
_user_tags?: string | null | undefined;
|
|
322
322
|
attachments?: string | null | undefined;
|
|
323
323
|
internal_reasons?: string | null | undefined;
|
|
324
324
|
line_item_id?: string | null | undefined;
|
|
@@ -331,13 +331,13 @@ export declare class ERPNextServicecase {
|
|
|
331
331
|
complaint_description?: string | null | undefined;
|
|
332
332
|
}[];
|
|
333
333
|
return_shipping_items: {
|
|
334
|
+
docstatus: number;
|
|
334
335
|
name: string;
|
|
335
336
|
owner: string;
|
|
336
337
|
creation: string;
|
|
337
338
|
modified: string;
|
|
338
339
|
modified_by: string;
|
|
339
340
|
idx: number;
|
|
340
|
-
docstatus: number;
|
|
341
341
|
doctype: string;
|
|
342
342
|
parenttype: string;
|
|
343
343
|
parentfield: string;
|
|
@@ -346,11 +346,11 @@ export declare class ERPNextServicecase {
|
|
|
346
346
|
return_item: string;
|
|
347
347
|
shipment_id: string;
|
|
348
348
|
return_fee: number;
|
|
349
|
-
_user_tags?: string | undefined;
|
|
349
|
+
_user_tags?: string | null | undefined;
|
|
350
350
|
return_label?: string | null | undefined;
|
|
351
351
|
shipping_provider?: string | null | undefined;
|
|
352
352
|
}[];
|
|
353
|
-
_user_tags?: string | undefined;
|
|
353
|
+
_user_tags?: string | null | undefined;
|
|
354
354
|
external_id?: string | null | undefined;
|
|
355
355
|
customer_email?: string | null | undefined;
|
|
356
356
|
complaint_date?: string | null | undefined;
|
|
@@ -361,36 +361,36 @@ export declare class ERPNextServicecase {
|
|
|
361
361
|
priority: number;
|
|
362
362
|
}): Promise<{
|
|
363
363
|
status: "EDITING" | "SUBMITTED" | "COMPLETED";
|
|
364
|
+
docstatus: number;
|
|
364
365
|
name: string;
|
|
365
366
|
owner: string;
|
|
366
367
|
creation: string;
|
|
367
368
|
modified: string;
|
|
368
369
|
modified_by: string;
|
|
369
370
|
idx: number;
|
|
370
|
-
docstatus: number;
|
|
371
371
|
doctype: string;
|
|
372
372
|
country: string;
|
|
373
373
|
title: string;
|
|
374
374
|
order_number: string;
|
|
375
|
-
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto";
|
|
375
|
+
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto" | "Amazon" | "WordPress";
|
|
376
376
|
is_sent_to_client: 0 | 1;
|
|
377
377
|
is_sent_to_cc: 0 | 1;
|
|
378
378
|
created_with: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar";
|
|
379
379
|
return_items: {
|
|
380
|
+
docstatus: number;
|
|
380
381
|
name: string;
|
|
381
382
|
owner: string;
|
|
382
383
|
creation: string;
|
|
383
384
|
modified: string;
|
|
384
385
|
modified_by: string;
|
|
385
386
|
idx: number;
|
|
386
|
-
docstatus: number;
|
|
387
387
|
doctype: string;
|
|
388
388
|
parenttype: string;
|
|
389
389
|
parentfield: string;
|
|
390
390
|
item: string;
|
|
391
391
|
return_quantity: number;
|
|
392
392
|
is_complaint: 0 | 1;
|
|
393
|
-
_user_tags?: string | undefined;
|
|
393
|
+
_user_tags?: string | null | undefined;
|
|
394
394
|
attachments?: string | null | undefined;
|
|
395
395
|
internal_reasons?: string | null | undefined;
|
|
396
396
|
line_item_id?: string | null | undefined;
|
|
@@ -403,13 +403,13 @@ export declare class ERPNextServicecase {
|
|
|
403
403
|
complaint_description?: string | null | undefined;
|
|
404
404
|
}[];
|
|
405
405
|
return_shipping_items: {
|
|
406
|
+
docstatus: number;
|
|
406
407
|
name: string;
|
|
407
408
|
owner: string;
|
|
408
409
|
creation: string;
|
|
409
410
|
modified: string;
|
|
410
411
|
modified_by: string;
|
|
411
412
|
idx: number;
|
|
412
|
-
docstatus: number;
|
|
413
413
|
doctype: string;
|
|
414
414
|
parenttype: string;
|
|
415
415
|
parentfield: string;
|
|
@@ -418,11 +418,11 @@ export declare class ERPNextServicecase {
|
|
|
418
418
|
return_item: string;
|
|
419
419
|
shipment_id: string;
|
|
420
420
|
return_fee: number;
|
|
421
|
-
_user_tags?: string | undefined;
|
|
421
|
+
_user_tags?: string | null | undefined;
|
|
422
422
|
return_label?: string | null | undefined;
|
|
423
423
|
shipping_provider?: string | null | undefined;
|
|
424
424
|
}[];
|
|
425
|
-
_user_tags?: string | undefined;
|
|
425
|
+
_user_tags?: string | null | undefined;
|
|
426
426
|
external_id?: string | null | undefined;
|
|
427
427
|
customer_email?: string | null | undefined;
|
|
428
428
|
complaint_date?: string | null | undefined;
|
|
@@ -438,53 +438,53 @@ export declare class ERPNextServicecase {
|
|
|
438
438
|
country: string;
|
|
439
439
|
title: string;
|
|
440
440
|
order_number: string;
|
|
441
|
-
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto";
|
|
441
|
+
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto" | "Amazon" | "WordPress";
|
|
442
442
|
is_sent_to_client: boolean;
|
|
443
443
|
is_sent_to_cc: boolean;
|
|
444
444
|
created_with: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar";
|
|
445
445
|
return_items: {
|
|
446
|
+
docstatus: number;
|
|
446
447
|
name: string;
|
|
447
448
|
owner: string;
|
|
448
449
|
creation: string;
|
|
449
450
|
modified: string;
|
|
450
451
|
modified_by: string;
|
|
451
452
|
idx: number;
|
|
452
|
-
docstatus: number;
|
|
453
453
|
doctype: string;
|
|
454
454
|
attachments: {
|
|
455
455
|
type: "image" | "video";
|
|
456
456
|
url: string;
|
|
457
|
+
docstatus: number;
|
|
457
458
|
name: string;
|
|
458
459
|
owner: string;
|
|
459
460
|
creation: string;
|
|
460
461
|
modified: string;
|
|
461
462
|
modified_by: string;
|
|
462
463
|
idx: number;
|
|
463
|
-
docstatus: number;
|
|
464
464
|
doctype: string;
|
|
465
465
|
parenttype: string;
|
|
466
466
|
parentfield: string;
|
|
467
|
-
_user_tags?: string | undefined;
|
|
467
|
+
_user_tags?: string | null | undefined;
|
|
468
468
|
}[];
|
|
469
469
|
internal_reasons: {
|
|
470
|
+
docstatus: number;
|
|
470
471
|
name: string;
|
|
471
472
|
owner: string;
|
|
472
473
|
creation: string;
|
|
473
474
|
modified: string;
|
|
474
475
|
modified_by: string;
|
|
475
476
|
idx: number;
|
|
476
|
-
docstatus: number;
|
|
477
477
|
doctype: string;
|
|
478
478
|
parenttype: string;
|
|
479
479
|
parentfield: string;
|
|
480
480
|
title_de: string | null;
|
|
481
481
|
title_en: string | null;
|
|
482
|
-
_user_tags?: string | undefined;
|
|
482
|
+
_user_tags?: string | null | undefined;
|
|
483
483
|
}[];
|
|
484
484
|
item: string;
|
|
485
485
|
return_quantity: number;
|
|
486
486
|
is_complaint: boolean;
|
|
487
|
-
_user_tags?: string | undefined;
|
|
487
|
+
_user_tags?: string | null | undefined;
|
|
488
488
|
line_item_id?: string | null | undefined;
|
|
489
489
|
bundle_parent_item?: string | null | undefined;
|
|
490
490
|
total_price?: number | null | undefined;
|
|
@@ -514,15 +514,15 @@ export declare class ERPNextServicecase {
|
|
|
514
514
|
attachmentUpdate(resourceId: string, body: AttachmentCollectionType, options?: {
|
|
515
515
|
priority: number;
|
|
516
516
|
}): Promise<{
|
|
517
|
+
docstatus: number;
|
|
517
518
|
name: string;
|
|
518
519
|
owner: string;
|
|
519
520
|
creation: string;
|
|
520
521
|
modified: string;
|
|
521
522
|
modified_by: string;
|
|
522
523
|
idx: number;
|
|
523
|
-
docstatus: number;
|
|
524
524
|
doctype: string;
|
|
525
|
-
_user_tags?: string | undefined;
|
|
525
|
+
_user_tags?: string | null | undefined;
|
|
526
526
|
attachments?: {
|
|
527
527
|
type: "image" | "video";
|
|
528
528
|
url: string;
|
|
@@ -531,15 +531,15 @@ export declare class ERPNextServicecase {
|
|
|
531
531
|
internalReasonUpdate(resourceId: string, body: InternalReasonCollectionType, options?: {
|
|
532
532
|
priority: number;
|
|
533
533
|
}): Promise<{
|
|
534
|
+
docstatus: number;
|
|
534
535
|
name: string;
|
|
535
536
|
owner: string;
|
|
536
537
|
creation: string;
|
|
537
538
|
modified: string;
|
|
538
539
|
modified_by: string;
|
|
539
540
|
idx: number;
|
|
540
|
-
docstatus: number;
|
|
541
541
|
doctype: string;
|
|
542
|
-
_user_tags?: string | undefined;
|
|
542
|
+
_user_tags?: string | null | undefined;
|
|
543
543
|
internal_reasons?: {
|
|
544
544
|
internal_reason: string;
|
|
545
545
|
}[] | undefined;
|