@react-pakistan/util-functions 1.24.98 → 1.25.0

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 (59) hide show
  1. package/api/stellar-solutions/bank/cache.d.ts +99 -0
  2. package/api/stellar-solutions/bank/cache.js +256 -0
  3. package/api/stellar-solutions/bank/index.d.ts +1 -1
  4. package/api/stellar-solutions/bank/index.js +15 -0
  5. package/api/stellar-solutions/branch/cache.d.ts +97 -0
  6. package/api/stellar-solutions/branch/cache.js +256 -0
  7. package/api/stellar-solutions/branch/index.d.ts +1 -1
  8. package/api/stellar-solutions/branch/index.js +15 -0
  9. package/api/stellar-solutions/company/cache.d.ts +106 -0
  10. package/api/stellar-solutions/company/cache.js +307 -0
  11. package/api/stellar-solutions/company/index.d.ts +1 -1
  12. package/api/stellar-solutions/company/index.js +15 -0
  13. package/api/stellar-solutions/constants.d.ts +21 -0
  14. package/api/stellar-solutions/constants.js +24 -0
  15. package/api/stellar-solutions/contact/cache.d.ts +108 -0
  16. package/api/stellar-solutions/contact/cache.js +307 -0
  17. package/api/stellar-solutions/contact/index.d.ts +1 -1
  18. package/api/stellar-solutions/contact/index.js +15 -0
  19. package/api/stellar-solutions/currency/cache.d.ts +99 -0
  20. package/api/stellar-solutions/currency/cache.js +256 -0
  21. package/api/stellar-solutions/currency/index.d.ts +1 -1
  22. package/api/stellar-solutions/currency/index.js +15 -0
  23. package/api/stellar-solutions/customer/cache.d.ts +108 -0
  24. package/api/stellar-solutions/customer/cache.js +307 -0
  25. package/api/stellar-solutions/customer/index.d.ts +1 -1
  26. package/api/stellar-solutions/customer/index.js +15 -0
  27. package/api/stellar-solutions/expense/cache.d.ts +106 -0
  28. package/api/stellar-solutions/expense/cache.js +307 -0
  29. package/api/stellar-solutions/expense/index.d.ts +1 -1
  30. package/api/stellar-solutions/expense/index.js +15 -0
  31. package/api/stellar-solutions/expense-category/cache.d.ts +94 -0
  32. package/api/stellar-solutions/expense-category/cache.js +280 -0
  33. package/api/stellar-solutions/expense-category/index.d.ts +1 -1
  34. package/api/stellar-solutions/expense-category/index.js +15 -0
  35. package/api/stellar-solutions/payment-mode/cache.d.ts +97 -0
  36. package/api/stellar-solutions/payment-mode/cache.js +256 -0
  37. package/api/stellar-solutions/payment-mode/index.d.ts +1 -1
  38. package/api/stellar-solutions/payment-mode/index.js +15 -0
  39. package/api/stellar-solutions/preference/cache.d.ts +85 -0
  40. package/api/stellar-solutions/preference/cache.js +229 -0
  41. package/api/stellar-solutions/preference/index.d.ts +1 -1
  42. package/api/stellar-solutions/preference/index.js +15 -0
  43. package/api/stellar-solutions/product/cache.d.ts +94 -0
  44. package/api/stellar-solutions/product/cache.js +280 -0
  45. package/api/stellar-solutions/product/index.d.ts +4 -6
  46. package/api/stellar-solutions/product/index.js +24 -8
  47. package/api/stellar-solutions/product-category/cache.d.ts +94 -0
  48. package/api/stellar-solutions/product-category/cache.js +280 -0
  49. package/api/stellar-solutions/product-category/index.d.ts +1 -1
  50. package/api/stellar-solutions/product-category/index.js +15 -0
  51. package/api/stellar-solutions/tax/cache.d.ts +97 -0
  52. package/api/stellar-solutions/tax/cache.js +256 -0
  53. package/api/stellar-solutions/tax/index.d.ts +1 -1
  54. package/api/stellar-solutions/tax/index.js +15 -0
  55. package/api/stellar-solutions/type.d.ts +15 -0
  56. package/api/stellar-solutions/type.js +17 -1
  57. package/index.d.ts +6 -5
  58. package/index.js +6 -6
  59. package/package.json +1 -1
@@ -10,6 +10,20 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
25
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
26
+ };
13
27
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
14
28
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
29
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -57,6 +71,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
57
71
  };
