@salesforce/lds-adapters-platform-external-connectivity 1.435.1 → 1.437.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.
- package/dist/es/es2018/platform-external-connectivity.js +37 -10
- package/dist/es/es2018/types/src/generated/adapters/createConnection.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/getConnectionDetails.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/getConnections.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/getConnectorDetails.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/testConnection.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/updateConnection.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/getExternalConnectivityConnections.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/getExternalConnectivityConnectionsByConnectionDeveloperName.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/getExternalConnectivityConnectorsByConnectorDeveloperName.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/postExternalConnectivityConnections.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/postExternalConnectivityConnectionsTestByConnectionDeveloperName.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/putExternalConnectivityConnectionsByConnectionDeveloperName.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/ExternalConnectivityConnectionDetailsRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/ExternalConnectivityConnectionInputRepresentation.d.ts +4 -1
- package/package.json +3 -3
- package/sfdc/index.js +38 -11
- package/src/raml/api.raml +29 -1
|
@@ -755,6 +755,7 @@ function createResourceRequest$c(config) {
|
|
|
755
755
|
const adapterName$c = 'getConnections';
|
|
756
756
|
const getConnections_ConfigPropertyMetadata = [
|
|
757
757
|
generateParamConfigMetadata('connectorDeveloperName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
758
|
+
generateParamConfigMetadata('sourceId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
758
759
|
];
|
|
759
760
|
const getConnections_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getConnections_ConfigPropertyMetadata);
|
|
760
761
|
const createResourceParams$c = /*#__PURE__*/ createResourceParams$d(getConnections_ConfigPropertyMetadata);
|
|
@@ -981,6 +982,7 @@ const createConnection_ConfigPropertyMetadata = [
|
|
|
981
982
|
generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
|
|
982
983
|
generateParamConfigMetadata('connectionType', false, 2 /* Body */, 0 /* String */),
|
|
983
984
|
generateParamConfigMetadata('connectionParameters', false, 2 /* Body */, 4 /* Unsupported */),
|
|
985
|
+
generateParamConfigMetadata('sourceId', false, 2 /* Body */, 0 /* String */),
|
|
984
986
|
];
|
|
985
987
|
const createConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, createConnection_ConfigPropertyMetadata);
|
|
986
988
|
const createResourceParams$b = /*#__PURE__*/ createResourceParams$d(createConnection_ConfigPropertyMetadata);
|
|
@@ -1869,7 +1871,7 @@ function validate$e(obj, path = 'AuthenticationTypeRepresentation') {
|
|
|
1869
1871
|
}
|
|
1870
1872
|
|
|
1871
1873
|
const TTL$8 = 500;
|
|
1872
|
-
const VERSION$8 = "
|
|
1874
|
+
const VERSION$8 = "138eaa4aa84aff30be7b787f5be726f7";
|
|
1873
1875
|
function validate$d(obj, path = 'ExternalConnectivityConnectionDetailsRepresentation') {
|
|
1874
1876
|
const v_error = (() => {
|
|
1875
1877
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1905,10 +1907,31 @@ function validate$d(obj, path = 'ExternalConnectivityConnectionDetailsRepresenta
|
|
|
1905
1907
|
}
|
|
1906
1908
|
const obj_authenticationType = obj.authenticationType;
|
|
1907
1909
|
const path_authenticationType = path + '.authenticationType';
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1910
|
+
let obj_authenticationType_union0 = null;
|
|
1911
|
+
const obj_authenticationType_union0_error = (() => {
|
|
1912
|
+
const referencepath_authenticationTypeValidationError = validate$e(obj_authenticationType, path_authenticationType);
|
|
1913
|
+
if (referencepath_authenticationTypeValidationError !== null) {
|
|
1914
|
+
let message = 'Object doesn\'t match AuthenticationTypeRepresentation (at "' + path_authenticationType + '")\n';
|
|
1915
|
+
message += referencepath_authenticationTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1916
|
+
return new TypeError(message);
|
|
1917
|
+
}
|
|
1918
|
+
})();
|
|
1919
|
+
if (obj_authenticationType_union0_error != null) {
|
|
1920
|
+
obj_authenticationType_union0 = obj_authenticationType_union0_error.message;
|
|
1921
|
+
}
|
|
1922
|
+
let obj_authenticationType_union1 = null;
|
|
1923
|
+
const obj_authenticationType_union1_error = (() => {
|
|
1924
|
+
if (obj_authenticationType !== null) {
|
|
1925
|
+
return new TypeError('Expected "null" but received "' + typeof obj_authenticationType + '" (at "' + path_authenticationType + '")');
|
|
1926
|
+
}
|
|
1927
|
+
})();
|
|
1928
|
+
if (obj_authenticationType_union1_error != null) {
|
|
1929
|
+
obj_authenticationType_union1 = obj_authenticationType_union1_error.message;
|
|
1930
|
+
}
|
|
1931
|
+
if (obj_authenticationType_union0 && obj_authenticationType_union1) {
|
|
1932
|
+
let message = 'Object doesn\'t match union (at "' + path_authenticationType + '")';
|
|
1933
|
+
message += '\n' + obj_authenticationType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1934
|
+
message += '\n' + obj_authenticationType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1912
1935
|
return new TypeError(message);
|
|
1913
1936
|
}
|
|
1914
1937
|
const obj_createdBy = obj.createdBy;
|
|
@@ -2063,7 +2086,7 @@ function select$g(luvio, params) {
|
|
|
2063
2086
|
return select$h();
|
|
2064
2087
|
}
|
|
2065
2088
|
function keyBuilder$e(luvio, params) {
|
|
2066
|
-
return keyPrefix + '::ExternalConnectivityConnectionDetailsRepresentation:(' + 'connectionDeveloperName:' + params.urlParams.connectionDeveloperName + ')';
|
|
2089
|
+
return keyPrefix + '::ExternalConnectivityConnectionDetailsRepresentation:(' + 'sourceId:' + params.queryParams.sourceId + ',' + 'connectionDeveloperName:' + params.urlParams.connectionDeveloperName + ')';
|
|
2067
2090
|
}
|
|
2068
2091
|
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
2069
2092
|
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$e(luvio, resourceParams));
|
|
@@ -2105,7 +2128,7 @@ function createResourceRequest$8(config) {
|
|
|
2105
2128
|
method: 'get',
|
|
2106
2129
|
body: null,
|
|
2107
2130
|
urlParams: config.urlParams,
|
|
2108
|
-
queryParams:
|
|
2131
|
+
queryParams: config.queryParams,
|
|
2109
2132
|
headers,
|
|
2110
2133
|
priority: 'normal',
|
|
2111
2134
|
};
|
|
@@ -2114,6 +2137,7 @@ function createResourceRequest$8(config) {
|
|
|
2114
2137
|
const adapterName$8 = 'getConnectionDetails';
|
|
2115
2138
|
const getConnectionDetails_ConfigPropertyMetadata = [
|
|
2116
2139
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2140
|
+
generateParamConfigMetadata('sourceId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2117
2141
|
];
|
|
2118
2142
|
const getConnectionDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getConnectionDetails_ConfigPropertyMetadata);
|
|
2119
2143
|
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$d(getConnectionDetails_ConfigPropertyMetadata);
|
|
@@ -2244,6 +2268,7 @@ const updateConnection_ConfigPropertyMetadata = [
|
|
|
2244
2268
|
generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
|
|
2245
2269
|
generateParamConfigMetadata('connectionType', false, 2 /* Body */, 0 /* String */),
|
|
2246
2270
|
generateParamConfigMetadata('connectionParameters', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2271
|
+
generateParamConfigMetadata('sourceId', false, 2 /* Body */, 0 /* String */),
|
|
2247
2272
|
];
|
|
2248
2273
|
const updateConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, updateConnection_ConfigPropertyMetadata);
|
|
2249
2274
|
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$d(updateConnection_ConfigPropertyMetadata);
|
|
@@ -3180,7 +3205,7 @@ function createResourceRequest$4(config) {
|
|
|
3180
3205
|
method: 'post',
|
|
3181
3206
|
body: null,
|
|
3182
3207
|
urlParams: config.urlParams,
|
|
3183
|
-
queryParams:
|
|
3208
|
+
queryParams: config.queryParams,
|
|
3184
3209
|
headers,
|
|
3185
3210
|
priority: 'normal',
|
|
3186
3211
|
};
|
|
@@ -3189,6 +3214,7 @@ function createResourceRequest$4(config) {
|
|
|
3189
3214
|
const adapterName$4 = 'testConnection';
|
|
3190
3215
|
const testConnection_ConfigPropertyMetadata = [
|
|
3191
3216
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3217
|
+
generateParamConfigMetadata('sourceId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3192
3218
|
];
|
|
3193
3219
|
const testConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, testConnection_ConfigPropertyMetadata);
|
|
3194
3220
|
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$d(testConnection_ConfigPropertyMetadata);
|
|
@@ -3597,7 +3623,7 @@ function select$5(luvio, params) {
|
|
|
3597
3623
|
return select$6();
|
|
3598
3624
|
}
|
|
3599
3625
|
function keyBuilder$6(luvio, params) {
|
|
3600
|
-
return keyPrefix + '::ExternalConnectivityConnectorDetailsRepresentation:(' + 'connectorDeveloperName:' + params.urlParams.connectorDeveloperName + ')';
|
|
3626
|
+
return keyPrefix + '::ExternalConnectivityConnectorDetailsRepresentation:(' + 'sourceId:' + params.queryParams.sourceId + ',' + 'connectorDeveloperName:' + params.urlParams.connectorDeveloperName + ')';
|
|
3601
3627
|
}
|
|
3602
3628
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
3603
3629
|
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
|
|
@@ -3639,7 +3665,7 @@ function createResourceRequest$2(config) {
|
|
|
3639
3665
|
method: 'get',
|
|
3640
3666
|
body: null,
|
|
3641
3667
|
urlParams: config.urlParams,
|
|
3642
|
-
queryParams:
|
|
3668
|
+
queryParams: config.queryParams,
|
|
3643
3669
|
headers,
|
|
3644
3670
|
priority: 'normal',
|
|
3645
3671
|
};
|
|
@@ -3648,6 +3674,7 @@ function createResourceRequest$2(config) {
|
|
|
3648
3674
|
const adapterName$2 = 'getConnectorDetails';
|
|
3649
3675
|
const getConnectorDetails_ConfigPropertyMetadata = [
|
|
3650
3676
|
generateParamConfigMetadata('connectorDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3677
|
+
generateParamConfigMetadata('sourceId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3651
3678
|
];
|
|
3652
3679
|
const getConnectorDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getConnectorDetails_ConfigPropertyMetadata);
|
|
3653
3680
|
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$d(getConnectorDetails_ConfigPropertyMetadata);
|
|
@@ -16,6 +16,7 @@ export interface CreateConnectionConfig {
|
|
|
16
16
|
connectionParameters?: {
|
|
17
17
|
[key: string]: unknown;
|
|
18
18
|
};
|
|
19
|
+
sourceId?: string;
|
|
19
20
|
}
|
|
20
21
|
export declare const createResourceParams: (config: CreateConnectionConfig) => resources_postExternalConnectivityConnections_ResourceRequestConfig;
|
|
21
22
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateConnectionConfig>): adapter$45$utils_Untrusted<CreateConnectionConfig>;
|
|
@@ -7,6 +7,7 @@ export declare const getConnectionDetails_ConfigPropertyMetadata: $64$luvio_engi
|
|
|
7
7
|
export declare const getConnectionDetails_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
8
|
export interface GetConnectionDetailsConfig {
|
|
9
9
|
connectionDeveloperName: string;
|
|
10
|
+
sourceId?: string;
|
|
10
11
|
}
|
|
11
12
|
export declare const createResourceParams: (config: GetConnectionDetailsConfig) => resources_getExternalConnectivityConnectionsByConnectionDeveloperName_ResourceRequestConfig;
|
|
12
13
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetConnectionDetailsConfig): string;
|
|
@@ -7,6 +7,7 @@ export declare const getConnections_ConfigPropertyMetadata: $64$luvio_engine_Ada
|
|
|
7
7
|
export declare const getConnections_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
8
|
export interface GetConnectionsConfig {
|
|
9
9
|
connectorDeveloperName?: string;
|
|
10
|
+
sourceId?: string;
|
|
10
11
|
}
|
|
11
12
|
export declare const createResourceParams: (config: GetConnectionsConfig) => resources_getExternalConnectivityConnections_ResourceRequestConfig;
|
|
12
13
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetConnectionsConfig): string;
|
|
@@ -7,6 +7,7 @@ export declare const getConnectorDetails_ConfigPropertyMetadata: $64$luvio_engin
|
|
|
7
7
|
export declare const getConnectorDetails_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
8
|
export interface GetConnectorDetailsConfig {
|
|
9
9
|
connectorDeveloperName: string;
|
|
10
|
+
sourceId?: string;
|
|
10
11
|
}
|
|
11
12
|
export declare const createResourceParams: (config: GetConnectorDetailsConfig) => resources_getExternalConnectivityConnectorsByConnectorDeveloperName_ResourceRequestConfig;
|
|
12
13
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetConnectorDetailsConfig): string;
|
|
@@ -7,6 +7,7 @@ export declare const testConnection_ConfigPropertyMetadata: $64$luvio_engine_Ada
|
|
|
7
7
|
export declare const testConnection_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
8
|
export interface TestConnectionConfig {
|
|
9
9
|
connectionDeveloperName: string;
|
|
10
|
+
sourceId?: string;
|
|
10
11
|
}
|
|
11
12
|
export declare const createResourceParams: (config: TestConnectionConfig) => resources_postExternalConnectivityConnectionsTestByConnectionDeveloperName_ResourceRequestConfig;
|
|
12
13
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<TestConnectionConfig>): adapter$45$utils_Untrusted<TestConnectionConfig>;
|
|
@@ -17,6 +17,7 @@ export interface UpdateConnectionConfig {
|
|
|
17
17
|
connectionParameters?: {
|
|
18
18
|
[key: string]: unknown;
|
|
19
19
|
};
|
|
20
|
+
sourceId?: string;
|
|
20
21
|
}
|
|
21
22
|
export declare const createResourceParams: (config: UpdateConnectionConfig) => resources_putExternalConnectivityConnectionsByConnectionDeveloperName_ResourceRequestConfig;
|
|
22
23
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UpdateConnectionConfig>): adapter$45$utils_Untrusted<UpdateConnectionConfig>;
|
package/dist/es/es2018/types/src/generated/resources/getExternalConnectivityConnections.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { ExternalConnectivityConnectionListRepresentation as types_ExternalConne
|
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
queryParams: {
|
|
5
5
|
connectorDeveloperName?: string;
|
|
6
|
+
sourceId?: string;
|
|
6
7
|
};
|
|
7
8
|
}
|
|
8
9
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -4,6 +4,9 @@ export interface ResourceRequestConfig {
|
|
|
4
4
|
urlParams: {
|
|
5
5
|
connectionDeveloperName: string;
|
|
6
6
|
};
|
|
7
|
+
queryParams: {
|
|
8
|
+
sourceId?: string;
|
|
9
|
+
};
|
|
7
10
|
}
|
|
8
11
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
12
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
@@ -4,6 +4,9 @@ export interface ResourceRequestConfig {
|
|
|
4
4
|
urlParams: {
|
|
5
5
|
connectorDeveloperName: string;
|
|
6
6
|
};
|
|
7
|
+
queryParams: {
|
|
8
|
+
sourceId?: string;
|
|
9
|
+
};
|
|
7
10
|
}
|
|
8
11
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
12
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
@@ -4,6 +4,9 @@ export interface ResourceRequestConfig {
|
|
|
4
4
|
urlParams: {
|
|
5
5
|
connectionDeveloperName: string;
|
|
6
6
|
};
|
|
7
|
+
queryParams: {
|
|
8
|
+
sourceId?: string;
|
|
9
|
+
};
|
|
7
10
|
}
|
|
8
11
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
12
|
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ExternalConnectivityConnectionTestResultRepresentation_ExternalConnectivityConnectionTestResultRepresentation): void;
|
|
@@ -2,7 +2,7 @@ import { AuthenticationTypeRepresentation as AuthenticationTypeRepresentation_Au
|
|
|
2
2
|
import { ExternalConnectivityConnectorRepresentation as ExternalConnectivityConnectorRepresentation_ExternalConnectivityConnectorRepresentation } from './ExternalConnectivityConnectorRepresentation';
|
|
3
3
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
4
4
|
export declare const TTL = 500;
|
|
5
|
-
export declare const VERSION = "
|
|
5
|
+
export declare const VERSION = "138eaa4aa84aff30be7b787f5be726f7";
|
|
6
6
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
7
|
export declare const RepresentationType: string;
|
|
8
8
|
export declare function normalize(input: ExternalConnectivityConnectionDetailsRepresentation, existing: ExternalConnectivityConnectionDetailsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExternalConnectivityConnectionDetailsRepresentationNormalized;
|
|
@@ -20,7 +20,7 @@ export interface ExternalConnectivityConnectionDetailsRepresentationNormalized {
|
|
|
20
20
|
/** External Connectivity Connection Agent Action Flag */
|
|
21
21
|
agentActionEnabled?: boolean | null;
|
|
22
22
|
/** External Connectivity Connection Authentication Type */
|
|
23
|
-
authenticationType: AuthenticationTypeRepresentation_AuthenticationTypeRepresentation;
|
|
23
|
+
authenticationType: AuthenticationTypeRepresentation_AuthenticationTypeRepresentation | null;
|
|
24
24
|
/** External Connectivity Connection Created By */
|
|
25
25
|
createdBy: string;
|
|
26
26
|
/** External Connectivity Connection Created By Id */
|
|
@@ -53,7 +53,7 @@ export interface ExternalConnectivityConnectionDetailsRepresentationNormalized {
|
|
|
53
53
|
*/
|
|
54
54
|
export interface ExternalConnectivityConnectionDetailsRepresentation {
|
|
55
55
|
agentActionEnabled?: boolean | null;
|
|
56
|
-
authenticationType: AuthenticationTypeRepresentation_AuthenticationTypeRepresentation;
|
|
56
|
+
authenticationType: AuthenticationTypeRepresentation_AuthenticationTypeRepresentation | null;
|
|
57
57
|
createdBy: string;
|
|
58
58
|
createdById: string;
|
|
59
59
|
createdDate: string;
|
|
@@ -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 = "
|
|
3
|
+
export declare const VERSION = "7d1e5a52eda62159e78b135b1ff81575";
|
|
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;
|
|
@@ -31,6 +31,8 @@ export interface ExternalConnectivityConnectionInputRepresentationNormalized {
|
|
|
31
31
|
description: string;
|
|
32
32
|
/** Sets the name */
|
|
33
33
|
name: string;
|
|
34
|
+
/** Source identifier for observability (e.g. AUTOMATION_INTEGRATION, STARTER_SUITE) */
|
|
35
|
+
sourceId?: string;
|
|
34
36
|
}
|
|
35
37
|
/**
|
|
36
38
|
* Input representation for External Connectivity Connection
|
|
@@ -48,4 +50,5 @@ export interface ExternalConnectivityConnectionInputRepresentation {
|
|
|
48
50
|
connectorDeveloperName: string;
|
|
49
51
|
description: string;
|
|
50
52
|
name: string;
|
|
53
|
+
sourceId?: string;
|
|
51
54
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-platform-external-connectivity",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.437.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.
|
|
44
|
+
"@salesforce/lds-bindings": "^1.437.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
47
|
+
"@salesforce/lds-compiler-plugins": "^1.437.0"
|
|
48
48
|
},
|
|
49
49
|
"nx": {
|
|
50
50
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -246,6 +246,7 @@ const createConnection_ConfigPropertyMetadata = [
|
|
|
246
246
|
generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
|
|
247
247
|
generateParamConfigMetadata('connectionType', false, 2 /* Body */, 0 /* String */),
|
|
248
248
|
generateParamConfigMetadata('connectionParameters', false, 2 /* Body */, 4 /* Unsupported */),
|
|
249
|
+
generateParamConfigMetadata('sourceId', false, 2 /* Body */, 0 /* String */),
|
|
249
250
|
];
|
|
250
251
|
const createConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, createConnection_ConfigPropertyMetadata);
|
|
251
252
|
const createResourceParams$c = /*#__PURE__*/ createResourceParams$d(createConnection_ConfigPropertyMetadata);
|
|
@@ -846,7 +847,7 @@ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
846
847
|
}
|
|
847
848
|
|
|
848
849
|
const TTL$a = 500;
|
|
849
|
-
const VERSION$b = "
|
|
850
|
+
const VERSION$b = "138eaa4aa84aff30be7b787f5be726f7";
|
|
850
851
|
function validate$g(obj, path = 'ExternalConnectivityConnectionDetailsRepresentation') {
|
|
851
852
|
const v_error = (() => {
|
|
852
853
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -882,10 +883,31 @@ function validate$g(obj, path = 'ExternalConnectivityConnectionDetailsRepresenta
|
|
|
882
883
|
}
|
|
883
884
|
const obj_authenticationType = obj.authenticationType;
|
|
884
885
|
const path_authenticationType = path + '.authenticationType';
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
886
|
+
let obj_authenticationType_union0 = null;
|
|
887
|
+
const obj_authenticationType_union0_error = (() => {
|
|
888
|
+
const referencepath_authenticationTypeValidationError = validate$j(obj_authenticationType, path_authenticationType);
|
|
889
|
+
if (referencepath_authenticationTypeValidationError !== null) {
|
|
890
|
+
let message = 'Object doesn\'t match AuthenticationTypeRepresentation (at "' + path_authenticationType + '")\n';
|
|
891
|
+
message += referencepath_authenticationTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
892
|
+
return new TypeError(message);
|
|
893
|
+
}
|
|
894
|
+
})();
|
|
895
|
+
if (obj_authenticationType_union0_error != null) {
|
|
896
|
+
obj_authenticationType_union0 = obj_authenticationType_union0_error.message;
|
|
897
|
+
}
|
|
898
|
+
let obj_authenticationType_union1 = null;
|
|
899
|
+
const obj_authenticationType_union1_error = (() => {
|
|
900
|
+
if (obj_authenticationType !== null) {
|
|
901
|
+
return new TypeError('Expected "null" but received "' + typeof obj_authenticationType + '" (at "' + path_authenticationType + '")');
|
|
902
|
+
}
|
|
903
|
+
})();
|
|
904
|
+
if (obj_authenticationType_union1_error != null) {
|
|
905
|
+
obj_authenticationType_union1 = obj_authenticationType_union1_error.message;
|
|
906
|
+
}
|
|
907
|
+
if (obj_authenticationType_union0 && obj_authenticationType_union1) {
|
|
908
|
+
let message = 'Object doesn\'t match union (at "' + path_authenticationType + '")';
|
|
909
|
+
message += '\n' + obj_authenticationType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
910
|
+
message += '\n' + obj_authenticationType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
889
911
|
return new TypeError(message);
|
|
890
912
|
}
|
|
891
913
|
const obj_createdBy = obj.createdBy;
|
|
@@ -1040,7 +1062,7 @@ function select$l(luvio, params) {
|
|
|
1040
1062
|
return select$m();
|
|
1041
1063
|
}
|
|
1042
1064
|
function keyBuilder$j(luvio, params) {
|
|
1043
|
-
return keyPrefix + '::ExternalConnectivityConnectionDetailsRepresentation:(' + 'connectionDeveloperName:' + params.urlParams.connectionDeveloperName + ')';
|
|
1065
|
+
return keyPrefix + '::ExternalConnectivityConnectionDetailsRepresentation:(' + 'sourceId:' + params.queryParams.sourceId + ',' + 'connectionDeveloperName:' + params.urlParams.connectionDeveloperName + ')';
|
|
1044
1066
|
}
|
|
1045
1067
|
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
1046
1068
|
getTypeCacheKeys$b(storeKeyMap, luvio, response, () => keyBuilder$j(luvio, resourceParams));
|
|
@@ -1082,7 +1104,7 @@ function createResourceRequest$a(config) {
|
|
|
1082
1104
|
method: 'get',
|
|
1083
1105
|
body: null,
|
|
1084
1106
|
urlParams: config.urlParams,
|
|
1085
|
-
queryParams:
|
|
1107
|
+
queryParams: config.queryParams,
|
|
1086
1108
|
headers,
|
|
1087
1109
|
priority: 'normal',
|
|
1088
1110
|
};
|
|
@@ -1091,6 +1113,7 @@ function createResourceRequest$a(config) {
|
|
|
1091
1113
|
const adapterName$a = 'getConnectionDetails';
|
|
1092
1114
|
const getConnectionDetails_ConfigPropertyMetadata = [
|
|
1093
1115
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1116
|
+
generateParamConfigMetadata('sourceId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1094
1117
|
];
|
|
1095
1118
|
const getConnectionDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getConnectionDetails_ConfigPropertyMetadata);
|
|
1096
1119
|
const createResourceParams$a = /*#__PURE__*/ createResourceParams$d(getConnectionDetails_ConfigPropertyMetadata);
|
|
@@ -1702,6 +1725,7 @@ function createResourceRequest$9(config) {
|
|
|
1702
1725
|
const adapterName$9 = 'getConnections';
|
|
1703
1726
|
const getConnections_ConfigPropertyMetadata = [
|
|
1704
1727
|
generateParamConfigMetadata('connectorDeveloperName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1728
|
+
generateParamConfigMetadata('sourceId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1705
1729
|
];
|
|
1706
1730
|
const getConnections_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getConnections_ConfigPropertyMetadata);
|
|
1707
1731
|
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$d(getConnections_ConfigPropertyMetadata);
|
|
@@ -1943,7 +1967,7 @@ function select$g(luvio, params) {
|
|
|
1943
1967
|
return select$h();
|
|
1944
1968
|
}
|
|
1945
1969
|
function keyBuilder$e(luvio, params) {
|
|
1946
|
-
return keyPrefix + '::ExternalConnectivityConnectorDetailsRepresentation:(' + 'connectorDeveloperName:' + params.urlParams.connectorDeveloperName + ')';
|
|
1970
|
+
return keyPrefix + '::ExternalConnectivityConnectorDetailsRepresentation:(' + 'sourceId:' + params.queryParams.sourceId + ',' + 'connectorDeveloperName:' + params.urlParams.connectorDeveloperName + ')';
|
|
1947
1971
|
}
|
|
1948
1972
|
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
1949
1973
|
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$e(luvio, resourceParams));
|
|
@@ -1985,7 +2009,7 @@ function createResourceRequest$8(config) {
|
|
|
1985
2009
|
method: 'get',
|
|
1986
2010
|
body: null,
|
|
1987
2011
|
urlParams: config.urlParams,
|
|
1988
|
-
queryParams:
|
|
2012
|
+
queryParams: config.queryParams,
|
|
1989
2013
|
headers,
|
|
1990
2014
|
priority: 'normal',
|
|
1991
2015
|
};
|
|
@@ -1994,6 +2018,7 @@ function createResourceRequest$8(config) {
|
|
|
1994
2018
|
const adapterName$8 = 'getConnectorDetails';
|
|
1995
2019
|
const getConnectorDetails_ConfigPropertyMetadata = [
|
|
1996
2020
|
generateParamConfigMetadata('connectorDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2021
|
+
generateParamConfigMetadata('sourceId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1997
2022
|
];
|
|
1998
2023
|
const getConnectorDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getConnectorDetails_ConfigPropertyMetadata);
|
|
1999
2024
|
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$d(getConnectorDetails_ConfigPropertyMetadata);
|
|
@@ -4292,7 +4317,7 @@ function createResourceRequest$1(config) {
|
|
|
4292
4317
|
method: 'post',
|
|
4293
4318
|
body: null,
|
|
4294
4319
|
urlParams: config.urlParams,
|
|
4295
|
-
queryParams:
|
|
4320
|
+
queryParams: config.queryParams,
|
|
4296
4321
|
headers,
|
|
4297
4322
|
priority: 'normal',
|
|
4298
4323
|
};
|
|
@@ -4301,6 +4326,7 @@ function createResourceRequest$1(config) {
|
|
|
4301
4326
|
const adapterName$1 = 'testConnection';
|
|
4302
4327
|
const testConnection_ConfigPropertyMetadata = [
|
|
4303
4328
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4329
|
+
generateParamConfigMetadata('sourceId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4304
4330
|
];
|
|
4305
4331
|
const testConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, testConnection_ConfigPropertyMetadata);
|
|
4306
4332
|
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$d(testConnection_ConfigPropertyMetadata);
|
|
@@ -4398,6 +4424,7 @@ const updateConnection_ConfigPropertyMetadata = [
|
|
|
4398
4424
|
generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
|
|
4399
4425
|
generateParamConfigMetadata('connectionType', false, 2 /* Body */, 0 /* String */),
|
|
4400
4426
|
generateParamConfigMetadata('connectionParameters', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4427
|
+
generateParamConfigMetadata('sourceId', false, 2 /* Body */, 0 /* String */),
|
|
4401
4428
|
];
|
|
4402
4429
|
const updateConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateConnection_ConfigPropertyMetadata);
|
|
4403
4430
|
const createResourceParams = /*#__PURE__*/ createResourceParams$d(updateConnection_ConfigPropertyMetadata);
|
|
@@ -4608,4 +4635,4 @@ withDefaultLuvio((luvio) => {
|
|
|
4608
4635
|
});
|
|
4609
4636
|
|
|
4610
4637
|
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 };
|
|
4611
|
-
// version: 1.
|
|
4638
|
+
// version: 1.437.0-f680421dc4
|
package/src/raml/api.raml
CHANGED
|
@@ -162,7 +162,7 @@ types:
|
|
|
162
162
|
properties:
|
|
163
163
|
authenticationType:
|
|
164
164
|
description: External Connectivity Connection Authentication Type
|
|
165
|
-
type: AuthenticationTypeRepresentation
|
|
165
|
+
type: AuthenticationTypeRepresentation | nil
|
|
166
166
|
agentActionEnabled:
|
|
167
167
|
description: External Connectivity Connection Agent Action Flag
|
|
168
168
|
type: boolean | nil # TODO Hand-rolled W-17603644
|
|
@@ -248,6 +248,11 @@ types:
|
|
|
248
248
|
//:
|
|
249
249
|
type: any
|
|
250
250
|
required: false
|
|
251
|
+
sourceId:
|
|
252
|
+
description: Source identifier for observability (e.g. AUTOMATION_INTEGRATION,
|
|
253
|
+
STARTER_SUITE)
|
|
254
|
+
type: string
|
|
255
|
+
required: false
|
|
251
256
|
ExternalConnectivityConnectionListRepresentation:
|
|
252
257
|
description: Output representation for External Connectivity Connection List
|
|
253
258
|
type: object
|
|
@@ -606,6 +611,11 @@ types:
|
|
|
606
611
|
connectorDeveloperName:
|
|
607
612
|
type: string
|
|
608
613
|
required: false
|
|
614
|
+
sourceId:
|
|
615
|
+
description: Source identifier for observability (e.g. AUTOMATION_INTEGRATION,
|
|
616
|
+
STARTER_SUITE)
|
|
617
|
+
type: string
|
|
618
|
+
required: false
|
|
609
619
|
post:
|
|
610
620
|
displayName: postExternalConnectivityConnectionList
|
|
611
621
|
description: POST method to create External Connectivity Connection
|
|
@@ -654,6 +664,12 @@ types:
|
|
|
654
664
|
get:
|
|
655
665
|
displayName: getExternalConnectivityConnectionDetails
|
|
656
666
|
description: GET method to get External Connectivity Connection Details
|
|
667
|
+
queryParameters:
|
|
668
|
+
sourceId:
|
|
669
|
+
description: Source identifier for observability (e.g. AUTOMATION_INTEGRATION,
|
|
670
|
+
STARTER_SUITE)
|
|
671
|
+
type: string
|
|
672
|
+
required: false
|
|
657
673
|
responses:
|
|
658
674
|
'200':
|
|
659
675
|
description: Success
|
|
@@ -719,6 +735,12 @@ types:
|
|
|
719
735
|
post:
|
|
720
736
|
displayName: postExternalConnectivityConnectionTest
|
|
721
737
|
description: POST method to test an External Connectivity Connection
|
|
738
|
+
queryParameters:
|
|
739
|
+
sourceId:
|
|
740
|
+
description: Source identifier for observability (e.g. AUTOMATION_INTEGRATION,
|
|
741
|
+
STARTER_SUITE)
|
|
742
|
+
type: string
|
|
743
|
+
required: false
|
|
722
744
|
responses:
|
|
723
745
|
'200':
|
|
724
746
|
description: Success
|
|
@@ -744,6 +766,12 @@ types:
|
|
|
744
766
|
get:
|
|
745
767
|
displayName: getExternalConnectivityConnectorDetails
|
|
746
768
|
description: GET method to get External Connectivity Connector Details
|
|
769
|
+
queryParameters:
|
|
770
|
+
sourceId:
|
|
771
|
+
description: Source identifier for observability (e.g. AUTOMATION_INTEGRATION,
|
|
772
|
+
STARTER_SUITE)
|
|
773
|
+
type: string
|
|
774
|
+
required: false
|
|
747
775
|
responses:
|
|
748
776
|
'200':
|
|
749
777
|
description: Success
|