@erp-galoper/types 1.0.1932 → 1.0.1934

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 +182 -128
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -26776,11 +26776,6 @@ export interface components {
26776
26776
  */
26777
26777
  default: boolean;
26778
26778
  };
26779
- /**
26780
- * ItemCommissionCalculation
26781
- * @enum {string}
26782
- */
26783
- ItemCommissionCalculation: "netSale" | "profitMargin";
26784
26779
  /** ItemListSchema */
26785
26780
  ItemListSchema: {
26786
26781
  info: components["schemas"]["PageInfoSchema"];
@@ -27127,7 +27122,6 @@ export interface components {
27127
27122
  */
27128
27123
  openingStock?: components["schemas"]["OpeningStockGroupSchema"][] | null;
27129
27124
  costStrategy: components["schemas"]["GetCostStrategy"] | null;
27130
- commissionCalculation: components["schemas"]["ItemCommissionCalculation"] | null;
27131
27125
  inventoryMovementMethod?: components["schemas"]["INVENTORY_MOVEMENT_METHOD"] | null;
27132
27126
  /**
27133
27127
  * Candelete
@@ -27390,7 +27384,6 @@ export interface components {
27390
27384
  */
27391
27385
  openingStock?: components["schemas"]["OpeningStockGroupSchema"][] | null;
27392
27386
  costStrategy: components["schemas"]["GetCostStrategy"] | null;
27393
- commissionCalculation: components["schemas"]["ItemCommissionCalculation"] | null;
27394
27387
  inventoryMovementMethod?: components["schemas"]["INVENTORY_MOVEMENT_METHOD"] | null;
27395
27388
  /**
27396
27389
  * Candelete
@@ -27493,28 +27486,67 @@ export interface components {
27493
27486
  * @enum {string}
27494
27487
  */
27495
27488
  PackageCategory: "primary" | "secondary" | "tertiary" | "disposable" | "sustainable" | "retail" | "luxury" | "flexible" | "rigid" | "custom";
27496
- /** PricesFromPriceListSchema */
27497
- PricesFromPriceListSchema: {
27489
+ /** PriceListItemSchema */
27490
+ PriceListItemSchema: {
27498
27491
  /**
27499
- * Pricelistid
27492
+ * Id
27500
27493
  * Format: uuid
27501
27494
  */
27502
- priceListId: string;
27503
- /** Pricelistitemid */
27504
- priceListItemId: string | null;
27495
+ id: string;
27496
+ /**
27497
+ * Cost
27498
+ * @description This field is a number
27499
+ */
27500
+ cost: string | null;
27501
+ /**
27502
+ * Livecost
27503
+ * @description This field is a number representing the current live cost of the item
27504
+ */
27505
+ liveCost?: string | null;
27506
+ /** Unitprice */
27507
+ unitPrice: number | null;
27508
+ /** Pendingunitprice */
27509
+ pendingUnitPrice: number | null;
27510
+ /**
27511
+ * Posunitprice
27512
+ * @description only visible when price list type is retail
27513
+ */
27514
+ posUnitPrice: number | null;
27515
+ /**
27516
+ * Taxes
27517
+ * @description List of taxes applied to the item
27518
+ * @default []
27519
+ */
27520
+ taxes: components["schemas"]["TaxSharedSchema"][];
27505
27521
  /** Minprice */
27506
- minPrice: string | null;
27522
+ minPrice: number | null;
27507
27523
  /** Maxprice */
27508
- maxPrice: string | null;
27524
+ maxPrice: number | null;
27525
+ /** Pendingminprice */
27526
+ pendingMinPrice: number | null;
27527
+ /** Pendingmaxprice */
27528
+ pendingMaxPrice: number | null;
27509
27529
  /** Minprofit */
27510
27530
  minProfit: number | null;
27511
27531
  /** Maxprofit */
27512
27532
  maxProfit: number | null;
27533
+ /** Pendingminprofit */
27534
+ pendingMinProfit: number | null;
27535
+ /** Pendingmaxprofit */
27536
+ pendingMaxProfit: number | null;
27537
+ /** Profit */
27538
+ profit: number | null;
27539
+ /** Pendingprofit */
27540
+ pendingProfit: number | null;
27541
+ };
27542
+ /** PricesFromPriceListSchema */
27543
+ PricesFromPriceListSchema: {
27513
27544
  /**
27514
- * Taxes
27515
- * @default []
27545
+ * Pricelistid
27546
+ * Format: uuid
27516
27547
  */
27517
- taxes: components["schemas"]["TaxSharedSchema"][];
27548
+ priceListId: string;
27549
+ priceListItem?: components["schemas"]["PriceListItemSchema"] | null;
27518
27550
  };
27519
27551
  /** QuantityGroupSchema */
27520
27552
  QuantityGroupSchema: {
@@ -28319,14 +28351,6 @@ export interface components {
28319
28351
  * - visible when hasExpiryDate is true
28320
28352
  */
28321
28353
  alertDate?: number | null;
28322
- /**
28323
- * @description Hint: description for each option should be visible to users in the UI
28324
- * - Net Sales: Commission is calculated on the item price after discount, excluding tax and cost.
28325
- * - Formula (per item): (Price - Discount) × Commission Rate
28326
- * - Profit Margin: Commission is calculated on the profit of each item, after deducting both the discount and the cost of goods sold (COGS).
28327
- * - Formula (per item): (Price - Discount - Cost) × Commission Rate
28328
- */
28329
- commissionCalculation?: components["schemas"]["ItemCommissionCalculation"] | null;
28330
28354
  /**
28331
28355
  * Packages
28332
28356
  * @description Not applicable for service items - always empty list for type=service. Package and unit of measure should be unique
@@ -28844,14 +28868,6 @@ export interface components {
28844
28868
  children: components["schemas"]["UpdateChildrenItemSchema"] | null;
28845
28869
  /** @description if canDelete for the item is false then this field should be disabled */
28846
28870
  costStrategy?: components["schemas"]["CostStrategy"] | null;
28847
- /**
28848
- * @description Hint: description for each option should be visible to users in the UI
28849
- * - Net Sales: Commission is calculated on the item price after discount, excluding tax and cost.
28850
- * - Formula (per item): (Price - Discount) × Commission Rate
28851
- * - Profit Margin: Commission is calculated on the profit of each item, after deducting both the discount and the cost of goods sold (COGS).
28852
- * - Formula (per item): (Price - Discount - Cost) × Commission Rate
28853
- */
28854
- commissionCalculation?: components["schemas"]["ItemCommissionCalculation"] | null;
28855
28871
  /**
28856
28872
  * @description - fifo(First In, First Out): Items purchased or produced first are sold or used first
28857
28873
  * - lifo(Last In, First Out): Items purchased or produced most recently are sold or used first
@@ -29149,14 +29165,6 @@ export interface components {
29149
29165
  children: components["schemas"]["UpdateChildrenItemSchema"] | null;
29150
29166
  /** @description if canDelete for the item is false then this field should be disabled */
29151
29167
  costStrategy?: components["schemas"]["CostStrategy"] | null;
29152
- /**
29153
- * @description Hint: description for each option should be visible to users in the UI
29154
- * - Net Sales: Commission is calculated on the item price after discount, excluding tax and cost.
29155
- * - Formula (per item): (Price - Discount) × Commission Rate
29156
- * - Profit Margin: Commission is calculated on the profit of each item, after deducting both the discount and the cost of goods sold (COGS).
29157
- * - Formula (per item): (Price - Discount - Cost) × Commission Rate
29158
- */
29159
- commissionCalculation?: components["schemas"]["ItemCommissionCalculation"] | null;
29160
29168
  /**
29161
29169
  * @description - fifo(First In, First Out): Items purchased or produced first are sold or used first
29162
29170
  * - lifo(Last In, First Out): Items purchased or produced most recently are sold or used first
@@ -35860,6 +35868,29 @@ export interface components {
35860
35868
  * @enum {string}
35861
35869
  */
35862
35870
  SessionStatus: "opened" | "closed";
35871
+ /** RelatedPartyInfo */
35872
+ RelatedPartyInfo: {
35873
+ /** Id */
35874
+ id: number | string;
35875
+ /** Name */
35876
+ name: string;
35877
+ /** Accountnumber */
35878
+ accountNumber: string;
35879
+ currency: components["schemas"]["CurrencySummaryInfo"];
35880
+ /** Banks */
35881
+ banks: components["schemas"]["BankAccountsSharedSchema"][];
35882
+ };
35883
+ /** SalesPersonSharedSchema */
35884
+ SalesPersonSharedSchema: {
35885
+ /**
35886
+ * Id
35887
+ * Format: uuid
35888
+ */
35889
+ id: string;
35890
+ /** Name */
35891
+ name: string;
35892
+ relatedParty: components["schemas"]["RelatedPartyInfo"];
35893
+ };
35863
35894
  /** SessionListSchema */
35864
35895
  SessionListSchema: {
35865
35896
  info: components["schemas"]["PageInfoSchema"];
@@ -35885,6 +35916,7 @@ export interface components {
35885
35916
  /** Name */
35886
35917
  name: string;
35887
35918
  user: components["schemas"]["UserSummaryInfo"];
35919
+ defaultSalesPerson?: components["schemas"]["SalesPersonSharedSchema"] | null;
35888
35920
  /**
35889
35921
  * Startdate
35890
35922
  * Format: date-time
@@ -36083,6 +36115,19 @@ export interface components {
36083
36115
  type: string;
36084
36116
  accountType: components["schemas"]["AccountModelType"];
36085
36117
  };
36118
+ /** CommissionLevelSharedSchema */
36119
+ CommissionLevelSharedSchema: {
36120
+ /**
36121
+ * Id
36122
+ * Format: uuid
36123
+ */
36124
+ id: string;
36125
+ /** Name */
36126
+ name: string;
36127
+ /** Commissionvalue */
36128
+ commissionValue: number;
36129
+ currency: components["schemas"]["CurrencySummaryInfo"] | null;
36130
+ };
36086
36131
  /** CustomerSharedSchema */
36087
36132
  CustomerSharedSchema: {
36088
36133
  /** Phone1 */
@@ -36295,6 +36340,8 @@ export interface components {
36295
36340
  * @default []
36296
36341
  */
36297
36342
  promotionsAndOffers: components["schemas"]["PromotionsAndOffersSharedSchema"][];
36343
+ /** @description Applicable commission level for this line item. */
36344
+ commission?: components["schemas"]["CommissionLevelSharedSchema"] | null;
36298
36345
  };
36299
36346
  /** POSInvoiceSchema */
36300
36347
  POSInvoiceSchema: {
@@ -36325,6 +36372,9 @@ export interface components {
36325
36372
  barcode: string;
36326
36373
  type: components["schemas"]["InvoiceType"];
36327
36374
  session: components["schemas"]["SessionSummarySchema"];
36375
+ salesPerson?: components["schemas"]["SalesPersonSharedSchema"] | null;
36376
+ /** @description Applicable commission level for this invoice. */
36377
+ commission?: components["schemas"]["CommissionLevelSharedSchema"] | null;
36328
36378
  relatedInvoice?: components["schemas"]["PosInvoiceSummarySchema"] | null;
36329
36379
  giftReceipt?: components["schemas"]["GiftReceiptSummarySchema"] | null;
36330
36380
  /**
@@ -36585,6 +36635,7 @@ export interface components {
36585
36635
  /** Enddate */
36586
36636
  endDate?: string | null;
36587
36637
  status: components["schemas"]["SessionStatus"];
36638
+ defaultSalesPerson?: components["schemas"]["SalesPersonSharedSchema"] | null;
36588
36639
  };
36589
36640
  /** GiftReceiptItemSchema */
36590
36641
  GiftReceiptItemSchema: {
@@ -47018,18 +47069,6 @@ export interface components {
47018
47069
  */
47019
47070
  cost: number;
47020
47071
  };
47021
- /** RelatedPartyInfo */
47022
- RelatedPartyInfo: {
47023
- /** Id */
47024
- id: number | string;
47025
- /** Name */
47026
- name: string;
47027
- /** Accountnumber */
47028
- accountNumber: string;
47029
- currency: components["schemas"]["CurrencySummaryInfo"];
47030
- /** Banks */
47031
- banks: components["schemas"]["BankAccountsSharedSchema"][];
47032
- };
47033
47072
  /**
47034
47073
  * RelatedPartyType
47035
47074
  * @enum {string}
@@ -48239,17 +48278,6 @@ export interface components {
48239
48278
  code: string;
48240
48279
  data: components["schemas"]["ClosingCommissionDetailWithInvoicesSchema"];
48241
48280
  };
48242
- /** SalesPersonSharedSchema */
48243
- SalesPersonSharedSchema: {
48244
- /**
48245
- * Id
48246
- * Format: uuid
48247
- */
48248
- id: string;
48249
- /** Name */
48250
- name: string;
48251
- relatedParty: components["schemas"]["RelatedPartyInfo"];
48252
- };
48253
48281
  /** CreateClosingCommission */
48254
48282
  CreateClosingCommission: {
48255
48283
  /** Password */
@@ -48990,7 +49018,7 @@ export interface components {
48990
49018
  * CommissionCalculation
48991
49019
  * @enum {string}
48992
49020
  */
48993
- CommissionCalculation: "billed" | "received";
49021
+ CommissionCalculation: "onBilling" | "onCollection";
48994
49022
  /** CommissionDetailWithLevelsSchema */
48995
49023
  CommissionDetailWithLevelsSchema: {
48996
49024
  /**
@@ -49022,7 +49050,6 @@ export interface components {
49022
49050
  */
49023
49051
  files: string[];
49024
49052
  calculation: components["schemas"]["CommissionCalculation"];
49025
- structure: components["schemas"]["CommissionStructureEnum"];
49026
49053
  /**
49027
49054
  * Startdate
49028
49055
  * Format: date
@@ -49039,6 +49066,11 @@ export interface components {
49039
49066
  /** Commissionlevels */
49040
49067
  commissionLevels: components["schemas"]["CommissionLevelsDetailSchema"][];
49041
49068
  };
49069
+ /**
49070
+ * CommissionLevelCalculation
49071
+ * @enum {string}
49072
+ */
49073
+ CommissionLevelCalculation: "netSale" | "profitMargin";
49042
49074
  /** CommissionLevelsDetailSchema */
49043
49075
  CommissionLevelsDetailSchema: {
49044
49076
  /**
@@ -49046,15 +49078,20 @@ export interface components {
49046
49078
  * Format: uuid
49047
49079
  */
49048
49080
  id: string;
49081
+ structure: components["schemas"]["CommissionStructureEnum"];
49082
+ commissionCalculation: components["schemas"]["CommissionLevelCalculation"];
49049
49083
  /** Products */
49050
49084
  products: components["schemas"]["ItemSummaryInfo"][];
49051
49085
  /** Categories */
49052
49086
  categories: components["schemas"]["ItemCategorySummaryInfo"][];
49087
+ /** Brands */
49088
+ brands: components["schemas"]["CommonBrandSchema"][];
49089
+ /** Families */
49090
+ families: components["schemas"]["CommonFamilySchema"][];
49053
49091
  /** Customer Groups */
49054
49092
  customer_groups: components["schemas"]["ContactSegmentationSharedSchema"][];
49055
49093
  /** Customers */
49056
49094
  customers: components["schemas"]["AccountSummaryInfo"][];
49057
- paymentMethod: components["schemas"]["PaymentMethodSharedSchema"] | null;
49058
49095
  /** Commissionvalue */
49059
49096
  commissionValue: number;
49060
49097
  /** Salesvolumevalue */
@@ -49077,7 +49114,7 @@ export interface components {
49077
49114
  * CommissionStructureEnum
49078
49115
  * @enum {string}
49079
49116
  */
49080
- CommissionStructureEnum: "fixed" | "category" | "tiered" | "productBased" | "paymentBased";
49117
+ CommissionStructureEnum: "fixed" | "tiered" | "product" | "category" | "family" | "brand";
49081
49118
  /** ItemCategorySummaryInfo */
49082
49119
  ItemCategorySummaryInfo: {
49083
49120
  /**
@@ -49090,9 +49127,9 @@ export interface components {
49090
49127
  };
49091
49128
  /**
49092
49129
  * SalesTierType
49093
- * @enum {string}
49130
+ * @constant
49094
49131
  */
49095
- SalesTierType: "upTo" | "above";
49132
+ SalesTierType: "above";
49096
49133
  /**
49097
49134
  * TargetPeriod
49098
49135
  * @enum {string}
@@ -49100,6 +49137,22 @@ export interface components {
49100
49137
  TargetPeriod: "weekly" | "monthly" | "quarterly" | "biAnnual" | "annual";
49101
49138
  /** CreateCommissionLevels */
49102
49139
  CreateCommissionLevels: {
49140
+ /**
49141
+ * @description In all structures user should specify commission value
49142
+ * - if structure is product user should select item(s)
49143
+ * - if structure is tiered user should select salesTierType -> salesVolumeValue -> currency
49144
+ * - if structure is category user should select category
49145
+ * - if structure is brand user should select brand(s)
49146
+ * - if structure is family user should select family(ies)
49147
+ * Note that if inventory off allowed structures are fixed and tiered with salesVolumeValue and its related fields
49148
+ */
49149
+ structure: components["schemas"]["CommissionStructureEnum"];
49150
+ /**
49151
+ * @description - Net Sales: Commission is calculated on the item price after discount, excluding tax and cost.
49152
+ * - Profit Margin: Commission is calculated on the profit of each item, after deducting both the discount and the cost of goods sold (COGS).
49153
+ * @default netSale
49154
+ */
49155
+ commissionCalculation: components["schemas"]["CommissionLevelCalculation"];
49103
49156
  /**
49104
49157
  * Commissionvalue
49105
49158
  * @description if commissionValueType is percentage, commissionValue should be greater than zero and less than or equal 100
@@ -49107,34 +49160,52 @@ export interface components {
49107
49160
  commissionValue: number;
49108
49161
  /**
49109
49162
  * Salesvolumevalue
49110
- * @description visible when structure = tiered, required when salesTierType exist
49163
+ * @description visible when structure = tiered, required when structure = tiered
49111
49164
  */
49112
49165
  salesVolumeValue?: number;
49113
49166
  /**
49114
49167
  * Currency
49115
49168
  * Format: uuid
49116
- * @description currency id, visible when structure = tiered, required when salesTierType exist
49169
+ * @description currency id, visible when structure = tiered, required when structure = tiered
49117
49170
  */
49118
49171
  currency?: string;
49119
49172
  /** @description visible when structure = tiered */
49120
49173
  salesTierType?: components["schemas"]["SalesTierType"];
49121
49174
  /**
49122
49175
  * Products
49123
- * @description - visible when structure is productBased
49176
+ * @description - visible when structure is product
49124
49177
  * - to get products use route /api/v1/inventory/items/ and filter by active=true
49125
49178
  * - product should be unique across commission levels
49126
49179
  * @default []
49127
49180
  */
49128
- products: number[];
49181
+ products: string[];
49129
49182
  /**
49130
49183
  * Categories
49131
- * @description - visible when structure is category or productBased or tiered
49184
+ * @description - visible when structure is category
49132
49185
  * - required when structure is category
49133
49186
  * - to get categories use route /api/v1/inventory/categories?type=item'
49134
49187
  * - category should be unique across commission levels
49135
49188
  * @default []
49136
49189
  */
49137
49190
  categories: string[];
49191
+ /**
49192
+ * Brands
49193
+ * @description - visible when structure is brand
49194
+ * - required when structure is brand
49195
+ * - to get brands use route /api/v1/inventory/brands/
49196
+ * - brand should be unique across commission levels
49197
+ * @default []
49198
+ */
49199
+ brands: string[];
49200
+ /**
49201
+ * Families
49202
+ * @description - visible when structure is family
49203
+ * - required when structure is family
49204
+ * - to get families use route /api/v1/inventory/families/
49205
+ * - family should be unique across commission levels
49206
+ * @default []
49207
+ */
49208
+ families: string[];
49138
49209
  /**
49139
49210
  * Customergroups
49140
49211
  * @description both customers and customerGroups can be left empty to include all active debtor child customers
@@ -49152,12 +49223,6 @@ export interface components {
49152
49223
  * @default []
49153
49224
  */
49154
49225
  customers: string[];
49155
- /**
49156
- * Paymentmethod
49157
- * Format: uuid
49158
- * @description visible and required when structure = paymentBased, to get payment methods use route /api/v1/payment-methods/
49159
- */
49160
- paymentMethod?: string;
49161
49226
  /** Target */
49162
49227
  target?: number;
49163
49228
  targetPeriod?: components["schemas"]["TargetPeriod"];
@@ -49187,17 +49252,8 @@ export interface components {
49187
49252
  * @description When upload file the type in payload should be commission
49188
49253
  */
49189
49254
  attachments: string[];
49190
- /** @description when structure is paymentBased, calculation should be billed */
49255
+ /** @description onBilling refers to fully paid invoices and onCollection refers to sales invoices where payment is not tracked */
49191
49256
  calculation: components["schemas"]["CommissionCalculation"];
49192
- /**
49193
- * @description In all structures user should specify commission value and commission value type
49194
- * - if structure is productBased user can select item(s) or categories
49195
- * - if structure is tiered user can select categories or salesTierType -> salesVolumeValue -> currency
49196
- * - if structure is paymentMethod user should select paymentMethod
49197
- * - if structure is category use should select category
49198
- * Note that if inventory off allowed structures are fixed, paymentBased and tiered with salesVolumeValue and its related fields
49199
- */
49200
- structure: components["schemas"]["CommissionStructureEnum"];
49201
49257
  /**
49202
49258
  * Startdate
49203
49259
  * Format: date
@@ -49210,7 +49266,7 @@ export interface components {
49210
49266
  endDate?: string;
49211
49267
  /**
49212
49268
  * Commissionlevels
49213
- * @description when structure is paymentBased or fixed, only one commission level is allowed
49269
+ * @description when structure is fixed, only one commission level is allowed
49214
49270
  */
49215
49271
  commissionLevels?: components["schemas"]["CreateCommissionLevels"][];
49216
49272
  };
@@ -49245,7 +49301,6 @@ export interface components {
49245
49301
  */
49246
49302
  files: string[];
49247
49303
  calculation: components["schemas"]["CommissionCalculation"];
49248
- structure: components["schemas"]["CommissionStructureEnum"];
49249
49304
  /**
49250
49305
  * Startdate
49251
49306
  * Format: date
@@ -49273,24 +49328,35 @@ export interface components {
49273
49328
  * Format: uuid
49274
49329
  */
49275
49330
  id?: string;
49331
+ /**
49332
+ * @description In all structures user should specify commission value
49333
+ * - if structure is product user should select item(s)
49334
+ * - if structure is tiered user should select salesTierType -> salesVolumeValue -> currency
49335
+ * - if structure is category user should select category
49336
+ * - if structure is brand user should select brand(s)
49337
+ * - if structure is family user should select family(ies)
49338
+ */
49339
+ structure: components["schemas"]["CommissionStructureEnum"];
49340
+ /** @default netSale */
49341
+ commissionCalculation: components["schemas"]["CommissionLevelCalculation"];
49276
49342
  /** Commissionvalue */
49277
49343
  commissionValue: number;
49278
49344
  /**
49279
49345
  * Salesvolumevalue
49280
- * @description visible when structure = tiered, required when salesTierType exist
49346
+ * @description visible when structure = tiered, required when structure = tiered
49281
49347
  */
49282
49348
  salesVolumeValue?: number;
49283
49349
  /**
49284
49350
  * Currency
49285
49351
  * Format: uuid
49286
- * @description currency id, visible when structure = tiered, required when salesTierType exist
49352
+ * @description currency id, visible when structure = tiered, required when structure = tiered
49287
49353
  */
49288
49354
  currency?: string;
49289
49355
  /** @description visible when structure = tiered */
49290
49356
  salesTierType?: components["schemas"]["SalesTierType"];
49291
49357
  /**
49292
49358
  * Products
49293
- * @description - visible when structure is productBased
49359
+ * @description - visible when structure is product
49294
49360
  * - to get products use route /api/v1/inventory/items/ and filter by active=true
49295
49361
  * - product should be unique across commission levels
49296
49362
  * @default []
@@ -49298,13 +49364,29 @@ export interface components {
49298
49364
  products: number[];
49299
49365
  /**
49300
49366
  * Categories
49301
- * @description - visible when structure is category or productBased or tiered
49367
+ * @description - visible when structure is category
49302
49368
  * - required when structure is category
49303
49369
  * - to get categories use route /api/v1/inventory/categories?type=item
49304
49370
  * - category should be unique across commission levels
49305
49371
  * @default []
49306
49372
  */
49307
49373
  categories: string[];
49374
+ /**
49375
+ * Brands
49376
+ * @description - visible when structure is brand
49377
+ * - required when structure is brand
49378
+ * - to get brands use route /api/v1/inventory/brands/
49379
+ * @default []
49380
+ */
49381
+ brands: string[];
49382
+ /**
49383
+ * Families
49384
+ * @description - visible when structure is family
49385
+ * - required when structure is family
49386
+ * - to get families use route /api/v1/inventory/families/
49387
+ * @default []
49388
+ */
49389
+ families: string[];
49308
49390
  /**
49309
49391
  * Customergroups
49310
49392
  * @description both customers and customerGroups can be left empty to include all active debtor child customers
@@ -49322,12 +49404,6 @@ export interface components {
49322
49404
  * @default []
49323
49405
  */
49324
49406
  customers: string[];
49325
- /**
49326
- * Paymentmethod
49327
- * Format: uuid
49328
- * @description visible and required when structure = paymentBased, to get payment methods use route /api/v1/payment-methods/
49329
- */
49330
- paymentMethod?: string;
49331
49407
  /** Target */
49332
49408
  target?: number;
49333
49409
  targetPeriod?: components["schemas"]["TargetPeriod"];
@@ -49348,17 +49424,8 @@ export interface components {
49348
49424
  * @description When upload file the type in payload should be commission
49349
49425
  */
49350
49426
  attachments: string[];
49351
- /** @description when structure is paymentBased, calculation should be billed */
49427
+ /** @description onBilling refers to fully paid invoices and onCollection refers to sales invoices where payment is not tracked */
49352
49428
  calculation: components["schemas"]["CommissionCalculation"];
49353
- /**
49354
- * @description In all structures user should specify comiision value and commission value type
49355
- * - if structure is productBased user can select item(s) or categories
49356
- * - if structure is tiered user can select categories or salesTierType -> salesVolumeValue -> currency
49357
- * - if structure is paymentMethod user should select paymentMethod
49358
- * - if structure is category use should select category
49359
- * Note that if inventory off allowed structures are fixed, paymentBased and tiered with salesVolumeValue and its related fields
49360
- */
49361
- structure: components["schemas"]["CommissionStructureEnum"];
49362
49429
  /**
49363
49430
  * Startdate
49364
49431
  * Format: date
@@ -49371,7 +49438,7 @@ export interface components {
49371
49438
  endDate?: string;
49372
49439
  /**
49373
49440
  * Commissionlevels
49374
- * @description when structure is paymentBased or fixed, only one commission level is allowed
49441
+ * @description when structure is fixed, only one commission level is allowed
49375
49442
  */
49376
49443
  commissionLevels?: components["schemas"]["UpdateCommissionLevels"][];
49377
49444
  };
@@ -54914,19 +54981,6 @@ export interface components {
54914
54981
  /** Password */
54915
54982
  password?: string;
54916
54983
  };
54917
- /** CommissionLevelSharedSchema */
54918
- CommissionLevelSharedSchema: {
54919
- /**
54920
- * Id
54921
- * Format: uuid
54922
- */
54923
- id: string;
54924
- /** Name */
54925
- name: string;
54926
- /** Commissionvalue */
54927
- commissionValue: number;
54928
- currency: components["schemas"]["CurrencySummaryInfo"] | null;
54929
- };
54930
54984
  /**
54931
54985
  * OnlineOrderSummarySchema
54932
54986
  * @description Summary of online order linked to a sales invoice
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erp-galoper/types",
3
- "version": "1.0.1932",
3
+ "version": "1.0.1934",
4
4
  "main": "openapi.ts",
5
5
  "types": "openapi.ts",
6
6
  "files": ["openapi.ts"],