@salesforce/lwc-adapters-uiapi 1.354.0-dev16 → 1.354.0-dev18

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.
Files changed (2) hide show
  1. package/dist/main.js +34 -4
  2. package/package.json +4 -4
package/dist/main.js CHANGED
@@ -572,7 +572,7 @@ function createResourceParamsImpl(config, configMetadata) {
572
572
  }
573
573
  return resourceParams;
574
574
  }
575
- // engine version: 0.157.1-dev4-88c70bb8
575
+ // engine version: 0.157.1-dev5-f6578042
576
576
 
577
577
  /**
578
578
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -37377,12 +37377,19 @@ function equalsMetadata(existingMetadata, incomingMetadata) {
37377
37377
  }
37378
37378
 
37379
37379
  const TTL$g = 30000;
37380
- const VERSION$1I = "62467c27c19349b70c9db2a8d9d591d9";
37380
+ const VERSION$1I = "ecedd058ac9cfc9b51de0f2c00276ce8";
37381
37381
  function validate$E(obj, path = 'RelatedListRecordCollectionRepresentation') {
37382
37382
  const v_error = (() => {
37383
37383
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
37384
37384
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
37385
37385
  }
37386
+ if (obj.columnLabels !== undefined) {
37387
+ const obj_columnLabels = obj.columnLabels;
37388
+ const path_columnLabels = path + '.columnLabels';
37389
+ if (obj_columnLabels === undefined) {
37390
+ return new TypeError('Expected "defined" but received "' + typeof obj_columnLabels + '" (at "' + path_columnLabels + '")');
37391
+ }
37392
+ }
37386
37393
  const obj_count = obj.count;
37387
37394
  const path_count = path + '.count';
37388
37395
  if (typeof obj_count !== 'number' || (typeof obj_count === 'number' && Math.floor(obj_count) !== obj_count)) {
@@ -37754,6 +37761,14 @@ const dynamicSelect$4 = function dynamicRelatedListRecordCollectionRepresentatio
37754
37761
  reader.enterPath('count');
37755
37762
  reader.readScalar('count', metadataProperties, sink);
37756
37763
  reader.exitPath();
37764
+ reader.enterPath('columnLabels');
37765
+ reader.readObject('columnLabels', {
37766
+ name: 'columnLabels',
37767
+ kind: 'Object',
37768
+ // Any
37769
+ required: false
37770
+ }, source, sink);
37771
+ reader.exitPath();
37757
37772
  reader.enterPath('fields');
37758
37773
  reader.readScalarPlural('fields', source, sink, true);
37759
37774
  reader.exitPath();
@@ -37796,6 +37811,19 @@ function equals$g(existing, incoming) {
37796
37811
  if (!(existing_currentPageToken === incoming_currentPageToken)) {
37797
37812
  return false;
37798
37813
  }
37814
+ const existing_columnLabels = existing.columnLabels;
37815
+ const incoming_columnLabels = incoming.columnLabels;
37816
+ // if at least one of these optionals is defined
37817
+ if (existing_columnLabels !== undefined || incoming_columnLabels !== undefined) {
37818
+ // if one of these is not defined we know the other is defined and therefore
37819
+ // not equal
37820
+ if (existing_columnLabels === undefined || incoming_columnLabels === undefined) {
37821
+ return false;
37822
+ }
37823
+ if (JSONStringify(incoming_columnLabels) !== JSONStringify(existing_columnLabels)) {
37824
+ return false;
37825
+ }
37826
+ }
37799
37827
  const existing_currentPageUrl = existing.currentPageUrl;
37800
37828
  const incoming_currentPageUrl = incoming.currentPageUrl;
37801
37829
  if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
@@ -38033,10 +38061,11 @@ function createPaginationParams(params) {
38033
38061
  }
38034
38062
  function keyBuilder$1S(luvio, params) {
38035
38063
  return keyBuilder$1T(luvio, {
38064
+ includeColumnLabels: params.body.includeColumnLabels || null,
38065
+ relatedListId: params.urlParams.relatedListId,
38036
38066
  sortBy: params.body.sortBy || [],
38037
- where: params.body.where || null,
38038
38067
  parentRecordId: params.urlParams.parentRecordId,
38039
- relatedListId: params.urlParams.relatedListId
38068
+ where: params.body.where || null
38040
38069
  });
38041
38070
  }
38042
38071
  function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
@@ -38458,6 +38487,7 @@ const getRelatedListRecords_ConfigPropertyMetadata = [
38458
38487
  generateParamConfigMetadata('parentRecordId', true, 0 /* UrlParameter */, 0 /* String */, false, getRecordId18),
38459
38488
  generateParamConfigMetadata('relatedListId', true, 0 /* UrlParameter */, 0 /* String */),
38460
38489
  generateParamConfigMetadata('fields', false, 2 /* Body */, 0 /* String */, true),
38490
+ generateParamConfigMetadata('includeColumnLabels', false, 2 /* Body */, 1 /* Boolean */),
38461
38491
  generateParamConfigMetadata('optionalFields', false, 2 /* Body */, 0 /* String */, true),
38462
38492
  generateParamConfigMetadata('pageSize', false, 2 /* Body */, 3 /* Integer */),
38463
38493
  generateParamConfigMetadata('pageToken', false, 2 /* Body */, 0 /* String */),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lwc-adapters-uiapi",
3
- "version": "1.354.0-dev16",
3
+ "version": "1.354.0-dev18",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "UIAPI adapters with LWC bindings",
6
6
  "module": "dist/main.js",
@@ -31,10 +31,10 @@
31
31
  "clean": "rm -rf dist src/generated"
32
32
  },
33
33
  "devDependencies": {
34
- "@salesforce/lds-adapters-uiapi": "^1.354.0-dev16"
34
+ "@salesforce/lds-adapters-uiapi": "^1.354.0-dev18"
35
35
  },
36
36
  "dependencies": {
37
- "@luvio/lwc-luvio": "0.157.1-dev4",
38
- "@salesforce/lds-default-luvio": "^1.354.0-dev16"
37
+ "@luvio/lwc-luvio": "0.157.1-dev5",
38
+ "@salesforce/lds-default-luvio": "^1.354.0-dev18"
39
39
  }
40
40
  }