erpnext-queue-client 1.29.3 → 1.29.5

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.
@@ -8,12 +8,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
11
  Object.defineProperty(exports, "__esModule", { value: true });
15
12
  exports.ERPNextShipment = void 0;
16
- const zod_1 = __importDefault(require("zod"));
17
13
  const doctypeSubmittableResourceRequest_1 = require("../doctypeSubmittableResourceRequest");
18
14
  const methodRequest_1 = require("../methodRequest");
19
15
  const Shipment_1 = require("../model/Shipment");
@@ -47,23 +43,7 @@ class ERPNextShipment {
47
43
  methodName: "shipment-by-order-number",
48
44
  requestMethod: "GET",
49
45
  params: { order_number: orderNumber },
50
- responseValidationModel: zod_1.default
51
- .array(zod_1.default.object({
52
- name: zod_1.default.string(),
53
- creation: zod_1.default.string(),
54
- item_code: zod_1.default.string(),
55
- item_name: zod_1.default.string(),
56
- qty: zod_1.default.number(),
57
- address_title: zod_1.default.string(),
58
- shipping_label: zod_1.default.string().optional().nullable(),
59
- address_line1: zod_1.default.string().optional().nullable(),
60
- address_line2: zod_1.default.string().optional().nullable(),
61
- city: zod_1.default.string().optional().nullable(),
62
- country: zod_1.default.string().optional().nullable(),
63
- pincode: zod_1.default.string().optional().nullable(),
64
- image: zod_1.default.string().optional().nullable(),
65
- }))
66
- .describe("Array of shipment info objects"),
46
+ responseValidationModel: Shipment_1.ShipmentInfoByOrderNumberMethodResponseData,
67
47
  });
68
48
  return shipmentInfo;
69
49
  });
@@ -1137,3 +1137,47 @@ export declare const ShipmentAddShippingLabelAndSubmitBody: z.ZodObject<Pick<{
1137
1137
  custom_return_shipping_provider?: string | null | undefined;
1138
1138
  }>;
1139
1139
  export type ShipmentAddShippingLabelAndSubmitBodyType = z.infer<typeof ShipmentAddShippingLabelAndSubmitBody>;
1140
+ export declare const ShipmentInfoByOrderNumberMethodResponseData: z.ZodArray<z.ZodObject<{
1141
+ name: z.ZodString;
1142
+ creation: z.ZodString;
1143
+ item_code: z.ZodString;
1144
+ item_name: z.ZodString;
1145
+ qty: z.ZodNumber;
1146
+ address_title: z.ZodString;
1147
+ shipping_label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1148
+ address_line1: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1149
+ address_line2: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1150
+ city: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1151
+ country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1152
+ pincode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1153
+ image: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1154
+ }, "strip", z.ZodTypeAny, {
1155
+ name: string;
1156
+ address_title: string;
1157
+ creation: string;
1158
+ item_code: string;
1159
+ qty: number;
1160
+ item_name: string;
1161
+ address_line1?: string | null | undefined;
1162
+ address_line2?: string | null | undefined;
1163
+ city?: string | null | undefined;
1164
+ pincode?: string | null | undefined;
1165
+ country?: string | null | undefined;
1166
+ image?: string | null | undefined;
1167
+ shipping_label?: string | null | undefined;
1168
+ }, {
1169
+ name: string;
1170
+ address_title: string;
1171
+ creation: string;
1172
+ item_code: string;
1173
+ qty: number;
1174
+ item_name: string;
1175
+ address_line1?: string | null | undefined;
1176
+ address_line2?: string | null | undefined;
1177
+ city?: string | null | undefined;
1178
+ pincode?: string | null | undefined;
1179
+ country?: string | null | undefined;
1180
+ image?: string | null | undefined;
1181
+ shipping_label?: string | null | undefined;
1182
+ }>, "many">;
1183
+ export type ShipmentInfoByOrderNumberMethodResponseDataType = z.infer<typeof ShipmentInfoByOrderNumberMethodResponseData>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ShipmentAddShippingLabelAndSubmitBody = exports.ShipmentDraftPostBody = exports.Shipment = exports.ShipmentParcelPostBody = exports.ShipmentParcel = exports.ShipmentDraftFromDeliveryNote = void 0;
3
+ exports.ShipmentInfoByOrderNumberMethodResponseData = exports.ShipmentAddShippingLabelAndSubmitBody = exports.ShipmentDraftPostBody = exports.Shipment = exports.ShipmentParcelPostBody = exports.ShipmentParcel = exports.ShipmentDraftFromDeliveryNote = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const Onload = zod_1.z
6
6
  .object({
@@ -189,3 +189,20 @@ exports.ShipmentAddShippingLabelAndSubmitBody = exports.Shipment.pick({
189
189
  custom_return_shipping_provider: true,
190
190
  docstatus: true,
191
191
  });
192
+ exports.ShipmentInfoByOrderNumberMethodResponseData = zod_1.z
193
+ .array(zod_1.z.object({
194
+ name: zod_1.z.string(),
195
+ creation: zod_1.z.string(),
196
+ item_code: zod_1.z.string(),
197
+ item_name: zod_1.z.string(),
198
+ qty: zod_1.z.number(),
199
+ address_title: zod_1.z.string(),
200
+ shipping_label: zod_1.z.string().optional().nullable(),
201
+ address_line1: zod_1.z.string().optional().nullable(),
202
+ address_line2: zod_1.z.string().optional().nullable(),
203
+ city: zod_1.z.string().optional().nullable(),
204
+ country: zod_1.z.string().optional().nullable(),
205
+ pincode: zod_1.z.string().optional().nullable(),
206
+ image: zod_1.z.string().optional().nullable(),
207
+ }))
208
+ .describe("Array of shipment info objects");
package/package.json CHANGED
@@ -25,7 +25,7 @@
25
25
  "winston": "^3.15.0",
26
26
  "zod": "3.25.76"
27
27
  },
28
- "version": "1.29.3",
28
+ "version": "1.29.5",
29
29
  "devDependencies": {
30
30
  "@types/crypto-js": "^4.2.2",
31
31
  "@types/lodash": "^4.17.13",