erpnext-queue-client 1.36.0 → 1.38.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.
|
@@ -48,6 +48,40 @@ export declare const ServiceportalProductConfiguration: z.ZodObject<{
|
|
|
48
48
|
title: z.ZodString;
|
|
49
49
|
return_fee: z.ZodNumber;
|
|
50
50
|
return_fee_explanation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
51
|
+
return_fees: z.ZodArray<z.ZodObject<{
|
|
52
|
+
name: z.ZodString;
|
|
53
|
+
owner: z.ZodString;
|
|
54
|
+
creation: z.ZodString;
|
|
55
|
+
modified: z.ZodString;
|
|
56
|
+
modified_by: z.ZodString;
|
|
57
|
+
idx: z.ZodNumber;
|
|
58
|
+
docstatus: z.ZodNumber;
|
|
59
|
+
shipping_provider: z.ZodString;
|
|
60
|
+
country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
61
|
+
fee: z.ZodNumber;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
name: string;
|
|
64
|
+
owner: string;
|
|
65
|
+
creation: string;
|
|
66
|
+
modified: string;
|
|
67
|
+
modified_by: string;
|
|
68
|
+
idx: number;
|
|
69
|
+
docstatus: number;
|
|
70
|
+
shipping_provider: string;
|
|
71
|
+
fee: number;
|
|
72
|
+
country?: string | null | undefined;
|
|
73
|
+
}, {
|
|
74
|
+
name: string;
|
|
75
|
+
owner: string;
|
|
76
|
+
creation: string;
|
|
77
|
+
modified: string;
|
|
78
|
+
modified_by: string;
|
|
79
|
+
idx: number;
|
|
80
|
+
docstatus: number;
|
|
81
|
+
shipping_provider: string;
|
|
82
|
+
fee: number;
|
|
83
|
+
country?: string | null | undefined;
|
|
84
|
+
}>, "many">;
|
|
51
85
|
is_ask_for_batch_number: z.ZodNumber;
|
|
52
86
|
batch_number_location_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
53
87
|
return_conditions: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -158,6 +192,18 @@ export declare const ServiceportalProductConfiguration: z.ZodObject<{
|
|
|
158
192
|
internal_reason: string;
|
|
159
193
|
}[];
|
|
160
194
|
return_fee: number;
|
|
195
|
+
return_fees: {
|
|
196
|
+
name: string;
|
|
197
|
+
owner: string;
|
|
198
|
+
creation: string;
|
|
199
|
+
modified: string;
|
|
200
|
+
modified_by: string;
|
|
201
|
+
idx: number;
|
|
202
|
+
docstatus: number;
|
|
203
|
+
shipping_provider: string;
|
|
204
|
+
fee: number;
|
|
205
|
+
country?: string | null | undefined;
|
|
206
|
+
}[];
|
|
161
207
|
is_ask_for_batch_number: number;
|
|
162
208
|
batch_numbers: {
|
|
163
209
|
name: string;
|
|
@@ -202,6 +248,18 @@ export declare const ServiceportalProductConfiguration: z.ZodObject<{
|
|
|
202
248
|
internal_reason: string;
|
|
203
249
|
}[];
|
|
204
250
|
return_fee: number;
|
|
251
|
+
return_fees: {
|
|
252
|
+
name: string;
|
|
253
|
+
owner: string;
|
|
254
|
+
creation: string;
|
|
255
|
+
modified: string;
|
|
256
|
+
modified_by: string;
|
|
257
|
+
idx: number;
|
|
258
|
+
docstatus: number;
|
|
259
|
+
shipping_provider: string;
|
|
260
|
+
fee: number;
|
|
261
|
+
country?: string | null | undefined;
|
|
262
|
+
}[];
|
|
205
263
|
is_ask_for_batch_number: number;
|
|
206
264
|
batch_numbers: {
|
|
207
265
|
name: string;
|
|
@@ -234,6 +292,40 @@ export declare const ServiceportalProductConfigurationInput: z.ZodObject<Omit<{
|
|
|
234
292
|
title: z.ZodString;
|
|
235
293
|
return_fee: z.ZodNumber;
|
|
236
294
|
return_fee_explanation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
295
|
+
return_fees: z.ZodArray<z.ZodObject<{
|
|
296
|
+
name: z.ZodString;
|
|
297
|
+
owner: z.ZodString;
|
|
298
|
+
creation: z.ZodString;
|
|
299
|
+
modified: z.ZodString;
|
|
300
|
+
modified_by: z.ZodString;
|
|
301
|
+
idx: z.ZodNumber;
|
|
302
|
+
docstatus: z.ZodNumber;
|
|
303
|
+
shipping_provider: z.ZodString;
|
|
304
|
+
country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
305
|
+
fee: z.ZodNumber;
|
|
306
|
+
}, "strip", z.ZodTypeAny, {
|
|
307
|
+
name: string;
|
|
308
|
+
owner: string;
|
|
309
|
+
creation: string;
|
|
310
|
+
modified: string;
|
|
311
|
+
modified_by: string;
|
|
312
|
+
idx: number;
|
|
313
|
+
docstatus: number;
|
|
314
|
+
shipping_provider: string;
|
|
315
|
+
fee: number;
|
|
316
|
+
country?: string | null | undefined;
|
|
317
|
+
}, {
|
|
318
|
+
name: string;
|
|
319
|
+
owner: string;
|
|
320
|
+
creation: string;
|
|
321
|
+
modified: string;
|
|
322
|
+
modified_by: string;
|
|
323
|
+
idx: number;
|
|
324
|
+
docstatus: number;
|
|
325
|
+
shipping_provider: string;
|
|
326
|
+
fee: number;
|
|
327
|
+
country?: string | null | undefined;
|
|
328
|
+
}>, "many">;
|
|
237
329
|
is_ask_for_batch_number: z.ZodNumber;
|
|
238
330
|
batch_number_location_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
239
331
|
return_conditions: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -365,6 +457,18 @@ export declare const ServiceportalProductConfigurationInput: z.ZodObject<Omit<{
|
|
|
365
457
|
internal_reason: string;
|
|
366
458
|
}[];
|
|
367
459
|
return_fee: number;
|
|
460
|
+
return_fees: {
|
|
461
|
+
name: string;
|
|
462
|
+
owner: string;
|
|
463
|
+
creation: string;
|
|
464
|
+
modified: string;
|
|
465
|
+
modified_by: string;
|
|
466
|
+
idx: number;
|
|
467
|
+
docstatus: number;
|
|
468
|
+
shipping_provider: string;
|
|
469
|
+
fee: number;
|
|
470
|
+
country?: string | null | undefined;
|
|
471
|
+
}[];
|
|
368
472
|
is_ask_for_batch_number: number;
|
|
369
473
|
batch_numbers: {
|
|
370
474
|
batch_number: string;
|
|
@@ -382,6 +486,18 @@ export declare const ServiceportalProductConfigurationInput: z.ZodObject<Omit<{
|
|
|
382
486
|
internal_reason: string;
|
|
383
487
|
}[];
|
|
384
488
|
return_fee: number;
|
|
489
|
+
return_fees: {
|
|
490
|
+
name: string;
|
|
491
|
+
owner: string;
|
|
492
|
+
creation: string;
|
|
493
|
+
modified: string;
|
|
494
|
+
modified_by: string;
|
|
495
|
+
idx: number;
|
|
496
|
+
docstatus: number;
|
|
497
|
+
shipping_provider: string;
|
|
498
|
+
fee: number;
|
|
499
|
+
country?: string | null | undefined;
|
|
500
|
+
}[];
|
|
385
501
|
is_ask_for_batch_number: number;
|
|
386
502
|
batch_numbers: {
|
|
387
503
|
batch_number: string;
|
|
@@ -394,3 +510,132 @@ export declare const ServiceportalProductConfigurationInput: z.ZodObject<Omit<{
|
|
|
394
510
|
internal_reasons_section?: string | null | undefined;
|
|
395
511
|
}>;
|
|
396
512
|
export type ServiceportalProductConfigurationInputType = z.infer<typeof ServiceportalProductConfigurationInput>;
|
|
513
|
+
export declare const ServiceportalProductConfigurationMethodResponse: z.ZodObject<{
|
|
514
|
+
name: z.ZodString;
|
|
515
|
+
owner: z.ZodString;
|
|
516
|
+
creation: z.ZodString;
|
|
517
|
+
modified: z.ZodString;
|
|
518
|
+
modified_by: z.ZodString;
|
|
519
|
+
title: z.ZodString;
|
|
520
|
+
return_fee: z.ZodNumber;
|
|
521
|
+
return_fee_explanation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
522
|
+
is_ask_for_batch_number: z.ZodNumber;
|
|
523
|
+
batch_number_location_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
524
|
+
return_conditions: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
525
|
+
doctype: z.ZodLiteral<"Serviceportal Product Configuration">;
|
|
526
|
+
return_shipping_provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
527
|
+
return_instructions: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
528
|
+
internal_reasons_section: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
529
|
+
} & {
|
|
530
|
+
return_fees: z.ZodArray<z.ZodObject<Pick<{
|
|
531
|
+
name: z.ZodString;
|
|
532
|
+
owner: z.ZodString;
|
|
533
|
+
creation: z.ZodString;
|
|
534
|
+
modified: z.ZodString;
|
|
535
|
+
modified_by: z.ZodString;
|
|
536
|
+
idx: z.ZodNumber;
|
|
537
|
+
docstatus: z.ZodNumber;
|
|
538
|
+
shipping_provider: z.ZodString;
|
|
539
|
+
country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
540
|
+
fee: z.ZodNumber;
|
|
541
|
+
}, "country" | "shipping_provider" | "fee">, "strip", z.ZodTypeAny, {
|
|
542
|
+
shipping_provider: string;
|
|
543
|
+
fee: number;
|
|
544
|
+
country?: string | null | undefined;
|
|
545
|
+
}, {
|
|
546
|
+
shipping_provider: string;
|
|
547
|
+
fee: number;
|
|
548
|
+
country?: string | null | undefined;
|
|
549
|
+
}>, "many">;
|
|
550
|
+
batch_numbers: z.ZodArray<z.ZodObject<Pick<{
|
|
551
|
+
name: z.ZodString;
|
|
552
|
+
owner: z.ZodString;
|
|
553
|
+
creation: z.ZodString;
|
|
554
|
+
modified: z.ZodString;
|
|
555
|
+
modified_by: z.ZodString;
|
|
556
|
+
docstatus: z.ZodNumber;
|
|
557
|
+
idx: z.ZodNumber;
|
|
558
|
+
batch_number: z.ZodString;
|
|
559
|
+
parent: z.ZodString;
|
|
560
|
+
parentfield: z.ZodString;
|
|
561
|
+
parenttype: z.ZodString;
|
|
562
|
+
doctype: z.ZodLiteral<"Batch Number List">;
|
|
563
|
+
}, "batch_number">, "strip", z.ZodTypeAny, {
|
|
564
|
+
batch_number: string;
|
|
565
|
+
}, {
|
|
566
|
+
batch_number: string;
|
|
567
|
+
}>, "many">;
|
|
568
|
+
internal_reasons: z.ZodArray<z.ZodObject<Pick<{
|
|
569
|
+
name: z.ZodString;
|
|
570
|
+
owner: z.ZodString;
|
|
571
|
+
creation: z.ZodString;
|
|
572
|
+
modified: z.ZodString;
|
|
573
|
+
modified_by: z.ZodString;
|
|
574
|
+
docstatus: z.ZodNumber;
|
|
575
|
+
idx: z.ZodNumber;
|
|
576
|
+
internal_reason: z.ZodString;
|
|
577
|
+
parent: z.ZodString;
|
|
578
|
+
parentfield: z.ZodString;
|
|
579
|
+
parenttype: z.ZodString;
|
|
580
|
+
doctype: z.ZodLiteral<"Internal Reasons List">;
|
|
581
|
+
}, "internal_reason">, "strip", z.ZodTypeAny, {
|
|
582
|
+
internal_reason: string;
|
|
583
|
+
}, {
|
|
584
|
+
internal_reason: string;
|
|
585
|
+
}>, "many">;
|
|
586
|
+
}, "strip", z.ZodTypeAny, {
|
|
587
|
+
name: string;
|
|
588
|
+
doctype: "Serviceportal Product Configuration";
|
|
589
|
+
owner: string;
|
|
590
|
+
creation: string;
|
|
591
|
+
modified: string;
|
|
592
|
+
modified_by: string;
|
|
593
|
+
title: string;
|
|
594
|
+
internal_reasons: {
|
|
595
|
+
internal_reason: string;
|
|
596
|
+
}[];
|
|
597
|
+
return_fee: number;
|
|
598
|
+
return_fees: {
|
|
599
|
+
shipping_provider: string;
|
|
600
|
+
fee: number;
|
|
601
|
+
country?: string | null | undefined;
|
|
602
|
+
}[];
|
|
603
|
+
is_ask_for_batch_number: number;
|
|
604
|
+
batch_numbers: {
|
|
605
|
+
batch_number: string;
|
|
606
|
+
}[];
|
|
607
|
+
return_fee_explanation?: string | null | undefined;
|
|
608
|
+
batch_number_location_description?: string | null | undefined;
|
|
609
|
+
return_conditions?: string | null | undefined;
|
|
610
|
+
return_shipping_provider?: string | null | undefined;
|
|
611
|
+
return_instructions?: string | null | undefined;
|
|
612
|
+
internal_reasons_section?: string | null | undefined;
|
|
613
|
+
}, {
|
|
614
|
+
name: string;
|
|
615
|
+
doctype: "Serviceportal Product Configuration";
|
|
616
|
+
owner: string;
|
|
617
|
+
creation: string;
|
|
618
|
+
modified: string;
|
|
619
|
+
modified_by: string;
|
|
620
|
+
title: string;
|
|
621
|
+
internal_reasons: {
|
|
622
|
+
internal_reason: string;
|
|
623
|
+
}[];
|
|
624
|
+
return_fee: number;
|
|
625
|
+
return_fees: {
|
|
626
|
+
shipping_provider: string;
|
|
627
|
+
fee: number;
|
|
628
|
+
country?: string | null | undefined;
|
|
629
|
+
}[];
|
|
630
|
+
is_ask_for_batch_number: number;
|
|
631
|
+
batch_numbers: {
|
|
632
|
+
batch_number: string;
|
|
633
|
+
}[];
|
|
634
|
+
return_fee_explanation?: string | null | undefined;
|
|
635
|
+
batch_number_location_description?: string | null | undefined;
|
|
636
|
+
return_conditions?: string | null | undefined;
|
|
637
|
+
return_shipping_provider?: string | null | undefined;
|
|
638
|
+
return_instructions?: string | null | undefined;
|
|
639
|
+
internal_reasons_section?: string | null | undefined;
|
|
640
|
+
}>;
|
|
641
|
+
export type ServiceportalProductConfigurationMethodResponseType = z.infer<typeof ServiceportalProductConfigurationMethodResponse>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ServiceportalProductConfigurationInput = exports.ServiceportalProductConfiguration = exports.InternalReasonList = void 0;
|
|
3
|
+
exports.ServiceportalProductConfigurationMethodResponse = exports.ServiceportalProductConfigurationInput = exports.ServiceportalProductConfiguration = exports.InternalReasonList = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const ShippingFees_1 = require("./ShippingFees");
|
|
5
6
|
const BatchNumberList = zod_1.z
|
|
6
7
|
.object({
|
|
7
8
|
name: zod_1.z.string(),
|
|
@@ -42,6 +43,7 @@ exports.ServiceportalProductConfiguration = zod_1.z
|
|
|
42
43
|
title: zod_1.z.string(),
|
|
43
44
|
return_fee: zod_1.z.number(),
|
|
44
45
|
return_fee_explanation: zod_1.z.string().optional().nullable(),
|
|
46
|
+
return_fees: zod_1.z.array(ShippingFees_1.ShippingFee),
|
|
45
47
|
is_ask_for_batch_number: zod_1.z.number(),
|
|
46
48
|
batch_number_location_description: zod_1.z.string().optional().nullable(),
|
|
47
49
|
return_conditions: zod_1.z.string().optional().nullable(),
|
|
@@ -65,3 +67,8 @@ exports.ServiceportalProductConfigurationInput = exports.ServiceportalProductCon
|
|
|
65
67
|
batch_numbers: zod_1.z.array(BatchNumberList.pick({ batch_number: true })),
|
|
66
68
|
internal_reasons: zod_1.z.array(exports.InternalReasonList.pick({ internal_reason: true })),
|
|
67
69
|
});
|
|
70
|
+
exports.ServiceportalProductConfigurationMethodResponse = exports.ServiceportalProductConfiguration.extend({
|
|
71
|
+
return_fees: zod_1.z.array(ShippingFees_1.ShippingFee.pick({ shipping_provider: true, country: true, fee: true })),
|
|
72
|
+
batch_numbers: zod_1.z.array(BatchNumberList.pick({ batch_number: true })),
|
|
73
|
+
internal_reasons: zod_1.z.array(exports.InternalReasonList.pick({ internal_reason: true })),
|
|
74
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ShippingFee: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
owner: z.ZodString;
|
|
5
|
+
creation: z.ZodString;
|
|
6
|
+
modified: z.ZodString;
|
|
7
|
+
modified_by: z.ZodString;
|
|
8
|
+
idx: z.ZodNumber;
|
|
9
|
+
docstatus: z.ZodNumber;
|
|
10
|
+
shipping_provider: z.ZodString;
|
|
11
|
+
country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12
|
+
fee: z.ZodNumber;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
name: string;
|
|
15
|
+
owner: string;
|
|
16
|
+
creation: string;
|
|
17
|
+
modified: string;
|
|
18
|
+
modified_by: string;
|
|
19
|
+
idx: number;
|
|
20
|
+
docstatus: number;
|
|
21
|
+
shipping_provider: string;
|
|
22
|
+
fee: number;
|
|
23
|
+
country?: string | null | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
name: string;
|
|
26
|
+
owner: string;
|
|
27
|
+
creation: string;
|
|
28
|
+
modified: string;
|
|
29
|
+
modified_by: string;
|
|
30
|
+
idx: number;
|
|
31
|
+
docstatus: number;
|
|
32
|
+
shipping_provider: string;
|
|
33
|
+
fee: number;
|
|
34
|
+
country?: string | null | undefined;
|
|
35
|
+
}>;
|
|
36
|
+
export type ShippingFeeType = z.infer<typeof ShippingFee>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShippingFee = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.ShippingFee = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
name: zod_1.z.string(),
|
|
8
|
+
owner: zod_1.z.string(),
|
|
9
|
+
creation: zod_1.z.string(),
|
|
10
|
+
modified: zod_1.z.string(),
|
|
11
|
+
modified_by: zod_1.z.string(),
|
|
12
|
+
idx: zod_1.z.number(),
|
|
13
|
+
docstatus: zod_1.z.number(),
|
|
14
|
+
shipping_provider: zod_1.z.string(),
|
|
15
|
+
country: zod_1.z.string().optional().nullable(),
|
|
16
|
+
fee: zod_1.z.number(),
|
|
17
|
+
})
|
|
18
|
+
.describe("Shipping Fee");
|