@evlop/commons 1.0.96 → 1.0.97

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,7 @@ export declare const HORIZONTAL_LAYOUT = "layout/horizontal";
8
8
  export declare const TYPE_COMPONENT = "type/component";
9
9
  export declare const API_BASE_URL: string;
10
10
  export declare const SOCKET_URL: string;
11
+ export declare const DATA_SOURCE_KEY_NAMESPACE = "a0aec1c8-4fed-4d5d-b399-504887b3b8e4";
11
12
  export { default as iconInfo } from './iconInfo';
12
13
  export * from './platformSpecific';
13
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,SAAgE,CAAC;AAEpF,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAG/C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,YAAY,QAAiE,CAAC;AAC3F,eAAO,MAAM,UAAU,QAA6E,CAAC;AAErG,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,SAAgE,CAAC;AAEpF,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAG/C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,YAAY,QAAiE,CAAC;AAC3F,eAAO,MAAM,UAAU,QAA6E,CAAC;AAErG,eAAO,MAAM,yBAAyB,yCAAyC,CAAC;AAEhF,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,cAAc,oBAAoB,CAAC"}
@@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  return (mod && mod.__esModule) ? mod : { "default": mod };
14
14
  };
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.iconInfo = exports.SOCKET_URL = exports.API_BASE_URL = exports.TYPE_COMPONENT = exports.HORIZONTAL_LAYOUT = exports.VERTICAL_LAYOUT = exports.DIRECTION_LEFT = exports.DIRECTION_BOTTOM = exports.DIRECTION_RIGHT = exports.DIRECTION_TOP = exports.IS_SSR = void 0;
16
+ exports.iconInfo = exports.DATA_SOURCE_KEY_NAMESPACE = exports.SOCKET_URL = exports.API_BASE_URL = exports.TYPE_COMPONENT = exports.HORIZONTAL_LAYOUT = exports.VERTICAL_LAYOUT = exports.DIRECTION_LEFT = exports.DIRECTION_BOTTOM = exports.DIRECTION_RIGHT = exports.DIRECTION_TOP = exports.IS_SSR = void 0;
17
17
  exports.IS_SSR = ['true', '1'].includes(String(process.env.SSR).toLowerCase());
18
18
  exports.DIRECTION_TOP = "direction/Top";
19
19
  exports.DIRECTION_RIGHT = "direction/Right";
@@ -24,6 +24,7 @@ exports.HORIZONTAL_LAYOUT = 'layout/horizontal';
24
24
  exports.TYPE_COMPONENT = "type/component";
25
25
  exports.API_BASE_URL = process.env.API_BASE_URL || process.env.REACT_APP_API_BASE_URL;
26
26
  exports.SOCKET_URL = process.env.SOCKET_URL || process.env.REACT_APP_SOCKET_URL || exports.API_BASE_URL;
27
+ exports.DATA_SOURCE_KEY_NAMESPACE = "a0aec1c8-4fed-4d5d-b399-504887b3b8e4";
27
28
  var iconInfo_1 = require("./iconInfo");
28
29
  Object.defineProperty(exports, "iconInfo", { enumerable: true, get: function () { return __importDefault(iconInfo_1).default; } });
