erpnext-queue-client 2.1.8 → 2.2.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.
|
@@ -199,10 +199,10 @@ export declare class ERPNextShipment {
|
|
|
199
199
|
doctype: string;
|
|
200
200
|
parenttype: string;
|
|
201
201
|
parentfield: string;
|
|
202
|
+
count: number;
|
|
202
203
|
width: number;
|
|
203
204
|
height: number;
|
|
204
205
|
weight: number;
|
|
205
|
-
count: number;
|
|
206
206
|
_user_tags?: string | null | undefined;
|
|
207
207
|
}[];
|
|
208
208
|
shipment_type: string;
|
|
@@ -268,10 +268,10 @@ export declare class ERPNextShipment {
|
|
|
268
268
|
}[];
|
|
269
269
|
shipment_parcel: {
|
|
270
270
|
length: number;
|
|
271
|
+
count: number;
|
|
271
272
|
width: number;
|
|
272
273
|
height: number;
|
|
273
274
|
weight: number;
|
|
274
|
-
count: number;
|
|
275
275
|
}[];
|
|
276
276
|
shipment_type: string;
|
|
277
277
|
tracking_status: string;
|
|
@@ -368,10 +368,10 @@ export declare class ERPNextShipment {
|
|
|
368
368
|
doctype: string;
|
|
369
369
|
parenttype: string;
|
|
370
370
|
parentfield: string;
|
|
371
|
+
count: number;
|
|
371
372
|
width: number;
|
|
372
373
|
height: number;
|
|
373
374
|
weight: number;
|
|
374
|
-
count: number;
|
|
375
375
|
_user_tags?: string | null | undefined;
|
|
376
376
|
}[];
|
|
377
377
|
shipment_type: string;
|
|
@@ -441,10 +441,10 @@ export declare class ERPNextShipment {
|
|
|
441
441
|
}[];
|
|
442
442
|
shipment_parcel: {
|
|
443
443
|
length: number;
|
|
444
|
+
count: number;
|
|
444
445
|
width: number;
|
|
445
446
|
height: number;
|
|
446
447
|
weight: number;
|
|
447
|
-
count: number;
|
|
448
448
|
}[];
|
|
449
449
|
shipment_type: string;
|
|
450
450
|
tracking_status: string;
|
|
@@ -541,10 +541,10 @@ export declare class ERPNextShipment {
|
|
|
541
541
|
doctype: string;
|
|
542
542
|
parenttype: string;
|
|
543
543
|
parentfield: string;
|
|
544
|
+
count: number;
|
|
544
545
|
width: number;
|
|
545
546
|
height: number;
|
|
546
547
|
weight: number;
|
|
547
|
-
count: number;
|
|
548
548
|
_user_tags?: string | null | undefined;
|
|
549
549
|
}[];
|
|
550
550
|
shipment_type: string;
|
|
@@ -640,10 +640,10 @@ export declare class ERPNextShipment {
|
|
|
640
640
|
doctype: string;
|
|
641
641
|
parenttype: string;
|
|
642
642
|
parentfield: string;
|
|
643
|
+
count: number;
|
|
643
644
|
width: number;
|
|
644
645
|
height: number;
|
|
645
646
|
weight: number;
|
|
646
|
-
count: number;
|
|
647
647
|
_user_tags?: string | null | undefined;
|
|
648
648
|
}[];
|
|
649
649
|
shipment_type: string;
|
|
@@ -739,10 +739,10 @@ export declare class ERPNextShipment {
|
|
|
739
739
|
doctype: string;
|
|
740
740
|
parenttype: string;
|
|
741
741
|
parentfield: string;
|
|
742
|
+
count: number;
|
|
742
743
|
width: number;
|
|
743
744
|
height: number;
|
|
744
745
|
weight: number;
|
|
745
|
-
count: number;
|
|
746
746
|
_user_tags?: string | null | undefined;
|
|
747
747
|
}[];
|
|
748
748
|
shipment_type: string;
|
|
@@ -889,10 +889,10 @@ export declare class ERPNextShipment {
|
|
|
889
889
|
doctype: string;
|
|
890
890
|
parenttype: string;
|
|
891
891
|
parentfield: string;
|
|
892
|
+
count: number;
|
|
892
893
|
width: number;
|
|
893
894
|
height: number;
|
|
894
895
|
weight: number;
|
|
895
|
-
count: number;
|
|
896
896
|
_user_tags?: string | null | undefined;
|
|
897
897
|
}[];
|
|
898
898
|
shipment_type: string;
|
|
@@ -13,4 +13,15 @@ export declare class ERPNextMethodRequest {
|
|
|
13
13
|
params?: Record<string, string>;
|
|
14
14
|
priority?: number;
|
|
15
15
|
}): Promise<z.TypeOf<T>>;
|
|
16
|
+
getSubmittedLinkedDocs({ doctype, resourceId, }: {
|
|
17
|
+
doctype: string;
|
|
18
|
+
resourceId: string;
|
|
19
|
+
}): Promise<{
|
|
20
|
+
docs: {
|
|
21
|
+
docstatus: number;
|
|
22
|
+
name: string;
|
|
23
|
+
doctype: string;
|
|
24
|
+
}[];
|
|
25
|
+
count: number;
|
|
26
|
+
}>;
|
|
16
27
|
}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.ERPNextMethodRequest = void 0;
|
|
13
13
|
const zod_1 = require("zod");
|
|
14
14
|
const utils_1 = require("../utils/utils");
|
|
15
|
+
const ERPNextDocTypeMeta_1 = require("./model/ERPNextDocTypeMeta");
|
|
15
16
|
class ERPNextMethodRequest {
|
|
16
17
|
constructor(temporalClient) {
|
|
17
18
|
this.temporalClient = temporalClient;
|
|
@@ -31,5 +32,27 @@ class ERPNextMethodRequest {
|
|
|
31
32
|
return isAutoWrapResponseValidationWithMessage ? result.message : result;
|
|
32
33
|
});
|
|
33
34
|
}
|
|
35
|
+
getSubmittedLinkedDocs(_a) {
|
|
36
|
+
return __awaiter(this, arguments, void 0, function* ({ doctype, resourceId, }) {
|
|
37
|
+
return yield this.request({
|
|
38
|
+
methodName: "frappe.desk.form.linked_with.get_submitted_linked_docs",
|
|
39
|
+
requestMethod: "POST",
|
|
40
|
+
body: {
|
|
41
|
+
doctype,
|
|
42
|
+
name: resourceId,
|
|
43
|
+
},
|
|
44
|
+
responseValidationModel: zod_1.z
|
|
45
|
+
.object({
|
|
46
|
+
docs: zod_1.z.array(zod_1.z.object({
|
|
47
|
+
doctype: zod_1.z.string(),
|
|
48
|
+
name: zod_1.z.string(),
|
|
49
|
+
docstatus: ERPNextDocTypeMeta_1.Docstatus,
|
|
50
|
+
})),
|
|
51
|
+
count: zod_1.z.number(),
|
|
52
|
+
})
|
|
53
|
+
.describe("Submitted linked docs response"),
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
}
|
|
34
57
|
}
|
|
35
58
|
exports.ERPNextMethodRequest = ERPNextMethodRequest;
|
|
@@ -127,16 +127,16 @@ export declare const ShipmentParcel: z.ZodObject<{
|
|
|
127
127
|
count: z.ZodNumber;
|
|
128
128
|
}, "strip", z.ZodTypeAny, {
|
|
129
129
|
length: number;
|
|
130
|
+
count: number;
|
|
130
131
|
width: number;
|
|
131
132
|
height: number;
|
|
132
133
|
weight: number;
|
|
133
|
-
count: number;
|
|
134
134
|
}, {
|
|
135
135
|
length: number;
|
|
136
|
+
count: number;
|
|
136
137
|
width: number;
|
|
137
138
|
height: number;
|
|
138
139
|
weight: number;
|
|
139
|
-
count: number;
|
|
140
140
|
}>;
|
|
141
141
|
export declare const ShipmentExportStatus: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodEnum<["Open", "Customs Declaration in Progress", "Customs Declaration Submitted", "Customs Declaration Confirmed"]>>>>;
|
|
142
142
|
export type ShipmentExportStatusType = z.infer<typeof ShipmentExportStatus>;
|
|
@@ -205,16 +205,16 @@ export declare const Shipment: z.ZodObject<{
|
|
|
205
205
|
count: z.ZodNumber;
|
|
206
206
|
}, "strip", z.ZodTypeAny, {
|
|
207
207
|
length: number;
|
|
208
|
+
count: number;
|
|
208
209
|
width: number;
|
|
209
210
|
height: number;
|
|
210
211
|
weight: number;
|
|
211
|
-
count: number;
|
|
212
212
|
}, {
|
|
213
213
|
length: number;
|
|
214
|
+
count: number;
|
|
214
215
|
width: number;
|
|
215
216
|
height: number;
|
|
216
217
|
weight: number;
|
|
217
|
-
count: number;
|
|
218
218
|
}>, "many">;
|
|
219
219
|
shipment_type: z.ZodString;
|
|
220
220
|
shipping_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -257,10 +257,10 @@ export declare const Shipment: z.ZodObject<{
|
|
|
257
257
|
}[];
|
|
258
258
|
shipment_parcel: {
|
|
259
259
|
length: number;
|
|
260
|
+
count: number;
|
|
260
261
|
width: number;
|
|
261
262
|
height: number;
|
|
262
263
|
weight: number;
|
|
263
|
-
count: number;
|
|
264
264
|
}[];
|
|
265
265
|
shipment_type: string;
|
|
266
266
|
tracking_status: string;
|
|
@@ -322,10 +322,10 @@ export declare const Shipment: z.ZodObject<{
|
|
|
322
322
|
}[];
|
|
323
323
|
shipment_parcel: {
|
|
324
324
|
length: number;
|
|
325
|
+
count: number;
|
|
325
326
|
width: number;
|
|
326
327
|
height: number;
|
|
327
328
|
weight: number;
|
|
328
|
-
count: number;
|
|
329
329
|
}[];
|
|
330
330
|
shipment_type: string;
|
|
331
331
|
tracking_status: string;
|
|
@@ -427,16 +427,16 @@ export declare const ShipmentAddShippingLabelAndSubmitBody: z.ZodObject<Pick<{
|
|
|
427
427
|
count: z.ZodNumber;
|
|
428
428
|
}, "strip", z.ZodTypeAny, {
|
|
429
429
|
length: number;
|
|
430
|
+
count: number;
|
|
430
431
|
width: number;
|
|
431
432
|
height: number;
|
|
432
433
|
weight: number;
|
|
433
|
-
count: number;
|
|
434
434
|
}, {
|
|
435
435
|
length: number;
|
|
436
|
+
count: number;
|
|
436
437
|
width: number;
|
|
437
438
|
height: number;
|
|
438
439
|
weight: number;
|
|
439
|
-
count: number;
|
|
440
440
|
}>, "many">;
|
|
441
441
|
shipment_type: z.ZodString;
|
|
442
442
|
shipping_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|