@salesforce/lwc-adapters-uiapi 1.436.0 → 1.438.0

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 +74 -2
  2. package/package.json +4 -4
package/dist/main.js CHANGED
@@ -332,7 +332,9 @@ var HttpStatusCode;
332
332
  HttpStatusCode[HttpStatusCode["Unauthorized"] = 401] = "Unauthorized";
333
333
  HttpStatusCode[HttpStatusCode["Forbidden"] = 403] = "Forbidden";
334
334
  HttpStatusCode[HttpStatusCode["NotFound"] = 404] = "NotFound";
335
+ HttpStatusCode[HttpStatusCode["TooManyRequests"] = 429] = "TooManyRequests";
335
336
  HttpStatusCode[HttpStatusCode["ServerError"] = 500] = "ServerError";
337
+ HttpStatusCode[HttpStatusCode["ServiceUnavailable"] = 503] = "ServiceUnavailable";
336
338
  HttpStatusCode[HttpStatusCode["GatewayTimeout"] = 504] = "GatewayTimeout";
337
339
  })(HttpStatusCode || (HttpStatusCode = {}));
338
340
 
@@ -573,7 +575,7 @@ function createResourceParamsImpl(config, configMetadata) {
573
575
  }
574
576
  return resourceParams;
575
577
  }
576
- // engine version: 0.160.4-b7e0ea82
578
+ // engine version: 0.160.5-e6ada846
577
579
 
