@erp-galoper/types 1.0.761 → 1.0.763

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 +41 -11
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -25458,7 +25458,7 @@ export interface components {
25458
25458
  * CustomerDocumentTypeEnum
25459
25459
  * @enum {string}
25460
25460
  */
25461
- CustomerDocumentTypeEnum: "default" | "receiptVoucher" | "salesCreditNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "salesRefundVoucher" | "downPayment";
25461
+ CustomerDocumentTypeEnum: "default" | "receiptVoucher" | "salesCreditNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "salesRefundVoucher" | "downPayment" | "goodsDeliveryNote";
25462
25462
  /**
25463
25463
  * typeCustomers
25464
25464
  * @enum {string}
@@ -26385,7 +26385,7 @@ export interface components {
26385
26385
  * DocumentTypeEnum
26386
26386
  * @enum {string}
26387
26387
  */
26388
- DocumentTypeEnum: "purchaseRefundVoucher" | "creditNote" | "advancePayment";
26388
+ DocumentTypeEnum: "purchaseRefundVoucher" | "creditNote" | "advancePayment" | "goodsReceiptNote";
26389
26389
  /**
26390
26390
  * typeSuppliers
26391
26391
  * @enum {string}
@@ -36372,7 +36372,13 @@ export interface components {
36372
36372
  * Format: date
36373
36373
  */
36374
36374
  date: string;
36375
- /** Supplier */
36375
+ /**
36376
+ * Supplier
36377
+ * @description
36378
+ * if from invoice or order supplier should be the same
36379
+ * else suppliers should be filtered by document_type='goodsReceiptNote'
36380
+ *
36381
+ */
36376
36382
  supplier: number;
36377
36383
  /** Warehouse */
36378
36384
  warehouse: number;
@@ -37119,13 +37125,27 @@ export interface components {
37119
37125
  /**
37120
37126
  * Startdate
37121
37127
  * Format: date-time
37122
- * @description user should select time when promotion type is timeSensitiveOffers
37128
+ * @description
37129
+ * - user should select time when promotion type is timeSensitiveOffers
37130
+ * - 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:
37131
+ * - if promotion type is timeSensitiveOffers:
37132
+ * - startDate with time should be less than or equal to document start date with time
37133
+ * - if promotion type other than timeSensitiveOffers:
37134
+ * - startDate should be less than or equal to document start date
37135
+ *
37123
37136
  */
37124
37137
  startDate: string;
37125
37138
  /**
37126
37139
  * Enddate
37127
37140
  * Format: date-time
37128
- * @description user should select time when promotion type is timeSensitiveOffers
37141
+ * @description
37142
+ * - user should select time when promotion type is timeSensitiveOffers
37143
+ * - 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:
37144
+ * - if promotion type is timeSensitiveOffers:
37145
+ * - endDate with time should be greater than or equal to document end date with time
37146
+ * - if promotion type other than timeSensitiveOffers:
37147
+ * - endDate should be greater than or equal to document end date
37148
+ *
37129
37149
  */
37130
37150
  endDate: string;
37131
37151
  /**
@@ -37149,14 +37169,17 @@ export interface components {
37149
37169
  * - visible for all promotion types except [orderValue, fixedAmount]
37150
37170
  * - required for volumeBased, bundleOffers, BuyOneGetOne(should be set to specificItems and disabled)
37151
37171
  * - required for percentage, timeSensitiveOffers, promotionalCodes(can be set to allItems or specificItems)
37172
+ * - If can delete is false, appliesOn should not be editable
37152
37173
  * */
37153
37174
  appliesOn?: components["schemas"]["AppliesOnSchema"];
37175
+ /** @description if can delete is false, appliesTo should not be editable */
37154
37176
  appliesTo: components["schemas"]["AppliesToSchema"];
37155
37177
  /**
37156
37178
  * Customers
37157
37179
  * @description
37158
- * always visible, use route api/v1//customers/?type=children and filter by isActive equals to true
37159
- * in case appliesTo = customer and customers list is empty, the promotion will be applied to all customers
37180
+ * - always visible, use route api/v1//customers/?type=children and filter by isActive equals to true
37181
+ * - in case appliesTo = customer and customers list is empty, the promotion will be applied to all customers
37182
+ * - if can delete is false, user cannot remove customer has quotation, order or invoice with this promotion
37160
37183
  *
37161
37184
  * @default []
37162
37185
  */
@@ -37165,6 +37188,8 @@ export interface components {
37165
37188
  * Customergroups
37166
37189
  * @description always visible,
37167
37190
  * - use route api/v1/contact-segmentation/ and filter by type equals to customer
37191
+ * - if can delete is false, user cannot remove customer group for a customer has quotation, order or invoice with this promotion
37192
+ *
37168
37193
  * @default []
37169
37194
  */
37170
37195
  customerGroups: string[];
@@ -37179,6 +37204,7 @@ export interface components {
37179
37204
  * Note :
37180
37205
  * - if appliesOn is allItems user should not select any of (item, itemPackage, itemCategory, brand, family, tag)
37181
37206
  * - if appliesOn is specificItems user should select either (item or itemPackage ) or (itemCategory , brand, family, tag)
37207
+ * - if can delete is false, promotionType should not be editable
37182
37208
  * */
37183
37209
  promotionType: components["schemas"]["PromotionTypes"];
37184
37210
  /**
@@ -37189,12 +37215,13 @@ export interface components {
37189
37215
  * - If an offer is flagged as non-stackable, the highest-value discount will apply if multiple offers are present by default,
37190
37216
  * and the customer can select the offer that he wants. This can be enforced during the promotion setup to protect margins
37191
37217
  * on higher-value discounts.
37218
+ * - If can delete is false, stackable should not be editable
37192
37219
  *
37193
37220
  */
37194
37221
  stackable: boolean;
37195
37222
  /**
37196
37223
  * Promotioncode
37197
- * @description visible, required, and editable only when promotion type is promotionalCodes
37224
+ * @description visible, required, and editable only when promotion type is promotionalCodes, if can delete is false, promotionCode should not be editable if exists
37198
37225
  */
37199
37226
  promotionCode?: string;
37200
37227
  /**
@@ -46200,7 +46227,10 @@ export interface components {
46200
46227
  date: string;
46201
46228
  /**
46202
46229
  * Customer
46203
- * @description child customers only, if from invoice or order customer should be the same
46230
+ * @description
46231
+ * child customers only, if from invoice or order customer should be the same
46232
+ * else customers should be filtered by document_type='goodsDeliveryNote'
46233
+ *
46204
46234
  */
46205
46235
  customer: number;
46206
46236
  /**
@@ -57554,7 +57584,7 @@ export interface operations {
57554
57584
  /** @description Type of customer to get */
57555
57585
  type?: "parents" | "children";
57556
57586
  /** @description type of document for listing customers, example : receiptVoucher */
57557
- documentType?: "default" | "receiptVoucher" | "salesCreditNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "salesRefundVoucher" | "downPayment";
57587
+ documentType?: "default" | "receiptVoucher" | "salesCreditNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "salesRefundVoucher" | "downPayment" | "goodsDeliveryNote";
57558
57588
  search?: string | null;
57559
57589
  };
57560
57590
  header?: never;
@@ -58160,7 +58190,7 @@ export interface operations {
58160
58190
  /** @description Type of supplier to get */
58161
58191
  type?: "parents" | "children";
58162
58192
  /** @description type of document for listing suppliers, example : purchaseRefundVoucher */
58163
- documentType?: "purchaseRefundVoucher" | "creditNote" | "advancePayment";
58193
+ documentType?: "purchaseRefundVoucher" | "creditNote" | "advancePayment" | "goodsReceiptNote";
58164
58194
  search?: string | null;
58165
58195
  /** @description Branch ID */
58166
58196
  branch?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erp-galoper/types",
3
- "version": "1.0.761",
3
+ "version": "1.0.763",
4
4
  "main": "openapi.ts",
5
5
  "types": "openapi.ts",
6
6
  "files": ["openapi.ts"],