erpnext-queue-client 1.39.2 → 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 +3 -6
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +16 -2
- package/dist/erpnext/doctypeResourceRequest.d.ts +12 -11
- package/dist/erpnext/doctypeResourceRequest.js +3 -2
- package/dist/erpnext/doctypeSubmittableResourceRequest.d.ts +161 -4
- package/dist/erpnext/doctypeSubmittableResourceRequest.js +16 -1
- package/dist/erpnext/doctypes/address.d.ts +160 -225
- package/dist/erpnext/doctypes/address.js +0 -2
- package/dist/erpnext/doctypes/contact.d.ts +157 -314
- package/dist/erpnext/doctypes/contact.js +1 -1
- package/dist/erpnext/doctypes/deliveryNote.d.ts +705 -505
- package/dist/erpnext/doctypes/deliveryNote.js +4 -10
- package/dist/erpnext/doctypes/item.d.ts +231 -324
- package/dist/erpnext/doctypes/paymentEntry.d.ts +820 -0
- package/dist/erpnext/doctypes/paymentEntry.js +72 -0
- package/dist/erpnext/doctypes/productBundle.d.ts +48 -58
- package/dist/erpnext/doctypes/purchaseInvoice.d.ts +717 -745
- package/dist/erpnext/doctypes/purchaseReceipt.d.ts +282 -332
- package/dist/erpnext/doctypes/salesInvoice.d.ts +3334 -0
- package/dist/erpnext/doctypes/salesInvoice.js +72 -0
- package/dist/erpnext/doctypes/servicecase.d.ts +191 -134
- package/dist/erpnext/doctypes/servicecase.js +4 -6
- package/dist/erpnext/doctypes/shipment.d.ts +193 -251
- package/dist/erpnext/doctypes/tags.d.ts +10 -0
- package/dist/erpnext/doctypes/tags.js +102 -0
- package/dist/erpnext/model/Account.d.ts +0 -33
- package/dist/erpnext/model/Account.js +0 -11
- package/dist/erpnext/model/Address.d.ts +112 -233
- package/dist/erpnext/model/Address.js +11 -49
- package/dist/erpnext/model/Attachment.d.ts +0 -3
- package/dist/erpnext/model/Attachment.js +0 -1
- package/dist/erpnext/model/Boolean.d.ts +4 -0
- package/dist/erpnext/model/Boolean.js +9 -0
- package/dist/erpnext/model/Compliance.d.ts +0 -112
- package/dist/erpnext/model/Compliance.js +0 -19
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.d.ts +26 -138
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.js +0 -19
- package/dist/erpnext/model/Contact.d.ts +166 -416
- package/dist/erpnext/model/Contact.js +16 -69
- package/dist/erpnext/model/Country.d.ts +0 -64
- package/dist/erpnext/model/Country.js +0 -10
- package/dist/erpnext/model/Customer.d.ts +39 -64
- package/dist/erpnext/model/Customer.js +11 -25
- package/dist/erpnext/model/DeliveryNote.d.ts +125 -1168
- package/dist/erpnext/model/DeliveryNote.js +5 -51
- package/dist/erpnext/model/DispatchRun.d.ts +4 -110
- package/dist/erpnext/model/DispatchRun.js +1 -30
- package/dist/erpnext/model/DispatcherPreset.d.ts +0 -119
- package/dist/erpnext/model/DispatcherPreset.js +1 -27
- package/dist/erpnext/model/DocInfo.d.ts +41 -339
- package/dist/erpnext/model/DocInfo.js +5 -6
- package/dist/erpnext/model/DocTypeHelpers.d.ts +160 -2
- package/dist/erpnext/model/DocTypeHelpers.js +124 -1
- package/dist/erpnext/model/ERPNextDocTypeMeta.d.ts +137 -0
- package/dist/erpnext/model/ERPNextDocTypeMeta.js +42 -0
- package/dist/erpnext/model/ERPNextRequest.d.ts +5 -5
- package/dist/erpnext/model/File.d.ts +0 -48
- package/dist/erpnext/model/File.js +0 -8
- package/dist/erpnext/model/Fulfiller.d.ts +0 -121
- package/dist/erpnext/model/Fulfiller.js +1 -56
- package/dist/erpnext/model/FulfillerSettings.d.ts +0 -39
- package/dist/erpnext/model/FulfillerSettings.js +0 -6
- package/dist/erpnext/model/InternalReasons.d.ts +0 -3
- package/dist/erpnext/model/InternalReasons.js +0 -1
- package/dist/erpnext/model/Item.d.ts +488 -1847
- package/dist/erpnext/model/Item.js +18 -142
- package/dist/erpnext/model/ItemTaxTemplate.d.ts +57 -0
- package/dist/erpnext/model/ItemTaxTemplate.js +25 -0
- package/dist/erpnext/model/Logs.d.ts +0 -9
- package/dist/erpnext/model/Logs.js +0 -3
- package/dist/erpnext/model/PartList.d.ts +0 -15
- package/dist/erpnext/model/PartList.js +0 -5
- package/dist/erpnext/model/PaymentEntry.d.ts +302 -122
- package/dist/erpnext/model/PaymentEntry.js +52 -48
- package/dist/erpnext/model/Permissions.d.ts +3 -3
- package/dist/erpnext/model/Permissions.js +1 -1
- package/dist/erpnext/model/ProductBundle.d.ts +6 -107
- package/dist/erpnext/model/ProductBundle.js +0 -17
- package/dist/erpnext/model/PurchaseInvoice.d.ts +319 -389
- package/dist/erpnext/model/PurchaseInvoice.js +5 -24
- package/dist/erpnext/model/PurchaseOrder.d.ts +38 -184
- package/dist/erpnext/model/PurchaseOrder.js +0 -34
- package/dist/erpnext/model/Receipt.d.ts +32 -123
- package/dist/erpnext/model/Receipt.js +2 -25
- package/dist/erpnext/model/ReceiptDraft.d.ts +28 -70
- package/dist/erpnext/model/ReceiptDraft.js +2 -12
- package/dist/erpnext/model/Report.d.ts +0 -40
- package/dist/erpnext/model/Report.js +0 -8
- package/dist/erpnext/model/SalesInvoice.d.ts +2445 -0
- package/dist/erpnext/model/SalesInvoice.js +330 -0
- package/dist/erpnext/model/SalesOrder.d.ts +1061 -0
- package/dist/erpnext/model/SalesOrder.js +272 -0
- package/dist/erpnext/model/SalesTaxesAndCharges.d.ts +47 -0
- package/dist/erpnext/model/SalesTaxesAndCharges.js +30 -0
- package/dist/erpnext/model/Servicecase.d.ts +283 -728
- package/dist/erpnext/model/Servicecase.js +30 -108
- package/dist/erpnext/model/ServicecaseReason.d.ts +0 -8
- package/dist/erpnext/model/ServicecaseReason.js +0 -2
- package/dist/erpnext/model/ServicecaseSolution.d.ts +0 -3
- package/dist/erpnext/model/ServicecaseSolution.js +0 -1
- package/dist/erpnext/model/ServiceportalProductConfiguration.d.ts +27 -452
- package/dist/erpnext/model/ServiceportalProductConfiguration.js +16 -47
- package/dist/erpnext/model/Shipment.d.ts +18 -715
- package/dist/erpnext/model/Shipment.js +1 -69
- package/dist/erpnext/model/ShippingFees.d.ts +2 -2
- package/dist/erpnext/model/ShippingLabel.d.ts +0 -32
- package/dist/erpnext/model/ShippingLabel.js +0 -8
- package/dist/erpnext/model/ShippingProvider.d.ts +6 -87
- package/dist/erpnext/model/ShippingProvider.js +3 -6
- package/dist/erpnext/model/Stock.d.ts +0 -40
- package/dist/erpnext/model/Stock.js +0 -8
- package/dist/erpnext/model/StockEntry.d.ts +14 -47
- package/dist/erpnext/model/StockEntry.js +0 -11
- package/dist/erpnext/model/StockReconciliation.d.ts +5 -32
- package/dist/erpnext/model/StockReconciliation.js +0 -10
- package/dist/erpnext/model/Supplier.d.ts +0 -79
- package/dist/erpnext/model/Supplier.js +0 -8
- package/dist/erpnext/model/TaxCategory.d.ts +20 -0
- package/dist/erpnext/model/TaxCategory.js +16 -0
- package/dist/erpnext/model/Version.d.ts +0 -9
- package/dist/erpnext/model/Version.js +0 -3
- package/dist/erpnext/model/Waitlist.d.ts +0 -3
- package/dist/erpnext/model/Waitlist.js +0 -1
- package/dist/erpnext/model/WarehouseCategory.d.ts +0 -11
- package/dist/erpnext/model/WarehouseCategory.js +1 -7
- package/dist/erpnext/reports.js +3 -7
- package/dist/erpnext/resourceRequest.d.ts +13 -11
- package/dist/erpnext/resourceRequest.js +34 -23
- package/dist/index.d.ts +23 -11
- package/dist/index.js +31 -12
- package/dist/index.test.d.ts +1 -0
- package/dist/index.test.js +261 -0
- package/dist/utils/utils.d.ts +3 -0
- package/dist/utils/zodContextOptionals.d.ts +14 -0
- package/dist/utils/zodContextOptionals.js +45 -0
- package/dist/utils/zodUtils.js +16 -3
- package/package.json +6 -1
|
@@ -1,50 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const InternalReasonList: z.ZodObject<{
|
|
3
|
-
name: z.ZodString;
|
|
4
|
-
owner: z.ZodString;
|
|
5
|
-
creation: z.ZodString;
|
|
6
|
-
modified: z.ZodString;
|
|
7
|
-
modified_by: z.ZodString;
|
|
8
|
-
docstatus: z.ZodNumber;
|
|
9
|
-
idx: z.ZodNumber;
|
|
10
3
|
internal_reason: z.ZodString;
|
|
11
|
-
parent: z.ZodString;
|
|
12
|
-
parentfield: z.ZodString;
|
|
13
|
-
parenttype: z.ZodString;
|
|
14
|
-
doctype: z.ZodLiteral<"Internal Reasons List">;
|
|
15
4
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
name: string;
|
|
17
|
-
doctype: "Internal Reasons List";
|
|
18
|
-
owner: string;
|
|
19
|
-
creation: string;
|
|
20
|
-
modified: string;
|
|
21
|
-
modified_by: string;
|
|
22
|
-
parent: string;
|
|
23
|
-
parentfield: string;
|
|
24
|
-
parenttype: string;
|
|
25
|
-
idx: number;
|
|
26
|
-
docstatus: number;
|
|
27
5
|
internal_reason: string;
|
|
28
6
|
}, {
|
|
29
|
-
name: string;
|
|
30
|
-
doctype: "Internal Reasons List";
|
|
31
|
-
owner: string;
|
|
32
|
-
creation: string;
|
|
33
|
-
modified: string;
|
|
34
|
-
modified_by: string;
|
|
35
|
-
parent: string;
|
|
36
|
-
parentfield: string;
|
|
37
|
-
parenttype: string;
|
|
38
|
-
idx: number;
|
|
39
|
-
docstatus: number;
|
|
40
7
|
internal_reason: string;
|
|
41
8
|
}>;
|
|
42
9
|
export declare const ServiceportalProductConfiguration: z.ZodObject<{
|
|
43
|
-
name: z.ZodString;
|
|
44
|
-
owner: z.ZodString;
|
|
45
|
-
creation: z.ZodString;
|
|
46
|
-
modified: z.ZodString;
|
|
47
|
-
modified_by: z.ZodString;
|
|
48
10
|
title: z.ZodString;
|
|
49
11
|
return_fee: z.ZodNumber;
|
|
50
12
|
return_fee_explanation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -60,265 +22,24 @@ export declare const ServiceportalProductConfiguration: z.ZodObject<{
|
|
|
60
22
|
country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
61
23
|
fee: z.ZodNumber;
|
|
62
24
|
}, "strip", z.ZodTypeAny, {
|
|
63
|
-
name: string;
|
|
64
|
-
owner: string;
|
|
65
|
-
creation: string;
|
|
66
|
-
modified: string;
|
|
67
|
-
modified_by: string;
|
|
68
|
-
idx: number;
|
|
69
25
|
docstatus: number;
|
|
70
|
-
shipping_provider: string;
|
|
71
|
-
fee: number;
|
|
72
|
-
country?: string | null | undefined;
|
|
73
|
-
}, {
|
|
74
26
|
name: string;
|
|
75
27
|
owner: string;
|
|
76
28
|
creation: string;
|
|
77
29
|
modified: string;
|
|
78
30
|
modified_by: string;
|
|
79
31
|
idx: number;
|
|
80
|
-
docstatus: number;
|
|
81
32
|
shipping_provider: string;
|
|
82
33
|
fee: number;
|
|
83
34
|
country?: string | null | undefined;
|
|
84
|
-
}>, "many">;
|
|
85
|
-
is_ask_for_batch_number: z.ZodNumber;
|
|
86
|
-
batch_number_location_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
87
|
-
return_conditions: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
88
|
-
doctype: z.ZodLiteral<"Serviceportal Product Configuration">;
|
|
89
|
-
batch_numbers: z.ZodArray<z.ZodObject<{
|
|
90
|
-
name: z.ZodString;
|
|
91
|
-
owner: z.ZodString;
|
|
92
|
-
creation: z.ZodString;
|
|
93
|
-
modified: z.ZodString;
|
|
94
|
-
modified_by: z.ZodString;
|
|
95
|
-
docstatus: z.ZodNumber;
|
|
96
|
-
idx: z.ZodNumber;
|
|
97
|
-
batch_number: z.ZodString;
|
|
98
|
-
parent: z.ZodString;
|
|
99
|
-
parentfield: z.ZodString;
|
|
100
|
-
parenttype: z.ZodString;
|
|
101
|
-
doctype: z.ZodLiteral<"Batch Number List">;
|
|
102
|
-
}, "strip", z.ZodTypeAny, {
|
|
103
|
-
name: string;
|
|
104
|
-
doctype: "Batch Number List";
|
|
105
|
-
owner: string;
|
|
106
|
-
creation: string;
|
|
107
|
-
modified: string;
|
|
108
|
-
modified_by: string;
|
|
109
|
-
parent: string;
|
|
110
|
-
parentfield: string;
|
|
111
|
-
parenttype: string;
|
|
112
|
-
idx: number;
|
|
113
|
-
docstatus: number;
|
|
114
|
-
batch_number: string;
|
|
115
35
|
}, {
|
|
116
|
-
name: string;
|
|
117
|
-
doctype: "Batch Number List";
|
|
118
|
-
owner: string;
|
|
119
|
-
creation: string;
|
|
120
|
-
modified: string;
|
|
121
|
-
modified_by: string;
|
|
122
|
-
parent: string;
|
|
123
|
-
parentfield: string;
|
|
124
|
-
parenttype: string;
|
|
125
|
-
idx: number;
|
|
126
|
-
docstatus: number;
|
|
127
|
-
batch_number: string;
|
|
128
|
-
}>, "many">;
|
|
129
|
-
internal_reasons: z.ZodArray<z.ZodObject<{
|
|
130
|
-
name: z.ZodString;
|
|
131
|
-
owner: z.ZodString;
|
|
132
|
-
creation: z.ZodString;
|
|
133
|
-
modified: z.ZodString;
|
|
134
|
-
modified_by: z.ZodString;
|
|
135
|
-
docstatus: z.ZodNumber;
|
|
136
|
-
idx: z.ZodNumber;
|
|
137
|
-
internal_reason: z.ZodString;
|
|
138
|
-
parent: z.ZodString;
|
|
139
|
-
parentfield: z.ZodString;
|
|
140
|
-
parenttype: z.ZodString;
|
|
141
|
-
doctype: z.ZodLiteral<"Internal Reasons List">;
|
|
142
|
-
}, "strip", z.ZodTypeAny, {
|
|
143
|
-
name: string;
|
|
144
|
-
doctype: "Internal Reasons List";
|
|
145
|
-
owner: string;
|
|
146
|
-
creation: string;
|
|
147
|
-
modified: string;
|
|
148
|
-
modified_by: string;
|
|
149
|
-
parent: string;
|
|
150
|
-
parentfield: string;
|
|
151
|
-
parenttype: string;
|
|
152
|
-
idx: number;
|
|
153
|
-
docstatus: number;
|
|
154
|
-
internal_reason: string;
|
|
155
|
-
}, {
|
|
156
|
-
name: string;
|
|
157
|
-
doctype: "Internal Reasons List";
|
|
158
|
-
owner: string;
|
|
159
|
-
creation: string;
|
|
160
|
-
modified: string;
|
|
161
|
-
modified_by: string;
|
|
162
|
-
parent: string;
|
|
163
|
-
parentfield: string;
|
|
164
|
-
parenttype: string;
|
|
165
|
-
idx: number;
|
|
166
|
-
docstatus: number;
|
|
167
|
-
internal_reason: string;
|
|
168
|
-
}>, "many">;
|
|
169
|
-
return_shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
170
|
-
return_instructions: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
171
|
-
}, "strip", z.ZodTypeAny, {
|
|
172
|
-
name: string;
|
|
173
|
-
doctype: "Serviceportal Product Configuration";
|
|
174
|
-
owner: string;
|
|
175
|
-
creation: string;
|
|
176
|
-
modified: string;
|
|
177
|
-
modified_by: string;
|
|
178
|
-
title: string;
|
|
179
|
-
internal_reasons: {
|
|
180
|
-
name: string;
|
|
181
|
-
doctype: "Internal Reasons List";
|
|
182
|
-
owner: string;
|
|
183
|
-
creation: string;
|
|
184
|
-
modified: string;
|
|
185
|
-
modified_by: string;
|
|
186
|
-
parent: string;
|
|
187
|
-
parentfield: string;
|
|
188
|
-
parenttype: string;
|
|
189
|
-
idx: number;
|
|
190
|
-
docstatus: number;
|
|
191
|
-
internal_reason: string;
|
|
192
|
-
}[];
|
|
193
|
-
return_fee: number;
|
|
194
|
-
return_fees: {
|
|
195
|
-
name: string;
|
|
196
|
-
owner: string;
|
|
197
|
-
creation: string;
|
|
198
|
-
modified: string;
|
|
199
|
-
modified_by: string;
|
|
200
|
-
idx: number;
|
|
201
|
-
docstatus: number;
|
|
202
|
-
shipping_provider: string;
|
|
203
|
-
fee: number;
|
|
204
|
-
country?: string | null | undefined;
|
|
205
|
-
}[];
|
|
206
|
-
is_ask_for_batch_number: number;
|
|
207
|
-
batch_numbers: {
|
|
208
|
-
name: string;
|
|
209
|
-
doctype: "Batch Number List";
|
|
210
|
-
owner: string;
|
|
211
|
-
creation: string;
|
|
212
|
-
modified: string;
|
|
213
|
-
modified_by: string;
|
|
214
|
-
parent: string;
|
|
215
|
-
parentfield: string;
|
|
216
|
-
parenttype: string;
|
|
217
|
-
idx: number;
|
|
218
|
-
docstatus: number;
|
|
219
|
-
batch_number: string;
|
|
220
|
-
}[];
|
|
221
|
-
return_fee_explanation?: string | null | undefined;
|
|
222
|
-
batch_number_location_description?: string | null | undefined;
|
|
223
|
-
return_conditions?: string | null | undefined;
|
|
224
|
-
return_shipping_provider?: string | null | undefined;
|
|
225
|
-
return_instructions?: string | null | undefined;
|
|
226
|
-
}, {
|
|
227
|
-
name: string;
|
|
228
|
-
doctype: "Serviceportal Product Configuration";
|
|
229
|
-
owner: string;
|
|
230
|
-
creation: string;
|
|
231
|
-
modified: string;
|
|
232
|
-
modified_by: string;
|
|
233
|
-
title: string;
|
|
234
|
-
internal_reasons: {
|
|
235
|
-
name: string;
|
|
236
|
-
doctype: "Internal Reasons List";
|
|
237
|
-
owner: string;
|
|
238
|
-
creation: string;
|
|
239
|
-
modified: string;
|
|
240
|
-
modified_by: string;
|
|
241
|
-
parent: string;
|
|
242
|
-
parentfield: string;
|
|
243
|
-
parenttype: string;
|
|
244
|
-
idx: number;
|
|
245
|
-
docstatus: number;
|
|
246
|
-
internal_reason: string;
|
|
247
|
-
}[];
|
|
248
|
-
return_fee: number;
|
|
249
|
-
return_fees: {
|
|
250
|
-
name: string;
|
|
251
|
-
owner: string;
|
|
252
|
-
creation: string;
|
|
253
|
-
modified: string;
|
|
254
|
-
modified_by: string;
|
|
255
|
-
idx: number;
|
|
256
|
-
docstatus: number;
|
|
257
|
-
shipping_provider: string;
|
|
258
|
-
fee: number;
|
|
259
|
-
country?: string | null | undefined;
|
|
260
|
-
}[];
|
|
261
|
-
is_ask_for_batch_number: number;
|
|
262
|
-
batch_numbers: {
|
|
263
|
-
name: string;
|
|
264
|
-
doctype: "Batch Number List";
|
|
265
|
-
owner: string;
|
|
266
|
-
creation: string;
|
|
267
|
-
modified: string;
|
|
268
|
-
modified_by: string;
|
|
269
|
-
parent: string;
|
|
270
|
-
parentfield: string;
|
|
271
|
-
parenttype: string;
|
|
272
|
-
idx: number;
|
|
273
36
|
docstatus: number;
|
|
274
|
-
batch_number: string;
|
|
275
|
-
}[];
|
|
276
|
-
return_fee_explanation?: string | null | undefined;
|
|
277
|
-
batch_number_location_description?: string | null | undefined;
|
|
278
|
-
return_conditions?: string | null | undefined;
|
|
279
|
-
return_shipping_provider?: string | null | undefined;
|
|
280
|
-
return_instructions?: string | null | undefined;
|
|
281
|
-
}>;
|
|
282
|
-
export type ServiceportalProductConfigurationType = z.infer<typeof ServiceportalProductConfiguration>;
|
|
283
|
-
export declare const ServiceportalProductConfigurationInput: z.ZodObject<Omit<{
|
|
284
|
-
name: z.ZodString;
|
|
285
|
-
owner: z.ZodString;
|
|
286
|
-
creation: z.ZodString;
|
|
287
|
-
modified: z.ZodString;
|
|
288
|
-
modified_by: z.ZodString;
|
|
289
|
-
title: z.ZodString;
|
|
290
|
-
return_fee: z.ZodNumber;
|
|
291
|
-
return_fee_explanation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
292
|
-
return_fees: z.ZodArray<z.ZodObject<{
|
|
293
|
-
name: z.ZodString;
|
|
294
|
-
owner: z.ZodString;
|
|
295
|
-
creation: z.ZodString;
|
|
296
|
-
modified: z.ZodString;
|
|
297
|
-
modified_by: z.ZodString;
|
|
298
|
-
idx: z.ZodNumber;
|
|
299
|
-
docstatus: z.ZodNumber;
|
|
300
|
-
shipping_provider: z.ZodString;
|
|
301
|
-
country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
302
|
-
fee: z.ZodNumber;
|
|
303
|
-
}, "strip", z.ZodTypeAny, {
|
|
304
37
|
name: string;
|
|
305
38
|
owner: string;
|
|
306
39
|
creation: string;
|
|
307
40
|
modified: string;
|
|
308
41
|
modified_by: string;
|
|
309
42
|
idx: number;
|
|
310
|
-
docstatus: number;
|
|
311
|
-
shipping_provider: string;
|
|
312
|
-
fee: number;
|
|
313
|
-
country?: string | null | undefined;
|
|
314
|
-
}, {
|
|
315
|
-
name: string;
|
|
316
|
-
owner: string;
|
|
317
|
-
creation: string;
|
|
318
|
-
modified: string;
|
|
319
|
-
modified_by: string;
|
|
320
|
-
idx: number;
|
|
321
|
-
docstatus: number;
|
|
322
43
|
shipping_provider: string;
|
|
323
44
|
fee: number;
|
|
324
45
|
country?: string | null | undefined;
|
|
@@ -326,141 +47,36 @@ export declare const ServiceportalProductConfigurationInput: z.ZodObject<Omit<{
|
|
|
326
47
|
is_ask_for_batch_number: z.ZodNumber;
|
|
327
48
|
batch_number_location_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
328
49
|
return_conditions: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
329
|
-
doctype: z.ZodLiteral<"Serviceportal Product Configuration">;
|
|
330
50
|
batch_numbers: z.ZodArray<z.ZodObject<{
|
|
331
|
-
name: z.ZodString;
|
|
332
|
-
owner: z.ZodString;
|
|
333
|
-
creation: z.ZodString;
|
|
334
|
-
modified: z.ZodString;
|
|
335
|
-
modified_by: z.ZodString;
|
|
336
|
-
docstatus: z.ZodNumber;
|
|
337
|
-
idx: z.ZodNumber;
|
|
338
51
|
batch_number: z.ZodString;
|
|
339
|
-
parent: z.ZodString;
|
|
340
|
-
parentfield: z.ZodString;
|
|
341
|
-
parenttype: z.ZodString;
|
|
342
|
-
doctype: z.ZodLiteral<"Batch Number List">;
|
|
343
52
|
}, "strip", z.ZodTypeAny, {
|
|
344
|
-
name: string;
|
|
345
|
-
doctype: "Batch Number List";
|
|
346
|
-
owner: string;
|
|
347
|
-
creation: string;
|
|
348
|
-
modified: string;
|
|
349
|
-
modified_by: string;
|
|
350
|
-
parent: string;
|
|
351
|
-
parentfield: string;
|
|
352
|
-
parenttype: string;
|
|
353
|
-
idx: number;
|
|
354
|
-
docstatus: number;
|
|
355
53
|
batch_number: string;
|
|
356
54
|
}, {
|
|
357
|
-
name: string;
|
|
358
|
-
doctype: "Batch Number List";
|
|
359
|
-
owner: string;
|
|
360
|
-
creation: string;
|
|
361
|
-
modified: string;
|
|
362
|
-
modified_by: string;
|
|
363
|
-
parent: string;
|
|
364
|
-
parentfield: string;
|
|
365
|
-
parenttype: string;
|
|
366
|
-
idx: number;
|
|
367
|
-
docstatus: number;
|
|
368
55
|
batch_number: string;
|
|
369
56
|
}>, "many">;
|
|
370
57
|
internal_reasons: z.ZodArray<z.ZodObject<{
|
|
371
|
-
name: z.ZodString;
|
|
372
|
-
owner: z.ZodString;
|
|
373
|
-
creation: z.ZodString;
|
|
374
|
-
modified: z.ZodString;
|
|
375
|
-
modified_by: z.ZodString;
|
|
376
|
-
docstatus: z.ZodNumber;
|
|
377
|
-
idx: z.ZodNumber;
|
|
378
58
|
internal_reason: z.ZodString;
|
|
379
|
-
parent: z.ZodString;
|
|
380
|
-
parentfield: z.ZodString;
|
|
381
|
-
parenttype: z.ZodString;
|
|
382
|
-
doctype: z.ZodLiteral<"Internal Reasons List">;
|
|
383
59
|
}, "strip", z.ZodTypeAny, {
|
|
384
|
-
name: string;
|
|
385
|
-
doctype: "Internal Reasons List";
|
|
386
|
-
owner: string;
|
|
387
|
-
creation: string;
|
|
388
|
-
modified: string;
|
|
389
|
-
modified_by: string;
|
|
390
|
-
parent: string;
|
|
391
|
-
parentfield: string;
|
|
392
|
-
parenttype: string;
|
|
393
|
-
idx: number;
|
|
394
|
-
docstatus: number;
|
|
395
60
|
internal_reason: string;
|
|
396
61
|
}, {
|
|
397
|
-
name: string;
|
|
398
|
-
doctype: "Internal Reasons List";
|
|
399
|
-
owner: string;
|
|
400
|
-
creation: string;
|
|
401
|
-
modified: string;
|
|
402
|
-
modified_by: string;
|
|
403
|
-
parent: string;
|
|
404
|
-
parentfield: string;
|
|
405
|
-
parenttype: string;
|
|
406
|
-
idx: number;
|
|
407
|
-
docstatus: number;
|
|
408
62
|
internal_reason: string;
|
|
409
63
|
}>, "many">;
|
|
410
64
|
return_shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
411
65
|
return_instructions: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
412
|
-
}, "name" | "owner" | "creation" | "modified" | "modified_by" | "internal_reasons" | "batch_numbers"> & {
|
|
413
|
-
batch_numbers: z.ZodArray<z.ZodObject<Pick<{
|
|
414
|
-
name: z.ZodString;
|
|
415
|
-
owner: z.ZodString;
|
|
416
|
-
creation: z.ZodString;
|
|
417
|
-
modified: z.ZodString;
|
|
418
|
-
modified_by: z.ZodString;
|
|
419
|
-
docstatus: z.ZodNumber;
|
|
420
|
-
idx: z.ZodNumber;
|
|
421
|
-
batch_number: z.ZodString;
|
|
422
|
-
parent: z.ZodString;
|
|
423
|
-
parentfield: z.ZodString;
|
|
424
|
-
parenttype: z.ZodString;
|
|
425
|
-
doctype: z.ZodLiteral<"Batch Number List">;
|
|
426
|
-
}, "batch_number">, "strip", z.ZodTypeAny, {
|
|
427
|
-
batch_number: string;
|
|
428
|
-
}, {
|
|
429
|
-
batch_number: string;
|
|
430
|
-
}>, "many">;
|
|
431
|
-
internal_reasons: z.ZodArray<z.ZodObject<Pick<{
|
|
432
|
-
name: z.ZodString;
|
|
433
|
-
owner: z.ZodString;
|
|
434
|
-
creation: z.ZodString;
|
|
435
|
-
modified: z.ZodString;
|
|
436
|
-
modified_by: z.ZodString;
|
|
437
|
-
docstatus: z.ZodNumber;
|
|
438
|
-
idx: z.ZodNumber;
|
|
439
|
-
internal_reason: z.ZodString;
|
|
440
|
-
parent: z.ZodString;
|
|
441
|
-
parentfield: z.ZodString;
|
|
442
|
-
parenttype: z.ZodString;
|
|
443
|
-
doctype: z.ZodLiteral<"Internal Reasons List">;
|
|
444
|
-
}, "internal_reason">, "strip", z.ZodTypeAny, {
|
|
445
|
-
internal_reason: string;
|
|
446
|
-
}, {
|
|
447
|
-
internal_reason: string;
|
|
448
|
-
}>, "many">;
|
|
449
66
|
}, "strip", z.ZodTypeAny, {
|
|
450
|
-
doctype: "Serviceportal Product Configuration";
|
|
451
67
|
title: string;
|
|
452
68
|
internal_reasons: {
|
|
453
69
|
internal_reason: string;
|
|
454
70
|
}[];
|
|
455
71
|
return_fee: number;
|
|
456
72
|
return_fees: {
|
|
73
|
+
docstatus: number;
|
|
457
74
|
name: string;
|
|
458
75
|
owner: string;
|
|
459
76
|
creation: string;
|
|
460
77
|
modified: string;
|
|
461
78
|
modified_by: string;
|
|
462
79
|
idx: number;
|
|
463
|
-
docstatus: number;
|
|
464
80
|
shipping_provider: string;
|
|
465
81
|
fee: number;
|
|
466
82
|
country?: string | null | undefined;
|
|
@@ -475,20 +91,19 @@ export declare const ServiceportalProductConfigurationInput: z.ZodObject<Omit<{
|
|
|
475
91
|
return_shipping_provider?: string | null | undefined;
|
|
476
92
|
return_instructions?: string | null | undefined;
|
|
477
93
|
}, {
|
|
478
|
-
doctype: "Serviceportal Product Configuration";
|
|
479
94
|
title: string;
|
|
480
95
|
internal_reasons: {
|
|
481
96
|
internal_reason: string;
|
|
482
97
|
}[];
|
|
483
98
|
return_fee: number;
|
|
484
99
|
return_fees: {
|
|
100
|
+
docstatus: number;
|
|
485
101
|
name: string;
|
|
486
102
|
owner: string;
|
|
487
103
|
creation: string;
|
|
488
104
|
modified: string;
|
|
489
105
|
modified_by: string;
|
|
490
106
|
idx: number;
|
|
491
|
-
docstatus: number;
|
|
492
107
|
shipping_provider: string;
|
|
493
108
|
fee: number;
|
|
494
109
|
country?: string | null | undefined;
|
|
@@ -503,10 +118,10 @@ export declare const ServiceportalProductConfigurationInput: z.ZodObject<Omit<{
|
|
|
503
118
|
return_shipping_provider?: string | null | undefined;
|
|
504
119
|
return_instructions?: string | null | undefined;
|
|
505
120
|
}>;
|
|
506
|
-
export type
|
|
121
|
+
export type ServiceportalProductConfigurationType = z.infer<typeof ServiceportalProductConfiguration>;
|
|
507
122
|
export declare const ServiceportalProductConfigurationMethodResponse: z.ZodObject<{
|
|
508
123
|
name: z.ZodString;
|
|
509
|
-
doctype: z.
|
|
124
|
+
doctype: z.ZodString;
|
|
510
125
|
title: z.ZodString;
|
|
511
126
|
return_fee: z.ZodNumber;
|
|
512
127
|
return_fee_explanation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -517,72 +132,43 @@ export declare const ServiceportalProductConfigurationMethodResponse: z.ZodObjec
|
|
|
517
132
|
return_instructions: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
518
133
|
} & {
|
|
519
134
|
return_fees: z.ZodArray<z.ZodObject<Pick<{
|
|
135
|
+
[x: string]: z.ZodTypeAny;
|
|
136
|
+
} & {
|
|
520
137
|
name: z.ZodString;
|
|
521
138
|
owner: z.ZodString;
|
|
522
139
|
creation: z.ZodString;
|
|
523
140
|
modified: z.ZodString;
|
|
524
141
|
modified_by: z.ZodString;
|
|
525
142
|
idx: z.ZodNumber;
|
|
526
|
-
docstatus: z.ZodNumber
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
fee: number;
|
|
533
|
-
country?: string | null | undefined;
|
|
534
|
-
}, {
|
|
535
|
-
shipping_provider: string;
|
|
536
|
-
fee: number;
|
|
537
|
-
country?: string | null | undefined;
|
|
538
|
-
}>, "many">;
|
|
143
|
+
docstatus: z.ZodDefault<z.ZodNumber> & {
|
|
144
|
+
__optionalForInput: true;
|
|
145
|
+
};
|
|
146
|
+
doctype: z.ZodString;
|
|
147
|
+
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
148
|
+
}, never>, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>, "many">;
|
|
539
149
|
batch_numbers: z.ZodArray<z.ZodObject<Pick<{
|
|
150
|
+
[x: string]: z.ZodTypeAny;
|
|
151
|
+
} & {
|
|
540
152
|
name: z.ZodString;
|
|
541
153
|
owner: z.ZodString;
|
|
542
154
|
creation: z.ZodString;
|
|
543
155
|
modified: z.ZodString;
|
|
544
156
|
modified_by: z.ZodString;
|
|
545
|
-
docstatus: z.ZodNumber;
|
|
546
157
|
idx: z.ZodNumber;
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
},
|
|
553
|
-
|
|
554
|
-
parent: string;
|
|
555
|
-
parentfield: string;
|
|
556
|
-
parenttype: string;
|
|
557
|
-
idx: number;
|
|
558
|
-
batch_number: string;
|
|
559
|
-
}, {
|
|
560
|
-
doctype: "Batch Number List";
|
|
561
|
-
parent: string;
|
|
562
|
-
parentfield: string;
|
|
563
|
-
parenttype: string;
|
|
564
|
-
idx: number;
|
|
565
|
-
batch_number: string;
|
|
566
|
-
}>, "many">;
|
|
567
|
-
}, "strip", z.ZodTypeAny, {
|
|
158
|
+
docstatus: z.ZodDefault<z.ZodNumber> & {
|
|
159
|
+
__optionalForInput: true;
|
|
160
|
+
};
|
|
161
|
+
doctype: z.ZodString;
|
|
162
|
+
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
163
|
+
}, never>, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>, "many">;
|
|
164
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
568
165
|
name: string;
|
|
569
|
-
doctype:
|
|
166
|
+
doctype: string;
|
|
570
167
|
title: string;
|
|
571
168
|
return_fee: number;
|
|
572
|
-
return_fees: {
|
|
573
|
-
shipping_provider: string;
|
|
574
|
-
fee: number;
|
|
575
|
-
country?: string | null | undefined;
|
|
576
|
-
}[];
|
|
169
|
+
return_fees: {}[];
|
|
577
170
|
is_ask_for_batch_number: number;
|
|
578
|
-
batch_numbers: {
|
|
579
|
-
doctype: "Batch Number List";
|
|
580
|
-
parent: string;
|
|
581
|
-
parentfield: string;
|
|
582
|
-
parenttype: string;
|
|
583
|
-
idx: number;
|
|
584
|
-
batch_number: string;
|
|
585
|
-
}[];
|
|
171
|
+
batch_numbers: {}[];
|
|
586
172
|
return_fee_explanation?: string | null | undefined;
|
|
587
173
|
batch_number_location_description?: string | null | undefined;
|
|
588
174
|
return_conditions?: string | null | undefined;
|
|
@@ -590,23 +176,12 @@ export declare const ServiceportalProductConfigurationMethodResponse: z.ZodObjec
|
|
|
590
176
|
return_instructions?: string | null | undefined;
|
|
591
177
|
}, {
|
|
592
178
|
name: string;
|
|
593
|
-
doctype:
|
|
179
|
+
doctype: string;
|
|
594
180
|
title: string;
|
|
595
181
|
return_fee: number;
|
|
596
|
-
return_fees: {
|
|
597
|
-
shipping_provider: string;
|
|
598
|
-
fee: number;
|
|
599
|
-
country?: string | null | undefined;
|
|
600
|
-
}[];
|
|
182
|
+
return_fees: {}[];
|
|
601
183
|
is_ask_for_batch_number: number;
|
|
602
|
-
batch_numbers: {
|
|
603
|
-
doctype: "Batch Number List";
|
|
604
|
-
parent: string;
|
|
605
|
-
parentfield: string;
|
|
606
|
-
parenttype: string;
|
|
607
|
-
idx: number;
|
|
608
|
-
batch_number: string;
|
|
609
|
-
}[];
|
|
184
|
+
batch_numbers: {}[];
|
|
610
185
|
return_fee_explanation?: string | null | undefined;
|
|
611
186
|
batch_number_location_description?: string | null | undefined;
|
|
612
187
|
return_conditions?: string | null | undefined;
|