erpnext-queue-client 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/erpnext/doctypeSubmittableResourceRequest.d.ts +6 -2
- package/dist/erpnext/doctypeSubmittableResourceRequest.js +4 -4
- package/dist/erpnext/doctypes/purchaseInvoice.d.ts +6 -2
- package/dist/erpnext/doctypes/purchaseReceipt.d.ts +6 -2
- package/dist/erpnext/doctypes/shipment.d.ts +6 -2
- package/package.json +1 -1
|
@@ -3,6 +3,10 @@ import { ERPNextDoctypeResourceRequest } from "./doctypeResourceRequest";
|
|
|
3
3
|
import { TemporalClient } from "../client";
|
|
4
4
|
export declare class ERPNextDoctypeSubmittableResourceRequest<TModel extends ZodObject<any>> extends ERPNextDoctypeResourceRequest<TModel> {
|
|
5
5
|
constructor(temporalClient: TemporalClient, resourceName: string, resourceModel: TModel);
|
|
6
|
-
cancel(resourceId
|
|
7
|
-
|
|
6
|
+
cancel({ resourceId }: {
|
|
7
|
+
resourceId: string;
|
|
8
|
+
}): Promise<import("zod").TypeOf<TModel>>;
|
|
9
|
+
submit({ resourceId }: {
|
|
10
|
+
resourceId: string;
|
|
11
|
+
}): Promise<import("zod").TypeOf<TModel>>;
|
|
8
12
|
}
|
|
@@ -15,8 +15,8 @@ class ERPNextDoctypeSubmittableResourceRequest extends doctypeResourceRequest_1.
|
|
|
15
15
|
constructor(temporalClient, resourceName, resourceModel) {
|
|
16
16
|
super(temporalClient, resourceName, resourceModel);
|
|
17
17
|
}
|
|
18
|
-
cancel(
|
|
19
|
-
return __awaiter(this,
|
|
18
|
+
cancel(_a) {
|
|
19
|
+
return __awaiter(this, arguments, void 0, function* ({ resourceId }) {
|
|
20
20
|
return this.updateById({
|
|
21
21
|
resourceId,
|
|
22
22
|
body: {
|
|
@@ -25,8 +25,8 @@ class ERPNextDoctypeSubmittableResourceRequest extends doctypeResourceRequest_1.
|
|
|
25
25
|
});
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
submit(
|
|
29
|
-
return __awaiter(this,
|
|
28
|
+
submit(_a) {
|
|
29
|
+
return __awaiter(this, arguments, void 0, function* ({ resourceId }) {
|
|
30
30
|
return this.updateById({
|
|
31
31
|
resourceId,
|
|
32
32
|
body: {
|
|
@@ -801,7 +801,9 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
801
801
|
resourceId: string;
|
|
802
802
|
priority?: number;
|
|
803
803
|
}) => Promise<import("zod").TypeOf<typeof import("../model/ERPNextResponse").DeleteResponseModel>>;
|
|
804
|
-
cancel: (resourceId:
|
|
804
|
+
cancel: ({ resourceId }: {
|
|
805
|
+
resourceId: string;
|
|
806
|
+
}) => Promise<{
|
|
805
807
|
name: string;
|
|
806
808
|
owner: string;
|
|
807
809
|
idx: number;
|
|
@@ -995,7 +997,9 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
995
997
|
advance_tax?: string[] | null | undefined;
|
|
996
998
|
remarks?: string | null | undefined;
|
|
997
999
|
}>;
|
|
998
|
-
submit: (resourceId:
|
|
1000
|
+
submit: ({ resourceId }: {
|
|
1001
|
+
resourceId: string;
|
|
1002
|
+
}) => Promise<{
|
|
999
1003
|
name: string;
|
|
1000
1004
|
owner: string;
|
|
1001
1005
|
idx: number;
|
|
@@ -825,7 +825,9 @@ export declare class ERPNextPurchaseReceipt {
|
|
|
825
825
|
resourceId: string;
|
|
826
826
|
priority?: number;
|
|
827
827
|
}) => Promise<import("zod").TypeOf<typeof import("../model/ERPNextResponse").DeleteResponseModel>>;
|
|
828
|
-
cancel: (resourceId:
|
|
828
|
+
cancel: ({ resourceId }: {
|
|
829
|
+
resourceId: string;
|
|
830
|
+
}) => Promise<{
|
|
829
831
|
status: string;
|
|
830
832
|
name: string;
|
|
831
833
|
owner: string;
|
|
@@ -1025,7 +1027,9 @@ export declare class ERPNextPurchaseReceipt {
|
|
|
1025
1027
|
supplier_warehouse?: any;
|
|
1026
1028
|
range?: any;
|
|
1027
1029
|
}>;
|
|
1028
|
-
submit: (resourceId:
|
|
1030
|
+
submit: ({ resourceId }: {
|
|
1031
|
+
resourceId: string;
|
|
1032
|
+
}) => Promise<{
|
|
1029
1033
|
status: string;
|
|
1030
1034
|
name: string;
|
|
1031
1035
|
owner: string;
|
|
@@ -604,7 +604,9 @@ export declare class ERPNextShipment {
|
|
|
604
604
|
tracking_status_info?: string | null | undefined;
|
|
605
605
|
tracking_url?: string | null | undefined;
|
|
606
606
|
}>;
|
|
607
|
-
cancel: (resourceId:
|
|
607
|
+
cancel: ({ resourceId }: {
|
|
608
|
+
resourceId: string;
|
|
609
|
+
}) => Promise<{
|
|
608
610
|
status: string;
|
|
609
611
|
name: string;
|
|
610
612
|
owner: string;
|
|
@@ -700,7 +702,9 @@ export declare class ERPNextShipment {
|
|
|
700
702
|
tracking_status_info?: string | null | undefined;
|
|
701
703
|
tracking_url?: string | null | undefined;
|
|
702
704
|
}>;
|
|
703
|
-
submit: (resourceId:
|
|
705
|
+
submit: ({ resourceId }: {
|
|
706
|
+
resourceId: string;
|
|
707
|
+
}) => Promise<{
|
|
704
708
|
status: string;
|
|
705
709
|
name: string;
|
|
706
710
|
owner: string;
|