@erpsquad/common 1.8.103 → 1.8.105

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.
Files changed (64) hide show
  1. package/dist/_virtual/index/index.esm11.js +2 -4
  2. package/dist/_virtual/index/index.esm11.js.map +1 -1
  3. package/dist/_virtual/index/index.esm2.js +4 -2
  4. package/dist/_virtual/index/index.esm2.js.map +1 -1
  5. package/dist/_virtual/index/index11.js +1 -1
  6. package/dist/_virtual/index/index2.js +1 -1
  7. package/dist/api-client/api.inventory/api/index.esm.js +95 -30
  8. package/dist/api-client/api.inventory/api/index.esm.js.map +1 -1
  9. package/dist/api-client/api.inventory/api/index.js +1 -1
  10. package/dist/api-client/api.inventory/api/index.js.map +1 -1
  11. package/dist/api-client/api.inventory/api-types.d.ts +930 -425
  12. package/dist/api-client/api.inventory/api.d.ts +14 -10
  13. package/dist/api-client/api.rbac/api/index.esm2.js +218 -0
  14. package/dist/api-client/api.rbac/api/index.esm2.js.map +1 -1
  15. package/dist/api-client/api.rbac/api/index2.js +1 -1
  16. package/dist/api-client/api.rbac/api/index2.js.map +1 -1
  17. package/dist/components/filter/components/delete-group/index.esm.js +1 -0
  18. package/dist/components/filter/components/delete-group/index.esm.js.map +1 -1
  19. package/dist/components/filter/components/delete-group/index.js +1 -1
  20. package/dist/components/filter/components/delete-group/index.js.map +1 -1
  21. package/dist/components/form-control/form-parser/form-section/index.esm.js +5 -4
  22. package/dist/components/form-control/form-parser/form-section/index.esm.js.map +1 -1
  23. package/dist/components/form-control/form-parser/form-section/index.js +22 -22
  24. package/dist/components/form-control/form-parser/form-section/index.js.map +1 -1
  25. package/dist/components/listing/listing/index.esm.js +3 -2
  26. package/dist/components/listing/listing/index.esm.js.map +1 -1
  27. package/dist/components/listing/listing/index.js +5 -5
  28. package/dist/components/listing/listing/index.js.map +1 -1
  29. package/dist/components/uom-field-wrapper/uom-field-wrapper/index.esm.js.map +1 -1
  30. package/dist/components/uom-field-wrapper/uom-field-wrapper/index.js.map +1 -1
  31. package/dist/hooks/apiHelper/index.esm.js.map +1 -1
  32. package/dist/hooks/apiHelper/index.js.map +1 -1
  33. package/dist/hooks/index.esm.js +4 -4
  34. package/dist/hooks/index.js +1 -1
  35. package/dist/hooks/useApi/index.esm.js +1 -0
  36. package/dist/hooks/useApi/index.esm.js.map +1 -1
  37. package/dist/hooks/useApi/index.js.map +1 -1
  38. package/dist/hooks/useDataFetcher/index.esm.js +2 -3
  39. package/dist/hooks/useDataFetcher/index.esm.js.map +1 -1
  40. package/dist/hooks/useDataFetcher/index.js +1 -1
  41. package/dist/hooks/useDataFetcher/index.js.map +1 -1
  42. package/dist/hooks/useDataFetcher.d.ts +2 -2
  43. package/dist/index.esm.js +69 -69
  44. package/dist/index.js +1 -1
  45. package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.esm.js +1 -1
  46. package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.js +1 -1
  47. package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.js.map +1 -1
  48. package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.esm.js +1 -1
  49. package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.js +1 -1
  50. package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.js.map +1 -1
  51. package/dist/src/api-client/api.inventory/api.d.ts +14 -10
  52. package/dist/src/hooks/useDataFetcher.d.ts +2 -2
  53. package/dist/src/utils/api.d.ts +18 -8
  54. package/dist/style.css +63 -63
  55. package/dist/utils/api/index.esm.js +45 -22
  56. package/dist/utils/api/index.esm.js.map +1 -1
  57. package/dist/utils/api/index.js +1 -1
  58. package/dist/utils/api/index.js.map +1 -1
  59. package/dist/utils/api.d.ts +18 -8
  60. package/dist/utils/common-utility/index.esm.js +13 -7
  61. package/dist/utils/common-utility/index.esm.js.map +1 -1
  62. package/dist/utils/common-utility/index.js +5 -5
  63. package/dist/utils/common-utility/index.js.map +1 -1
  64. package/package.json +1 -1
