@salesforce/lds-adapters-platform-external-connectivity 1.290.0 → 1.292.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.
@@ -1292,7 +1292,7 @@ const getConnectionDetailsAdapterFactory = (luvio) => function externalConnectiv
1292
1292
  };
1293
1293
 
1294
1294
  const TTL$2 = 500;
1295
- const VERSION$2 = "f67e09223fd376bbe6027ef475177f1b";
1295
+ const VERSION$2 = "586c10aa43f3608962cdfc83e38d3157";
1296
1296
  function validate$3(obj, path = 'ExternalConnectivityConnectionTestResultRepresentation') {
1297
1297
  const v_error = (() => {
1298
1298
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1305,13 +1305,55 @@ function validate$3(obj, path = 'ExternalConnectivityConnectionTestResultReprese
1305
1305
  }
1306
1306
  const obj_errorDetails = obj.errorDetails;
1307
1307
  const path_errorDetails = path + '.errorDetails';
1308
- if (typeof obj_errorDetails !== 'string') {
1309
- return new TypeError('Expected "string" but received "' + typeof obj_errorDetails + '" (at "' + path_errorDetails + '")');
1308
+ let obj_errorDetails_union0 = null;
1309
+ const obj_errorDetails_union0_error = (() => {
1310
+ if (typeof obj_errorDetails !== 'string') {
1311
+ return new TypeError('Expected "string" but received "' + typeof obj_errorDetails + '" (at "' + path_errorDetails + '")');
1312
+ }
1313
+ })();
1314
+ if (obj_errorDetails_union0_error != null) {
1315
+ obj_errorDetails_union0 = obj_errorDetails_union0_error.message;
1316
+ }
1317
+ let obj_errorDetails_union1 = null;
1318
+ const obj_errorDetails_union1_error = (() => {
1319
+ if (obj_errorDetails !== null) {
1320
+ return new TypeError('Expected "null" but received "' + typeof obj_errorDetails + '" (at "' + path_errorDetails + '")');
1321
+ }
1322
+ })();
1323
+ if (obj_errorDetails_union1_error != null) {
1324
+ obj_errorDetails_union1 = obj_errorDetails_union1_error.message;
1325
+ }
1326
+ if (obj_errorDetails_union0 && obj_errorDetails_union1) {
1327
+ let message = 'Object doesn\'t match union (at "' + path_errorDetails + '")';
1328
+ message += '\n' + obj_errorDetails_union0.split('\n').map((line) => '\t' + line).join('\n');
1329
+ message += '\n' + obj_errorDetails_union1.split('\n').map((line) => '\t' + line).join('\n');
1330
+ return new TypeError(message);
1310
1331
  }
1311
1332
  const obj_errorMessage = obj.errorMessage;
1312
1333
  const path_errorMessage = path + '.errorMessage';
1313
- if (typeof obj_errorMessage !== 'string') {
1314
- return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
1334
+ let obj_errorMessage_union0 = null;
1335
+ const obj_errorMessage_union0_error = (() => {
1336
+ if (typeof obj_errorMessage !== 'string') {
1337
+ return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
1338
+ }
1339
+ })();
1340
+ if (obj_errorMessage_union0_error != null) {
1341
+ obj_errorMessage_union0 = obj_errorMessage_union0_error.message;
1342
+ }
1343
+ let obj_errorMessage_union1 = null;
1344
+ const obj_errorMessage_union1_error = (() => {
1345
+ if (obj_errorMessage !== null) {
1346
+ return new TypeError('Expected "null" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
1347
+ }
1348
+ })();
1349
+ if (obj_errorMessage_union1_error != null) {
1350
+ obj_errorMessage_union1 = obj_errorMessage_union1_error.message;
1351
+ }
1352
+ if (obj_errorMessage_union0 && obj_errorMessage_union1) {
1353
+ let message = 'Object doesn\'t match union (at "' + path_errorMessage + '")';
1354
+ message += '\n' + obj_errorMessage_union0.split('\n').map((line) => '\t' + line).join('\n');
1355
+ message += '\n' + obj_errorMessage_union1.split('\n').map((line) => '\t' + line).join('\n');
1356
+ return new TypeError(message);
1315
1357
  }
1316
1358
  const obj_established = obj.established;
1317
1359
  const path_established = path + '.established';
@@ -1379,6 +1421,11 @@ function equals$2(existing, incoming) {
1379
1421
  if (!(existing_developerName === incoming_developerName)) {
1380
1422
  return false;
1381
1423
  }
1424
+ const existing_lastTestedDate = existing.lastTestedDate;
1425
+ const incoming_lastTestedDate = incoming.lastTestedDate;
1426
+ if (!(existing_lastTestedDate === incoming_lastTestedDate)) {
1427
+ return false;
1428
+ }
1382
1429
  const existing_errorDetails = existing.errorDetails;
1383
1430
  const incoming_errorDetails = incoming.errorDetails;
1384
1431
  if (!(existing_errorDetails === incoming_errorDetails)) {
@@ -1389,11 +1436,6 @@ function equals$2(existing, incoming) {
1389
1436
  if (!(existing_errorMessage === incoming_errorMessage)) {
1390
1437
  return false;
1391
1438
  }
1392
- const existing_lastTestedDate = existing.lastTestedDate;
1393
- const incoming_lastTestedDate = incoming.lastTestedDate;
1394
- if (!(existing_lastTestedDate === incoming_lastTestedDate)) {
1395
- return false;
1396
- }
1397
1439
  return true;
1398
1440
  }
1399
1441
  const ingest$2 = function ExternalConnectivityConnectionTestResultRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -1,6 +1,6 @@
1
1
  import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
2
  export declare const TTL = 500;
3
- export declare const VERSION = "f67e09223fd376bbe6027ef475177f1b";
3
+ export declare const VERSION = "586c10aa43f3608962cdfc83e38d3157";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -27,9 +27,9 @@ export interface ExternalConnectivityConnectionTestResultRepresentationNormalize
27
27
  /** The developer name */
28
28
  developerName: string;
29
29
  /** The error details from testing the connection */
30
- errorDetails: string;
30
+ errorDetails: string | null;
31
31
  /** The error message from testing the connection */
32
- errorMessage: string;
32
+ errorMessage: string | null;
33
33
  /** Whether the connection was established or not */
34
34
  established: boolean;
35
35
  /** The last time the connection test was attempted */
@@ -43,8 +43,8 @@ export interface ExternalConnectivityConnectionTestResultRepresentationNormalize
43
43
  */
44
44
  export interface ExternalConnectivityConnectionTestResultRepresentation {
45
45
  developerName: string;
46
- errorDetails: string;
47
- errorMessage: string;
46
+ errorDetails: string | null;
47
+ errorMessage: string | null;
48
48
  established: boolean;
49
49
  lastTestedDate: string;
50
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-external-connectivity",
3
- "version": "1.290.0",
3
+ "version": "1.292.0",
4
4
  "description": "A set of API for external connectivity",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/platform-external-connectivity.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.290.0"
43
+ "@salesforce/lds-bindings": "^1.292.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.290.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.292.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -1794,7 +1794,7 @@ const getConnectorsAdapterFactory = (luvio) => function externalConnectivity__ge
1794
1794
  };
1795
1795
 
1796
1796
  const TTL = 500;
1797
- const VERSION = "f67e09223fd376bbe6027ef475177f1b";
1797
+ const VERSION = "586c10aa43f3608962cdfc83e38d3157";
1798
1798
  function validate(obj, path = 'ExternalConnectivityConnectionTestResultRepresentation') {
1799
1799
  const v_error = (() => {
1800
1800
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1807,13 +1807,55 @@ function validate(obj, path = 'ExternalConnectivityConnectionTestResultRepresent
1807
1807
  }
1808
1808
  const obj_errorDetails = obj.errorDetails;
1809
1809
  const path_errorDetails = path + '.errorDetails';
1810
- if (typeof obj_errorDetails !== 'string') {
1811
- return new TypeError('Expected "string" but received "' + typeof obj_errorDetails + '" (at "' + path_errorDetails + '")');
1810
+ let obj_errorDetails_union0 = null;
1811
+ const obj_errorDetails_union0_error = (() => {
1812
+ if (typeof obj_errorDetails !== 'string') {
1813
+ return new TypeError('Expected "string" but received "' + typeof obj_errorDetails + '" (at "' + path_errorDetails + '")');
1814
+ }
1815
+ })();
1816
+ if (obj_errorDetails_union0_error != null) {
1817
+ obj_errorDetails_union0 = obj_errorDetails_union0_error.message;
1818
+ }
1819
+ let obj_errorDetails_union1 = null;
1820
+ const obj_errorDetails_union1_error = (() => {
1821
+ if (obj_errorDetails !== null) {
1822
+ return new TypeError('Expected "null" but received "' + typeof obj_errorDetails + '" (at "' + path_errorDetails + '")');
1823
+ }
1824
+ })();
1825
+ if (obj_errorDetails_union1_error != null) {
1826
+ obj_errorDetails_union1 = obj_errorDetails_union1_error.message;
1827
+ }
1828
+ if (obj_errorDetails_union0 && obj_errorDetails_union1) {
1829
+ let message = 'Object doesn\'t match union (at "' + path_errorDetails + '")';
1830
+ message += '\n' + obj_errorDetails_union0.split('\n').map((line) => '\t' + line).join('\n');
1831
+ message += '\n' + obj_errorDetails_union1.split('\n').map((line) => '\t' + line).join('\n');
1832
+ return new TypeError(message);
1812
1833
  }
1813
1834
  const obj_errorMessage = obj.errorMessage;
1814
1835
  const path_errorMessage = path + '.errorMessage';
1815
- if (typeof obj_errorMessage !== 'string') {
1816
- return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
1836
+ let obj_errorMessage_union0 = null;
1837
+ const obj_errorMessage_union0_error = (() => {
1838
+ if (typeof obj_errorMessage !== 'string') {
1839
+ return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
1840
+ }
1841
+ })();
1842
+ if (obj_errorMessage_union0_error != null) {
1843
+ obj_errorMessage_union0 = obj_errorMessage_union0_error.message;
1844
+ }
1845
+ let obj_errorMessage_union1 = null;
1846
+ const obj_errorMessage_union1_error = (() => {
1847
+ if (obj_errorMessage !== null) {
1848
+ return new TypeError('Expected "null" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
1849
+ }
1850
+ })();
1851
+ if (obj_errorMessage_union1_error != null) {
1852
+ obj_errorMessage_union1 = obj_errorMessage_union1_error.message;
1853
+ }
1854
+ if (obj_errorMessage_union0 && obj_errorMessage_union1) {
1855
+ let message = 'Object doesn\'t match union (at "' + path_errorMessage + '")';
1856
+ message += '\n' + obj_errorMessage_union0.split('\n').map((line) => '\t' + line).join('\n');
1857
+ message += '\n' + obj_errorMessage_union1.split('\n').map((line) => '\t' + line).join('\n');
1858
+ return new TypeError(message);
1817
1859
  }
1818
1860
  const obj_established = obj.established;
1819
1861
  const path_established = path + '.established';
@@ -1881,6 +1923,11 @@ function equals(existing, incoming) {
1881
1923
  if (!(existing_developerName === incoming_developerName)) {
1882
1924
  return false;
1883
1925
  }
1926
+ const existing_lastTestedDate = existing.lastTestedDate;
1927
+ const incoming_lastTestedDate = incoming.lastTestedDate;
1928
+ if (!(existing_lastTestedDate === incoming_lastTestedDate)) {
1929
+ return false;
1930
+ }
1884
1931
  const existing_errorDetails = existing.errorDetails;
1885
1932
  const incoming_errorDetails = incoming.errorDetails;
1886
1933
  if (!(existing_errorDetails === incoming_errorDetails)) {
@@ -1891,11 +1938,6 @@ function equals(existing, incoming) {
1891
1938
  if (!(existing_errorMessage === incoming_errorMessage)) {
1892
1939
  return false;
1893
1940
  }
1894
- const existing_lastTestedDate = existing.lastTestedDate;
1895
- const incoming_lastTestedDate = incoming.lastTestedDate;
1896
- if (!(existing_lastTestedDate === incoming_lastTestedDate)) {
1897
- return false;
1898
- }
1899
1941
  return true;
1900
1942
  }
1901
1943
  const ingest = function ExternalConnectivityConnectionTestResultRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -2083,4 +2125,4 @@ withDefaultLuvio((luvio) => {
2083
2125
  });
2084
2126
 
2085
2127
  export { createConnection, getConnectionDetails, getConnectionDetails_imperative, getConnections, getConnections_imperative, getConnectorDetails, getConnectorDetails_imperative, getConnectors, getConnectors_imperative, testConnection };
2086
- // version: 1.290.0-e2ccd0161
2128
+ // version: 1.292.0-5ad1fe2ca
package/src/raml/api.raml CHANGED
@@ -337,10 +337,10 @@ types:
337
337
  type: string
338
338
  errorDetails:
339
339
  description: The error details from testing the connection
340
- type: string
340
+ type: string | nil
341
341
  errorMessage:
342
342
  description: The error message from testing the connection
343
- type: string
343
+ type: string | nil
344
344
  established:
345
345
  description: Whether the connection was established or not
346
346
  type: boolean