@salesforce/lds-adapters-platform-external-connectivity 1.416.0 → 1.417.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.
@@ -974,11 +974,13 @@ function createResourceRequest$b(config) {
974
974
 
975
975
  const adapterName$b = 'createConnection';
976
976
  const createConnection_ConfigPropertyMetadata = [
977
- generateParamConfigMetadata('authenticationTypeInput', true, 2 /* Body */, 4 /* Unsupported */),
977
+ generateParamConfigMetadata('authenticationTypeInput', false, 2 /* Body */, 4 /* Unsupported */),
978
978
  generateParamConfigMetadata('agentActionEnabled', false, 2 /* Body */, 4 /* Unsupported */),
979
979
  generateParamConfigMetadata('connectorDeveloperName', true, 2 /* Body */, 0 /* String */),
980
980
  generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
981
981
  generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
982
+ generateParamConfigMetadata('connectionType', false, 2 /* Body */, 0 /* String */),
983
+ generateParamConfigMetadata('connectionParameters', false, 2 /* Body */, 4 /* Unsupported */),
982
984
  ];
983
985
  const createConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, createConnection_ConfigPropertyMetadata);
984
986
  const createResourceParams$b = /*#__PURE__*/ createResourceParams$d(createConnection_ConfigPropertyMetadata);
@@ -997,6 +999,21 @@ function typeCheckConfig$b(untrustedConfig) {
997
999
  if (untrustedConfig_agentActionEnabled === null) {
998
1000
  config.agentActionEnabled = untrustedConfig_agentActionEnabled;
999
1001
  }
1002
+ const untrustedConfig_connectionParameters = untrustedConfig.connectionParameters;
1003
+ if (untrustedIsObject(untrustedConfig_connectionParameters)) {
1004
+ const untrustedConfig_connectionParameters_object = {};
1005
+ const untrustedConfig_connectionParameters_keys = Object.keys(untrustedConfig_connectionParameters);
1006
+ for (let i = 0, arrayLength = untrustedConfig_connectionParameters_keys.length; i < arrayLength; i++) {
1007
+ const key = untrustedConfig_connectionParameters_keys[i];
1008
+ const untrustedConfig_connectionParameters_prop = untrustedConfig_connectionParameters[key];
1009
+ if (untrustedConfig_connectionParameters_object !== undefined) {
1010
+ untrustedConfig_connectionParameters_object[key] = untrustedConfig_connectionParameters_prop;
1011
+ }
1012
+ }
1013
+ if (untrustedConfig_connectionParameters_object !== undefined && Object.keys(untrustedConfig_connectionParameters_object).length >= 0) {
1014
+ config.connectionParameters = untrustedConfig_connectionParameters_object;
1015
+ }
1016
+ }
1000
1017
  return config;
1001
1018
  }
1002
1019
  function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
@@ -2220,11 +2237,13 @@ function createResourceRequest$7(config) {
2220
2237
  const adapterName$7 = 'updateConnection';
2221
2238
  const updateConnection_ConfigPropertyMetadata = [
2222
2239
  generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
2223
- generateParamConfigMetadata('authenticationTypeInput', true, 2 /* Body */, 4 /* Unsupported */),
2240
+ generateParamConfigMetadata('authenticationTypeInput', false, 2 /* Body */, 4 /* Unsupported */),
2224
2241
  generateParamConfigMetadata('agentActionEnabled', false, 2 /* Body */, 4 /* Unsupported */),
2225
2242
  generateParamConfigMetadata('connectorDeveloperName', true, 2 /* Body */, 0 /* String */),
2226
2243
  generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
2227
2244
  generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
2245
+ generateParamConfigMetadata('connectionType', false, 2 /* Body */, 0 /* String */),
2246
+ generateParamConfigMetadata('connectionParameters', false, 2 /* Body */, 4 /* Unsupported */),
2228
2247
  ];
2229
2248
  const updateConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, updateConnection_ConfigPropertyMetadata);
