@erp-galoper/types 1.0.760 → 1.0.762
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 +31 -10
- package/package.json +1 -1
package/openapi.ts
CHANGED
|
@@ -23569,14 +23569,14 @@ export interface components {
|
|
|
23569
23569
|
/** Depth */
|
|
23570
23570
|
depth: number;
|
|
23571
23571
|
};
|
|
23572
|
-
/**
|
|
23573
|
-
|
|
23572
|
+
/** ItemVariantSettingsDetailSchema */
|
|
23573
|
+
ItemVariantSettingsDetailSchema: {
|
|
23574
23574
|
/**
|
|
23575
|
-
*
|
|
23575
|
+
* Updatevariantsonsave
|
|
23576
23576
|
* @description if true, children item will be update if parent item is updates
|
|
23577
23577
|
* @default true
|
|
23578
23578
|
*/
|
|
23579
|
-
|
|
23579
|
+
updateVariantsOnSave: boolean;
|
|
23580
23580
|
/**
|
|
23581
23581
|
* Fieldstoinherit
|
|
23582
23582
|
* @default []
|
|
@@ -37119,13 +37119,27 @@ export interface components {
|
|
|
37119
37119
|
/**
|
|
37120
37120
|
* Startdate
|
|
37121
37121
|
* Format: date-time
|
|
37122
|
-
* @description
|
|
37122
|
+
* @description
|
|
37123
|
+
* - user should select time when promotion type is timeSensitiveOffers
|
|
37124
|
+
* - if can delete is true start date should be less than or eq end date, if can delete is false the allowed values for startDate are:
|
|
37125
|
+
* - if promotion type is timeSensitiveOffers:
|
|
37126
|
+
* - startDate with time should be less than or equal to document start date with time
|
|
37127
|
+
* - if promotion type other than timeSensitiveOffers:
|
|
37128
|
+
* - startDate should be less than or equal to document start date
|
|
37129
|
+
*
|
|
37123
37130
|
*/
|
|
37124
37131
|
startDate: string;
|
|
37125
37132
|
/**
|
|
37126
37133
|
* Enddate
|
|
37127
37134
|
* Format: date-time
|
|
37128
|
-
* @description
|
|
37135
|
+
* @description
|
|
37136
|
+
* - user should select time when promotion type is timeSensitiveOffers
|
|
37137
|
+
* - if can delete is true end date should be greater than or eq start date, if can delete is false the allowed values for endDate are:
|
|
37138
|
+
* - if promotion type is timeSensitiveOffers:
|
|
37139
|
+
* - endDate with time should be greater than or equal to document end date with time
|
|
37140
|
+
* - if promotion type other than timeSensitiveOffers:
|
|
37141
|
+
* - endDate should be greater than or equal to document end date
|
|
37142
|
+
*
|
|
37129
37143
|
*/
|
|
37130
37144
|
endDate: string;
|
|
37131
37145
|
/**
|
|
@@ -37149,14 +37163,17 @@ export interface components {
|
|
|
37149
37163
|
* - visible for all promotion types except [orderValue, fixedAmount]
|
|
37150
37164
|
* - required for volumeBased, bundleOffers, BuyOneGetOne(should be set to specificItems and disabled)
|
|
37151
37165
|
* - required for percentage, timeSensitiveOffers, promotionalCodes(can be set to allItems or specificItems)
|
|
37166
|
+
* - If can delete is false, appliesOn should not be editable
|
|
37152
37167
|
* */
|
|
37153
37168
|
appliesOn?: components["schemas"]["AppliesOnSchema"];
|
|
37169
|
+
/** @description if can delete is false, appliesTo should not be editable */
|
|
37154
37170
|
appliesTo: components["schemas"]["AppliesToSchema"];
|
|
37155
37171
|
/**
|
|
37156
37172
|
* Customers
|
|
37157
37173
|
* @description
|
|
37158
|
-
* always visible, use route api/v1//customers/?type=children and filter by isActive equals to true
|
|
37159
|
-
*
|
|
37174
|
+
* - always visible, use route api/v1//customers/?type=children and filter by isActive equals to true
|
|
37175
|
+
* - in case appliesTo = customer and customers list is empty, the promotion will be applied to all customers
|
|
37176
|
+
* - if can delete is false, user cannot remove customer has quotation, order or invoice with this promotion
|
|
37160
37177
|
*
|
|
37161
37178
|
* @default []
|
|
37162
37179
|
*/
|
|
@@ -37165,6 +37182,8 @@ export interface components {
|
|
|
37165
37182
|
* Customergroups
|
|
37166
37183
|
* @description always visible,
|
|
37167
37184
|
* - use route api/v1/contact-segmentation/ and filter by type equals to customer
|
|
37185
|
+
* - if can delete is false, user cannot remove customer group for a customer has quotation, order or invoice with this promotion
|
|
37186
|
+
*
|
|
37168
37187
|
* @default []
|
|
37169
37188
|
*/
|
|
37170
37189
|
customerGroups: string[];
|
|
@@ -37179,6 +37198,7 @@ export interface components {
|
|
|
37179
37198
|
* Note :
|
|
37180
37199
|
* - if appliesOn is allItems user should not select any of (item, itemPackage, itemCategory, brand, family, tag)
|
|
37181
37200
|
* - if appliesOn is specificItems user should select either (item or itemPackage ) or (itemCategory , brand, family, tag)
|
|
37201
|
+
* - if can delete is false, promotionType should not be editable
|
|
37182
37202
|
* */
|
|
37183
37203
|
promotionType: components["schemas"]["PromotionTypes"];
|
|
37184
37204
|
/**
|
|
@@ -37189,12 +37209,13 @@ export interface components {
|
|
|
37189
37209
|
* - If an offer is flagged as non-stackable, the highest-value discount will apply if multiple offers are present by default,
|
|
37190
37210
|
* and the customer can select the offer that he wants. This can be enforced during the promotion setup to protect margins
|
|
37191
37211
|
* on higher-value discounts.
|
|
37212
|
+
* - If can delete is false, stackable should not be editable
|
|
37192
37213
|
*
|
|
37193
37214
|
*/
|
|
37194
37215
|
stackable: boolean;
|
|
37195
37216
|
/**
|
|
37196
37217
|
* Promotioncode
|
|
37197
|
-
* @description visible, required, and editable only when promotion type is promotionalCodes
|
|
37218
|
+
* @description visible, required, and editable only when promotion type is promotionalCodes, if can delete is false, promotionCode should not be editable if exists
|
|
37198
37219
|
*/
|
|
37199
37220
|
promotionCode?: string;
|
|
37200
37221
|
/**
|
|
@@ -52957,7 +52978,7 @@ export interface operations {
|
|
|
52957
52978
|
[name: string]: unknown;
|
|
52958
52979
|
};
|
|
52959
52980
|
content: {
|
|
52960
|
-
"application/json": components["schemas"]["
|
|
52981
|
+
"application/json": components["schemas"]["ItemVariantSettingsDetailSchema"];
|
|
52961
52982
|
};
|
|
52962
52983
|
};
|
|
52963
52984
|
/** @description Forbidden */
|