@erp-galoper/types 1.0.580 → 1.0.582

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 (2) hide show
  1. package/openapi.ts +458 -367
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -4328,6 +4328,8 @@ export interface paths {
4328
4328
  * - {"message": "You do not have access to this branch.", "code": "noBranchAccess}
4329
4329
  * - 404: {"message": "Branch does not exist", "code": "branchDoesNotExist"}
4330
4330
  * - 500: {"message": "An internal server error has occurred", "code": "serverError"}
4331
+ *
4332
+ * permission key: openingquantity : ['view']
4331
4333
  */
4332
4334
  get: operations["inventory_opening_stock_views_list_opening_quantity"];
4333
4335
  put?: never;
@@ -4335,15 +4337,25 @@ export interface paths {
4335
4337
  * Create Opening Quantity
4336
4338
  * @description Endpoint for creating Opening Quantity Document
4337
4339
  * Responses:
4338
- * - 201: {"message": "Opening Quantity created successfully.", "code": "openingQuantityCreated"}
4339
- * - 400: {"message": "An error occurred while creating the opening quantity document.", "code": "invalidData"}
4340
- * - 403: {"message": "You do not have permission to perform this action", "code": "permissionDenied"}
4341
- * - {"message": "You do not have access to this branch.", "code": "noBranchAccess"}
4342
- * - 404: {"message": "item Invalid pk "{item_id}" - object does not exist..", "code": "itemDoesNotExist"}
4343
- * - {"message": "warehouse Invalid pk "{warehouse_id}" - object does not exist..", "code": "warehouseDoesNotExist"}
4344
- * - 409: {"message": "The fields item, warehouse, branch must be unique together..", "code": "itemWarehouseBranchConflict"}
4345
- * - {"message": "The fields header, item must make a unique set..", "code": "headerItemConflict"}
4346
- * - 500: {"message": "An internal server error has occurred", "code": "serverError"}
4340
+ * - 201: OpeningQuantitySchema
4341
+ * - 400: "invalidData"
4342
+ * - item+warehouse+branch+unitOfMeasure+itemPackageConflict
4343
+ * - itemDoesNotExist
4344
+ * - quantityMismatch
4345
+ * - quantityRequired
4346
+ * - serialNumberQuantityMustBeOne
4347
+ * - expiryDateRequired
4348
+ * - inTrackByQuantityOneTrackingRequired
4349
+ * - numberOfSerialsRequired
4350
+ * - warehouseDoesNotExist
4351
+ * - branchDoesNotExist
4352
+ * - unitOfMeasureDoesNotExist
4353
+ * - itemPackageDoesNotExist
4354
+ * - 403: "permissionDenied"
4355
+ * - "noBranchAccess"
4356
+ * - 500: "serverError"
4357
+ *
4358
+ * permission key: openingquantity : ['add']
4347
4359
  */
4348
4360
  post: operations["inventory_opening_stock_views_create_opening_quantity"];
4349
4361
  delete?: never;
@@ -4352,7 +4364,7 @@ export interface paths {
4352
4364
  patch?: never;
4353
4365
  trace?: never;
4354
4366
  };
4355
- "/api/v1/inventory/opening_quantity/{headerId}/": {
4367
+ "/api/v1/inventory/opening_quantity/{id}/": {
4356
4368
  parameters: {
4357
4369
  query?: never;
4358
4370
  header?: never;
@@ -4360,85 +4372,46 @@ export interface paths {
4360
4372
  cookie?: never;
4361
4373
  };
4362
4374
  /**
4363
- * List Opening Quantity Details
4364
- * @description Endpoint for List Opening Quantity Details
4375
+ * Get Opening Quantity
4376
+ * @description Endpoint for retrieving Opening Quantity Document
4365
4377
  * Responses:
4366
- * - 200: OpeningQuantityDetailsListSchema
4367
- * - 400: {"message": "Error applying filter {error}", "code": "invalidFilterFormat"}
4368
- * - {"message": "Error applying pagination {error}", "code": "paginationError"}
4378
+ * - 200: OpeningQuantityHeaderSchema
4369
4379
  * - 403: {"message": "You do not have permission to perform this action", "code": "permissionDenied"}
4370
4380
  * - {"message": "You do not have access to this branch.", "code": "noBranchAccess"}
4371
- * - 404: {"message": "Opening Quantity Document does not exist", "code": "openingQuantityDoesNotExist"}
4372
- * - {"message": "Branch does not exist", "code": "branchDoesNotExist"}
4381
+ * - 404: {"message": "Opening Quantity Document not found.", "code": "openingQuantityDoesNotExist"}
4373
4382
  * - 500: {"message": "An internal server error has occurred", "code": "serverError"}
4383
+ *
4384
+ * permission key: openingquantity : ['view']
4374
4385
  */
4375
- get: operations["inventory_opening_stock_views_list_opening_quantity_details"];
4376
- put?: never;
4377
- post?: never;
4378
- delete?: never;
4379
- options?: never;
4380
- head?: never;
4386
+ get: operations["inventory_opening_stock_views_get_opening_quantity"];
4381
4387
  /**
4382
4388
  * Update Opening Quantity
4383
4389
  * @description Endpoint for updating Opening Quantity Document
4384
- * Responses:
4385
- * - 200: {"message": "Opening quantity details updated successfully.", "code": "openingQuantityUpdated"}
4386
- * - 400: {"message": "Failed to update/create opening quantity details due to error: {error}", "code": "invalidData"}
4387
- * - {"message": "No data to update", "code": "noChangesDetected"}
4388
- * - 403: {"message": "You do not have permission to perform this action", "code": "permissionDenied"}
4389
- * - {"message": "You do not have access to this branch.", "code": "noBranchAccess}
4390
- * - {"message": "Only draft Opening Quantity can be updated.", "code": "documentNotInDraftStatus"}
4391
- * - 404: {"message": "Opening Quantity Document not found.", "code": "notFound"}
4392
- * - {"message": "branch Invalid pk "{header.branch_id}" - object does not exist..", "code": "branchDoesNotExist"}
4393
- * - {"message": "item Invalid pk "{item_id}" - object does not exist..", "code": "itemDoesNotExist"}
4394
- * - {"message": "warehouse Invalid pk "{header.warehouse_id}" - object does not exist..", "code": "warehouseDoesNotExist"}
4395
- * - {"message": "Opening Quantity Invalid pk - object does not exist.. ", "code": "openingQuantityDoesNotExist"}
4396
- * -
4397
- * - 409: {"message": "The fields item, warehouse, branch must be unique together..", "code": "itemWarehouseBranchConflict"}
4398
- * - {"message": "The fields header, item must make a unique set..", "code": "headerItemConflict"}
4399
- * - 500: {"message": "An internal server error has occurred", "code": "serverError"}
4400
- */
4401
- patch: operations["inventory_opening_stock_views_update_opening_quantity"];
4402
- trace?: never;
4403
- };
4404
- "/api/v1/inventory/opening_quantity/{headerId}/reset-to-draft/": {
4405
- parameters: {
4406
- query?: never;
4407
- header?: never;
4408
- path?: never;
4409
- cookie?: never;
4410
- };
4411
- get?: never;
4412
- put?: never;
4413
- post?: never;
4414
- delete?: never;
4415
- options?: never;
4416
- head?: never;
4417
- /**
4418
- * Rest To Draft
4419
- * @description Endpoint for setting the status of an opening quantity document to draft
4420
- * Responses:
4421
- * - 200: {"message": "Opening Quantity status set to draft.", "code": "statusSetToDraft"}
4422
- * - 400: {"message": "Opening Quantity status is already draft.", "code": "statusAlreadyDraft"}
4423
- * - 403: {"message": "You do not have permission to perform this action", "code": "permissionDenied"}
4424
- * - 404: {"message": "Opening Quantity Document not found.", "code": "openingQuantityDoesNotExist"}
4425
- * - 500: {"message": "An internal server error has occurred", "code": "serverError"}
4390
+ * - 200: OpeningQuantitySchema
4391
+ * - 400:
4392
+ * - item+warehouse+branch+unitOfMeasure+itemPackageConflict
4393
+ * - itemDoesNotExist
4394
+ * - quantityMismatch
4395
+ * - quantityRequired
4396
+ * - serialNumberQuantityMustBeOne
4397
+ * - expiryDateRequired
4398
+ * - inTrackByQuantityOneTrackingRequired
4399
+ * - numberOfSerialsRequired
4400
+ * - warehouseDoesNotExist
4401
+ * - branchDoesNotExist
4402
+ * - unitOfMeasureDoesNotExist
4403
+ * - itemPackageDoesNotExist
4404
+ * - 403: "permissionDenied"
4405
+ * - "noBranchAccess"
4406
+ * - 404: "openingQuantityDoesNotExist"
4407
+ * - 500: "serverError"
4408
+ *
4409
+ * permission key: openingquantity : ['change']
4426
4410
  */
4427
- patch: operations["inventory_opening_stock_views_rest_to_draft"];
4428
- trace?: never;
4429
- };
4430
- "/api/v1/inventory/opening_quantity/header/{headerId}/": {
4431
- parameters: {
4432
- query?: never;
4433
- header?: never;
4434
- path?: never;
4435
- cookie?: never;
4436
- };
4437
- get?: never;
4438
- put?: never;
4411
+ put: operations["inventory_opening_stock_views_update_opening_quantity"];
4439
4412
  post?: never;
4440
4413
  /**
4441
- * Delete Opening Quantity Header
4414
+ * Delete Opening Quantity
4442
4415
  * @description Endpoint for deleting Opening Quantity Document
4443
4416
  * Responses:
4444
4417
  * - 204: None
@@ -4447,14 +4420,16 @@ export interface paths {
4447
4420
  * - 404: {"message": "branch Invalid pk - object does not exist..", "code": "branchDoesNotExist"}
4448
4421
  * - {"message": "Opening Quantity Invalid pk - object does not exist..", "code": "openingQuantityDoesNotExist"}
4449
4422
  * - 500: {"message": "An internal server error has occurred", "code": "serverError"}
4423
+ *
4424
+ * permission key: openingquantity : ['delete']
4450
4425
  */
4451
- delete: operations["inventory_opening_stock_views_delete_opening_quantity_header"];
4426
+ delete: operations["inventory_opening_stock_views_delete_opening_quantity"];
4452
4427
  options?: never;
4453
4428
  head?: never;
4454
4429
  patch?: never;
4455
4430
  trace?: never;
4456
4431
  };
4457
- "/api/v1/inventory/opening_quantity/detail/{detailId}/": {
4432
+ "/api/v1/inventory/opening_quantity/{id}/reset-to-draft/": {
4458
4433
  parameters: {
4459
4434
  query?: never;
4460
4435
  header?: never;
@@ -4463,21 +4438,20 @@ export interface paths {
4463
4438
  };
4464
4439
  get?: never;
4465
4440
  put?: never;
4466
- post?: never;
4467
4441
  /**
4468
- * Delete Opening Quantity Detail
4469
- * @description Endpoint for deleting Opening Quantity Detail
4442
+ * Reset To Draft
4443
+ * @description Endpoint for setting the status of an opening quantity document to draft
4470
4444
  * Responses:
4471
- * - 204: None
4445
+ * - 200: {"message": "Opening Quantity status set to draft.", "code": "statusSetToDraft"}
4446
+ * - 400: {"message": "Opening Quantity status is already draft.", "code": "statusAlreadyDraft"}
4472
4447
  * - 403: {"message": "You do not have permission to perform this action", "code": "permissionDenied"}
4473
- * - {"message": "You do not have access to this branch.", "code": "noBranchAccess"}
4474
- * - {"message": "Only draft Stock Adjustments can be updated.", "code": "documentNotInDraftStatus"}
4475
- * - 404: {"message": "branch Invalid pk - object does not exist..", "code": "branchDoesNotExist"}
4476
- * - {"message": "Opening Quantity Invalid pk - object does not exist..", "code": "openingQuantityDoesNotExist"}
4477
- * - {"message": "Opening Quantity Detail Invalid pk - object does not exist.. ", "code": "openingQuantityDetailDoesNotExist"}
4448
+ * - 404: {"message": "Opening Quantity Document not found.", "code": "openingQuantityDoesNotExist"}
4478
4449
  * - 500: {"message": "An internal server error has occurred", "code": "serverError"}
4450
+ *
4451
+ * permission key: openingquantity : ['change']
4479
4452
  */
4480
- delete: operations["inventory_opening_stock_views_delete_opening_quantity_detail"];
4453
+ post: operations["inventory_opening_stock_views_reset_to_draft"];
4454
+ delete?: never;
4481
4455
  options?: never;
4482
4456
  head?: never;
4483
4457
  patch?: never;
@@ -20941,12 +20915,12 @@ export interface components {
20941
20915
  /** @description the package it belongs to */
20942
20916
  package: components["schemas"]["PackageSummarySchema"];
20943
20917
  /** @description Type of barcode used for the package */
20944
- barcodeType: components["schemas"]["BarcodeTypeValues"];
20918
+ barcodeType: components["schemas"]["BarcodeTypeValues"] | null;
20945
20919
  /**
20946
20920
  * Barcode
20947
20921
  * @description Unique barcode for the package
20948
20922
  */
20949
- barcode: string;
20923
+ barcode: string | null;
20950
20924
  /**
20951
20925
  * Quantity
20952
20926
  * @description Quantity of the packed item
@@ -20956,16 +20930,16 @@ export interface components {
20956
20930
  * Defaultcost
20957
20931
  * @description Cost of the packed item
20958
20932
  */
20959
- defaultCost: number;
20933
+ defaultCost: number | null;
20960
20934
  /** @description Price of the packed item */
20961
- defaultCostCurrency: components["schemas"]["CurrencySummaryInfo"];
20935
+ defaultCostCurrency: components["schemas"]["CurrencySummaryInfo"] | null;
20962
20936
  /**
20963
20937
  * Defaultsellingprice
20964
20938
  * @description Price of the packed item
20965
20939
  */
20966
- defaultSellingPrice: number;
20940
+ defaultSellingPrice: number | null;
20967
20941
  /** @description Price of the packed item */
20968
- defaultSellingPriceCurrency: components["schemas"]["CurrencySummaryInfo"];
20942
+ defaultSellingPriceCurrency: components["schemas"]["CurrencySummaryInfo"] | null;
20969
20943
  /** @description ID of the unit of measure for the packed item */
20970
20944
  unitOfMeasure: components["schemas"]["UnitOfMeasureSummaryInfo"];
20971
20945
  };
@@ -21062,10 +21036,6 @@ export interface components {
21062
21036
  * @default false
21063
21037
  */
21064
21038
  availableInPos: boolean;
21065
- /** Shelflife */
21066
- shelfLife?: string | null;
21067
- /** Endoflife */
21068
- endOfLife?: string | null;
21069
21039
  /**
21070
21040
  * Isexchangeable
21071
21041
  * @description this field only appears if pos in galoper settings is enabled and available in pos is true
@@ -21081,10 +21051,10 @@ export interface components {
21081
21051
  maxDiscountSales: number | null;
21082
21052
  defaultSaleUnitOfMeasure: components["schemas"]["UnitOfMeasureSchema"] | null;
21083
21053
  /** Defaultsellingprice */
21084
- defaultSellingPrice: number;
21054
+ defaultSellingPrice: number | null;
21085
21055
  defaultSellingPriceCurrency?: components["schemas"]["CurrencySummaryInfo"] | null;
21086
21056
  /** Defaultcost */
21087
- defaultCost: number;
21057
+ defaultCost: number | null;
21088
21058
  defaultCostCurrency?: components["schemas"]["CurrencySummaryInfo"] | null;
21089
21059
  /** Leadtime */
21090
21060
  leadTime?: string | null;
@@ -21122,11 +21092,20 @@ export interface components {
21122
21092
  * @default false
21123
21093
  */
21124
21094
  hasExpiryDate: boolean | null;
21125
- /** Bestbeforedate */
21095
+ /**
21096
+ * Bestbeforedate
21097
+ * @description visible when hasExpiryDate is true
21098
+ */
21126
21099
  bestBeforeDate?: number | null;
21127
- /** Removaldate */
21100
+ /**
21101
+ * Removaldate
21102
+ * @description visible when hasExpiryDate is true
21103
+ */
21128
21104
  removalDate?: number | null;
21129
- /** Alertdate */
21105
+ /**
21106
+ * Alertdate
21107
+ * @description visible when hasExpiryDate is true
21108
+ */
21130
21109
  alertDate?: number | null;
21131
21110
  /**
21132
21111
  * Itempackages
@@ -21242,10 +21221,6 @@ export interface components {
21242
21221
  * @default false
21243
21222
  */
21244
21223
  availableInPos: boolean;
21245
- /** Shelflife */
21246
- shelfLife?: string | null;
21247
- /** Endoflife */
21248
- endOfLife?: string | null;
21249
21224
  /**
21250
21225
  * Isexchangeable
21251
21226
  * @description this field only appears if pos in galoper settings is enabled and available in pos is true
@@ -21261,10 +21236,10 @@ export interface components {
21261
21236
  maxDiscountSales: number | null;
21262
21237
  defaultSaleUnitOfMeasure: components["schemas"]["UnitOfMeasureSchema"] | null;
21263
21238
  /** Defaultsellingprice */
21264
- defaultSellingPrice: number;
21239
+ defaultSellingPrice: number | null;
21265
21240
  defaultSellingPriceCurrency?: components["schemas"]["CurrencySummaryInfo"] | null;
21266
21241
  /** Defaultcost */
21267
- defaultCost: number;
21242
+ defaultCost: number | null;
21268
21243
  defaultCostCurrency?: components["schemas"]["CurrencySummaryInfo"] | null;
21269
21244
  /** Leadtime */
21270
21245
  leadTime?: string | null;
@@ -21302,11 +21277,20 @@ export interface components {
21302
21277
  * @default false
21303
21278
  */
21304
21279
  hasExpiryDate: boolean | null;
21305
- /** Bestbeforedate */
21280
+ /**
21281
+ * Bestbeforedate
21282
+ * @description visible when hasExpiryDate is true
21283
+ */
21306
21284
  bestBeforeDate?: number | null;
21307
- /** Removaldate */
21285
+ /**
21286
+ * Removaldate
21287
+ * @description visible when hasExpiryDate is true
21288
+ */
21308
21289
  removalDate?: number | null;
21309
- /** Alertdate */
21290
+ /**
21291
+ * Alertdate
21292
+ * @description visible when hasExpiryDate is true
21293
+ */
21310
21294
  alertDate?: number | null;
21311
21295
  /**
21312
21296
  * Itempackages
@@ -21516,10 +21500,6 @@ export interface components {
21516
21500
  * @default false
21517
21501
  */
21518
21502
  availableInPos: boolean | null;
21519
- /** Shelflife */
21520
- shelfLife?: string | null;
21521
- /** Endoflife */
21522
- endOfLife?: string | null;
21523
21503
  /**
21524
21504
  * Isexchangeable
21525
21505
  * @description this field only appears if pos in galoper settings is enabled and available in pos is true
@@ -21588,11 +21568,26 @@ export interface components {
21588
21568
  * @default false
21589
21569
  */
21590
21570
  hasExpiryDate: boolean | null;
21591
- /** Bestbeforedate */
21571
+ /**
21572
+ * Bestbeforedate
21573
+ * @description
21574
+ * - The date by which the item is best to be consumed or used for optimal quality. Quality may decline after this date, but the item might still be safe to use for a period
21575
+ * - visible when hasExpiryDate is true
21576
+ */
21592
21577
  bestBeforeDate?: number | null;
21593
- /** Removaldate */
21578
+ /**
21579
+ * Removaldate
21580
+ * @description
21581
+ * - The date after which the item must be removed from inventory or use.It is unsafe or completely unusable after this date
21582
+ * - visible when hasExpiryDate is true
21583
+ */
21594
21584
  removalDate?: number | null;
21595
- /** Alertdate */
21585
+ /**
21586
+ * Alertdate
21587
+ * @description
21588
+ * - A date to trigger an alert or notification before the expiry or removal date, allowing time for action (e.g., promotional sales, transfer, or disposal planning)
21589
+ * - visible when hasExpiryDate is true
21590
+ */
21596
21591
  alertDate?: number | null;
21597
21592
  };
21598
21593
  /** CreateItemSchema */
@@ -21615,7 +21610,10 @@ export interface components {
21615
21610
  skuCode?: string | null;
21616
21611
  /**
21617
21612
  * Barcodetype
21618
- * @description get default barcode type from inventory settings(/api/v1/settings/inventory/) if field value exist
21613
+ * @description
21614
+ * get default barcode type from inventory settings(/api/v1/settings/inventory/) if field value exist
21615
+ * - required when barcode is provided
21616
+ *
21619
21617
  */
21620
21618
  barcodeType?: string | null;
21621
21619
  /** Barcode */
@@ -21692,10 +21690,6 @@ export interface components {
21692
21690
  * @default false
21693
21691
  */
21694
21692
  availableInPos: boolean;
21695
- /** Shelflife */
21696
- shelfLife?: string | null;
21697
- /** Endoflife */
21698
- endOfLife?: string | null;
21699
21693
  /**
21700
21694
  * Isexchangeable
21701
21695
  * @description this field only appears if pos in galoper settings is enabled and available in pos is true
@@ -21717,14 +21711,14 @@ export interface components {
21717
21711
  * Defaultsellingpricecurrency
21718
21712
  * @description currency should be either companys currency or usd
21719
21713
  */
21720
- defaultSellingPriceCurrency: number;
21714
+ defaultSellingPriceCurrency?: number;
21721
21715
  /** Defaultcost */
21722
21716
  defaultCost?: number;
21723
21717
  /**
21724
21718
  * Defaultcostcurrency
21725
21719
  * @description currency should be either comapnys currency or usd
21726
21720
  */
21727
- defaultCostCurrency: number | null;
21721
+ defaultCostCurrency?: number | null;
21728
21722
  /** Leadtime */
21729
21723
  leadTime?: string | null;
21730
21724
  /** Minimumquantityorder */
@@ -21757,7 +21751,7 @@ export interface components {
21757
21751
  * Visibility and Requirement:
21758
21752
  * - Visible if the accounting module is active
21759
21753
  * API Endpoints to get default of transactional group:
21760
- * API Route : /api/v1/settings/accounting/subsidiary_accounts/?type=accountSettings and filter by initialGroup = true
21754
+ * API Route : /api/v1/settings/accounting/transactional_subsidiary_accounts/ and filter by initialGroup = true
21761
21755
  *
21762
21756
  */
21763
21757
  transactionalGroup?: number | null;
@@ -21773,11 +21767,26 @@ export interface components {
21773
21767
  * @default false
21774
21768
  */
21775
21769
  hasExpiryDate: boolean | null;
21776
- /** Bestbeforedate */
21770
+ /**
21771
+ * Bestbeforedate
21772
+ * @description
21773
+ * - The date by which the item is best to be consumed or used for optimal quality. Quality may decline after this date, but the item might still be safe to use for a period
21774
+ * - visible when hasExpiryDate is true
21775
+ */
21777
21776
  bestBeforeDate?: number | null;
21778
- /** Removaldate */
21777
+ /**
21778
+ * Removaldate
21779
+ * @description
21780
+ * - The date after which the item must be removed from inventory or use.It is unsafe or completely unusable after this date
21781
+ * - visible when hasExpiryDate is true
21782
+ */
21779
21783
  removalDate?: number | null;
21780
- /** Alertdate */
21784
+ /**
21785
+ * Alertdate
21786
+ * @description
21787
+ * - A date to trigger an alert or notification before the expiry or removal date, allowing time for action (e.g., promotional sales, transfer, or disposal planning)
21788
+ * - visible when hasExpiryDate is true
21789
+ */
21781
21790
  alertDate?: number | null;
21782
21791
  commissionCalculation?: components["schemas"]["CommissionCalculation"];
21783
21792
  /** Packages */
@@ -21804,7 +21813,7 @@ export interface components {
21804
21813
  */
21805
21814
  package?: string | null;
21806
21815
  /** @description Type of barcode used for the package */
21807
- barcodeType: components["schemas"]["BarcodeTypeValues"];
21816
+ barcodeType?: components["schemas"]["BarcodeTypeValues"];
21808
21817
  /**
21809
21818
  * Barcode
21810
21819
  * @description Unique barcode for the package
@@ -21819,22 +21828,22 @@ export interface components {
21819
21828
  * Defaultcost
21820
21829
  * @description Cost of the packed item
21821
21830
  */
21822
- defaultCost: number;
21831
+ defaultCost?: number;
21823
21832
  /**
21824
21833
  * Defaultcostcurrency
21825
21834
  * @description Price of the packed item in usd or company currency only
21826
21835
  */
21827
- defaultCostCurrency: number;
21836
+ defaultCostCurrency?: number;
21828
21837
  /**
21829
21838
  * Defaultsellingprice
21830
21839
  * @description Price of the packed item
21831
21840
  */
21832
- defaultSellingPrice: number;
21841
+ defaultSellingPrice?: number;
21833
21842
  /**
21834
21843
  * Defaultsellingpricecurrency
21835
21844
  * @description Price of the packed item in usd or company currency only
21836
21845
  */
21837
- defaultSellingPriceCurrency: number;
21846
+ defaultSellingPriceCurrency?: number;
21838
21847
  /**
21839
21848
  * Unitofmeasure
21840
21849
  * @description ID of the unit of measure for the packed item, should be chosen from the item's unit of measures
@@ -21927,10 +21936,6 @@ export interface components {
21927
21936
  weightUnitOfMeasure?: number | null;
21928
21937
  /** Availableinpos */
21929
21938
  availableInPos?: boolean | null;
21930
- /** Shelflife */
21931
- shelfLife?: string | null;
21932
- /** Endoflife */
21933
- endOfLife?: string | null;
21934
21939
  /**
21935
21940
  * Isexchangeable
21936
21941
  * @description this field only appears if pos in galoper settings is enabled and available in pos is true
@@ -21985,7 +21990,7 @@ export interface components {
21985
21990
  * Visibility and Requirement:
21986
21991
  * - Visible if the accounting module is active
21987
21992
  * API Endpoints to get default of transactional group:
21988
- * API Route : /api/v1/settings/accounting/subsidiary_accounts/?type=accountSettings and filter by initialGroup = true
21993
+ * API Route : /api/v1/settings/accounting/transactional_subsidiary_accounts/ and filter by initialGroup = true
21989
21994
  *
21990
21995
  */
21991
21996
  transactionalGroup?: number | null;
@@ -22000,11 +22005,26 @@ export interface components {
22000
22005
  * @default false
22001
22006
  */
22002
22007
  hasExpiryDate: boolean | null;
22003
- /** Bestbeforedate */
22008
+ /**
22009
+ * Bestbeforedate
22010
+ * @description
22011
+ * - The date by which the item is best to be consumed or used for optimal quality. Quality may decline after this date, but the item might still be safe to use for a period
22012
+ * - visible when hasExpiryDate is true
22013
+ */
22004
22014
  bestBeforeDate?: number | null;
22005
- /** Removaldate */
22015
+ /**
22016
+ * Removaldate
22017
+ * @description
22018
+ * - The date after which the item must be removed from inventory or use.It is unsafe or completely unusable after this date
22019
+ * - visible when hasExpiryDate is true
22020
+ */
22006
22021
  removalDate?: number | null;
22007
- /** Alertdate */
22022
+ /**
22023
+ * Alertdate
22024
+ * @description
22025
+ * - A date to trigger an alert or notification before the expiry or removal date, allowing time for action (e.g., promotional sales, transfer, or disposal planning)
22026
+ * - visible when hasExpiryDate is true
22027
+ */
22008
22028
  alertDate?: number | null;
22009
22029
  /**
22010
22030
  * Packages
@@ -24569,24 +24589,110 @@ export interface components {
24569
24589
  */
24570
24590
  delete: components["schemas"]["DeleteStockAdjustmentDetailSchema"][];
24571
24591
  };
24572
- /** BranchOpeningQuantitySchema */
24573
- BranchOpeningQuantitySchema: {
24592
+ /** BatchSerialSummarySchema */
24593
+ BatchSerialSummarySchema: {
24594
+ /**
24595
+ * Id
24596
+ * Format: uuid
24597
+ */
24598
+ id: string;
24599
+ /**
24600
+ * Number
24601
+ * @description Serial number or batch number based on the tracking method
24602
+ */
24603
+ number?: string | null;
24604
+ /**
24605
+ * Quantity
24606
+ * @default 1
24607
+ */
24608
+ quantity: number | null;
24609
+ /**
24610
+ * Expirydate
24611
+ * @description Expiry date for the item if item has_expiry is true
24612
+ */
24613
+ expiryDate?: string | null;
24614
+ };
24615
+ /** ItemPackageSummarySchema */
24616
+ ItemPackageSummarySchema: {
24617
+ /**
24618
+ * Id
24619
+ * Format: uuid
24620
+ */
24621
+ id: string;
24622
+ /**
24623
+ * Barcode
24624
+ * @description Barcode of the item
24625
+ */
24626
+ barcode: string;
24627
+ /**
24628
+ * Quantity
24629
+ * @description Quantity of the item
24630
+ */
24631
+ quantity: number;
24632
+ /** @description Package of the item */
24633
+ package: components["schemas"]["PackageSummarySchema"];
24634
+ /** Returnable */
24635
+ returnable: boolean;
24636
+ };
24637
+ /** OpeningQuantityDetailsSchema */
24638
+ OpeningQuantityDetailsSchema: {
24639
+ /**
24640
+ * Datecreated
24641
+ * Format: date-time
24642
+ */
24643
+ dateCreated: string;
24644
+ /** Datemodified */
24645
+ dateModified: string | null;
24646
+ createdBy: components["schemas"]["RecordUserSchema"];
24647
+ modifiedBy: components["schemas"]["RecordUserSchema"] | null;
24574
24648
  /** Id */
24575
24649
  id: number;
24576
- /** Name */
24577
- name: string;
24650
+ item: components["schemas"]["ItemMinimalSchema"];
24651
+ /** @description Tracking method: serial_number, batch, or quantity */
24652
+ trackInventoryBy?: components["schemas"]["TrackingMethodChoices"] | null;
24653
+ unitOfMeasure: components["schemas"]["UnitOfMeasureSummaryInfo"];
24654
+ itemPackage: components["schemas"]["ItemPackageSummarySchema"] | null;
24655
+ /** Openingquantity */
24656
+ openingQuantity: number;
24657
+ /** Tracking */
24658
+ tracking: components["schemas"]["OpeningQuantityItemTrackingSchema"][];
24578
24659
  };
24579
- /** OpeningQuantityHeaderListSchema */
24580
- OpeningQuantityHeaderListSchema: {
24581
- info: components["schemas"]["PageInfoSchema"];
24660
+ /** OpeningQuantityItemTrackingSchema */
24661
+ OpeningQuantityItemTrackingSchema: {
24582
24662
  /**
24583
- * Results
24584
- * @default []
24663
+ * Id
24664
+ * Format: uuid
24585
24665
  */
24586
- results: components["schemas"]["OpeningQuantityHeaderSchema"][];
24666
+ id: string;
24667
+ /**
24668
+ * Number
24669
+ * @description Serial number or batch number based on the tracking method
24670
+ */
24671
+ number?: string | null;
24672
+ /**
24673
+ * Quantity
24674
+ * @description
24675
+ * - get track_inventory_by from item
24676
+ * - if tracked by serial number, quantity must be 1,
24677
+ * - if tracked by serial number, and there is item_package,
24678
+ * serial number must be match total number of units in the item_package.
24679
+ * example: if item_package has 10 units, and i have 3 packages, 30 serial numbers are required.
24680
+ * - if tracked by quantity, quantity must be equal to opening quantity,
24681
+ * - if tracked by batch, quantity can be any number but the sum of all quantities must be equal to opening quantity.
24682
+ *
24683
+ * @default 1
24684
+ */
24685
+ quantity: number;
24686
+ batch: components["schemas"]["BatchSerialSummarySchema"] | null;
24687
+ serial: components["schemas"]["BatchSerialSummarySchema"] | null;
24688
+ /**
24689
+ * Expiry Date
24690
+ * @description Expiry date for this tracking if applicable
24691
+ */
24692
+ expiry_date?: string | null;
24587
24693
  };
24588
- /** OpeningQuantityHeaderSchema */
24589
- OpeningQuantityHeaderSchema: {
24694
+ /** OpeningQuantitySchema */
24695
+ OpeningQuantitySchema: {
24590
24696
  /**
24591
24697
  * Datecreated
24592
24698
  * Format: date-time
@@ -24602,60 +24708,118 @@ export interface components {
24602
24708
  approvalStatus: components["schemas"]["ApprovalValueChoices"];
24603
24709
  /** Serialnumber */
24604
24710
  serialNumber: number;
24605
- warehouse: components["schemas"]["WarehouseOpeningQuantitySchema"];
24606
- branch: components["schemas"]["BranchOpeningQuantitySchema"];
24711
+ warehouse: components["schemas"]["WarehouseSummaryInfo"];
24712
+ branch: components["schemas"]["BranchSummaryInfo"];
24607
24713
  /** Description */
24608
24714
  description?: string | null;
24609
24715
  /** Candelete */
24610
24716
  canDelete: boolean;
24717
+ /**
24718
+ * Details
24719
+ * @default []
24720
+ */
24721
+ details: components["schemas"]["OpeningQuantityDetailsSchema"][];
24611
24722
  };
24612
- /** WarehouseOpeningQuantitySchema */
24613
- WarehouseOpeningQuantitySchema: {
24614
- /** Id */
24615
- id: number;
24616
- /** Name */
24617
- name: string;
24618
- };
24619
- /** CreateOpeningQuantityDetailSchema */
24620
- CreateOpeningQuantityDetailSchema: {
24621
- /** Index */
24622
- index?: number | null;
24623
- /** Item */
24723
+ /**
24724
+ * PackageCategory
24725
+ * @enum {string}
24726
+ */
24727
+ PackageCategory: "primary" | "secondary" | "tertiary" | "disposable" | "sustainable" | "retail" | "luxury" | "flexible" | "rigid" | "custom";
24728
+ /**
24729
+ * TrackingMethodChoices
24730
+ * @enum {string}
24731
+ */
24732
+ TrackingMethodChoices: "serial_number" | "batch" | "quantity";
24733
+ /** CreateOpeningQuantityItemSchema */
24734
+ CreateOpeningQuantityItemSchema: {
24735
+ /**
24736
+ * Item
24737
+ * @description
24738
+ * - get active items only
24739
+ *
24740
+ */
24624
24741
  item: number;
24625
- /** Openingquantity */
24742
+ /**
24743
+ * Itempackage
24744
+ * Format: uuid
24745
+ */
24746
+ itemPackage?: string;
24747
+ /**
24748
+ * Unitofmeasure
24749
+ * @description
24750
+ * - get the unit of measure from the item units of measure
24751
+ * - if item_package is provided, use the unit of measure from the item_package
24752
+ * - if item_package and unit_of_measure is not provided, the system will use the unit of measure from the itemPackage
24753
+ *
24754
+ */
24755
+ unitOfMeasure?: number;
24756
+ /**
24757
+ * Openingquantity
24758
+ * @description
24759
+ * - if there is item_package, opening_quantity will be the number of packages
24760
+ * - if there is no item_package, opening_quantity will be the number of units
24761
+ * - in case of item_package, show the opening quantity as units too
24762
+ * - to get the number of units, multiply opening_quantity by item_package.quantity
24763
+ *
24764
+ */
24626
24765
  openingQuantity: number;
24766
+ /** Tracking */
24767
+ tracking: components["schemas"]["CreateOpeningQuantityItemTrackingSchema"][];
24627
24768
  };
24628
- /** OpeningQuantityCreateSchema */
24629
- OpeningQuantityCreateSchema: {
24630
- /** Warehouse */
24769
+ /** CreateOpeningQuantityItemTrackingSchema */
24770
+ CreateOpeningQuantityItemTrackingSchema: {
24771
+ /**
24772
+ * Number
24773
+ * @description Serial number or batch number based on the tracking method
24774
+ */
24775
+ number?: string | null;
24776
+ /**
24777
+ * Quantity
24778
+ * @description
24779
+ * - get track_inventory_by from item
24780
+ * - if tracked by serial number, quantity must be 1,
24781
+ * - if tracked by quantity, quantity must be equal to opening quantity,
24782
+ * - if tracked by batch, quantity can be any number but the sum of all quantities must be equal to opening quantity.
24783
+ *
24784
+ * @default 1
24785
+ */
24786
+ quantity: number | null;
24787
+ /**
24788
+ * Expirydate
24789
+ * @description
24790
+ * - check if item has_expiry_date is True
24791
+ * - if True, expiry date is required
24792
+ * - if False, expiry date is not required and should not be visible in the UI
24793
+ *
24794
+ */
24795
+ expiryDate?: string | null;
24796
+ };
24797
+ /** CreateOpeningQuantitySchema */
24798
+ CreateOpeningQuantitySchema: {
24799
+ /**
24800
+ * Warehouse
24801
+ * @description
24802
+ * - get the warehouse from the user assigned warehouses
24803
+ *
24804
+ */
24631
24805
  warehouse: number;
24632
- /** Branch */
24633
- branch: number;
24634
- /** Details */
24635
- details: components["schemas"]["CreateOpeningQuantityDetailSchema"][];
24636
24806
  /** Description */
24637
24807
  description?: string | null;
24638
24808
  status: components["schemas"]["InternalStatusOnCreateValueChoices"];
24809
+ /** Details */
24810
+ details: components["schemas"]["CreateOpeningQuantityItemSchema"][];
24639
24811
  };
24640
- /** ItemOpeningQuantitySchema */
24641
- ItemOpeningQuantitySchema: {
24642
- /** Id */
24643
- id: number;
24644
- /** Name */
24645
- name: string;
24646
- };
24647
- /** OpeningQuantityDetailsListSchema */
24648
- OpeningQuantityDetailsListSchema: {
24812
+ /** OpeningQuantityHeaderListSchema */
24813
+ OpeningQuantityHeaderListSchema: {
24649
24814
  info: components["schemas"]["PageInfoSchema"];
24650
- header: components["schemas"]["OpeningQuantityHeaderSchema"];
24651
24815
  /**
24652
24816
  * Results
24653
24817
  * @default []
24654
24818
  */
24655
- results: components["schemas"]["OpeningQuantityDetailsSchema"][];
24819
+ results: components["schemas"]["OpeningQuantityHeaderSchema"][];
24656
24820
  };
24657
- /** OpeningQuantityDetailsSchema */
24658
- OpeningQuantityDetailsSchema: {
24821
+ /** OpeningQuantityHeaderSchema */
24822
+ OpeningQuantityHeaderSchema: {
24659
24823
  /**
24660
24824
  * Datecreated
24661
24825
  * Format: date-time
@@ -24667,56 +24831,97 @@ export interface components {
24667
24831
  modifiedBy: components["schemas"]["RecordUserSchema"] | null;
24668
24832
  /** Id */
24669
24833
  id: number;
24670
- item: components["schemas"]["ItemOpeningQuantitySchema"];
24671
- /** Openingquantity */
24672
- openingQuantity: number;
24673
- };
24674
- /** ChangeOpeningQuantitySchema */
24675
- ChangeOpeningQuantitySchema: {
24676
- /** Index */
24677
- index?: number | null;
24678
- /** Id */
24679
- id: number;
24680
- /** Item */
24681
- item?: number | null;
24682
- /** Openingquantity */
24683
- openingQuantity?: number | null;
24834
+ status: components["schemas"]["InternalStatusOnReturnValueChoices"];
24835
+ approvalStatus: components["schemas"]["ApprovalValueChoices"];
24836
+ /** Serialnumber */
24837
+ serialNumber: number;
24838
+ warehouse: components["schemas"]["WarehouseSummaryInfo"];
24839
+ branch: components["schemas"]["BranchSummaryInfo"];
24840
+ /** Description */
24841
+ description?: string | null;
24842
+ /** Candelete */
24843
+ canDelete: boolean;
24684
24844
  };
24685
- /** DeleteOpeningQuantityDetailSchema */
24686
- DeleteOpeningQuantityDetailSchema: {
24687
- /** Index */
24688
- index?: number | null;
24689
- /** Id */
24690
- id: number;
24845
+ /** UpdateOpeningQuantityItemTrackingSchema */
24846
+ UpdateOpeningQuantityItemTrackingSchema: {
24847
+ /**
24848
+ * Number
24849
+ * @description Serial number or batch number based on the tracking method
24850
+ */
24851
+ number?: string | null;
24852
+ /**
24853
+ * Quantity
24854
+ * @description
24855
+ * - get track_inventory_by from item
24856
+ * - if tracked by serial number, quantity must be 1,
24857
+ * - if tracked by quantity, quantity must be equal to opening quantity,
24858
+ * - if tracked by batch, quantity can be any number but the sum of all quantities must be equal to opening quantity.
24859
+ *
24860
+ * @default 1
24861
+ */
24862
+ quantity: number | null;
24863
+ /**
24864
+ * Expirydate
24865
+ * @description
24866
+ * - check if item has_expiry_date is True
24867
+ * - if True, expiry date is required
24868
+ * - if False, expiry date is not required and should not be visible in the UI
24869
+ *
24870
+ */
24871
+ expiryDate?: string | null;
24872
+ /**
24873
+ * Id
24874
+ * @description ID of the tracking (for update only)
24875
+ */
24876
+ id?: string | null;
24691
24877
  };
24692
- /** OpeningQuantityUpdateSchema */
24693
- OpeningQuantityUpdateSchema: {
24878
+ /** UpdateOpeningQuantitySchema */
24879
+ UpdateOpeningQuantitySchema: {
24694
24880
  /** Warehouse */
24695
- warehouse?: number | null;
24696
- /** Branch */
24697
- branch?: number | null;
24881
+ warehouse: number;
24698
24882
  /** Description */
24699
24883
  description?: string | null;
24700
24884
  status: components["schemas"]["InternalStatusOnCreateValueChoices"];
24701
- details?: components["schemas"]["UpdateOpeningQuantityDetailSchema"] | null;
24885
+ /** Details */
24886
+ details: components["schemas"]["updateOpeningQuantityItemSchema"][];
24702
24887
  };
24703
- /** UpdateOpeningQuantityDetailSchema */
24704
- UpdateOpeningQuantityDetailSchema: {
24888
+ /** updateOpeningQuantityItemSchema */
24889
+ updateOpeningQuantityItemSchema: {
24705
24890
  /**
24706
- * Add
24707
- * @default []
24891
+ * Item
24892
+ * @description
24893
+ * - get active items only
24894
+ *
24708
24895
  */
24709
- add: components["schemas"]["CreateOpeningQuantityDetailSchema"][];
24896
+ item: number;
24710
24897
  /**
24711
- * Update
24712
- * @default []
24898
+ * Itempackage
24899
+ * Format: uuid
24713
24900
  */
24714
- update: components["schemas"]["ChangeOpeningQuantitySchema"][];
24901
+ itemPackage?: string;
24715
24902
  /**
24716
- * Delete
24717
- * @default []
24903
+ * Unitofmeasure
24904
+ * @description
24905
+ * - get the unit of measure from the item units of measure
24906
+ * - if item_package is provided, use the unit of measure from the item_package
24907
+ * - if item_package and unit_of_measure is not provided, the system will use the unit of measure from the itemPackage
24908
+ *
24718
24909
  */
24719
- delete: components["schemas"]["DeleteOpeningQuantityDetailSchema"][];
24910
+ unitOfMeasure?: number;
24911
+ /**
24912
+ * Openingquantity
24913
+ * @description
24914
+ * - if there is item_package, opening_quantity will be the number of packages
24915
+ * - if there is no item_package, opening_quantity will be the number of units
24916
+ * - in case of item_package, show the opening quantity as units too
24917
+ * - to get the number of units, multiply opening_quantity by item_package.quantity
24918
+ *
24919
+ */
24920
+ openingQuantity: number;
24921
+ /** Tracking */
24922
+ tracking: components["schemas"]["UpdateOpeningQuantityItemTrackingSchema"][];
24923
+ /** Id */
24924
+ id?: number;
24720
24925
  };
24721
24926
  /** BranchInternalTransferSchema */
24722
24927
  BranchInternalTransferSchema: {
@@ -27007,7 +27212,7 @@ export interface components {
27007
27212
  /**
27008
27213
  * Id
27009
27214
  * Format: uuid
27010
- * @example ad3f90f5-e761-4d73-b258-28f22812106a
27215
+ * @example 895aee59-156c-40b8-b3bb-fba9b0a573e0
27011
27216
  */
27012
27217
  id: string;
27013
27218
  /**
@@ -30991,28 +31196,6 @@ export interface components {
30991
31196
  /** Name */
30992
31197
  name: string;
30993
31198
  };
30994
- /** ItemPackageSummarySchema */
30995
- ItemPackageSummarySchema: {
30996
- /**
30997
- * Id
30998
- * Format: uuid
30999
- */
31000
- id: string;
31001
- /**
31002
- * Barcode
31003
- * @description Barcode of the item
31004
- */
31005
- barcode: string;
31006
- /**
31007
- * Quantity
31008
- * @description Quantity of the item
31009
- */
31010
- quantity: number;
31011
- /** @description Package of the item */
31012
- package: components["schemas"]["PackageSummarySchema"];
31013
- /** Returnable */
31014
- returnable: boolean;
31015
- };
31016
31199
  /**
31017
31200
  * LinkedDocumentsSchema
31018
31201
  * @description Schema for individual linked documents.
@@ -31042,11 +31225,6 @@ export interface components {
31042
31225
  [key: string]: components["schemas"]["LinkedDocumentsSchema"];
31043
31226
  }[];
31044
31227
  };
31045
- /**
31046
- * PackageCategory
31047
- * @enum {string}
31048
- */
31049
- PackageCategory: "primary" | "secondary" | "tertiary" | "disposable" | "sustainable" | "retail" | "luxury" | "flexible" | "rigid" | "custom";
31050
31228
  /** ReasonSummaryInfo */
31051
31229
  ReasonSummaryInfo: {
31052
31230
  /** Id */
@@ -35275,7 +35453,7 @@ export interface components {
35275
35453
  quantity: number | null;
35276
35454
  /**
35277
35455
  * Expirydate
35278
- * @description Expiry date for the item if applicable
35456
+ * @description Expiry date for the item if item has expiry is true
35279
35457
  */
35280
35458
  expiryDate?: string | null;
35281
35459
  };
@@ -35374,11 +35552,6 @@ export interface components {
35374
35552
  /** Serialnumber */
35375
35553
  serialNumber: string;
35376
35554
  };
35377
- /**
35378
- * TrackingMethodChoices
35379
- * @enum {string}
35380
- */
35381
- TrackingMethodChoices: "serial_number" | "batch" | "quantity";
35382
35555
  /** CreateOrUpdateGoodsReceiptNoteItemTrackingSchema */
35383
35556
  CreateOrUpdateGoodsReceiptNoteItemTrackingSchema: {
35384
35557
  /**
@@ -55596,8 +55769,7 @@ export interface operations {
55596
55769
  page?: number;
55597
55770
  /** @description Page size */
55598
55771
  pageSize?: number;
55599
- /** @description Branch ID to filter by */
55600
- branchId?: number;
55772
+ search?: string | null;
55601
55773
  };
55602
55774
  header?: never;
55603
55775
  path?: never;
@@ -55661,7 +55833,7 @@ export interface operations {
55661
55833
  };
55662
55834
  requestBody: {
55663
55835
  content: {
55664
- "application/json": components["schemas"]["OpeningQuantityCreateSchema"];
55836
+ "application/json": components["schemas"]["CreateOpeningQuantitySchema"];
55665
55837
  };
55666
55838
  };
55667
55839
  responses: {
@@ -55671,7 +55843,7 @@ export interface operations {
55671
55843
  [name: string]: unknown;
55672
55844
  };
55673
55845
  content: {
55674
- "application/json": components["schemas"]["MessageWithCode"];
55846
+ "application/json": components["schemas"]["OpeningQuantitySchema"];
55675
55847
  };
55676
55848
  };
55677
55849
  /** @description Bad Request */
@@ -55701,15 +55873,6 @@ export interface operations {
55701
55873
  "application/json": components["schemas"]["MessageWithCode"];
55702
55874
  };
55703
55875
  };
55704
- /** @description Conflict */
55705
- 409: {
55706
- headers: {
55707
- [name: string]: unknown;
55708
- };
55709
- content: {
55710
- "application/json": components["schemas"]["MessageWithCode"];
55711
- };
55712
- };
55713
55876
  /** @description Internal Server Error */
55714
55877
  500: {
55715
55878
  headers: {
@@ -55721,19 +55884,12 @@ export interface operations {
55721
55884
  };
55722
55885
  };
55723
55886
  };
55724
- inventory_opening_stock_views_list_opening_quantity_details: {
55887
+ inventory_opening_stock_views_get_opening_quantity: {
55725
55888
  parameters: {
55726
- query?: {
55727
- /** @description Page number */
55728
- page?: number;
55729
- /** @description Page size */
55730
- pageSize?: number;
55731
- /** @description Branch ID to filter by */
55732
- branchId?: number;
55733
- };
55889
+ query?: never;
55734
55890
  header?: never;
55735
55891
  path: {
55736
- headerId: number;
55892
+ id: number;
55737
55893
  };
55738
55894
  cookie?: never;
55739
55895
  };
@@ -55745,16 +55901,7 @@ export interface operations {
55745
55901
  [name: string]: unknown;
55746
55902
  };
55747
55903
  content: {
55748
- "application/json": components["schemas"]["OpeningQuantityDetailsListSchema"];
55749
- };
55750
- };
55751
- /** @description Bad Request */
55752
- 400: {
55753
- headers: {
55754
- [name: string]: unknown;
55755
- };
55756
- content: {
55757
- "application/json": components["schemas"]["MessageWithCode"];
55904
+ "application/json": components["schemas"]["OpeningQuantitySchema"];
55758
55905
  };
55759
55906
  };
55760
55907
  /** @description Forbidden */
@@ -55791,13 +55938,13 @@ export interface operations {
55791
55938
  query?: never;
55792
55939
  header?: never;
55793
55940
  path: {
55794
- headerId: number;
55941
+ id: number;
55795
55942
  };
55796
55943
  cookie?: never;
55797
55944
  };
55798
55945
  requestBody: {
55799
55946
  content: {
55800
- "application/json": components["schemas"]["OpeningQuantityUpdateSchema"];
55947
+ "application/json": components["schemas"]["UpdateOpeningQuantitySchema"];
55801
55948
  };
55802
55949
  };
55803
55950
  responses: {
@@ -55807,7 +55954,7 @@ export interface operations {
55807
55954
  [name: string]: unknown;
55808
55955
  };
55809
55956
  content: {
55810
- "application/json": components["schemas"]["MessageWithCode"];
55957
+ "application/json": components["schemas"]["OpeningQuantitySchema"];
55811
55958
  };
55812
55959
  };
55813
55960
  /** @description Bad Request */
@@ -55837,15 +55984,6 @@ export interface operations {
55837
55984
  "application/json": components["schemas"]["MessageWithCode"];
55838
55985
  };
55839
55986
  };
55840
- /** @description Conflict */
55841
- 409: {
55842
- headers: {
55843
- [name: string]: unknown;
55844
- };
55845
- content: {
55846
- "application/json": components["schemas"]["MessageWithCode"];
55847
- };
55848
- };
55849
55987
  /** @description Internal Server Error */
55850
55988
  500: {
55851
55989
  headers: {
@@ -55857,34 +55995,23 @@ export interface operations {
55857
55995
  };
55858
55996
  };
55859
55997
  };
55860
- inventory_opening_stock_views_rest_to_draft: {
55998
+ inventory_opening_stock_views_delete_opening_quantity: {
55861
55999
  parameters: {
55862
56000
  query?: never;
55863
56001
  header?: never;
55864
56002
  path: {
55865
- headerId: number;
56003
+ id: number;
55866
56004
  };
55867
56005
  cookie?: never;
55868
56006
  };
55869
56007
  requestBody?: never;
55870
56008
  responses: {
55871
- /** @description OK */
55872
- 200: {
55873
- headers: {
55874
- [name: string]: unknown;
55875
- };
55876
- content: {
55877
- "application/json": components["schemas"]["MessageWithCode"];
55878
- };
55879
- };
55880
- /** @description Bad Request */
55881
- 400: {
56009
+ /** @description No Content */
56010
+ 204: {
55882
56011
  headers: {
55883
56012
  [name: string]: unknown;
55884
56013
  };
55885
- content: {
55886
- "application/json": components["schemas"]["MessageWithCode"];
55887
- };
56014
+ content?: never;
55888
56015
  };
55889
56016
  /** @description Forbidden */
55890
56017
  403: {
@@ -55915,44 +56042,28 @@ export interface operations {
55915
56042
  };
55916
56043
  };
55917
56044
  };
55918
- inventory_opening_stock_views_delete_opening_quantity_header: {
56045
+ inventory_opening_stock_views_reset_to_draft: {
55919
56046
  parameters: {
55920
56047
  query?: never;
55921
56048
  header?: never;
55922
56049
  path: {
55923
- headerId: number;
56050
+ id: number;
55924
56051
  };
55925
56052
  cookie?: never;
55926
56053
  };
55927
56054
  requestBody?: never;
55928
56055
  responses: {
55929
- /** @description No Content */
55930
- 204: {
55931
- headers: {
55932
- [name: string]: unknown;
55933
- };
55934
- content?: never;
55935
- };
55936
- /** @description Forbidden */
55937
- 403: {
55938
- headers: {
55939
- [name: string]: unknown;
55940
- };
55941
- content: {
55942
- "application/json": components["schemas"]["MessageWithCode"];
55943
- };
55944
- };
55945
- /** @description Not Found */
55946
- 404: {
56056
+ /** @description OK */
56057
+ 200: {
55947
56058
  headers: {
55948
56059
  [name: string]: unknown;
55949
56060
  };
55950
56061
  content: {
55951
- "application/json": components["schemas"]["MessageWithCode"];
56062
+ "application/json": components["schemas"]["OpeningQuantitySchema"];
55952
56063
  };
55953
56064
  };
55954
- /** @description Internal Server Error */
55955
- 500: {
56065
+ /** @description Bad Request */
56066
+ 400: {
55956
56067
  headers: {
55957
56068
  [name: string]: unknown;
55958
56069
  };
@@ -55960,26 +56071,6 @@ export interface operations {
55960
56071
  "application/json": components["schemas"]["MessageWithCode"];
55961
56072
  };
55962
56073
  };
55963
- };
55964
- };
55965
- inventory_opening_stock_views_delete_opening_quantity_detail: {
55966
- parameters: {
55967
- query?: never;
55968
- header?: never;
55969
- path: {
55970
- detailId: number;
55971
- };
55972
- cookie?: never;
55973
- };
55974
- requestBody?: never;
55975
- responses: {
55976
- /** @description No Content */
55977
- 204: {
55978
- headers: {
55979
- [name: string]: unknown;
55980
- };
55981
- content?: never;
55982
- };
55983
56074
  /** @description Forbidden */
55984
56075
  403: {
55985
56076
  headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erp-galoper/types",
3
- "version": "1.0.580",
3
+ "version": "1.0.582",
4
4
  "main": "openapi.ts",
5
5
  "types": "openapi.ts",
6
6
  "files": ["openapi.ts"],