erpnext-queue-client 1.25.1 → 1.25.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" | "doctype" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "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" | "dimensions_unit" | "custom_dimension_format" | "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" | "min_order_qty" | "safety_stock" | "is_purchase_item" | "custom_include_in_purchase_planning" | "lead_time_days" | "last_purchase_rate" | "is_customer_provided_item" | "delivered_by_supplier" | "fsc_percentage" | "sales_uom" | "is_sales_item" | "custom_is_selling_enabled" | "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" | "custom_certifications" | "custom_oversell_amount") | ("length" | "image" | "warehouse_category" | "ean" | "shipping_template" | "width" | "height" | "shipping_length" | "shipping_width" | "shipping_height" | "packaging_weight_cardboard" | "packaging_weight_plastic" | "fsc_status" | "custom_fsc_type_of_wood" | "custom_fsc_product_group" | "custom_product_version" | "custom_supplier" | "purchase_description" | "custom_stock_reserve" | "custom_sales_category" | "custom_shopify_content_configuration" | "custom_compliance"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
11
+ getList: <TField extends ("description" | "name" | "doctype" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "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" | "dimensions_unit" | "custom_dimension_format" | "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" | "min_order_qty" | "safety_stock" | "is_purchase_item" | "custom_include_in_purchase_planning" | "lead_time_days" | "last_purchase_rate" | "is_customer_provided_item" | "delivered_by_supplier" | "fsc_percentage" | "sales_uom" | "is_sales_item" | "custom_is_selling_enabled" | "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" | "custom_certifications" | "custom_oversell_amount") | ("length" | "image" | "warehouse_category" | "ean" | "shipping_template" | "width" | "height" | "shipping_length" | "shipping_width" | "shipping_height" | "packaging_weight_cardboard" | "packaging_weight_plastic" | "fsc_status" | "custom_fsc_type_of_wood" | "custom_fsc_product_group" | "custom_product_version" | "custom_supplier" | "purchase_description" | "custom_stock_reserve" | "custom_sales_category" | "custom_shopify_content_configuration" | "custom_compliance" | "custom_serviceportal_configuration"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
12
12
  fields?: TField[] | undefined;
13
13
  filters?: (string | string[])[][];
14
14
  skip?: number;
@@ -190,6 +190,7 @@ export declare class ERPNextItem {
190
190
  custom_sales_category?: string | null | undefined;
191
191
  custom_shopify_content_configuration?: string | null | undefined;
192
192
  custom_compliance?: string | null | undefined;
193
+ custom_serviceportal_configuration?: string | null | undefined;
193
194
  }, TField>[]>;
194
195
  getById: ({ resourceId, priority, }: {
195
196
  resourceId: string;
@@ -368,6 +369,7 @@ export declare class ERPNextItem {
368
369
  custom_sales_category?: string | null | undefined;
369
370
  custom_shopify_content_configuration?: string | null | undefined;
370
371
  custom_compliance?: string | null | undefined;
372
+ custom_serviceportal_configuration?: string | null | undefined;
371
373
  }>;
372
374
  updateById: <TInput extends TInputModel extends undefined ? Partial<{
373
375
  description: string;
@@ -543,6 +545,7 @@ export declare class ERPNextItem {
543
545
  custom_sales_category?: string | null | undefined;
544
546
  custom_shopify_content_configuration?: string | null | undefined;
545
547
  custom_compliance?: string | null | undefined;
548
+ custom_serviceportal_configuration?: string | null | undefined;
546
549
  }> : TInputModel extends z.ZodTypeAny ? z.TypeOf<TInputModel> : any, TInputModel extends z.ZodTypeAny | undefined = undefined>({ resourceId, inputValidationModel, body, priority, }: {
547
550
  resourceId: string;
548
551
  inputValidationModel?: TInputModel;
@@ -722,6 +725,7 @@ export declare class ERPNextItem {
722
725
  custom_sales_category?: string | null | undefined;
723
726
  custom_shopify_content_configuration?: string | null | undefined;
724
727
  custom_compliance?: string | null | undefined;
728
+ custom_serviceportal_configuration?: string | null | undefined;
725
729
  }>;
726
730
  deleteById: ({ resourceId, priority, }: {
727
731
  resourceId: string;
@@ -901,6 +905,7 @@ export declare class ERPNextItem {
901
905
  custom_sales_category?: string | null | undefined;
902
906
  custom_shopify_content_configuration?: string | null | undefined;
903
907
  custom_compliance?: string | null | undefined;
908
+ custom_serviceportal_configuration?: string | null | undefined;
904
909
  }> : TInputModel extends z.ZodTypeAny ? z.TypeOf<TInputModel> : any, TInputModel extends z.ZodTypeAny | undefined = undefined>({ inputValidationModel, body, params, priority, }: {
905
910
  inputValidationModel?: TInputModel;
906
911
  body: TInput;
@@ -1080,6 +1085,7 @@ export declare class ERPNextItem {
1080
1085
  custom_sales_category?: string | null | undefined;
1081
1086
  custom_shopify_content_configuration?: string | null | undefined;
1082
1087
  custom_compliance?: string | null | undefined;
1088
+ custom_serviceportal_configuration?: string | null | undefined;
1083
1089
  }>;
1084
1090
  constructor(temporalClient: TemporalClient);
1085
1091
  getNoneStockItems(params?: Record<string, string>): Promise<string[]>;
@@ -311,6 +311,7 @@ export declare const Item: z.ZodObject<{
311
311
  certification: string;
312
312
  }>, "many">;
313
313
  custom_oversell_amount: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
314
+ custom_serviceportal_configuration: z.ZodNullable<z.ZodOptional<z.ZodString>>;
314
315
  }, "strip", z.ZodTypeAny, {
315
316
  description: string;
316
317
  name: string;
@@ -485,6 +486,7 @@ export declare const Item: z.ZodObject<{
485
486
  custom_sales_category?: string | null | undefined;
486
487
  custom_shopify_content_configuration?: string | null | undefined;
487
488
  custom_compliance?: string | null | undefined;
489
+ custom_serviceportal_configuration?: string | null | undefined;
488
490
  }, {
489
491
  description: string;
490
492
  name: string;
@@ -659,6 +661,7 @@ export declare const Item: z.ZodObject<{
659
661
  custom_shopify_content_configuration?: string | null | undefined;
660
662
  custom_compliance?: string | null | undefined;
661
663
  custom_oversell_amount?: number | null | undefined;
664
+ custom_serviceportal_configuration?: string | null | undefined;
662
665
  }>;
663
666
  export type ItemType = z.infer<typeof Item>;
664
667
  export declare const ItemListWithShippingTemplate: z.ZodArray<z.ZodObject<Pick<Omit<{
@@ -973,6 +976,7 @@ export declare const ItemListWithShippingTemplate: z.ZodArray<z.ZodObject<Pick<O
973
976
  certification: string;
974
977
  }>, "many">;
975
978
  custom_oversell_amount: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
979
+ custom_serviceportal_configuration: z.ZodNullable<z.ZodOptional<z.ZodString>>;
976
980
  }, "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_length" | "shipping_width" | "shipping_height" | "shipping_dimensions_unit">, "strip", z.ZodTypeAny, {
977
981
  disabled: number;
978
982
  item_code: string;
@@ -1315,6 +1319,7 @@ export declare const ItemListWithShippingTemplateSku: z.ZodArray<z.ZodObject<Pic
1315
1319
  certification: string;
1316
1320
  }>, "many">;
1317
1321
  custom_oversell_amount: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
1322
+ custom_serviceportal_configuration: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1318
1323
  }, "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_length" | "shipping_width" | "shipping_height" | "shipping_dimensions_unit"> & {
1319
1324
  sku: z.ZodString;
1320
1325
  }, "strip", z.ZodTypeAny, {
@@ -1660,6 +1665,7 @@ declare const ItemDimensionsInfo: z.ZodObject<Pick<Omit<{
1660
1665
  certification: string;
1661
1666
  }>, "many">;
1662
1667
  custom_oversell_amount: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
1668
+ custom_serviceportal_configuration: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1663
1669
  }, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "shipping_length" | "shipping_width" | "shipping_height" | "shipping_dimensions_unit">, "strip", z.ZodTypeAny, {
1664
1670
  shipping_dimensions_unit: "m" | "cm" | "mm";
1665
1671
  shipping_length?: number | null | undefined;
@@ -1984,6 +1990,7 @@ export declare const ItemListName: z.ZodArray<z.ZodObject<Pick<Omit<{
1984
1990
  certification: string;
1985
1991
  }>, "many">;
1986
1992
  custom_oversell_amount: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
1993
+ custom_serviceportal_configuration: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1987
1994
  }, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "item_code">, "strip", z.ZodTypeAny, {
1988
1995
  item_code: string;
1989
1996
  }, {
@@ -2302,6 +2309,7 @@ export declare const ItemList: z.ZodArray<z.ZodObject<Pick<Omit<{
2302
2309
  certification: string;
2303
2310
  }>, "many">;
2304
2311
  custom_oversell_amount: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
2312
+ custom_serviceportal_configuration: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2305
2313
  }, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "item_code" | "item_name" | "weight_per_unit" | "weight_uom">, "strip", z.ZodTypeAny, {
2306
2314
  item_code: string;
2307
2315
  item_name: string;
@@ -204,6 +204,7 @@ exports.Item = zod_1.z
204
204
  custom_compliance: zod_1.z.string().optional().nullable(),
205
205
  custom_certifications: zod_1.z.array(ItemCertification),
206
206
  custom_oversell_amount: zod_1.z.number().optional().nullable().default(0),
207
+ custom_serviceportal_configuration: zod_1.z.string().optional().nullable(),
207
208
  })
208
209
  .describe("Item");
209
210
  const ItemListModel = exports.Item.omit({
@@ -47,10 +47,10 @@ export declare const ServiceportalProductConfiguration: z.ZodObject<{
47
47
  modified_by: z.ZodString;
48
48
  title: z.ZodString;
49
49
  return_fee: z.ZodNumber;
50
- return_fee_explanation: z.ZodString;
50
+ return_fee_explanation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
51
51
  is_ask_for_batch_number: z.ZodNumber;
52
52
  batch_number_location_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
53
- return_conditions: z.ZodString;
53
+ return_conditions: z.ZodNullable<z.ZodOptional<z.ZodString>>;
54
54
  doctype: z.ZodLiteral<"Serviceportal Product Configuration">;
55
55
  batch_numbers: z.ZodArray<z.ZodObject<{
56
56
  name: z.ZodString;
@@ -158,9 +158,7 @@ export declare const ServiceportalProductConfiguration: z.ZodObject<{
158
158
  internal_reason: string;
159
159
  }[];
160
160
  return_fee: number;
161
- return_fee_explanation: string;
162
161
  is_ask_for_batch_number: number;
163
- return_conditions: string;
164
162
  batch_numbers: {
165
163
  name: string;
166
164
  doctype: "Batch Number List";
@@ -175,7 +173,9 @@ export declare const ServiceportalProductConfiguration: z.ZodObject<{
175
173
  docstatus: number;
176
174
  batch_number: string;
177
175
  }[];
176
+ return_fee_explanation?: string | null | undefined;
178
177
  batch_number_location_description?: string | null | undefined;
178
+ return_conditions?: string | null | undefined;
179
179
  return_shipping_provider?: string | null | undefined;
180
180
  return_instructions?: string | null | undefined;
181
181
  internal_reasons_section?: string | null | undefined;
@@ -202,9 +202,7 @@ export declare const ServiceportalProductConfiguration: z.ZodObject<{
202
202
  internal_reason: string;
203
203
  }[];
204
204
  return_fee: number;
205
- return_fee_explanation: string;
206
205
  is_ask_for_batch_number: number;
207
- return_conditions: string;
208
206
  batch_numbers: {
209
207
  name: string;
210
208
  doctype: "Batch Number List";
@@ -219,7 +217,9 @@ export declare const ServiceportalProductConfiguration: z.ZodObject<{
219
217
  docstatus: number;
220
218
  batch_number: string;
221
219
  }[];
220
+ return_fee_explanation?: string | null | undefined;
222
221
  batch_number_location_description?: string | null | undefined;
222
+ return_conditions?: string | null | undefined;
223
223
  return_shipping_provider?: string | null | undefined;
224
224
  return_instructions?: string | null | undefined;
225
225
  internal_reasons_section?: string | null | undefined;
@@ -233,10 +233,10 @@ export declare const ServiceportalProductConfigurationInput: z.ZodObject<Omit<{
233
233
  modified_by: z.ZodString;
234
234
  title: z.ZodString;
235
235
  return_fee: z.ZodNumber;
236
- return_fee_explanation: z.ZodString;
236
+ return_fee_explanation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
237
237
  is_ask_for_batch_number: z.ZodNumber;
238
238
  batch_number_location_description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
239
- return_conditions: z.ZodString;
239
+ return_conditions: z.ZodNullable<z.ZodOptional<z.ZodString>>;
240
240
  doctype: z.ZodLiteral<"Serviceportal Product Configuration">;
241
241
  batch_numbers: z.ZodArray<z.ZodObject<{
242
242
  name: z.ZodString;
@@ -365,13 +365,13 @@ export declare const ServiceportalProductConfigurationInput: z.ZodObject<Omit<{
365
365
  internal_reason: string;
366
366
  }[];
367
367
  return_fee: number;
368
- return_fee_explanation: string;
369
368
  is_ask_for_batch_number: number;
370
- return_conditions: string;
371
369
  batch_numbers: {
372
370
  batch_number: string;
373
371
  }[];
372
+ return_fee_explanation?: string | null | undefined;
374
373
  batch_number_location_description?: string | null | undefined;
374
+ return_conditions?: string | null | undefined;
375
375
  return_shipping_provider?: string | null | undefined;
376
376
  return_instructions?: string | null | undefined;
377
377
  internal_reasons_section?: string | null | undefined;
@@ -382,13 +382,13 @@ export declare const ServiceportalProductConfigurationInput: z.ZodObject<Omit<{
382
382
  internal_reason: string;
383
383
  }[];
384
384
  return_fee: number;
385
- return_fee_explanation: string;
386
385
  is_ask_for_batch_number: number;
387
- return_conditions: string;
388
386
  batch_numbers: {
389
387
  batch_number: string;
390
388
  }[];
389
+ return_fee_explanation?: string | null | undefined;
391
390
  batch_number_location_description?: string | null | undefined;
391
+ return_conditions?: string | null | undefined;
392
392
  return_shipping_provider?: string | null | undefined;
393
393
  return_instructions?: string | null | undefined;
394
394
  internal_reasons_section?: string | null | undefined;
@@ -41,10 +41,10 @@ exports.ServiceportalProductConfiguration = zod_1.z
41
41
  modified_by: zod_1.z.string(),
42
42
  title: zod_1.z.string(),
43
43
  return_fee: zod_1.z.number(),
44
- return_fee_explanation: zod_1.z.string(),
44
+ return_fee_explanation: zod_1.z.string().optional().nullable(),
45
45
  is_ask_for_batch_number: zod_1.z.number(),
46
46
  batch_number_location_description: zod_1.z.string().optional().nullable(),
47
- return_conditions: zod_1.z.string(),
47
+ return_conditions: zod_1.z.string().optional().nullable(),
48
48
  doctype: zod_1.z.literal("Serviceportal Product Configuration"),
49
49
  batch_numbers: zod_1.z.array(BatchNumberList),
50
50
  internal_reasons: zod_1.z.array(exports.InternalReasonList),
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.25.1",
28
+ "version": "1.25.3",
29
29
  "devDependencies": {
30
30
  "@types/crypto-js": "^4.2.2",
31
31
  "@types/lodash": "^4.17.13",