@followupus/common 0.7.9 → 0.8.1

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,7 +4,7 @@ export declare const DELTA_SCHEMA_NAME: {
4
4
  SPACES: string;
5
5
  GROUPS: string;
6
6
  ITEMS: string;
7
- FOLDER: string;
7
+ FOLDERS: string;
8
8
  };
9
9
  export declare const DELTA_ACTION: {
10
10
  DELETE: string;
@@ -33,6 +33,7 @@ export interface DeltaMessages {
33
33
  syncData: DeltaObject[];
34
34
  lastSyncId: number;
35
35
  rootType: keyof typeof DELTA_ROOT_SCHEMA_NAME;
36
+ rootId: string;
36
37
  };
37
38
  }
38
39
  export declare const PREFIX_PK: {
@@ -4,7 +4,7 @@ export const DELTA_SCHEMA_NAME = {
4
4
  SPACES: "SPACES",
5
5
  GROUPS: "GROUPS",
6
6
  ITEMS: "ITEMS",
7
- FOLDER: "FOLDER",
7
+ FOLDERS: "FOLDERS",
8
8
  };
9
9
  export const DELTA_ACTION = {
10
10
  DELETE: "D",
@@ -1,4 +1,4 @@
1
- import { IBaseCustomColumn, IBaseGroup, IFilter, IFilterCondition, IPureBoard } from "./types";
1
+ import { IBaseCustomColumn, IBaseGroup, IFilter, IFilterCondition, IPureBoard } from './types';
2
2
  export declare const COLUMN_TYPES: {
3
3
  NUMBER: string;
4
4
  TEXT: string;
@@ -1,5 +1,5 @@
1
- import { cloneDeep, isEqual } from "lodash";
2
1
  import dayjs from "dayjs";
2
+ import _ from 'lodash';
3
3
  export const COLUMN_TYPES = {
4
4
  NUMBER: "number",
5
5
  TEXT: "string",
@@ -163,7 +163,7 @@ export const getDateGroupKey = (dateStr) => {
163
163
  return DATE_GROUPS.FUTURE;
164
164
  };
165
165
  export const getValidConditions = (filter, headers, currentUserId) => {
166
- const newFilter = cloneDeep(filter);
166
+ const newFilter = _.cloneDeep(filter);
167
167
  if (!newFilter.criteria?.length || !headers?.length) {
168
168
  return [];
169
169
  }
@@ -226,11 +226,11 @@ const isInConditionValues = (itemVal, valueType, condition) => {
226
226
  condition.value.some(val => Array.isArray(itemVal) && itemVal?.includes(val)));
227
227
  case "object":
228
228
  return ((condition.blank && !itemVal) ||
229
- !!condition.value.find(val => isEqual(val, itemVal)));
229
+ !!condition.value.find(val => _.isEqual(val, itemVal)));
230
230
  case "objectArray":
231
231
  return ((condition.blank && !itemVal?.length) ||
232
232
  condition.value.some(val => Array.isArray(itemVal) &&
233
- itemVal.find(existVal => isEqual(val, existVal))));
233
+ itemVal.find(existVal => _.isEqual(val, existVal))));
234
234
  default:
235
235
  break;
236
236
  }
@@ -290,7 +290,7 @@ const isEquals = (itemVal, valueType, condition) => {
290
290
  case "string":
291
291
  return !!itemVal && checkVal === itemVal;
292
292
  case "object":
293
- return isEqual(itemVal, checkVal);
293
+ return _.isEqual(itemVal, checkVal);
294
294
  default:
295
295
  break;
296
296
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@followupus/common",
3
- "version": "0.7.9",
3
+ "version": "0.8.1",
4
4
  "description": "followup common utils npm package with TypeScript and VSCode",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",