@erp-galoper/types 1.0.350 → 1.0.352
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 +129 -22
- package/package.json +1 -1
package/openapi.ts
CHANGED
|
@@ -12311,6 +12311,9 @@ export interface paths {
|
|
|
12311
12311
|
* - itemOrItemPackageRequired
|
|
12312
12312
|
* - discountShouldBeLessThanSalesMaxDiscount
|
|
12313
12313
|
* - discountValueShouldBeLessThanSalesMaxDiscount
|
|
12314
|
+
* - brandDoesNotExist
|
|
12315
|
+
* - TagDoesNotExist
|
|
12316
|
+
* - familyDoesNotExist
|
|
12314
12317
|
* - 403:
|
|
12315
12318
|
* - permissionDenied
|
|
12316
12319
|
* - noModuleAccess
|
|
@@ -12381,6 +12384,9 @@ export interface paths {
|
|
|
12381
12384
|
* - discountShouldBeLessThanSalesMaxDiscount
|
|
12382
12385
|
* - discountValueShouldBeLessThanSalesMaxDiscount
|
|
12383
12386
|
* - OfferAndPromotionShouldBeDraft
|
|
12387
|
+
* - brandDoesNotExist
|
|
12388
|
+
* - TagDoesNotExist
|
|
12389
|
+
* - familyDoesNotExist
|
|
12384
12390
|
* - 404:
|
|
12385
12391
|
* - offerAndPromotionDoesNotExist
|
|
12386
12392
|
* - 403:
|
|
@@ -26734,7 +26740,7 @@ export interface components {
|
|
|
26734
26740
|
/**
|
|
26735
26741
|
* Id
|
|
26736
26742
|
* Format: uuid
|
|
26737
|
-
* @example
|
|
26743
|
+
* @example 1838aeba-41b2-4d70-87df-d32be8e6dc4b
|
|
26738
26744
|
*/
|
|
26739
26745
|
id: string;
|
|
26740
26746
|
/**
|
|
@@ -34591,7 +34597,7 @@ export interface components {
|
|
|
34591
34597
|
* AppliesOnSchema
|
|
34592
34598
|
* @enum {string}
|
|
34593
34599
|
*/
|
|
34594
|
-
AppliesOnSchema: "
|
|
34600
|
+
AppliesOnSchema: "allItems" | "specificItems";
|
|
34595
34601
|
/**
|
|
34596
34602
|
* AppliesToSchema
|
|
34597
34603
|
* @enum {string}
|
|
@@ -34621,16 +34627,26 @@ export interface components {
|
|
|
34621
34627
|
* @description discount amount when promotion type is fixed amount otherwise discount percentage
|
|
34622
34628
|
*/
|
|
34623
34629
|
discountValue: number | null;
|
|
34624
|
-
/**
|
|
34630
|
+
/**
|
|
34631
|
+
* Quantity
|
|
34632
|
+
* @description visible when promotion type in [volumeBased, bundleOffers]
|
|
34633
|
+
*/
|
|
34625
34634
|
quantity: number | null;
|
|
34626
|
-
/**
|
|
34635
|
+
/**
|
|
34636
|
+
* Minordervalue
|
|
34637
|
+
* @description visible when promotion type in [orderValue, fixedAmount]
|
|
34638
|
+
*/
|
|
34627
34639
|
minOrderValue: number | null;
|
|
34640
|
+
/** @description visible when promotion type in [orderValue, fixedAmount] */
|
|
34628
34641
|
currency: components["schemas"]["CurrencySummaryInfo"] | null;
|
|
34629
34642
|
item: components["schemas"]["ItemSummaryInfo"] | null;
|
|
34630
34643
|
itemPackage: components["schemas"]["ItemPackageSharedSchema"] | null;
|
|
34631
34644
|
/** Unitpackage */
|
|
34632
34645
|
unitPackage: number | null;
|
|
34633
34646
|
itemCategory: components["schemas"]["ProductCategorySharedSchema"] | null;
|
|
34647
|
+
brand: components["schemas"]["BrandSchema"] | null;
|
|
34648
|
+
family: components["schemas"]["ProductCategorySharedSchema"] | null;
|
|
34649
|
+
tag: components["schemas"]["TagSchema"] | null;
|
|
34634
34650
|
/**
|
|
34635
34651
|
* Offeredproducts
|
|
34636
34652
|
* @default []
|
|
@@ -34790,7 +34806,7 @@ export interface components {
|
|
|
34790
34806
|
/**
|
|
34791
34807
|
* Customers
|
|
34792
34808
|
* @description
|
|
34793
|
-
* always visible, use route api/v1
|
|
34809
|
+
* always visible, use route api/v1/customers/?type=children and filter by isActive equals to true
|
|
34794
34810
|
* in case appliesTo = customer and customers list is empty, the promotion will be applied to all customers
|
|
34795
34811
|
*
|
|
34796
34812
|
* @default []
|
|
@@ -34798,11 +34814,24 @@ export interface components {
|
|
|
34798
34814
|
customers: number[];
|
|
34799
34815
|
/**
|
|
34800
34816
|
* Customergroups
|
|
34801
|
-
* @description
|
|
34817
|
+
* @description
|
|
34818
|
+
* - always visible,
|
|
34802
34819
|
* - use route api/v1/contact-segmentation/ and filter by type equals to customer
|
|
34803
34820
|
* @default []
|
|
34804
34821
|
*/
|
|
34805
34822
|
customerGroups: string[];
|
|
34823
|
+
/** @description
|
|
34824
|
+
* - percentage: user should select appliesOn(Optional), discountValue
|
|
34825
|
+
* - orderValue, fixedAmount: user should select discountValue, minOrderValue, currency
|
|
34826
|
+
* - volumeBased: user should select discountValue, item, quantity
|
|
34827
|
+
* - buyOneGetOne: user should select appliesOn, discountValue, offeredItemsOperator, offeredItems
|
|
34828
|
+
* - bundleOffers: user should select discountValue, item, quantity
|
|
34829
|
+
* - timeSensitiveOffers : user should select appliesOn(Optional), discountValue
|
|
34830
|
+
* - promotionalCode : user should select appliesOn(Optional), discountValue, promotionCode
|
|
34831
|
+
* Note :
|
|
34832
|
+
* - if appliesOn is allItems user should not select any of (item, itemPackage, itemCategory, brand, family, tag)
|
|
34833
|
+
* - if appliesOn is specificItems user should select either (item or itemPackage ) or (itemCategory , brand, family, tag)
|
|
34834
|
+
* */
|
|
34806
34835
|
promotionType: components["schemas"]["PromotionTypes"];
|
|
34807
34836
|
/**
|
|
34808
34837
|
* Stackable
|
|
@@ -34835,17 +34864,21 @@ export interface components {
|
|
|
34835
34864
|
discountValue?: number;
|
|
34836
34865
|
/**
|
|
34837
34866
|
* Item
|
|
34838
|
-
* @description
|
|
34867
|
+
* @description
|
|
34868
|
+
* - visible when promotion type in [percentage, volumeBased, buyOneGetOne, timeSensitiveOffers, promotionalCodes] and appliesOn = specificItems,
|
|
34839
34869
|
* - use use route /settings/sales-settings/ to check if price list is on get items from route api/v1/inventory/price-list/{id}/ where id is selected price list,
|
|
34840
34870
|
* - if price list is off :
|
|
34841
|
-
* - to get items : api/v1/inventory/items
|
|
34871
|
+
* - to get items : /api/v1/inventory/items/?active=true&role!=template&allowSales=true
|
|
34842
34872
|
* - get price from route api/v1/inventory/items/{id}/ (default selling price or usd default selling price)
|
|
34843
34873
|
*/
|
|
34844
34874
|
item?: number;
|
|
34845
34875
|
/**
|
|
34846
34876
|
* Itempackage
|
|
34847
34877
|
* Format: uuid
|
|
34848
|
-
* @description
|
|
34878
|
+
* @description
|
|
34879
|
+
* - visible when promotion type in [percentage, volumeBased, buyOneGetOne, timeSensitiveOffers, promotionalCodes] and appliesOn = specificItems
|
|
34880
|
+
* - use route /api/v1/inventory/items/?active=true&role!=template&allowSales=true, field is item_packages
|
|
34881
|
+
*
|
|
34849
34882
|
*/
|
|
34850
34883
|
itemPackage?: string;
|
|
34851
34884
|
/**
|
|
@@ -34855,17 +34888,46 @@ export interface components {
|
|
|
34855
34888
|
unitPackage?: number;
|
|
34856
34889
|
/**
|
|
34857
34890
|
* Itemcategory
|
|
34858
|
-
* @description
|
|
34891
|
+
* @description
|
|
34892
|
+
* - visible when promotion type in [percentage, volumeBased, buyOneGetOne, timeSensitiveOffers, promotionalCodes] and appliesOn = specificItems
|
|
34893
|
+
* - use route api/v1/inventory/categories/
|
|
34859
34894
|
*/
|
|
34860
34895
|
itemCategory?: number;
|
|
34896
|
+
/**
|
|
34897
|
+
* Brand
|
|
34898
|
+
* @description
|
|
34899
|
+
* - brand id
|
|
34900
|
+
* - visible when promotion type in [percentage, volumeBased, buyOneGetOne, timeSensitiveOffers, promotionalCodes] and appliesOn = specificItems
|
|
34901
|
+
* - use route /api/v1/inventory/brands/
|
|
34902
|
+
*
|
|
34903
|
+
*/
|
|
34904
|
+
brand?: number;
|
|
34905
|
+
/**
|
|
34906
|
+
* Family
|
|
34907
|
+
* @description
|
|
34908
|
+
* - family id
|
|
34909
|
+
* - visible when promotion type in [percentage, volumeBased, buyOneGetOne, timeSensitiveOffers, promotionalCodes] and appliesOn = specificItems
|
|
34910
|
+
* - use route /api/v1/inventory/families/
|
|
34911
|
+
*
|
|
34912
|
+
*/
|
|
34913
|
+
family?: number;
|
|
34914
|
+
/**
|
|
34915
|
+
* Tag
|
|
34916
|
+
* @description
|
|
34917
|
+
* - tag id
|
|
34918
|
+
* - visible when promotion type in [percentage, volumeBased, buyOneGetOne, timeSensitiveOffers, promotionalCodes] and appliesOn = specificItems
|
|
34919
|
+
* - use route /api/v1/inventory/tags/
|
|
34920
|
+
*
|
|
34921
|
+
*/
|
|
34922
|
+
tag?: number;
|
|
34861
34923
|
/**
|
|
34862
34924
|
* Quantity
|
|
34863
|
-
* @description required when promotion type in [volumeBased, bundleOffers]
|
|
34925
|
+
* @description visible and required when promotion type in [volumeBased, bundleOffers]
|
|
34864
34926
|
*/
|
|
34865
34927
|
quantity?: number;
|
|
34866
34928
|
/**
|
|
34867
34929
|
* Minordervalue
|
|
34868
|
-
* @description required when promotion type in [orderValue, fixedAmount]
|
|
34930
|
+
* @description visible and required when promotion type in [orderValue, fixedAmount]
|
|
34869
34931
|
*/
|
|
34870
34932
|
minOrderValue?: number;
|
|
34871
34933
|
/**
|
|
@@ -34891,13 +34953,13 @@ export interface components {
|
|
|
34891
34953
|
OfferedItemCreateSchema: {
|
|
34892
34954
|
/**
|
|
34893
34955
|
* Item
|
|
34894
|
-
* @description item id, to get items : api/v1/inventory/items
|
|
34956
|
+
* @description item id, to get items : /api/v1/inventory/items/?active=true&role!=template&allowSales=true
|
|
34895
34957
|
*/
|
|
34896
34958
|
item?: number;
|
|
34897
34959
|
/**
|
|
34898
34960
|
* Itempackage
|
|
34899
34961
|
* Format: uuid
|
|
34900
|
-
* @description item package id, to get item package : api/v1/inventory/items
|
|
34962
|
+
* @description item package id, to get item package : /api/v1/inventory/items/?active=true&role!=template&allowSales=true, field is item_packages
|
|
34901
34963
|
*/
|
|
34902
34964
|
itemPackage?: string;
|
|
34903
34965
|
/** Discount */
|
|
@@ -34985,17 +35047,21 @@ export interface components {
|
|
|
34985
35047
|
discountValue?: number;
|
|
34986
35048
|
/**
|
|
34987
35049
|
* Item
|
|
34988
|
-
* @description
|
|
35050
|
+
* @description
|
|
35051
|
+
* - visible when promotion type in [percentage, volumeBased, buyOneGetOne, timeSensitiveOffers, promotionalCodes] and appliesOn = specificItems,
|
|
34989
35052
|
* - use use route /settings/sales-settings/ to check if price list is on get items from route api/v1/inventory/price-list/{id}/ where id is selected price list,
|
|
34990
35053
|
* - if price list is off :
|
|
34991
|
-
* - to get items : api/v1/inventory/items
|
|
35054
|
+
* - to get items : /api/v1/inventory/items/?active=true&role!=template&allowSales=true
|
|
34992
35055
|
* - get price from route api/v1/inventory/items/{id}/ (default selling price or usd default selling price)
|
|
34993
35056
|
*/
|
|
34994
35057
|
item?: number;
|
|
34995
35058
|
/**
|
|
34996
35059
|
* Itempackage
|
|
34997
35060
|
* Format: uuid
|
|
34998
|
-
* @description
|
|
35061
|
+
* @description
|
|
35062
|
+
* - visible when promotion type in [percentage, volumeBased, buyOneGetOne, timeSensitiveOffers, promotionalCodes] and appliesOn = specificItems
|
|
35063
|
+
* - use route /api/v1/inventory/items/?active=true&role!=template&allowSales=true, field is item_packages
|
|
35064
|
+
*
|
|
34999
35065
|
*/
|
|
35000
35066
|
itemPackage?: string;
|
|
35001
35067
|
/**
|
|
@@ -35005,17 +35071,46 @@ export interface components {
|
|
|
35005
35071
|
unitPackage?: number;
|
|
35006
35072
|
/**
|
|
35007
35073
|
* Itemcategory
|
|
35008
|
-
* @description
|
|
35074
|
+
* @description
|
|
35075
|
+
* - visible when promotion type in [percentage, volumeBased, buyOneGetOne, timeSensitiveOffers, promotionalCodes] and appliesOn = specificItems
|
|
35076
|
+
* - use route api/v1/inventory/categories/
|
|
35009
35077
|
*/
|
|
35010
35078
|
itemCategory?: number;
|
|
35079
|
+
/**
|
|
35080
|
+
* Brand
|
|
35081
|
+
* @description
|
|
35082
|
+
* - brand id
|
|
35083
|
+
* - visible when promotion type in [percentage, volumeBased, buyOneGetOne, timeSensitiveOffers, promotionalCodes] and appliesOn = specificItems
|
|
35084
|
+
* - use route /api/v1/inventory/brands/
|
|
35085
|
+
*
|
|
35086
|
+
*/
|
|
35087
|
+
brand?: number;
|
|
35088
|
+
/**
|
|
35089
|
+
* Family
|
|
35090
|
+
* @description
|
|
35091
|
+
* - family id
|
|
35092
|
+
* - visible when promotion type in [percentage, volumeBased, buyOneGetOne, timeSensitiveOffers, promotionalCodes] and appliesOn = specificItems
|
|
35093
|
+
* - use route /api/v1/inventory/families/
|
|
35094
|
+
*
|
|
35095
|
+
*/
|
|
35096
|
+
family?: number;
|
|
35097
|
+
/**
|
|
35098
|
+
* Tag
|
|
35099
|
+
* @description
|
|
35100
|
+
* - tag id
|
|
35101
|
+
* - visible when promotion type in [percentage, volumeBased, buyOneGetOne, timeSensitiveOffers, promotionalCodes] and appliesOn = specificItems
|
|
35102
|
+
* - use route /api/v1/inventory/tags/
|
|
35103
|
+
*
|
|
35104
|
+
*/
|
|
35105
|
+
tag?: number;
|
|
35011
35106
|
/**
|
|
35012
35107
|
* Quantity
|
|
35013
|
-
* @description required when promotion type in [volumeBased, bundleOffers]
|
|
35108
|
+
* @description visible and required when promotion type in [volumeBased, bundleOffers]
|
|
35014
35109
|
*/
|
|
35015
35110
|
quantity?: number;
|
|
35016
35111
|
/**
|
|
35017
35112
|
* Minordervalue
|
|
35018
|
-
* @description required when promotion type in [orderValue, fixedAmount]
|
|
35113
|
+
* @description visible and required when promotion type in [orderValue, fixedAmount]
|
|
35019
35114
|
*/
|
|
35020
35115
|
minOrderValue?: number;
|
|
35021
35116
|
/**
|
|
@@ -35092,6 +35187,18 @@ export interface components {
|
|
|
35092
35187
|
* @default []
|
|
35093
35188
|
*/
|
|
35094
35189
|
customerGroups: string[];
|
|
35190
|
+
/** @description
|
|
35191
|
+
* - percentage: user should select appliesOn(Optional), discountValue
|
|
35192
|
+
* - orderValue, fixedAmount: user should select discountValue, minOrderValue, currency
|
|
35193
|
+
* - volumeBased: user should select appliesOn, discountValue, quantity
|
|
35194
|
+
* - buyOneGetOne: user should select appliesOn, discountValue, offeredItemsOperator, offeredItems
|
|
35195
|
+
* - bundleOffers: user should select appliesOn, discountValue, quantity
|
|
35196
|
+
* - timeSensitiveOffers : user should select appliesOn(Optional), discountValue
|
|
35197
|
+
* - promotionalCode : user should select appliesOn(Optional), discountValue, promotionCode
|
|
35198
|
+
* Note :
|
|
35199
|
+
* - if appliesOn is allItems user should not select any of (item, itemPackage, itemCategory, brand, family, tag)
|
|
35200
|
+
* - if appliesOn is specificItems user should select either (item or itemPackage ) or (itemCategory , brand, family, tag)
|
|
35201
|
+
* */
|
|
35095
35202
|
promotionType: components["schemas"]["PromotionTypes"];
|
|
35096
35203
|
/**
|
|
35097
35204
|
* Stackable
|
|
@@ -35119,13 +35226,13 @@ export interface components {
|
|
|
35119
35226
|
OfferedItemUpdateSchema: {
|
|
35120
35227
|
/**
|
|
35121
35228
|
* Item
|
|
35122
|
-
* @description item id, to get items : api/v1/inventory/items
|
|
35229
|
+
* @description item id, to get items : /api/v1/inventory/items/?active=true&role!=template&allowSales=true
|
|
35123
35230
|
*/
|
|
35124
35231
|
item?: number;
|
|
35125
35232
|
/**
|
|
35126
35233
|
* Itempackage
|
|
35127
35234
|
* Format: uuid
|
|
35128
|
-
* @description item package id, to get item package : api/v1/inventory/items
|
|
35235
|
+
* @description item package id, to get item package : /api/v1/inventory/items/?active=true&role!=template&allowSales=true, field is item_packages
|
|
35129
35236
|
*/
|
|
35130
35237
|
itemPackage?: string;
|
|
35131
35238
|
/** Discount */
|