erpnext-queue-client 1.5.2 → 1.5.4

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/client.js CHANGED
@@ -89,7 +89,8 @@ class TemporalClient {
89
89
  ("uri" in options && options.uri) ||
90
90
  ""}${("methodName" in options && options.methodName) ||
91
91
  ("resourceName" in options && options.resourceName) ||
92
- ""}${("resourceId" in options && encodeURIComponent(options.resourceId)) ||
92
+ ""}${("resourceId" in options &&
93
+ `/${encodeURIComponent(options.resourceId)}`) ||
93
94
  ""}${options.params || ""}`);
94
95
  let optionsWithoutValidationModels = Object.assign({}, options);
95
96
  let inputValidationModel;
@@ -8,7 +8,7 @@ export declare class ERPNextItem {
8
8
  protected temporalClient: TemporalClient;
9
9
  protected baseRequest: ERPNextDoctypeResourceRequest<typeof Item>;
10
10
  protected methodRequest: ERPNextMethodRequest;
11
- getList: <TField extends ("description" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "doctype" | "disabled" | "naming_series" | "item_code" | "item_name" | "item_group" | "stock_uom" | "grant_commission" | "weight_per_unit" | "weight_uom" | "taxes" | "override_base_name" | "sync_from_warehouse" | "allow_alternative_item" | "is_stock_item" | "include_item_in_manufacturing" | "opening_stock" | "valuation_rate" | "standard_rate" | "is_fixed_asset" | "auto_create_assets" | "over_delivery_receipt_allowance" | "over_billing_allowance" | "custom_is_shipping_enabled" | "shipping_dimensions_unit" | "packaging_weight_unit_cardboard" | "packaging_weight_unit_plastic" | "shelf_life_in_days" | "end_of_life" | "default_material_request_type" | "valuation_method" | "product_weight" | "product_weight_unit" | "has_batch_no" | "create_new_batch" | "has_expiry_date" | "retain_sample" | "sample_quantity" | "has_serial_no" | "has_variants" | "variant_based_on" | "is_purchase_item" | "min_order_qty" | "safety_stock" | "lead_time_days" | "last_purchase_rate" | "is_customer_provided_item" | "delivered_by_supplier" | "sales_uom" | "is_sales_item" | "max_discount" | "enable_deferred_revenue" | "no_of_months" | "enable_deferred_expense" | "no_of_months_exp" | "inspection_required_before_purchase" | "inspection_required_before_delivery" | "is_sub_contracted_item" | "customer_code" | "published_in_website" | "total_projected_qty" | "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items") | ("image" | "warehouse_category" | "ean" | "shipping_template" | "shipping_width" | "shipping_length" | "shipping_height" | "packaging_weight_cardboard" | "packaging_weight_plastic" | "custom_product_version" | "custom_supplier" | "custom_stock_reserve"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
11
+ getList: <TField extends ("description" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "doctype" | "disabled" | "naming_series" | "item_code" | "item_name" | "item_group" | "stock_uom" | "grant_commission" | "weight_per_unit" | "weight_uom" | "taxes" | "override_base_name" | "sync_from_warehouse" | "allow_alternative_item" | "is_stock_item" | "include_item_in_manufacturing" | "opening_stock" | "valuation_rate" | "standard_rate" | "is_fixed_asset" | "auto_create_assets" | "over_delivery_receipt_allowance" | "over_billing_allowance" | "custom_is_shipping_enabled" | "shipping_dimensions_unit" | "packaging_weight_unit_cardboard" | "packaging_weight_unit_plastic" | "shelf_life_in_days" | "end_of_life" | "default_material_request_type" | "valuation_method" | "product_weight" | "product_weight_unit" | "has_batch_no" | "create_new_batch" | "has_expiry_date" | "retain_sample" | "sample_quantity" | "has_serial_no" | "has_variants" | "variant_based_on" | "is_purchase_item" | "min_order_qty" | "safety_stock" | "lead_time_days" | "last_purchase_rate" | "is_customer_provided_item" | "delivered_by_supplier" | "sales_uom" | "is_sales_item" | "max_discount" | "enable_deferred_revenue" | "no_of_months" | "enable_deferred_expense" | "no_of_months_exp" | "inspection_required_before_purchase" | "inspection_required_before_delivery" | "is_sub_contracted_item" | "customer_code" | "total_projected_qty" | "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items") | ("image" | "warehouse_category" | "ean" | "shipping_template" | "shipping_width" | "shipping_length" | "shipping_height" | "packaging_weight_cardboard" | "packaging_weight_plastic" | "custom_product_version" | "custom_supplier" | "custom_stock_reserve"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
12
12
  fields?: TField[] | undefined;
13
13
  filters?: string[][];
14
14
  skip?: number;
@@ -84,7 +84,6 @@ export declare class ERPNextItem {
84
84
  inspection_required_before_delivery: number;
85
85
  is_sub_contracted_item: number;
86
86
  customer_code: string;
87
- published_in_website: number;
88
87
  total_projected_qty: number;
89
88
  barcodes: {
90
89
  name: string;
@@ -219,7 +218,6 @@ export declare class ERPNextItem {
219
218
  inspection_required_before_delivery: number;
220
219
  is_sub_contracted_item: number;
221
220
  customer_code: string;
222
- published_in_website: number;
223
221
  total_projected_qty: number;
224
222
  barcodes: {
225
223
  name: string;
@@ -351,7 +349,6 @@ export declare class ERPNextItem {
351
349
  inspection_required_before_delivery: number;
352
350
  is_sub_contracted_item: number;
353
351
  customer_code: string;
354
- published_in_website: number;
355
352
  total_projected_qty: number;
356
353
  barcodes: {
357
354
  name: string;
@@ -487,7 +484,6 @@ export declare class ERPNextItem {
487
484
  inspection_required_before_delivery: number;
488
485
  is_sub_contracted_item: number;
489
486
  customer_code: string;
490
- published_in_website: number;
491
487
  total_projected_qty: number;
492
488
  barcodes: {
493
489
  name: string;
@@ -623,7 +619,6 @@ export declare class ERPNextItem {
623
619
  inspection_required_before_delivery: number;
624
620
  is_sub_contracted_item: number;
625
621
  customer_code: string;
626
- published_in_website: number;
627
622
  total_projected_qty: number;
628
623
  barcodes: {
629
624
  name: string;
@@ -758,7 +753,6 @@ export declare class ERPNextItem {
758
753
  inspection_required_before_delivery: number;
759
754
  is_sub_contracted_item: number;
760
755
  customer_code: string;
761
- published_in_website: number;
762
756
  total_projected_qty: number;
763
757
  barcodes: {
764
758
  name: string;
@@ -17,7 +17,7 @@ export declare const AddressPostBody: z.ZodObject<{
17
17
  city: z.ZodString;
18
18
  pincode: z.ZodString;
19
19
  country: z.ZodString;
20
- email_id: z.ZodString;
20
+ email_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
21
21
  is_shipping_address: z.ZodNumber;
22
22
  links: z.ZodArray<z.ZodObject<{
23
23
  link_doctype: z.ZodString;
@@ -36,13 +36,13 @@ export declare const AddressPostBody: z.ZodObject<{
36
36
  city: string;
37
37
  pincode: string;
38
38
  country: string;
39
- email_id: string;
40
39
  is_shipping_address: number;
41
40
  links: {
42
41
  link_doctype: string;
43
42
  link_name: string;
44
43
  }[];
45
44
  address_line2?: string | null | undefined;
45
+ email_id?: string | null | undefined;
46
46
  }, {
47
47
  address_title: string;
48
48
  address_line1: string;
@@ -50,13 +50,13 @@ export declare const AddressPostBody: z.ZodObject<{
50
50
  city: string;
51
51
  pincode: string;
52
52
  country: string;
53
- email_id: string;
54
53
  is_shipping_address: number;
55
54
  links: {
56
55
  link_doctype: string;
57
56
  link_name: string;
58
57
  }[];
59
58
  address_line2?: string | null | undefined;
59
+ email_id?: string | null | undefined;
60
60
  }>;
61
61
  export type AddressPostBodyType = z.infer<typeof AddressPostBody>;
62
62
  export declare const Address: z.ZodObject<{
@@ -311,41 +311,3 @@ export declare const AddressListName: z.ZodArray<z.ZodObject<Pick<{
311
311
  }>, "many">;
312
312
  export type AddressType = z.infer<typeof Address>;
313
313
  export type AddressListNameType = z.infer<typeof AddressListName>;
314
- export declare const ShipstormAddress: z.ZodObject<{
315
- address_title: z.ZodString;
316
- address_type: z.ZodString;
317
- address_line1: z.ZodString;
318
- address_line2: z.ZodNullable<z.ZodOptional<z.ZodString>>;
319
- pincode: z.ZodEffects<z.ZodString, string, unknown>;
320
- state: z.ZodNullable<z.ZodOptional<z.ZodString>>;
321
- phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
322
- city: z.ZodString;
323
- country: z.ZodString;
324
- email_id: z.ZodString;
325
- is_shipping_address: z.ZodBoolean;
326
- }, "strip", z.ZodTypeAny, {
327
- address_title: string;
328
- address_line1: string;
329
- address_type: string;
330
- city: string;
331
- pincode: string;
332
- country: string;
333
- email_id: string;
334
- is_shipping_address: boolean;
335
- address_line2?: string | null | undefined;
336
- state?: string | null | undefined;
337
- phone?: string | null | undefined;
338
- }, {
339
- address_title: string;
340
- address_line1: string;
341
- address_type: string;
342
- city: string;
343
- country: string;
344
- email_id: string;
345
- is_shipping_address: boolean;
346
- address_line2?: string | null | undefined;
347
- pincode?: unknown;
348
- state?: string | null | undefined;
349
- phone?: string | null | undefined;
350
- }>;
351
- export type ShipstormAddressType = z.infer<typeof ShipstormAddress>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ShipstormAddress = exports.AddressListName = exports.Address = exports.AddressPostBody = exports.DynamicLinkPostBody = void 0;
3
+ exports.AddressListName = exports.Address = exports.AddressPostBody = exports.DynamicLinkPostBody = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.DynamicLinkPostBody = zod_1.z
6
6
  .object({
@@ -17,7 +17,7 @@ exports.AddressPostBody = zod_1.z
17
17
  city: zod_1.z.string(),
18
18
  pincode: zod_1.z.string(),
19
19
  country: zod_1.z.string(),
20
- email_id: zod_1.z.string(),
20
+ email_id: zod_1.z.string().optional().nullable(),
21
21
  is_shipping_address: zod_1.z.number(),
22
22
  links: zod_1.z.array(exports.DynamicLinkPostBody),
23
23
  })
@@ -81,20 +81,3 @@ exports.AddressListName = zod_1.z
81
81
  name: true,
82
82
  }))
83
83
  .describe("AddressListName");
84
- exports.ShipstormAddress = zod_1.z
85
- .object({
86
- address_title: zod_1.z.string(),
87
- address_type: zod_1.z.string(),
88
- address_line1: zod_1.z.string(),
89
- address_line2: zod_1.z.string().optional().nullable(),
90
- pincode: zod_1.z.preprocess((input) => {
91
- return typeof input === "string" ? input.trim() : input;
92
- }, zod_1.z.string()),
93
- state: zod_1.z.string().optional().nullable(),
94
- phone: zod_1.z.string().optional().nullable(),
95
- city: zod_1.z.string(),
96
- country: zod_1.z.string(),
97
- email_id: zod_1.z.string(),
98
- is_shipping_address: zod_1.z.boolean(),
99
- })
100
- .describe("ShipstormAddress");
@@ -74,7 +74,6 @@ export declare const Item: z.ZodObject<{
74
74
  inspection_required_before_delivery: z.ZodNumber;
75
75
  is_sub_contracted_item: z.ZodNumber;
76
76
  customer_code: z.ZodString;
77
- published_in_website: z.ZodNumber;
78
77
  total_projected_qty: z.ZodNumber;
79
78
  doctype: z.ZodString;
80
79
  barcodes: z.ZodArray<z.ZodObject<{
@@ -282,7 +281,6 @@ export declare const Item: z.ZodObject<{
282
281
  inspection_required_before_delivery: number;
283
282
  is_sub_contracted_item: number;
284
283
  customer_code: string;
285
- published_in_website: number;
286
284
  total_projected_qty: number;
287
285
  barcodes: {
288
286
  name: string;
@@ -413,7 +411,6 @@ export declare const Item: z.ZodObject<{
413
411
  inspection_required_before_delivery: number;
414
412
  is_sub_contracted_item: number;
415
413
  customer_code: string;
416
- published_in_website: number;
417
414
  total_projected_qty: number;
418
415
  barcodes: {
419
416
  name: string;
@@ -553,7 +550,6 @@ export declare const ItemListWithShippingTemplate: z.ZodArray<z.ZodObject<Pick<O
553
550
  inspection_required_before_delivery: z.ZodNumber;
554
551
  is_sub_contracted_item: z.ZodNumber;
555
552
  customer_code: z.ZodString;
556
- published_in_website: z.ZodNumber;
557
553
  total_projected_qty: z.ZodNumber;
558
554
  doctype: z.ZodString;
559
555
  barcodes: z.ZodArray<z.ZodObject<{
@@ -798,7 +794,6 @@ export declare const ItemListWithShippingTemplateSku: z.ZodArray<z.ZodObject<z.o
798
794
  inspection_required_before_delivery: z.ZodNumber;
799
795
  is_sub_contracted_item: z.ZodNumber;
800
796
  customer_code: z.ZodString;
801
- published_in_website: z.ZodNumber;
802
797
  total_projected_qty: z.ZodNumber;
803
798
  doctype: z.ZodString;
804
799
  barcodes: z.ZodArray<z.ZodObject<{
@@ -1046,7 +1041,6 @@ declare const ItemDimensionsInfo: z.ZodObject<Pick<Omit<{
1046
1041
  inspection_required_before_delivery: z.ZodNumber;
1047
1042
  is_sub_contracted_item: z.ZodNumber;
1048
1043
  customer_code: z.ZodString;
1049
- published_in_website: z.ZodNumber;
1050
1044
  total_projected_qty: z.ZodNumber;
1051
1045
  doctype: z.ZodString;
1052
1046
  barcodes: z.ZodArray<z.ZodObject<{
@@ -1273,7 +1267,6 @@ export declare const ItemListName: z.ZodArray<z.ZodObject<Pick<Omit<{
1273
1267
  inspection_required_before_delivery: z.ZodNumber;
1274
1268
  is_sub_contracted_item: z.ZodNumber;
1275
1269
  customer_code: z.ZodString;
1276
- published_in_website: z.ZodNumber;
1277
1270
  total_projected_qty: z.ZodNumber;
1278
1271
  doctype: z.ZodString;
1279
1272
  barcodes: z.ZodArray<z.ZodObject<{
@@ -1494,7 +1487,6 @@ export declare const ItemList: z.ZodArray<z.ZodObject<Pick<Omit<{
1494
1487
  inspection_required_before_delivery: z.ZodNumber;
1495
1488
  is_sub_contracted_item: z.ZodNumber;
1496
1489
  customer_code: z.ZodString;
1497
- published_in_website: z.ZodNumber;
1498
1490
  total_projected_qty: z.ZodNumber;
1499
1491
  doctype: z.ZodString;
1500
1492
  barcodes: z.ZodArray<z.ZodObject<{
@@ -138,7 +138,6 @@ exports.Item = zod_1.z
138
138
  inspection_required_before_delivery: zod_1.z.number(),
139
139
  is_sub_contracted_item: zod_1.z.number(),
140
140
  customer_code: zod_1.z.string(),
141
- published_in_website: zod_1.z.number(),
142
141
  total_projected_qty: zod_1.z.number(),
143
142
  doctype: zod_1.z.string(),
144
143
  barcodes: zod_1.z.array(Barcode),
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "winston": "^3.15.0",
25
25
  "zod": "3.24.1"
26
26
  },
27
- "version": "1.5.2",
27
+ "version": "1.5.4",
28
28
  "devDependencies": {
29
29
  "@types/crypto-js": "^4.2.2",
30
30
  "@types/lodash": "^4.17.13",