578
580
  /**
579
581
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -19875,7 +19877,7 @@ function coerceFormFactor(form) {
19875
19877
  return undefined;
19876
19878
  }
19877
19879
 
19878
- const VERSION$2N = "3f49d751896cf66e6e29788d8880e2cc";
19880
+ const VERSION$2N = "885c858e27ff690e5f69edc41d68c32b";
19879
19881
  function validate$1A(obj, path = 'PlatformActionRepresentation') {
19880
19882
  const v_error = (() => {
19881
19883
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -20015,6 +20017,32 @@ function validate$1A(obj, path = 'PlatformActionRepresentation') {
20015
20017
  message += '\n' + obj_lwcComponent_union1.split('\n').map((line) => '\t' + line).join('\n');
20016
20018
  return new TypeError(message);
20017
20019
  }
20020
+ const obj_pageDeveloperName = obj.pageDeveloperName;
20021
+ const path_pageDeveloperName = path + '.pageDeveloperName';
20022
+ let obj_pageDeveloperName_union0 = null;
20023
+ const obj_pageDeveloperName_union0_error = (() => {
20024
+ if (typeof obj_pageDeveloperName !== 'string') {
20025
+ return new TypeError('Expected "string" but received "' + typeof obj_pageDeveloperName + '" (at "' + path_pageDeveloperName + '")');
20026
+ }
20027
+ })();
20028
+ if (obj_pageDeveloperName_union0_error != null) {
20029
+ obj_pageDeveloperName_union0 = obj_pageDeveloperName_union0_error.message;
20030
+ }
20031
+ let obj_pageDeveloperName_union1 = null;
20032
+ const obj_pageDeveloperName_union1_error = (() => {
20033
+ if (obj_pageDeveloperName !== null) {
20034
+ return new TypeError('Expected "null" but received "' + typeof obj_pageDeveloperName + '" (at "' + path_pageDeveloperName + '")');
20035
+ }
20036
+ })();
20037
+ if (obj_pageDeveloperName_union1_error != null) {
20038
+ obj_pageDeveloperName_union1 = obj_pageDeveloperName_union1_error.message;
20039
+ }
20040
+ if (obj_pageDeveloperName_union0 && obj_pageDeveloperName_union1) {
20041
+ let message = 'Object doesn\'t match union (at "' + path_pageDeveloperName + '")';
20042
+ message += '\n' + obj_pageDeveloperName_union0.split('\n').map((line) => '\t' + line).join('\n');
20043
+ message += '\n' + obj_pageDeveloperName_union1.split('\n').map((line) => '\t' + line).join('\n');
20044
+ return new TypeError(message);
20045
+ }
20018
20046
  const obj_primaryColor = obj.primaryColor;
20019
20047
  const path_primaryColor = path + '.primaryColor';
20020
20048
  let obj_primaryColor_union0 = null;
@@ -20176,6 +20204,32 @@ function validate$1A(obj, path = 'PlatformActionRepresentation') {
20176
20204
  message += '\n' + obj_targetObject_union1.split('\n').map((line) => '\t' + line).join('\n');
20177
20205
  return new TypeError(message);
20178
20206
  }
20207
+ const obj_targetParentField = obj.targetParentField;
20208
+ const path_targetParentField = path + '.targetParentField';
20209
+ let obj_targetParentField_union0 = null;
20210
+ const obj_targetParentField_union0_error = (() => {
20211
+ if (typeof obj_targetParentField !== 'string') {
20212
+ return new TypeError('Expected "string" but received "' + typeof obj_targetParentField + '" (at "' + path_targetParentField + '")');
20213
+ }
20214
+ })();
20215
+ if (obj_targetParentField_union0_error != null) {
20216
+ obj_targetParentField_union0 = obj_targetParentField_union0_error.message;
20217
+ }
20218
+ let obj_targetParentField_union1 = null;
20219
+ const obj_targetParentField_union1_error = (() => {
20220
+ if (obj_targetParentField !== null) {
20221
+ return new TypeError('Expected "null" but received "' + typeof obj_targetParentField + '" (at "' + path_targetParentField + '")');
20222
+ }
20223
+ })();
20224
+ if (obj_targetParentField_union1_error != null) {
20225
+ obj_targetParentField_union1 = obj_targetParentField_union1_error.message;
20226
+ }
20227
+ if (obj_targetParentField_union0 && obj_targetParentField_union1) {
20228
+ let message = 'Object doesn\'t match union (at "' + path_targetParentField + '")';
20229
+ message += '\n' + obj_targetParentField_union0.split('\n').map((line) => '\t' + line).join('\n');
20230
+ message += '\n' + obj_targetParentField_union1.split('\n').map((line) => '\t' + line).join('\n');
20231
+ return new TypeError(message);
20232
+ }
20179
20233
  const obj_targetUrl = obj.targetUrl;
20180
20234
  const path_targetUrl = path + '.targetUrl';
20181
20235
  let obj_targetUrl_union0 = null;
@@ -20269,6 +20323,10 @@ const select$3q = function PlatformActionRepresentationSelect() {
20269
20323
  name: 'lwcComponent',
20270
20324
  kind: 'Scalar'
20271
20325
  },
20326
+ {
20327
+ name: 'pageDeveloperName',
20328
+ kind: 'Scalar'
20329
+ },
20272
20330
  {
20273
20331
  name: 'primaryColor',
20274
20332
  kind: 'Scalar'
@@ -20297,6 +20355,10 @@ const select$3q = function PlatformActionRepresentationSelect() {
20297
20355
  name: 'targetObject',
20298
20356
  kind: 'Scalar'
20299
20357
  },
20358
+ {
20359
+ name: 'targetParentField',
20360
+ kind: 'Scalar'
20361
+ },
20300
20362
  {
20301
20363
  name: 'targetUrl',
20302
20364
  kind: 'Scalar'
@@ -20369,6 +20431,11 @@ function equals$W(existing, incoming) {
20369
20431
  if (!(existing_lwcComponent === incoming_lwcComponent)) {
20370
20432
  return false;
20371
20433
  }
20434
+ const existing_pageDeveloperName = existing.pageDeveloperName;
20435
+ const incoming_pageDeveloperName = incoming.pageDeveloperName;
20436
+ if (!(existing_pageDeveloperName === incoming_pageDeveloperName)) {
20437
+ return false;
20438
+ }
20372
20439
  const existing_primaryColor = existing.primaryColor;
20373
20440
  const incoming_primaryColor = incoming.primaryColor;
20374
20441
  if (!(existing_primaryColor === incoming_primaryColor)) {
@@ -20399,6 +20466,11 @@ function equals$W(existing, incoming) {
20399
20466
  if (!(existing_targetObject === incoming_targetObject)) {
20400
20467
  return false;
20401
20468
  }
20469
+ const existing_targetParentField = existing.targetParentField;
20470
+ const incoming_targetParentField = incoming.targetParentField;
20471
+ if (!(existing_targetParentField === incoming_targetParentField)) {
20472
+ return false;
20473
+ }
20402
20474
  const existing_targetUrl = existing.targetUrl;
20403
20475
  const incoming_targetUrl = incoming.targetUrl;
20404
20476
  if (!(existing_targetUrl === incoming_targetUrl)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lwc-adapters-uiapi",
3
- "version": "1.436.0",
3
+ "version": "1.438.0",
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.436.0"
34
+ "@salesforce/lds-adapters-uiapi": "^1.438.0"
35
35
  },
36
36
  "dependencies": {
37
- "@luvio/lwc-luvio": "0.160.4",
38
- "@salesforce/lds-default-luvio": "^1.436.0"
37
+ "@luvio/lwc-luvio": "0.160.5",
38
+ "@salesforce/lds-default-luvio": "^1.438.0"
39
39
  }
40
40
  }