@erpsquad/common 1.8.55 → 1.8.57

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 (31) hide show
  1. package/dist/_virtual/index/index.esm10.js +4 -2
  2. package/dist/_virtual/index/index.esm10.js.map +1 -1
  3. package/dist/_virtual/index/index.esm11.js +2 -4
  4. package/dist/_virtual/index/index.esm11.js.map +1 -1
  5. package/dist/_virtual/index/index10.js +1 -1
  6. package/dist/_virtual/index/index11.js +1 -1
  7. package/dist/api-client/api.workflow-automation/api/index.esm.js +29 -0
  8. package/dist/api-client/api.workflow-automation/api/index.esm.js.map +1 -0
  9. package/dist/api-client/api.workflow-automation/api/index.js +2 -0
  10. package/dist/api-client/api.workflow-automation/api/index.js.map +1 -0
  11. package/dist/api-client/api.workflow-automation/api.d.ts +42 -0
  12. package/dist/components/filter/filter/index.esm.js +1 -1
  13. package/dist/components/filter/filter/index.esm.js.map +1 -1
  14. package/dist/components/filter/filter/index.js +1 -1
  15. package/dist/components/filter/filter/index.js.map +1 -1
  16. package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.esm.js +1 -1
  17. package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.js +1 -1
  18. package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.esm.js +1 -1
  19. package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.js +1 -1
  20. package/dist/src/utils/api.d.ts +7 -0
  21. package/dist/src/utils/common.d.ts +25 -3
  22. package/dist/style.css +2 -2
  23. package/dist/utils/api/index.esm.js +8 -0
  24. package/dist/utils/api/index.esm.js.map +1 -1
  25. package/dist/utils/api/index.js +1 -1
  26. package/dist/utils/api/index.js.map +1 -1
  27. package/dist/utils/common/index.esm.js +29 -9
  28. package/dist/utils/common/index.esm.js.map +1 -1
  29. package/dist/utils/common/index.js +1 -1
  30. package/dist/utils/common/index.js.map +1 -1
  31. package/package.json +1 -1
@@ -74,9 +74,31 @@ export declare const InvoiceStatus: {
74
74
  Approved: string;
75
75
  Rejected: string;
76
76
  };
77
- export declare const defaultCurrencySymbol: () => string;
78
- export declare const defaultCurrencyFormat: () => string;
79
- export declare const defaultCompany: () => number;
77
+ /**
78
+ * Get the default currency symbol from localStorage user data.
79
+ * This is a utility function (not a hook) so it can be safely called anywhere.
80
+ * @param currencyData - Optional pre-fetched currency data to avoid localStorage lookup
81
+ */
82
+ export declare const defaultCurrencySymbol: (currencyData?: {
83
+ symbol?: string;
84
+ }) => any;
85
+ /**
86
+ * Get the default currency format from localStorage user data.
87
+ * This is a utility function (not a hook) so it can be safely called anywhere.
88
+ * @param currencyData - Optional pre-fetched currency data to avoid localStorage lookup
89
+ */
90
+ export declare const defaultCurrencyFormat: (currencyData?: {
91
+ number_format?: string;
92
+ }) => any;
93
+ /**
94
+ * Get the default company from localStorage user data.
95
+ * This is a utility function (not a hook) so it can be safely called anywhere.
96
+ * @param userData - Optional pre-fetched user data to avoid localStorage lookup
97
+ */
98
+ export declare const defaultCompany: (userData?: {
99
+ accessCompanies?: number[];
100
+ company_id?: number | null;
101
+ }) => number;
80
102
  export declare function omitDataKeys<T>(obj: T, extra?: Array<string>): T;
81
103
  export interface DataObject {
82
104
  [key: string]: any;