58
72
  Object.defineProperty(exports, "__esModule", { value: true });
59
73
  exports.deleteTax = exports.updateTax = exports.unitTaxById = exports.listTax = void 0;
74
+ __exportStar(require("./cache"), exports);
60
75
  var multi_part_search_1 = require("../../../general/multi-part-search");
61
76
  /**
62
77
  * Retrieves a paginated list of taxes
@@ -78,6 +78,21 @@ export declare enum LEAD_TYPE {
78
78
  COMPANY = "COMPANY",
79
79
  CONTACT = "CONTACT"
80
80
  }
81
+ export declare enum LS_KEYS {
82
+ BANKS = "stellar_banks_cache",
83
+ BRANCHES = "stellar_branches_cache",
84
+ COMPANIES = "stellar_companies_cache",
85
+ CONTACTS = "stellar_contacts_cache",
86
+ CURRENCIES = "stellar_currencies_cache",
87
+ CUSTOMERS = "stellar_customers_cache",
88
+ EXPENSE_CATEGORIES = "stellar_expense_categories_cache",
89
+ EXPENSES = "stellar_expenses_cache",
90
+ PAYMENT_MODES = "stellar_payment_modes_cache",
91
+ PREFERENCES = "stellar_preferences_cache",
92
+ PRODUCT_CATEGORIES = "stellar_product_categories_cache",
93
+ PRODUCTS = "stellar_products_cache",
94
+ TAXES = "stellar_taxes_cache"
95
+ }
81
96
  /**
82
97
  * Base timestamp fields present in all entities
83
98
  */
@@ -3,7 +3,7 @@
3
3
  // ENUMS
4
4
  // ============================================================================
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.LEAD_TYPE = exports.LEAD_STATUS = exports.LEAD_SOURCE = exports.PAYMENT_TYPE = exports.QUOTE_STATUS = exports.INVOICE_STATUS = exports.DISCOUNT_UNIT = exports.QUOTE_INVOICE_CATEGORY = exports.GENDER = void 0;
6
+ exports.LS_KEYS = exports.LEAD_TYPE = exports.LEAD_STATUS = exports.LEAD_SOURCE = exports.PAYMENT_TYPE = exports.QUOTE_STATUS = exports.INVOICE_STATUS = exports.DISCOUNT_UNIT = exports.QUOTE_INVOICE_CATEGORY = exports.GENDER = void 0;
7
7
  /**
8
8
  * Gender options for user profiles
9
9
  */
@@ -93,3 +93,19 @@ var LEAD_TYPE;
93
93
  LEAD_TYPE["COMPANY"] = "COMPANY";
94
94
  LEAD_TYPE["CONTACT"] = "CONTACT";
95
95
  })(LEAD_TYPE || (exports.LEAD_TYPE = LEAD_TYPE = {}));
96
+ var LS_KEYS;
97
+ (function (LS_KEYS) {
98
+ LS_KEYS["BANKS"] = "stellar_banks_cache";
99
+ LS_KEYS["BRANCHES"] = "stellar_branches_cache";
100
+ LS_KEYS["COMPANIES"] = "stellar_companies_cache";
101
+ LS_KEYS["CONTACTS"] = "stellar_contacts_cache";
102
+ LS_KEYS["CURRENCIES"] = "stellar_currencies_cache";
103
+ LS_KEYS["CUSTOMERS"] = "stellar_customers_cache";
104
+ LS_KEYS["EXPENSE_CATEGORIES"] = "stellar_expense_categories_cache";
105
+ LS_KEYS["EXPENSES"] = "stellar_expenses_cache";
106
+ LS_KEYS["PAYMENT_MODES"] = "stellar_payment_modes_cache";
107
+ LS_KEYS["PREFERENCES"] = "stellar_preferences_cache";
108
+ LS_KEYS["PRODUCT_CATEGORIES"] = "stellar_product_categories_cache";
109
+ LS_KEYS["PRODUCTS"] = "stellar_products_cache";
110
+ LS_KEYS["TAXES"] = "stellar_taxes_cache";
111
+ })(LS_KEYS || (exports.LS_KEYS = LS_KEYS = {}));
package/index.d.ts CHANGED
@@ -2,23 +2,24 @@ export * from './api/cors';
2
2
  export * from './api/stellar-solutions/app-user';
