@react-pakistan/util-functions 1.25.48 → 1.25.50

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 (62) hide show
  1. package/api/stellar-solutions/app-user/index.d.ts +1 -1
  2. package/api/stellar-solutions/bank/index.d.ts +1 -1
  3. package/api/stellar-solutions/branch/index.d.ts +1 -1
  4. package/api/stellar-solutions/company/index.d.ts +1 -1
  5. package/api/stellar-solutions/company-report/index.d.ts +1 -1
  6. package/api/stellar-solutions/contact/index.d.ts +1 -1
  7. package/api/stellar-solutions/currency/index.d.ts +1 -1
  8. package/api/stellar-solutions/customer/index.d.ts +1 -1
  9. package/api/stellar-solutions/expense/index.d.ts +1 -1
  10. package/api/stellar-solutions/expense-category/index.d.ts +1 -1
  11. package/api/stellar-solutions/lead/index.d.ts +1 -1
  12. package/api/stellar-solutions/menu-order/index.d.ts +1 -1
  13. package/api/stellar-solutions/payment/index.d.ts +1 -1
  14. package/api/stellar-solutions/payment/index.js +2 -2
  15. package/api/stellar-solutions/payment-mode/index.d.ts +1 -1
  16. package/api/stellar-solutions/preference/index.d.ts +1 -1
  17. package/api/stellar-solutions/product/index.d.ts +1 -1
  18. package/api/stellar-solutions/product-category/index.d.ts +1 -1
  19. package/api/stellar-solutions/profile/index.d.ts +1 -1
  20. package/api/stellar-solutions/quote-invoice/index.d.ts +1 -1
  21. package/api/stellar-solutions/quote-invoice-report/index.d.ts +1 -1
  22. package/api/stellar-solutions/tax/index.d.ts +1 -1
  23. package/api/stellar-solutions/types/common.d.ts +24 -0
  24. package/api/stellar-solutions/types/common.js +22 -0
  25. package/api/stellar-solutions/{type.d.ts → types/erp.d.ts} +1 -199
  26. package/api/stellar-solutions/types/erp.js +68 -0
  27. package/api/stellar-solutions/types/index.d.ts +3 -0
  28. package/api/stellar-solutions/types/index.js +19 -0
  29. package/api/stellar-solutions/types/pos.d.ts +176 -0
  30. package/api/stellar-solutions/types/pos.js +61 -0
  31. package/general/index.d.ts +0 -1
  32. package/general/index.js +0 -1
  33. package/index.d.ts +1 -1
  34. package/index.js +1 -1
  35. package/package.json +1 -1
  36. package/api/stellar-solutions/bank/cache.d.ts +0 -0
  37. package/api/stellar-solutions/bank/cache.js +0 -237
  38. package/api/stellar-solutions/branch/cache.d.ts +0 -0
  39. package/api/stellar-solutions/branch/cache.js +0 -241
  40. package/api/stellar-solutions/company/cache.d.ts +0 -0
  41. package/api/stellar-solutions/company/cache.js +0 -247
  42. package/api/stellar-solutions/contact/cache.d.ts +0 -0
  43. package/api/stellar-solutions/contact/cache.js +0 -247
  44. package/api/stellar-solutions/currency/cache.d.ts +0 -0
  45. package/api/stellar-solutions/currency/cache.js +0 -243
  46. package/api/stellar-solutions/customer/cache.d.ts +0 -0
  47. package/api/stellar-solutions/customer/cache.js +0 -249
  48. package/api/stellar-solutions/expense/cache.d.ts +0 -0
  49. package/api/stellar-solutions/expense/cache.js +0 -247
  50. package/api/stellar-solutions/expense-category/cache.d.ts +0 -0
  51. package/api/stellar-solutions/expense-category/cache.js +0 -224
  52. package/api/stellar-solutions/payment-mode/cache.d.ts +0 -0
  53. package/api/stellar-solutions/payment-mode/cache.js +0 -245
  54. package/api/stellar-solutions/preference/cache.d.ts +0 -0
  55. package/api/stellar-solutions/preference/cache.js +0 -218
  56. package/api/stellar-solutions/product/cache.d.ts +0 -0
  57. package/api/stellar-solutions/product/cache.js +0 -222
  58. package/api/stellar-solutions/product-category/cache.d.ts +0 -0
  59. package/api/stellar-solutions/product-category/cache.js +0 -224
  60. package/api/stellar-solutions/tax/cache.d.ts +0 -0
  61. package/api/stellar-solutions/tax/cache.js +0 -235
  62. package/api/stellar-solutions/type.js +0 -142
