@evlop/commons 1.0.197 → 1.0.199

Sign up to get free protection for your applications and to get access to all the features.
@@ -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;AAchF,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,WAgC3B,CAAA;AAuCD,eAAe,oBAAoB,CAAC"}
@@ -24,7 +24,7 @@ function _getModel(collectionName, dispatch) {
24
24
  }
25
25
  const getModel = lodash_1.memoize(_getModel);
26
26
  const collectionDataSource = (options, { dispatch }) => __awaiter(void 0, void 0, void 0, function* () {
27
- const { key, sourceId, collectionName = sourceId, page = 1, params: requestOptions } = options;
27
+ const { key, sourceId, collectionName = sourceId, params: requestOptions } = options;
28
28
  let reqOptions = {};
29
29
  if (requestOptions) {
30
30
  if (typeof requestOptions === 'string') {
@@ -40,9 +40,10 @@ const collectionDataSource = (options, { dispatch }) => __awaiter(void 0, void 0
40
40
  }
41
41
  }
42
42
  const pageSize = lodash_1.get(reqOptions, 'pageSize', options.pageSize) || 20;
43
- const filter = lodash_1.get(reqOptions, 'filter', {});
44
- const search = lodash_1.get(reqOptions, 'search');
45
- const sort = lodash_1.get(reqOptions, 'sort', {});
43
+ const page = lodash_1.get(reqOptions, 'page', options.page) || 1;
44
+ const filter = lodash_1.get(reqOptions, 'filter', options.filter) || {};
45
+ const search = lodash_1.get(reqOptions, 'search', options.search) || '';
46
+ const sort = lodash_1.get(reqOptions, 'sort', options.sort) || {};
46
47
  const { response } = yield dispatch(reducers_1.getCollection(collectionName, { page, key, pageSize, sort, search }, filter));
47
48
  const _Model = getModel(collectionName, dispatch);
48
49
  return {
@@ -71,13 +72,19 @@ collectionDataSource.keyExtractor = (options) => {
71
72
  requestOptions = JSON.parse(requestOptionsString);
72
73
  }
73
74
  catch (e) { }
75
+ const pageSize = lodash_1.get(requestOptions, 'pageSize', options.pageSize) || 20;
76
+ const page = lodash_1.get(requestOptions, 'page', options.page) || 1;
77
+ const filter = lodash_1.get(requestOptions, 'filter', options.filter) || {};
78
+ const search = lodash_1.get(requestOptions, 'search', options.search) || '';
79
+ const sort = lodash_1.get(requestOptions, 'sort', options.sort) || {};
74
80
  return uuid_1.v5([
75
81
  lodash_1.get(requestOptions, 'key', ''),
76
82
  collectionName,
77
- lodash_1.get(requestOptions, 'search'),
78
- lodash_1.get(requestOptions, 'pageSize'),
79
- JSON.stringify(lodash_1.get(requestOptions, 'sort')),
80
- ...lodash_1.map(lodash_1.get(requestOptions, 'filter'), (v, k) => `${k}=${JSON.stringify(v)}`)
83
+ search,
84
+ page,
85
+ pageSize,
86
+ JSON.stringify(sort),
87
+ ...lodash_1.map(filter, (v, k) => `${k}=${JSON.stringify(v)}`)
81
88
  ].join(':'), constants_1.DATA_SOURCE_KEY_NAMESPACE);
82
89
  };
83
90
  exports.default = collectionDataSource;
@@ -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;AAC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middlewares/dataSourceMiddleware.ts"],"names":[],"mappings":"AA0CA,eAAO,MAAM,oBAAoB,8DAkFhC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"dataSourceMiddleware.d.ts","sourceRoot":"","sources":["../../../src/middlewares/dataSourceMiddleware.ts"],"names":[],"mappings":"AA6CA,eAAO,MAAM,oBAAoB,8DAkFhC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -39,6 +39,7 @@ function arrayDataToState(options, fetchDataResponse) {
39
39
  const pageSize = lodash_1.get(fetchDataResponse, 'pageSize');
40
40
  const totalRecords = lodash_1.get(fetchDataResponse, 'totalRecords');
41
41
  const totalPages = lodash_1.get(fetchDataResponse, 'totalPages');
42
+ const meta = lodash_1.get(fetchDataResponse, 'meta', {});
42
43
  const hasMore = totalPages ? page < totalPages : !lodash_1.isEmpty(items);
43
44
  const hasPrevious = page > 1;
44
45
  return {
@@ -47,8 +48,10 @@ function arrayDataToState(options, fetchDataResponse) {
47
48
  page,
48
49
  pageSize,
49
50
  totalRecords,
51
+ totalPages,
50
52
  hasMore,
51
53
  hasPrevious,
54
+ meta: meta || {},
52
55
  };
53
56
  }
54
57
  const dataSourceMiddleware = store => next => (action) => __awaiter(void 0, void 0, void 0, function* () {
@@ -1 +1 @@
1
- {"version":3,"file":"dataSourceMiddleware.js","sourceRoot":"","sources":["../../../src/middlewares/dataSourceMiddleware.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAA+D;AAC/D,4CAA0C;AAC1C,0CAA4L;AAE5L,SAAS,aAAa,CAAC,KAAK,EAAE,cAAc;IACxC,MAAM,EAAC,UAAU,EAAE,EAAC,WAAW,EAAE,IAAI,EAAE,aAAa,EAAC,EAAC,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;IAC1E,OAAO,WAAW,CAAC,cAAc,CAAC,CAAC;AACvC,CAAC;AAED,4DAA4D;AAC5D,SAAS,eAAe,CAAC,KAAK,EAAE,GAAG;IAC/B,M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