2230
2249
  const createResourceParams$7 = /*#__PURE__*/ createResourceParams$d(updateConnection_ConfigPropertyMetadata);
@@ -2243,6 +2262,21 @@ function typeCheckConfig$7(untrustedConfig) {
2243
2262
  if (untrustedConfig_agentActionEnabled === null) {
2244
2263
  config.agentActionEnabled = untrustedConfig_agentActionEnabled;
2245
2264
  }
2265
+ const untrustedConfig_connectionParameters = untrustedConfig.connectionParameters;
2266
+ if (untrustedIsObject(untrustedConfig_connectionParameters)) {
2267
+ const untrustedConfig_connectionParameters_object = {};
2268
+ const untrustedConfig_connectionParameters_keys = Object.keys(untrustedConfig_connectionParameters);
2269
+ for (let i = 0, arrayLength = untrustedConfig_connectionParameters_keys.length; i < arrayLength; i++) {
2270
+ const key = untrustedConfig_connectionParameters_keys[i];
2271
+ const untrustedConfig_connectionParameters_prop = untrustedConfig_connectionParameters[key];
2272
+ if (untrustedConfig_connectionParameters_object !== undefined) {
2273
+ untrustedConfig_connectionParameters_object[key] = untrustedConfig_connectionParameters_prop;
2274
+ }
2275
+ }
2276
+ if (untrustedConfig_connectionParameters_object !== undefined && Object.keys(untrustedConfig_connectionParameters_object).length >= 0) {
2277
+ config.connectionParameters = untrustedConfig_connectionParameters_object;
2278
+ }
2279
+ }
2246
2280
  return config;
2247
2281
  }
2248
2282
  function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
@@ -7,11 +7,15 @@ export declare const adapterName = "createConnection";
7
7
  export declare const createConnection_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
8
8
  export declare const createConnection_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
9
9
  export interface CreateConnectionConfig {
10
- authenticationTypeInput: types_AuthenticationTypeInputRepresentation_AuthenticationTypeInputRepresentation;
10
+ authenticationTypeInput?: types_AuthenticationTypeInputRepresentation_AuthenticationTypeInputRepresentation;
11
11
  agentActionEnabled?: boolean | null;
12
12
  connectorDeveloperName: string;
13
13
  description: string;
14
14
  name: string;
15
+ connectionType?: string;
16
+ connectionParameters?: {
17
+ [key: string]: unknown;
18
+ };
15
19
  }
16
20
  export declare const createResourceParams: (config: CreateConnectionConfig) => resources_postExternalConnectivityConnections_ResourceRequestConfig;
17
21
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateConnectionConfig>): adapter$45$utils_Untrusted<CreateConnectionConfig>;
@@ -8,11 +8,15 @@ export declare const updateConnection_ConfigPropertyMetadata: $64$luvio_engine_A
8
8
  export declare const updateConnection_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
9
9
  export interface UpdateConnectionConfig {
10
10
  connectionDeveloperName: string;
11
- authenticationTypeInput: types_AuthenticationTypeInputRepresentation_AuthenticationTypeInputRepresentation;
11
+ authenticationTypeInput?: types_AuthenticationTypeInputRepresentation_AuthenticationTypeInputRepresentation;
12
12
  agentActionEnabled?: boolean | null;
13
13
  connectorDeveloperName: string;
14
14
  description: string;
15
15
  name: string;
16
+ connectionType?: string;
17
+ connectionParameters?: {
18
+ [key: string]: unknown;
19
+ };
16
20
  }
17
21
  export declare const createResourceParams: (config: UpdateConnectionConfig) => resources_putExternalConnectivityConnectionsByConnectionDeveloperName_ResourceRequestConfig;
