@antscorp/antsomi-ui 1.3.5-beta.463 → 1.3.5-beta.464

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.
@@ -4,6 +4,10 @@ export declare const COLUMN_API_TYPE: {
4
4
  UPDATE_MODIFY_COLUMN: string;
5
5
  ADD_MODIFY_COLUMN: string;
6
6
  };
7
+ export declare const ACTION_TYPE: {
8
+ ADD_MODIFY_COLUMN: number;
9
+ UPDATE_MODIFY_COLUMN: number;
10
+ };
7
11
  export declare const FILTER_API_TYPE: {
8
12
  GET_SAVED_FILTER: string;
9
13
  GET_LIST_FILTER: string;
@@ -4,6 +4,10 @@ export const COLUMN_API_TYPE = {
4
4
  UPDATE_MODIFY_COLUMN: 'update-modify-column',
5
5
  ADD_MODIFY_COLUMN: 'add-modify-column',
6
6
  };
7
+ export const ACTION_TYPE = {
8
+ ADD_MODIFY_COLUMN: 1,
9
+ UPDATE_MODIFY_COLUMN: 2,
10
+ };
7
11
  export const FILTER_API_TYPE = {
8
12
  GET_SAVED_FILTER: 'get-saved-filter',
9
13
  GET_LIST_FILTER: 'get-list-filter',
@@ -7,6 +7,7 @@ export type TGlobalApiParams = {
7
7
  type?: string;
8
8
  objType?: number;
9
9
  objId?: number;
10
+ actionType?: number;
10
11
  };
11
12
  export type TGetMetricListArgs = {
12
13
  auth?: TServiceAuth;
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  import axios from 'axios';
23
23
  import { get } from 'lodash';
24
24
  // Constants
25
- import { COLUMN_API_TYPE, FILTER_API_TYPE } from '../../constants/dataTable';
25
+ import { ACTION_TYPE, COLUMN_API_TYPE, FILTER_API_TYPE } from '../../constants/dataTable';
26
26
  import { mapResponseListingToGeneral } from '../../utils';
27
27
  const { GET_COLUMNS, GET_LIST_MODIFY_COLUMN, UPDATE_MODIFY_COLUMN, ADD_MODIFY_COLUMN } = COLUMN_API_TYPE;
28
28
  const { GET_SAVED_FILTER, GET_LIST_FILTER, SAVE_FILTER, UPDATE_FILTER } = FILTER_API_TYPE;
@@ -70,12 +70,13 @@ export const dataTableServices = {
70
70
  }),
71
71
  createModifyColumn: (_e) => __awaiter(void 0, [_e], void 0, function* ({ auth, data, }) {
72
72
  try {
73
- const _f = data || {}, { type = ADD_MODIFY_COLUMN } = _f, restOfData = __rest(_f, ["type"]);
73
+ const _f = data || {}, { type = ADD_MODIFY_COLUMN, actionType = ACTION_TYPE.ADD_MODIFY_COLUMN } = _f, restOfData = __rest(_f, ["type", "actionType"]);
74
74
  const response = yield axios({
75
75
  url: `${auth === null || auth === void 0 ? void 0 : auth.url}`,
76
76
  method: 'POST',
77
77
  params: Object.assign({}, mapAuth(auth)),
78
- data: Object.assign(Object.assign({}, restOfData), { type }),
78
+ data: Object.assign(Object.assign({}, restOfData), { type,
79
+ actionType }),
79
80
  });
80
81
  return get(response, 'data.data', { status: 1 });
81
82
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.463",
3
+ "version": "1.3.5-beta.464",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",