@erp-galoper/types 1.0.1931 → 1.0.1933
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.
- package/openapi.ts +225 -18
- package/package.json +1 -1
package/openapi.ts
CHANGED
|
@@ -14576,6 +14576,9 @@ export interface paths {
|
|
|
14576
14576
|
*
|
|
14577
14577
|
*
|
|
14578
14578
|
* Permission key: `salespricelist = ['add']`
|
|
14579
|
+
*
|
|
14580
|
+
* Query Parameters:
|
|
14581
|
+
* - includeItems: If True, include price list items in the response. Default: False (faster). When False, items is [].
|
|
14579
14582
|
*/
|
|
14580
14583
|
post: operations["sales_price_list_views_create_sales_price_list"];
|
|
14581
14584
|
delete?: never;
|
|
@@ -14667,6 +14670,7 @@ export interface paths {
|
|
|
14667
14670
|
* - fullItem: If True, include full item details with images, attributes, etc. (slower). Default: False (faster).
|
|
14668
14671
|
* - includeLiveCost: If True, calculate live costs for all items (slower). Default: False (faster).
|
|
14669
14672
|
* - includeBarcodes: If True, include barcodes for items. Default: True.
|
|
14673
|
+
* - includeItems: If True, include price list items in the response. Default: False (faster). When False, items is [].
|
|
14670
14674
|
*
|
|
14671
14675
|
* Permission key: `salespricelist = ['view']`
|
|
14672
14676
|
*/
|
|
@@ -14708,6 +14712,9 @@ export interface paths {
|
|
|
14708
14712
|
* - 500: server error
|
|
14709
14713
|
*
|
|
14710
14714
|
* Permission key: `salespricelist = ['change']`
|
|
14715
|
+
*
|
|
14716
|
+
* Query Parameters:
|
|
14717
|
+
* - includeItems: If True, include price list items in the response. Default: False (faster). When False, items is [].
|
|
14711
14718
|
*/
|
|
14712
14719
|
put: operations["sales_price_list_views_update_sales_price_list"];
|
|
14713
14720
|
post?: never;
|
|
@@ -14730,7 +14737,26 @@ export interface paths {
|
|
|
14730
14737
|
delete: operations["sales_price_list_views_delete_sales_price_list"];
|
|
14731
14738
|
options?: never;
|
|
14732
14739
|
head?: never;
|
|
14733
|
-
|
|
14740
|
+
/**
|
|
14741
|
+
* Patch Sales Price List Items
|
|
14742
|
+
* @description Partially update a price list without resending the full payload.
|
|
14743
|
+
*
|
|
14744
|
+
* Header fields (any combination):
|
|
14745
|
+
* - `name`
|
|
14746
|
+
* - `description`
|
|
14747
|
+
* - `notes`
|
|
14748
|
+
*
|
|
14749
|
+
* Item operations (optional):
|
|
14750
|
+
* - **Create**: omit `id`
|
|
14751
|
+
* - **Update**: include `id` with a positive `unitPrice`
|
|
14752
|
+
* - **Delete**: include `id` with `unitPrice` set to 0 or null
|
|
14753
|
+
*
|
|
14754
|
+
* Permission key: `salespricelist = ['change']`
|
|
14755
|
+
*
|
|
14756
|
+
* Query Parameters:
|
|
14757
|
+
* - includeItems: If True, include price list items in the response. Default: False (faster). When False, items is [].
|
|
14758
|
+
*/
|
|
14759
|
+
patch: operations["sales_price_list_views_patch_sales_price_list_items"];
|
|
14734
14760
|
trace?: never;
|
|
14735
14761
|
};
|
|
14736
14762
|
"/api/v1/sales/price-list/{id}/refresh-prices/": {
|
|
@@ -27467,28 +27493,67 @@ export interface components {
|
|
|
27467
27493
|
* @enum {string}
|
|
27468
27494
|
*/
|
|
27469
27495
|
PackageCategory: "primary" | "secondary" | "tertiary" | "disposable" | "sustainable" | "retail" | "luxury" | "flexible" | "rigid" | "custom";
|
|
27470
|
-
/**
|
|
27471
|
-
|
|
27496
|
+
/** PriceListItemSchema */
|
|
27497
|
+
PriceListItemSchema: {
|
|
27472
27498
|
/**
|
|
27473
|
-
*
|
|
27499
|
+
* Id
|
|
27474
27500
|
* Format: uuid
|
|
27475
27501
|
*/
|
|
27476
|
-
|
|
27477
|
-
/**
|
|
27478
|
-
|
|
27502
|
+
id: string;
|
|
27503
|
+
/**
|
|
27504
|
+
* Cost
|
|
27505
|
+
* @description This field is a number
|
|
27506
|
+
*/
|
|
27507
|
+
cost: string | null;
|
|
27508
|
+
/**
|
|
27509
|
+
* Livecost
|
|
27510
|
+
* @description This field is a number representing the current live cost of the item
|
|
27511
|
+
*/
|
|
27512
|
+
liveCost?: string | null;
|
|
27513
|
+
/** Unitprice */
|
|
27514
|
+
unitPrice: number | null;
|
|
27515
|
+
/** Pendingunitprice */
|
|
27516
|
+
pendingUnitPrice: number | null;
|
|
27517
|
+
/**
|
|
27518
|
+
* Posunitprice
|
|
27519
|
+
* @description only visible when price list type is retail
|
|
27520
|
+
*/
|
|
27521
|
+
posUnitPrice: number | null;
|
|
27522
|
+
/**
|
|
27523
|
+
* Taxes
|
|
27524
|
+
* @description List of taxes applied to the item
|
|
27525
|
+
* @default []
|
|
27526
|
+
*/
|
|
27527
|
+
taxes: components["schemas"]["TaxSharedSchema"][];
|
|
27479
27528
|
/** Minprice */
|
|
27480
|
-
minPrice:
|
|
27529
|
+
minPrice: number | null;
|
|
27481
27530
|
/** Maxprice */
|
|
27482
|
-
maxPrice:
|
|
27531
|
+
maxPrice: number | null;
|
|
27532
|
+
/** Pendingminprice */
|
|
27533
|
+
pendingMinPrice: number | null;
|
|
27534
|
+
/** Pendingmaxprice */
|
|
27535
|
+
pendingMaxPrice: number | null;
|
|
27483
27536
|
/** Minprofit */
|
|
27484
27537
|
minProfit: number | null;
|
|
27485
27538
|
/** Maxprofit */
|
|
27486
27539
|
maxProfit: number | null;
|
|
27540
|
+
/** Pendingminprofit */
|
|
27541
|
+
pendingMinProfit: number | null;
|
|
27542
|
+
/** Pendingmaxprofit */
|
|
27543
|
+
pendingMaxProfit: number | null;
|
|
27544
|
+
/** Profit */
|
|
27545
|
+
profit: number | null;
|
|
27546
|
+
/** Pendingprofit */
|
|
27547
|
+
pendingProfit: number | null;
|
|
27548
|
+
};
|
|
27549
|
+
/** PricesFromPriceListSchema */
|
|
27550
|
+
PricesFromPriceListSchema: {
|
|
27487
27551
|
/**
|
|
27488
|
-
*
|
|
27489
|
-
*
|
|
27552
|
+
* Pricelistid
|
|
27553
|
+
* Format: uuid
|
|
27490
27554
|
*/
|
|
27491
|
-
|
|
27555
|
+
priceListId: string;
|
|
27556
|
+
priceListItem?: components["schemas"]["PriceListItemSchema"] | null;
|
|
27492
27557
|
};
|
|
27493
27558
|
/** QuantityGroupSchema */
|
|
27494
27559
|
QuantityGroupSchema: {
|
|
@@ -49590,8 +49655,8 @@ export interface components {
|
|
|
49590
49655
|
* - The frontend should auto-populate this field from the item's default sales UOM (or the package UOM) and should not allow the user to change it for retail lists.
|
|
49591
49656
|
*
|
|
49592
49657
|
* **Duplicate validation:**
|
|
49593
|
-
* - The same item + itemPackage + unitOfMeasure combination cannot appear more than once.
|
|
49594
|
-
* - For retail lists,
|
|
49658
|
+
* - The same item + itemPackage + unitOfMeasure combination cannot appear more than once per price list (enforced by database unique constraint).
|
|
49659
|
+
* - For retail lists, unit of measure is normalized before insert, so conflicting lines are rejected at save time with error code `duplicateItemInPriceList`.
|
|
49595
49660
|
*/
|
|
49596
49661
|
unitOfMeasure: string;
|
|
49597
49662
|
/**
|
|
@@ -49725,8 +49790,7 @@ export interface components {
|
|
|
49725
49790
|
* Items
|
|
49726
49791
|
* @description List of items with their corresponding prices defined in this price list. At least one item must be included.
|
|
49727
49792
|
*
|
|
49728
|
-
* Each line is uniquely identified by the combination of `item`, `itemPackage`, and `unitOfMeasure
|
|
49729
|
-
* Duplicate combinations within the same request are rejected with error code `duplicateItemInPriceList`.
|
|
49793
|
+
* Each line is uniquely identified by the combination of `item`, `itemPackage`, and `unitOfMeasure` (enforced by database unique constraint).
|
|
49730
49794
|
*/
|
|
49731
49795
|
items: components["schemas"]["CreateUpdateSalesPriceListItemSchema"][];
|
|
49732
49796
|
};
|
|
@@ -49805,6 +49869,80 @@ export interface components {
|
|
|
49805
49869
|
* @enum {string}
|
|
49806
49870
|
*/
|
|
49807
49871
|
PricingModeEnum: "unit" | "ttc";
|
|
49872
|
+
/** PatchSalesPriceListItemSchema */
|
|
49873
|
+
PatchSalesPriceListItemSchema: {
|
|
49874
|
+
/**
|
|
49875
|
+
* Id
|
|
49876
|
+
* Format: uuid
|
|
49877
|
+
* @description ID of the price list item. When provided, updates the existing line. Omit to create a new line.
|
|
49878
|
+
*/
|
|
49879
|
+
id?: string;
|
|
49880
|
+
/**
|
|
49881
|
+
* Item
|
|
49882
|
+
* Format: uuid
|
|
49883
|
+
* @description ID of the item to which the pricing is applied.
|
|
49884
|
+
*/
|
|
49885
|
+
item: string;
|
|
49886
|
+
/**
|
|
49887
|
+
* Itempackage
|
|
49888
|
+
* Format: uuid
|
|
49889
|
+
* @description ID of the item package. Required when the item has packages.
|
|
49890
|
+
*/
|
|
49891
|
+
itemPackage?: string;
|
|
49892
|
+
/**
|
|
49893
|
+
* Unitofmeasure
|
|
49894
|
+
* Format: uuid
|
|
49895
|
+
* @description ID of the unit of measure for the item.
|
|
49896
|
+
*/
|
|
49897
|
+
unitOfMeasure: string;
|
|
49898
|
+
/** Companyrate */
|
|
49899
|
+
companyRate?: string;
|
|
49900
|
+
/** Secondaryrate */
|
|
49901
|
+
secondaryRate?: string;
|
|
49902
|
+
/**
|
|
49903
|
+
* Unitprice
|
|
49904
|
+
* @description Unit price. When updating an existing line (id provided), 0 or null deletes the line.
|
|
49905
|
+
*/
|
|
49906
|
+
unitPrice?: number;
|
|
49907
|
+
/**
|
|
49908
|
+
* Taxes
|
|
49909
|
+
* @description Tax IDs applied to the item (retail price lists only).
|
|
49910
|
+
*/
|
|
49911
|
+
taxes?: string[] | null;
|
|
49912
|
+
/** Minprice */
|
|
49913
|
+
minPrice?: number;
|
|
49914
|
+
/** Maxprice */
|
|
49915
|
+
maxPrice?: number;
|
|
49916
|
+
/** Minprofit */
|
|
49917
|
+
minProfit?: number;
|
|
49918
|
+
/** Maxprofit */
|
|
49919
|
+
maxProfit?: number;
|
|
49920
|
+
/** Profit */
|
|
49921
|
+
profit?: number;
|
|
49922
|
+
/** Cost */
|
|
49923
|
+
cost?: number | null;
|
|
49924
|
+
};
|
|
49925
|
+
/** PatchSalesPriceListItemsSchema */
|
|
49926
|
+
PatchSalesPriceListItemsSchema: {
|
|
49927
|
+
/**
|
|
49928
|
+
* Name
|
|
49929
|
+
* @description Name of the price list.
|
|
49930
|
+
*/
|
|
49931
|
+
name?: string | null;
|
|
49932
|
+
/** Description */
|
|
49933
|
+
description?: string | null;
|
|
49934
|
+
/** Notes */
|
|
49935
|
+
notes?: string | null;
|
|
49936
|
+
/**
|
|
49937
|
+
* Items
|
|
49938
|
+
* @description Items to create, update, or delete in the price list.
|
|
49939
|
+
*
|
|
49940
|
+
* - **Create**: omit `id`
|
|
49941
|
+
* - **Update**: include `id` with a positive `unitPrice`
|
|
49942
|
+
* - **Delete**: include `id` with `unitPrice` set to 0 or null
|
|
49943
|
+
*/
|
|
49944
|
+
items?: components["schemas"]["PatchSalesPriceListItemSchema"][] | null;
|
|
49945
|
+
};
|
|
49808
49946
|
/** ListPackageTypeSchema */
|
|
49809
49947
|
ListPackageTypeSchema: {
|
|
49810
49948
|
info: components["schemas"]["PageInfoSchema"];
|
|
@@ -92913,7 +93051,9 @@ export interface operations {
|
|
|
92913
93051
|
};
|
|
92914
93052
|
sales_price_list_views_create_sales_price_list: {
|
|
92915
93053
|
parameters: {
|
|
92916
|
-
query?:
|
|
93054
|
+
query?: {
|
|
93055
|
+
includeItems?: boolean;
|
|
93056
|
+
};
|
|
92917
93057
|
header?: never;
|
|
92918
93058
|
path?: never;
|
|
92919
93059
|
cookie?: never;
|
|
@@ -93081,6 +93221,7 @@ export interface operations {
|
|
|
93081
93221
|
fullItem?: boolean;
|
|
93082
93222
|
includeLiveCost?: boolean;
|
|
93083
93223
|
includeBarcodes?: boolean;
|
|
93224
|
+
includeItems?: boolean;
|
|
93084
93225
|
};
|
|
93085
93226
|
header?: never;
|
|
93086
93227
|
path: {
|
|
@@ -93139,7 +93280,9 @@ export interface operations {
|
|
|
93139
93280
|
};
|
|
93140
93281
|
sales_price_list_views_update_sales_price_list: {
|
|
93141
93282
|
parameters: {
|
|
93142
|
-
query?:
|
|
93283
|
+
query?: {
|
|
93284
|
+
includeItems?: boolean;
|
|
93285
|
+
};
|
|
93143
93286
|
header?: never;
|
|
93144
93287
|
path: {
|
|
93145
93288
|
id: string;
|
|
@@ -93255,6 +93398,70 @@ export interface operations {
|
|
|
93255
93398
|
};
|
|
93256
93399
|
};
|
|
93257
93400
|
};
|
|
93401
|
+
sales_price_list_views_patch_sales_price_list_items: {
|
|
93402
|
+
parameters: {
|
|
93403
|
+
query?: {
|
|
93404
|
+
includeItems?: boolean;
|
|
93405
|
+
};
|
|
93406
|
+
header?: never;
|
|
93407
|
+
path: {
|
|
93408
|
+
id: string;
|
|
93409
|
+
};
|
|
93410
|
+
cookie?: never;
|
|
93411
|
+
};
|
|
93412
|
+
requestBody: {
|
|
93413
|
+
content: {
|
|
93414
|
+
"application/json": components["schemas"]["PatchSalesPriceListItemsSchema"];
|
|
93415
|
+
};
|
|
93416
|
+
};
|
|
93417
|
+
responses: {
|
|
93418
|
+
/** @description OK */
|
|
93419
|
+
200: {
|
|
93420
|
+
headers: {
|
|
93421
|
+
[name: string]: unknown;
|
|
93422
|
+
};
|
|
93423
|
+
content: {
|
|
93424
|
+
"application/json": components["schemas"]["SalesPriceListSchema"];
|
|
93425
|
+
};
|
|
93426
|
+
};
|
|
93427
|
+
/** @description Bad Request */
|
|
93428
|
+
400: {
|
|
93429
|
+
headers: {
|
|
93430
|
+
[name: string]: unknown;
|
|
93431
|
+
};
|
|
93432
|
+
content: {
|
|
93433
|
+
"application/json": components["schemas"]["ErrorMessages"];
|
|
93434
|
+
};
|
|
93435
|
+
};
|
|
93436
|
+
/** @description Forbidden */
|
|
93437
|
+
403: {
|
|
93438
|
+
headers: {
|
|
93439
|
+
[name: string]: unknown;
|
|
93440
|
+
};
|
|
93441
|
+
content: {
|
|
93442
|
+
"application/json": components["schemas"]["MessageWithCode"];
|
|
93443
|
+
};
|
|
93444
|
+
};
|
|
93445
|
+
/** @description Not Found */
|
|
93446
|
+
404: {
|
|
93447
|
+
headers: {
|
|
93448
|
+
[name: string]: unknown;
|
|
93449
|
+
};
|
|
93450
|
+
content: {
|
|
93451
|
+
"application/json": components["schemas"]["MessageWithCode"];
|
|
93452
|
+
};
|
|
93453
|
+
};
|
|
93454
|
+
/** @description Internal Server Error */
|
|
93455
|
+
500: {
|
|
93456
|
+
headers: {
|
|
93457
|
+
[name: string]: unknown;
|
|
93458
|
+
};
|
|
93459
|
+
content: {
|
|
93460
|
+
"application/json": components["schemas"]["MessageWithCode"];
|
|
93461
|
+
};
|
|
93462
|
+
};
|
|
93463
|
+
};
|
|
93464
|
+
};
|
|
93258
93465
|
sales_price_list_views_refresh_sales_price_list: {
|
|
93259
93466
|
parameters: {
|
|
93260
93467
|
query?: never;
|