@@ -7,64 +7,84 @@ export interface FullResponse<T, U extends number> {
7
7
  export type PostV1InventoryItemsRequest = {
8
8
  'x-token'?: string;
9
9
  'x-timezone'?: string;
10
- 'profile_image'?: string;
10
+ 'profile_image'?: string | null;
11
11
  'type': string;
12
12
  'sku': string;
13
13
  'name': string;
14
- 'parent_item'?: number;
14
+ 'parent_item'?: number | null;
15
15
  'status'?: boolean;
16
- 'category'?: number;
17
- 'unit_of_measurement'?: number;
18
- 'stock_unit'?: number;
19
- 'purchase_unit'?: number;
20
- 'sales_unit'?: number;
21
- 'base_unit'?: number;
22
- 'consumption_unit'?: number;
16
+ 'category'?: number | null;
17
+ 'unit_of_measurement'?: number | null;
18
+ 'stock_unit'?: number | null;
19
+ 'purchase_unit'?: number | null;
20
+ 'sales_unit'?: number | null;
21
+ 'base_unit'?: number | null;
22
+ 'consumption_unit'?: number | null;
23
23
  'costing_method': string;
24
- 'upc_bar_code'?: string;
25
- 'location'?: number;
26
- 'department'?: number;
27
- 'sales_price'?: number;
28
- 'sales_description'?: string;
29
- 'purchase_price'?: number;
30
- 'purchase_description'?: string;
24
+ 'upc_bar_code'?: string | null;
25
+ 'location'?: number | null;
26
+ 'department'?: number | null;
27
+ 'sales_price'?: number | null;
28
+ 'sales_description'?: string | null;
29
+ 'purchase_price'?: number | null;
30
+ 'purchase_description'?: string | null;
31
31
  'default_tax_id': number;
32
32
  'income_account_id': number;
33
33
  'asset_account_id': number;
34
- 'cogs_account_id'?: number;
35
- 'reorder_point'?: number;
36
- 'default_lead_time'?: number;
37
- 'weight'?: string;
38
- 'hsn_code'?: string;
34
+ 'cogs_account_id'?: number | null;
35
+ 'reorder_point'?: number | null;
36
+ 'default_lead_time'?: number | null;
37
+ 'weight'?: string | null;
38
+ 'hsn_code'?: string | null;
39
39
  'use_bins'?: boolean;
40
40
  'apply_for_prices'?: boolean;
41
41
  'apply_for_quantity'?: boolean;
42
42
  'traceability': string;
43
+ 'brand'?: number | null;
44
+ 'item_number'?: number | null;
45
+ 'is_variant'?: boolean;
46
+ 'subtype'?: 'sale' | 'purchase' | 'both' | unknown;
47
+ 'expense_account_id'?: number | null;
48
+ 'can_be_purchased'?: boolean;
49
+ 'material_type'?: string | null;
50
+ 'tube_type'?: string | null;
51
+ 'tube_od'?: number | null;
52
+ 'shape_width'?: number | null;
53
+ 'shape_height'?: number | null;
54
+ 'material_thickness'?: number | null;
55
+ 'material_length'?: number | null;
56
+ 'material_weight'?: number | null;
57
+ 'is_returnable'?: boolean;
58
+ 'self_variant'?: boolean;
59
+ 'cost'?: number | null;
60
+ 'is_landed_cost'?: boolean;
61
+ 'spitting_method'?: 'Equal' | 'By Weight' | 'By Volume' | 'By Quantity' | 'By Current Cost' | unknown;
62
+ 'track_landed_cost'?: boolean;
43
63
  'addPriceRules'?: Array<{ 'price_list_name': string; 'minimum_quantity': number; 'unit_price': number; 'start_date': string | Date; 'end_date': string | Date }>;
44
- 'addVendorInformation'?: Array<{ 'id'?: number; 'vendor': string; 'vendor_item_name': string; 'vendor_item_code': string; 'lead_time': string; 'price': number; 'currency_id': number; 'created_at'?: string | Date; 'updated_at'?: string | Date; 'created_by'?: number; 'updated_by'?: number; 'is_deleted'?: boolean; 'deleted_at'?: string | Date; 'deleted_by'?: number }>;
45
- 'addReorderingRules'?: Array<{ 'company_id'?: number; 'quantity_in_hand'?: number; 'minimum_quantity'?: number; 'maximum_quantity'?: number; 'multiple_quantity'?: number; 'location_id'?: number; 'uom_id'?: number; 'vendor_id'?: number; 'reordering_rules': 'Buy' | 'Manufacture' }>;
64
+ 'addVendorInformation'?: Array<{ 'id'?: number | null; 'vendor': string; 'vendor_item_name': string; 'vendor_item_code': string; 'lead_time': string; 'price': number; 'currency_id': number }>;
65
+ 'addReorderingRules'?: Array<{ 'company_id'?: number | null; 'quantity_in_hand'?: number | null; 'minimum_quantity'?: number | null; 'maximum_quantity'?: number | null; 'multiple_quantity'?: number | null; 'location_id'?: number | null; 'uom_id'?: number | null; 'vendor_id'?: number | null; 'reordering_rules': 'Buy' | 'Manufacture' }>;
46
66
  'addCompanies'?: Array<number>;
47
67
  'addAlternativeProductSell'?: Array<number>;
48
68
  'addAttributeValues'?: Array<number>;
49
- 'material_costing_types'?: string;
50
- 'face_width'?: number;
51
- 'bending'?: number;
52
- 'height'?: number;
53
- 'total_width'?: number;
54
- 'boards_thickness'?: number;
55
- 'boards_length'?: number;
56
- 'boards_weight'?: number;
57
- 'steel_type'?: string;
58
- 'material_unit'?: number;
59
- 'steel_length'?: number;
60
- 'steel_width'?: number;
61
- 'steel_thickness'?: number;
62
- 'steel_weight'?: number;
69
+ 'material_costing_types'?: string | null;
70
+ 'face_width'?: number | null;
71
+ 'bending'?: number | null;
72
+ 'height'?: number | null;
73
+ 'total_width'?: number | null;
74
+ 'boards_thickness'?: number | null;
75
+ 'boards_length'?: number | null;
76
+ 'boards_weight'?: number | null;
77
+ 'steel_type'?: string | null;
78
+ 'material_unit'?: number | null;
79
+ 'steel_length'?: number | null;
80
+ 'steel_width'?: number | null;
81
+ 'steel_thickness'?: number | null;
82
+ 'steel_weight'?: number | null;
63
83
  'is_rental'?: boolean;
64
- 'rental_base_price'?: number;
65
- 'rental_hour_fine'?: number;
66
- 'rental_day_fine'?: number;
67
- 'rental_security_time'?: number;
84
+ 'rental_base_price'?: number | null;
85
+ 'rental_hour_fine'?: number | null;
86
+ 'rental_day_fine'?: number | null;
87
+ 'rental_security_time'?: number | null;
68
88
  'rental_prices'?: Array<{ 'period': string | null; 'price': number }>;
69
89
  }
70
90
 
@@ -191,72 +211,91 @@ export type PutV1InventoryItemsIdRequest = {
191
211
  'x-token'?: string;
192
212
  'x-timezone'?: string;
193
213
  'id': string;
194
- 'profile_image': string;
195
- 'type': string;
196
- 'sku': string;
197
- 'name': string;
198
- 'parent_item': number;
214
+ 'profile_image': string | null;
215
+ 'type': string | null;
216
+ 'sku': string | null;
217
+ 'name': string | null;
218
+ 'parent_item': number | null;
199
219
  'status': boolean;
200
- 'category': number;
201
- 'brand': number;
202
- 'unit_of_measurement': number;
203
- 'stock_unit': number;
204
- 'purchase_unit': number;
205
- 'sales_unit': number;
206
- 'base_unit': number;
207
- 'consumption_unit': number;
208
- 'costing_method': string;
209
- 'upc_bar_code': string;
210
- 'location': number;
211
- 'department': number;
212
- 'sales_price': number;
213
- 'sales_description': string;
214
- 'purchase_price': number;
215
- 'purchase_description': string;
216
- 'default_tax_id': number;
217
- 'income_account_id': number;
218
- 'asset_account_id': number;
219
- 'cogs_account_id': number;
220
- 'reorder_point': number;
221
- 'default_lead_time': number;
222
- 'weight': string;
223
- 'hsn_code': string;
220
+ 'category': number | null;
221
+ 'brand': number | null;
222
+ 'unit_of_measurement': number | null;
223
+ 'stock_unit': number | null;
224
+ 'purchase_unit': number | null;
225
+ 'sales_unit': number | null;
226
+ 'base_unit': number | null;
227
+ 'consumption_unit': number | null;
228
+ 'costing_method': string | null;
229
+ 'upc_bar_code': string | null;
230
+ 'location': number | null;
231
+ 'department': number | null;
232
+ 'sales_price': number | null;
233
+ 'sales_description': string | null;
234
+ 'purchase_price': number | null;
235
+ 'purchase_description': string | null;
236
+ 'default_tax_id': number | null;
237
+ 'income_account_id': number | null;
238
+ 'asset_account_id': number | null;
239
+ 'cogs_account_id': number | null;
240
+ 'reorder_point': number | null;
241
+ 'default_lead_time': number | null;
242
+ 'weight': string | null;
243
+ 'hsn_code': string | null;
224
244
  'use_bins': boolean;
225
245
  'apply_for_prices': boolean;
226
246
  'apply_for_quantity': boolean;
227
- 'traceability': string;
247
+ 'traceability': string | null;
248
+ 'item_number': number | null;
249
+ 'is_variant': boolean;
250
+ 'subtype': 'sale' | 'purchase' | 'both' | unknown;
251
+ 'expense_account_id': number | null;
252
+ 'can_be_purchased': boolean;
253
+ 'material_type': string | null;
254
+ 'tube_type': string | null;
255
+ 'tube_od': number | null;
256
+ 'shape_width': number | null;
257
+ 'shape_height': number | null;
258
+ 'material_thickness': number | null;
259
+ 'material_length': number | null;
260
+ 'material_weight': number | null;
261
+ 'is_returnable': boolean;
262
+ 'self_variant': boolean;
263
+ 'cost': number | null;
264
+ 'is_landed_cost': boolean;
265
+ 'spitting_method': 'Equal' | 'By Weight' | 'By Volume' | 'By Quantity' | 'By Current Cost' | unknown;
266
+ 'track_landed_cost': boolean;
228
267
  'addPriceRules': Array<{ 'price_list_name': string; 'minimum_quantity': number; 'unit_price': number; 'start_date': string | Date; 'end_date': string | Date }>;
229
- 'addVendorInformation': Array<{ 'id'?: number; 'vendor': string; 'vendor_item_name': string; 'vendor_item_code': string; 'lead_time': string; 'price': number; 'currency_id': number; 'created_at'?: string | Date; 'updated_at'?: string | Date; 'created_by'?: number; 'updated_by'?: number; 'is_deleted'?: boolean; 'deleted_at'?: string | Date; 'deleted_by'?: number }>;
230
- 'addReorderingRules': Array<{ 'item_id'?: number; 'quantity_in_hand'?: number; 'minimum_quantity'?: number; 'maximum_quantity'?: number; 'location_id'?: number }>;
268
+ 'addVendorInformation': Array<{ 'id'?: number | null; 'vendor': string; 'vendor_item_name': string; 'vendor_item_code': string; 'lead_time': string; 'price': number; 'currency_id': number }>;
269
+ 'addReorderingRules': Array<{ 'item_id'?: number | null; 'quantity_in_hand'?: number | null; 'minimum_quantity'?: number | null; 'maximum_quantity'?: number | null; 'location_id'?: number | null }>;
231
270
  'addCompanies': Array<number>;
232
271
  'addAlternativeProductSell': Array<number>;
233
- 'updatePriceRules': Array<{ 'id': number; 'price_list_name'?: string; 'minimum_quantity'?: number; 'unit_price'?: number; 'company_id'?: number; 'start_date'?: string | Date; 'end_date'?: string | Date }>;
234
- 'updateVendorInformation': Array<{ 'id': number; 'vendor'?: string; 'vendor_item_name'?: string; 'vendor_item_code'?: string; 'lead_time'?: string; 'price'?: number; 'currency_id'?: number; 'created_at'?: string | Date; 'updated_at'?: string | Date; 'created_by'?: number; 'updated_by'?: number; 'is_deleted'?: boolean; 'deleted_at'?: string | Date; 'deleted_by'?: number }>;
235
- 'updateReorderingRules': Array<{ 'id': number; 'company_id'?: number; 'quantity_in_hand'?: number; 'minimum_quantity'?: number; 'maximum_quantity'?: number; 'multiple_quantity'?: number; 'location_id'?: number; 'uom_id'?: number; 'vendor_id'?: number }>;
272
+ 'updatePriceRules': Array<{ 'id': number; 'price_list_name'?: string | null; 'minimum_quantity'?: number | null; 'unit_price'?: number | null; 'company_id'?: number | null; 'start_date'?: string | Date | null; 'end_date'?: string | Date | null }>;
273
+ 'updateVendorInformation': Array<{ 'id': number; 'vendor'?: string | null; 'vendor_item_name'?: string | null; 'vendor_item_code'?: string | null; 'lead_time'?: string | null; 'price'?: number | null; 'currency_id'?: number | null }>;
274
+ 'updateReorderingRules': Array<{ 'id': number; 'company_id'?: number | null; 'quantity_in_hand'?: number | null; 'minimum_quantity'?: number | null; 'maximum_quantity'?: number | null; 'multiple_quantity'?: number | null; 'location_id'?: number | null; 'uom_id'?: number | null; 'vendor_id'?: number | null }>;
236
275
  'removePriceRules': Array<number>;
237
276
  'removeCompanies': Array<number>;
238
277
  'removeAlternativeProductSell': Array<number>;
239
278
  'removeVendorInformation': Array<number>;
240
279
  'removeReorderingRules': Array<number>;
241
- 'material_costing_types': string;
242
- 'face_width': number;
243
- 'bending': number;
244
- 'height': number;
245
- 'total_width': number;
246
- 'boards_thickness': number;
247
- 'boards_length': number;
248
- 'boards_weight': number;
249
- 'steel_type': string;
250
- 'material_unit': number;
251
- 'steel_length': number;
252
- 'steel_width': number;
253
- 'steel_thickness': number;
254
- 'steel_weight': number;
280
+ 'material_costing_types': string | null;
281
+ 'face_width': number | null;
282
+ 'bending': number | null;
283
+ 'height': number | null;
284
+ 'total_width': number | null;
285
+ 'boards_thickness': number | null;
286
+ 'boards_length': number | null;
287
+ 'boards_weight': number | null;
288
+ 'steel_type': string | null;
289
+ 'material_unit': number | null;
290
+ 'steel_length': number | null;
291
+ 'steel_width': number | null;
292
+ 'steel_thickness': number | null;
293
+ 'steel_weight': number | null;
255
294
  'is_rental': boolean;
256
- 'rental_base_price': number;
257
- 'rental_hour_fine': number;
258
- 'rental_day_fine': number;
259
- 'rental_security_time': number;
295
+ 'rental_base_price': number | null;
296
+ 'rental_hour_fine': number | null;
297
+ 'rental_day_fine': number | null;
298
+ 'rental_security_time': number | null;
260
299
  'rental_prices': Array<{ 'period': string | null; 'price': number }>;
261
300
  }
262
301
 
@@ -453,41 +492,80 @@ export type PostV1InventoryItemsCheckResponses =
453
492
  export type PostV1NonInventoryItemsRequest = {
454
493
  'x-token'?: string;
455
494
  'x-timezone'?: string;
456
- 'profile_image'?: string;
495
+ 'profile_image'?: string | null;
457
496
  'type': string;
458
497
  'sku': string;
459
498
  'name': string;
460
- 'parent_item'?: number;
499
+ 'parent_item'?: number | null;
461
500
  'status'?: boolean;
462
- 'category'?: number;
463
- 'date'?: string;
464
- 'unit_of_measurement'?: number;
465
- 'stock_unit'?: number;
466
- 'purchase_unit'?: number;
467
- 'sales_unit'?: number;
468
- 'base_unit'?: number;
469
- 'consumption_unit'?: number;
501
+ 'category'?: number | null;
502
+ 'date'?: string | null;
503
+ 'unit_of_measurement'?: number | null;
504
+ 'stock_unit'?: number | null;
505
+ 'purchase_unit'?: number | null;
506
+ 'sales_unit'?: number | null;
507
+ 'base_unit'?: number | null;
508
+ 'consumption_unit'?: number | null;
470
509
  'costing_method': string;
471
- 'upc_bar_code'?: string;
472
- 'location'?: number;
473
- 'department'?: number;
474
- 'sales_price'?: number;
475
- 'sales_description'?: string;
476
- 'purchase_price'?: number;
477
- 'purchase_description'?: string;
510
+ 'upc_bar_code'?: string | null;
511
+ 'location'?: number | null;
512
+ 'department'?: number | null;
513
+ 'sales_price'?: number | null;
514
+ 'sales_description'?: string | null;
515
+ 'purchase_price'?: number | null;
516
+ 'purchase_description'?: string | null;
478
517
  'default_tax_id': number;
479
518
  'income_account_id': number;
480
519
  'asset_account_id': number;
481
- 'cogs_account_id'?: number;
482
- 'reorder_point'?: number;
483
- 'default_lead_time'?: number;
484
- 'weight'?: string;
485
- 'hsn_code'?: string;
520
+ 'cogs_account_id'?: number | null;
521
+ 'reorder_point'?: number | null;
522
+ 'default_lead_time'?: number | null;
523
+ 'weight'?: string | null;
524
+ 'hsn_code'?: string | null;
486
525
  'use_bins'?: boolean;
487
526
  'apply_for_prices'?: boolean;
488
527
  'apply_for_quantity'?: boolean;
489
- 'traceability'?: string;
490
- 'subtype'?: 'sale' | 'purchase' | 'both';
528
+ 'traceability'?: string | null;
529
+ 'brand'?: number | null;
530
+ 'item_number'?: number | null;
531
+ 'is_variant'?: boolean;
532
+ 'subtype'?: 'sale' | 'purchase' | 'both' | unknown;
533
+ 'expense_account_id'?: number | null;
534
+ 'can_be_purchased'?: boolean;
535
+ 'material_type'?: string | null;
536
+ 'tube_type'?: string | null;
537
+ 'tube_od'?: number | null;
538
+ 'shape_width'?: number | null;
539
+ 'shape_height'?: number | null;
540
+ 'material_thickness'?: number | null;
541
+ 'material_length'?: number | null;
542
+ 'material_weight'?: number | null;
543
+ 'is_returnable'?: boolean;
544
+ 'self_variant'?: boolean;
545
+ 'cost'?: number | null;
546
+ 'material_costing_types'?: string | null;
547
+ 'face_width'?: number | null;
548
+ 'bending'?: number | null;
549
+ 'height'?: number | null;
550
+ 'total_width'?: number | null;
551
+ 'boards_thickness'?: number | null;
552
+ 'boards_length'?: number | null;
553
+ 'boards_weight'?: number | null;
554
+ 'steel_type'?: string | null;
555
+ 'material_unit'?: number | null;
556
+ 'steel_length'?: number | null;
557
+ 'steel_width'?: number | null;
558
+ 'steel_thickness'?: number | null;
559
+ 'steel_weight'?: number | null;
560
+ 'is_landed_cost'?: boolean;
561
+ 'spitting_method'?: 'Equal' | 'By Weight' | 'By Volume' | 'By Quantity' | 'By Current Cost' | unknown;
562
+ 'track_landed_cost'?: boolean;
563
+ 'is_rental'?: boolean;
564
+ 'rental_base_price'?: number | null;
565
+ 'rental_hour_fine'?: number | null;
566
+ 'rental_day_fine'?: number | null;
567
+ 'rental_security_time'?: number | null;
568
+ 'rental_description'?: string | null;
491
569
  'addCompanies'?: Array<number>;
492
570
  'addAlternativeProductSell'?: Array<number>;
493
571
  }
@@ -615,42 +693,80 @@ export type PutV1NonInventoryItemsIdRequest = {
615
693
  'x-token'?: string;
616
694
  'x-timezone'?: string;
617
695
  'id': string;
618
- 'profile_image': string;
619
- 'type': string;
620
- 'sku': string;
621
- 'name': string;
622
- 'parent_item': number;
696
+ 'profile_image': string | null;
697
+ 'type': string | null;
698
+ 'sku': string | null;
699
+ 'name': string | null;
700
+ 'parent_item': number | null;
623
701
  'status': boolean;
624
- 'category': number;
625
- 'brand': string;
626
- 'date': string;
627
- 'unit_of_measurement': number;
628
- 'stock_unit': number;
629
- 'purchase_unit': number;
630
- 'sales_unit': number;
631
- 'base_unit': number;
632
- 'consumption_unit': number;
633
- 'costing_method': string;
634
- 'upc_bar_code': string;
635
- 'location': number;
636
- 'department': number;
637
- 'sales_price': number;
638
- 'sales_description': string;
639
- 'purchase_price': number;
640
- 'purchase_description': string;
641
- 'default_tax_id': number;
642
- 'income_account_id': number;
643
- 'asset_account_id': number;
644
- 'cogs_account_id': number;
645
- 'reorder_point': number;
646
- 'default_lead_time': number;
647
- 'weight': string;
648
- 'hsn_code': string;
702
+ 'category': number | null;
703
+ 'brand': number | null;
704
+ 'date': string | null;
705
+ 'unit_of_measurement': number | null;
706
+ 'stock_unit': number | null;
707
+ 'purchase_unit': number | null;
708
+ 'sales_unit': number | null;
709
+ 'base_unit': number | null;
710
+ 'consumption_unit': number | null;
711
+ 'costing_method': string | null;
712
+ 'upc_bar_code': string | null;
713
+ 'location': number | null;
714
+ 'department': number | null;
715
+ 'sales_price': number | null;
716
+ 'sales_description': string | null;
717
+ 'purchase_price': number | null;
718
+ 'purchase_description': string | null;
719
+ 'default_tax_id': number | null;
720
+ 'income_account_id': number | null;
721
+ 'asset_account_id': number | null;
722
+ 'cogs_account_id': number | null;
723
+ 'reorder_point': number | null;
724
+ 'default_lead_time': number | null;
725
+ 'weight': string | null;
726
+ 'hsn_code': string | null;
649
727
  'use_bins': boolean;
650
728
  'apply_for_prices': boolean;
651
729
  'apply_for_quantity': boolean;
652
- 'traceability': string;
653
- 'subtype': 'sale' | 'purchase' | 'both';
730
+ 'traceability': string | null;
731
+ 'item_number': number | null;
732
+ 'is_variant': boolean;
733
+ 'subtype': 'sale' | 'purchase' | 'both' | unknown;
734
+ 'expense_account_id': number | null;
735
+ 'can_be_purchased': boolean;
736
+ 'material_type': string | null;
737
+ 'tube_type': string | null;
738
+ 'tube_od': number | null;
739
+ 'shape_width': number | null;
740
+ 'shape_height': number | null;
741
+ 'material_thickness': number | null;
742
+ 'material_length': number | null;
743
+ 'material_weight': number | null;
744
+ 'is_returnable': boolean;
745
+ 'self_variant': boolean;
746
+ 'cost': number | null;
747
+ 'material_costing_types': string | null;
748
+ 'face_width': number | null;
749
+ 'bending': number | null;
750
+ 'height': number | null;
751
+ 'total_width': number | null;
752
+ 'boards_thickness': number | null;
753
+ 'boards_length': number | null;
754
+ 'boards_weight': number | null;
755
+ 'steel_type': string | null;
756
+ 'material_unit': number | null;
757
+ 'steel_length': number | null;
758
+ 'steel_width': number | null;
759
+ 'steel_thickness': number | null;
760
+ 'steel_weight': number | null;
761
+ 'is_landed_cost': boolean;
762
+ 'spitting_method': 'Equal' | 'By Weight' | 'By Volume' | 'By Quantity' | 'By Current Cost' | unknown;
763
+ 'track_landed_cost': boolean;
764
+ 'is_rental': boolean;
765
+ 'rental_base_price': number | null;
766
+ 'rental_hour_fine': number | null;
767
+ 'rental_day_fine': number | null;
768
+ 'rental_security_time': number | null;
769
+ 'rental_description': string | null;
654
770
  }
655
771
 
656
772
  export type PutV1NonInventoryItemsIdResponseOK = {
@@ -726,43 +842,84 @@ export type DeleteV1NonInventoryItemsIdResponses =
726
842
  export type PostV1AssemblyItemsRequest = {
727
843
  'x-token'?: string;
728
844
  'x-timezone'?: string;
729
- 'profile_image'?: string;
845
+ 'profile_image'?: string | null;
730
846
  'type': string;
731
847
  'sku': string;
732
848
  'name': string;
733
- 'parent_item'?: number;
849
+ 'parent_item'?: number | null;
734
850
  'status'?: boolean;
735
- 'category'?: number;
736
- 'unit_of_measurement'?: number;
737
- 'stock_unit'?: number;
738
- 'purchase_unit'?: number;
739
- 'sales_unit'?: number;
740
- 'base_unit'?: number;
741
- 'consumption_unit'?: number;
851
+ 'category'?: number | null;
852
+ 'date'?: string | null;
853
+ 'unit_of_measurement'?: number | null;
854
+ 'stock_unit'?: number | null;
855
+ 'purchase_unit'?: number | null;
856
+ 'sales_unit'?: number | null;
857
+ 'base_unit'?: number | null;
858
+ 'consumption_unit'?: number | null;
742
859
  'costing_method': string;
743
- 'upc_bar_code'?: string;
744
- 'location'?: number;
745
- 'department'?: number;
746
- 'sales_price'?: number;
747
- 'sales_description'?: string;
748
- 'purchase_price'?: number;
749
- 'purchase_description'?: string;
860
+ 'upc_bar_code'?: string | null;
861
+ 'location'?: number | null;
862
+ 'department'?: number | null;
863
+ 'sales_price'?: number | null;
864
+ 'sales_description'?: string | null;
865
+ 'purchase_price'?: number | null;
866
+ 'purchase_description'?: string | null;
750
867
  'default_tax_id': number;
751
868
  'income_account_id': number;
752
869
  'asset_account_id': number;
753
870
  'cogs_account_id': number;
754
- 'reorder_point'?: number;
755
- 'default_lead_time'?: number;
756
- 'weight'?: string;
757
- 'hsn_code'?: string;
871
+ 'reorder_point'?: number | null;
872
+ 'default_lead_time'?: number | null;
873
+ 'weight'?: string | null;
874
+ 'hsn_code'?: string | null;
758
875
  'use_bins'?: boolean;
759
876
  'apply_for_prices'?: boolean;
760
877
  'apply_for_quantity'?: boolean;
761
878
  'traceability': string;
879
+ 'brand'?: number | null;
880
+ 'item_number'?: number | null;
881
+ 'is_variant'?: boolean;
882
+ 'subtype'?: 'sale' | 'purchase' | 'both' | unknown;
883
+ 'expense_account_id'?: number | null;
884
+ 'can_be_purchased'?: boolean;
885
+ 'material_type'?: string | null;
886
+ 'tube_type'?: string | null;
887
+ 'tube_od'?: number | null;
888
+ 'shape_width'?: number | null;
889
+ 'shape_height'?: number | null;
890
+ 'material_thickness'?: number | null;
891
+ 'material_length'?: number | null;
892
+ 'material_weight'?: number | null;
893
+ 'is_returnable'?: boolean;
894
+ 'self_variant'?: boolean;
895
+ 'cost'?: number | null;
896
+ 'material_costing_types'?: string | null;
897
+ 'face_width'?: number | null;
898
+ 'bending'?: number | null;
899
+ 'height'?: number | null;
900
+ 'total_width'?: number | null;
901
+ 'boards_thickness'?: number | null;
902
+ 'boards_length'?: number | null;
903
+ 'boards_weight'?: number | null;
904
+ 'steel_type'?: string | null;
905
+ 'material_unit'?: number | null;
906
+ 'steel_length'?: number | null;
907
+ 'steel_width'?: number | null;
908
+ 'steel_thickness'?: number | null;
909
+ 'steel_weight'?: number | null;
910
+ 'is_landed_cost'?: boolean;
911
+ 'spitting_method'?: 'Equal' | 'By Weight' | 'By Volume' | 'By Quantity' | 'By Current Cost' | unknown;
912
+ 'track_landed_cost'?: boolean;
913
+ 'is_rental'?: boolean;
914
+ 'rental_base_price'?: number | null;
915
+ 'rental_hour_fine'?: number | null;
916
+ 'rental_day_fine'?: number | null;
917
+ 'rental_security_time'?: number | null;
918
+ 'rental_description'?: string | null;
762
919
  'addPriceRules'?: Array<{ 'price_list_name': string; 'minimum_quantity': number; 'unit_price': number; 'start_date': string | Date; 'end_date': string | Date }>;
763
920
  'addBOM'?: { 'bom': string; 'default_bom': number; 'company_id': number; 'start_date': string | Date; 'end_date': string | Date };
764
- 'addVendorInformation'?: { 'id'?: number; 'vendor': string; 'vendor_item_name': string; 'vendor_item_code': string; 'lead_time': string; 'price': number; 'currency_id': number; 'created_at'?: string | Date; 'updated_at'?: string | Date; 'created_by'?: number; 'updated_by'?: number; 'is_deleted'?: boolean; 'deleted_at'?: string | Date; 'deleted_by'?: number };
765
- 'addReorderingRules'?: { 'company_id'?: number; 'quantity_in_hand'?: number; 'minimum_quantity'?: number; 'maximum_quantity'?: number; 'multiple_quantity'?: number; 'location_id'?: number; 'uom_id'?: number; 'vendor_id'?: number; 'reordering_rules': 'Buy' | 'Manufacture' };
921
+ 'addVendorInformation'?: { 'id'?: number | null; 'vendor': string; 'vendor_item_name': string; 'vendor_item_code': string; 'lead_time': string; 'price': number; 'currency_id': number; 'item_id'?: number | null };
922
+ 'addReorderingRules'?: { 'item_id'?: number | null; 'company_id'?: number | null; 'quantity_in_hand'?: number | null; 'minimum_quantity'?: number | null; 'maximum_quantity'?: number | null; 'multiple_quantity'?: number | null; 'location_id'?: number | null; 'uom_id'?: number | null; 'vendor_id'?: number | null };
766
923
  'addCompanies'?: Array<number>;
767
924
  'addAlternativeProductSell'?: Array<number>;
768
925
  'addAttributeValues'?: Array<number>;
@@ -891,49 +1048,89 @@ export type PutV1AssemblyItemsIdRequest = {
891
1048
  'x-token'?: string;
892
1049
  'x-timezone'?: string;
893
1050
  'id': string;
894
- 'profile_image': string;
895
- 'type': string;
896
- 'sku': string;
897
- 'name': string;
898
- 'parent_item': number;
1051
+ 'profile_image': string | null;
1052
+ 'type': string | null;
1053
+ 'sku': string | null;
1054
+ 'name': string | null;
1055
+ 'parent_item': number | null;
899
1056
  'status': boolean;
900
- 'category': number;
901
- 'unit_of_measurement': number;
902
- 'stock_unit': number;
903
- 'purchase_unit': number;
904
- 'sales_unit': number;
905
- 'base_unit': number;
906
- 'consumption_unit': number;
907
- 'costing_method': string;
908
- 'upc_bar_code': string;
909
- 'location': number;
910
- 'department': number;
911
- 'sales_price': number;
912
- 'sales_description': string;
913
- 'purchase_price': number;
914
- 'purchase_description': string;
915
- 'default_tax_id': number;
916
- 'income_account_id': number;
917
- 'asset_account_id': number;
918
- 'cogs_account_id': number;
919
- 'reorder_point': number;
920
- 'default_lead_time': number;
921
- 'weight': string;
922
- 'hsn_code': string;
1057
+ 'category': number | null;
1058
+ 'unit_of_measurement': number | null;
1059
+ 'stock_unit': number | null;
1060
+ 'purchase_unit': number | null;
1061
+ 'sales_unit': number | null;
1062
+ 'base_unit': number | null;
1063
+ 'consumption_unit': number | null;
1064
+ 'costing_method': string | null;
1065
+ 'upc_bar_code': string | null;
1066
+ 'location': number | null;
1067
+ 'department': number | null;
1068
+ 'sales_price': number | null;
1069
+ 'sales_description': string | null;
1070
+ 'purchase_price': number | null;
1071
+ 'purchase_description': string | null;
1072
+ 'default_tax_id': number | null;
1073
+ 'income_account_id': number | null;
1074
+ 'asset_account_id': number | null;
1075
+ 'cogs_account_id': number | null;
1076
+ 'reorder_point': number | null;
1077
+ 'default_lead_time': number | null;
1078
+ 'weight': string | null;
1079
+ 'hsn_code': string | null;
923
1080
  'use_bins': boolean;
924
1081
  'apply_for_prices': boolean;
925
1082
  'apply_for_quantity': boolean;
926
- 'traceability': string;
1083
+ 'traceability': string | null;
1084
+ 'brand': number | null;
1085
+ 'item_number': number | null;
1086
+ 'is_variant': boolean;
1087
+ 'subtype': 'sale' | 'purchase' | 'both' | unknown;
1088
+ 'expense_account_id': number | null;
1089
+ 'can_be_purchased': boolean;
1090
+ 'material_type': string | null;
1091
+ 'tube_type': string | null;
1092
+ 'tube_od': number | null;
1093
+ 'shape_width': number | null;
1094
+ 'shape_height': number | null;
1095
+ 'material_thickness': number | null;
1096
+ 'material_length': number | null;
1097
+ 'material_weight': number | null;
1098
+ 'is_returnable': boolean;
1099
+ 'self_variant': boolean;
1100
+ 'cost': number | null;
1101
+ 'material_costing_types': string | null;
1102
+ 'face_width': number | null;
1103
+ 'bending': number | null;
1104
+ 'height': number | null;
1105
+ 'total_width': number | null;
1106
+ 'boards_thickness': number | null;
1107
+ 'boards_length': number | null;
1108
+ 'boards_weight': number | null;
1109
+ 'steel_type': string | null;
1110
+ 'material_unit': number | null;
1111
+ 'steel_length': number | null;
1112
+ 'steel_width': number | null;
1113
+ 'steel_thickness': number | null;
1114
+ 'steel_weight': number | null;
1115
+ 'is_landed_cost': boolean;
1116
+ 'spitting_method': 'Equal' | 'By Weight' | 'By Volume' | 'By Quantity' | 'By Current Cost' | unknown;
1117
+ 'track_landed_cost': boolean;
1118
+ 'is_rental': boolean;
1119
+ 'rental_base_price': number | null;
1120
+ 'rental_hour_fine': number | null;
1121
+ 'rental_day_fine': number | null;
1122
+ 'rental_security_time': number | null;
1123
+ 'rental_description': string | null;
927
1124
  'addPriceRules': Array<{ 'price_list_name': string; 'minimum_quantity': number; 'unit_price': number; 'start_date': string | Date; 'end_date': string | Date }>;
928
1125
  'addBOM': Array<{ 'bom': string; 'default_bom': number; 'company_id': number; 'start_date': string | Date; 'end_date': string | Date }>;
929
- 'addVendorInformation': Array<{ 'id'?: number; 'vendor': string; 'vendor_item_name': string; 'vendor_item_code': string; 'lead_time': string; 'price': number; 'currency_id': number; 'created_at'?: string | Date; 'updated_at'?: string | Date; 'created_by'?: number; 'updated_by'?: number; 'is_deleted'?: boolean; 'deleted_at'?: string | Date; 'deleted_by'?: number }>;
930
- 'addReorderingRules': Array<{ 'item_id'?: number; 'quantity_in_hand'?: number; 'minimum_quantity'?: number; 'maximum_quantity'?: number; 'location_id'?: number }>;
1126
+ 'addVendorInformation': Array<{ 'id'?: number | null; 'vendor': string; 'vendor_item_name': string; 'vendor_item_code': string; 'lead_time': string; 'price': number; 'currency_id': number }>;
1127
+ 'addReorderingRules': Array<{ 'item_id'?: number | null; 'quantity_in_hand'?: number | null; 'minimum_quantity'?: number | null; 'maximum_quantity'?: number | null; 'location_id'?: number | null }>;
931
1128
  'addCompanies': Array<number>;
932
1129
  'addAlternativeProductSell': Array<number>;
933
- 'updatePriceRules': Array<{ 'id': number; 'company_id'?: number; 'quantity_in_hand'?: number; 'minimum_quantity'?: number; 'maximum_quantity'?: number; 'multiple_quantity'?: number; 'location_id'?: number; 'uom_id'?: number; 'vendor_id'?: number }>;
934
- 'updateBOM': Array<{ 'id': number; 'bom'?: string; 'default_bom'?: number; 'company_id'?: number; 'start_date'?: string | Date; 'end_date'?: string | Date }>;
935
- 'updateReorderingRules': Array<{ 'id': number; 'company_id'?: number; 'quantity_in_hand'?: number; 'minimum_quantity'?: number; 'maximum_quantity'?: number; 'multiple_quantity'?: number; 'location_id'?: number; 'uom_id'?: number; 'vendor_id'?: number }>;
936
- 'updateVendorInformation': Array<{ 'id': number; 'vendor'?: string; 'vendor_item_name'?: string; 'vendor_item_code'?: string; 'lead_time'?: string; 'price'?: number; 'currency_id'?: number; 'created_at'?: string | Date; 'updated_at'?: string | Date; 'created_by'?: number; 'updated_by'?: number; 'is_deleted'?: boolean; 'deleted_at'?: string | Date; 'deleted_by'?: number }>;
1130
+ 'updatePriceRules': Array<{ 'id': number; 'company_id'?: number | null; 'quantity_in_hand'?: number | null; 'minimum_quantity'?: number | null; 'maximum_quantity'?: number | null; 'multiple_quantity'?: number | null; 'location_id'?: number | null; 'uom_id'?: number | null; 'vendor_id'?: number | null }>;
1131
+ 'updateBOM': Array<{ 'id': number; 'bom'?: string | null; 'default_bom'?: number | null; 'company_id'?: number | null; 'start_date'?: string | Date | null; 'end_date'?: string | Date | null }>;
1132
+ 'updateReorderingRules': Array<{ 'id': number; 'company_id'?: number | null; 'quantity_in_hand'?: number | null; 'minimum_quantity'?: number | null; 'maximum_quantity'?: number | null; 'multiple_quantity'?: number | null; 'location_id'?: number | null; 'uom_id'?: number | null; 'vendor_id'?: number | null }>;
1133
+ 'updateVendorInformation': Array<{ 'id': number; 'vendor'?: string | null; 'vendor_item_name'?: string | null; 'vendor_item_code'?: string | null; 'lead_time'?: string | null; 'price'?: number | null; 'currency_id'?: number | null }>;
937
1134
  'removePriceRules': Array<number>;
938
1135
  'removeBOM': Array<number>;
939
1136
  'removeCompanies': Array<number>;
@@ -1054,7 +1251,7 @@ export type PostV1AttributesRequest = {
1054
1251
  'x-timezone'?: string;
1055
1252
  'attribute_name': string;
1056
1253
  'field_type': string;
1057
- 'variants_creation_mode'?: string;
1254
+ 'variants_creation_mode'?: string | null;
1058
1255
  'status'?: boolean;
1059
1256
  'attribute_values'?: Array<string>;
1060
1257
  }
@@ -1176,9 +1373,9 @@ export type PutV1AttributesIdRequest = {
1176
1373
  'id': string;
1177
1374
  'x-token'?: string;
1178
1375
  'x-timezone'?: string;
1179
- 'attribute_name': string;
1180
- 'field_type': string;
1181
- 'variants_creation_mode': string;
1376
+ 'attribute_name': string | null;
1377
+ 'field_type': string | null;
1378
+ 'variants_creation_mode': string | null;
1182
1379
  'status': boolean;
1183
1380
  'addedAttributes': Array<string>;
1184
1381
  'removedAttributes': Array<number>;
@@ -1300,6 +1497,19 @@ export type GetV1AttributesGenerateExcelResponses =
1300
1497
  export type PostV1DiscountItemsRequest = {
1301
1498
  'x-token'?: string;
1302
1499
  'x-timezone'?: string;
1500
+ 'sku_number': string;
1501
+ 'name': string;
1502
+ 'discount_type'?: 'sales' | 'purchase' | unknown;
1503
+ 'item_name'?: string | null;
1504
+ 'account_id'?: number | null;
1505
+ 'tax_account_id'?: number | null;
1506
+ 'discount_category'?: 'rate' | 'amount' | unknown;
1507
+ 'discount_rate_amount'?: number | null;
1508
+ 'company_id'?: number | null;
1509
+ 'description'?: string | null;
1510
+ 'status'?: boolean;
1511
+ 'date'?: string | Date | null;
1512
+ 'addCompanies'?: Array<number>;
1303
1513
  }
1304
1514
 
1305
1515
  export type PostV1DiscountItemsResponseOK = {
@@ -1419,6 +1629,20 @@ export type PutV1DiscountItemsIdRequest = {
1419
1629
  'id': string;
1420
1630
  'x-token'?: string;
1421
1631
  'x-timezone'?: string;
1632
+ 'sku_number': string | null;
1633
+ 'name': string | null;
1634
+ 'discount_type': 'sales' | 'purchase' | unknown;
1635
+ 'item_name': string | null;
1636
+ 'account_id': number | null;
1637
+ 'tax_account_id': number | null;
1638
+ 'discount_category': 'rate' | 'amount' | unknown;
1639
+ 'discount_rate_amount': number | null;
1640
+ 'company_id': number | null;
1641
+ 'description': string | null;
1642
+ 'status': boolean;
1643
+ 'date': string | Date | null;
1644
+ 'addCompanies': Array<number>;
1645
+ 'removeCompanies': Array<number>;
1422
1646
  }
1423
1647
 
1424
1648
  export type PutV1DiscountItemsIdResponseOK = {
@@ -1538,17 +1762,17 @@ export type PostV1WarehouseLocationRequest = {
1538
1762
  'x-token'?: string;
1539
1763
  'x-timezone'?: string;
1540
1764
  'name': string;
1541
- 'short_name'?: string;
1542
- 'address1'?: string;
1543
- 'address2'?: string;
1544
- 'address3'?: string;
1545
- 'zipcode'?: string;
1546
- 'country'?: string;
1547
- 'state'?: string;
1548
- 'city'?: string;
1765
+ 'short_name'?: string | null;
1766
+ 'address1'?: string | null;
1767
+ 'address2'?: string | null;
1768
+ 'address3'?: string | null;
1769
+ 'zipcode'?: string | null;
1770
+ 'country'?: string | null;
1771
+ 'state'?: string | null;
1772
+ 'city'?: string | null;
1549
1773
  'status'?: boolean;
1550
- 'summary'?: string;
1551
- 'parent_location_id'?: number;
1774
+ 'summary'?: string | null;
1775
+ 'parent_location_id'?: number | null;
1552
1776
  'company_id': number;
1553
1777
  'inventory_available'?: boolean;
1554
1778
  }
@@ -1670,19 +1894,19 @@ export type PutV1WarehouseLocationIdRequest = {
1670
1894
  'id': string;
1671
1895
  'x-token'?: string;
1672
1896
  'x-timezone'?: string;
1673
- 'name': string;
1674
- 'short_name': string;
1675
- 'address1': string;
1676
- 'address2': string;
1677
- 'address3': string;
1678
- 'zipcode': string;
1679
- 'country': string;
1680
- 'state': string;
1681
- 'city': string;
1897
+ 'name': string | null;
1898
+ 'short_name': string | null;
1899
+ 'address1': string | null;
1900
+ 'address2': string | null;
1901
+ 'address3': string | null;
1902
+ 'zipcode': string | null;
1903
+ 'country': string | null;
1904
+ 'state': string | null;
1905
+ 'city': string | null;
1682
1906
  'status': boolean;
1683
- 'summary': string;
1684
- 'parent_location_id': number;
1685
- 'company_id': number;
1907
+ 'summary': string | null;
1908
+ 'parent_location_id': number | null;
1909
+ 'company_id': number | null;
1686
1910
  'inventory_available': boolean;
1687
1911
  }
1688
1912
 
@@ -2102,7 +2326,7 @@ export type PostV1BinRequest = {
2102
2326
  'x-timezone'?: string;
2103
2327
  'name': string;
2104
2328
  'location_id': number;
2105
- 'bin_type'?: string;
2329
+ 'bin_type'?: string | null;
2106
2330
  'company_id': number;
2107
2331
  'status'?: boolean;
2108
2332
  }
@@ -2226,7 +2450,7 @@ export type PutV1BinIdRequest = {
2226
2450
  'x-timezone'?: string;
2227
2451
  'name': string;
2228
2452
  'location_id': number;
2229
- 'bin_type'?: string;
2453
+ 'bin_type'?: string | null;
2230
2454
  'company_id': number;
2231
2455
  'status'?: boolean;
2232
2456
  }
@@ -2344,17 +2568,17 @@ export type GetV1BinGenerateExcelResponses =
2344
2568
  | GetV1BinGenerateExcelResponseNotFound
2345
2569
  | GetV1BinGenerateExcelResponseInternalServerError
2346
2570
 
2347
- export type PostV1UomRequest = {
2571
+ export type PostV1UomTemplatesRequest = {
2348
2572
  'x-token'?: string;
2349
2573
  'x-timezone'?: string;
2350
2574
  'name': string;
2351
2575
  'symbol': string;
2352
- 'description'?: string;
2576
+ 'description'?: string | null;
2353
2577
  'is_active'?: boolean;
2354
2578
  'uom'?: Array<{ 'uom_name': string; 'symbol': string; 'is_base_unit': boolean; 'conversation_factor': number }>;
2355
2579
  }
2356
2580
 
2357
- export type PostV1UomResponseOK = {
2581
+ export type PostV1UomTemplatesResponseOK = {
2358
2582
  'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2359
2583
  'success': boolean;
2360
2584
  'status_code': number;
@@ -2362,29 +2586,72 @@ export type PostV1UomResponseOK = {
2362
2586
  'data': unknown;
2363
2587
  'pagination': unknown;
2364
2588
  }
2365
- export type PostV1UomResponseBadRequest = {
2589
+ export type PostV1UomTemplatesResponseBadRequest = {
2366
2590
  'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2367
2591
  'success': boolean;
2368
2592
  'status_code': number;
2369
2593
  'message': string;
2370
2594
  }
2371
- export type PostV1UomResponseNotFound = {
2595
+ export type PostV1UomTemplatesResponseNotFound = {
2372
2596
  'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2373
2597
  'success': boolean;
2374
2598
  'status_code': number;
2375
2599
  'message': string;
2376
2600
  }
2377
- export type PostV1UomResponseInternalServerError = {
2601
+ export type PostV1UomTemplatesResponseInternalServerError = {
2378
2602
  'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2379
2603
  'success': boolean;
2380
2604
  'status_code': number;
2381
2605
  'message': string;
2382
2606
  }
2383
- export type PostV1UomResponses =
2384
- PostV1UomResponseOK
2385
- | PostV1UomResponseBadRequest
2386
- | PostV1UomResponseNotFound
2387
- | PostV1UomResponseInternalServerError
2607
+ export type PostV1UomTemplatesResponses =
2608
+ PostV1UomTemplatesResponseOK
2609
+ | PostV1UomTemplatesResponseBadRequest
2610
+ | PostV1UomTemplatesResponseNotFound
2611
+ | PostV1UomTemplatesResponseInternalServerError
2612
+
2613
+ export type GetV1UomTemplatesRequest = {
2614
+ 'skip'?: number;
2615
+ 'limit'?: number;
2616
+ 'order'?: string;
2617
+ 'filters'?: string;
2618
+ 'search'?: string;
2619
+ 'select'?: string;
2620
+ 'x-token'?: string;
2621
+ 'x-timezone'?: string;
2622
+ }
2623
+
2624
+ export type GetV1UomTemplatesResponseOK = {
2625
+ 'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2626
+ 'success': boolean;
2627
+ 'status_code': number;
2628
+ 'message': string;
2629
+ 'data': unknown;
2630
+ 'pagination': unknown;
2631
+ }
2632
+ export type GetV1UomTemplatesResponseBadRequest = {
2633
+ 'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2634
+ 'success': boolean;
2635
+ 'status_code': number;
2636
+ 'message': string;
2637
+ }
2638
+ export type GetV1UomTemplatesResponseNotFound = {
2639
+ 'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2640
+ 'success': boolean;
2641
+ 'status_code': number;
2642
+ 'message': string;
2643
+ }
2644
+ export type GetV1UomTemplatesResponseInternalServerError = {
2645
+ 'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2646
+ 'success': boolean;
2647
+ 'status_code': number;
2648
+ 'message': string;
2649
+ }
2650
+ export type GetV1UomTemplatesResponses =
2651
+ GetV1UomTemplatesResponseOK
2652
+ | GetV1UomTemplatesResponseBadRequest
2653
+ | GetV1UomTemplatesResponseNotFound
2654
+ | GetV1UomTemplatesResponseInternalServerError
2388
2655
 
2389
2656
  export type GetV1UomRequest = {
2390
2657
  'skip'?: number;
@@ -2429,13 +2696,13 @@ export type GetV1UomResponses =
2429
2696
  | GetV1UomResponseNotFound
2430
2697
  | GetV1UomResponseInternalServerError
2431
2698
 
2432
- export type GetV1UomIdRequest = {
2699
+ export type GetV1UomTemplatesIdRequest = {
2433
2700
  'id': string;
2434
2701
  'x-token'?: string;
2435
2702
  'x-timezone'?: string;
2436
2703
  }
2437
2704
 
2438
- export type GetV1UomIdResponseOK = {
2705
+ export type GetV1UomTemplatesIdResponseOK = {
2439
2706
  'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2440
2707
  'success': boolean;
2441
2708
  'status_code': number;
@@ -2443,42 +2710,42 @@ export type GetV1UomIdResponseOK = {
2443
2710
  'data': unknown;
2444
2711
  'pagination': unknown;
2445
2712
  }
2446
- export type GetV1UomIdResponseBadRequest = {
2713
+ export type GetV1UomTemplatesIdResponseBadRequest = {
2447
2714
  'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2448
2715
  'success': boolean;
2449
2716
  'status_code': number;
2450
2717
  'message': string;
2451
2718
  }
2452
- export type GetV1UomIdResponseNotFound = {
2719
+ export type GetV1UomTemplatesIdResponseNotFound = {
2453
2720
  'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2454
2721
  'success': boolean;
2455
2722
  'status_code': number;
2456
2723
  'message': string;
2457
2724
  }
2458
- export type GetV1UomIdResponseInternalServerError = {
2725
+ export type GetV1UomTemplatesIdResponseInternalServerError = {
2459
2726
  'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2460
2727
  'success': boolean;
2461
2728
  'status_code': number;
2462
2729
  'message': string;
2463
2730
  }
2464
- export type GetV1UomIdResponses =
2465
- GetV1UomIdResponseOK
2466
- | GetV1UomIdResponseBadRequest
2467
- | GetV1UomIdResponseNotFound
2468
- | GetV1UomIdResponseInternalServerError
2731
+ export type GetV1UomTemplatesIdResponses =
2732
+ GetV1UomTemplatesIdResponseOK
2733
+ | GetV1UomTemplatesIdResponseBadRequest
2734
+ | GetV1UomTemplatesIdResponseNotFound
2735
+ | GetV1UomTemplatesIdResponseInternalServerError
2469
2736
 
2470
- export type PutV1UomIdRequest = {
2737
+ export type PutV1UomTemplatesIdRequest = {
2471
2738
  'id': string;
2472
2739
  'x-token'?: string;
2473
2740
  'x-timezone'?: string;
2474
2741
  'name': string;
2475
2742
  'symbol': string;
2476
- 'description'?: string;
2743
+ 'description'?: string | null;
2477
2744
  'is_active'?: boolean;
2478
2745
  'uom'?: Array<{ 'uom_name': string; 'symbol': string; 'is_base_unit': boolean; 'conversation_factor': number }>;
2479
2746
  }
2480
2747
 
2481
- export type PutV1UomIdResponseOK = {
2748
+ export type PutV1UomTemplatesIdResponseOK = {
2482
2749
  'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2483
2750
  'success': boolean;
2484
2751
  'status_code': number;
@@ -2486,37 +2753,37 @@ export type PutV1UomIdResponseOK = {
2486
2753
  'data': unknown;
2487
2754
  'pagination': unknown;
2488
2755
  }
2489
- export type PutV1UomIdResponseBadRequest = {
2756
+ export type PutV1UomTemplatesIdResponseBadRequest = {
2490
2757
  'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2491
2758
  'success': boolean;
2492
2759
  'status_code': number;
2493
2760
  'message': string;
2494
2761
  }
2495
- export type PutV1UomIdResponseNotFound = {
2762
+ export type PutV1UomTemplatesIdResponseNotFound = {
2496
2763
  'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2497
2764
  'success': boolean;
2498
2765
  'status_code': number;
2499
2766
  'message': string;
2500
2767
  }
2501
- export type PutV1UomIdResponseInternalServerError = {
2768
+ export type PutV1UomTemplatesIdResponseInternalServerError = {
2502
2769
  'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2503
2770
  'success': boolean;
2504
2771
  'status_code': number;
2505
2772
  'message': string;
2506
2773
  }
2507
- export type PutV1UomIdResponses =
2508
- PutV1UomIdResponseOK
2509
- | PutV1UomIdResponseBadRequest
2510
- | PutV1UomIdResponseNotFound
2511
- | PutV1UomIdResponseInternalServerError
2774
+ export type PutV1UomTemplatesIdResponses =
2775
+ PutV1UomTemplatesIdResponseOK
2776
+ | PutV1UomTemplatesIdResponseBadRequest
2777
+ | PutV1UomTemplatesIdResponseNotFound
2778
+ | PutV1UomTemplatesIdResponseInternalServerError
2512
2779
 
2513
- export type DeleteV1UomIdRequest = {
2780
+ export type DeleteV1UomTemplatesIdRequest = {
2514
2781
  'id': string;
2515
2782
  'x-token'?: string;
2516
2783
  'x-timezone'?: string;
2517
2784
  }
2518
2785
 
2519
- export type DeleteV1UomIdResponseOK = {
2786
+ export type DeleteV1UomTemplatesIdResponseOK = {
2520
2787
  'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2521
2788
  'success': boolean;
2522
2789
  'status_code': number;
@@ -2524,37 +2791,37 @@ export type DeleteV1UomIdResponseOK = {
2524
2791
  'data': unknown;
2525
2792
  'pagination': unknown;
2526
2793
  }
2527
- export type DeleteV1UomIdResponseBadRequest = {
2794
+ export type DeleteV1UomTemplatesIdResponseBadRequest = {
2528
2795
  'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2529
2796
  'success': boolean;
2530
2797
  'status_code': number;
2531
2798
  'message': string;
2532
2799
  }
2533
- export type DeleteV1UomIdResponseNotFound = {
2800
+ export type DeleteV1UomTemplatesIdResponseNotFound = {
2534
2801
  'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2535
2802
  'success': boolean;
2536
2803
  'status_code': number;
2537
2804
  'message': string;
2538
2805
  }
2539
- export type DeleteV1UomIdResponseInternalServerError = {
2806
+ export type DeleteV1UomTemplatesIdResponseInternalServerError = {
2540
2807
  'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2541
2808
  'success': boolean;
2542
2809
  'status_code': number;
2543
2810
  'message': string;
2544
2811
  }
2545
- export type DeleteV1UomIdResponses =
2546
- DeleteV1UomIdResponseOK
2547
- | DeleteV1UomIdResponseBadRequest
2548
- | DeleteV1UomIdResponseNotFound
2549
- | DeleteV1UomIdResponseInternalServerError
2812
+ export type DeleteV1UomTemplatesIdResponses =
2813
+ DeleteV1UomTemplatesIdResponseOK
2814
+ | DeleteV1UomTemplatesIdResponseBadRequest
2815
+ | DeleteV1UomTemplatesIdResponseNotFound
2816
+ | DeleteV1UomTemplatesIdResponseInternalServerError
2550
2817
 
2551
- export type DeleteV1UomUomEntryIdRequest = {
2818
+ export type DeleteV1UomUnitsIdRequest = {
2552
2819
  'id': string;
2553
2820
  'x-token'?: string;
2554
2821
  'x-timezone'?: string;
2555
2822
  }
2556
2823
 
2557
- export type DeleteV1UomUomEntryIdResponseOK = {
2824
+ export type DeleteV1UomUnitsIdResponseOK = {
2558
2825
  'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2559
2826
  'success': boolean;
2560
2827
  'status_code': number;
@@ -2562,29 +2829,29 @@ export type DeleteV1UomUomEntryIdResponseOK = {
2562
2829
  'data': unknown;
2563
2830
  'pagination': unknown;
2564
2831
  }
2565
- export type DeleteV1UomUomEntryIdResponseBadRequest = {
2832
+ export type DeleteV1UomUnitsIdResponseBadRequest = {
2566
2833
  'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2567
2834
  'success': boolean;
2568
2835
  'status_code': number;
2569
2836
  'message': string;
2570
2837
  }
2571
- export type DeleteV1UomUomEntryIdResponseNotFound = {
2838
+ export type DeleteV1UomUnitsIdResponseNotFound = {
2572
2839
  'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2573
2840
  'success': boolean;
2574
2841
  'status_code': number;
2575
2842
  'message': string;
2576
2843
  }
2577
- export type DeleteV1UomUomEntryIdResponseInternalServerError = {
2844
+ export type DeleteV1UomUnitsIdResponseInternalServerError = {
2578
2845
  'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2579
2846
  'success': boolean;
2580
2847
  'status_code': number;
2581
2848
  'message': string;
2582
2849
  }
2583
- export type DeleteV1UomUomEntryIdResponses =
2584
- DeleteV1UomUomEntryIdResponseOK
2585
- | DeleteV1UomUomEntryIdResponseBadRequest
2586
- | DeleteV1UomUomEntryIdResponseNotFound
2587
- | DeleteV1UomUomEntryIdResponseInternalServerError
2850
+ export type DeleteV1UomUnitsIdResponses =
2851
+ DeleteV1UomUnitsIdResponseOK
2852
+ | DeleteV1UomUnitsIdResponseBadRequest
2853
+ | DeleteV1UomUnitsIdResponseNotFound
2854
+ | DeleteV1UomUnitsIdResponseInternalServerError
2588
2855
 
2589
2856
  export type GetV1UomGenerateExcelRequest = {
2590
2857
  'skip'?: number;
@@ -2629,6 +2896,44 @@ export type GetV1UomGenerateExcelResponses =
2629
2896
  | GetV1UomGenerateExcelResponseNotFound
2630
2897
  | GetV1UomGenerateExcelResponseInternalServerError
2631
2898
 
2899
+ export type GetV1UomUnitsIdCheckConversionFactorRequest = {
2900
+ 'id': string;
2901
+ 'x-token'?: string;
2902
+ 'x-timezone'?: string;
2903
+ }
2904
+
2905
+ export type GetV1UomUnitsIdCheckConversionFactorResponseOK = {
2906
+ 'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2907
+ 'success': boolean;
2908
+ 'status_code': number;
2909
+ 'message': string;
2910
+ 'data': unknown;
2911
+ 'pagination': unknown;
2912
+ }
2913
+ export type GetV1UomUnitsIdCheckConversionFactorResponseBadRequest = {
2914
+ 'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2915
+ 'success': boolean;
2916
+ 'status_code': number;
2917
+ 'message': string;
2918
+ }
2919
+ export type GetV1UomUnitsIdCheckConversionFactorResponseNotFound = {
2920
+ 'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2921
+ 'success': boolean;
2922
+ 'status_code': number;
2923
+ 'message': string;
2924
+ }
2925
+ export type GetV1UomUnitsIdCheckConversionFactorResponseInternalServerError = {
2926
+ 'api': { 'author'?: string; 'version'?: string; 'endpoint'?: string; 'module'?: string };
2927
+ 'success': boolean;
2928
+ 'status_code': number;
2929
+ 'message': string;
2930
+ }
2931
+ export type GetV1UomUnitsIdCheckConversionFactorResponses =
2932
+ GetV1UomUnitsIdCheckConversionFactorResponseOK
2933
+ | GetV1UomUnitsIdCheckConversionFactorResponseBadRequest
2934
+ | GetV1UomUnitsIdCheckConversionFactorResponseNotFound
2935
+ | GetV1UomUnitsIdCheckConversionFactorResponseInternalServerError
2936
+
2632
2937
  export type PostV1CategoryItemsRequest = {
2633
2938
  'x-token'?: string;
2634
2939
  'x-timezone'?: string;
@@ -2869,23 +3174,80 @@ export type GetV1CategoryItemsGenerateExcelResponses =
2869
3174
  export type PostV1PackageItemsRequest = {
2870
3175
  'x-token'?: string;
2871
3176
  'x-timezone'?: string;
2872
- 'type'?: string;
3177
+ 'type'?: string | null;
2873
3178
  'sku': string;
2874
3179
  'item_number': number;
2875
3180
  'name': string;
2876
- 'parent_item'?: number;
3181
+ 'parent_item'?: number | null;
2877
3182
  'status'?: boolean;
2878
3183
  'category': number;
2879
- 'brand'?: number;
2880
- 'costing_method'?: 'FIFO' | 'LIFO' | 'Weighted Average Cost';
2881
- 'upc_bar_code'?: string;
2882
- 'location'?: number;
2883
- 'department'?: number;
2884
- 'sales_price'?: number;
2885
- 'sales_description'?: string;
2886
- 'default_tax_id'?: number;
2887
- 'income_account_id'?: number;
2888
- 'addPriceRules'?: Array<{ 'price_list_name': string; 'minimum_quantity': number; 'unit_price': number; 'company_id': number; 'start_date': string | Date; 'end_date': string | Date; 'item_id'?: number }>;
3184
+ 'brand'?: number | null;
3185
+ 'costing_method'?: 'FIFO' | 'LIFO' | 'Weighted Average Cost' | unknown;
3186
+ 'upc_bar_code'?: string | null;
3187
+ 'profile_image'?: string | null;
3188
+ 'unit_of_measurement'?: number | null;
3189
+ 'stock_unit'?: number | null;
3190
+ 'purchase_unit'?: number | null;
3191
+ 'sales_unit'?: number | null;
3192
+ 'base_unit'?: number | null;
3193
+ 'consumption_unit'?: number | null;
3194
+ 'purchase_price'?: number | null;
3195
+ 'purchase_description'?: string | null;
3196
+ 'asset_account_id'?: number | null;
3197
+ 'cogs_account_id'?: number | null;
3198
+ 'reorder_point'?: number | null;
3199
+ 'default_lead_time'?: number | null;
3200
+ 'weight'?: string | null;
3201
+ 'hsn_code'?: string | null;
3202
+ 'use_bins'?: boolean;
3203
+ 'apply_for_prices'?: boolean;
3204
+ 'apply_for_quantity'?: boolean;
3205
+ 'traceability'?: string | null;
3206
+ 'is_variant'?: boolean;
3207
+ 'subtype'?: 'sale' | 'purchase' | 'both' | unknown;
3208
+ 'expense_account_id'?: number | null;
3209
+ 'can_be_purchased'?: boolean;
3210
+ 'material_type'?: string | null;
3211
+ 'tube_type'?: string | null;
3212
+ 'tube_od'?: number | null;
3213
+ 'shape_width'?: number | null;
3214
+ 'shape_height'?: number | null;
3215
+ 'material_thickness'?: number | null;
3216
+ 'material_length'?: number | null;
3217
+ 'material_weight'?: number | null;
3218
+ 'is_returnable'?: boolean;
3219
+ 'self_variant'?: boolean;
3220
+ 'cost'?: number | null;
3221
+ 'material_costing_types'?: string | null;
3222
+ 'face_width'?: number | null;
3223
+ 'bending'?: number | null;
3224
+ 'height'?: number | null;
3225
+ 'total_width'?: number | null;
3226
+ 'boards_thickness'?: number | null;
3227
+ 'boards_length'?: number | null;
3228
+ 'boards_weight'?: number | null;
3229
+ 'steel_type'?: string | null;
3230
+ 'material_unit'?: number | null;
3231
+ 'steel_length'?: number | null;
3232
+ 'steel_width'?: number | null;
3233
+ 'steel_thickness'?: number | null;
3234
+ 'steel_weight'?: number | null;
3235
+ 'is_landed_cost'?: boolean;
3236
+ 'spitting_method'?: 'Equal' | 'By Weight' | 'By Volume' | 'By Quantity' | 'By Current Cost' | unknown;
3237
+ 'track_landed_cost'?: boolean;
3238
+ 'is_rental'?: boolean;
3239
+ 'rental_base_price'?: number | null;
3240
+ 'rental_hour_fine'?: number | null;
3241
+ 'rental_day_fine'?: number | null;
3242
+ 'rental_security_time'?: number | null;
3243
+ 'rental_description'?: string | null;
3244
+ 'location'?: number | null;
3245
+ 'department'?: number | null;
3246
+ 'sales_price'?: number | null;
3247
+ 'sales_description'?: string | null;
3248
+ 'default_tax_id'?: number | null;
3249
+ 'income_account_id'?: number | null;
3250
+ 'addPriceRules'?: Array<{ 'price_list_name': string; 'minimum_quantity': number; 'unit_price': number; 'company_id': number; 'start_date': string | Date; 'end_date': string | Date; 'item_id'?: number | null }>;
2889
3251
  'addItemComponent'?: Array<{ 'component_id': number; 'quantity': string; 'uom': number; 'unit_price': number }>;
2890
3252
  'addCompanies'?: Array<number>;
2891
3253
  'addAlternativeProductSell'?: Array<number>;
@@ -3014,28 +3376,85 @@ export type PutV1PackageItemsIdRequest = {
3014
3376
  'x-token'?: string;
3015
3377
  'x-timezone'?: string;
3016
3378
  'id': string;
3017
- 'type': string;
3018
- 'sku': string;
3019
- 'item_number': number;
3020
- 'name': string;
3021
- 'parent_item': number;
3379
+ 'type': string | null;
3380
+ 'sku': string | null;
3381
+ 'item_number': number | null;
3382
+ 'name': string | null;
3383
+ 'parent_item': number | null;
3022
3384
  'status': boolean;
3023
- 'category': number;
3024
- 'brand': number;
3025
- 'costing_method': 'FIFO' | 'LIFO' | 'Weighted Average Cost';
3026
- 'upc_bar_code': string;
3027
- 'location': number;
3028
- 'department': number;
3029
- 'sales_price': number;
3030
- 'sales_description': string;
3031
- 'default_tax_id': number;
3032
- 'income_account_id': number;
3033
- 'addPriceRules': Array<{ 'price_list_name': string; 'minimum_quantity': number; 'unit_price': number; 'company_id': number; 'start_date': string | Date; 'end_date': string | Date; 'item_id'?: number }>;
3385
+ 'category': number | null;
3386
+ 'brand': number | null;
3387
+ 'costing_method': 'FIFO' | 'LIFO' | 'Weighted Average Cost' | unknown;
3388
+ 'upc_bar_code': string | null;
3389
+ 'location': number | null;
3390
+ 'department': number | null;
3391
+ 'sales_price': number | null;
3392
+ 'sales_description': string | null;
3393
+ 'default_tax_id': number | null;
3394
+ 'income_account_id': number | null;
3395
+ 'profile_image': string | null;
3396
+ 'unit_of_measurement': number | null;
3397
+ 'stock_unit': number | null;
3398
+ 'purchase_unit': number | null;
3399
+ 'sales_unit': number | null;
3400
+ 'base_unit': number | null;
3401
+ 'consumption_unit': number | null;
3402
+ 'purchase_price': number | null;
3403
+ 'purchase_description': string | null;
3404
+ 'asset_account_id': number | null;
3405
+ 'cogs_account_id': number | null;
3406
+ 'reorder_point': number | null;
3407
+ 'default_lead_time': number | null;
3408
+ 'weight': string | null;
3409
+ 'hsn_code': string | null;
3410
+ 'use_bins': boolean;
3411
+ 'apply_for_prices': boolean;
3412
+ 'apply_for_quantity': boolean;
3413
+ 'traceability': string | null;
3414
+ 'is_variant': boolean;
3415
+ 'subtype': 'sale' | 'purchase' | 'both' | unknown;
3416
+ 'expense_account_id': number | null;
3417
+ 'can_be_purchased': boolean;
3418
+ 'material_type': string | null;
3419
+ 'tube_type': string | null;
3420
+ 'tube_od': number | null;
3421
+ 'shape_width': number | null;
3422
+ 'shape_height': number | null;
3423
+ 'material_thickness': number | null;
3424
+ 'material_length': number | null;
3425
+ 'material_weight': number | null;
3426
+ 'is_returnable': boolean;
3427
+ 'self_variant': boolean;
3428
+ 'cost': number | null;
3429
+ 'material_costing_types': string | null;
3430
+ 'face_width': number | null;
3431
+ 'bending': number | null;
3432
+ 'height': number | null;
3433
+ 'total_width': number | null;
3434
+ 'boards_thickness': number | null;
3435
+ 'boards_length': number | null;
3436
+ 'boards_weight': number | null;
3437
+ 'steel_type': string | null;
3438
+ 'material_unit': number | null;
3439
+ 'steel_length': number | null;
3440
+ 'steel_width': number | null;
3441
+ 'steel_thickness': number | null;
3442
+ 'steel_weight': number | null;
3443
+ 'is_landed_cost': boolean;
3444
+ 'spitting_method': 'Equal' | 'By Weight' | 'By Volume' | 'By Quantity' | 'By Current Cost' | unknown;
3445
+ 'track_landed_cost': boolean;
3446
+ 'is_rental': boolean;
3447
+ 'rental_base_price': number | null;
3448
+ 'rental_hour_fine': number | null;
3449
+ 'rental_day_fine': number | null;
3450
+ 'rental_security_time': number | null;
3451
+ 'rental_description': string | null;
3452
+ 'addPriceRules': Array<{ 'price_list_name': string; 'minimum_quantity': number; 'unit_price': number; 'company_id': number; 'start_date': string | Date; 'end_date': string | Date; 'item_id'?: number | null }>;
3034
3453
  'addItemComponent': Array<{ 'component_id': number; 'quantity': string; 'uom': number; 'unit_price': number }>;
3035
3454
  'addCompanies': Array<number>;
3036
3455
  'addAlternativeProductSell': Array<number>;
3037
- 'updatePriceRules': Array<{ 'id': number; 'price_list_name'?: string; 'minimum_quantity'?: number; 'unit_price'?: number; 'company_id'?: number; 'start_date'?: string | Date; 'end_date'?: string | Date; 'item_id'?: number }>;
3038
- 'updateItemComponent': Array<{ 'id': number; 'component_id'?: number; 'quantity'?: string; 'uom'?: number; 'unit_price'?: number }>;
3456
+ 'updatePriceRules': Array<{ 'id': number; 'price_list_name'?: string | null; 'minimum_quantity'?: number | null; 'unit_price'?: number | null; 'company_id'?: number | null; 'start_date'?: string | Date | null; 'end_date'?: string | Date | null; 'item_id'?: number | null }>;
3457
+ 'updateItemComponent': Array<{ 'id': number; 'component_id'?: number | null; 'quantity'?: string | null; 'uom'?: number | null; 'unit_price'?: number | null }>;
3039
3458
  'removePriceRules': Array<number>;
3040
3459
  'removeItemComponent': Array<number>;
3041
3460
  'removeCompanies': Array<number>;
@@ -3118,11 +3537,11 @@ export type PostV1InventoryAdjustmentRequest = {
3118
3537
  'date': string | Date;
3119
3538
  'company_id': number;
3120
3539
  'account_id': number;
3121
- 'reason'?: string;
3122
- 'narration'?: string;
3123
- 'department'?: number;
3124
- 'location'?: number;
3125
- 'addInventoryAdjustmentItem'?: Array<{ 'item_id': number; 'request_quantity'?: number; 'reserve_quantity'?: number; 'available_quantity'?: number; 'back_order'?: number; 'uom_id'?: number; 'rate'?: number; 'amount'?: number; 'classification'?: string; 'narration'?: string }>;
3540
+ 'reason'?: string | null;
3541
+ 'narration'?: string | null;
3542
+ 'department'?: number | null;
3543
+ 'location'?: number | null;
3544
+ 'addInventoryAdjustmentItem'?: Array<{ 'item_id': number; 'request_quantity'?: number | null; 'reserve_quantity'?: number | null; 'available_quantity'?: number | null; 'back_order'?: number | null; 'uom_id'?: number | null; 'rate'?: number | null; 'amount'?: number | null; 'classification'?: string | null; 'narration'?: string | null }>;
3126
3545
  }
3127
3546
 
3128
3547
  export type PostV1InventoryAdjustmentResponseOK = {
@@ -3242,15 +3661,15 @@ export type PutV1InventoryAdjustmentIdRequest = {
3242
3661
  'id': string;
3243
3662
  'x-token'?: string;
3244
3663
  'x-timezone'?: string;
3245
- 'date': string | Date;
3246
- 'company_id': number;
3247
- 'account_id': number;
3248
- 'reason': string;
3249
- 'narration': string;
3250
- 'department': number;
3251
- 'location': number;
3252
- 'addInventoryAdjustmentItem': Array<{ 'item_id': number; 'request_quantity'?: number; 'reserve_quantity'?: number; 'available_quantity'?: number; 'back_order'?: number; 'uom_id'?: number; 'rate'?: number; 'amount'?: number; 'classification'?: string; 'narration'?: string }>;
3253
- 'updateInventoryAdjustmentItem': Array<{ 'id': number; 'item_id'?: number; 'request_quantity'?: number; 'reserve_quantity'?: number; 'available_quantity'?: number; 'back_order'?: number; 'uom_id'?: number; 'rate'?: number; 'amount'?: number; 'classification'?: string; 'narration'?: string }>;
3664
+ 'date': string | Date | null;
3665
+ 'company_id': number | null;
3666
+ 'account_id': number | null;
3667
+ 'reason': string | null;
3668
+ 'narration': string | null;
3669
+ 'department': number | null;
3670
+ 'location': number | null;
3671
+ 'addInventoryAdjustmentItem': Array<{ 'item_id': number; 'request_quantity'?: number | null; 'reserve_quantity'?: number | null; 'available_quantity'?: number | null; 'back_order'?: number | null; 'uom_id'?: number | null; 'rate'?: number | null; 'amount'?: number | null; 'classification'?: string | null; 'narration'?: string | null }>;
3672
+ 'updateInventoryAdjustmentItem': Array<{ 'id': number; 'item_id'?: number | null; 'request_quantity'?: number | null; 'reserve_quantity'?: number | null; 'available_quantity'?: number | null; 'back_order'?: number | null; 'uom_id'?: number | null; 'rate'?: number | null; 'amount'?: number | null; 'classification'?: string | null; 'narration'?: string | null }>;
3254
3673
  'removeInventoryAdjustmentItem': Array<number>;
3255
3674
  }
3256
3675
 
@@ -3330,9 +3749,10 @@ export type PutV1InventoryAdjustmentIdItemItemIdStockStockIdRequest = {
3330
3749
  'id': string;
3331
3750
  'itemId': string;
3332
3751
  'stockId': string;
3333
- 'available_quantity': number;
3334
- 'adjusted_quantity': number;
3335
- 'old_quantity': number;
3752
+ 'available_quantity': number | null;
3753
+ 'adjusted_quantity': number | null;
3754
+ 'old_quantity': number | null;
3755
+ 'uom_id': number | null;
3336
3756
  }
3337
3757
 
3338
3758
  export type PutV1InventoryAdjustmentIdItemItemIdStockStockIdResponseOK = {
@@ -3451,42 +3871,80 @@ export type GetV1InventoryAdjustmentGenerateExcelResponses =
3451
3871
  export type PostV1ServiceItemsRequest = {
3452
3872
  'x-token'?: string;
3453
3873
  'x-timezone'?: string;
3454
- 'profile_image'?: string;
3874
+ 'profile_image'?: string | null;
3455
3875
  'type': string;
3456
3876
  'sku': string;
3457
3877
  'name': string;
3458
- 'parent_item'?: number;
3878
+ 'parent_item'?: number | null;
3459
3879
  'status'?: boolean;
3460
- 'category'?: number;
3461
- 'brand'?: string;
3462
- 'date'?: string;
3463
- 'unit_of_measurement'?: number;
3464
- 'stock_unit'?: number;
3465
- 'purchase_unit'?: number;
3466
- 'sales_unit'?: number;
3467
- 'base_unit'?: number;
3468
- 'consumption_unit'?: number;
3469
- 'costing_method'?: number;
3470
- 'upc_bar_code'?: string;
3471
- 'location'?: number;
3472
- 'department'?: number;
3473
- 'sales_price'?: number;
3474
- 'sales_description'?: string;
3475
- 'purchase_price'?: number;
3476
- 'purchase_description'?: string;
3880
+ 'category'?: number | null;
3881
+ 'brand'?: number | null;
3882
+ 'date'?: string | null;
3883
+ 'unit_of_measurement'?: number | null;
3884
+ 'stock_unit'?: number | null;
3885
+ 'purchase_unit'?: number | null;
3886
+ 'sales_unit'?: number | null;
3887
+ 'base_unit'?: number | null;
3888
+ 'consumption_unit'?: number | null;
3889
+ 'costing_method'?: number | null;
3890
+ 'upc_bar_code'?: string | null;
3891
+ 'location'?: number | null;
3892
+ 'department'?: number | null;
3893
+ 'sales_price'?: number | null;
3894
+ 'sales_description'?: string | null;
3895
+ 'purchase_price'?: number | null;
3896
+ 'purchase_description'?: string | null;
3477
3897
  'default_tax_id': number;
3478
3898
  'income_account_id': number;
3479
- 'asset_account_id'?: number;
3480
- 'cogs_account_id'?: number;
3481
- 'reorder_point'?: number;
3482
- 'default_lead_time'?: number;
3483
- 'weight'?: string;
3484
- 'hsn_code'?: string;
3899
+ 'asset_account_id'?: number | null;
3900
+ 'cogs_account_id'?: number | null;
3901
+ 'reorder_point'?: number | null;
3902
+ 'default_lead_time'?: number | null;
3903
+ 'weight'?: string | null;
3904
+ 'hsn_code'?: string | null;
3485
3905
  'use_bins'?: boolean;
3486
3906
  'apply_for_prices'?: boolean;
3487
3907
  'apply_for_quantity'?: boolean;
3488
- 'traceability'?: string;
3489
- 'subtype'?: 'sale' | 'purchase' | 'both';
3908
+ 'traceability'?: string | null;
3909
+ 'item_number'?: number | null;
3910
+ 'is_variant'?: boolean;
3911
+ 'subtype'?: 'sale' | 'purchase' | 'both' | unknown;
3912
+ 'expense_account_id': number;
3913
+ 'can_be_purchased'?: boolean;
3914
+ 'material_type'?: string | null;
3915
+ 'tube_type'?: string | null;
3916
+ 'tube_od'?: number | null;
3917
+ 'shape_width'?: number | null;
3918
+ 'shape_height'?: number | null;
3919
+ 'material_thickness'?: number | null;
3920
+ 'material_length'?: number | null;
3921
+ 'material_weight'?: number | null;
3922
+ 'is_returnable'?: boolean;
3923
+ 'self_variant'?: boolean;
3924
+ 'cost'?: number | null;
3925
+ 'material_costing_types'?: string | null;
3926
+ 'face_width'?: number | null;
3927
+ 'bending'?: number | null;
3928
+ 'height'?: number | null;
3929
+ 'total_width'?: number | null;
3930
+ 'boards_thickness'?: number | null;
3931
+ 'boards_length'?: number | null;
3932
+ 'boards_weight'?: number | null;
3933
+ 'steel_type'?: string | null;
3934
+ 'material_unit'?: number | null;
3935
+ 'steel_length'?: number | null;
3936
+ 'steel_width'?: number | null;
3937
+ 'steel_thickness'?: number | null;
3938
+ 'steel_weight'?: number | null;
3939
+ 'is_landed_cost'?: boolean;
3940
+ 'spitting_method'?: 'Equal' | 'By Weight' | 'By Volume' | 'By Quantity' | 'By Current Cost' | unknown;
3941
+ 'track_landed_cost'?: boolean;
3942
+ 'is_rental'?: boolean;
3943
+ 'rental_base_price'?: number | null;
3944
+ 'rental_hour_fine'?: number | null;
3945
+ 'rental_day_fine'?: number | null;
3946
+ 'rental_security_time'?: number | null;
3947
+ 'rental_description'?: string | null;
3490
3948
  'addCompanies'?: Array<number>;
3491
3949
  'addAlternativeProductSell'?: Array<number>;
3492
3950
  }
@@ -3614,42 +4072,80 @@ export type PutV1ServiceItemsIdRequest = {
3614
4072
  'x-token'?: string;
3615
4073
  'x-timezone'?: string;
3616
4074
  'id': string;
3617
- 'profile_image': string;
3618
- 'type': string;
3619
- 'sku': string;
3620
- 'name': string;
3621
- 'parent_item': number;
4075
+ 'profile_image': string | null;
4076
+ 'type': string | null;
4077
+ 'sku': string | null;
4078
+ 'name': string | null;
4079
+ 'parent_item': number | null;
3622
4080
  'status': boolean;
3623
- 'category': number;
3624
- 'brand': string;
3625
- 'date': string;
3626
- 'unit_of_measurement': number;
3627
- 'stock_unit': number;
3628
- 'purchase_unit': number;
3629
- 'sales_unit': number;
3630
- 'base_unit': number;
3631
- 'consumption_unit': number;
3632
- 'costing_method': number;
3633
- 'upc_bar_code': string;
3634
- 'location': number;
3635
- 'department': number;
3636
- 'sales_price': number;
3637
- 'sales_description': string;
3638
- 'purchase_price': number;
3639
- 'purchase_description': string;
3640
- 'default_tax_id': number;
3641
- 'income_account_id': number;
3642
- 'asset_account_id': number;
3643
- 'cogs_account_id': number;
3644
- 'reorder_point': number;
3645
- 'default_lead_time': number;
3646
- 'weight': string;
3647
- 'hsn_code': string;
4081
+ 'category': number | null;
4082
+ 'brand': number | null;
4083
+ 'date': string | null;
4084
+ 'unit_of_measurement': number | null;
4085
+ 'stock_unit': number | null;
4086
+ 'purchase_unit': number | null;
4087
+ 'sales_unit': number | null;
4088
+ 'base_unit': number | null;
4089
+ 'consumption_unit': number | null;
4090
+ 'costing_method': number | null;
4091
+ 'upc_bar_code': string | null;
4092
+ 'location': number | null;
4093
+ 'department': number | null;
4094
+ 'sales_price': number | null;
4095
+ 'sales_description': string | null;
4096
+ 'purchase_price': number | null;
4097
+ 'purchase_description': string | null;
4098
+ 'default_tax_id': number | null;
4099
+ 'income_account_id': number | null;
4100
+ 'asset_account_id': number | null;
4101
+ 'cogs_account_id': number | null;
4102
+ 'reorder_point': number | null;
4103
+ 'default_lead_time': number | null;
4104
+ 'weight': string | null;
4105
+ 'hsn_code': string | null;
3648
4106
  'use_bins': boolean;
3649
4107
  'apply_for_prices': boolean;
3650
4108
  'apply_for_quantity': boolean;
3651
- 'traceability': string;
3652
- 'subtype': 'sale' | 'purchase' | 'both';
4109
+ 'traceability': string | null;
4110
+ 'item_number': number | null;
4111
+ 'is_variant': boolean;
4112
+ 'subtype': 'sale' | 'purchase' | 'both' | unknown;
4113
+ 'expense_account_id': number | null;
4114
+ 'can_be_purchased': boolean;
4115
+ 'material_type': string | null;
4116
+ 'tube_type': string | null;
4117
+ 'tube_od': number | null;
4118
+ 'shape_width': number | null;
4119
+ 'shape_height': number | null;
4120
+ 'material_thickness': number | null;
4121
+ 'material_length': number | null;
4122
+ 'material_weight': number | null;
4123
+ 'is_returnable': boolean;
4124
+ 'self_variant': boolean;
4125
+ 'cost': number | null;
4126
+ 'material_costing_types': string | null;
4127
+ 'face_width': number | null;
4128
+ 'bending': number | null;
4129
+ 'height': number | null;
4130
+ 'total_width': number | null;
4131
+ 'boards_thickness': number | null;
4132
+ 'boards_length': number | null;
4133
+ 'boards_weight': number | null;
4134
+ 'steel_type': string | null;
4135
+ 'material_unit': number | null;
4136
+ 'steel_length': number | null;
4137
+ 'steel_width': number | null;
4138
+ 'steel_thickness': number | null;
4139
+ 'steel_weight': number | null;
4140
+ 'is_landed_cost': boolean;
4141
+ 'spitting_method': 'Equal' | 'By Weight' | 'By Volume' | 'By Quantity' | 'By Current Cost' | unknown;
4142
+ 'track_landed_cost': boolean;
4143
+ 'is_rental': boolean;
4144
+ 'rental_base_price': number | null;
4145
+ 'rental_hour_fine': number | null;
4146
+ 'rental_day_fine': number | null;
4147
+ 'rental_security_time': number | null;
4148
+ 'rental_description': string | null;
3653
4149
  'addCompanies': Array<number>;
3654
4150
  'addAlternativeProductSell': Array<number>;
3655
4151
  }
@@ -3808,12 +4304,12 @@ export type PostV1BinTransferRequest = {
3808
4304
  'x-token'?: string;
3809
4305
  'x-timezone'?: string;
3810
4306
  'warehouse_location_id': number;
3811
- 'contact_id'?: number;
4307
+ 'contact_id'?: number | null;
3812
4308
  'source_bin_id': number;
3813
4309
  'destination_bin_id': number;
3814
4310
  'date': string;
3815
4311
  'company_id': number;
3816
- 'addBinTransferOperation'?: Array<{ 'bin_transfer_id'?: number; 'item_id': number; 'demand'?: number; 'uom_id': number; 'lot_serial_number'?: string; 'transfer_quantity': number; 'source_available'?: number; 'destination_available'?: number; 'rate'?: number; 'amount'?: number; 'description'?: string }>;
4312
+ 'addBinTransferOperation'?: Array<{ 'bin_transfer_id'?: number | null; 'item_id': number; 'demand'?: number | null; 'uom_id': number; 'lot_serial_number'?: string | null; 'transfer_quantity': number; 'source_available'?: number | null; 'destination_available'?: number | null; 'rate'?: number | null; 'amount'?: number | null; 'description'?: string | null }>;
3817
4313
  }
3818
4314
 
3819
4315
  export type PostV1BinTransferResponseOK = {
@@ -3933,14 +4429,14 @@ export type PutV1BinTransferIdRequest = {
3933
4429
  'id': string;
3934
4430
  'x-token'?: string;
3935
4431
  'x-timezone'?: string;
3936
- 'warehouse_location_id': number;
3937
- 'contact_id': number;
3938
- 'source_bin_id': number;
3939
- 'destination_bin_id': number;
3940
- 'date': string;
3941
- 'company_id': number;
3942
- 'addBinTransferOperation': Array<{ 'bin_transfer_id': number; 'item_id': number; 'demand'?: number; 'uom_id': number; 'lot_serial_number'?: string; 'transfer_quantity': number; 'source_available'?: number; 'destination_available'?: number; 'rate'?: number; 'amount'?: number; 'description'?: string }>;
3943
- 'updateTransferOperation': Array<{ 'bin_transfer_id'?: number; 'item_id'?: number; 'id'?: number; 'demand'?: number; 'uom_id'?: number; 'lot_serial_number'?: string; 'transfer_quantity'?: number; 'source_available'?: number; 'destination_available'?: number; 'rate'?: number; 'amount'?: number; 'description'?: string }>;
4432
+ 'warehouse_location_id': number | null;
4433
+ 'contact_id': number | null;
4434
+ 'source_bin_id': number | null;
4435
+ 'destination_bin_id': number | null;
4436
+ 'date': string | null;
4437
+ 'company_id': number | null;
4438
+ 'addBinTransferOperation': Array<{ 'bin_transfer_id': number; 'item_id': number; 'demand'?: number | null; 'uom_id': number; 'lot_serial_number'?: string | null; 'transfer_quantity': number; 'source_available'?: number | null; 'destination_available'?: number | null; 'rate'?: number | null; 'amount'?: number | null; 'description'?: string | null }>;
4439
+ 'updateTransferOperation': Array<{ 'bin_transfer_id'?: number | null; 'item_id'?: number | null; 'id'?: number | null; 'demand'?: number | null; 'uom_id'?: number | null; 'lot_serial_number'?: string | null; 'transfer_quantity'?: number | null; 'source_available'?: number | null; 'destination_available'?: number | null; 'rate'?: number | null; 'amount'?: number | null; 'description'?: string | null }>;
3944
4440
  'removeTransferOperation': Array<number>;
3945
4441
  }
3946
4442
 
@@ -4056,8 +4552,8 @@ export type PutV1BinTransferUpdateTrackingIdRequest = {
4056
4552
  'id': string;
4057
4553
  'x-token'?: string;
4058
4554
  'x-timezone'?: string;
4059
- 'addTracking': Array<{ 'item_id': number; 'source_location_id'?: number; 'destination_location_id'?: number; 'lot_number'?: string; 'serial_number'?: string; 'source_bin_number'?: string; 'destination_bin_number'?: string; 'quantity': number; 'bin_transfer_operation_id'?: number }>;
4060
- 'updateTracking': Array<{ 'id': number; 'item_id'?: number; 'source_location_id'?: number; 'destination_location_id'?: number; 'lot_number'?: string; 'serial_number'?: string; 'source_bin_number'?: string; 'destination_bin_number'?: string; 'quantity'?: number; 'bin_transfer_operation_id'?: number }>;
4555
+ 'addTracking': Array<{ 'item_id': number; 'source_location_id'?: number | null; 'destination_location_id'?: number | null; 'lot_number'?: string | null; 'serial_number'?: string | null; 'source_bin_number'?: string | null; 'destination_bin_number'?: string | null; 'quantity': number; 'bin_transfer_operation_id'?: number | null }>;
4556
+ 'updateTracking': Array<{ 'id': number; 'item_id'?: number | null; 'source_location_id'?: number | null; 'destination_location_id'?: number | null; 'lot_number'?: string | null; 'serial_number'?: string | null; 'source_bin_number'?: string | null; 'destination_bin_number'?: string | null; 'quantity'?: number | null; 'bin_transfer_operation_id'?: number | null }>;
4061
4557
  'removeTracking': Array<number>;
4062
4558
  }
4063
4559
 
@@ -4180,12 +4676,12 @@ export type PostV1StockTransfersRequest = {
4180
4676
  'x-timezone'?: string;
4181
4677
  'date': string;
4182
4678
  'company_id': number;
4183
- 'employee_id'?: number;
4679
+ 'employee_id'?: number | null;
4184
4680
  'operation_type': string;
4185
- 'source_location_id'?: number;
4186
- 'destination_location_id'?: number;
4187
- 'description'?: string;
4188
- 'operationList'?: Array<{ 'item_id': number; 'request_quantity'?: number; 'reserve_quantity'?: number; 'back_order'?: number; 'uom_id'?: number; 'transfer_quantity': number; 'rate'?: number; 'transfer_amount'?: number }>;
4681
+ 'source_location_id'?: number | null;
4682
+ 'destination_location_id'?: number | null;
4683
+ 'description'?: string | null;
4684
+ 'operationList'?: Array<{ 'item_id': number; 'request_quantity'?: number | null; 'reserve_quantity'?: number | null; 'back_order'?: number | null; 'uom_id'?: number | null; 'transfer_quantity': number; 'rate'?: number | null; 'transfer_amount'?: number | null }>;
4189
4685
  }
4190
4686
 
4191
4687
  export type PostV1StockTransfersResponseOK = {
@@ -4350,13 +4846,13 @@ export type PutV1StockTransfersIdRequest = {
4350
4846
  'x-timezone'?: string;
4351
4847
  'date': string;
4352
4848
  'company_id': number;
4353
- 'employee_id'?: number;
4849
+ 'employee_id'?: number | null;
4354
4850
  'operation_type': string;
4355
- 'source_location_id'?: number;
4356
- 'destination_location_id'?: number;
4357
- 'description'?: string;
4358
- 'addOperations'?: Array<{ 'item_id': number; 'request_quantity': number; 'reserve_quantity'?: number; 'back_order'?: number; 'uom_id'?: number; 'transfer_quantity'?: number; 'rate'?: number; 'transfer_amount'?: number }>;
4359
- 'updateOperations'?: Array<{ 'item_id'?: number; 'request_quantity'?: number; 'reserve_quantity'?: number; 'back_order'?: number; 'uom_id'?: number; 'transfer_quantity'?: number; 'rate'?: number; 'transfer_amount'?: number }>;
4851
+ 'source_location_id'?: number | null;
4852
+ 'destination_location_id'?: number | null;
4853
+ 'description'?: string | null;
4854
+ 'addOperations'?: Array<{ 'item_id': number; 'request_quantity': number; 'reserve_quantity'?: number | null; 'back_order'?: number | null; 'uom_id'?: number | null; 'transfer_quantity'?: number | null; 'rate'?: number | null; 'transfer_amount'?: number | null }>;
4855
+ 'updateOperations'?: Array<{ 'item_id'?: number | null; 'request_quantity'?: number | null; 'reserve_quantity'?: number | null; 'back_order'?: number | null; 'uom_id'?: number | null; 'transfer_quantity'?: number | null; 'rate'?: number | null; 'transfer_amount'?: number | null }>;
4360
4856
  'removeOperations'?: Array<number>;
4361
4857
  }
4362
4858
 
@@ -4472,8 +4968,8 @@ export type PutV1StockTransfersUpdateTrackingIdRequest = {
4472
4968
  'id': string;
4473
4969
  'x-token'?: string;
4474
4970
  'x-timezone'?: string;
4475
- 'addTracking': Array<{ 'item_id': number; 'source_location_id'?: number; 'destination_location_id'?: number; 'lot_number'?: string; 'serial_number'?: string; 'source_bin_number'?: string; 'destination_bin_number'?: string; 'quantity': number; 'stock_transfer_operation_id'?: number }>;
4476
- 'updateTracking': Array<{ 'id': number; 'item_id'?: number; 'source_location_id'?: number; 'destination_location_id'?: number; 'lot_number'?: string; 'serial_number'?: string; 'source_bin_number'?: string; 'destination_bin_number'?: string; 'quantity'?: number; 'stock_transfer_operation_id'?: number }>;
4971
+ 'addTracking': Array<{ 'item_id': number; 'source_location_id'?: number | null; 'destination_location_id'?: number | null; 'lot_number'?: string | null; 'serial_number'?: string | null; 'source_bin_number'?: string | null; 'destination_bin_number'?: string | null; 'quantity': number; 'stock_transfer_operation_id'?: number | null }>;
4972
+ 'updateTracking': Array<{ 'id': number; 'item_id'?: number | null; 'source_location_id'?: number | null; 'destination_location_id'?: number | null; 'lot_number'?: string | null; 'serial_number'?: string | null; 'source_bin_number'?: string | null; 'destination_bin_number'?: string | null; 'quantity'?: number | null; 'stock_transfer_operation_id'?: number | null }>;
4477
4973
  'removeTracking': Array<number>;
4478
4974
  }
4479
4975
 
@@ -4513,8 +5009,8 @@ export type PutV1StockTransfersUpdateTrackingDetailsIdRequest = {
4513
5009
  'id': string;
4514
5010
  'x-token'?: string;
4515
5011
  'x-timezone'?: string;
4516
- 'addTracking': Array<{ 'item_id': number; 'source_location_id'?: number; 'destination_location_id'?: number; 'lot_number'?: string; 'serial_number'?: string; 'source_bin_number'?: string; 'destination_bin_number'?: string; 'quantity': number; 'stock_transfer_operation_id'?: number }>;
4517
- 'updateTracking': Array<{ 'id': number; 'item_id'?: number; 'source_location_id'?: number; 'destination_location_id'?: number; 'lot_number'?: string; 'serial_number'?: string; 'source_bin_number'?: string; 'destination_bin_number'?: string; 'quantity'?: number; 'stock_transfer_operation_id'?: number }>;
5012
+ 'addTracking': Array<{ 'item_id': number; 'source_location_id'?: number | null; 'destination_location_id'?: number | null; 'lot_number'?: string | null; 'serial_number'?: string | null; 'source_bin_number'?: string | null; 'destination_bin_number'?: string | null; 'quantity': number; 'stock_transfer_operation_id'?: number | null }>;
5013
+ 'updateTracking': Array<{ 'id': number; 'item_id'?: number | null; 'source_location_id'?: number | null; 'destination_location_id'?: number | null; 'lot_number'?: string | null; 'serial_number'?: string | null; 'source_bin_number'?: string | null; 'destination_bin_number'?: string | null; 'quantity'?: number | null; 'stock_transfer_operation_id'?: number | null }>;
4518
5014
  'removeTracking': Array<number>;
4519
5015
  }
4520
5016
 
@@ -5204,6 +5700,13 @@ export type PutV1ScrapIdRequest = {
5204
5700
  'id': string;
5205
5701
  'x-token'?: string;
5206
5702
  'x-timezone'?: string;
5703
+ 'scrap_date': string | Date;
5704
+ 'company_id': number;
5705
+ 'employee_id': number;
5706
+ 'source_location_id': number;
5707
+ 'destination_location_id': number;
5708
+ 'description': string;
5709
+ 'scrap_items': Array<{ 'item_id'?: number; 'request'?: string; 'source_available'?: string; 'uom_id'?: number; 'rate'?: number; 'transfer_qty'?: number; 'amount'?: number }>;
5207
5710
  }
5208
5711
 
5209
5712
  export type PutV1ScrapIdResponseOK = {
@@ -6016,13 +6519,15 @@ export interface Api {
6016
6519
  putV1BinId(req?: PutV1BinIdRequest): Promise<PutV1BinIdResponses>;
6017
6520
  deleteV1BinId(req?: DeleteV1BinIdRequest): Promise<DeleteV1BinIdResponses>;
6018
6521
  getV1BinGenerateExcel(req?: GetV1BinGenerateExcelRequest): Promise<GetV1BinGenerateExcelResponses>;
6019
- postV1Uom(req?: PostV1UomRequest): Promise<PostV1UomResponses>;
6522
+ postV1UomTemplates(req?: PostV1UomTemplatesRequest): Promise<PostV1UomTemplatesResponses>;
6523
+ getV1UomTemplates(req?: GetV1UomTemplatesRequest): Promise<GetV1UomTemplatesResponses>;
6020
6524
  getV1Uom(req?: GetV1UomRequest): Promise<GetV1UomResponses>;
6021
- getV1UomId(req?: GetV1UomIdRequest): Promise<GetV1UomIdResponses>;
6022
- putV1UomId(req?: PutV1UomIdRequest): Promise<PutV1UomIdResponses>;
6023
- deleteV1UomId(req?: DeleteV1UomIdRequest): Promise<DeleteV1UomIdResponses>;
6024
- deleteV1UomUomEntryId(req?: DeleteV1UomUomEntryIdRequest): Promise<DeleteV1UomUomEntryIdResponses>;
6525
+ getV1UomTemplatesId(req?: GetV1UomTemplatesIdRequest): Promise<GetV1UomTemplatesIdResponses>;
6526
+ putV1UomTemplatesId(req?: PutV1UomTemplatesIdRequest): Promise<PutV1UomTemplatesIdResponses>;
6527
+ deleteV1UomTemplatesId(req?: DeleteV1UomTemplatesIdRequest): Promise<DeleteV1UomTemplatesIdResponses>;
6528
+ deleteV1UomUnitsId(req?: DeleteV1UomUnitsIdRequest): Promise<DeleteV1UomUnitsIdResponses>;
6025
6529
  getV1UomGenerateExcel(req?: GetV1UomGenerateExcelRequest): Promise<GetV1UomGenerateExcelResponses>;
6530
+ getV1UomUnitsIdCheckConversionFactor(req?: GetV1UomUnitsIdCheckConversionFactorRequest): Promise<GetV1UomUnitsIdCheckConversionFactorResponses>;
6026
6531
  postV1CategoryItems(req?: PostV1CategoryItemsRequest): Promise<PostV1CategoryItemsResponses>;
6027
6532
  getV1CategoryItems(req?: GetV1CategoryItemsRequest): Promise<GetV1CategoryItemsResponses>;
6028
6533
  getV1CategoryItemsId(req?: GetV1CategoryItemsIdRequest): Promise<GetV1CategoryItemsIdResponses>;