erpnext-queue-client 1.19.12 → 1.19.13

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.
@@ -1,3 +1,4 @@
1
+ import { z } from "zod";
1
2
  import { TemporalClient } from "../../client";
2
3
  import { ERPNextDoctypeResourceRequest } from "../doctypeResourceRequest";
3
4
  import { AttachmentCollection, AttachmentCollectionInputType, InternalReasonCollection, InternalReasonCollectionInputType, Servicecase, ServicecaseInputType } from "../model/Servicecase";
@@ -181,7 +182,7 @@ export declare class ERPNextServicecase {
181
182
  deleteById: ({ resourceId, priority, }: {
182
183
  resourceId: string;
183
184
  priority?: number;
184
- }) => Promise<import("zod").TypeOf<typeof import("../model/ERPNextResponse").DeleteResponseModel>>;
185
+ }) => Promise<z.TypeOf<typeof import("../model/ERPNextResponse").DeleteResponseModel>>;
185
186
  constructor(temporalClient: TemporalClient);
186
187
  createServicecase(servicecase: ServicecaseInputType): Promise<{
187
188
  status: "EDITING" | "SUBMITTING" | "VALIDATING" | "REJECTED" | "SHIPPING" | "COMPLETED";
@@ -10,6 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ERPNextServicecase = void 0;
13
+ const zod_1 = require("zod");
13
14
  const doctypeResourceRequest_1 = require("../doctypeResourceRequest");
14
15
  const methodRequest_1 = require("../methodRequest");
15
16
  const Servicecase_1 = require("../model/Servicecase");
@@ -71,11 +72,17 @@ class ERPNextServicecase {
71
72
  return __awaiter(this, arguments, void 0, function* ({ email, id, }) {
72
73
  const servicecases = yield this.methodRequest.request({
73
74
  requestMethod: "GET",
74
- methodName: "servicecase_by_id",
75
+ methodName: "servicecases-extended",
75
76
  params: {
76
77
  email: email !== null && email !== void 0 ? email : "",
77
78
  id: id !== null && id !== void 0 ? id : "",
78
79
  },
80
+ inputValidationModel: zod_1.z
81
+ .object({
82
+ email: zod_1.z.string().email(),
83
+ id: zod_1.z.string().optional(),
84
+ })
85
+ .describe("ServicecaseExtendedInput"),
79
86
  responseValidationModel: Servicecase_1.ServicecaseMethodResponse,
80
87
  });
81
88
  return servicecases;
package/package.json CHANGED
@@ -25,7 +25,7 @@
25
25
  "winston": "^3.15.0",
26
26
  "zod": "3.24.1"
27
27
  },
28
- "version": "1.19.12",
28
+ "version": "1.19.13",
29
29
  "devDependencies": {
30
30
  "@types/crypto-js": "^4.2.2",
31
31
  "@types/lodash": "^4.17.13",