@evlop/commons 1.0.196 → 1.0.197

Sign up to get free protection for your applications and to get access to all the features.
@@ -65,7 +65,7 @@ collectionDataSource.defaultValues = {
65
65
  params: JSON.stringify({ sort: { createdAt: -1 }, search: '', filter: {} }, null, 2),
66
66
  };
67
67
  collectionDataSource.keyExtractor = (options) => {
68
- const { params: requestOptionsString } = options;
68
+ const { collectionName, params: requestOptionsString } = options;
69
69
  let requestOptions;
70
70
  try {
71
71
  requestOptions = JSON.parse(requestOptionsString);
@@ -73,7 +73,7 @@ collectionDataSource.keyExtractor = (options) => {
73
73
  catch (e) { }
74
74
  return uuid_1.v5([
75
75
  lodash_1.get(requestOptions, 'key', ''),
76
- lodash_1.get(options, 'collectionName'),
76
+ collectionName,
77
77
  lodash_1.get(requestOptions, 'search'),
78
78
  lodash_1.get(requestOptions, 'pageSize'),
79
79
  JSON.stringify(lodash_1.get(requestOptions, 'sort')),
@@ -1 +1 @@
1
- {"version":3,"file":"collection.js","sourceRoot":"","sources":["../../../src/data-sources/collection.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,mCAAiE;AACjE,wCAAmC;AACnC,0CAAgF;AAChF,+BAAkC;AAClC,4CAAyD;AAGzD,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,EA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AC;QAC7B,YAAG,CAAC,cAAc,EAAE,UAAU,CAAC;QAC/B,IAAI,CAAC,SAAS,CAAC,YAAG,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;QAC3C,GAAG,YAAG,CAAC,YAAG,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"}
@@ -0,0 +1,4 @@
1
+ import { _DataSource } from "../reducers";
2
+ declare const collectionRecordDataSource: _DataSource;
3
+ export default collectionRecordDataSource;
4
+ //# sourceMappingURL=collectionRecord.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collectionRecord.d.ts","sourceRoot":"","sources":["../../../src/data-sources/collectionRecord.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAA8C,MAAM,aAAa,CAAC;AAYtF,QAAA,MAAM,0BAA0B,EAAE,WAOjC,CAAA;AAuBD,eAAe,0BAA0B,CAAC"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const lodash_1 = require("lodash");
13
+ const uuid_1 = require("uuid");
14
+ const classes_1 = require("../classes");
15
+ const constants_1 = require("../constants");
16
+ const reducers_1 = require("../reducers");
17
+ function _getModel(collectionName, dispatch) {
18
+ if (!collectionName)
19
+ return classes_1.Model.forCollection('no-operations');
20
+ const model = dispatch(reducers_1.getModelForCollection(collectionName));
21
+ if (model)
22
+ return model;
23
+ return classes_1.Model.forCollection(collectionName);
24
+ }
25
+ const getModel = lodash_1.memoize(_getModel);
26
+ const collectionRecordDataSource = (options, { dispatch }) => __awaiter(void 0, void 0, void 0, function* () {
27
+ const { collectionName, id } = options;
28
+ const { response } = yield dispatch(reducers_1.collectionGetRecord(collectionName, id));
29
+ const _Model = getModel(collectionName, dispatch);
30
+ return response ? new _Model(response) : null;
31
+ });
32
+ collectionRecordDataSource.displayName = 'Collection Record';
33
+ collectionRecordDataSource.identifier = 'collectionRecord';
34
+ collectionRecordDataSource.type = 'Object';
35
+ collectionRecordDataSource.configurationOptions = [
36
+ { type: 'text', key: 'collection-name', label: 'Collection Name', name: 'collectionName' },
37
+ { type: 'text', key: 'collection-record-id', label: 'Record ID/Handle', name: 'id' },
38
+ ];
39
+ collectionRecordDataSource.defaultValues = {
40
+ collectionName: '',
41
+ };
42
+ collectionRecordDataSource.keyExtractor = (options) => {
43
+ const { collectionName, id } = options;
44
+ return uuid_1.v5([
45
+ collectionName,
46
+ id,
47
+ ].join(':'), constants_1.DATA_SOURCE_KEY_NAMESPACE);
48
+ };
49
+ exports.default = collectionRecordDataSource;
50
+ //# sourceMappingURL=collectionRecord.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collectionRecord.js","sourceRoot":"","sources":["../../../src/data-sources/collectionRecord.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,mCAAiC;AACjC,+BAAoC;AACpC,wCAAmC;AACnC,4CAAyD;AACzD,0CAAsF;AAGtF,SAAS,SAAS,CAAE,cAAsB,EAAE,QAAkB;IAC1D,IAAG,CAAC,cAAc;QAAE,OAAO,eAAK,CAAC,aAAa,CAAC,eAAe,CAAC,CAA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MAAM,EAAE,cAAc,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC;IAEvC,OAAO,SAAM,CAAC;QACV,cAAc;QACd,EAAE;KACL,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,qCAAyB,CAAC,CAAA;AAC3C,CAAC,CAAC;AAGF,kBAAe,0BAA0B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/data-sources/index.ts"],"names":[],"mappings":";AAKA,wBAKE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/data-sources/index.ts"],"names":[],"mappings":";AAMA,wBAME"}
@@ -4,11 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const collection_1 = __importDefault(require("./collection"));
7
+ const collectionRecord_1 = __importDefault(require("./collectionRecord"));
7
8
  const listUrl_1 = __importDefault(require("./listUrl"));
8
9
  const scopeDataSource_1 = __importDefault(require("./scopeDataSource"));
9
10
  const url_1 = __importDefault(require("./url"));
10
11
  exports.default = [
11
12
  collection_1.default,
13
+ collectionRecord_1.default,
12
14
  url_1.default,
13
15
  listUrl_1.default,
14
16
  scopeDataSource_1.default,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data-sources/index.ts"],"names":[],"mappings":";;;;;AAAA,8DAAgD;AAChD,wDAA0C;AAC1C,wEAAgD;AAChD,gDAAkC;AAElC,kBAAe;IACX,oBAAoB;IACpB,aAAa;IACb,iBAAiB;IACjB,yBAAe;CAClB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data-sources/index.ts"],"names":[],"mappings":";;;;;AAAA,8DAAgD;AAChD,0EAA4D;AAC5D,wDAA0C;AAC1C,wEAAgD;AAChD,gDAAkC;AAElC,kBAAe;IACX,oBAAoB;IACpB,0BAA0B;IAC1B,aAAa;IACb,iBAAiB;IACjB,yBAAe;CAClB,CAAC"}
@@ -64,7 +64,7 @@ export declare function collectionLoadMore(collectionName: string, { page, sort,
64
64
  endpoint: string;
65
65
  data: any;
66
66
  };
67
- export declare function collectionGetRecord(collectionName: string, id: any): {
67
+ export declare function collectionGetRecord(collectionName: string, id: string): {
68
68
  method: string;
69
69
  types: string[] | ([string, string, string] & {
70
70
  length: 3;
@@ -77,6 +77,7 @@ export declare function collectionGetRecord(collectionName: string, id: any): {
77
77
  endpoint: string;
78
78
  data: any;
79
79
  };
80
+ export declare const getCollectionRecord: typeof collectionGetRecord;
80
81
  export declare function collectionAddRecord(collectionName: any, data: any): {
81
82
  method: string;
82
83
  types: string[] | ([string, string, string] & {
@@ -90,6 +91,7 @@ export declare function collectionAddRecord(collectionName: any, data: any): {
90
91
  endpoint: string;
91
92
  data: any;
92
93
  };
94
+ export declare const addCollectionRecord: typeof collectionAddRecord;
93
95
  export declare function collectionDeleteRecord(collectionName: string, id: any): {
94
96
  method: string;
95
97
  types: string[] | ([string, string, string] & {
@@ -103,6 +105,7 @@ export declare function collectionDeleteRecord(collectionName: string, id: any):
103
105
  endpoint: string;
104
106
  data: any;
105
107
  };
108
+ export declare const deleteCollectionRecord: typeof collectionDeleteRecord;
106
109
  export declare function collectionUpdateRecord(collectionName: any, id: any, updates: any): {
107
110
  method: string;
108
111
  types: string[] | ([string, string, string] & {
@@ -116,6 +119,7 @@ export declare function collectionUpdateRecord(collectionName: any, id: any, upd
116
119
  endpoint: string;
117
120
  data: any;
118
121
  };
122
+ export declare const updateCollectionRecord: typeof collectionUpdateRecord;
119
123
  declare const collection: (state: any, action: any) => any;
120
124
  export default collection;
121
125
  //# sourceMappingURL=collection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../src/reducers/collection.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,gCAAgC,CAAC;AAC9D,eAAO,MAAM,cAAc,8BAA8B,CAAC;AAE1D,eAAO,MAAM,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,MAAM,sBAAsB,+BAAyB,CAAC;AAE7D,wBAAgB,sBAAsB,CAAC,cAAc,KAAA,EAAE,EAAE,KAAA,EAAE,OAAO,EAAE,GAAG;;;;;;;;;;;;EAOtE;AAED,eAAO,MAAM,sBAAsB,+BAAyB,CAAC;AAyB7D,QAAA,MAAM,UAAU,kCA2Gf,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.collectionUpdateRecord = exports.collectionDeleteRecord = exports.collectionAddRecord = exports.collectionGetRecord = exports.collectionLoadMore = exports.getCollection = exports.getModelForCollection = exports.unregisterModel = exports.registerModel = exports.COLLECTION_UPDATE_RECORD_FAILED = exports.COLLECTION_UPDATE_RECORD_SUCCESS = exports.COLLECTION_UPDATE_RECORD_STARTED = exports.COLLECTION_ADD_RECORD_FAILED = exports.COLLECTION_ADD_RECORD_SUCCESS = exports.COLLECTION_ADD_RECORD_STARTED = exports.COLLECTION_DELETE_RECORD_FAILED = exports.COLLECTION_DELETE_RECORD_SUCCESS = exports.COLLECTION_DELETE_RECORD_STARTED = exports.COLLECTION_GET_RECORD_FAILED = exports.COLLECTION_GET_RECORD_SUCCESS = exports.COLLECTION_GET_RECORD_STARTED = exports.COLLECTION_LOAD_MORE_FAILED = exports.COLLECTION_LOAD_MORE_SUCCESS = exports.COLLECTION_LOAD_MORE_STARTED = exports.COLLECTION_LOAD_PAGE_FAILED = exports.COLLECTION_LOAD_PAGE_SUCCESS = exports.COLLECTION_LOAD_PAGE_STARTED = exports.REGISTER_MODEL = exports.UNREGISTER_MODEL = void 0;
3
+ exports.updateCollectionRecord = exports.collectionUpdateRecord = exports.deleteCollectionRecord = exports.collectionDeleteRecord = exports.addCollectionRecord = exports.collectionAddRecord = exports.getCollectionRecord = exports.collectionGetRecord = exports.collectionLoadMore = exports.getCollection = exports.getModelForCollection = exports.unregisterModel = exports.registerModel = exports.COLLECTION_UPDATE_RECORD_FAILED = exports.COLLECTION_UPDATE_RECORD_SUCCESS = exports.COLLECTION_UPDATE_RECORD_STARTED = exports.COLLECTION_ADD_RECORD_FAILED = exports.COLLECTION_ADD_RECORD_SUCCESS = exports.COLLECTION_ADD_RECORD_STARTED = exports.COLLECTION_DELETE_RECORD_FAILED = exports.COLLECTION_DELETE_RECORD_SUCCESS = exports.COLLECTION_DELETE_RECORD_STARTED = exports.COLLECTION_GET_RECORD_FAILED = exports.COLLECTION_GET_RECORD_SUCCESS = exports.COLLECTION_GET_RECORD_STARTED = exports.COLLECTION_LOAD_MORE_FAILED = exports.COLLECTION_LOAD_MORE_SUCCESS = exports.COLLECTION_LOAD_MORE_STARTED = exports.COLLECTION_LOAD_PAGE_FAILED = exports.COLLECTION_LOAD_PAGE_SUCCESS = exports.COLLECTION_LOAD_PAGE_STARTED = exports.REGISTER_MODEL = exports.UNREGISTER_MODEL = void 0;
4
4
  const change_case_1 = require("change-case");
5
5
  const lodash_1 = require("lodash");
6
6
  const restApi_1 = require("../actions/restApi");
@@ -69,6 +69,7 @@ function collectionGetRecord(collectionName, id) {
69
69
  });
70
70
  }
71
71
  exports.collectionGetRecord = collectionGetRecord;
72
+ exports.getCollectionRecord = collectionGetRecord;
72
73
  function collectionAddRecord(collectionName, data) {
73
74
  const collectionPath = change_case_1.paramCase(collectionName);
74
75
  return restApi_1.request(collectionPath, data, {
@@ -78,6 +79,7 @@ function collectionAddRecord(collectionName, data) {
78
79
  });
79
80
  }
80
81
  exports.collectionAddRecord = collectionAddRecord;
82
+ exports.addCollectionRecord = collectionAddRecord;
81
83
  function collectionDeleteRecord(collectionName, id) {
82
84
  const collectionPath = change_case_1.paramCase(collectionName);
83
85
  return restApi_1.request(`${collectionPath}/:id`, {}, {
@@ -88,6 +90,7 @@ function collectionDeleteRecord(collectionName, id) {
88
90
  });
89
91
  }
90
92
  exports.collectionDeleteRecord = collectionDeleteRecord;
93
+ exports.deleteCollectionRecord = collectionDeleteRecord;
91
94
  function collectionUpdateRecord(collectionName, id, updates) {
92
95
  const collectionPath = change_case_1.paramCase(collectionName);
93
96
  return restApi_1.request(`${collectionPath}/:id`, updates, {
@@ -97,6 +100,7 @@ function collectionUpdateRecord(collectionName, id, updates) {
97
100
  });
98
101
  }
99
102
  exports.collectionUpdateRecord = collectionUpdateRecord;
103
+ exports.updateCollectionRecord = collectionUpdateRecord;
100
104
  const collectionIntitialState = {
101
105
  isLoading: true,
102
106
  page: 0,
@@ -1 +1 @@
1
- {"version":3,"file":"collection.js","sourceRoot":"","sources":["../../../src/reducers/collection.tsx"],"names":[],"mappings":";;;AAAA,6CAAsD;AACtD,mCAAsD;AACtD,gDAAgE;AAEnD,QAAA,gBAAgB,GAAG,6BAA6B,CAAC;AACjD,QAAA,cAAc,GAAG,2BAA2B,CAAC;AAE7C,QAAA,4BAA4B,GAAG,8BAA8B,CAAC;AAC9D,QAAA,4BAA4B,GAAG,8BAA8B,CAAC;AAC9D,QAAA,2BAA2B,GAAG,6BAA6B,CAAC;AAE5D,QAAA,4BAA4B,GAAG,8BAA8B,CAAC;AAC9D,QAAA,4BAA4B,GAAG,8BAA8B,CAAC;AAC9D,QAAA,2BAA2B,GAAG,6BAA6B,CAAC;AAE5D,QAAA,6BAA6B,GAAG,+BAA+B,CAAC;AAChE,QAAA,6BAA6B,GAAG,+BAA+B,CAAC;AAChE,QAAA,4BAA4B,GAAG,8BAA8B,CAAC;AAE9D,QAAA,gCAAgC,GAAG,kCAAkC,CAAC;AACtE,QAAA,gCAAgC,GAAG,kCAAkC,CAAC;AACtE,QAAA,+BAA+B,GAAG,iCAAiC,CAAC;AAEpE,QAAA,6BAA6B,GAAG,+BAA+B,CAAC;AAChE,QAAA,6BAA6B,GAAG,+BAA+B,CAAC;AAChE,QAAA,4BAA4B,GAAG,8BAA8B,CAAC;AAE9D,QAAA,gCAAgC,GAAG,kCAAkC,CAAC;AACtE,QAAA,gCAAgC,GAAG,kCAAkC,CAAC;AACtE,QAAA,+BAA+B,GAAG,iCA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E,aAAa,GAAG,uBAAuB,EAAE,GAAG,KAAK,CAAC;YACjE,MAAM,IAAI,GAAG,QAAQ,CAAC;YACtB,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC,CAAC;YACrB,MAAM,QAAQ,mCACP,aAAa,KAChB,KAAK,8DAAO,aAAa,CAAC,KAAK,GAAK,cAAK,CAAC,KAAK,EAAE,IAAI,CAAC,GAAK,cAAK,CAAC,KAAK,EAAE,MAAM,CAAC,GAAK,cAAK,CAAC,KAAK,EAAE,KAAK,CAAC,IAC1G,CAAC;YACF,uCACO,KAAK,KACR,CAAC,GAAG,CAAC,EAAE,QAAQ,IACjB;SACL;QACD,KAAK,wCAAgC,CAAC,CAAA;YAClC,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,EAAC,EAAE,GAAG,IAAI,EAAC,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;YACrD,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,aAAa,GAAG,uBAAuB,EAAE,GAAG,KAAK,CAAC;YACjE,MAAM,QAAQ,mCACP,aAAa,KAChB,KAAK,EAAE,eAAM,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC,IAAS,EAAC,EAAE,CAAC,IAAI,CAAC,EAAE,KAAI,EAAE,CAAC,EAC/D,KAAK,EAAE,aAAI,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,GACzC,CAAC;YACF,uCACO,KAAK,KACR,CAAC,GAAG,CAAC,EAAE,QAAQ,IACjB;SACL;QACD;YACI,OAAO,KAAK,CAAC;KACpB;AACL,CAAC,CAAC;AAEF,kBAAe,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evlop/commons",
3
- "version": "1.0.196",
3
+ "version": "1.0.197",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "peerDependencies": {