monkey-front-core 0.0.416 → 0.0.417

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.
@@ -5327,14 +5327,14 @@ class MonkeyEcxCommonsStoreService extends MonkeyEcxCommonsService {
5327
5327
  this.action = actions;
5328
5328
  this.selector = selectors;
5329
5329
  }
5330
- handleResponseData(resp, identifier, updatePagination = true) {
5330
+ handleResponseData(resp, identifier, updateLinks = true) {
5331
5331
  try {
5332
5332
  let data;
5333
5333
  if (resp?._embedded) {
5334
5334
  const { _embedded, _links, page } = resp;
5335
5335
  const key = Object.keys(_embedded)[0];
5336
5336
  data = _embedded[key];
5337
- if (updatePagination) {
5337
+ if (updateLinks) {
5338
5338
  this.updateLinks?.(_links, identifier);
5339
5339
  }
5340
5340
  this.updatePage?.(page, identifier);
@@ -5347,11 +5347,11 @@ class MonkeyEcxCommonsStoreService extends MonkeyEcxCommonsService {
5347
5347
  throw new Error(`MECX Core - Method handleResponseData -> ${e}`);
5348
5348
  }
5349
5349
  }
5350
- async paginationHasDifference(url, identifier) {
5350
+ async linksHasDifference(url, identifier) {
5351
5351
  try {
5352
5352
  const { action, store, selector } = this;
5353
5353
  const { hasDifference, hasField } = (await store
5354
- .select(selector.paginationHasDifference({ identifier, url }))
5354
+ .select(selector.linksHasDifference({ identifier, url }))
5355
5355
  .pipe(take(1))
5356
5356
  .toPromise());
5357
5357
  if (hasDifference && hasField) {
@@ -5360,7 +5360,7 @@ class MonkeyEcxCommonsStoreService extends MonkeyEcxCommonsService {
5360
5360
  return { hasDifference };
5361
5361
  }
5362
5362
  catch (e) {
5363
- throw new Error(`MECX Core - Method paginationHasDifference -> ${e}`);
5363
+ throw new Error(`MECX Core - Method linksHasDifference -> ${e}`);
5364
5364
  }
5365
5365
  }
5366
5366
  updateControl(data) {
@@ -5438,11 +5438,11 @@ class MonkeyEcxCommonsStoreService extends MonkeyEcxCommonsService {
5438
5438
  throw new Error(`MECX Core - Method updateLinks -> ${e}`);
5439
5439
  }
5440
5440
  }
5441
- async loadData(url, identifier, updatePagination = true) {
5441
+ async loadData(url, identifier, updateLinks = true) {
5442
5442
  this.updateControl({ isLoading: true });
5443
5443
  try {
5444
5444
  const data = await this.monkeyecxService?.get(url).toPromise();
5445
- this.handleResponseData(data, identifier, updatePagination);
5445
+ this.handleResponseData(data, identifier, updateLinks);
5446
5446
  }
5447
5447
  catch (e) {
5448
5448
  throw new Error(`${e?.message}`);
@@ -5452,7 +5452,7 @@ class MonkeyEcxCommonsStoreService extends MonkeyEcxCommonsService {
5452
5452
  async loadPageData(pagination, identifier) {
5453
5453
  const { store, selector } = this;
5454
5454
  const data = await store
5455
- .select(selector.selectPagination({ identifier }))
5455
+ .select(selector.selectLinks({ identifier }))
5456
5456
  .pipe(take(1))
5457
5457
  .toPromise();
5458
5458
  const { action } = pagination;