@erpsquad/common 1.8.94 → 1.8.95
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.
- package/dist/_virtual/index/index.esm2.js +4 -2
- package/dist/_virtual/index/index.esm2.js.map +1 -1
- package/dist/_virtual/index/index.esm3.js +2 -4
- package/dist/_virtual/index/index.esm3.js.map +1 -1
- package/dist/_virtual/index/index.esm4.js +3 -3
- package/dist/_virtual/index/index.esm5.js +3 -3
- package/dist/_virtual/index/index.esm6.js +3 -3
- package/dist/_virtual/index/index2.js +1 -1
- package/dist/_virtual/index/index3.js +1 -1
- package/dist/_virtual/index/index4.js +1 -1
- package/dist/_virtual/index/index5.js +1 -1
- package/dist/_virtual/index/index6.js +1 -1
- package/dist/api-client/api.hrms/api/index.esm.js +1 -12
- package/dist/api-client/api.hrms/api/index.esm.js.map +1 -1
- package/dist/api-client/api.hrms/api/index.js +1 -1
- package/dist/api-client/api.hrms/api/index.js.map +1 -1
- package/dist/api-client/api.rbac/api/index.esm2.js +230 -1
- package/dist/api-client/api.rbac/api/index.esm2.js.map +1 -1
- package/dist/api-client/api.rbac/api/index2.js +1 -1
- package/dist/api-client/api.rbac/api/index2.js.map +1 -1
- package/dist/components/action-bar/action-bar/index.esm.js +1 -1
- package/dist/components/action-bar/action-bar/index.esm.js.map +1 -1
- package/dist/components/action-bar/action-bar/index.js +5 -5
- package/dist/components/action-bar/action-bar/index.js.map +1 -1
- package/dist/components/filter/filter/index.esm.js +1 -1
- package/dist/components/filter/filter/index.esm.js.map +1 -1
- package/dist/components/filter/filter/index.js +7 -7
- package/dist/components/filter/filter/index.js.map +1 -1
- package/dist/components/header/redux/actionCreator/index.esm.js +1 -1
- package/dist/components/header/redux/actionCreator/index.esm.js.map +1 -1
- package/dist/components/header/redux/actionCreator/index.js +1 -1
- package/dist/components/header/redux/actionCreator/index.js.map +1 -1
- package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.esm.js +1 -1
- package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.esm.js.map +1 -1
- package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.js +1 -1
- package/dist/components/inventory-reports-title-bar/redux/actionCreator/index.js.map +1 -1
- package/dist/components/reports-title-bar/redux/actionCreator/index.esm.js +1 -1
- package/dist/components/reports-title-bar/redux/actionCreator/index.esm.js.map +1 -1
- package/dist/components/reports-title-bar/redux/actionCreator/index.js +1 -1
- package/dist/components/reports-title-bar/redux/actionCreator/index.js.map +1 -1
- package/dist/components/share-modal/redux/actionCreator/index.esm.js +1 -1
- package/dist/components/share-modal/redux/actionCreator/index.esm.js.map +1 -1
- package/dist/components/share-modal/redux/actionCreator/index.js +1 -1
- package/dist/components/share-modal/redux/actionCreator/index.js.map +1 -1
- package/dist/components/upload/upload/index.esm.js +2 -2
- package/dist/components/upload/upload/index.esm.js.map +1 -1
- package/dist/components/upload/upload/index.js +11 -11
- package/dist/components/upload/upload/index.js.map +1 -1
- package/dist/contexts/AuthContext/index.esm.js +1 -1
- package/dist/contexts/AuthContext/index.esm.js.map +1 -1
- package/dist/contexts/AuthContext/index.js +1 -1
- package/dist/contexts/AuthContext/index.js.map +1 -1
- package/dist/contexts/languageContext/index.esm.js +1 -1
- package/dist/contexts/languageContext/index.esm.js.map +1 -1
- package/dist/contexts/languageContext/index.js +1 -1
- package/dist/contexts/languageContext/index.js.map +1 -1
- package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.esm.js +1 -1
- package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.js +1 -1
- package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.esm.js +1 -1
- package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.js +1 -1
- package/dist/node_modules/@mui/system/colorManipulator/index.esm.js +2 -2
- package/dist/node_modules/@mui/system/colorManipulator/index.js +1 -1
- package/dist/node_modules/@mui/system/createStyled/index.esm.js +1 -1
- package/dist/node_modules/@mui/system/createStyled/index.js +1 -1
- package/dist/node_modules/@mui/system/useThemeWithoutDefault/index.esm.js +1 -1
- package/dist/node_modules/@mui/system/useThemeWithoutDefault/index.js +1 -1
- package/dist/src/utils/api.d.ts +6 -6
- package/dist/style.css +58 -58
- package/dist/utils/api/index.esm.js +6 -8
- package/dist/utils/api/index.esm.js.map +1 -1
- package/dist/utils/api/index.js +1 -1
- package/dist/utils/api/index.js.map +1 -1
- package/dist/utils/api.d.ts +6 -6
- package/dist/utils/common/index.esm.js +6 -6
- package/dist/utils/common/index.esm.js.map +1 -1
- package/dist/utils/common/index.js +1 -1
- package/dist/utils/common/index.js.map +1 -1
- package/dist/views/form-builder/redux/actionCreator/index.esm.js +1 -1
- package/dist/views/form-builder/redux/actionCreator/index.esm.js.map +1 -1
- package/dist/views/form-builder/redux/actionCreator/index.js +1 -1
- package/dist/views/form-builder/redux/actionCreator/index.js.map +1 -1
- package/dist/views/template-editor/components/EditorSidebar/index.esm.js +1 -1
- package/dist/views/template-editor/components/EditorSidebar/index.esm.js.map +1 -1
- package/dist/views/template-editor/components/EditorSidebar/index.js +1 -1
- package/dist/views/template-editor/components/EditorSidebar/index.js.map +1 -1
- package/dist/views/template-editor/templates/index.esm.js +1 -1
- package/dist/views/template-editor/templates/index.esm.js.map +1 -1
- package/dist/views/template-editor/templates/index.js +1 -1
- package/dist/views/template-editor/templates/index.js.map +1 -1
- package/package.json +1 -1
package/dist/utils/api.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const getOptions: (apiFunc: (params: any) => Promise<any>, filter
|
|
|
7
7
|
export declare const apiConfigurations: {
|
|
8
8
|
company: {
|
|
9
9
|
name: string;
|
|
10
|
-
apiFunc: (req?: import('
|
|
10
|
+
apiFunc: (req?: import('api-client/api.rbac/api-types').GetV1CompanyRequest) => Promise<import('api-client/api.rbac/api-types').GetV1CompanyResponses>;
|
|
11
11
|
dataKey: string;
|
|
12
12
|
labelKey: string;
|
|
13
13
|
defaultColumn: string[];
|
|
@@ -97,7 +97,7 @@ export declare const apiConfigurations: {
|
|
|
97
97
|
};
|
|
98
98
|
salesperson: {
|
|
99
99
|
name: string;
|
|
100
|
-
apiFunc: (req?: import('
|
|
100
|
+
apiFunc: (req?: import('api-client/api.rbac/api-types').GetV1UserRequest) => Promise<import('api-client/api.rbac/api-types').GetV1UserResponses>;
|
|
101
101
|
dataKey: string;
|
|
102
102
|
defaultColumn: string[];
|
|
103
103
|
defaultFilter: {
|
|
@@ -117,7 +117,7 @@ export declare const apiConfigurations: {
|
|
|
117
117
|
};
|
|
118
118
|
department: {
|
|
119
119
|
name: string;
|
|
120
|
-
apiFunc: (req?: import('
|
|
120
|
+
apiFunc: (req?: import('api-client/api.rbac/api-types').GetV1UserDepartmentRequest) => Promise<import('api-client/api.rbac/api-types').GetV1UserDepartmentResponses>;
|
|
121
121
|
dataKey: string;
|
|
122
122
|
labelKey: string;
|
|
123
123
|
defaultColumn: string[];
|
|
@@ -387,7 +387,7 @@ export declare const apiConfigurations: {
|
|
|
387
387
|
};
|
|
388
388
|
countries: {
|
|
389
389
|
name: string;
|
|
390
|
-
apiFunc: (req?: import('
|
|
390
|
+
apiFunc: (req?: import('api-client/api.rbac/api-types').GetV1LocationsCountriesRequest) => Promise<import('api-client/api.rbac/api-types').GetV1LocationsCountriesResponses>;
|
|
391
391
|
dataKey: string;
|
|
392
392
|
labelKey: string;
|
|
393
393
|
defaultColumn: string[];
|
|
@@ -407,7 +407,7 @@ export declare const apiConfigurations: {
|
|
|
407
407
|
};
|
|
408
408
|
states: {
|
|
409
409
|
name: string;
|
|
410
|
-
apiFunc: (req?: import('
|
|
410
|
+
apiFunc: (req?: import('api-client/api.rbac/api-types').GetV1LocationsStatesRequest) => Promise<import('api-client/api.rbac/api-types').GetV1LocationsStatesResponses>;
|
|
411
411
|
dataKey: string;
|
|
412
412
|
labelKey: string;
|
|
413
413
|
defaultColumn: string[];
|
|
@@ -636,7 +636,7 @@ export declare const apiConfigurations: {
|
|
|
636
636
|
};
|
|
637
637
|
roles: {
|
|
638
638
|
name: string;
|
|
639
|
-
apiFunc: (req?: import('
|
|
639
|
+
apiFunc: (req?: import('api-client/api.rbac/api-types').GetV1RoleRequest) => Promise<import('api-client/api.rbac/api-types').GetV1RoleResponses>;
|
|
640
640
|
dataKey: string;
|
|
641
641
|
labelKey: string;
|
|
642
642
|
defaultColumn: string[];
|
|
@@ -457,7 +457,7 @@ const postImportSheet = async (request, moduleName) => {
|
|
|
457
457
|
moduleName = "payment-entries";
|
|
458
458
|
type = "receive";
|
|
459
459
|
}
|
|
460
|
-
const baseUrl = `${"
|
|
460
|
+
const baseUrl = `${"https://apidev.erpforce.co"}/${mainModule}`;
|
|
461
461
|
const headers = {};
|
|
462
462
|
headers["x-token"] = token;
|
|
463
463
|
const response = await fetch(`${baseUrl}/v1/${moduleName}/import${type ? `?type=${type}` : ""}`, {
|
|
@@ -471,7 +471,7 @@ const postImportSheet = async (request, moduleName) => {
|
|
|
471
471
|
return await response.json();
|
|
472
472
|
};
|
|
473
473
|
const getExcelTemplateGenerateTemplate = async (request) => {
|
|
474
|
-
const baseUrl = `${"
|
|
474
|
+
const baseUrl = `${"https://apidev.erpforce.co"}/accounting`;
|
|
475
475
|
const headers = {};
|
|
476
476
|
if (request["x-token"] !== void 0) {
|
|
477
477
|
headers["x-token"] = request["x-token"];
|
|
@@ -494,7 +494,7 @@ const getExcelTemplateGenerateTemplate = async (request) => {
|
|
|
494
494
|
return await response;
|
|
495
495
|
};
|
|
496
496
|
const getExcelExportTemplate = async (request) => {
|
|
497
|
-
const baseUrl = `${"
|
|
497
|
+
const baseUrl = `${"https://apidev.erpforce.co"}`;
|
|
498
498
|
const headers = {};
|
|
499
499
|
if (request["x-token"] !== void 0) {
|
|
500
500
|
headers["x-token"] = request["x-token"];
|
|
@@ -694,8 +694,8 @@ function formatFileSize(bytes) {
|
|
|
694
694
|
return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + " " + sizes[i];
|
|
695
695
|
}
|
|
696
696
|
const handleRegularUpload = async (files, controller, module, options = {}) => {
|
|
697
|
-
const BASE_URL = `${"
|
|
698
|
-
const COMPLETE_BASE_URL = `${"
|
|
697
|
+
const BASE_URL = `${"https://apidev.erpforce.co"}/${module}/v1/file-upload/`;
|
|
698
|
+
const COMPLETE_BASE_URL = `${"https://apidev.erpforce.co"}/${module}/v1/file-upload/mark-complete`;
|
|
699
699
|
const authToken = localStorage.getItem(auth.storageTokenKeyName);
|
|
700
700
|
const {
|
|
701
701
|
onProgress,
|
|
@@ -1101,7 +1101,7 @@ const downloadDoc = async ({
|
|
|
1101
1101
|
...getToken()
|
|
1102
1102
|
};
|
|
1103
1103
|
const response = await fetch(
|
|
1104
|
-
`${"
|
|
1104
|
+
`${"https://apidev.erpforce.co"}/${api}`,
|
|
1105
1105
|
{
|
|
1106
1106
|
method: "POST",
|
|
1107
1107
|
headers,
|