erpnext-queue-client 1.4.1 → 1.4.3

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,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") | ("warehouse_category" | "ean" | "shipping_template" | "shipping_width" | "shipping_length" | "shipping_height" | "packaging_weight_cardboard" | "packaging_weight_plastic"), 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" | "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, }?: {
12
12
  fields?: TField[] | undefined;
13
13
  filters?: string[][];
14
14
  skip?: number;
@@ -135,6 +135,7 @@ export declare class ERPNextItem {
135
135
  }[];
136
136
  supplier_items: any[];
137
137
  customer_items: any[];
138
+ image?: string | null | undefined;
138
139
  warehouse_category?: string | null | undefined;
139
140
  ean?: string | null | undefined;
140
141
  shipping_template?: string | null | undefined;
@@ -143,6 +144,9 @@ export declare class ERPNextItem {
143
144
  shipping_height?: number | null | undefined;
144
145
  packaging_weight_cardboard?: number | null | undefined;
145
146
  packaging_weight_plastic?: number | null | undefined;
147
+ custom_product_version?: string | null | undefined;
148
+ custom_supplier?: string | null | undefined;
149
+ custom_stock_reserve?: number | null | undefined;
146
150
  }, TField>[]>;
147
151
  getById: ({ resourceId, priority, }: {
148
152
  resourceId: string;
@@ -266,6 +270,7 @@ export declare class ERPNextItem {
266
270
  }[];
267
271
  supplier_items: any[];
268
272
  customer_items: any[];
273
+ image?: string | null | undefined;
269
274
  warehouse_category?: string | null | undefined;
270
275
  ean?: string | null | undefined;
271
276
  shipping_template?: string | null | undefined;
@@ -274,6 +279,9 @@ export declare class ERPNextItem {
274
279
  shipping_height?: number | null | undefined;
275
280
  packaging_weight_cardboard?: number | null | undefined;
276
281
  packaging_weight_plastic?: number | null | undefined;
282
+ custom_product_version?: string | null | undefined;
283
+ custom_supplier?: string | null | undefined;
284
+ custom_stock_reserve?: number | null | undefined;
277
285
  }>;
278
286
  updateById: <TInput extends TInputModel extends undefined ? Partial<{
279
287
  description: string;
@@ -394,6 +402,7 @@ export declare class ERPNextItem {
394
402
  }[];
395
403
  supplier_items: any[];
396
404
  customer_items: any[];
405
+ image?: string | null | undefined;
397
406
  warehouse_category?: string | null | undefined;
398
407
  ean?: string | null | undefined;
399
408
  shipping_template?: string | null | undefined;
@@ -402,6 +411,9 @@ export declare class ERPNextItem {
402
411
  shipping_height?: number | null | undefined;
403
412
  packaging_weight_cardboard?: number | null | undefined;
404
413
  packaging_weight_plastic?: number | null | undefined;
414
+ custom_product_version?: string | null | undefined;
415
+ custom_supplier?: string | null | undefined;
416
+ custom_stock_reserve?: number | null | undefined;
405
417
  }> : TInputModel extends z.ZodTypeAny ? z.TypeOf<TInputModel> : any, TInputModel extends z.ZodTypeAny | undefined = undefined>({ resourceId, inputValidationModel, body, priority, }: {
406
418
  resourceId: string;
407
419
  inputValidationModel?: TInputModel;
@@ -526,6 +538,7 @@ export declare class ERPNextItem {
526
538
  }[];
527
539
  supplier_items: any[];
528
540
  customer_items: any[];
541
+ image?: string | null | undefined;
529
542
  warehouse_category?: string | null | undefined;
530
543
  ean?: string | null | undefined;
531
544
  shipping_template?: string | null | undefined;
@@ -534,6 +547,9 @@ export declare class ERPNextItem {
534
547
  shipping_height?: number | null | undefined;
535
548
  packaging_weight_cardboard?: number | null | undefined;
536
549
  packaging_weight_plastic?: number | null | undefined;
550
+ custom_product_version?: string | null | undefined;
551
+ custom_supplier?: string | null | undefined;
552
+ custom_stock_reserve?: number | null | undefined;
537
553
  }>;
538
554
  deleteById: ({ resourceId, priority, }: {
539
555
  resourceId: string;
@@ -658,6 +674,7 @@ export declare class ERPNextItem {
658
674
  }[];
659
675
  supplier_items: any[];
660
676
  customer_items: any[];
677
+ image?: string | null | undefined;
661
678
  warehouse_category?: string | null | undefined;
662
679
  ean?: string | null | undefined;
663
680
  shipping_template?: string | null | undefined;
@@ -666,6 +683,9 @@ export declare class ERPNextItem {
666
683
  shipping_height?: number | null | undefined;
667
684
  packaging_weight_cardboard?: number | null | undefined;
668
685
  packaging_weight_plastic?: number | null | undefined;
686
+ custom_product_version?: string | null | undefined;
687
+ custom_supplier?: string | null | undefined;
688
+ custom_stock_reserve?: number | null | undefined;
669
689
  }> : TInputModel extends z.ZodTypeAny ? z.TypeOf<TInputModel> : any, TInputModel extends z.ZodTypeAny | undefined = undefined>({ inputValidationModel, body, priority, }: {
670
690
  inputValidationModel?: TInputModel;
671
691
  priority?: number;
@@ -789,6 +809,7 @@ export declare class ERPNextItem {
789
809
  }[];
790
810
  supplier_items: any[];
791
811
  customer_items: any[];
812
+ image?: string | null | undefined;
792
813
  warehouse_category?: string | null | undefined;
793
814
  ean?: string | null | undefined;
794
815
  shipping_template?: string | null | undefined;
@@ -797,6 +818,9 @@ export declare class ERPNextItem {
797
818
  shipping_height?: number | null | undefined;
798
819
  packaging_weight_cardboard?: number | null | undefined;
799
820
  packaging_weight_plastic?: number | null | undefined;
821
+ custom_product_version?: string | null | undefined;
822
+ custom_supplier?: string | null | undefined;
823
+ custom_stock_reserve?: number | null | undefined;
800
824
  }>;
801
825
  constructor(temporalClient: TemporalClient);
802
826
  getNoneStockItems(params?: Record<string, string>): Promise<string[]>;
@@ -1,6 +1,7 @@
1
1
  import { z } from "zod";
2
2
  export declare const Item: z.ZodObject<{
3
3
  name: z.ZodString;
4
+ image: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4
5
  warehouse_category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5
6
  owner: z.ZodString;
6
7
  creation: z.ZodString;
@@ -210,6 +211,9 @@ export declare const Item: z.ZodObject<{
210
211
  supplier_items: z.ZodArray<z.ZodAny, "many">;
211
212
  customer_items: z.ZodArray<z.ZodAny, "many">;
212
213
  taxes: z.ZodArray<z.ZodAny, "many">;
214
+ custom_product_version: z.ZodNullable<z.ZodOptional<z.ZodString>>;
215
+ custom_supplier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
216
+ custom_stock_reserve: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
213
217
  }, "strip", z.ZodTypeAny, {
214
218
  description: string;
215
219
  name: string;
@@ -329,6 +333,7 @@ export declare const Item: z.ZodObject<{
329
333
  }[];
330
334
  supplier_items: any[];
331
335
  customer_items: any[];
336
+ image?: string | null | undefined;
332
337
  warehouse_category?: string | null | undefined;
333
338
  ean?: string | null | undefined;
334
339
  shipping_template?: string | null | undefined;
@@ -337,6 +342,9 @@ export declare const Item: z.ZodObject<{
337
342
  shipping_height?: number | null | undefined;
338
343
  packaging_weight_cardboard?: number | null | undefined;
339
344
  packaging_weight_plastic?: number | null | undefined;
345
+ custom_product_version?: string | null | undefined;
346
+ custom_supplier?: string | null | undefined;
347
+ custom_stock_reserve?: number | null | undefined;
340
348
  }, {
341
349
  description: string;
342
350
  name: string;
@@ -456,6 +464,7 @@ export declare const Item: z.ZodObject<{
456
464
  }[];
457
465
  supplier_items: any[];
458
466
  customer_items: any[];
467
+ image?: string | null | undefined;
459
468
  warehouse_category?: string | null | undefined;
460
469
  ean?: string | null | undefined;
461
470
  shipping_template?: string | null | undefined;
@@ -464,10 +473,14 @@ export declare const Item: z.ZodObject<{
464
473
  shipping_height?: number | null | undefined;
465
474
  packaging_weight_cardboard?: number | null | undefined;
466
475
  packaging_weight_plastic?: number | null | undefined;
476
+ custom_product_version?: string | null | undefined;
477
+ custom_supplier?: string | null | undefined;
478
+ custom_stock_reserve?: number | null | undefined;
467
479
  }>;
468
480
  export type ItemType = z.infer<typeof Item>;
469
481
  export declare const ItemListWithShippingTemplate: z.ZodArray<z.ZodObject<Pick<Omit<{
470
482
  name: z.ZodString;
483
+ image: z.ZodNullable<z.ZodOptional<z.ZodString>>;
471
484
  warehouse_category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
472
485
  owner: z.ZodString;
473
486
  creation: z.ZodString;
@@ -677,6 +690,9 @@ export declare const ItemListWithShippingTemplate: z.ZodArray<z.ZodObject<Pick<O
677
690
  supplier_items: z.ZodArray<z.ZodAny, "many">;
678
691
  customer_items: z.ZodArray<z.ZodAny, "many">;
679
692
  taxes: z.ZodArray<z.ZodAny, "many">;
693
+ custom_product_version: z.ZodNullable<z.ZodOptional<z.ZodString>>;
694
+ custom_supplier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
695
+ custom_stock_reserve: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
680
696
  }, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "disabled" | "item_code" | "item_name" | "weight_per_unit" | "weight_uom" | "warehouse_category" | "ean" | "custom_is_shipping_enabled" | "shipping_template" | "shipping_width" | "shipping_length" | "shipping_height" | "shipping_dimensions_unit">, "strip", z.ZodTypeAny, {
681
697
  disabled: number;
682
698
  item_code: string;
@@ -709,6 +725,7 @@ export declare const ItemListWithShippingTemplate: z.ZodArray<z.ZodObject<Pick<O
709
725
  export type ItemListWithShippingTemplateType = z.infer<typeof ItemListWithShippingTemplate>;
710
726
  export declare const ItemListWithShippingTemplateSku: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Pick<Omit<{
711
727
  name: z.ZodString;
728
+ image: z.ZodNullable<z.ZodOptional<z.ZodString>>;
712
729
  warehouse_category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
713
730
  owner: z.ZodString;
714
731
  creation: z.ZodString;
@@ -918,6 +935,9 @@ export declare const ItemListWithShippingTemplateSku: z.ZodArray<z.ZodObject<z.o
918
935
  supplier_items: z.ZodArray<z.ZodAny, "many">;
919
936
  customer_items: z.ZodArray<z.ZodAny, "many">;
920
937
  taxes: z.ZodArray<z.ZodAny, "many">;
938
+ custom_product_version: z.ZodNullable<z.ZodOptional<z.ZodString>>;
939
+ custom_supplier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
940
+ custom_stock_reserve: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
921
941
  }, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "disabled" | "item_name" | "weight_per_unit" | "weight_uom" | "warehouse_category" | "ean" | "custom_is_shipping_enabled" | "shipping_template" | "shipping_width" | "shipping_length" | "shipping_height" | "shipping_dimensions_unit">, {
922
942
  sku: z.ZodString;
923
943
  }>, "strip", z.ZodTypeAny, {
@@ -953,6 +973,7 @@ export type ItemListWithShippingTemplateSkuType = z.infer<typeof ItemListWithShi
953
973
  export declare const ERPNextItemResponseNoneStockItemsDictFalse: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
954
974
  declare const ItemDimensionsInfo: z.ZodObject<Pick<Omit<{
955
975
  name: z.ZodString;
976
+ image: z.ZodNullable<z.ZodOptional<z.ZodString>>;
956
977
  warehouse_category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
957
978
  owner: z.ZodString;
958
979
  creation: z.ZodString;
@@ -1162,6 +1183,9 @@ declare const ItemDimensionsInfo: z.ZodObject<Pick<Omit<{
1162
1183
  supplier_items: z.ZodArray<z.ZodAny, "many">;
1163
1184
  customer_items: z.ZodArray<z.ZodAny, "many">;
1164
1185
  taxes: z.ZodArray<z.ZodAny, "many">;
1186
+ custom_product_version: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1187
+ custom_supplier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1188
+ custom_stock_reserve: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1165
1189
  }, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "shipping_width" | "shipping_length" | "shipping_height" | "shipping_dimensions_unit">, "strip", z.ZodTypeAny, {
1166
1190
  shipping_dimensions_unit: "m" | "cm" | "mm";
1167
1191
  shipping_width?: number | null | undefined;
@@ -1176,6 +1200,7 @@ declare const ItemDimensionsInfo: z.ZodObject<Pick<Omit<{
1176
1200
  export type ItemDimensionsInfoType = z.infer<typeof ItemDimensionsInfo>;
1177
1201
  export declare const ItemListName: z.ZodArray<z.ZodObject<Pick<Omit<{
1178
1202
  name: z.ZodString;
1203
+ image: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1179
1204
  warehouse_category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1180
1205
  owner: z.ZodString;
1181
1206
  creation: z.ZodString;
@@ -1385,6 +1410,9 @@ export declare const ItemListName: z.ZodArray<z.ZodObject<Pick<Omit<{
1385
1410
  supplier_items: z.ZodArray<z.ZodAny, "many">;
1386
1411
  customer_items: z.ZodArray<z.ZodAny, "many">;
1387
1412
  taxes: z.ZodArray<z.ZodAny, "many">;
1413
+ custom_product_version: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1414
+ custom_supplier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1415
+ custom_stock_reserve: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1388
1416
  }, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "item_code">, "strip", z.ZodTypeAny, {
1389
1417
  item_code: string;
1390
1418
  }, {
@@ -1393,6 +1421,7 @@ export declare const ItemListName: z.ZodArray<z.ZodObject<Pick<Omit<{
1393
1421
  export type ItemListNameType = z.infer<typeof ItemListName>;
1394
1422
  export declare const ItemList: z.ZodArray<z.ZodObject<Pick<Omit<{
1395
1423
  name: z.ZodString;
1424
+ image: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1396
1425
  warehouse_category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1397
1426
  owner: z.ZodString;
1398
1427
  creation: z.ZodString;
@@ -1602,6 +1631,9 @@ export declare const ItemList: z.ZodArray<z.ZodObject<Pick<Omit<{
1602
1631
  supplier_items: z.ZodArray<z.ZodAny, "many">;
1603
1632
  customer_items: z.ZodArray<z.ZodAny, "many">;
1604
1633
  taxes: z.ZodArray<z.ZodAny, "many">;
1634
+ custom_product_version: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1635
+ custom_supplier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1636
+ custom_stock_reserve: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1605
1637
  }, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "item_code" | "item_name" | "weight_per_unit" | "weight_uom">, "strip", z.ZodTypeAny, {
1606
1638
  item_code: string;
1607
1639
  item_name: string;
@@ -56,6 +56,7 @@ const Barcode = zod_1.z
56
56
  exports.Item = zod_1.z
57
57
  .object({
58
58
  name: zod_1.z.string(),
59
+ image: zod_1.z.string().optional().nullable(),
59
60
  warehouse_category: zod_1.z.string().optional().nullable(),
60
61
  owner: zod_1.z.string(),
61
62
  creation: zod_1.z.string(),
@@ -148,6 +149,9 @@ exports.Item = zod_1.z
148
149
  supplier_items: zod_1.z.array(zod_1.z.any()),
149
150
  customer_items: zod_1.z.array(zod_1.z.any()),
150
151
  taxes: zod_1.z.array(zod_1.z.any()),
152
+ custom_product_version: zod_1.z.string().optional().nullable(),
153
+ custom_supplier: zod_1.z.string().optional().nullable(),
154
+ custom_stock_reserve: zod_1.z.number().optional().nullable(),
151
155
  })
152
156
  .describe("Item");
153
157
  const ItemListModel = exports.Item.omit({
@@ -21,7 +21,7 @@ declare const StockEntryItem: z.ZodObject<{
21
21
  s_warehouse?: string | undefined;
22
22
  basic_rate?: number | undefined;
23
23
  }>;
24
- export type StockEntryItem = z.infer<typeof StockEntryItem>;
24
+ export type StockEntryItemType = z.infer<typeof StockEntryItem>;
25
25
  export declare const StockEntry: z.ZodObject<{
26
26
  name: z.ZodString;
27
27
  external_name: z.ZodOptional<z.ZodString>;
@@ -244,5 +244,5 @@ export declare const StockEntry: z.ZodObject<{
244
244
  job_card?: string | undefined;
245
245
  credit_note?: string | undefined;
246
246
  }>;
247
- export type StockEntry = z.infer<typeof StockEntry>;
247
+ export type StockEntryType = z.infer<typeof StockEntry>;
248
248
  export {};
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.1",
27
+ "version": "1.4.3",
28
28
  "devDependencies": {
29
29
  "@types/crypto-js": "^4.2.2",
30
30
  "@types/lodash": "^4.17.13",