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.
@@ -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: string): Promise<import("zod").TypeOf<TModel>>;
7
- submit(resourceId: string): Promise<import("zod").TypeOf<TModel>>;
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(resourceId) {
19
- return __awaiter(this, void 0, void 0, function* () {
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(resourceId) {
29
- return __awaiter(this, void 0, void 0, function* () {
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: string) => Promise<{
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: string) => Promise<{
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: string) => Promise<{
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: string) => Promise<{
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: string) => Promise<{
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: string) => Promise<{
705
+ submit: ({ resourceId }: {
706
+ resourceId: string;
707
+ }) => Promise<{
704
708
  status: string;
705
709
  name: string;
706
710
  owner: string;
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "winston": "^3.15.0",
25
25
  "zod": "^3.23.8"
26
26
  },
27
- "version": "1.4.0",
27
+ "version": "1.4.1",
28
28
  "devDependencies": {
29
29
  "@types/crypto-js": "^4.2.2",
30
30
  "@types/lodash": "^4.17.13",