29
30
  __exportStar(require("./platformSpecific"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAa,QAAA,MAAM,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;AAEvE,QAAA,aAAa,GAAG,eAAe,CAAC;AAChC,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,gBAAgB,GAAG,kBAAkB,CAAC;AACtC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAGlC,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,iBAAiB,GAAG,mBAAmB,CAAC;AAExC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAClC,QAAA,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC;AAC9E,QAAA,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,OAAO,CAAC,GAAG,CAAC,oBAAoB,IAAI,oBAAY,CAAC;AAErG,uCAAiD;AAAxC,qHAAA,OAAO,OAAY;AAC5B,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAa,QAAA,MAAM,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;AAEvE,QAAA,aAAa,GAAG,eAAe,CAAC;AAChC,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,gBAAgB,GAAG,kBAAkB,CAAC;AACtC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAGlC,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,iBAAiB,GAAG,mBAAmB,CAAC;AAExC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAClC,QAAA,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC;AAC9E,QAAA,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,OAAO,CAAC,GAAG,CAAC,oBAAoB,IAAI,oBAAY,CAAC;AAExF,QAAA,yBAAyB,GAAG,sCAAsC,CAAC;AAEhF,uCAAiD;AAAxC,qHAAA,OAAO,OAAY;AAC5B,qDAAmC"}
@@ -1 +1 @@
1
- {"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../src/data-sources/collection.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAwC,MAAM,aAAa,CAAC;AAWhF,QAAA,MAAM,oBAAoB,EAAE,WA+B3B,CAAA;AAgCD,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../src/data-sources/collection.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAwC,MAAM,aAAa,CAAC;AAchF,QAAA,MAAM,oBAAoB,EAAE,WA+B3B,CAAA;AAgCD,eAAe,oBAAoB,CAAC"}
@@ -12,6 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const lodash_1 = require("lodash");
13
13
  const classes_1 = require("../classes");
14
14
  const reducers_1 = require("../reducers");
15
+ const uuid_1 = require("uuid");
16
+ const constants_1 = require("../constants");
15
17
  function _getModel(collectionName, dispatch) {
16
18
  if (!collectionName)
17
19
  return classes_1.Model.forCollection('no-operations');
@@ -69,14 +71,14 @@ collectionDataSource.keyExtractor = (options) => {
69
71
  requestOptions = JSON.parse(requestOptionsString);
70
72
  }
71
73
  catch (e) { }
72
- return [
74
+ return uuid_1.v5([
73
75
  lodash_1.get(requestOptions, 'key', ''),
74
76
  lodash_1.get(options, 'collectionName'),
75
77
  lodash_1.get(requestOptions, 'search'),
76
78
  lodash_1.get(requestOptions, 'pageSize'),
77
79
  JSON.stringify(lodash_1.get(requestOptions, 'sort')),
78
80
  ...lodash_1.map(lodash_1.get(requestOptions, 'filter'), (v, k) => `${k}=${JSON.stringify(v)}`)
79
- ].join(':');
81
+ ].join(':'), constants_1.DATA_SOURCE_KEY_NAMESPACE);
80
82
  };
81
83
  exports.default = collectionDataSource;
82
84
  //# sourceMappingURL=collection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"collection.js","sourceRoot":"","sources":["../../../src/data-sources/collection.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,mCAAiE;AACjE,wCAAmC;AACnC,0CAAgF;AAEhF,SAAS,SAAS,CAAE,cAAc,EAAE,QAAQ;IACxC,IAAG,CAAC,cAAc;QAAE,OAAO,eAAK,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;IAC5D,MAAM,KAAK,GAAG,QAAQ,CAAC,gCAAqB,CAAC,cAAc,CAAC,CAAC,CAAA;IAC7D,IAAG,KAAK;QAAE,OAAO,KAAK,CAAC;IACvB,OAAO,eAAK,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;AACnD,CAAC;AAED,MAAM,QAAQ,GAAG,gBAAO,CAAC,SAAS,CAAC,CAAC;AAEpC,MAAM,oBAAoB,GAAgB,CAAO,OAAO,EAAE,EAAC,QAAQ,EAAC,EAAC,EAAE;IACnE,MAAM,EAAC,GAAG,EAAE,QAAQ,EAAE,cAAc,GAAG,QAAQ,EAAE,IAAI,GAAG,CAAC,EAAE,MAAM,EAAE,cAAc,EAAC,GAAG,OAAO,CAAC;IAE7F,IAAI,UAAU,GAAG,EAAE,CAAC;IACpB,IAAG,cAAc,EAAC;QACd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AAG,CAAC,cAAc,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAC,EAAE,CAAA,GAAG,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;KAC7E,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,qCAAyB,CAAC,CAAA;AAC3C,CAAC,CAAC;AAGF,kBAAe,oBAAoB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"listUrl.d.ts","sourceRoot":"","sources":["../../../src/data-sources/listUrl.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,QAAA,MAAM,iBAAiB,EAAE,WAyCxB,CAAA;AAiCD,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"listUrl.d.ts","sourceRoot":"","sources":["../../../src/data-sources/listUrl.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAI1C,QAAA,MAAM,iBAAiB,EAAE,WAyCxB,CAAA;AAiCD,eAAe,iBAAiB,CAAC"}
@@ -11,6 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const lodash_1 = require("lodash");
13
13
  const actions_1 = require("../actions");
14
+ const uuid_1 = require("uuid");
15
+ const constants_1 = require("../constants");
14
16
  const listUrlDataSource = (options, { dispatch }) => __awaiter(void 0, void 0, void 0, function* () {
15
17
  const { sourceId, url = sourceId, data, requestOptions, page } = options;
16
18
  let reqOptions = {};
@@ -61,19 +63,19 @@ listUrlDataSource.defaultValues = {
61
63
  };
62
64
  listUrlDataSource.keyExtractor = (options) => options.url || options.sourceId;
63
65
  listUrlDataSource.keyExtractor = (options) => {
64
- const { requestOptions: requestOptionsString } = options;
66
+ const { url = '', requestOptions: requestOptionsString } = options;
65
67
  let requestOptions;
66
68
  try {
67
69
  requestOptions = JSON.parse(requestOptionsString);
68
70
  }
69
71
  catch (e) { }
70
- return [
72
+ return uuid_1.v5([
71
73
  lodash_1.get(requestOptions, 'key', ''),
72
- lodash_1.get(options, 'url', ''),
74
+ url,
73
75
  lodash_1.get(requestOptions, 'method', ''),
74
76
  JSON.stringify(lodash_1.get(requestOptions, 'data', {})),
75
77
  JSON.stringify(lodash_1.get(requestOptions, 'params')),
76
- ].join(':');
78
+ ].join(':'), constants_1.DATA_SOURCE_KEY_NAMESPACE);
77
79
  };
78
80
  exports.default = listUrlDataSource;
79
81
  //# sourceMappingURL=listUrl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"listUrl.js","sourceRoot":"","sources":["../../../src/data-sources/listUrl.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,mCAAyD;AACzD,wCAAqC;AAGrC,MAAM,iBAAiB,GAAgB,CAAO,OAAO,EAAE,EAAC,QAAQ,EAAC,EAAC,EAAE;IAChE,MAAM,EAAE,QAAQ,EAAE,GAAG,GAAG,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IACzE,IAAI,UAAU,GAAG,EAAE,CAAC;IACpB,IAAG,cAAc,EAAC;QACd,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAC;YACnC,IAAG;gBACC,eAAM,CAAC,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;aAClD;YAAC,OAAM,CAAC,EAAC;gBACN,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;aAChC;SACJ;aAAM,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAC;YAC1C,eAAM,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;SACtC;KACJ;IACD,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACtD,MAAM,QAAQ,GAAG,YAAG,CAAC,UAAU,EAAE,UAAU,CAAC,IAAI,OAAO,CAAC,QA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AE,MAAM,aAAa,CAAC;AAE1C,QAAA,MAAM,eAAe,EAAE,WAEtB,CAAC;AAcF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"scopeDataSource.d.ts","sourceRoot":"","sources":["../../../src/data-sources/scopeDataSource.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAK1C,QAAA,MAAM,eAAe,EAAE,WAEtB,CAAC;AAcF,eAAe,eAAe,CAAC"}
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const lodash_1 = require("lodash");
4
+ const uuid_1 = require("uuid");
5
+ const constants_1 = require("../constants");
4
6
  const scopeDataSource = (options, { scope }) => {
5
7
  return lodash_1.get(scope, lodash_1.get(options, 'path'));
6
8
  };
7
9
  scopeDataSource.keyExtractor = (options, { scope }) => {
8
10
  const path = lodash_1.get(options, 'path', '');
9
- return [path, JSON.stringify(lodash_1.get(scope, lodash_1.get(options, 'path')))].join(':');
11
+ return uuid_1.v5([path, JSON.stringify(lodash_1.get(scope, lodash_1.get(options, 'path')))].join(':'), constants_1.DATA_SOURCE_KEY_NAMESPACE);
10
12
  };
11
13
  scopeDataSource.displayName = 'Scope';
12
14
  scopeDataSource.identifier = 'scope';
@@ -1 +1 @@
1
- {"version":3,"file":"scopeDataSource.js","sourceRoot":"","sources":["../../../src/data-sources/scopeDataSource.ts"],"names":[],"mappings":";;AAAA,mCAA6B;AAG7B,MAAM,eAAe,GAAgB,CAAC,OAAO,EAAE,EAAC,KAAK,EAAC,EAAC,EAAE;IACjD,OAAO,YAAG,CAAC,KAAK,EAAC,YAAG,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;AAC9C,CAAC,CAAC;AAEF,eAAe,CAAC,YAAY,GAAG,CAAC,OAAO,EAAE,EAAC,KAAK,EAAC,EAAC,EAAE;IAC/C,MAAM,IAAI,GAAG,YAAG,CAAC,OAAO,EAAE,MAAM,EAAE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Ae,CAAC,WAAW,GAAG,OAAO,CAAC;AACtC,eAAe,CAAC,UAAU,GAAG,OAAO,CAAC;AACrC,eAAe,CAAC,IAAI,GAAG,QAAQ,CAAC;AAChC,eAAe,CAAC,oBAAoB,GAAG;IACnC,EAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,YAAY,EAAG,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU,EAAC;CAEjG,CAAC;AAEF,kBAAe,eAAe,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evlop/commons",
3
- "version": "1.0.96",
3
+ "version": "1.0.97",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "peerDependencies": {
@@ -21,7 +21,8 @@
21
21
  "pluralize": "latest",
22
22
  "query-string": "latest",
23
23
  "@react-native-async-storage/async-storage": "latest",
24
- "react-native-vector-icons": "^9.0.0"
24
+ "react-native-vector-icons": "^9.0.0",
25
+ "uuid": "^8.3.2"
25
26
  },
26
27
  "optionalDependencies": {},
27
28
  "dependencies": {
@@ -47,6 +48,7 @@
47
48
  "@types/lodash": "^4.14.168",
48
49
  "@types/node": "^15.0.2",
49
50
  "@types/react": "^16.14.0",
51
+ "@types/uuid": "^8.3.4",
50
52
  "chai": "^4.3.4",
51
53
  "change-case": "^4.1.2",
52
54
  "jest": "^26.6.3",
@@ -54,6 +56,7 @@
54
56
  "mocha": "^8.4.0",
55
57
  "react-native-vector-icons": "^9.0.0",
56
58
  "ts-node": "^10.4.0",
57
- "typescript": "^4.1.3"
59
+ "typescript": "^4.1.3",
60
+ "uuid": "^8.3.2"
58
61
  }
59
62
  }