18
22
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UpdateConnectionConfig>): adapter$45$utils_Untrusted<UpdateConnectionConfig>;
@@ -3,11 +3,15 @@ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment,
3
3
  import { ExternalConnectivityConnectionCreatedRepresentation as types_ExternalConnectivityConnectionCreatedRepresentation_ExternalConnectivityConnectionCreatedRepresentation } from '../types/ExternalConnectivityConnectionCreatedRepresentation';
4
4
  export interface ResourceRequestConfig {
5
5
  body: {
6
- authenticationTypeInput: types_AuthenticationTypeInputRepresentation_AuthenticationTypeInputRepresentation;
6
+ authenticationTypeInput?: types_AuthenticationTypeInputRepresentation_AuthenticationTypeInputRepresentation;
7
7
  agentActionEnabled?: boolean | null;
8
8
  connectorDeveloperName: string;
9
9
  description: string;
10
10
  name: string;
11
+ connectionType?: string;
12
+ connectionParameters?: {
13
+ [key: string]: unknown;
14
+ };
11
15
  };
12
16
  }
13
17
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -6,11 +6,15 @@ export interface ResourceRequestConfig {
6
6
  connectionDeveloperName: string;
7
7
  };
8
8
  body: {
9
- authenticationTypeInput: types_AuthenticationTypeInputRepresentation_AuthenticationTypeInputRepresentation;
9
+ authenticationTypeInput?: types_AuthenticationTypeInputRepresentation_AuthenticationTypeInputRepresentation;
10
10
  agentActionEnabled?: boolean | null;
11
11
  connectorDeveloperName: string;
12
12
  description: string;
13
13
  name: string;
14
+ connectionType?: string;
15
+ connectionParameters?: {
16
+ [key: string]: unknown;
17
+ };
14
18
  };
15
19
  }
16
20
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -1,6 +1,6 @@
1
1
  import { AuthenticationTypeInputRepresentation as AuthenticationTypeInputRepresentation_AuthenticationTypeInputRepresentation } from './AuthenticationTypeInputRepresentation';