@@ -1,235 +0,0 @@
1
- // import { API_ROUTES } from '../constants';
2
- // import { TaxBE, LS_KEYS } from '../type';
3
- // import { API_METHODS } from '../../../constants/api-methods';
4
- // import { fetchData } from '../../../general/fetch-data';
5
- // import { getStorageValue } from '../../../local-storage/get-storage-value';
6
- // import { setStorageValue } from '../../../local-storage/set-storage-value';
7
- // import { ONE_WEEK_IN_MS } from '../../../constants';
8
- // interface CachedTaxes {
9
- // taxes: TaxBE[];
10
- // cachedAt: string;
11
- // }
12
- // /**
13
- // * Synchronous utility function to get taxes from cache only
14
- // * Returns cached data immediately if available and fresh, otherwise returns empty array
15
- // * Does not trigger any API calls
16
- // *
17
- // * @returns TaxBE[] - Array of cached taxes or empty array wrapper ({count, items})
18
- // *
19
- // * @example
20
- // * const taxes = getCachedTaxesSync();
21
- // * if (taxes.items.length > 0) {
22
- // * console.log(taxes.items[0].taxName);
23
- // * }
24
- // */
25
- // export const getCachedTaxesSync = (): {
26
- // count: number;
27
- // items: TaxBE[];
28
- // } => {
29
- // try {
30
- // const cachedData = getStorageValue(LS_KEYS.TAXES) as CachedTaxes | null;
31
- // if (!cachedData) {
32
- // return { count: 0, items: [] };
33
- // }
34
- // const currentTime = new Date().getTime();
35
- // const cachedTime = new Date(cachedData.cachedAt).getTime();
36
- // const ageInMs = currentTime - cachedTime;
37
- // // If cached data is less than 1 week old, return it
38
- // if (ageInMs < ONE_WEEK_IN_MS) {
39
- // return {
40
- // count: cachedData.taxes.length,
41
- // items: cachedData.taxes,
42
- // };
43
- // }
44
- // return { count: 0, items: [] };
45
- // } catch (error) {
46
- // console.error('Error getting cached taxes:', error);
47
- // return { count: 0, items: [] };
48
- // }
49
- // };
50
- // /**
51
- // * Utility function to get taxes from cache or fetch from API
52
- // *
53
- // * This function manages a localStorage cache of taxes with the following logic:
54
- // * - If taxes exist in cache and are less than 1 week old, return cached version
55
- // * - If taxes exist but are older than 1 week, fetch fresh data and update cache
56
- // * - If taxes don't exist in cache, fetch from API and cache them
57
- // *
58
- // * @param searchQuery - Optional search query to filter taxes
59
- // * @param pageLimit - Number of taxes to fetch (default: 100)
60
- // * @returns Promise<{count:number, items: TaxBE[]}> - Paged taxes
61
- // *
62
- // * @example
63
- // * const taxes = await getCachedTaxes();
64
- // * console.log(taxes.items[0].taxName);
65
- // *
66
- // * // With search
67
- // * const filtered = await getCachedTaxes('VAT');
68
- // */
69
- // export const getCachedTaxes = async (
70
- // searchQuery?: string,
71
- // pageLimit: number = 100
72
- // ): Promise<{
73
- // count: number;
74
- // items: TaxBE[];
75
- // }> => {
76
- // try {
77
- // // If there's a search query, always fetch fresh data (don't use cache)
78
- // if (searchQuery && searchQuery.trim()) {
79
- // const response = await fetchData({
80
- // url: API_ROUTES.TAXES,
81
- // body: JSON.stringify({
82
- // searchQuery,
83
- // pageLimit,
84
- // currentPage: 1,
85
- // }),
86
- // method: API_METHODS.POST,
87
- // });
88
- // return response?.data || { count: 0, items: [] };
89
- // }
90
- // // Get the cached data from localStorage
91
- // const cachedData = getStorageValue(LS_KEYS.TAXES) as CachedTaxes | null;
92
- // const currentTime = new Date().getTime();
93
- // // Check if cached data exists and is still fresh
94
- // if (cachedData) {
95
- // const cachedTime = new Date(cachedData.cachedAt).getTime();
96
- // const ageInMs = currentTime - cachedTime;
97
- // // If cached data is less than 1 week old, return it
98
- // if (ageInMs < ONE_WEEK_IN_MS) {
99
- // return {
100
- // count: cachedData.taxes.length,
101
- // items: cachedData.taxes,
102
- // };
103
- // }
104
- // }
105
- // // If no cached data or data is older than 1 week, fetch fresh data
106
- // const response = await fetchData({
107
- // url: API_ROUTES.TAXES,
108
- // body: JSON.stringify({
109
- // pageLimit,
110
- // currentPage: 1,
111
- // }),
112
- // method: API_METHODS.POST,
113
- // });
114
- // if (response?.data?.items) {
115
- // // Update the cache with fresh data
116
- // const updatedCache: CachedTaxes = {
117
- // taxes: response.data.items,
118
- // cachedAt: new Date().toISOString(),
119
- // };
120
- // setStorageValue(LS_KEYS.TAXES, updatedCache);
121
- // return response.data;
122
- // }
123
- // return { count: 0, items: [] };
124
- // } catch (error) {
125
- // console.error('Error fetching taxes:', error);
126
- // return { count: 0, items: [] };
127
- // }
128
- // };
129
- // /**
130
- // * Utility function to get a specific tax by ID from cache
131
- // * If not found in cache, returns null (does not trigger API call)
132
- // *
133
- // * @param taxId - The ID of the tax to retrieve
134
- // * @returns TaxBE | null - The tax or null if not found
135
- // *
136
- // * @example
137
- // * const tax = getCachedTaxById('tax-123');
138
- // * if (tax) {
139
- // * console.log(tax.taxName);
140
- // * }
141
- // */
142
- // export const getCachedTaxById = (taxId: string): TaxBE | null => {
143
- // if (!taxId) {
144
- // return null;
145
- // }
146
- // try {
147
- // const taxes = getCachedTaxesSync().items;
148
- // return taxes.find((tax) => tax.id === taxId) || null;
149
- // } catch (error) {
150
- // console.error('Error getting cached tax by ID:', error);
151
- // return null;
152
- // }
153
- // };
154
- // /**
155
- // * Utility function to get taxes by name from cache
156
- // * If not found in cache, returns empty array (does not trigger API call)
157
- // *
158
- // * @param taxName - The name of the tax to search for
159
- // * @returns TaxBE[] - Array of matching taxes or empty array
160
- // *
161
- // * @example
162
- // * const taxes = getCachedTaxesByName('VAT');
163
- // * console.log(taxes.length);
164
- // */
165
- // export const getCachedTaxesByName = (taxName: string): TaxBE[] => {
166
- // if (!taxName) {
167
- // return [];
168
- // }
169
- // try {
170
- // const taxes = getCachedTaxesSync().items;
171
- // return taxes.filter((tax) =>
172
- // tax.taxName.toLowerCase().includes(taxName.toLowerCase())
173
- // );
174
- // } catch (error) {
175
- // console.error('Error getting cached taxes by name:', error);
176
- // return [];
177
- // }
178
- // };
179
- // /**
180
- // * Utility function to invalidate (remove) taxes from cache
181
- // * Useful when taxes have been updated and you want to force a refresh
182
- // *
183
- // * @example
184
- // * invalidateTaxesCache();
185
- // * const freshTaxes = await getCachedTaxes();
186
- // */
187
- // export const invalidateTaxesCache = (): void => {
188
- // try {
189
- // localStorage.removeItem(LS_KEYS.TAXES);
190
- // } catch (error) {
191
- // console.error('Error invalidating taxes cache:', error);
192
- // }
193
- // };
194
- // /**
195
- // * Utility function to preload taxes into cache
196
- // * Useful to call on app initialization or login
197
- // *
198
- // * @returns Promise<{count:number, items: TaxBE[]}> - Array of preloaded taxes
199
- // *
200
- // * @example
201
- // * // On app initialization
202
- // * await preloadTaxes();
203
- // */
204
- // export const preloadTaxes = async (): Promise<{
205
- // count: number;
206
- // items: TaxBE[];
207
- // }> => {
208
- // return getCachedTaxes();
209
- // };
210
- // /**
211
- // * Utility function to check if taxes cache is stale
212
- // * Returns true if cache is older than 1 week or doesn't exist
213
- // *
214
- // * @returns boolean - True if cache is stale or doesn't exist
215
- // *
216
- // * @example
217
- // * if (isTaxesCacheStale()) {
218
- // * await getCachedTaxes(); // This will fetch fresh data
219
- // * }
220
- // */
221
- // export const isTaxesCacheStale = (): boolean => {
222
- // try {
223
- // const cachedData = getStorageValue(LS_KEYS.TAXES) as CachedTaxes | null;
224
- // if (!cachedData) {
225
- // return true;
226
- // }
227
- // const currentTime = new Date().getTime();
228
- // const cachedTime = new Date(cachedData.cachedAt).getTime();
229
- // const ageInMs = currentTime - cachedTime;
230
- // return ageInMs >= ONE_WEEK_IN_MS;
231
- // } catch (error) {
232
- // console.error('Error checking taxes cache staleness:', error);
233
- // return true;
234
- // }
235
- // };
@@ -1,142 +0,0 @@
1
- "use strict";
2
- // ============================================================================
3
- // ENUMS
4
- // ============================================================================
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.POS_DISCOUNT_TYPE = exports.POS_SHIFT_STATUS = exports.POS_RESERVATION_STATUS = exports.POS_TABLE_STATUS = exports.POS_TAX_TYPE = exports.POS_REGISTER_STATUS = exports.POS_PAYMENT_METHOD_TYPE = exports.POS_PAYMENT_STATUS = exports.POS_ORDER_STATUS = exports.LS_KEYS = exports.LEAD_STATUS = exports.LEAD_TYPE = exports.LEAD_SOURCE = exports.PAYMENT_TYPE = exports.QUOTE_STATUS = exports.INVOICE_STATUS = exports.DISCOUNT_UNIT = exports.QUOTE_INVOICE_CATEGORY = exports.GENDER = void 0;
7
- var GENDER;
8
- (function (GENDER) {
9
- GENDER["MALE"] = "MALE";
10
- GENDER["FEMALE"] = "FEMALE";
11
- })(GENDER || (exports.GENDER = GENDER = {}));
12
- var QUOTE_INVOICE_CATEGORY;
13
- (function (QUOTE_INVOICE_CATEGORY) {
14
- QUOTE_INVOICE_CATEGORY["QUOTE"] = "QUOTE";
15
- QUOTE_INVOICE_CATEGORY["INVOICE"] = "INVOICE";
16
- })(QUOTE_INVOICE_CATEGORY || (exports.QUOTE_INVOICE_CATEGORY = QUOTE_INVOICE_CATEGORY = {}));
17
- var DISCOUNT_UNIT;
18
- (function (DISCOUNT_UNIT) {
19
- DISCOUNT_UNIT["FIXED_VALUE"] = "FIXED_VALUE";
20
- DISCOUNT_UNIT["PERCENTAGE_VALUE"] = "PERCENTAGE_VALUE";
21
- })(DISCOUNT_UNIT || (exports.DISCOUNT_UNIT = DISCOUNT_UNIT = {}));
22
- var INVOICE_STATUS;
23
- (function (INVOICE_STATUS) {
24
- INVOICE_STATUS["UNPAID"] = "UNPAID";
25
- INVOICE_STATUS["PAID"] = "PAID";
26
- })(INVOICE_STATUS || (exports.INVOICE_STATUS = INVOICE_STATUS = {}));
27
- var QUOTE_STATUS;
28
- (function (QUOTE_STATUS) {
29
- QUOTE_STATUS["DRAFT"] = "DRAFT";
30
- QUOTE_STATUS["PENDING"] = "PENDING";
31
- QUOTE_STATUS["SENT"] = "SENT";
32
- QUOTE_STATUS["ACCEPTED"] = "ACCEPTED";
33
- QUOTE_STATUS["DECLINED"] = "DECLINED";
34
- })(QUOTE_STATUS || (exports.QUOTE_STATUS = QUOTE_STATUS = {}));
35
- var PAYMENT_TYPE;
36
- (function (PAYMENT_TYPE) {
37
- PAYMENT_TYPE["FULL_AMOUNT"] = "FULL_AMOUNT";
38
- PAYMENT_TYPE["PARTIAL_AMOUNT"] = "PARTIAL_AMOUNT";
39
- })(PAYMENT_TYPE || (exports.PAYMENT_TYPE = PAYMENT_TYPE = {}));
40
- var LEAD_SOURCE;
41
- (function (LEAD_SOURCE) {
42
- LEAD_SOURCE["WEBSITE"] = "WEBSITE";
43
- LEAD_SOURCE["SOCIAL_MEDIA"] = "SOCIAL_MEDIA";
44
- LEAD_SOURCE["LINKEDIN"] = "LINKEDIN";
45
- LEAD_SOURCE["PROFESSIONAL_NETWORK"] = "PROFESSIONAL_NETWORK";
46
- LEAD_SOURCE["CUSTOMER_REFERRAL"] = "CUSTOMER_REFERRAL";
47
- LEAD_SOURCE["SALES"] = "SALES";
48
- LEAD_SOURCE["ADVERTISING"] = "ADVERTISING";
49
- LEAD_SOURCE["FRIEND"] = "FRIEND";
50
- LEAD_SOURCE["OTHER"] = "OTHER";
51
- })(LEAD_SOURCE || (exports.LEAD_SOURCE = LEAD_SOURCE = {}));
52
- var LEAD_TYPE;
53
- (function (LEAD_TYPE) {
54
- LEAD_TYPE["COMPANY"] = "COMPANY";
55
- LEAD_TYPE["CONTACT"] = "CONTACT";
56
- })(LEAD_TYPE || (exports.LEAD_TYPE = LEAD_TYPE = {}));
57
- var LEAD_STATUS;
58
- (function (LEAD_STATUS) {
59
- LEAD_STATUS["NEW"] = "NEW";
60
- LEAD_STATUS["ASSIGNED"] = "ASSIGNED";
61
- LEAD_STATUS["IN_NEGOTIATION"] = "IN_NEGOTIATION";
62
- LEAD_STATUS["ON_HOLD"] = "ON_HOLD";
63
- LEAD_STATUS["WON"] = "WON";
64
- LEAD_STATUS["LOOSE"] = "LOOSE";
65
- LEAD_STATUS["CANCELLED"] = "CANCELLED";
66
- LEAD_STATUS["DRAFT"] = "DRAFT";
67
- LEAD_STATUS["WAITING"] = "WAITING";
68
- })(LEAD_STATUS || (exports.LEAD_STATUS = LEAD_STATUS = {}));
69
- var LS_KEYS;
70
- (function (LS_KEYS) {
71
- LS_KEYS["BANKS"] = "stellar_banks_cache";
72
- LS_KEYS["BRANCHES"] = "stellar_branches_cache";
73
- LS_KEYS["COMPANIES"] = "stellar_companies_cache";
74
- LS_KEYS["CONTACTS"] = "stellar_contacts_cache";
75
- LS_KEYS["CURRENCIES"] = "stellar_currencies_cache";
76
- LS_KEYS["CUSTOMERS"] = "stellar_customers_cache";
77
- LS_KEYS["EXPENSE_CATEGORIES"] = "stellar_expense_categories_cache";
78
- LS_KEYS["EXPENSES"] = "stellar_expenses_cache";
79
- LS_KEYS["PAYMENT_MODES"] = "stellar_payment_modes_cache";
80
- LS_KEYS["PREFERENCES"] = "stellar_preferences_cache";
81
- LS_KEYS["PRODUCT_CATEGORIES"] = "stellar_product_categories_cache";
82
- LS_KEYS["PRODUCTS"] = "stellar_products_cache";
83
- LS_KEYS["TAXES"] = "stellar_taxes_cache";
84
- })(LS_KEYS || (exports.LS_KEYS = LS_KEYS = {}));
85
- // ============================================================================
86
- // POS ENUMS
87
- // ============================================================================
88
- var POS_ORDER_STATUS;
89
- (function (POS_ORDER_STATUS) {
90
- POS_ORDER_STATUS["OPEN"] = "OPEN";
91
- POS_ORDER_STATUS["CLOSED"] = "CLOSED";
92
- POS_ORDER_STATUS["CANCELLED"] = "CANCELLED";
93
- POS_ORDER_STATUS["REFUNDED"] = "REFUNDED";
94
- })(POS_ORDER_STATUS || (exports.POS_ORDER_STATUS = POS_ORDER_STATUS = {}));
95
- var POS_PAYMENT_STATUS;
96
- (function (POS_PAYMENT_STATUS) {
97
- POS_PAYMENT_STATUS["PENDING"] = "PENDING";
98
- POS_PAYMENT_STATUS["PAID"] = "PAID";
99
- POS_PAYMENT_STATUS["FAILED"] = "FAILED";
100
- POS_PAYMENT_STATUS["REFUNDED"] = "REFUNDED";
101
- })(POS_PAYMENT_STATUS || (exports.POS_PAYMENT_STATUS = POS_PAYMENT_STATUS = {}));
102
- var POS_PAYMENT_METHOD_TYPE;
103
- (function (POS_PAYMENT_METHOD_TYPE) {
104
- POS_PAYMENT_METHOD_TYPE["CASH"] = "CASH";
105
- POS_PAYMENT_METHOD_TYPE["CARD"] = "CARD";
106
- POS_PAYMENT_METHOD_TYPE["GIFT_CARD"] = "GIFT_CARD";
107
- POS_PAYMENT_METHOD_TYPE["MOBILE_WALLET"] = "MOBILE_WALLET";
108
- POS_PAYMENT_METHOD_TYPE["OTHER"] = "OTHER";
109
- })(POS_PAYMENT_METHOD_TYPE || (exports.POS_PAYMENT_METHOD_TYPE = POS_PAYMENT_METHOD_TYPE = {}));
110
- var POS_REGISTER_STATUS;
111
- (function (POS_REGISTER_STATUS) {
112
- POS_REGISTER_STATUS["ACTIVE"] = "ACTIVE";
113
- POS_REGISTER_STATUS["INACTIVE"] = "INACTIVE";
114
- })(POS_REGISTER_STATUS || (exports.POS_REGISTER_STATUS = POS_REGISTER_STATUS = {}));
115
- var POS_TAX_TYPE;
116
- (function (POS_TAX_TYPE) {
117
- POS_TAX_TYPE["EXCLUSIVE"] = "EXCLUSIVE";
118
- POS_TAX_TYPE["INCLUSIVE"] = "INCLUSIVE";
119
- })(POS_TAX_TYPE || (exports.POS_TAX_TYPE = POS_TAX_TYPE = {}));
120
- var POS_TABLE_STATUS;
121
- (function (POS_TABLE_STATUS) {
122
- POS_TABLE_STATUS["AVAILABLE"] = "AVAILABLE";
123
- POS_TABLE_STATUS["OCCUPIED"] = "OCCUPIED";
124
- POS_TABLE_STATUS["RESERVED"] = "RESERVED";
125
- })(POS_TABLE_STATUS || (exports.POS_TABLE_STATUS = POS_TABLE_STATUS = {}));
126
- var POS_RESERVATION_STATUS;
127
- (function (POS_RESERVATION_STATUS) {
128
- POS_RESERVATION_STATUS["PENDING"] = "PENDING";
129
- POS_RESERVATION_STATUS["CONFIRMED"] = "CONFIRMED";
130
- POS_RESERVATION_STATUS["CANCELLED"] = "CANCELLED";
131
- POS_RESERVATION_STATUS["COMPLETED"] = "COMPLETED";
132
- })(POS_RESERVATION_STATUS || (exports.POS_RESERVATION_STATUS = POS_RESERVATION_STATUS = {}));
133
- var POS_SHIFT_STATUS;
134
- (function (POS_SHIFT_STATUS) {
135
- POS_SHIFT_STATUS["OPEN"] = "OPEN";
136
- POS_SHIFT_STATUS["CLOSED"] = "CLOSED";
137
- })(POS_SHIFT_STATUS || (exports.POS_SHIFT_STATUS = POS_SHIFT_STATUS = {}));
138
- var POS_DISCOUNT_TYPE;
139
- (function (POS_DISCOUNT_TYPE) {
140
- POS_DISCOUNT_TYPE["FIXED"] = "FIXED";
141
- POS_DISCOUNT_TYPE["PERCENTAGE"] = "PERCENTAGE";
142
- })(POS_DISCOUNT_TYPE || (exports.POS_DISCOUNT_TYPE = POS_DISCOUNT_TYPE = {}));