@salesforce/lwc-adapters-uiapi 1.147.1 → 1.147.3

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 +53 -9
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -8374,7 +8374,7 @@ const select$2P = function ListScopeRelatedEntityRepresentationSelect() {
8374
8374
  };
8375
8375
  };
8376
8376
 
8377
- const VERSION$2i = "fce88f94b1244707458c795247592939";
8377
+ const VERSION$2i = "a51de242c746e5500a833e84dfaa2170";
8378
8378
  function validate$1B(obj, path = 'ListScopeRepresentation') {
8379
8379
  const v_error = (() => {
8380
8380
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -8387,10 +8387,31 @@ function validate$1B(obj, path = 'ListScopeRepresentation') {
8387
8387
  }
8388
8388
  const obj_entity = obj.entity;
8389
8389
  const path_entity = path + '.entity';
8390
- const referencepath_entityValidationError = validate$1D(obj_entity, path_entity);
8391
- if (referencepath_entityValidationError !== null) {
8392
- let message = 'Object doesn\'t match ListScopeEntityRepresentation (at "' + path_entity + '")\n';
8393
- message += referencepath_entityValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
8390
+ let obj_entity_union0 = null;
8391
+ const obj_entity_union0_error = (() => {
8392
+ const referencepath_entityValidationError = validate$1D(obj_entity, path_entity);
8393
+ if (referencepath_entityValidationError !== null) {
8394
+ let message = 'Object doesn\'t match ListScopeEntityRepresentation (at "' + path_entity + '")\n';
8395
+ message += referencepath_entityValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
8396
+ return new TypeError(message);
8397
+ }
8398
+ })();
8399
+ if (obj_entity_union0_error != null) {
8400
+ obj_entity_union0 = obj_entity_union0_error.message;
8401
+ }
8402
+ let obj_entity_union1 = null;
8403
+ const obj_entity_union1_error = (() => {
8404
+ if (obj_entity !== null) {
8405
+ return new TypeError('Expected "null" but received "' + typeof obj_entity + '" (at "' + path_entity + '")');
8406
+ }
8407
+ })();
8408
+ if (obj_entity_union1_error != null) {
8409
+ obj_entity_union1 = obj_entity_union1_error.message;
8410
+ }
8411
+ if (obj_entity_union0 && obj_entity_union1) {
8412
+ let message = 'Object doesn\'t match union (at "' + path_entity + '")';
8413
+ message += '\n' + obj_entity_union0.split('\n').map((line) => '\t' + line).join('\n');
8414
+ message += '\n' + obj_entity_union1.split('\n').map((line) => '\t' + line).join('\n');
8394
8415
  return new TypeError(message);
8395
8416
  }
8396
8417
  const obj_label = obj.label;
@@ -8400,10 +8421,31 @@ function validate$1B(obj, path = 'ListScopeRepresentation') {
8400
8421
  }
8401
8422
  const obj_relatedEntity = obj.relatedEntity;
8402
8423
  const path_relatedEntity = path + '.relatedEntity';
8403
- const referencepath_relatedEntityValidationError = validate$1C(obj_relatedEntity, path_relatedEntity);
8404
- if (referencepath_relatedEntityValidationError !== null) {
8405
- let message = 'Object doesn\'t match ListScopeRelatedEntityRepresentation (at "' + path_relatedEntity + '")\n';
8406
- message += referencepath_relatedEntityValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
8424
+ let obj_relatedEntity_union0 = null;
8425
+ const obj_relatedEntity_union0_error = (() => {
8426
+ const referencepath_relatedEntityValidationError = validate$1C(obj_relatedEntity, path_relatedEntity);
8427
+ if (referencepath_relatedEntityValidationError !== null) {
8428
+ let message = 'Object doesn\'t match ListScopeRelatedEntityRepresentation (at "' + path_relatedEntity + '")\n';
8429
+ message += referencepath_relatedEntityValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
8430
+ return new TypeError(message);
8431
+ }
8432
+ })();
8433
+ if (obj_relatedEntity_union0_error != null) {
8434
+ obj_relatedEntity_union0 = obj_relatedEntity_union0_error.message;
8435
+ }
8436
+ let obj_relatedEntity_union1 = null;
8437
+ const obj_relatedEntity_union1_error = (() => {
8438
+ if (obj_relatedEntity !== null) {
8439
+ return new TypeError('Expected "null" but received "' + typeof obj_relatedEntity + '" (at "' + path_relatedEntity + '")');
8440
+ }
8441
+ })();
8442
+ if (obj_relatedEntity_union1_error != null) {
8443
+ obj_relatedEntity_union1 = obj_relatedEntity_union1_error.message;
8444
+ }
8445
+ if (obj_relatedEntity_union0 && obj_relatedEntity_union1) {
8446
+ let message = 'Object doesn\'t match union (at "' + path_relatedEntity + '")';
8447
+ message += '\n' + obj_relatedEntity_union0.split('\n').map((line) => '\t' + line).join('\n');
8448
+ message += '\n' + obj_relatedEntity_union1.split('\n').map((line) => '\t' + line).join('\n');
8407
8449
  return new TypeError(message);
8408
8450
  }
8409
8451
  })();
@@ -8424,6 +8466,7 @@ const select$2O = function ListScopeRepresentationSelect() {
8424
8466
  {
8425
8467
  name: 'entity',
8426
8468
  kind: 'Object',
8469
+ nullable: true,
8427
8470
  selections: ListScopeEntityRepresentation__selections
8428
8471
  },
8429
8472
  {
@@ -8433,6 +8476,7 @@ const select$2O = function ListScopeRepresentationSelect() {
8433
8476
  {
8434
8477
  name: 'relatedEntity',
8435
8478
  kind: 'Object',
8479
+ nullable: true,
8436
8480
  selections: ListScopeRelatedEntityRepresentation__selections
8437
8481
  }
8438
8482
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lwc-adapters-uiapi",
3
- "version": "1.147.1",
3
+ "version": "1.147.3",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "UIAPI adapters with LWC bindings",
6
6
  "module": "dist/main.js",