2
2
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
- export declare const VERSION = "936adf8063b1ed5d4e151227d2d92245";
3
+ export declare const VERSION = "13904a1884f2fc8d5c79d404e775b0aa";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export declare function normalize(input: ExternalConnectivityConnectionInputRepresentation, existing: ExternalConnectivityConnectionInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExternalConnectivityConnectionInputRepresentationNormalized;
@@ -18,7 +18,13 @@ export interface ExternalConnectivityConnectionInputRepresentationNormalized {
18
18
  /** Sets the Connection Enabled For Agent Action */
19
19
  agentActionEnabled?: boolean | null;
20
20
  /** Sets the Authentication Type Input */
21
- authenticationTypeInput: AuthenticationTypeInputRepresentation_AuthenticationTypeInputRepresentation;
21
+ authenticationTypeInput?: AuthenticationTypeInputRepresentation_AuthenticationTypeInputRepresentation;
22
+ /** Connection parameters as key-value pairs */
23
+ connectionParameters?: {
24
+ [key: string]: unknown;
25
+ };
26
+ /** Sets the connectionType */
27
+ connectionType?: string;
22
28
  /** Sets the Connector Developer Name */
23
29
  connectorDeveloperName: string;
24
30
  /** Sets the description */
@@ -34,7 +40,11 @@ export interface ExternalConnectivityConnectionInputRepresentationNormalized {
34
40
  */
35
41
  export interface ExternalConnectivityConnectionInputRepresentation {
36
42
  agentActionEnabled?: boolean | null;
37
- authenticationTypeInput: AuthenticationTypeInputRepresentation_AuthenticationTypeInputRepresentation;
43
+ authenticationTypeInput?: AuthenticationTypeInputRepresentation_AuthenticationTypeInputRepresentation;
44
+ connectionParameters?: {
45
+ [key: string]: unknown;
46
+ };
47
+ connectionType?: string;
38
48
  connectorDeveloperName: string;
39
49
  description: string;
40
50
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-external-connectivity",
3
- "version": "1.416.0",
3
+ "version": "1.417.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",
@@ -41,10 +41,10 @@
41
41
  "test:unit:debug": "node --inspect-brk ../../node_modules/.bin/jest --runInBand"
42
42
  },
43
43
  "dependencies": {
44
- "@salesforce/lds-bindings": "^1.416.0"
44
+ "@salesforce/lds-bindings": "^1.417.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@salesforce/lds-compiler-plugins": "^1.416.0"
47
+ "@salesforce/lds-compiler-plugins": "^1.417.0"
48
48
  },
49
49
  "nx": {
50
50
  "targets": {
package/sfdc/index.js CHANGED
@@ -239,11 +239,13 @@ function createResourceRequest$c(config) {
239
239
 
240
240
  const adapterName$c = 'createConnection';
241
241
  const createConnection_ConfigPropertyMetadata = [
242
- generateParamConfigMetadata('authenticationTypeInput', true, 2 /* Body */, 4 /* Unsupported */),
242
+ generateParamConfigMetadata('authenticationTypeInput', false, 2 /* Body */, 4 /* Unsupported */),
243
243
  generateParamConfigMetadata('agentActionEnabled', false, 2 /* Body */, 4 /* Unsupported */),
244
244
  generateParamConfigMetadata('connectorDeveloperName', true, 2 /* Body */, 0 /* String */),
245
245
  generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
246
246
  generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
247
+ generateParamConfigMetadata('connectionType', false, 2 /* Body */, 0 /* String */),
248
+ generateParamConfigMetadata('connectionParameters', false, 2 /* Body */, 4 /* Unsupported */),
247
249
  ];
248
250
  const createConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, createConnection_ConfigPropertyMetadata);
249
251
  const createResourceParams$c = /*#__PURE__*/ createResourceParams$d(createConnection_ConfigPropertyMetadata);
@@ -262,6 +264,21 @@ function typeCheckConfig$c(untrustedConfig) {
262
264
  if (untrustedConfig_agentActionEnabled === null) {
263
265
  config.agentActionEnabled = untrustedConfig_agentActionEnabled;
264
266
  }
267
+ const untrustedConfig_connectionParameters = untrustedConfig.connectionParameters;
268
+ if (untrustedIsObject(untrustedConfig_connectionParameters)) {
269
+ const untrustedConfig_connectionParameters_object = {};
270
+ const untrustedConfig_connectionParameters_keys = Object.keys(untrustedConfig_connectionParameters);
271
+ for (let i = 0, arrayLength = untrustedConfig_connectionParameters_keys.length; i < arrayLength; i++) {
272
+ const key = untrustedConfig_connectionParameters_keys[i];
273
+ const untrustedConfig_connectionParameters_prop = untrustedConfig_connectionParameters[key];
274
+ if (untrustedConfig_connectionParameters_object !== undefined) {
275
+ untrustedConfig_connectionParameters_object[key] = untrustedConfig_connectionParameters_prop;
276
+ }
277
+ }
278
+ if (untrustedConfig_connectionParameters_object !== undefined && Object.keys(untrustedConfig_connectionParameters_object).length >= 0) {
279
+ config.connectionParameters = untrustedConfig_connectionParameters_object;
280
+ }
281
+ }
265
282
  return config;
266
283
  }
267
284
  function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
@@ -4374,11 +4391,13 @@ function createResourceRequest(config) {
4374
4391
  const adapterName = 'updateConnection';
4375
4392
  const updateConnection_ConfigPropertyMetadata = [
4376
4393
  generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
4377
- generateParamConfigMetadata('authenticationTypeInput', true, 2 /* Body */, 4 /* Unsupported */),
4394
+ generateParamConfigMetadata('authenticationTypeInput', false, 2 /* Body */, 4 /* Unsupported */),
4378
4395
  generateParamConfigMetadata('agentActionEnabled', false, 2 /* Body */, 4 /* Unsupported */),
4379
4396
  generateParamConfigMetadata('connectorDeveloperName', true, 2 /* Body */, 0 /* String */),
4380
4397
  generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
4381
4398
  generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
4399
+ generateParamConfigMetadata('connectionType', false, 2 /* Body */, 0 /* String */),
4400
+ generateParamConfigMetadata('connectionParameters', false, 2 /* Body */, 4 /* Unsupported */),
4382
4401
  ];
4383
4402
  const updateConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateConnection_ConfigPropertyMetadata);
4384
4403
  const createResourceParams = /*#__PURE__*/ createResourceParams$d(updateConnection_ConfigPropertyMetadata);
@@ -4397,6 +4416,21 @@ function typeCheckConfig(untrustedConfig) {
4397
4416
  if (untrustedConfig_agentActionEnabled === null) {
4398
4417
  config.agentActionEnabled = untrustedConfig_agentActionEnabled;
4399
4418
  }
4419
+ const untrustedConfig_connectionParameters = untrustedConfig.connectionParameters;
4420
+ if (untrustedIsObject(untrustedConfig_connectionParameters)) {
4421
+ const untrustedConfig_connectionParameters_object = {};
4422
+ const untrustedConfig_connectionParameters_keys = Object.keys(untrustedConfig_connectionParameters);
4423
+ for (let i = 0, arrayLength = untrustedConfig_connectionParameters_keys.length; i < arrayLength; i++) {
4424
+ const key = untrustedConfig_connectionParameters_keys[i];
4425
+ const untrustedConfig_connectionParameters_prop = untrustedConfig_connectionParameters[key];
4426
+ if (untrustedConfig_connectionParameters_object !== undefined) {
4427
+ untrustedConfig_connectionParameters_object[key] = untrustedConfig_connectionParameters_prop;
4428
+ }
4429
+ }
4430
+ if (untrustedConfig_connectionParameters_object !== undefined && Object.keys(untrustedConfig_connectionParameters_object).length >= 0) {
4431
+ config.connectionParameters = untrustedConfig_connectionParameters_object;
4432
+ }
4433
+ }
4400
4434
  return config;
4401
4435
  }
4402
4436
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -4574,4 +4608,4 @@ withDefaultLuvio((luvio) => {
4574
4608
  });
4575
4609
 
4576
4610
  export { createConnection, deleteConnection, getConnectionDetails, getConnectionDetails_imperative, getConnections, getConnections_imperative, getConnectorDetails, getConnectorDetails_imperative, getConnectors, getConnectors_imperative, getExternalConnectivityConnectionReferencedFlows, getExternalConnectivityConnectionReferencedFlows_imperative, getExternalIdentityProviders, getExternalIdentityProviders_imperative, getInvocableActions, getInvocableActions_imperative, getNamedCredentialConfig, getNamedCredentialConfig_imperative, notifyConnectionListUpdateAvailable, refreshMetadata, testConnection, updateConnection };
4577
- // version: 1.416.0-e1e24eaee8
4611
+ // version: 1.417.0-83ca87d09c
package/src/raml/api.raml CHANGED
@@ -223,6 +223,7 @@ types:
223
223
  authenticationTypeInput:
224
224
  description: Sets the Authentication Type Input
225
225
  type: AuthenticationTypeInputRepresentation
226
+ required: false
226
227
  agentActionEnabled:
227
228
  description: Sets the Connection Enabled For Agent Action
228
229
  type: boolean | nil # TODO Hand-rolled W-17603644
@@ -236,6 +237,17 @@ types:
236
237
  name:
237
238
  description: Sets the name
238
239
  type: string
240
+ connectionType:
241
+ description: Sets the connectionType
242
+ type: string
243
+ required: false
244
+ connectionParameters:
245
+ description: Connection parameters as key-value pairs
246
+ type: object
247
+ properties:
248
+ //:
249
+ type: any
250
+ required: false
239
251
  ExternalConnectivityConnectionListRepresentation:
240
252
  description: Output representation for External Connectivity Connection List
241
253
  type: object