erpnext-queue-client 1.38.0 → 2.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +2 -2
- 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 +121 -4
- package/dist/erpnext/doctypeSubmittableResourceRequest.js +14 -1
- package/dist/erpnext/doctypes/address.d.ts +154 -219
- package/dist/erpnext/doctypes/address.js +0 -2
- package/dist/erpnext/doctypes/contact.d.ts +151 -308
- package/dist/erpnext/doctypes/contact.js +1 -1
- package/dist/erpnext/doctypes/deliveryNote.d.ts +644 -455
- package/dist/erpnext/doctypes/deliveryNote.js +4 -10
- package/dist/erpnext/doctypes/item.d.ts +215 -308
- package/dist/erpnext/doctypes/productBundle.d.ts +43 -53
- package/dist/erpnext/doctypes/purchaseInvoice.d.ts +669 -697
- package/dist/erpnext/doctypes/purchaseReceipt.d.ts +265 -314
- package/dist/erpnext/doctypes/salesInvoice.d.ts +3332 -0
- package/dist/erpnext/doctypes/salesInvoice.js +72 -0
- package/dist/erpnext/doctypes/servicecase.d.ts +197 -140
- package/dist/erpnext/doctypes/servicecase.js +4 -6
- package/dist/erpnext/doctypes/shipment.d.ts +168 -258
- 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/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 +124 -1170
- package/dist/erpnext/model/DeliveryNote.js +5 -52
- package/dist/erpnext/model/DispatchRun.d.ts +7 -113
- package/dist/erpnext/model/DispatchRun.js +2 -31
- 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 +141 -2
- package/dist/erpnext/model/DocTypeHelpers.js +132 -1
- package/dist/erpnext/model/ERPNextDocTypeMeta.d.ts +124 -0
- package/dist/erpnext/model/ERPNextDocTypeMeta.js +37 -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 +478 -1847
- package/dist/erpnext/model/Item.js +18 -142
- 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 +141 -128
- package/dist/erpnext/model/PaymentEntry.js +46 -47
- 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 +290 -362
- package/dist/erpnext/model/PurchaseInvoice.js +5 -23
- package/dist/erpnext/model/PurchaseOrder.d.ts +34 -180
- package/dist/erpnext/model/PurchaseOrder.js +0 -34
- package/dist/erpnext/model/Receipt.d.ts +30 -121
- package/dist/erpnext/model/Receipt.js +2 -25
- package/dist/erpnext/model/ReceiptDraft.d.ts +28 -67
- package/dist/erpnext/model/ReceiptDraft.js +2 -11
- package/dist/erpnext/model/Report.d.ts +0 -40
- package/dist/erpnext/model/Report.js +0 -8
- package/dist/erpnext/model/SalesInvoice.d.ts +2441 -0
- package/dist/erpnext/model/SalesInvoice.js +326 -0
- package/dist/erpnext/model/SalesOrder.d.ts +1043 -0
- package/dist/erpnext/model/SalesOrder.js +271 -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 +295 -740
- package/dist/erpnext/model/Servicecase.js +31 -116
- 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 +0 -575
- package/dist/erpnext/model/ServiceportalProductConfiguration.js +5 -50
- package/dist/erpnext/model/Shipment.d.ts +18 -729
- package/dist/erpnext/model/Shipment.js +1 -82
- 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 +6 -46
- package/dist/erpnext/model/Stock.js +0 -8
- package/dist/erpnext/model/StockEntry.d.ts +12 -45
- 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/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 +23 -18
- package/dist/index.d.ts +16 -10
- package/dist/index.js +24 -12
- package/dist/index.test.d.ts +1 -0
- package/dist/index.test.js +227 -0
- package/dist/utils/utils.d.ts +3 -0
- package/dist/utils/zodContextOptionals.d.ts +14 -0
- package/dist/utils/zodContextOptionals.js +42 -0
- package/dist/utils/zodUtils.js +2 -1
- package/package.json +2 -2
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.d.ts +0 -433
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.js +0 -102
- package/dist/erpnext/model/ShippingFees.d.ts +0 -36
- package/dist/erpnext/model/ShippingFees.js +0 -18
|
@@ -1,241 +1,73 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
declare const AttachmentChildTableEntry: z.ZodObject<{
|
|
3
|
+
url: z.ZodString;
|
|
4
|
+
type: z.ZodEnum<["image", "video"]>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
type: "image" | "video";
|
|
7
|
+
url: string;
|
|
8
|
+
}, {
|
|
9
|
+
type: "image" | "video";
|
|
10
|
+
url: string;
|
|
11
|
+
}>;
|
|
12
|
+
export type AttachmentChildTableEntryType = z.infer<typeof AttachmentChildTableEntry>;
|
|
2
13
|
export declare const AttachmentCollection: z.ZodObject<{
|
|
3
|
-
|
|
4
|
-
owner: z.ZodString;
|
|
5
|
-
creation: z.ZodString;
|
|
6
|
-
modified: z.ZodString;
|
|
7
|
-
modified_by: z.ZodString;
|
|
8
|
-
attachments: z.ZodArray<z.ZodObject<{
|
|
9
|
-
name: z.ZodString;
|
|
10
|
-
owner: z.ZodString;
|
|
11
|
-
creation: z.ZodString;
|
|
12
|
-
modified: z.ZodString;
|
|
13
|
-
modified_by: z.ZodString;
|
|
14
|
-
idx: z.ZodNumber;
|
|
14
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15
15
|
url: z.ZodString;
|
|
16
16
|
type: z.ZodEnum<["image", "video"]>;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
18
|
type: "image" | "video";
|
|
19
19
|
url: string;
|
|
20
|
-
name: string;
|
|
21
|
-
owner: string;
|
|
22
|
-
creation: string;
|
|
23
|
-
modified: string;
|
|
24
|
-
modified_by: string;
|
|
25
|
-
idx: number;
|
|
26
20
|
}, {
|
|
27
21
|
type: "image" | "video";
|
|
28
22
|
url: string;
|
|
29
|
-
|
|
30
|
-
owner: string;
|
|
31
|
-
creation: string;
|
|
32
|
-
modified: string;
|
|
33
|
-
modified_by: string;
|
|
34
|
-
idx: number;
|
|
35
|
-
}>, "many">;
|
|
23
|
+
}>, "many">>;
|
|
36
24
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
|
|
38
|
-
owner: string;
|
|
39
|
-
creation: string;
|
|
40
|
-
modified: string;
|
|
41
|
-
modified_by: string;
|
|
42
|
-
attachments: {
|
|
25
|
+
attachments?: {
|
|
43
26
|
type: "image" | "video";
|
|
44
27
|
url: string;
|
|
45
|
-
|
|
46
|
-
owner: string;
|
|
47
|
-
creation: string;
|
|
48
|
-
modified: string;
|
|
49
|
-
modified_by: string;
|
|
50
|
-
idx: number;
|
|
51
|
-
}[];
|
|
28
|
+
}[] | undefined;
|
|
52
29
|
}, {
|
|
53
|
-
|
|
54
|
-
owner: string;
|
|
55
|
-
creation: string;
|
|
56
|
-
modified: string;
|
|
57
|
-
modified_by: string;
|
|
58
|
-
attachments: {
|
|
30
|
+
attachments?: {
|
|
59
31
|
type: "image" | "video";
|
|
60
32
|
url: string;
|
|
61
|
-
|
|
62
|
-
owner: string;
|
|
63
|
-
creation: string;
|
|
64
|
-
modified: string;
|
|
65
|
-
modified_by: string;
|
|
66
|
-
idx: number;
|
|
67
|
-
}[];
|
|
33
|
+
}[] | undefined;
|
|
68
34
|
}>;
|
|
69
|
-
export
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
owner: z.ZodString;
|
|
73
|
-
creation: z.ZodString;
|
|
74
|
-
modified: z.ZodString;
|
|
75
|
-
modified_by: z.ZodString;
|
|
76
|
-
idx: z.ZodNumber;
|
|
77
|
-
url: z.ZodString;
|
|
78
|
-
type: z.ZodEnum<["image", "video"]>;
|
|
79
|
-
}, "name" | "owner" | "creation" | "modified" | "modified_by" | "idx">, "strip", z.ZodTypeAny, {
|
|
80
|
-
type: "image" | "video";
|
|
81
|
-
url: string;
|
|
82
|
-
}, {
|
|
83
|
-
type: "image" | "video";
|
|
84
|
-
url: string;
|
|
85
|
-
}>, "many">;
|
|
35
|
+
export type AttachmentCollectionType = z.infer<typeof AttachmentCollection>;
|
|
36
|
+
declare const InternalReasonChildTableEntry: z.ZodObject<{
|
|
37
|
+
internal_reason: z.ZodString;
|
|
86
38
|
}, "strip", z.ZodTypeAny, {
|
|
87
|
-
|
|
88
|
-
type: "image" | "video";
|
|
89
|
-
url: string;
|
|
90
|
-
}[];
|
|
39
|
+
internal_reason: string;
|
|
91
40
|
}, {
|
|
92
|
-
|
|
93
|
-
type: "image" | "video";
|
|
94
|
-
url: string;
|
|
95
|
-
}[];
|
|
41
|
+
internal_reason: string;
|
|
96
42
|
}>;
|
|
43
|
+
export type InternalReasonChildTableEntryType = z.infer<typeof InternalReasonChildTableEntry>;
|
|
97
44
|
export declare const InternalReasonCollection: z.ZodObject<{
|
|
98
|
-
|
|
99
|
-
owner: z.ZodString;
|
|
100
|
-
creation: z.ZodString;
|
|
101
|
-
modified: z.ZodString;
|
|
102
|
-
modified_by: z.ZodString;
|
|
103
|
-
internal_reasons: z.ZodArray<z.ZodObject<{
|
|
104
|
-
name: z.ZodString;
|
|
105
|
-
owner: z.ZodString;
|
|
106
|
-
creation: z.ZodString;
|
|
107
|
-
modified: z.ZodString;
|
|
108
|
-
modified_by: z.ZodString;
|
|
109
|
-
idx: z.ZodNumber;
|
|
45
|
+
internal_reasons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
110
46
|
internal_reason: z.ZodString;
|
|
111
47
|
}, "strip", z.ZodTypeAny, {
|
|
112
|
-
name: string;
|
|
113
|
-
owner: string;
|
|
114
|
-
creation: string;
|
|
115
|
-
modified: string;
|
|
116
|
-
modified_by: string;
|
|
117
|
-
idx: number;
|
|
118
|
-
internal_reason: string;
|
|
119
|
-
}, {
|
|
120
|
-
name: string;
|
|
121
|
-
owner: string;
|
|
122
|
-
creation: string;
|
|
123
|
-
modified: string;
|
|
124
|
-
modified_by: string;
|
|
125
|
-
idx: number;
|
|
126
|
-
internal_reason: string;
|
|
127
|
-
}>, "many">;
|
|
128
|
-
}, "strip", z.ZodTypeAny, {
|
|
129
|
-
name: string;
|
|
130
|
-
owner: string;
|
|
131
|
-
creation: string;
|
|
132
|
-
modified: string;
|
|
133
|
-
modified_by: string;
|
|
134
|
-
internal_reasons: {
|
|
135
|
-
name: string;
|
|
136
|
-
owner: string;
|
|
137
|
-
creation: string;
|
|
138
|
-
modified: string;
|
|
139
|
-
modified_by: string;
|
|
140
|
-
idx: number;
|
|
141
|
-
internal_reason: string;
|
|
142
|
-
}[];
|
|
143
|
-
}, {
|
|
144
|
-
name: string;
|
|
145
|
-
owner: string;
|
|
146
|
-
creation: string;
|
|
147
|
-
modified: string;
|
|
148
|
-
modified_by: string;
|
|
149
|
-
internal_reasons: {
|
|
150
|
-
name: string;
|
|
151
|
-
owner: string;
|
|
152
|
-
creation: string;
|
|
153
|
-
modified: string;
|
|
154
|
-
modified_by: string;
|
|
155
|
-
idx: number;
|
|
156
|
-
internal_reason: string;
|
|
157
|
-
}[];
|
|
158
|
-
}>;
|
|
159
|
-
export declare const UpdateInternalReasonCollectionInput: z.ZodObject<{
|
|
160
|
-
internal_reasons: z.ZodArray<z.ZodObject<Omit<{
|
|
161
|
-
name: z.ZodString;
|
|
162
|
-
owner: z.ZodString;
|
|
163
|
-
creation: z.ZodString;
|
|
164
|
-
modified: z.ZodString;
|
|
165
|
-
modified_by: z.ZodString;
|
|
166
|
-
idx: z.ZodNumber;
|
|
167
|
-
internal_reason: z.ZodString;
|
|
168
|
-
}, "name" | "owner" | "creation" | "modified" | "modified_by" | "idx">, "strip", z.ZodTypeAny, {
|
|
169
48
|
internal_reason: string;
|
|
170
49
|
}, {
|
|
171
50
|
internal_reason: string;
|
|
172
|
-
}>, "many"
|
|
51
|
+
}>, "many">>;
|
|
173
52
|
}, "strip", z.ZodTypeAny, {
|
|
174
|
-
internal_reasons
|
|
53
|
+
internal_reasons?: {
|
|
175
54
|
internal_reason: string;
|
|
176
|
-
}[];
|
|
55
|
+
}[] | undefined;
|
|
177
56
|
}, {
|
|
178
|
-
internal_reasons
|
|
57
|
+
internal_reasons?: {
|
|
179
58
|
internal_reason: string;
|
|
180
|
-
}[];
|
|
181
|
-
}>;
|
|
182
|
-
export declare const ReturnItemBase: z.ZodObject<{
|
|
183
|
-
item: z.ZodString;
|
|
184
|
-
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
185
|
-
bundle_parent_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
186
|
-
return_quantity: z.ZodNumber;
|
|
187
|
-
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
188
|
-
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
189
|
-
is_complaint: z.ZodNumber;
|
|
190
|
-
intent: z.ZodNullable<z.ZodOptional<z.ZodEnum<["return", "solve"]>>>;
|
|
191
|
-
servicecase_reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
192
|
-
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
193
|
-
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
194
|
-
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
195
|
-
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
196
|
-
attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
197
|
-
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
198
|
-
}, "strip", z.ZodTypeAny, {
|
|
199
|
-
item: string;
|
|
200
|
-
return_quantity: number;
|
|
201
|
-
is_complaint: number;
|
|
202
|
-
attachments?: string | null | undefined;
|
|
203
|
-
internal_reasons?: string | null | undefined;
|
|
204
|
-
line_item_id?: string | null | undefined;
|
|
205
|
-
bundle_parent_item?: string | null | undefined;
|
|
206
|
-
total_price?: number | null | undefined;
|
|
207
|
-
return_fee?: number | null | undefined;
|
|
208
|
-
intent?: "return" | "solve" | null | undefined;
|
|
209
|
-
servicecase_reason?: string | null | undefined;
|
|
210
|
-
servicecase_solution?: string | null | undefined;
|
|
211
|
-
batch_number?: string | null | undefined;
|
|
212
|
-
complaint_description?: string | null | undefined;
|
|
213
|
-
return_label?: string | null | undefined;
|
|
214
|
-
}, {
|
|
215
|
-
item: string;
|
|
216
|
-
return_quantity: number;
|
|
217
|
-
is_complaint: number;
|
|
218
|
-
attachments?: string | null | undefined;
|
|
219
|
-
internal_reasons?: string | null | undefined;
|
|
220
|
-
line_item_id?: string | null | undefined;
|
|
221
|
-
bundle_parent_item?: string | null | undefined;
|
|
222
|
-
total_price?: number | null | undefined;
|
|
223
|
-
return_fee?: number | null | undefined;
|
|
224
|
-
intent?: "return" | "solve" | null | undefined;
|
|
225
|
-
servicecase_reason?: string | null | undefined;
|
|
226
|
-
servicecase_solution?: string | null | undefined;
|
|
227
|
-
batch_number?: string | null | undefined;
|
|
228
|
-
complaint_description?: string | null | undefined;
|
|
229
|
-
return_label?: string | null | undefined;
|
|
59
|
+
}[] | undefined;
|
|
230
60
|
}>;
|
|
231
|
-
export type
|
|
232
|
-
export declare const
|
|
61
|
+
export type InternalReasonCollectionType = z.infer<typeof InternalReasonCollection>;
|
|
62
|
+
export declare const ReturnItem: z.ZodObject<{
|
|
233
63
|
item: z.ZodString;
|
|
234
64
|
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
235
65
|
bundle_parent_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
236
66
|
return_quantity: z.ZodNumber;
|
|
237
67
|
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
238
|
-
|
|
68
|
+
is_complaint: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
69
|
+
__optionalForInput: true;
|
|
70
|
+
};
|
|
239
71
|
intent: z.ZodNullable<z.ZodOptional<z.ZodEnum<["return", "solve"]>>>;
|
|
240
72
|
servicecase_reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
241
73
|
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -243,54 +75,45 @@ export declare const ReturnItemInput: z.ZodObject<{
|
|
|
243
75
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
244
76
|
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
245
77
|
attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
246
|
-
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
247
|
-
} & {
|
|
248
|
-
name: z.ZodOptional<z.ZodString>;
|
|
249
|
-
is_complaint: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
250
78
|
}, "strip", z.ZodTypeAny, {
|
|
251
79
|
item: string;
|
|
252
80
|
return_quantity: number;
|
|
253
|
-
is_complaint:
|
|
254
|
-
name?: string | undefined;
|
|
81
|
+
is_complaint: 0 | 1;
|
|
255
82
|
attachments?: string | null | undefined;
|
|
256
83
|
internal_reasons?: string | null | undefined;
|
|
257
84
|
line_item_id?: string | null | undefined;
|
|
258
85
|
bundle_parent_item?: string | null | undefined;
|
|
259
86
|
total_price?: number | null | undefined;
|
|
260
|
-
return_fee?: number | null | undefined;
|
|
261
87
|
intent?: "return" | "solve" | null | undefined;
|
|
262
88
|
servicecase_reason?: string | null | undefined;
|
|
263
89
|
servicecase_solution?: string | null | undefined;
|
|
264
90
|
batch_number?: string | null | undefined;
|
|
265
91
|
complaint_description?: string | null | undefined;
|
|
266
|
-
return_label?: string | null | undefined;
|
|
267
92
|
}, {
|
|
268
93
|
item: string;
|
|
269
94
|
return_quantity: number;
|
|
270
|
-
name?: string | undefined;
|
|
271
95
|
attachments?: string | null | undefined;
|
|
272
96
|
internal_reasons?: string | null | undefined;
|
|
273
97
|
line_item_id?: string | null | undefined;
|
|
274
98
|
bundle_parent_item?: string | null | undefined;
|
|
275
99
|
total_price?: number | null | undefined;
|
|
276
|
-
return_fee?: number | null | undefined;
|
|
277
100
|
is_complaint?: unknown;
|
|
278
101
|
intent?: "return" | "solve" | null | undefined;
|
|
279
102
|
servicecase_reason?: string | null | undefined;
|
|
280
103
|
servicecase_solution?: string | null | undefined;
|
|
281
104
|
batch_number?: string | null | undefined;
|
|
282
105
|
complaint_description?: string | null | undefined;
|
|
283
|
-
return_label?: string | null | undefined;
|
|
284
106
|
}>;
|
|
285
|
-
export type
|
|
286
|
-
export declare const
|
|
107
|
+
export type ReturnItemType = z.infer<typeof ReturnItem>;
|
|
108
|
+
export declare const ReturnItemInput: z.ZodObject<{
|
|
287
109
|
item: z.ZodString;
|
|
288
110
|
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
289
111
|
bundle_parent_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
290
112
|
return_quantity: z.ZodNumber;
|
|
291
113
|
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
292
|
-
|
|
293
|
-
|
|
114
|
+
is_complaint: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
115
|
+
__optionalForInput: true;
|
|
116
|
+
};
|
|
294
117
|
intent: z.ZodNullable<z.ZodOptional<z.ZodEnum<["return", "solve"]>>>;
|
|
295
118
|
servicecase_reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
296
119
|
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -298,80 +121,52 @@ export declare const ReturnItem: z.ZodObject<{
|
|
|
298
121
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
299
122
|
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
300
123
|
attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
301
|
-
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
302
124
|
} & {
|
|
303
125
|
name: z.ZodString;
|
|
304
|
-
owner: z.ZodString;
|
|
305
|
-
creation: z.ZodString;
|
|
306
|
-
modified: z.ZodString;
|
|
307
|
-
modified_by: z.ZodString;
|
|
308
|
-
idx: z.ZodNumber;
|
|
309
126
|
}, "strip", z.ZodTypeAny, {
|
|
310
127
|
name: string;
|
|
311
|
-
owner: string;
|
|
312
|
-
creation: string;
|
|
313
|
-
modified: string;
|
|
314
|
-
modified_by: string;
|
|
315
|
-
idx: number;
|
|
316
128
|
item: string;
|
|
317
129
|
return_quantity: number;
|
|
318
|
-
is_complaint:
|
|
130
|
+
is_complaint: 0 | 1;
|
|
319
131
|
attachments?: string | null | undefined;
|
|
320
132
|
internal_reasons?: string | null | undefined;
|
|
321
133
|
line_item_id?: string | null | undefined;
|
|
322
134
|
bundle_parent_item?: string | null | undefined;
|
|
323
135
|
total_price?: number | null | undefined;
|
|
324
|
-
return_fee?: number | null | undefined;
|
|
325
136
|
intent?: "return" | "solve" | null | undefined;
|
|
326
137
|
servicecase_reason?: string | null | undefined;
|
|
327
138
|
servicecase_solution?: string | null | undefined;
|
|
328
139
|
batch_number?: string | null | undefined;
|
|
329
140
|
complaint_description?: string | null | undefined;
|
|
330
|
-
return_label?: string | null | undefined;
|
|
331
141
|
}, {
|
|
332
142
|
name: string;
|
|
333
|
-
owner: string;
|
|
334
|
-
creation: string;
|
|
335
|
-
modified: string;
|
|
336
|
-
modified_by: string;
|
|
337
|
-
idx: number;
|
|
338
143
|
item: string;
|
|
339
144
|
return_quantity: number;
|
|
340
|
-
is_complaint: number;
|
|
341
145
|
attachments?: string | null | undefined;
|
|
342
146
|
internal_reasons?: string | null | undefined;
|
|
343
147
|
line_item_id?: string | null | undefined;
|
|
344
148
|
bundle_parent_item?: string | null | undefined;
|
|
345
149
|
total_price?: number | null | undefined;
|
|
346
|
-
|
|
150
|
+
is_complaint?: unknown;
|
|
347
151
|
intent?: "return" | "solve" | null | undefined;
|
|
348
152
|
servicecase_reason?: string | null | undefined;
|
|
349
153
|
servicecase_solution?: string | null | undefined;
|
|
350
154
|
batch_number?: string | null | undefined;
|
|
351
155
|
complaint_description?: string | null | undefined;
|
|
352
|
-
return_label?: string | null | undefined;
|
|
353
156
|
}>;
|
|
354
|
-
export type
|
|
355
|
-
export declare const ReturnItemExtended: z.ZodObject<{
|
|
157
|
+
export type ReturnItemInputType = z.infer<typeof ReturnItemInput>;
|
|
158
|
+
export declare const ReturnItemExtended: import("./DocTypeHelpers").DocModelType<z.ZodObject<{
|
|
356
159
|
item: z.ZodString;
|
|
357
160
|
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
358
161
|
bundle_parent_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
359
162
|
return_quantity: z.ZodNumber;
|
|
360
163
|
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
361
|
-
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
362
164
|
intent: z.ZodNullable<z.ZodOptional<z.ZodEnum<["return", "solve"]>>>;
|
|
363
165
|
servicecase_reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
364
166
|
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
365
167
|
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
366
168
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
367
|
-
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
368
169
|
} & {
|
|
369
|
-
name: z.ZodString;
|
|
370
|
-
owner: z.ZodString;
|
|
371
|
-
creation: z.ZodString;
|
|
372
|
-
modified: z.ZodString;
|
|
373
|
-
modified_by: z.ZodString;
|
|
374
|
-
idx: z.ZodNumber;
|
|
375
170
|
attachments: z.ZodArray<z.ZodObject<{
|
|
376
171
|
url: z.ZodString;
|
|
377
172
|
type: z.ZodEnum<["image", "video"]>;
|
|
@@ -395,13 +190,7 @@ export declare const ReturnItemExtended: z.ZodObject<{
|
|
|
395
190
|
title_en: string | null;
|
|
396
191
|
}>, "many">;
|
|
397
192
|
internal_reasons_collection_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
398
|
-
},
|
|
399
|
-
name: string;
|
|
400
|
-
owner: string;
|
|
401
|
-
creation: string;
|
|
402
|
-
modified: string;
|
|
403
|
-
modified_by: string;
|
|
404
|
-
idx: number;
|
|
193
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
405
194
|
attachments: {
|
|
406
195
|
type: "image" | "video";
|
|
407
196
|
url: string;
|
|
@@ -416,22 +205,14 @@ export declare const ReturnItemExtended: z.ZodObject<{
|
|
|
416
205
|
line_item_id?: string | null | undefined;
|
|
417
206
|
bundle_parent_item?: string | null | undefined;
|
|
418
207
|
total_price?: number | null | undefined;
|
|
419
|
-
return_fee?: number | null | undefined;
|
|
420
208
|
intent?: "return" | "solve" | null | undefined;
|
|
421
209
|
servicecase_reason?: string | null | undefined;
|
|
422
210
|
servicecase_solution?: string | null | undefined;
|
|
423
211
|
batch_number?: string | null | undefined;
|
|
424
212
|
complaint_description?: string | null | undefined;
|
|
425
|
-
return_label?: string | null | undefined;
|
|
426
213
|
attachments_collection_name?: string | null | undefined;
|
|
427
214
|
internal_reasons_collection_name?: string | null | undefined;
|
|
428
215
|
}, {
|
|
429
|
-
name: string;
|
|
430
|
-
owner: string;
|
|
431
|
-
creation: string;
|
|
432
|
-
modified: string;
|
|
433
|
-
modified_by: string;
|
|
434
|
-
idx: number;
|
|
435
216
|
attachments: {
|
|
436
217
|
type: "image" | "video";
|
|
437
218
|
url: string;
|
|
@@ -446,18 +227,16 @@ export declare const ReturnItemExtended: z.ZodObject<{
|
|
|
446
227
|
line_item_id?: string | null | undefined;
|
|
447
228
|
bundle_parent_item?: string | null | undefined;
|
|
448
229
|
total_price?: number | null | undefined;
|
|
449
|
-
return_fee?: number | null | undefined;
|
|
450
230
|
intent?: "return" | "solve" | null | undefined;
|
|
451
231
|
servicecase_reason?: string | null | undefined;
|
|
452
232
|
servicecase_solution?: string | null | undefined;
|
|
453
233
|
batch_number?: string | null | undefined;
|
|
454
234
|
complaint_description?: string | null | undefined;
|
|
455
|
-
return_label?: string | null | undefined;
|
|
456
235
|
attachments_collection_name?: string | null | undefined;
|
|
457
236
|
internal_reasons_collection_name?: string | null | undefined;
|
|
458
|
-
}
|
|
237
|
+
}>>;
|
|
459
238
|
export type ReturnItemExtendedType = z.infer<typeof ReturnItemExtended>;
|
|
460
|
-
export declare const
|
|
239
|
+
export declare const ReturnShippingItem: z.ZodObject<{
|
|
461
240
|
item: z.ZodString;
|
|
462
241
|
return_item: z.ZodString;
|
|
463
242
|
quantity: z.ZodNumber;
|
|
@@ -466,138 +245,50 @@ export declare const ReturnShippingItemBase: z.ZodObject<{
|
|
|
466
245
|
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
467
246
|
shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
468
247
|
}, "strip", z.ZodTypeAny, {
|
|
469
|
-
shipment_id: string;
|
|
470
248
|
quantity: number;
|
|
471
249
|
item: string;
|
|
472
|
-
return_fee: number;
|
|
473
250
|
return_item: string;
|
|
474
|
-
shipping_provider?: string | null | undefined;
|
|
475
|
-
return_label?: string | null | undefined;
|
|
476
|
-
}, {
|
|
477
251
|
shipment_id: string;
|
|
478
|
-
quantity: number;
|
|
479
|
-
item: string;
|
|
480
|
-
return_item: string;
|
|
481
|
-
shipping_provider?: string | null | undefined;
|
|
482
|
-
return_fee?: number | undefined;
|
|
483
|
-
return_label?: string | null | undefined;
|
|
484
|
-
}>;
|
|
485
|
-
export type ReturnShippingItemBaseType = z.infer<typeof ReturnShippingItemBase>;
|
|
486
|
-
export declare const ReturnShippingItem: z.ZodObject<{
|
|
487
|
-
item: z.ZodString;
|
|
488
|
-
return_item: z.ZodString;
|
|
489
|
-
quantity: z.ZodNumber;
|
|
490
|
-
shipment_id: z.ZodString;
|
|
491
|
-
return_fee: z.ZodDefault<z.ZodNumber>;
|
|
492
|
-
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
493
|
-
shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
494
|
-
} & {
|
|
495
|
-
name: z.ZodString;
|
|
496
|
-
owner: z.ZodString;
|
|
497
|
-
creation: z.ZodString;
|
|
498
|
-
modified: z.ZodString;
|
|
499
|
-
modified_by: z.ZodString;
|
|
500
|
-
idx: z.ZodNumber;
|
|
501
|
-
}, "strip", z.ZodTypeAny, {
|
|
502
|
-
name: string;
|
|
503
|
-
owner: string;
|
|
504
|
-
creation: string;
|
|
505
|
-
modified: string;
|
|
506
|
-
modified_by: string;
|
|
507
|
-
idx: number;
|
|
508
|
-
shipment_id: string;
|
|
509
|
-
quantity: number;
|
|
510
|
-
item: string;
|
|
511
252
|
return_fee: number;
|
|
512
|
-
return_item: string;
|
|
513
|
-
shipping_provider?: string | null | undefined;
|
|
514
253
|
return_label?: string | null | undefined;
|
|
254
|
+
shipping_provider?: string | null | undefined;
|
|
515
255
|
}, {
|
|
516
|
-
name: string;
|
|
517
|
-
owner: string;
|
|
518
|
-
creation: string;
|
|
519
|
-
modified: string;
|
|
520
|
-
modified_by: string;
|
|
521
|
-
idx: number;
|
|
522
|
-
shipment_id: string;
|
|
523
256
|
quantity: number;
|
|
524
257
|
item: string;
|
|
525
258
|
return_item: string;
|
|
526
|
-
|
|
259
|
+
shipment_id: string;
|
|
527
260
|
return_fee?: number | undefined;
|
|
528
261
|
return_label?: string | null | undefined;
|
|
262
|
+
shipping_provider?: string | null | undefined;
|
|
529
263
|
}>;
|
|
530
264
|
export type ReturnShippingItemType = z.infer<typeof ReturnShippingItem>;
|
|
531
|
-
export declare const ServicecaseBase: z.ZodObject<{
|
|
532
|
-
title: z.ZodString;
|
|
533
|
-
order_number: z.ZodString;
|
|
534
|
-
external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
535
|
-
shop: z.ZodEnum<["Shopify", "Amazon FBA", "Amazon FBM", "Otto", "Amazon", "WordPress"]>;
|
|
536
|
-
customer_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
537
|
-
status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTED", "COMPLETED"]>>;
|
|
538
|
-
complaint_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
539
|
-
is_sent_to_client: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
540
|
-
is_sent_to_cc: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
541
|
-
customer_message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
542
|
-
agreed_terms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
543
|
-
created_with: z.ZodDefault<z.ZodEnum<["Serviceportal", "Missive Sidebar", "Amazon FBA", "Amazon FBM"]>>;
|
|
544
|
-
country: z.ZodString;
|
|
545
|
-
}, "strip", z.ZodTypeAny, {
|
|
546
|
-
status: "EDITING" | "SUBMITTED" | "COMPLETED";
|
|
547
|
-
country: string;
|
|
548
|
-
order_number: string;
|
|
549
|
-
title: string;
|
|
550
|
-
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto" | "Amazon" | "WordPress";
|
|
551
|
-
created_with: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar";
|
|
552
|
-
external_id?: string | null | undefined;
|
|
553
|
-
customer_email?: string | null | undefined;
|
|
554
|
-
complaint_date?: string | null | undefined;
|
|
555
|
-
is_sent_to_client?: number | null | undefined;
|
|
556
|
-
is_sent_to_cc?: number | null | undefined;
|
|
557
|
-
customer_message?: string | null | undefined;
|
|
558
|
-
agreed_terms?: string | null | undefined;
|
|
559
|
-
}, {
|
|
560
|
-
country: string;
|
|
561
|
-
order_number: string;
|
|
562
|
-
title: string;
|
|
563
|
-
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto" | "Amazon" | "WordPress";
|
|
564
|
-
status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
|
|
565
|
-
external_id?: string | null | undefined;
|
|
566
|
-
customer_email?: string | null | undefined;
|
|
567
|
-
complaint_date?: string | null | undefined;
|
|
568
|
-
is_sent_to_client?: number | null | undefined;
|
|
569
|
-
is_sent_to_cc?: number | null | undefined;
|
|
570
|
-
customer_message?: string | null | undefined;
|
|
571
|
-
agreed_terms?: string | null | undefined;
|
|
572
|
-
created_with?: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar" | undefined;
|
|
573
|
-
}>;
|
|
574
|
-
export type ServicecaseBaseType = z.infer<typeof ServicecaseBase>;
|
|
575
265
|
export declare const Servicecase: z.ZodObject<{
|
|
576
266
|
title: z.ZodString;
|
|
577
267
|
order_number: z.ZodString;
|
|
578
268
|
external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
579
|
-
shop: z.ZodEnum<["Shopify", "Amazon FBA", "Amazon FBM", "Otto"
|
|
269
|
+
shop: z.ZodEnum<["Shopify", "Amazon FBA", "Amazon FBM", "Otto"]>;
|
|
580
270
|
customer_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
581
271
|
status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTED", "COMPLETED"]>>;
|
|
582
272
|
complaint_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
273
|
+
is_sent_to_client: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
274
|
+
__optionalForInput: true;
|
|
275
|
+
};
|
|
276
|
+
is_sent_to_cc: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
277
|
+
__optionalForInput: true;
|
|
278
|
+
};
|
|
583
279
|
customer_message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
584
280
|
agreed_terms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
585
281
|
created_with: z.ZodDefault<z.ZodEnum<["Serviceportal", "Missive Sidebar", "Amazon FBA", "Amazon FBM"]>>;
|
|
586
282
|
country: z.ZodString;
|
|
587
|
-
} & {
|
|
588
|
-
name: z.ZodString;
|
|
589
|
-
owner: z.ZodString;
|
|
590
|
-
creation: z.ZodString;
|
|
591
|
-
modified: z.ZodString;
|
|
592
|
-
modified_by: z.ZodString;
|
|
593
283
|
return_items: z.ZodArray<z.ZodObject<{
|
|
594
284
|
item: z.ZodString;
|
|
595
285
|
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
596
286
|
bundle_parent_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
597
287
|
return_quantity: z.ZodNumber;
|
|
598
288
|
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
599
|
-
|
|
600
|
-
|
|
289
|
+
is_complaint: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
290
|
+
__optionalForInput: true;
|
|
291
|
+
};
|
|
601
292
|
intent: z.ZodNullable<z.ZodOptional<z.ZodEnum<["return", "solve"]>>>;
|
|
602
293
|
servicecase_reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
603
294
|
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -605,58 +296,34 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
605
296
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
606
297
|
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
607
298
|
attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
608
|
-
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
609
|
-
} & {
|
|
610
|
-
name: z.ZodString;
|
|
611
|
-
owner: z.ZodString;
|
|
612
|
-
creation: z.ZodString;
|
|
613
|
-
modified: z.ZodString;
|
|
614
|
-
modified_by: z.ZodString;
|
|
615
|
-
idx: z.ZodNumber;
|
|
616
299
|
}, "strip", z.ZodTypeAny, {
|
|
617
|
-
name: string;
|
|
618
|
-
owner: string;
|
|
619
|
-
creation: string;
|
|
620
|
-
modified: string;
|
|
621
|
-
modified_by: string;
|
|
622
|
-
idx: number;
|
|
623
300
|
item: string;
|
|
624
301
|
return_quantity: number;
|
|
625
|
-
is_complaint:
|
|
302
|
+
is_complaint: 0 | 1;
|
|
626
303
|
attachments?: string | null | undefined;
|
|
627
304
|
internal_reasons?: string | null | undefined;
|
|
628
305
|
line_item_id?: string | null | undefined;
|
|
629
306
|
bundle_parent_item?: string | null | undefined;
|
|
630
307
|
total_price?: number | null | undefined;
|
|
631
|
-
return_fee?: number | null | undefined;
|
|
632
308
|
intent?: "return" | "solve" | null | undefined;
|
|
633
309
|
servicecase_reason?: string | null | undefined;
|
|
634
310
|
servicecase_solution?: string | null | undefined;
|
|
635
311
|
batch_number?: string | null | undefined;
|
|
636
312
|
complaint_description?: string | null | undefined;
|
|
637
|
-
return_label?: string | null | undefined;
|
|
638
313
|
}, {
|
|
639
|
-
name: string;
|
|
640
|
-
owner: string;
|
|
641
|
-
creation: string;
|
|
642
|
-
modified: string;
|
|
643
|
-
modified_by: string;
|
|
644
|
-
idx: number;
|
|
645
314
|
item: string;
|
|
646
315
|
return_quantity: number;
|
|
647
|
-
is_complaint: number;
|
|
648
316
|
attachments?: string | null | undefined;
|
|
649
317
|
internal_reasons?: string | null | undefined;
|
|
650
318
|
line_item_id?: string | null | undefined;
|
|
651
319
|
bundle_parent_item?: string | null | undefined;
|
|
652
320
|
total_price?: number | null | undefined;
|
|
653
|
-
|
|
321
|
+
is_complaint?: unknown;
|
|
654
322
|
intent?: "return" | "solve" | null | undefined;
|
|
655
323
|
servicecase_reason?: string | null | undefined;
|
|
656
324
|
servicecase_solution?: string | null | undefined;
|
|
657
325
|
batch_number?: string | null | undefined;
|
|
658
326
|
complaint_description?: string | null | undefined;
|
|
659
|
-
return_label?: string | null | undefined;
|
|
660
327
|
}>, "many">;
|
|
661
328
|
return_shipping_items: z.ZodArray<z.ZodObject<{
|
|
662
329
|
item: z.ZodString;
|
|
@@ -666,95 +333,55 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
666
333
|
return_fee: z.ZodDefault<z.ZodNumber>;
|
|
667
334
|
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
668
335
|
shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
669
|
-
} & {
|
|
670
|
-
name: z.ZodString;
|
|
671
|
-
owner: z.ZodString;
|
|
672
|
-
creation: z.ZodString;
|
|
673
|
-
modified: z.ZodString;
|
|
674
|
-
modified_by: z.ZodString;
|
|
675
|
-
idx: z.ZodNumber;
|
|
676
336
|
}, "strip", z.ZodTypeAny, {
|
|
677
|
-
name: string;
|
|
678
|
-
owner: string;
|
|
679
|
-
creation: string;
|
|
680
|
-
modified: string;
|
|
681
|
-
modified_by: string;
|
|
682
|
-
idx: number;
|
|
683
|
-
shipment_id: string;
|
|
684
337
|
quantity: number;
|
|
685
338
|
item: string;
|
|
686
|
-
return_fee: number;
|
|
687
339
|
return_item: string;
|
|
688
|
-
|
|
340
|
+
shipment_id: string;
|
|
341
|
+
return_fee: number;
|
|
689
342
|
return_label?: string | null | undefined;
|
|
343
|
+
shipping_provider?: string | null | undefined;
|
|
690
344
|
}, {
|
|
691
|
-
name: string;
|
|
692
|
-
owner: string;
|
|
693
|
-
creation: string;
|
|
694
|
-
modified: string;
|
|
695
|
-
modified_by: string;
|
|
696
|
-
idx: number;
|
|
697
|
-
shipment_id: string;
|
|
698
345
|
quantity: number;
|
|
699
346
|
item: string;
|
|
700
347
|
return_item: string;
|
|
701
|
-
|
|
348
|
+
shipment_id: string;
|
|
702
349
|
return_fee?: number | undefined;
|
|
703
350
|
return_label?: string | null | undefined;
|
|
351
|
+
shipping_provider?: string | null | undefined;
|
|
704
352
|
}>, "many">;
|
|
705
|
-
is_sent_to_client: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
706
|
-
is_sent_to_cc: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
707
353
|
}, "strip", z.ZodTypeAny, {
|
|
708
354
|
status: "EDITING" | "SUBMITTED" | "COMPLETED";
|
|
709
|
-
name: string;
|
|
710
355
|
country: string;
|
|
711
|
-
owner: string;
|
|
712
|
-
creation: string;
|
|
713
|
-
modified: string;
|
|
714
|
-
modified_by: string;
|
|
715
|
-
order_number: string;
|
|
716
356
|
title: string;
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
357
|
+
order_number: string;
|
|
358
|
+
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto";
|
|
359
|
+
is_sent_to_client: 0 | 1;
|
|
360
|
+
is_sent_to_cc: 0 | 1;
|
|
720
361
|
created_with: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar";
|
|
721
362
|
return_items: {
|
|
722
|
-
name: string;
|
|
723
|
-
owner: string;
|
|
724
|
-
creation: string;
|
|
725
|
-
modified: string;
|
|
726
|
-
modified_by: string;
|
|
727
|
-
idx: number;
|
|
728
363
|
item: string;
|
|
729
364
|
return_quantity: number;
|
|
730
|
-
is_complaint:
|
|
365
|
+
is_complaint: 0 | 1;
|
|
731
366
|
attachments?: string | null | undefined;
|
|
732
367
|
internal_reasons?: string | null | undefined;
|
|
733
368
|
line_item_id?: string | null | undefined;
|
|
734
369
|
bundle_parent_item?: string | null | undefined;
|
|
735
370
|
total_price?: number | null | undefined;
|
|
736
|
-
return_fee?: number | null | undefined;
|
|
737
371
|
intent?: "return" | "solve" | null | undefined;
|
|
738
372
|
servicecase_reason?: string | null | undefined;
|
|
739
373
|
servicecase_solution?: string | null | undefined;
|
|
740
374
|
batch_number?: string | null | undefined;
|
|
741
375
|
complaint_description?: string | null | undefined;
|
|
742
|
-
return_label?: string | null | undefined;
|
|
743
376
|
}[];
|
|
744
377
|
return_shipping_items: {
|
|
745
|
-
name: string;
|
|
746
|
-
owner: string;
|
|
747
|
-
creation: string;
|
|
748
|
-
modified: string;
|
|
749
|
-
modified_by: string;
|
|
750
|
-
idx: number;
|
|
751
|
-
shipment_id: string;
|
|
752
378
|
quantity: number;
|
|
753
379
|
item: string;
|
|
754
|
-
return_fee: number;
|
|
755
380
|
return_item: string;
|
|
756
|
-
|
|
381
|
+
shipment_id: string;
|
|
382
|
+
return_fee: number;
|
|
757
383
|
return_label?: string | null | undefined;
|
|
384
|
+
shipping_provider?: string | null | undefined;
|
|
758
385
|
}[];
|
|
759
386
|
external_id?: string | null | undefined;
|
|
760
387
|
customer_email?: string | null | undefined;
|
|
@@ -762,72 +389,59 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
762
389
|
customer_message?: string | null | undefined;
|
|
763
390
|
agreed_terms?: string | null | undefined;
|
|
764
391
|
}, {
|
|
765
|
-
name: string;
|
|
766
392
|
country: string;
|
|
767
|
-
owner: string;
|
|
768
|
-
creation: string;
|
|
769
|
-
modified: string;
|
|
770
|
-
modified_by: string;
|
|
771
|
-
order_number: string;
|
|
772
393
|
title: string;
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
is_sent_to_cc: number;
|
|
394
|
+
order_number: string;
|
|
395
|
+
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto";
|
|
776
396
|
return_items: {
|
|
777
|
-
name: string;
|
|
778
|
-
owner: string;
|
|
779
|
-
creation: string;
|
|
780
|
-
modified: string;
|
|
781
|
-
modified_by: string;
|
|
782
|
-
idx: number;
|
|
783
397
|
item: string;
|
|
784
398
|
return_quantity: number;
|
|
785
|
-
is_complaint: number;
|
|
786
399
|
attachments?: string | null | undefined;
|
|
787
400
|
internal_reasons?: string | null | undefined;
|
|
788
401
|
line_item_id?: string | null | undefined;
|
|
789
402
|
bundle_parent_item?: string | null | undefined;
|
|
790
403
|
total_price?: number | null | undefined;
|
|
791
|
-
|
|
404
|
+
is_complaint?: unknown;
|
|
792
405
|
intent?: "return" | "solve" | null | undefined;
|
|
793
406
|
servicecase_reason?: string | null | undefined;
|
|
794
407
|
servicecase_solution?: string | null | undefined;
|
|
795
408
|
batch_number?: string | null | undefined;
|
|
796
409
|
complaint_description?: string | null | undefined;
|
|
797
|
-
return_label?: string | null | undefined;
|
|
798
410
|
}[];
|
|
799
411
|
return_shipping_items: {
|
|
800
|
-
name: string;
|
|
801
|
-
owner: string;
|
|
802
|
-
creation: string;
|
|
803
|
-
modified: string;
|
|
804
|
-
modified_by: string;
|
|
805
|
-
idx: number;
|
|
806
|
-
shipment_id: string;
|
|
807
412
|
quantity: number;
|
|
808
413
|
item: string;
|
|
809
414
|
return_item: string;
|
|
810
|
-
|
|
415
|
+
shipment_id: string;
|
|
811
416
|
return_fee?: number | undefined;
|
|
812
417
|
return_label?: string | null | undefined;
|
|
418
|
+
shipping_provider?: string | null | undefined;
|
|
813
419
|
}[];
|
|
814
420
|
status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
|
|
815
421
|
external_id?: string | null | undefined;
|
|
816
422
|
customer_email?: string | null | undefined;
|
|
817
423
|
complaint_date?: string | null | undefined;
|
|
424
|
+
is_sent_to_client?: unknown;
|
|
425
|
+
is_sent_to_cc?: unknown;
|
|
818
426
|
customer_message?: string | null | undefined;
|
|
819
427
|
agreed_terms?: string | null | undefined;
|
|
820
428
|
created_with?: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar" | undefined;
|
|
821
429
|
}>;
|
|
822
430
|
export type ServicecaseType = z.infer<typeof Servicecase>;
|
|
823
|
-
export declare const ServicecaseInput: z.ZodObject<{
|
|
431
|
+
export declare const ServicecaseInput: import("../../utils/zodContextOptionals").ResourceInputType<z.ZodObject<{
|
|
824
432
|
title: z.ZodString;
|
|
825
433
|
order_number: z.ZodString;
|
|
826
434
|
external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
827
|
-
shop: z.ZodEnum<["Shopify", "Amazon FBA", "Amazon FBM", "Otto"
|
|
435
|
+
shop: z.ZodEnum<["Shopify", "Amazon FBA", "Amazon FBM", "Otto"]>;
|
|
828
436
|
customer_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
829
437
|
status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTED", "COMPLETED"]>>;
|
|
830
438
|
complaint_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
439
|
+
is_sent_to_client: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
440
|
+
__optionalForInput: true;
|
|
441
|
+
};
|
|
442
|
+
is_sent_to_cc: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
443
|
+
__optionalForInput: true;
|
|
444
|
+
};
|
|
831
445
|
customer_message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
832
446
|
agreed_terms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
833
447
|
created_with: z.ZodDefault<z.ZodEnum<["Serviceportal", "Missive Sidebar", "Amazon FBA", "Amazon FBM"]>>;
|
|
@@ -839,7 +453,9 @@ export declare const ServicecaseInput: z.ZodObject<{
|
|
|
839
453
|
bundle_parent_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
840
454
|
return_quantity: z.ZodNumber;
|
|
841
455
|
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
842
|
-
|
|
456
|
+
is_complaint: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
457
|
+
__optionalForInput: true;
|
|
458
|
+
};
|
|
843
459
|
intent: z.ZodNullable<z.ZodOptional<z.ZodEnum<["return", "solve"]>>>;
|
|
844
460
|
servicecase_reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
845
461
|
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -847,44 +463,38 @@ export declare const ServicecaseInput: z.ZodObject<{
|
|
|
847
463
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
848
464
|
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
849
465
|
attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
850
|
-
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
851
466
|
} & {
|
|
852
|
-
name: z.
|
|
853
|
-
is_complaint: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
467
|
+
name: z.ZodString;
|
|
854
468
|
}, "strip", z.ZodTypeAny, {
|
|
469
|
+
name: string;
|
|
855
470
|
item: string;
|
|
856
471
|
return_quantity: number;
|
|
857
|
-
is_complaint:
|
|
858
|
-
name?: string | undefined;
|
|
472
|
+
is_complaint: 0 | 1;
|
|
859
473
|
attachments?: string | null | undefined;
|
|
860
474
|
internal_reasons?: string | null | undefined;
|
|
861
475
|
line_item_id?: string | null | undefined;
|
|
862
476
|
bundle_parent_item?: string | null | undefined;
|
|
863
477
|
total_price?: number | null | undefined;
|
|
864
|
-
return_fee?: number | null | undefined;
|
|
865
478
|
intent?: "return" | "solve" | null | undefined;
|
|
866
479
|
servicecase_reason?: string | null | undefined;
|
|
867
480
|
servicecase_solution?: string | null | undefined;
|
|
868
481
|
batch_number?: string | null | undefined;
|
|
869
482
|
complaint_description?: string | null | undefined;
|
|
870
|
-
return_label?: string | null | undefined;
|
|
871
483
|
}, {
|
|
484
|
+
name: string;
|
|
872
485
|
item: string;
|
|
873
486
|
return_quantity: number;
|
|
874
|
-
name?: string | undefined;
|
|
875
487
|
attachments?: string | null | undefined;
|
|
876
488
|
internal_reasons?: string | null | undefined;
|
|
877
489
|
line_item_id?: string | null | undefined;
|
|
878
490
|
bundle_parent_item?: string | null | undefined;
|
|
879
491
|
total_price?: number | null | undefined;
|
|
880
|
-
return_fee?: number | null | undefined;
|
|
881
492
|
is_complaint?: unknown;
|
|
882
493
|
intent?: "return" | "solve" | null | undefined;
|
|
883
494
|
servicecase_reason?: string | null | undefined;
|
|
884
495
|
servicecase_solution?: string | null | undefined;
|
|
885
496
|
batch_number?: string | null | undefined;
|
|
886
497
|
complaint_description?: string | null | undefined;
|
|
887
|
-
return_label?: string | null | undefined;
|
|
888
498
|
}>, "many">;
|
|
889
499
|
return_shipping_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
890
500
|
item: z.ZodString;
|
|
@@ -895,50 +505,46 @@ export declare const ServicecaseInput: z.ZodObject<{
|
|
|
895
505
|
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
896
506
|
shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
897
507
|
}, "strip", z.ZodTypeAny, {
|
|
898
|
-
shipment_id: string;
|
|
899
508
|
quantity: number;
|
|
900
509
|
item: string;
|
|
901
|
-
return_fee: number;
|
|
902
510
|
return_item: string;
|
|
903
|
-
|
|
511
|
+
shipment_id: string;
|
|
512
|
+
return_fee: number;
|
|
904
513
|
return_label?: string | null | undefined;
|
|
514
|
+
shipping_provider?: string | null | undefined;
|
|
905
515
|
}, {
|
|
906
|
-
shipment_id: string;
|
|
907
516
|
quantity: number;
|
|
908
517
|
item: string;
|
|
909
518
|
return_item: string;
|
|
910
|
-
|
|
519
|
+
shipment_id: string;
|
|
911
520
|
return_fee?: number | undefined;
|
|
912
521
|
return_label?: string | null | undefined;
|
|
522
|
+
shipping_provider?: string | null | undefined;
|
|
913
523
|
}>, "many">>;
|
|
914
|
-
|
|
915
|
-
is_sent_to_cc: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
916
|
-
}, "strip", z.ZodTypeAny, {
|
|
524
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
917
525
|
status: "EDITING" | "SUBMITTED" | "COMPLETED";
|
|
918
526
|
country: string;
|
|
919
|
-
order_number: string;
|
|
920
527
|
title: string;
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
528
|
+
order_number: string;
|
|
529
|
+
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto";
|
|
530
|
+
is_sent_to_client: 0 | 1;
|
|
531
|
+
is_sent_to_cc: 0 | 1;
|
|
924
532
|
created_with: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar";
|
|
925
533
|
return_items: {
|
|
534
|
+
name: string;
|
|
926
535
|
item: string;
|
|
927
536
|
return_quantity: number;
|
|
928
|
-
is_complaint:
|
|
929
|
-
name?: string | undefined;
|
|
537
|
+
is_complaint: 0 | 1;
|
|
930
538
|
attachments?: string | null | undefined;
|
|
931
539
|
internal_reasons?: string | null | undefined;
|
|
932
540
|
line_item_id?: string | null | undefined;
|
|
933
541
|
bundle_parent_item?: string | null | undefined;
|
|
934
542
|
total_price?: number | null | undefined;
|
|
935
|
-
return_fee?: number | null | undefined;
|
|
936
543
|
intent?: "return" | "solve" | null | undefined;
|
|
937
544
|
servicecase_reason?: string | null | undefined;
|
|
938
545
|
servicecase_solution?: string | null | undefined;
|
|
939
546
|
batch_number?: string | null | undefined;
|
|
940
547
|
complaint_description?: string | null | undefined;
|
|
941
|
-
return_label?: string | null | undefined;
|
|
942
548
|
}[];
|
|
943
549
|
external_id?: string | null | undefined;
|
|
944
550
|
customer_email?: string | null | undefined;
|
|
@@ -946,36 +552,34 @@ export declare const ServicecaseInput: z.ZodObject<{
|
|
|
946
552
|
customer_message?: string | null | undefined;
|
|
947
553
|
agreed_terms?: string | null | undefined;
|
|
948
554
|
return_shipping_items?: {
|
|
949
|
-
shipment_id: string;
|
|
950
555
|
quantity: number;
|
|
951
556
|
item: string;
|
|
952
|
-
return_fee: number;
|
|
953
557
|
return_item: string;
|
|
954
|
-
|
|
558
|
+
shipment_id: string;
|
|
559
|
+
return_fee: number;
|
|
955
560
|
return_label?: string | null | undefined;
|
|
561
|
+
shipping_provider?: string | null | undefined;
|
|
956
562
|
}[] | undefined;
|
|
957
563
|
}, {
|
|
958
564
|
country: string;
|
|
959
|
-
order_number: string;
|
|
960
565
|
title: string;
|
|
961
|
-
|
|
566
|
+
order_number: string;
|
|
567
|
+
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto";
|
|
962
568
|
return_items: {
|
|
569
|
+
name: string;
|
|
963
570
|
item: string;
|
|
964
571
|
return_quantity: number;
|
|
965
|
-
name?: string | undefined;
|
|
966
572
|
attachments?: string | null | undefined;
|
|
967
573
|
internal_reasons?: string | null | undefined;
|
|
968
574
|
line_item_id?: string | null | undefined;
|
|
969
575
|
bundle_parent_item?: string | null | undefined;
|
|
970
576
|
total_price?: number | null | undefined;
|
|
971
|
-
return_fee?: number | null | undefined;
|
|
972
577
|
is_complaint?: unknown;
|
|
973
578
|
intent?: "return" | "solve" | null | undefined;
|
|
974
579
|
servicecase_reason?: string | null | undefined;
|
|
975
580
|
servicecase_solution?: string | null | undefined;
|
|
976
581
|
batch_number?: string | null | undefined;
|
|
977
582
|
complaint_description?: string | null | undefined;
|
|
978
|
-
return_label?: string | null | undefined;
|
|
979
583
|
}[];
|
|
980
584
|
status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
|
|
981
585
|
external_id?: string | null | undefined;
|
|
@@ -987,21 +591,21 @@ export declare const ServicecaseInput: z.ZodObject<{
|
|
|
987
591
|
agreed_terms?: string | null | undefined;
|
|
988
592
|
created_with?: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar" | undefined;
|
|
989
593
|
return_shipping_items?: {
|
|
990
|
-
shipment_id: string;
|
|
991
594
|
quantity: number;
|
|
992
595
|
item: string;
|
|
993
596
|
return_item: string;
|
|
994
|
-
|
|
597
|
+
shipment_id: string;
|
|
995
598
|
return_fee?: number | undefined;
|
|
996
599
|
return_label?: string | null | undefined;
|
|
600
|
+
shipping_provider?: string | null | undefined;
|
|
997
601
|
}[] | undefined;
|
|
998
|
-
}
|
|
602
|
+
}>>;
|
|
999
603
|
export type ServicecaseInputType = z.infer<typeof ServicecaseInput>;
|
|
1000
604
|
export declare const ServicecaseExtended: z.ZodObject<{
|
|
1001
605
|
title: z.ZodString;
|
|
1002
606
|
order_number: z.ZodString;
|
|
1003
607
|
external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1004
|
-
shop: z.ZodEnum<["Shopify", "Amazon FBA", "Amazon FBM", "Otto"
|
|
608
|
+
shop: z.ZodEnum<["Shopify", "Amazon FBA", "Amazon FBM", "Otto"]>;
|
|
1005
609
|
customer_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1006
610
|
status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTED", "COMPLETED"]>>;
|
|
1007
611
|
complaint_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -1009,32 +613,44 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
1009
613
|
agreed_terms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1010
614
|
created_with: z.ZodDefault<z.ZodEnum<["Serviceportal", "Missive Sidebar", "Amazon FBA", "Amazon FBM"]>>;
|
|
1011
615
|
country: z.ZodString;
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
616
|
+
return_shipping_items: z.ZodArray<z.ZodObject<{
|
|
617
|
+
item: z.ZodString;
|
|
618
|
+
return_item: z.ZodString;
|
|
619
|
+
quantity: z.ZodNumber;
|
|
620
|
+
shipment_id: z.ZodString;
|
|
621
|
+
return_fee: z.ZodDefault<z.ZodNumber>;
|
|
622
|
+
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
623
|
+
shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
624
|
+
}, "strip", z.ZodTypeAny, {
|
|
625
|
+
quantity: number;
|
|
626
|
+
item: string;
|
|
627
|
+
return_item: string;
|
|
628
|
+
shipment_id: string;
|
|
629
|
+
return_fee: number;
|
|
630
|
+
return_label?: string | null | undefined;
|
|
631
|
+
shipping_provider?: string | null | undefined;
|
|
632
|
+
}, {
|
|
633
|
+
quantity: number;
|
|
634
|
+
item: string;
|
|
635
|
+
return_item: string;
|
|
636
|
+
shipment_id: string;
|
|
637
|
+
return_fee?: number | undefined;
|
|
638
|
+
return_label?: string | null | undefined;
|
|
639
|
+
shipping_provider?: string | null | undefined;
|
|
640
|
+
}>, "many">;
|
|
1017
641
|
} & {
|
|
1018
|
-
return_items: z.ZodArray<z.ZodObject<{
|
|
642
|
+
return_items: z.ZodArray<import("./DocTypeHelpers").DocModelType<z.ZodObject<{
|
|
1019
643
|
item: z.ZodString;
|
|
1020
644
|
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1021
645
|
bundle_parent_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1022
646
|
return_quantity: z.ZodNumber;
|
|
1023
647
|
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1024
|
-
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1025
648
|
intent: z.ZodNullable<z.ZodOptional<z.ZodEnum<["return", "solve"]>>>;
|
|
1026
649
|
servicecase_reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1027
650
|
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1028
651
|
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1029
652
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1030
|
-
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1031
653
|
} & {
|
|
1032
|
-
name: z.ZodString;
|
|
1033
|
-
owner: z.ZodString;
|
|
1034
|
-
creation: z.ZodString;
|
|
1035
|
-
modified: z.ZodString;
|
|
1036
|
-
modified_by: z.ZodString;
|
|
1037
|
-
idx: z.ZodNumber;
|
|
1038
654
|
attachments: z.ZodArray<z.ZodObject<{
|
|
1039
655
|
url: z.ZodString;
|
|
1040
656
|
type: z.ZodEnum<["image", "video"]>;
|
|
@@ -1058,13 +674,7 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
1058
674
|
title_en: string | null;
|
|
1059
675
|
}>, "many">;
|
|
1060
676
|
internal_reasons_collection_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1061
|
-
},
|
|
1062
|
-
name: string;
|
|
1063
|
-
owner: string;
|
|
1064
|
-
creation: string;
|
|
1065
|
-
modified: string;
|
|
1066
|
-
modified_by: string;
|
|
1067
|
-
idx: number;
|
|
677
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1068
678
|
attachments: {
|
|
1069
679
|
type: "image" | "video";
|
|
1070
680
|
url: string;
|
|
@@ -1079,22 +689,14 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
1079
689
|
line_item_id?: string | null | undefined;
|
|
1080
690
|
bundle_parent_item?: string | null | undefined;
|
|
1081
691
|
total_price?: number | null | undefined;
|
|
1082
|
-
return_fee?: number | null | undefined;
|
|
1083
692
|
intent?: "return" | "solve" | null | undefined;
|
|
1084
693
|
servicecase_reason?: string | null | undefined;
|
|
1085
694
|
servicecase_solution?: string | null | undefined;
|
|
1086
695
|
batch_number?: string | null | undefined;
|
|
1087
696
|
complaint_description?: string | null | undefined;
|
|
1088
|
-
return_label?: string | null | undefined;
|
|
1089
697
|
attachments_collection_name?: string | null | undefined;
|
|
1090
698
|
internal_reasons_collection_name?: string | null | undefined;
|
|
1091
699
|
}, {
|
|
1092
|
-
name: string;
|
|
1093
|
-
owner: string;
|
|
1094
|
-
creation: string;
|
|
1095
|
-
modified: string;
|
|
1096
|
-
modified_by: string;
|
|
1097
|
-
idx: number;
|
|
1098
700
|
attachments: {
|
|
1099
701
|
type: "image" | "video";
|
|
1100
702
|
url: string;
|
|
@@ -1109,73 +711,22 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
1109
711
|
line_item_id?: string | null | undefined;
|
|
1110
712
|
bundle_parent_item?: string | null | undefined;
|
|
1111
713
|
total_price?: number | null | undefined;
|
|
1112
|
-
return_fee?: number | null | undefined;
|
|
1113
714
|
intent?: "return" | "solve" | null | undefined;
|
|
1114
715
|
servicecase_reason?: string | null | undefined;
|
|
1115
716
|
servicecase_solution?: string | null | undefined;
|
|
1116
717
|
batch_number?: string | null | undefined;
|
|
1117
718
|
complaint_description?: string | null | undefined;
|
|
1118
|
-
return_label?: string | null | undefined;
|
|
1119
719
|
attachments_collection_name?: string | null | undefined;
|
|
1120
720
|
internal_reasons_collection_name?: string | null | undefined;
|
|
1121
|
-
}
|
|
1122
|
-
return_shipping_items: z.ZodArray<z.ZodObject<{
|
|
1123
|
-
item: z.ZodString;
|
|
1124
|
-
return_item: z.ZodString;
|
|
1125
|
-
quantity: z.ZodNumber;
|
|
1126
|
-
shipment_id: z.ZodString;
|
|
1127
|
-
return_fee: z.ZodDefault<z.ZodNumber>;
|
|
1128
|
-
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1129
|
-
shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1130
|
-
} & {
|
|
1131
|
-
name: z.ZodString;
|
|
1132
|
-
owner: z.ZodString;
|
|
1133
|
-
creation: z.ZodString;
|
|
1134
|
-
modified: z.ZodString;
|
|
1135
|
-
modified_by: z.ZodString;
|
|
1136
|
-
idx: z.ZodNumber;
|
|
1137
|
-
}, "strip", z.ZodTypeAny, {
|
|
1138
|
-
name: string;
|
|
1139
|
-
owner: string;
|
|
1140
|
-
creation: string;
|
|
1141
|
-
modified: string;
|
|
1142
|
-
modified_by: string;
|
|
1143
|
-
idx: number;
|
|
1144
|
-
shipment_id: string;
|
|
1145
|
-
quantity: number;
|
|
1146
|
-
item: string;
|
|
1147
|
-
return_fee: number;
|
|
1148
|
-
return_item: string;
|
|
1149
|
-
shipping_provider?: string | null | undefined;
|
|
1150
|
-
return_label?: string | null | undefined;
|
|
1151
|
-
}, {
|
|
1152
|
-
name: string;
|
|
1153
|
-
owner: string;
|
|
1154
|
-
creation: string;
|
|
1155
|
-
modified: string;
|
|
1156
|
-
modified_by: string;
|
|
1157
|
-
idx: number;
|
|
1158
|
-
shipment_id: string;
|
|
1159
|
-
quantity: number;
|
|
1160
|
-
item: string;
|
|
1161
|
-
return_item: string;
|
|
1162
|
-
shipping_provider?: string | null | undefined;
|
|
1163
|
-
return_fee?: number | undefined;
|
|
1164
|
-
return_label?: string | null | undefined;
|
|
1165
|
-
}>, "many">;
|
|
721
|
+
}>>, "many">;
|
|
1166
722
|
is_sent_to_client: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
1167
723
|
is_sent_to_cc: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
1168
724
|
}, "strip", z.ZodTypeAny, {
|
|
1169
725
|
status: "EDITING" | "SUBMITTED" | "COMPLETED";
|
|
1170
|
-
name: string;
|
|
1171
726
|
country: string;
|
|
1172
|
-
owner: string;
|
|
1173
|
-
creation: string;
|
|
1174
|
-
modified: string;
|
|
1175
|
-
modified_by: string;
|
|
1176
|
-
order_number: string;
|
|
1177
727
|
title: string;
|
|
1178
|
-
|
|
728
|
+
order_number: string;
|
|
729
|
+
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto";
|
|
1179
730
|
is_sent_to_client: boolean;
|
|
1180
731
|
is_sent_to_cc: boolean;
|
|
1181
732
|
created_with: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar";
|
|
@@ -1186,44 +737,61 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
1186
737
|
modified: string;
|
|
1187
738
|
modified_by: string;
|
|
1188
739
|
idx: number;
|
|
740
|
+
docstatus: number;
|
|
741
|
+
doctype: string;
|
|
1189
742
|
attachments: {
|
|
1190
743
|
type: "image" | "video";
|
|
1191
744
|
url: string;
|
|
745
|
+
name: string;
|
|
746
|
+
owner: string;
|
|
747
|
+
creation: string;
|
|
748
|
+
modified: string;
|
|
749
|
+
modified_by: string;
|
|
750
|
+
idx: number;
|
|
751
|
+
docstatus: number;
|
|
752
|
+
doctype: string;
|
|
753
|
+
parenttype: string;
|
|
754
|
+
parentfield: string;
|
|
755
|
+
_user_tags?: string | undefined;
|
|
1192
756
|
}[];
|
|
1193
757
|
internal_reasons: {
|
|
758
|
+
name: string;
|
|
759
|
+
owner: string;
|
|
760
|
+
creation: string;
|
|
761
|
+
modified: string;
|
|
762
|
+
modified_by: string;
|
|
763
|
+
idx: number;
|
|
764
|
+
docstatus: number;
|
|
765
|
+
doctype: string;
|
|
766
|
+
parenttype: string;
|
|
767
|
+
parentfield: string;
|
|
1194
768
|
title_de: string | null;
|
|
1195
769
|
title_en: string | null;
|
|
770
|
+
_user_tags?: string | undefined;
|
|
1196
771
|
}[];
|
|
1197
772
|
item: string;
|
|
1198
773
|
return_quantity: number;
|
|
1199
774
|
is_complaint: boolean;
|
|
775
|
+
_user_tags?: string | undefined;
|
|
1200
776
|
line_item_id?: string | null | undefined;
|
|
1201
777
|
bundle_parent_item?: string | null | undefined;
|
|
1202
778
|
total_price?: number | null | undefined;
|
|
1203
|
-
return_fee?: number | null | undefined;
|
|
1204
779
|
intent?: "return" | "solve" | null | undefined;
|
|
1205
780
|
servicecase_reason?: string | null | undefined;
|
|
1206
781
|
servicecase_solution?: string | null | undefined;
|
|
1207
782
|
batch_number?: string | null | undefined;
|
|
1208
783
|
complaint_description?: string | null | undefined;
|
|
1209
|
-
return_label?: string | null | undefined;
|
|
1210
784
|
attachments_collection_name?: string | null | undefined;
|
|
1211
785
|
internal_reasons_collection_name?: string | null | undefined;
|
|
1212
786
|
}[];
|
|
1213
787
|
return_shipping_items: {
|
|
1214
|
-
name: string;
|
|
1215
|
-
owner: string;
|
|
1216
|
-
creation: string;
|
|
1217
|
-
modified: string;
|
|
1218
|
-
modified_by: string;
|
|
1219
|
-
idx: number;
|
|
1220
|
-
shipment_id: string;
|
|
1221
788
|
quantity: number;
|
|
1222
789
|
item: string;
|
|
1223
|
-
return_fee: number;
|
|
1224
790
|
return_item: string;
|
|
1225
|
-
|
|
791
|
+
shipment_id: string;
|
|
792
|
+
return_fee: number;
|
|
1226
793
|
return_label?: string | null | undefined;
|
|
794
|
+
shipping_provider?: string | null | undefined;
|
|
1227
795
|
}[];
|
|
1228
796
|
external_id?: string | null | undefined;
|
|
1229
797
|
customer_email?: string | null | undefined;
|
|
@@ -1231,15 +799,10 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
1231
799
|
customer_message?: string | null | undefined;
|
|
1232
800
|
agreed_terms?: string | null | undefined;
|
|
1233
801
|
}, {
|
|
1234
|
-
name: string;
|
|
1235
802
|
country: string;
|
|
1236
|
-
owner: string;
|
|
1237
|
-
creation: string;
|
|
1238
|
-
modified: string;
|
|
1239
|
-
modified_by: string;
|
|
1240
|
-
order_number: string;
|
|
1241
803
|
title: string;
|
|
1242
|
-
|
|
804
|
+
order_number: string;
|
|
805
|
+
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto";
|
|
1243
806
|
is_sent_to_client: number;
|
|
1244
807
|
is_sent_to_cc: number;
|
|
1245
808
|
return_items: {
|
|
@@ -1249,44 +812,61 @@ export declare const ServicecaseExtended: z.ZodObject<{
|
|
|
1249
812
|
modified: string;
|
|
1250
813
|
modified_by: string;
|
|
1251
814
|
idx: number;
|
|
815
|
+
doctype: string;
|
|
1252
816
|
attachments: {
|
|
1253
817
|
type: "image" | "video";
|
|
1254
818
|
url: string;
|
|
819
|
+
name: string;
|
|
820
|
+
owner: string;
|
|
821
|
+
creation: string;
|
|
822
|
+
modified: string;
|
|
823
|
+
modified_by: string;
|
|
824
|
+
idx: number;
|
|
825
|
+
doctype: string;
|
|
826
|
+
parenttype: string;
|
|
827
|
+
parentfield: string;
|
|
828
|
+
docstatus?: number | undefined;
|
|
829
|
+
_user_tags?: string | undefined;
|
|
1255
830
|
}[];
|
|
1256
831
|
internal_reasons: {
|
|
832
|
+
name: string;
|
|
833
|
+
owner: string;
|
|
834
|
+
creation: string;
|
|
835
|
+
modified: string;
|
|
836
|
+
modified_by: string;
|
|
837
|
+
idx: number;
|
|
838
|
+
doctype: string;
|
|
839
|
+
parenttype: string;
|
|
840
|
+
parentfield: string;
|
|
1257
841
|
title_de: string | null;
|
|
1258
842
|
title_en: string | null;
|
|
843
|
+
docstatus?: number | undefined;
|
|
844
|
+
_user_tags?: string | undefined;
|
|
1259
845
|
}[];
|
|
1260
846
|
item: string;
|
|
1261
847
|
return_quantity: number;
|
|
1262
848
|
is_complaint: number;
|
|
849
|
+
docstatus?: number | undefined;
|
|
850
|
+
_user_tags?: string | undefined;
|
|
1263
851
|
line_item_id?: string | null | undefined;
|
|
1264
852
|
bundle_parent_item?: string | null | undefined;
|
|
1265
853
|
total_price?: number | null | undefined;
|
|
1266
|
-
return_fee?: number | null | undefined;
|
|
1267
854
|
intent?: "return" | "solve" | null | undefined;
|
|
1268
855
|
servicecase_reason?: string | null | undefined;
|
|
1269
856
|
servicecase_solution?: string | null | undefined;
|
|
1270
857
|
batch_number?: string | null | undefined;
|
|
1271
858
|
complaint_description?: string | null | undefined;
|
|
1272
|
-
return_label?: string | null | undefined;
|
|
1273
859
|
attachments_collection_name?: string | null | undefined;
|
|
1274
860
|
internal_reasons_collection_name?: string | null | undefined;
|
|
1275
861
|
}[];
|
|
1276
862
|
return_shipping_items: {
|
|
1277
|
-
name: string;
|
|
1278
|
-
owner: string;
|
|
1279
|
-
creation: string;
|
|
1280
|
-
modified: string;
|
|
1281
|
-
modified_by: string;
|
|
1282
|
-
idx: number;
|
|
1283
|
-
shipment_id: string;
|
|
1284
863
|
quantity: number;
|
|
1285
864
|
item: string;
|
|
1286
865
|
return_item: string;
|
|
1287
|
-
|
|
866
|
+
shipment_id: string;
|
|
1288
867
|
return_fee?: number | undefined;
|
|
1289
868
|
return_label?: string | null | undefined;
|
|
869
|
+
shipping_provider?: string | null | undefined;
|
|
1290
870
|
}[];
|
|
1291
871
|
status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
|
|
1292
872
|
external_id?: string | null | undefined;
|
|
@@ -1301,7 +881,7 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1301
881
|
title: z.ZodString;
|
|
1302
882
|
order_number: z.ZodString;
|
|
1303
883
|
external_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1304
|
-
shop: z.ZodEnum<["Shopify", "Amazon FBA", "Amazon FBM", "Otto"
|
|
884
|
+
shop: z.ZodEnum<["Shopify", "Amazon FBA", "Amazon FBM", "Otto"]>;
|
|
1305
885
|
customer_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1306
886
|
status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTED", "COMPLETED"]>>;
|
|
1307
887
|
complaint_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -1309,32 +889,44 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1309
889
|
agreed_terms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1310
890
|
created_with: z.ZodDefault<z.ZodEnum<["Serviceportal", "Missive Sidebar", "Amazon FBA", "Amazon FBM"]>>;
|
|
1311
891
|
country: z.ZodString;
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
892
|
+
return_shipping_items: z.ZodArray<z.ZodObject<{
|
|
893
|
+
item: z.ZodString;
|
|
894
|
+
return_item: z.ZodString;
|
|
895
|
+
quantity: z.ZodNumber;
|
|
896
|
+
shipment_id: z.ZodString;
|
|
897
|
+
return_fee: z.ZodDefault<z.ZodNumber>;
|
|
898
|
+
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
899
|
+
shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
900
|
+
}, "strip", z.ZodTypeAny, {
|
|
901
|
+
quantity: number;
|
|
902
|
+
item: string;
|
|
903
|
+
return_item: string;
|
|
904
|
+
shipment_id: string;
|
|
905
|
+
return_fee: number;
|
|
906
|
+
return_label?: string | null | undefined;
|
|
907
|
+
shipping_provider?: string | null | undefined;
|
|
908
|
+
}, {
|
|
909
|
+
quantity: number;
|
|
910
|
+
item: string;
|
|
911
|
+
return_item: string;
|
|
912
|
+
shipment_id: string;
|
|
913
|
+
return_fee?: number | undefined;
|
|
914
|
+
return_label?: string | null | undefined;
|
|
915
|
+
shipping_provider?: string | null | undefined;
|
|
916
|
+
}>, "many">;
|
|
1317
917
|
} & {
|
|
1318
|
-
return_items: z.ZodArray<z.ZodObject<{
|
|
918
|
+
return_items: z.ZodArray<import("./DocTypeHelpers").DocModelType<z.ZodObject<{
|
|
1319
919
|
item: z.ZodString;
|
|
1320
920
|
line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1321
921
|
bundle_parent_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1322
922
|
return_quantity: z.ZodNumber;
|
|
1323
923
|
total_price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1324
|
-
return_fee: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1325
924
|
intent: z.ZodNullable<z.ZodOptional<z.ZodEnum<["return", "solve"]>>>;
|
|
1326
925
|
servicecase_reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1327
926
|
servicecase_solution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1328
927
|
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1329
928
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1330
|
-
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1331
929
|
} & {
|
|
1332
|
-
name: z.ZodString;
|
|
1333
|
-
owner: z.ZodString;
|
|
1334
|
-
creation: z.ZodString;
|
|
1335
|
-
modified: z.ZodString;
|
|
1336
|
-
modified_by: z.ZodString;
|
|
1337
|
-
idx: z.ZodNumber;
|
|
1338
930
|
attachments: z.ZodArray<z.ZodObject<{
|
|
1339
931
|
url: z.ZodString;
|
|
1340
932
|
type: z.ZodEnum<["image", "video"]>;
|
|
@@ -1358,13 +950,7 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1358
950
|
title_en: string | null;
|
|
1359
951
|
}>, "many">;
|
|
1360
952
|
internal_reasons_collection_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1361
|
-
},
|
|
1362
|
-
name: string;
|
|
1363
|
-
owner: string;
|
|
1364
|
-
creation: string;
|
|
1365
|
-
modified: string;
|
|
1366
|
-
modified_by: string;
|
|
1367
|
-
idx: number;
|
|
953
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1368
954
|
attachments: {
|
|
1369
955
|
type: "image" | "video";
|
|
1370
956
|
url: string;
|
|
@@ -1379,22 +965,14 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1379
965
|
line_item_id?: string | null | undefined;
|
|
1380
966
|
bundle_parent_item?: string | null | undefined;
|
|
1381
967
|
total_price?: number | null | undefined;
|
|
1382
|
-
return_fee?: number | null | undefined;
|
|
1383
968
|
intent?: "return" | "solve" | null | undefined;
|
|
1384
969
|
servicecase_reason?: string | null | undefined;
|
|
1385
970
|
servicecase_solution?: string | null | undefined;
|
|
1386
971
|
batch_number?: string | null | undefined;
|
|
1387
972
|
complaint_description?: string | null | undefined;
|
|
1388
|
-
return_label?: string | null | undefined;
|
|
1389
973
|
attachments_collection_name?: string | null | undefined;
|
|
1390
974
|
internal_reasons_collection_name?: string | null | undefined;
|
|
1391
975
|
}, {
|
|
1392
|
-
name: string;
|
|
1393
|
-
owner: string;
|
|
1394
|
-
creation: string;
|
|
1395
|
-
modified: string;
|
|
1396
|
-
modified_by: string;
|
|
1397
|
-
idx: number;
|
|
1398
976
|
attachments: {
|
|
1399
977
|
type: "image" | "video";
|
|
1400
978
|
url: string;
|
|
@@ -1409,73 +987,22 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1409
987
|
line_item_id?: string | null | undefined;
|
|
1410
988
|
bundle_parent_item?: string | null | undefined;
|
|
1411
989
|
total_price?: number | null | undefined;
|
|
1412
|
-
return_fee?: number | null | undefined;
|
|
1413
990
|
intent?: "return" | "solve" | null | undefined;
|
|
1414
991
|
servicecase_reason?: string | null | undefined;
|
|
1415
992
|
servicecase_solution?: string | null | undefined;
|
|
1416
993
|
batch_number?: string | null | undefined;
|
|
1417
994
|
complaint_description?: string | null | undefined;
|
|
1418
|
-
return_label?: string | null | undefined;
|
|
1419
995
|
attachments_collection_name?: string | null | undefined;
|
|
1420
996
|
internal_reasons_collection_name?: string | null | undefined;
|
|
1421
|
-
}
|
|
1422
|
-
return_shipping_items: z.ZodArray<z.ZodObject<{
|
|
1423
|
-
item: z.ZodString;
|
|
1424
|
-
return_item: z.ZodString;
|
|
1425
|
-
quantity: z.ZodNumber;
|
|
1426
|
-
shipment_id: z.ZodString;
|
|
1427
|
-
return_fee: z.ZodDefault<z.ZodNumber>;
|
|
1428
|
-
return_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1429
|
-
shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1430
|
-
} & {
|
|
1431
|
-
name: z.ZodString;
|
|
1432
|
-
owner: z.ZodString;
|
|
1433
|
-
creation: z.ZodString;
|
|
1434
|
-
modified: z.ZodString;
|
|
1435
|
-
modified_by: z.ZodString;
|
|
1436
|
-
idx: z.ZodNumber;
|
|
1437
|
-
}, "strip", z.ZodTypeAny, {
|
|
1438
|
-
name: string;
|
|
1439
|
-
owner: string;
|
|
1440
|
-
creation: string;
|
|
1441
|
-
modified: string;
|
|
1442
|
-
modified_by: string;
|
|
1443
|
-
idx: number;
|
|
1444
|
-
shipment_id: string;
|
|
1445
|
-
quantity: number;
|
|
1446
|
-
item: string;
|
|
1447
|
-
return_fee: number;
|
|
1448
|
-
return_item: string;
|
|
1449
|
-
shipping_provider?: string | null | undefined;
|
|
1450
|
-
return_label?: string | null | undefined;
|
|
1451
|
-
}, {
|
|
1452
|
-
name: string;
|
|
1453
|
-
owner: string;
|
|
1454
|
-
creation: string;
|
|
1455
|
-
modified: string;
|
|
1456
|
-
modified_by: string;
|
|
1457
|
-
idx: number;
|
|
1458
|
-
shipment_id: string;
|
|
1459
|
-
quantity: number;
|
|
1460
|
-
item: string;
|
|
1461
|
-
return_item: string;
|
|
1462
|
-
shipping_provider?: string | null | undefined;
|
|
1463
|
-
return_fee?: number | undefined;
|
|
1464
|
-
return_label?: string | null | undefined;
|
|
1465
|
-
}>, "many">;
|
|
997
|
+
}>>, "many">;
|
|
1466
998
|
is_sent_to_client: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
1467
999
|
is_sent_to_cc: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
1468
1000
|
}, "strip", z.ZodTypeAny, {
|
|
1469
1001
|
status: "EDITING" | "SUBMITTED" | "COMPLETED";
|
|
1470
|
-
name: string;
|
|
1471
1002
|
country: string;
|
|
1472
|
-
owner: string;
|
|
1473
|
-
creation: string;
|
|
1474
|
-
modified: string;
|
|
1475
|
-
modified_by: string;
|
|
1476
|
-
order_number: string;
|
|
1477
1003
|
title: string;
|
|
1478
|
-
|
|
1004
|
+
order_number: string;
|
|
1005
|
+
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto";
|
|
1479
1006
|
is_sent_to_client: boolean;
|
|
1480
1007
|
is_sent_to_cc: boolean;
|
|
1481
1008
|
created_with: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar";
|
|
@@ -1486,44 +1013,61 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1486
1013
|
modified: string;
|
|
1487
1014
|
modified_by: string;
|
|
1488
1015
|
idx: number;
|
|
1016
|
+
docstatus: number;
|
|
1017
|
+
doctype: string;
|
|
1489
1018
|
attachments: {
|
|
1490
1019
|
type: "image" | "video";
|
|
1491
1020
|
url: string;
|
|
1021
|
+
name: string;
|
|
1022
|
+
owner: string;
|
|
1023
|
+
creation: string;
|
|
1024
|
+
modified: string;
|
|
1025
|
+
modified_by: string;
|
|
1026
|
+
idx: number;
|
|
1027
|
+
docstatus: number;
|
|
1028
|
+
doctype: string;
|
|
1029
|
+
parenttype: string;
|
|
1030
|
+
parentfield: string;
|
|
1031
|
+
_user_tags?: string | undefined;
|
|
1492
1032
|
}[];
|
|
1493
1033
|
internal_reasons: {
|
|
1034
|
+
name: string;
|
|
1035
|
+
owner: string;
|
|
1036
|
+
creation: string;
|
|
1037
|
+
modified: string;
|
|
1038
|
+
modified_by: string;
|
|
1039
|
+
idx: number;
|
|
1040
|
+
docstatus: number;
|
|
1041
|
+
doctype: string;
|
|
1042
|
+
parenttype: string;
|
|
1043
|
+
parentfield: string;
|
|
1494
1044
|
title_de: string | null;
|
|
1495
1045
|
title_en: string | null;
|
|
1046
|
+
_user_tags?: string | undefined;
|
|
1496
1047
|
}[];
|
|
1497
1048
|
item: string;
|
|
1498
1049
|
return_quantity: number;
|
|
1499
1050
|
is_complaint: boolean;
|
|
1051
|
+
_user_tags?: string | undefined;
|
|
1500
1052
|
line_item_id?: string | null | undefined;
|
|
1501
1053
|
bundle_parent_item?: string | null | undefined;
|
|
1502
1054
|
total_price?: number | null | undefined;
|
|
1503
|
-
return_fee?: number | null | undefined;
|
|
1504
1055
|
intent?: "return" | "solve" | null | undefined;
|
|
1505
1056
|
servicecase_reason?: string | null | undefined;
|
|
1506
1057
|
servicecase_solution?: string | null | undefined;
|
|
1507
1058
|
batch_number?: string | null | undefined;
|
|
1508
1059
|
complaint_description?: string | null | undefined;
|
|
1509
|
-
return_label?: string | null | undefined;
|
|
1510
1060
|
attachments_collection_name?: string | null | undefined;
|
|
1511
1061
|
internal_reasons_collection_name?: string | null | undefined;
|
|
1512
1062
|
}[];
|
|
1513
1063
|
return_shipping_items: {
|
|
1514
|
-
name: string;
|
|
1515
|
-
owner: string;
|
|
1516
|
-
creation: string;
|
|
1517
|
-
modified: string;
|
|
1518
|
-
modified_by: string;
|
|
1519
|
-
idx: number;
|
|
1520
|
-
shipment_id: string;
|
|
1521
1064
|
quantity: number;
|
|
1522
1065
|
item: string;
|
|
1523
|
-
return_fee: number;
|
|
1524
1066
|
return_item: string;
|
|
1525
|
-
|
|
1067
|
+
shipment_id: string;
|
|
1068
|
+
return_fee: number;
|
|
1526
1069
|
return_label?: string | null | undefined;
|
|
1070
|
+
shipping_provider?: string | null | undefined;
|
|
1527
1071
|
}[];
|
|
1528
1072
|
external_id?: string | null | undefined;
|
|
1529
1073
|
customer_email?: string | null | undefined;
|
|
@@ -1531,15 +1075,10 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1531
1075
|
customer_message?: string | null | undefined;
|
|
1532
1076
|
agreed_terms?: string | null | undefined;
|
|
1533
1077
|
}, {
|
|
1534
|
-
name: string;
|
|
1535
1078
|
country: string;
|
|
1536
|
-
owner: string;
|
|
1537
|
-
creation: string;
|
|
1538
|
-
modified: string;
|
|
1539
|
-
modified_by: string;
|
|
1540
|
-
order_number: string;
|
|
1541
1079
|
title: string;
|
|
1542
|
-
|
|
1080
|
+
order_number: string;
|
|
1081
|
+
shop: "Shopify" | "Amazon FBA" | "Amazon FBM" | "Otto";
|
|
1543
1082
|
is_sent_to_client: number;
|
|
1544
1083
|
is_sent_to_cc: number;
|
|
1545
1084
|
return_items: {
|
|
@@ -1549,44 +1088,61 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1549
1088
|
modified: string;
|
|
1550
1089
|
modified_by: string;
|
|
1551
1090
|
idx: number;
|
|
1091
|
+
doctype: string;
|
|
1552
1092
|
attachments: {
|
|
1553
1093
|
type: "image" | "video";
|
|
1554
1094
|
url: string;
|
|
1095
|
+
name: string;
|
|
1096
|
+
owner: string;
|
|
1097
|
+
creation: string;
|
|
1098
|
+
modified: string;
|
|
1099
|
+
modified_by: string;
|
|
1100
|
+
idx: number;
|
|
1101
|
+
doctype: string;
|
|
1102
|
+
parenttype: string;
|
|
1103
|
+
parentfield: string;
|
|
1104
|
+
docstatus?: number | undefined;
|
|
1105
|
+
_user_tags?: string | undefined;
|
|
1555
1106
|
}[];
|
|
1556
1107
|
internal_reasons: {
|
|
1108
|
+
name: string;
|
|
1109
|
+
owner: string;
|
|
1110
|
+
creation: string;
|
|
1111
|
+
modified: string;
|
|
1112
|
+
modified_by: string;
|
|
1113
|
+
idx: number;
|
|
1114
|
+
doctype: string;
|
|
1115
|
+
parenttype: string;
|
|
1116
|
+
parentfield: string;
|
|
1557
1117
|
title_de: string | null;
|
|
1558
1118
|
title_en: string | null;
|
|
1119
|
+
docstatus?: number | undefined;
|
|
1120
|
+
_user_tags?: string | undefined;
|
|
1559
1121
|
}[];
|
|
1560
1122
|
item: string;
|
|
1561
1123
|
return_quantity: number;
|
|
1562
1124
|
is_complaint: number;
|
|
1125
|
+
docstatus?: number | undefined;
|
|
1126
|
+
_user_tags?: string | undefined;
|
|
1563
1127
|
line_item_id?: string | null | undefined;
|
|
1564
1128
|
bundle_parent_item?: string | null | undefined;
|
|
1565
1129
|
total_price?: number | null | undefined;
|
|
1566
|
-
return_fee?: number | null | undefined;
|
|
1567
1130
|
intent?: "return" | "solve" | null | undefined;
|
|
1568
1131
|
servicecase_reason?: string | null | undefined;
|
|
1569
1132
|
servicecase_solution?: string | null | undefined;
|
|
1570
1133
|
batch_number?: string | null | undefined;
|
|
1571
1134
|
complaint_description?: string | null | undefined;
|
|
1572
|
-
return_label?: string | null | undefined;
|
|
1573
1135
|
attachments_collection_name?: string | null | undefined;
|
|
1574
1136
|
internal_reasons_collection_name?: string | null | undefined;
|
|
1575
1137
|
}[];
|
|
1576
1138
|
return_shipping_items: {
|
|
1577
|
-
name: string;
|
|
1578
|
-
owner: string;
|
|
1579
|
-
creation: string;
|
|
1580
|
-
modified: string;
|
|
1581
|
-
modified_by: string;
|
|
1582
|
-
idx: number;
|
|
1583
|
-
shipment_id: string;
|
|
1584
1139
|
quantity: number;
|
|
1585
1140
|
item: string;
|
|
1586
1141
|
return_item: string;
|
|
1587
|
-
|
|
1142
|
+
shipment_id: string;
|
|
1588
1143
|
return_fee?: number | undefined;
|
|
1589
1144
|
return_label?: string | null | undefined;
|
|
1145
|
+
shipping_provider?: string | null | undefined;
|
|
1590
1146
|
}[];
|
|
1591
1147
|
status?: "EDITING" | "SUBMITTED" | "COMPLETED" | undefined;
|
|
1592
1148
|
external_id?: string | null | undefined;
|
|
@@ -1596,6 +1152,5 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
|
|
|
1596
1152
|
agreed_terms?: string | null | undefined;
|
|
1597
1153
|
created_with?: "Amazon FBA" | "Amazon FBM" | "Serviceportal" | "Missive Sidebar" | undefined;
|
|
1598
1154
|
}>, "many">;
|
|
1599
|
-
export type AttachmentCollectionInputType = z.infer<typeof UpdateAttachmentCollectionInput>;
|
|
1600
|
-
export type InternalReasonCollectionInputType = z.infer<typeof UpdateInternalReasonCollectionInput>;
|
|
1601
1155
|
export type ServicecaseMethodResponseType = z.infer<typeof ServicecaseMethodResponse>;
|
|
1156
|
+
export {};
|