3
3
  export * from './api/stellar-solutions/bank';
4
4
  export * from './api/stellar-solutions/branch';
5
- export * from './api/stellar-solutions/company';
6
5
  export * from './api/stellar-solutions/company-report';
6
+ export * from './api/stellar-solutions/company';
7
+ export * from './api/stellar-solutions/constants';
7
8
  export * from './api/stellar-solutions/contact';
8
9
  export * from './api/stellar-solutions/currency';
9
10
  export * from './api/stellar-solutions/customer';
10
- export * from './api/stellar-solutions/expense';
11
11
  export * from './api/stellar-solutions/expense-category';
12
+ export * from './api/stellar-solutions/expense';
12
13
  export * from './api/stellar-solutions/lead';
13
14
  export * from './api/stellar-solutions/menu-order';
14
- export * from './api/stellar-solutions/payment';
15
15
  export * from './api/stellar-solutions/payment-mode';
16
+ export * from './api/stellar-solutions/payment';
16
17
  export * from './api/stellar-solutions/preference';
17
- export * from './api/stellar-solutions/product';
18
18
  export * from './api/stellar-solutions/product-category';
19
+ export * from './api/stellar-solutions/product';
19
20
  export * from './api/stellar-solutions/profile';
20
- export * from './api/stellar-solutions/quote-invoice';
21
21
  export * from './api/stellar-solutions/quote-invoice-report';
22
+ export * from './api/stellar-solutions/quote-invoice';
22
23
  export * from './api/stellar-solutions/tax';
23
24
  export * from './constants';
24
25
  export * from './general';
package/index.js CHANGED
@@ -18,27 +18,27 @@ __exportStar(require("./api/cors"), exports);
18
18
  __exportStar(require("./api/stellar-solutions/app-user"), exports);
19
19
  __exportStar(require("./api/stellar-solutions/bank"), exports);
20
20
  __exportStar(require("./api/stellar-solutions/branch"), exports);
21
- __exportStar(require("./api/stellar-solutions/company"), exports);
22
21
  __exportStar(require("./api/stellar-solutions/company-report"), exports);
22
+ __exportStar(require("./api/stellar-solutions/company"), exports);
23
+ __exportStar(require("./api/stellar-solutions/constants"), exports);
23
24
  __exportStar(require("./api/stellar-solutions/contact"), exports);
24
25
  __exportStar(require("./api/stellar-solutions/currency"), exports);
25
26
  __exportStar(require("./api/stellar-solutions/customer"), exports);
26
- __exportStar(require("./api/stellar-solutions/expense"), exports);
27
27
  __exportStar(require("./api/stellar-solutions/expense-category"), exports);
28
+ __exportStar(require("./api/stellar-solutions/expense"), exports);
28
29
  __exportStar(require("./api/stellar-solutions/lead"), exports);
29
30
  __exportStar(require("./api/stellar-solutions/menu-order"), exports);
30
- __exportStar(require("./api/stellar-solutions/payment"), exports);
31
31
  __exportStar(require("./api/stellar-solutions/payment-mode"), exports);
32
+ __exportStar(require("./api/stellar-solutions/payment"), exports);
32
33
  __exportStar(require("./api/stellar-solutions/preference"), exports);
33
- __exportStar(require("./api/stellar-solutions/product"), exports);
34
34
  __exportStar(require("./api/stellar-solutions/product-category"), exports);
35
+ __exportStar(require("./api/stellar-solutions/product"), exports);
35
36
  __exportStar(require("./api/stellar-solutions/profile"), exports);
36
- __exportStar(require("./api/stellar-solutions/quote-invoice"), exports);
37
37
  __exportStar(require("./api/stellar-solutions/quote-invoice-report"), exports);
38
+ __exportStar(require("./api/stellar-solutions/quote-invoice"), exports);
38
39
  __exportStar(require("./api/stellar-solutions/tax"), exports);
39
40
  __exportStar(require("./constants"), exports);
40
41
  __exportStar(require("./general"), exports);
41
42
  __exportStar(require("./hooks"), exports);
42
43
  __exportStar(require("./local-storage"), exports);
43
44
  __exportStar(require("./storybook"), exports);
44
- // export * from './module/my-module';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-pakistan/util-functions",
3
- "version": "1.24.98",
3
+ "version": "1.25.0",
4
4
  "description": "A library of all util functions",
5
5
  "main": "index.js",
6
6
  "scripts": {