erpnext-queue-client 1.19.4 → 1.19.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/erpnext/doctypes/servicecase.d.ts +4 -18
- package/dist/erpnext/doctypes/servicecase.js +2 -2
- package/dist/erpnext/model/Servicecase.d.ts +11 -51
- package/dist/erpnext/model/Servicecase.js +7 -2
- package/dist/erpnext/model/ShippingLabel.d.ts +3 -3
- package/dist/erpnext/model/ShippingLabel.js +1 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TemporalClient } from "../../client";
|
|
2
2
|
import { ERPNextDoctypeResourceRequest } from "../doctypeResourceRequest";
|
|
3
|
-
import { AttachmentCollection, AttachmentCollectionInputType, InternalReasonCollection, InternalReasonCollectionInputType, Servicecase, ServicecaseInputType
|
|
3
|
+
import { AttachmentCollection, AttachmentCollectionInputType, InternalReasonCollection, InternalReasonCollectionInputType, Servicecase, ServicecaseInputType } from "../model/Servicecase";
|
|
4
4
|
export declare class ERPNextServicecase {
|
|
5
5
|
private methodRequest;
|
|
6
6
|
protected temporalClient: TemporalClient;
|
|
@@ -38,9 +38,7 @@ export declare class ERPNextServicecase {
|
|
|
38
38
|
servicecase_solution?: string | null | undefined;
|
|
39
39
|
batch_number?: string | null | undefined;
|
|
40
40
|
complaint_description?: string | null | undefined;
|
|
41
|
-
complaint_images?: string[] | null | undefined;
|
|
42
41
|
}[];
|
|
43
|
-
is_complaint?: boolean | null | undefined;
|
|
44
42
|
external_id?: string | null | undefined;
|
|
45
43
|
customer_email?: string | null | undefined;
|
|
46
44
|
complaint_date?: string | null | undefined;
|
|
@@ -49,7 +47,7 @@ export declare class ERPNextServicecase {
|
|
|
49
47
|
customer_message?: string | null | undefined;
|
|
50
48
|
agreed_terms?: string | null | undefined;
|
|
51
49
|
}>;
|
|
52
|
-
getList: <TField extends ("status" | "name" | "country" | "owner" | "creation" | "modified" | "modified_by" | "title" | "order_number" | "shop" | "created_with" | "return_items") | ("
|
|
50
|
+
getList: <TField extends ("status" | "name" | "country" | "owner" | "creation" | "modified" | "modified_by" | "title" | "order_number" | "shop" | "created_with" | "return_items") | ("external_id" | "customer_email" | "complaint_date" | "is_sent_to_client" | "is_sent_to_cc" | "customer_message" | "agreed_terms"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
|
|
53
51
|
fields?: TField[] | undefined;
|
|
54
52
|
filters?: (string | string[])[][];
|
|
55
53
|
skip?: number;
|
|
@@ -88,9 +86,7 @@ export declare class ERPNextServicecase {
|
|
|
88
86
|
servicecase_solution?: string | null | undefined;
|
|
89
87
|
batch_number?: string | null | undefined;
|
|
90
88
|
complaint_description?: string | null | undefined;
|
|
91
|
-
complaint_images?: string[] | null | undefined;
|
|
92
89
|
}[];
|
|
93
|
-
is_complaint?: boolean | null | undefined;
|
|
94
90
|
external_id?: string | null | undefined;
|
|
95
91
|
customer_email?: string | null | undefined;
|
|
96
92
|
complaint_date?: string | null | undefined;
|
|
@@ -133,9 +129,7 @@ export declare class ERPNextServicecase {
|
|
|
133
129
|
servicecase_solution?: string | null | undefined;
|
|
134
130
|
batch_number?: string | null | undefined;
|
|
135
131
|
complaint_description?: string | null | undefined;
|
|
136
|
-
complaint_images?: string[] | null | undefined;
|
|
137
132
|
}[];
|
|
138
|
-
is_complaint?: boolean | null | undefined;
|
|
139
133
|
external_id?: string | null | undefined;
|
|
140
134
|
customer_email?: string | null | undefined;
|
|
141
135
|
complaint_date?: string | null | undefined;
|
|
@@ -144,7 +138,7 @@ export declare class ERPNextServicecase {
|
|
|
144
138
|
customer_message?: string | null | undefined;
|
|
145
139
|
agreed_terms?: string | null | undefined;
|
|
146
140
|
}>;
|
|
147
|
-
updateById: (servicecase:
|
|
141
|
+
updateById: (resourceId: string, servicecase: ServicecaseInputType) => Promise<{
|
|
148
142
|
status: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED";
|
|
149
143
|
name: string;
|
|
150
144
|
country: "Afghanistan" | "Åland Islands" | "Albania" | "Algeria" | "American Samoa" | "Andorra" | "Angola" | "Anguilla" | "Antarctica" | "Antigua and Barbuda" | "Argentina" | "Armenia" | "Aruba" | "Australia" | "Austria" | "Azerbaijan" | "Bahamas" | "Bahrain" | "Bangladesh" | "Barbados" | "Belarus" | "Belgium" | "Belize" | "Benin" | "Bermuda" | "Bhutan" | "Bolivia, Plurinational State of" | "Bonaire, Sint Eustatius and Saba" | "Bosnia and Herzegovina" | "Botswana" | "Bouvet Island" | "Brazil" | "British Indian Ocean Territory" | "Brunei Darussalam" | "Bulgaria" | "Burkina Faso" | "Burundi" | "Cambodia" | "Cameroon" | "Canada" | "Cape Verde" | "Cayman Islands" | "Central African Republic" | "Chad" | "Chile" | "China" | "Christmas Island" | "Cocos (Keeling) Islands" | "Colombia" | "Comoros" | "Congo" | "Congo, The Democratic Republic of the" | "Cook Islands" | "Costa Rica" | "Croatia" | "Cuba" | "Curaçao" | "Cyprus" | "Czech Republic" | "Denmark" | "Djibouti" | "Dominica" | "Dominican Republic" | "Ecuador" | "Egypt" | "El Salvador" | "Equatorial Guinea" | "Eritrea" | "Estonia" | "Ethiopia" | "Falkland Islands (Malvinas)" | "Faroe Islands" | "Fiji" | "Finland" | "France" | "French Guiana" | "French Polynesia" | "French Southern Territories" | "Gabon" | "Gambia" | "Georgia" | "Germany" | "Ghana" | "Gibraltar" | "Greece" | "Greenland" | "Grenada" | "Guadeloupe" | "Guam" | "Guatemala" | "Guernsey" | "Guinea" | "Guinea-Bissau" | "Guyana" | "Haiti" | "Heard Island and McDonald Islands" | "Holy See (Vatican City State)" | "Honduras" | "Hong Kong" | "Hungary" | "Iceland" | "India" | "Indonesia" | "Iran" | "Iraq" | "Ireland" | "Isle of Man" | "Israel" | "Italy" | "Ivory Coast" | "Jamaica" | "Japan" | "Jersey" | "Jordan" | "Kazakhstan" | "Kenya" | "Kiribati" | "Korea, Democratic Peoples Republic of" | "Korea, Republic of" | "Kuwait" | "Kyrgyzstan" | "Lao Peoples Democratic Republic" | "Latvia" | "Lebanon" | "Lesotho" | "Liberia" | "Libya" | "Liechtenstein" | "Lithuania" | "Luxembourg" | "Macao" | "Macedonia" | "Madagascar" | "Malawi" | "Malaysia" | "Maldives" | "Mali" | "Malta" | "Marshall Islands" | "Martinique" | "Mauritania" | "Mauritius" | "Mayotte" | "Mexico" | "Micronesia, Federated States of" | "Moldova, Republic of" | "Monaco" | "Mongolia" | "Montenegro" | "Montserrat" | "Morocco" | "Mozambique" | "Myanmar" | "Namibia" | "Nauru" | "Nepal" | "Netherlands" | "New Caledonia" | "New Zealand" | "Nicaragua" | "Niger" | "Nigeria" | "Niue" | "Norfolk Island" | "Northern Mariana Islands" | "Norway" | "Oman" | "Pakistan" | "Palau" | "Palestinian Territory, Occupied" | "Panama" | "Papua New Guinea" | "Paraguay" | "Peru" | "Philippines" | "Pitcairn" | "Poland" | "Portugal" | "Puerto Rico" | "Qatar" | "Réunion" | "Romania" | "Russian Federation" | "Rwanda" | "Saint Barthélemy" | "Saint Helena, Ascension and Tristan da Cunha" | "Saint Kitts and Nevis" | "Saint Lucia" | "Saint Martin (French part)" | "Saint Pierre and Miquelon" | "Saint Vincent and the Grenadines" | "Samoa" | "San Marino" | "Sao Tome and Principe" | "Saudi Arabia" | "Senegal" | "Serbia" | "Seychelles" | "Sierra Leone" | "Singapore" | "Sint Maarten (Dutch part)" | "Slovakia" | "Slovenia" | "Solomon Islands" | "Somalia" | "South Africa" | "South Georgia and the South Sandwich Islands" | "South Sudan" | "Spain" | "Sri Lanka" | "Sudan" | "Suriname" | "Svalbard and Jan Mayen" | "Swaziland" | "Sweden" | "Switzerland" | "Syria" | "Taiwan" | "Tajikistan" | "Tanzania" | "Thailand" | "Timor-Leste" | "Togo" | "Tokelau" | "Tonga" | "Trinidad and Tobago" | "Tunisia" | "Turkey" | "Turkmenistan" | "Turks and Caicos Islands" | "Tuvalu" | "Uganda" | "Ukraine" | "United Arab Emirates" | "United Kingdom" | "United States" | "United States Minor Outlying Islands" | "Uruguay" | "Uzbekistan" | "Vanuatu" | "Venezuela, Bolivarian Republic of" | "Vietnam" | "Virgin Islands, British" | "Virgin Islands, U.S." | "Wallis and Futuna" | "Western Sahara" | "Yemen" | "Zambia" | "Zimbabwe";
|
|
@@ -175,9 +169,7 @@ export declare class ERPNextServicecase {
|
|
|
175
169
|
servicecase_solution?: string | null | undefined;
|
|
176
170
|
batch_number?: string | null | undefined;
|
|
177
171
|
complaint_description?: string | null | undefined;
|
|
178
|
-
complaint_images?: string[] | null | undefined;
|
|
179
172
|
}[];
|
|
180
|
-
is_complaint?: boolean | null | undefined;
|
|
181
173
|
external_id?: string | null | undefined;
|
|
182
174
|
customer_email?: string | null | undefined;
|
|
183
175
|
complaint_date?: string | null | undefined;
|
|
@@ -222,9 +214,7 @@ export declare class ERPNextServicecase {
|
|
|
222
214
|
servicecase_solution?: string | null | undefined;
|
|
223
215
|
batch_number?: string | null | undefined;
|
|
224
216
|
complaint_description?: string | null | undefined;
|
|
225
|
-
complaint_images?: string[] | null | undefined;
|
|
226
217
|
}[];
|
|
227
|
-
is_complaint?: boolean | null | undefined;
|
|
228
218
|
external_id?: string | null | undefined;
|
|
229
219
|
customer_email?: string | null | undefined;
|
|
230
220
|
complaint_date?: string | null | undefined;
|
|
@@ -233,7 +223,7 @@ export declare class ERPNextServicecase {
|
|
|
233
223
|
customer_message?: string | null | undefined;
|
|
234
224
|
agreed_terms?: string | null | undefined;
|
|
235
225
|
}>;
|
|
236
|
-
updateServicecase(servicecase:
|
|
226
|
+
updateServicecase(resourceId: string, servicecase: ServicecaseInputType): Promise<{
|
|
237
227
|
status: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED";
|
|
238
228
|
name: string;
|
|
239
229
|
country: "Afghanistan" | "Åland Islands" | "Albania" | "Algeria" | "American Samoa" | "Andorra" | "Angola" | "Anguilla" | "Antarctica" | "Antigua and Barbuda" | "Argentina" | "Armenia" | "Aruba" | "Australia" | "Austria" | "Azerbaijan" | "Bahamas" | "Bahrain" | "Bangladesh" | "Barbados" | "Belarus" | "Belgium" | "Belize" | "Benin" | "Bermuda" | "Bhutan" | "Bolivia, Plurinational State of" | "Bonaire, Sint Eustatius and Saba" | "Bosnia and Herzegovina" | "Botswana" | "Bouvet Island" | "Brazil" | "British Indian Ocean Territory" | "Brunei Darussalam" | "Bulgaria" | "Burkina Faso" | "Burundi" | "Cambodia" | "Cameroon" | "Canada" | "Cape Verde" | "Cayman Islands" | "Central African Republic" | "Chad" | "Chile" | "China" | "Christmas Island" | "Cocos (Keeling) Islands" | "Colombia" | "Comoros" | "Congo" | "Congo, The Democratic Republic of the" | "Cook Islands" | "Costa Rica" | "Croatia" | "Cuba" | "Curaçao" | "Cyprus" | "Czech Republic" | "Denmark" | "Djibouti" | "Dominica" | "Dominican Republic" | "Ecuador" | "Egypt" | "El Salvador" | "Equatorial Guinea" | "Eritrea" | "Estonia" | "Ethiopia" | "Falkland Islands (Malvinas)" | "Faroe Islands" | "Fiji" | "Finland" | "France" | "French Guiana" | "French Polynesia" | "French Southern Territories" | "Gabon" | "Gambia" | "Georgia" | "Germany" | "Ghana" | "Gibraltar" | "Greece" | "Greenland" | "Grenada" | "Guadeloupe" | "Guam" | "Guatemala" | "Guernsey" | "Guinea" | "Guinea-Bissau" | "Guyana" | "Haiti" | "Heard Island and McDonald Islands" | "Holy See (Vatican City State)" | "Honduras" | "Hong Kong" | "Hungary" | "Iceland" | "India" | "Indonesia" | "Iran" | "Iraq" | "Ireland" | "Isle of Man" | "Israel" | "Italy" | "Ivory Coast" | "Jamaica" | "Japan" | "Jersey" | "Jordan" | "Kazakhstan" | "Kenya" | "Kiribati" | "Korea, Democratic Peoples Republic of" | "Korea, Republic of" | "Kuwait" | "Kyrgyzstan" | "Lao Peoples Democratic Republic" | "Latvia" | "Lebanon" | "Lesotho" | "Liberia" | "Libya" | "Liechtenstein" | "Lithuania" | "Luxembourg" | "Macao" | "Macedonia" | "Madagascar" | "Malawi" | "Malaysia" | "Maldives" | "Mali" | "Malta" | "Marshall Islands" | "Martinique" | "Mauritania" | "Mauritius" | "Mayotte" | "Mexico" | "Micronesia, Federated States of" | "Moldova, Republic of" | "Monaco" | "Mongolia" | "Montenegro" | "Montserrat" | "Morocco" | "Mozambique" | "Myanmar" | "Namibia" | "Nauru" | "Nepal" | "Netherlands" | "New Caledonia" | "New Zealand" | "Nicaragua" | "Niger" | "Nigeria" | "Niue" | "Norfolk Island" | "Northern Mariana Islands" | "Norway" | "Oman" | "Pakistan" | "Palau" | "Palestinian Territory, Occupied" | "Panama" | "Papua New Guinea" | "Paraguay" | "Peru" | "Philippines" | "Pitcairn" | "Poland" | "Portugal" | "Puerto Rico" | "Qatar" | "Réunion" | "Romania" | "Russian Federation" | "Rwanda" | "Saint Barthélemy" | "Saint Helena, Ascension and Tristan da Cunha" | "Saint Kitts and Nevis" | "Saint Lucia" | "Saint Martin (French part)" | "Saint Pierre and Miquelon" | "Saint Vincent and the Grenadines" | "Samoa" | "San Marino" | "Sao Tome and Principe" | "Saudi Arabia" | "Senegal" | "Serbia" | "Seychelles" | "Sierra Leone" | "Singapore" | "Sint Maarten (Dutch part)" | "Slovakia" | "Slovenia" | "Solomon Islands" | "Somalia" | "South Africa" | "South Georgia and the South Sandwich Islands" | "South Sudan" | "Spain" | "Sri Lanka" | "Sudan" | "Suriname" | "Svalbard and Jan Mayen" | "Swaziland" | "Sweden" | "Switzerland" | "Syria" | "Taiwan" | "Tajikistan" | "Tanzania" | "Thailand" | "Timor-Leste" | "Togo" | "Tokelau" | "Tonga" | "Trinidad and Tobago" | "Tunisia" | "Turkey" | "Turkmenistan" | "Turks and Caicos Islands" | "Tuvalu" | "Uganda" | "Ukraine" | "United Arab Emirates" | "United Kingdom" | "United States" | "United States Minor Outlying Islands" | "Uruguay" | "Uzbekistan" | "Vanuatu" | "Venezuela, Bolivarian Republic of" | "Vietnam" | "Virgin Islands, British" | "Virgin Islands, U.S." | "Wallis and Futuna" | "Western Sahara" | "Yemen" | "Zambia" | "Zimbabwe";
|
|
@@ -264,9 +254,7 @@ export declare class ERPNextServicecase {
|
|
|
264
254
|
servicecase_solution?: string | null | undefined;
|
|
265
255
|
batch_number?: string | null | undefined;
|
|
266
256
|
complaint_description?: string | null | undefined;
|
|
267
|
-
complaint_images?: string[] | null | undefined;
|
|
268
257
|
}[];
|
|
269
|
-
is_complaint?: boolean | null | undefined;
|
|
270
258
|
external_id?: string | null | undefined;
|
|
271
259
|
customer_email?: string | null | undefined;
|
|
272
260
|
complaint_date?: string | null | undefined;
|
|
@@ -309,11 +297,9 @@ export declare class ERPNextServicecase {
|
|
|
309
297
|
servicecase_solution?: string | null | undefined;
|
|
310
298
|
batch_number?: string | null | undefined;
|
|
311
299
|
complaint_description?: string | null | undefined;
|
|
312
|
-
complaint_images?: string[] | null | undefined;
|
|
313
300
|
attachments_collection_name?: string | null | undefined;
|
|
314
301
|
internal_reasons_collection_name?: string | null | undefined;
|
|
315
302
|
}[];
|
|
316
|
-
is_complaint?: boolean | null | undefined;
|
|
317
303
|
external_id?: string | null | undefined;
|
|
318
304
|
customer_email?: string | null | undefined;
|
|
319
305
|
complaint_date?: string | null | undefined;
|
|
@@ -44,7 +44,7 @@ class ERPNextServicecase {
|
|
|
44
44
|
return newServicecase;
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
|
-
updateServicecase(servicecase) {
|
|
47
|
+
updateServicecase(resourceId, servicecase) {
|
|
48
48
|
return __awaiter(this, void 0, void 0, function* () {
|
|
49
49
|
var _a;
|
|
50
50
|
for (const returnItem of (_a = servicecase.return_items) !== null && _a !== void 0 ? _a : []) {
|
|
@@ -60,7 +60,7 @@ class ERPNextServicecase {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
const updatedServicecase = yield this.baseRequest.updateById({
|
|
63
|
-
resourceId
|
|
63
|
+
resourceId,
|
|
64
64
|
body: servicecase,
|
|
65
65
|
inputValidationModel: Servicecase_1.ServicecaseInput,
|
|
66
66
|
});
|
|
@@ -167,7 +167,6 @@ export declare const ReturnItem: z.ZodObject<{
|
|
|
167
167
|
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
168
168
|
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
169
169
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
170
|
-
complaint_images: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
171
170
|
attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
172
171
|
}, "strip", z.ZodTypeAny, {
|
|
173
172
|
name: string;
|
|
@@ -188,7 +187,6 @@ export declare const ReturnItem: z.ZodObject<{
|
|
|
188
187
|
servicecase_solution?: string | null | undefined;
|
|
189
188
|
batch_number?: string | null | undefined;
|
|
190
189
|
complaint_description?: string | null | undefined;
|
|
191
|
-
complaint_images?: string[] | null | undefined;
|
|
192
190
|
}, {
|
|
193
191
|
name: string;
|
|
194
192
|
owner: string;
|
|
@@ -208,7 +206,6 @@ export declare const ReturnItem: z.ZodObject<{
|
|
|
208
206
|
servicecase_solution?: string | null | undefined;
|
|
209
207
|
batch_number?: string | null | undefined;
|
|
210
208
|
complaint_description?: string | null | undefined;
|
|
211
|
-
complaint_images?: string[] | null | undefined;
|
|
212
209
|
}>;
|
|
213
210
|
export declare const Servicecase: z.ZodObject<{
|
|
214
211
|
name: z.ZodString;
|
|
@@ -223,7 +220,6 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
223
220
|
customer_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
224
221
|
status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTING", "VALIDATING", "REJECTED", "SHIPPING", "COMPLETED"]>>;
|
|
225
222
|
complaint_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
226
|
-
is_complaint: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, boolean, number>>>;
|
|
227
223
|
is_sent_to_client: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, boolean, number>>>;
|
|
228
224
|
is_sent_to_cc: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, boolean, number>>>;
|
|
229
225
|
customer_message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -248,7 +244,6 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
248
244
|
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
249
245
|
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
250
246
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
251
|
-
complaint_images: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
252
247
|
attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
253
248
|
}, "strip", z.ZodTypeAny, {
|
|
254
249
|
name: string;
|
|
@@ -269,7 +264,6 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
269
264
|
servicecase_solution?: string | null | undefined;
|
|
270
265
|
batch_number?: string | null | undefined;
|
|
271
266
|
complaint_description?: string | null | undefined;
|
|
272
|
-
complaint_images?: string[] | null | undefined;
|
|
273
267
|
}, {
|
|
274
268
|
name: string;
|
|
275
269
|
owner: string;
|
|
@@ -289,7 +283,6 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
289
283
|
servicecase_solution?: string | null | undefined;
|
|
290
284
|
batch_number?: string | null | undefined;
|
|
291
285
|
complaint_description?: string | null | undefined;
|
|
292
|
-
complaint_images?: string[] | null | undefined;
|
|
293
286
|
}>, "many">;
|
|
294
287
|
}, "strip", z.ZodTypeAny, {
|
|
295
288
|
status: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED";
|
|
@@ -322,9 +315,7 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
322
315
|
servicecase_solution?: string | null | undefined;
|
|
323
316
|
batch_number?: string | null | undefined;
|
|
324
317
|
complaint_description?: string | null | undefined;
|
|
325
|
-
complaint_images?: string[] | null | undefined;
|
|
326
318
|
}[];
|
|
327
|
-
is_complaint?: boolean | null | undefined;
|
|
328
319
|
external_id?: string | null | undefined;
|
|
329
320
|
customer_email?: string | null | undefined;
|
|
330
321
|
complaint_date?: string | null | undefined;
|
|
@@ -361,10 +352,8 @@ export declare const Servicecase: z.ZodObject<{
|
|
|
361
352
|
servicecase_solution?: string | null | undefined;
|
|
362
353
|
batch_number?: string | null | undefined;
|
|
363
354
|
complaint_description?: string | null | undefined;
|
|
364
|
-
complaint_images?: string[] | null | undefined;
|
|
365
355
|
}[];
|
|
366
356
|
status?: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED" | undefined;
|
|
367
|
-
is_complaint?: number | null | undefined;
|
|
368
357
|
external_id?: string | null | undefined;
|
|
369
358
|
customer_email?: string | null | undefined;
|
|
370
359
|
complaint_date?: string | null | undefined;
|
|
@@ -387,7 +376,6 @@ export declare const ServicecaseInput: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
387
376
|
customer_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
388
377
|
status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTING", "VALIDATING", "REJECTED", "SHIPPING", "COMPLETED"]>>;
|
|
389
378
|
complaint_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
390
|
-
is_complaint: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, boolean, number>>>;
|
|
391
379
|
is_sent_to_client: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, boolean, number>>>;
|
|
392
380
|
is_sent_to_cc: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, boolean, number>>>;
|
|
393
381
|
customer_message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -412,7 +400,6 @@ export declare const ServicecaseInput: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
412
400
|
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
413
401
|
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
414
402
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
415
|
-
complaint_images: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
416
403
|
attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
417
404
|
}, "strip", z.ZodTypeAny, {
|
|
418
405
|
name: string;
|
|
@@ -433,7 +420,6 @@ export declare const ServicecaseInput: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
433
420
|
servicecase_solution?: string | null | undefined;
|
|
434
421
|
batch_number?: string | null | undefined;
|
|
435
422
|
complaint_description?: string | null | undefined;
|
|
436
|
-
complaint_images?: string[] | null | undefined;
|
|
437
423
|
}, {
|
|
438
424
|
name: string;
|
|
439
425
|
owner: string;
|
|
@@ -453,10 +439,11 @@ export declare const ServicecaseInput: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
453
439
|
servicecase_solution?: string | null | undefined;
|
|
454
440
|
batch_number?: string | null | undefined;
|
|
455
441
|
complaint_description?: string | null | undefined;
|
|
456
|
-
complaint_images?: string[] | null | undefined;
|
|
457
442
|
}>, "many">;
|
|
458
|
-
}, "name" | "owner" | "creation" | "modified" | "modified_by" | "return_items">, {
|
|
459
|
-
|
|
443
|
+
}, "name" | "owner" | "creation" | "modified" | "modified_by" | "is_sent_to_client" | "is_sent_to_cc" | "return_items">, {
|
|
444
|
+
is_sent_to_client: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
445
|
+
is_sent_to_cc: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
446
|
+
return_items: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
460
447
|
name: z.ZodString;
|
|
461
448
|
owner: z.ZodString;
|
|
462
449
|
creation: z.ZodString;
|
|
@@ -474,12 +461,13 @@ export declare const ServicecaseInput: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
474
461
|
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
475
462
|
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
476
463
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
477
|
-
complaint_images: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
478
464
|
attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
479
|
-
}, "name" | "owner" | "creation" | "modified" | "modified_by" | "idx"
|
|
465
|
+
}, "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "is_complaint">, {
|
|
466
|
+
is_complaint: z.ZodNumber;
|
|
467
|
+
}>, "strip", z.ZodTypeAny, {
|
|
480
468
|
item: string;
|
|
481
469
|
return_quantity: number;
|
|
482
|
-
is_complaint:
|
|
470
|
+
is_complaint: number;
|
|
483
471
|
attachments?: string | null | undefined;
|
|
484
472
|
internal_reasons?: string | null | undefined;
|
|
485
473
|
line_item_id?: string | null | undefined;
|
|
@@ -489,7 +477,6 @@ export declare const ServicecaseInput: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
489
477
|
servicecase_solution?: string | null | undefined;
|
|
490
478
|
batch_number?: string | null | undefined;
|
|
491
479
|
complaint_description?: string | null | undefined;
|
|
492
|
-
complaint_images?: string[] | null | undefined;
|
|
493
480
|
}, {
|
|
494
481
|
item: string;
|
|
495
482
|
return_quantity: number;
|
|
@@ -503,7 +490,6 @@ export declare const ServicecaseInput: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
503
490
|
servicecase_solution?: string | null | undefined;
|
|
504
491
|
batch_number?: string | null | undefined;
|
|
505
492
|
complaint_description?: string | null | undefined;
|
|
506
|
-
complaint_images?: string[] | null | undefined;
|
|
507
493
|
}>, "many">;
|
|
508
494
|
}>, "strip", z.ZodTypeAny, {
|
|
509
495
|
status: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED";
|
|
@@ -515,7 +501,7 @@ export declare const ServicecaseInput: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
515
501
|
return_items: {
|
|
516
502
|
item: string;
|
|
517
503
|
return_quantity: number;
|
|
518
|
-
is_complaint:
|
|
504
|
+
is_complaint: number;
|
|
519
505
|
attachments?: string | null | undefined;
|
|
520
506
|
internal_reasons?: string | null | undefined;
|
|
521
507
|
line_item_id?: string | null | undefined;
|
|
@@ -525,14 +511,12 @@ export declare const ServicecaseInput: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
525
511
|
servicecase_solution?: string | null | undefined;
|
|
526
512
|
batch_number?: string | null | undefined;
|
|
527
513
|
complaint_description?: string | null | undefined;
|
|
528
|
-
complaint_images?: string[] | null | undefined;
|
|
529
514
|
}[];
|
|
530
|
-
is_complaint?: boolean | null | undefined;
|
|
531
515
|
external_id?: string | null | undefined;
|
|
532
516
|
customer_email?: string | null | undefined;
|
|
533
517
|
complaint_date?: string | null | undefined;
|
|
534
|
-
is_sent_to_client?:
|
|
535
|
-
is_sent_to_cc?:
|
|
518
|
+
is_sent_to_client?: number | null | undefined;
|
|
519
|
+
is_sent_to_cc?: number | null | undefined;
|
|
536
520
|
customer_message?: string | null | undefined;
|
|
537
521
|
agreed_terms?: string | null | undefined;
|
|
538
522
|
}, {
|
|
@@ -553,10 +537,8 @@ export declare const ServicecaseInput: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
553
537
|
servicecase_solution?: string | null | undefined;
|
|
554
538
|
batch_number?: string | null | undefined;
|
|
555
539
|
complaint_description?: string | null | undefined;
|
|
556
|
-
complaint_images?: string[] | null | undefined;
|
|
557
540
|
}[];
|
|
558
541
|
status?: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED" | undefined;
|
|
559
|
-
is_complaint?: number | null | undefined;
|
|
560
542
|
external_id?: string | null | undefined;
|
|
561
543
|
customer_email?: string | null | undefined;
|
|
562
544
|
complaint_date?: string | null | undefined;
|
|
@@ -579,7 +561,6 @@ export declare const ServicecaseExtended: z.ZodObject<z.objectUtil.extendShape<O
|
|
|
579
561
|
customer_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
580
562
|
status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTING", "VALIDATING", "REJECTED", "SHIPPING", "COMPLETED"]>>;
|
|
581
563
|
complaint_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
582
|
-
is_complaint: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, boolean, number>>>;
|
|
583
564
|
is_sent_to_client: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, boolean, number>>>;
|
|
584
565
|
is_sent_to_cc: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, boolean, number>>>;
|
|
585
566
|
customer_message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -604,7 +585,6 @@ export declare const ServicecaseExtended: z.ZodObject<z.objectUtil.extendShape<O
|
|
|
604
585
|
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
605
586
|
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
606
587
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
607
|
-
complaint_images: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
608
588
|
attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
609
589
|
}, "strip", z.ZodTypeAny, {
|
|
610
590
|
name: string;
|
|
@@ -625,7 +605,6 @@ export declare const ServicecaseExtended: z.ZodObject<z.objectUtil.extendShape<O
|
|
|
625
605
|
servicecase_solution?: string | null | undefined;
|
|
626
606
|
batch_number?: string | null | undefined;
|
|
627
607
|
complaint_description?: string | null | undefined;
|
|
628
|
-
complaint_images?: string[] | null | undefined;
|
|
629
608
|
}, {
|
|
630
609
|
name: string;
|
|
631
610
|
owner: string;
|
|
@@ -645,7 +624,6 @@ export declare const ServicecaseExtended: z.ZodObject<z.objectUtil.extendShape<O
|
|
|
645
624
|
servicecase_solution?: string | null | undefined;
|
|
646
625
|
batch_number?: string | null | undefined;
|
|
647
626
|
complaint_description?: string | null | undefined;
|
|
648
|
-
complaint_images?: string[] | null | undefined;
|
|
649
627
|
}>, "many">;
|
|
650
628
|
}, "return_items">, {
|
|
651
629
|
return_items: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
@@ -666,7 +644,6 @@ export declare const ServicecaseExtended: z.ZodObject<z.objectUtil.extendShape<O
|
|
|
666
644
|
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
667
645
|
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
668
646
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
669
|
-
complaint_images: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
670
647
|
attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
671
648
|
}, "attachments" | "internal_reasons">, {
|
|
672
649
|
attachments: z.ZodArray<z.ZodString, "many">;
|
|
@@ -692,7 +669,6 @@ export declare const ServicecaseExtended: z.ZodObject<z.objectUtil.extendShape<O
|
|
|
692
669
|
servicecase_solution?: string | null | undefined;
|
|
693
670
|
batch_number?: string | null | undefined;
|
|
694
671
|
complaint_description?: string | null | undefined;
|
|
695
|
-
complaint_images?: string[] | null | undefined;
|
|
696
672
|
attachments_collection_name?: string | null | undefined;
|
|
697
673
|
internal_reasons_collection_name?: string | null | undefined;
|
|
698
674
|
}, {
|
|
@@ -714,7 +690,6 @@ export declare const ServicecaseExtended: z.ZodObject<z.objectUtil.extendShape<O
|
|
|
714
690
|
servicecase_solution?: string | null | undefined;
|
|
715
691
|
batch_number?: string | null | undefined;
|
|
716
692
|
complaint_description?: string | null | undefined;
|
|
717
|
-
complaint_images?: string[] | null | undefined;
|
|
718
693
|
attachments_collection_name?: string | null | undefined;
|
|
719
694
|
internal_reasons_collection_name?: string | null | undefined;
|
|
720
695
|
}>, "many">;
|
|
@@ -749,11 +724,9 @@ export declare const ServicecaseExtended: z.ZodObject<z.objectUtil.extendShape<O
|
|
|
749
724
|
servicecase_solution?: string | null | undefined;
|
|
750
725
|
batch_number?: string | null | undefined;
|
|
751
726
|
complaint_description?: string | null | undefined;
|
|
752
|
-
complaint_images?: string[] | null | undefined;
|
|
753
727
|
attachments_collection_name?: string | null | undefined;
|
|
754
728
|
internal_reasons_collection_name?: string | null | undefined;
|
|
755
729
|
}[];
|
|
756
|
-
is_complaint?: boolean | null | undefined;
|
|
757
730
|
external_id?: string | null | undefined;
|
|
758
731
|
customer_email?: string | null | undefined;
|
|
759
732
|
complaint_date?: string | null | undefined;
|
|
@@ -790,12 +763,10 @@ export declare const ServicecaseExtended: z.ZodObject<z.objectUtil.extendShape<O
|
|
|
790
763
|
servicecase_solution?: string | null | undefined;
|
|
791
764
|
batch_number?: string | null | undefined;
|
|
792
765
|
complaint_description?: string | null | undefined;
|
|
793
|
-
complaint_images?: string[] | null | undefined;
|
|
794
766
|
attachments_collection_name?: string | null | undefined;
|
|
795
767
|
internal_reasons_collection_name?: string | null | undefined;
|
|
796
768
|
}[];
|
|
797
769
|
status?: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED" | undefined;
|
|
798
|
-
is_complaint?: number | null | undefined;
|
|
799
770
|
external_id?: string | null | undefined;
|
|
800
771
|
customer_email?: string | null | undefined;
|
|
801
772
|
complaint_date?: string | null | undefined;
|
|
@@ -819,7 +790,6 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<z.objectU
|
|
|
819
790
|
customer_email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
820
791
|
status: z.ZodDefault<z.ZodEnum<["EDITING", "SUBMITTING", "VALIDATING", "REJECTED", "SHIPPING", "COMPLETED"]>>;
|
|
821
792
|
complaint_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
822
|
-
is_complaint: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, boolean, number>>>;
|
|
823
793
|
is_sent_to_client: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, boolean, number>>>;
|
|
824
794
|
is_sent_to_cc: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodNumber, boolean, number>>>;
|
|
825
795
|
customer_message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -844,7 +814,6 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<z.objectU
|
|
|
844
814
|
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
845
815
|
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
846
816
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
847
|
-
complaint_images: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
848
817
|
attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
849
818
|
}, "strip", z.ZodTypeAny, {
|
|
850
819
|
name: string;
|
|
@@ -865,7 +834,6 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<z.objectU
|
|
|
865
834
|
servicecase_solution?: string | null | undefined;
|
|
866
835
|
batch_number?: string | null | undefined;
|
|
867
836
|
complaint_description?: string | null | undefined;
|
|
868
|
-
complaint_images?: string[] | null | undefined;
|
|
869
837
|
}, {
|
|
870
838
|
name: string;
|
|
871
839
|
owner: string;
|
|
@@ -885,7 +853,6 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<z.objectU
|
|
|
885
853
|
servicecase_solution?: string | null | undefined;
|
|
886
854
|
batch_number?: string | null | undefined;
|
|
887
855
|
complaint_description?: string | null | undefined;
|
|
888
|
-
complaint_images?: string[] | null | undefined;
|
|
889
856
|
}>, "many">;
|
|
890
857
|
}, "return_items">, {
|
|
891
858
|
return_items: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
@@ -906,7 +873,6 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<z.objectU
|
|
|
906
873
|
batch_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
907
874
|
internal_reasons: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
908
875
|
complaint_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
909
|
-
complaint_images: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
910
876
|
attachments: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
911
877
|
}, "attachments" | "internal_reasons">, {
|
|
912
878
|
attachments: z.ZodArray<z.ZodString, "many">;
|
|
@@ -932,7 +898,6 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<z.objectU
|
|
|
932
898
|
servicecase_solution?: string | null | undefined;
|
|
933
899
|
batch_number?: string | null | undefined;
|
|
934
900
|
complaint_description?: string | null | undefined;
|
|
935
|
-
complaint_images?: string[] | null | undefined;
|
|
936
901
|
attachments_collection_name?: string | null | undefined;
|
|
937
902
|
internal_reasons_collection_name?: string | null | undefined;
|
|
938
903
|
}, {
|
|
@@ -954,7 +919,6 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<z.objectU
|
|
|
954
919
|
servicecase_solution?: string | null | undefined;
|
|
955
920
|
batch_number?: string | null | undefined;
|
|
956
921
|
complaint_description?: string | null | undefined;
|
|
957
|
-
complaint_images?: string[] | null | undefined;
|
|
958
922
|
attachments_collection_name?: string | null | undefined;
|
|
959
923
|
internal_reasons_collection_name?: string | null | undefined;
|
|
960
924
|
}>, "many">;
|
|
@@ -989,11 +953,9 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<z.objectU
|
|
|
989
953
|
servicecase_solution?: string | null | undefined;
|
|
990
954
|
batch_number?: string | null | undefined;
|
|
991
955
|
complaint_description?: string | null | undefined;
|
|
992
|
-
complaint_images?: string[] | null | undefined;
|
|
993
956
|
attachments_collection_name?: string | null | undefined;
|
|
994
957
|
internal_reasons_collection_name?: string | null | undefined;
|
|
995
958
|
}[];
|
|
996
|
-
is_complaint?: boolean | null | undefined;
|
|
997
959
|
external_id?: string | null | undefined;
|
|
998
960
|
customer_email?: string | null | undefined;
|
|
999
961
|
complaint_date?: string | null | undefined;
|
|
@@ -1030,12 +992,10 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<z.objectU
|
|
|
1030
992
|
servicecase_solution?: string | null | undefined;
|
|
1031
993
|
batch_number?: string | null | undefined;
|
|
1032
994
|
complaint_description?: string | null | undefined;
|
|
1033
|
-
complaint_images?: string[] | null | undefined;
|
|
1034
995
|
attachments_collection_name?: string | null | undefined;
|
|
1035
996
|
internal_reasons_collection_name?: string | null | undefined;
|
|
1036
997
|
}[];
|
|
1037
998
|
status?: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED" | undefined;
|
|
1038
|
-
is_complaint?: number | null | undefined;
|
|
1039
999
|
external_id?: string | null | undefined;
|
|
1040
1000
|
customer_email?: string | null | undefined;
|
|
1041
1001
|
complaint_date?: string | null | undefined;
|
|
@@ -95,7 +95,6 @@ exports.ReturnItem = zod_1.z
|
|
|
95
95
|
batch_number: zod_1.z.string().optional().nullable(),
|
|
96
96
|
internal_reasons: zod_1.z.string().optional().nullable(),
|
|
97
97
|
complaint_description: zod_1.z.string().optional().nullable(),
|
|
98
|
-
complaint_images: zod_1.z.array(zod_1.z.string()).optional().nullable(),
|
|
99
98
|
attachments: zod_1.z.string().optional().nullable(),
|
|
100
99
|
})
|
|
101
100
|
.describe("ReturnItem");
|
|
@@ -113,7 +112,6 @@ exports.Servicecase = zod_1.z
|
|
|
113
112
|
customer_email: zod_1.z.string().email().optional().nullable(),
|
|
114
113
|
status: Status.default("EDITING"),
|
|
115
114
|
complaint_date: zod_1.z.string().optional().nullable(),
|
|
116
|
-
is_complaint: zod_1.z.number().transform(Boolean).optional().nullable(),
|
|
117
115
|
is_sent_to_client: zod_1.z.number().transform(Boolean).optional().nullable(),
|
|
118
116
|
is_sent_to_cc: zod_1.z.number().transform(Boolean).optional().nullable(),
|
|
119
117
|
customer_message: zod_1.z.string().optional().nullable(),
|
|
@@ -130,8 +128,12 @@ exports.ServicecaseInput = exports.Servicecase.omit({
|
|
|
130
128
|
modified: true,
|
|
131
129
|
modified_by: true,
|
|
132
130
|
return_items: true,
|
|
131
|
+
is_sent_to_client: true,
|
|
132
|
+
is_sent_to_cc: true,
|
|
133
133
|
})
|
|
134
134
|
.extend({
|
|
135
|
+
is_sent_to_client: zod_1.z.number().optional().nullable(),
|
|
136
|
+
is_sent_to_cc: zod_1.z.number().optional().nullable(),
|
|
135
137
|
return_items: zod_1.z.array(exports.ReturnItem.omit({
|
|
136
138
|
name: true,
|
|
137
139
|
owner: true,
|
|
@@ -139,6 +141,9 @@ exports.ServicecaseInput = exports.Servicecase.omit({
|
|
|
139
141
|
modified: true,
|
|
140
142
|
modified_by: true,
|
|
141
143
|
idx: true,
|
|
144
|
+
is_complaint: true,
|
|
145
|
+
}).extend({
|
|
146
|
+
is_complaint: zod_1.z.number(),
|
|
142
147
|
})),
|
|
143
148
|
})
|
|
144
149
|
.describe("ServicecaseInput");
|
|
@@ -130,13 +130,13 @@ export declare const UploadedLabelInfo: z.ZodObject<{
|
|
|
130
130
|
labelId: z.ZodString;
|
|
131
131
|
trackingId: z.ZodOptional<z.ZodString>;
|
|
132
132
|
trackingUrl: z.ZodOptional<z.ZodString>;
|
|
133
|
-
shippingProvider: z.
|
|
133
|
+
shippingProvider: z.ZodString;
|
|
134
134
|
erpNextFileName: z.ZodString;
|
|
135
135
|
s3FileKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
136
136
|
shouldNotifyCustomer: z.ZodOptional<z.ZodBoolean>;
|
|
137
137
|
}, "strip", z.ZodTypeAny, {
|
|
138
138
|
labelId: string;
|
|
139
|
-
shippingProvider:
|
|
139
|
+
shippingProvider: string;
|
|
140
140
|
fileName: string;
|
|
141
141
|
fileUrl: string;
|
|
142
142
|
erpNextFileName: string;
|
|
@@ -146,7 +146,7 @@ export declare const UploadedLabelInfo: z.ZodObject<{
|
|
|
146
146
|
s3FileKey?: string | null | undefined;
|
|
147
147
|
}, {
|
|
148
148
|
labelId: string;
|
|
149
|
-
shippingProvider:
|
|
149
|
+
shippingProvider: string;
|
|
150
150
|
fileName: string;
|
|
151
151
|
fileUrl: string;
|
|
152
152
|
erpNextFileName: string;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UploadedLabelInfo = exports.LabelInfo = exports.ShippingLabelPostBody = exports.ShippingLabel = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const ShippingProvider_1 = require("./ShippingProvider");
|
|
6
5
|
exports.ShippingLabel = zod_1.z
|
|
7
6
|
.object({
|
|
8
7
|
name: zod_1.z.string(),
|
|
@@ -58,7 +57,7 @@ exports.UploadedLabelInfo = zod_1.z
|
|
|
58
57
|
labelId: zod_1.z.string(),
|
|
59
58
|
trackingId: zod_1.z.string().optional(),
|
|
60
59
|
trackingUrl: zod_1.z.string().url().optional(),
|
|
61
|
-
shippingProvider:
|
|
60
|
+
shippingProvider: zod_1.z.string(),
|
|
62
61
|
erpNextFileName: zod_1.z.string(),
|
|
63
62
|
s3FileKey: zod_1.z.string().optional().nullable(),
|
|
64
63
|
shouldNotifyCustomer: zod_1.z.boolean().optional(),
|