@erp-galoper/types 1.0.1949 → 1.0.1951

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 +114 -33
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -621,6 +621,12 @@ export interface paths {
621
621
  * - ``only``: return only landed cost service items
622
622
  * - ``include``: return every item
623
623
  *
624
+ * ``priceListIds``: enriches each item with per-UoM/package ``prices`` for the given lists.
625
+ * ``filterByPriceList`` (default ``true``): when ``priceListIds`` is set, only items on those
626
+ * lists are returned. Set to ``false`` to return every item matching other filters; items not
627
+ * on a list get ``prices: []``, items on a list get calculated prices (including pending
628
+ * values on draft/unapproved lists).
629
+ *
624
630
  * Responses:
625
631
  * - 200: ItemListSchema
626
632
  * - 400: {"message": "Error applying filter {error}", "code": "invalidFilterFormat"}
@@ -14958,14 +14964,16 @@ export interface paths {
14958
14964
  * @description Partially update a price list without resending the full payload.
14959
14965
  *
14960
14966
  * Header fields (any combination):
14961
- * - `name`
14962
- * - `description`
14963
- * - `notes`
14967
+ * - `name`, `description`, `notes`
14968
+ * - `branch`, `status`, `currency`
14969
+ * - `regions`, `customers`, `customerGroups`
14970
+ * - `startDate`, `endDate`
14971
+ * - `attachments`
14964
14972
  *
14965
14973
  * Item operations (optional):
14966
14974
  * - **Create**: omit `id`
14967
14975
  * - **Update**: include `id` with a positive `unitPrice`
14968
- * - **Delete**: include `id` with `unitPrice` set to 0 or null
14976
+ * - **Delete**: include `id` with all pricing fields (`unitPrice`, `minPrice`, `maxPrice`, `profit`, `minProfit`, `maxProfit`) unset, null, or 0
14969
14977
  *
14970
14978
  * Permission key: `salespricelist = ['change']`
14971
14979
  *
@@ -27793,10 +27801,16 @@ export interface components {
27793
27801
  * @default []
27794
27802
  */
27795
27803
  taxes: components["schemas"]["TaxSharedSchema"][];
27796
- /** Minprice */
27797
- minPrice: number | null;
27798
- /** Maxprice */
27799
- maxPrice: number | null;
27804
+ /**
27805
+ * Minprice
27806
+ * @description Database value: approved minimum price. For calculated effective prices based on pricing type/method, use the min_price field at the prices array level.
27807
+ */
27808
+ minPrice?: number | null;
27809
+ /**
27810
+ * Maxprice
27811
+ * @description Database value: approved maximum price. For calculated effective prices based on pricing type/method, use the max_price field at the prices array level.
27812
+ */
27813
+ maxPrice?: number | null;
27800
27814
  /** Pendingminprice */
27801
27815
  pendingMinPrice: number | null;
27802
27816
  /** Pendingmaxprice */
@@ -27821,6 +27835,16 @@ export interface components {
27821
27835
  * Format: uuid
27822
27836
  */
27823
27837
  priceListId: string;
27838
+ /**
27839
+ * Minprice
27840
+ * @description Calculated minimum price based on pricing type/method for this price list
27841
+ */
27842
+ minPrice?: number | null;
27843
+ /**
27844
+ * Maxprice
27845
+ * @description Calculated maximum price based on pricing type/method for this price list
27846
+ */
27847
+ maxPrice?: number | null;
27824
27848
  priceListItem?: components["schemas"]["PriceListItemSchema"] | null;
27825
27849
  };
27826
27850
  /** QuantityGroupSchema */
@@ -50625,9 +50649,9 @@ export interface components {
50625
50649
  secondaryRate?: string;
50626
50650
  /**
50627
50651
  * Unitprice
50628
- * @description The manually set unit price for the item. Required when using the 'manual' pricing method with 'fixed' pricing type.
50652
+ * @description The manually set unit price for the item (this field is a number). Required when using the 'manual' pricing method with 'fixed' pricing type.
50629
50653
  */
50630
- unitPrice?: number;
50654
+ unitPrice?: string;
50631
50655
  /**
50632
50656
  * Taxes
50633
50657
  * @description Only visible when price list type is retail, list of tax ids to be applied to the item
@@ -50636,29 +50660,29 @@ export interface components {
50636
50660
  taxes: string[];
50637
50661
  /**
50638
50662
  * Minprice
50639
- * @description The minimum price of the item. Required when using the 'manual' pricing method with 'range' pricing type.
50663
+ * @description The minimum price of the item (this field is a number). Required when using the 'manual' pricing method with 'range' pricing type.
50640
50664
  */
50641
- minPrice?: number;
50665
+ minPrice?: string;
50642
50666
  /**
50643
50667
  * Maxprice
50644
- * @description The maximum price of the item. Required when using the 'manual' pricing method with 'range' pricing type.
50668
+ * @description The maximum price of the item (this field is a number). Required when using the 'manual' pricing method with 'range' pricing type.
50645
50669
  */
50646
- maxPrice?: number;
50670
+ maxPrice?: string;
50647
50671
  /**
50648
50672
  * Minprofit
50649
- * @description The minimum profit margin percentage for the item. Required when using the 'profit-based' pricing method with 'range' pricing type.
50673
+ * @description The minimum profit margin percentage for the item (this field is a number). Required when using the 'profit-based' pricing method with 'range' pricing type.
50650
50674
  */
50651
- minProfit?: number;
50675
+ minProfit?: string;
50652
50676
  /**
50653
50677
  * Maxprofit
50654
- * @description The maximum profit margin percentage for the item. Required when using the 'profit-based' pricing method with 'range' pricing type.
50678
+ * @description The maximum profit margin percentage for the item (this field is a number). Required when using the 'profit-based' pricing method with 'range' pricing type.
50655
50679
  */
50656
- maxProfit?: number;
50680
+ maxProfit?: string;
50657
50681
  /**
50658
50682
  * Profit
50659
- * @description The profit margin percentage for the item. Required when using the 'profit-based' pricing method with 'fixed' pricing type.
50683
+ * @description The profit margin percentage for the item (this field is a number). Required when using the 'profit-based' pricing method with 'fixed' pricing type.
50660
50684
  */
50661
- profit?: number;
50685
+ profit?: string;
50662
50686
  /** Cost */
50663
50687
  cost?: number | null;
50664
50688
  };
@@ -50853,24 +50877,39 @@ export interface components {
50853
50877
  secondaryRate?: string;
50854
50878
  /**
50855
50879
  * Unitprice
50856
- * @description Unit price. When updating an existing line (id provided), 0 or null deletes the line.
50880
+ * @description Unit price (this field is a number). When updating an existing line (id provided), the line is deleted only when unitPrice, minPrice, maxPrice, profit, minProfit, and maxProfit are all unset, null, or 0.
50857
50881
  */
50858
- unitPrice?: number;
50882
+ unitPrice?: string;
50859
50883
  /**
50860
50884
  * Taxes
50861
50885
  * @description Tax IDs applied to the item (retail price lists only).
50862
50886
  */
50863
50887
  taxes?: string[] | null;
50864
- /** Minprice */
50865
- minPrice?: number;
50866
- /** Maxprice */
50867
- maxPrice?: number;
50868
- /** Minprofit */
50869
- minProfit?: number;
50870
- /** Maxprofit */
50871
- maxProfit?: number;
50872
- /** Profit */
50873
- profit?: number;
50888
+ /**
50889
+ * Minprice
50890
+ * @description This field is a number.
50891
+ */
50892
+ minPrice?: string;
50893
+ /**
50894
+ * Maxprice
50895
+ * @description This field is a number.
50896
+ */
50897
+ maxPrice?: string;
50898
+ /**
50899
+ * Minprofit
50900
+ * @description This field is a number.
50901
+ */
50902
+ minProfit?: string;
50903
+ /**
50904
+ * Maxprofit
50905
+ * @description This field is a number.
50906
+ */
50907
+ maxProfit?: string;
50908
+ /**
50909
+ * Profit
50910
+ * @description This field is a number.
50911
+ */
50912
+ profit?: string;
50874
50913
  /** Cost */
50875
50914
  cost?: number | null;
50876
50915
  };
@@ -50881,6 +50920,46 @@ export interface components {
50881
50920
  * @description Name of the price list.
50882
50921
  */
50883
50922
  name?: string | null;
50923
+ status?: components["schemas"]["InternalStatusOnCreateValueChoices"] | null;
50924
+ /**
50925
+ * Currency
50926
+ * @description ID of the currency in which the prices are defined, needed when multicurrency is enabled, should be in company's currency or usd
50927
+ */
50928
+ currency?: string | null;
50929
+ /**
50930
+ * Regions
50931
+ * @description List of region IDs where the price list applies.
50932
+ * Mutually exclusive with customers and customer groups — only one option can be selected.
50933
+ * If type is retail, this field should be hidden and not required.
50934
+ */
50935
+ regions?: number[] | null;
50936
+ /**
50937
+ * Customers
50938
+ * @description "
50939
+ * List of customer IDs to whom this price list applies.
50940
+ * Mutually exclusive with regions and customer groups — only one option can be selected.
50941
+ * If type is retail, this field should be hidden and not required.
50942
+ */
50943
+ customers?: string[] | null;
50944
+ /**
50945
+ * Customergroups
50946
+ * @description List of segmentation group IDs to which the price list applies, should be filtered by type customer.
50947
+ * Mutually exclusive with regions and customers — only one option can be selected.
50948
+ * If type is retail, this field should be hidden and not required.
50949
+ */
50950
+ customerGroups?: string[] | null;
50951
+ /**
50952
+ * Startdate
50953
+ * @description - Start date from which the price list becomes valid- visible when price list type not equal to retail
50954
+ */
50955
+ startDate?: string | null;
50956
+ /**
50957
+ * Enddate
50958
+ * @description - End date until which the price list is valid. Leave blank if the price list does not have an expiration date.- visible when price list type not equal to retail
50959
+ */
50960
+ endDate?: string | null;
50961
+ /** Attachments */
50962
+ attachments?: string[] | null;
50884
50963
  /** Description */
50885
50964
  description?: string | null;
50886
50965
  /** Notes */
@@ -50891,7 +50970,7 @@ export interface components {
50891
50970
  *
50892
50971
  * - **Create**: omit `id`
50893
50972
  * - **Update**: include `id` with a positive `unitPrice`
50894
- * - **Delete**: include `id` with `unitPrice` set to 0 or null
50973
+ * - **Delete**: include `id` with all pricing fields unset, null, or 0
50895
50974
  */
50896
50975
  items?: components["schemas"]["PatchSalesPriceListItemSchema"][] | null;
50897
50976
  };
@@ -66088,6 +66167,8 @@ export interface operations {
66088
66167
  include?: components["schemas"]["ItemIncludeOption"][] | null;
66089
66168
  /** @description used to get prices of items in offers and promotoins feature or sales features(quotation,order, invoice) */
66090
66169
  priceListIds?: string[];
66170
+ /** @description When priceListIds is provided: true (default) returns only items on those price lists; false returns all items matching other filters and enriches each with prices (empty array if not on the list). */
66171
+ filterByPriceList?: boolean;
66091
66172
  /** @description required when price list ids is provided, should be sales if called in sales features or offers if called in offers and promotions feature */
66092
66173
  type?: "sales" | "offers";
66093
66174
  /** @description Required when priceListIds is provided and type is sales, or when retrieving default selling/purchase price with customerId/supplierId respectively. Rate is taken from the document itself. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erp-galoper/types",
3
- "version": "1.0.1949",
3
+ "version": "1.0.1951",
4
4
  "main": "openapi.ts",
5
5
  "types": "openapi.ts",
6
6
  "files": ["openapi.ts"],