@wildix/wilma-tools-client 1.0.1
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-cjs/WilmaTools.js +55 -0
- package/dist-cjs/WilmaToolsClient.js +51 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
- package/dist-cjs/commands/CreateConnectorCommand.js +20 -0
- package/dist-cjs/commands/CreateToolCommand.js +20 -0
- package/dist-cjs/commands/DeleteConnectorCommand.js +20 -0
- package/dist-cjs/commands/DeleteToolCommand.js +20 -0
- package/dist-cjs/commands/DescribeCapabilitiesCommand.js +20 -0
- package/dist-cjs/commands/DescribeConnectorsCommand.js +20 -0
- package/dist-cjs/commands/DescribeToolsCommand.js +20 -0
- package/dist-cjs/commands/DiscoverToolsCommand.js +20 -0
- package/dist-cjs/commands/ExecuteConnectorCommand.js +20 -0
- package/dist-cjs/commands/ExecuteToolCommand.js +20 -0
- package/dist-cjs/commands/GetConnectorCommand.js +20 -0
- package/dist-cjs/commands/GetConnectorDefinitionCommand.js +20 -0
- package/dist-cjs/commands/GetToolCommand.js +20 -0
- package/dist-cjs/commands/ListConnectorDefinitionsCommand.js +20 -0
- package/dist-cjs/commands/ListConnectorsCommand.js +20 -0
- package/dist-cjs/commands/ListToolsCommand.js +20 -0
- package/dist-cjs/commands/ResolveConnectorConfigurationCommand.js +20 -0
- package/dist-cjs/commands/UpdateConnectorCommand.js +20 -0
- package/dist-cjs/commands/UpdateToolCommand.js +20 -0
- package/dist-cjs/commands/index.js +22 -0
- package/dist-cjs/endpoint/EndpointParameters.js +16 -0
- package/dist-cjs/endpoint/bdd.js +28 -0
- package/dist-cjs/endpoint/endpointResolver.js +16 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +14 -0
- package/dist-cjs/models/WilmaToolsServiceException.js +12 -0
- package/dist-cjs/models/enums.js +12 -0
- package/dist-cjs/models/errors.js +116 -0
- package/dist-cjs/models/models_0.js +2 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListConnectorDefinitionsPaginator.js +7 -0
- package/dist-cjs/pagination/ListConnectorsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/runtimeConfig.browser.js +32 -0
- package/dist-cjs/runtimeConfig.js +41 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +51 -0
- package/dist-cjs/runtimeExtensions.js +12 -0
- package/dist-cjs/schemas/schemas_0.js +690 -0
- package/dist-es/WilmaTools.js +51 -0
- package/dist-es/WilmaToolsClient.js +47 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commands/CreateConnectorCommand.js +16 -0
- package/dist-es/commands/CreateToolCommand.js +16 -0
- package/dist-es/commands/DeleteConnectorCommand.js +16 -0
- package/dist-es/commands/DeleteToolCommand.js +16 -0
- package/dist-es/commands/DescribeCapabilitiesCommand.js +16 -0
- package/dist-es/commands/DescribeConnectorsCommand.js +16 -0
- package/dist-es/commands/DescribeToolsCommand.js +16 -0
- package/dist-es/commands/DiscoverToolsCommand.js +16 -0
- package/dist-es/commands/ExecuteConnectorCommand.js +16 -0
- package/dist-es/commands/ExecuteToolCommand.js +16 -0
- package/dist-es/commands/GetConnectorCommand.js +16 -0
- package/dist-es/commands/GetConnectorDefinitionCommand.js +16 -0
- package/dist-es/commands/GetToolCommand.js +16 -0
- package/dist-es/commands/ListConnectorDefinitionsCommand.js +16 -0
- package/dist-es/commands/ListConnectorsCommand.js +16 -0
- package/dist-es/commands/ListToolsCommand.js +16 -0
- package/dist-es/commands/ResolveConnectorConfigurationCommand.js +16 -0
- package/dist-es/commands/UpdateConnectorCommand.js +16 -0
- package/dist-es/commands/UpdateToolCommand.js +16 -0
- package/dist-es/commands/index.js +19 -0
- package/dist-es/endpoint/EndpointParameters.js +12 -0
- package/dist-es/endpoint/bdd.js +25 -0
- package/dist-es/endpoint/endpointResolver.js +12 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +9 -0
- package/dist-es/models/WilmaToolsServiceException.js +8 -0
- package/dist-es/models/enums.js +9 -0
- package/dist-es/models/errors.js +105 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListConnectorDefinitionsPaginator.js +4 -0
- package/dist-es/pagination/ListConnectorsPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/runtimeConfig.browser.js +27 -0
- package/dist-es/runtimeConfig.js +36 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +47 -0
- package/dist-es/runtimeExtensions.js +8 -0
- package/dist-es/schemas/schemas_0.js +686 -0
- package/dist-types/WilmaTools.d.ts +168 -0
- package/dist-types/WilmaToolsClient.d.ts +189 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
- package/dist-types/commands/CreateConnectorCommand.d.ts +138 -0
- package/dist-types/commands/CreateToolCommand.d.ts +178 -0
- package/dist-types/commands/DeleteConnectorCommand.d.ts +87 -0
- package/dist-types/commands/DeleteToolCommand.d.ts +87 -0
- package/dist-types/commands/DescribeCapabilitiesCommand.d.ts +111 -0
- package/dist-types/commands/DescribeConnectorsCommand.d.ts +100 -0
- package/dist-types/commands/DescribeToolsCommand.d.ts +98 -0
- package/dist-types/commands/DiscoverToolsCommand.d.ts +103 -0
- package/dist-types/commands/ExecuteConnectorCommand.d.ts +96 -0
- package/dist-types/commands/ExecuteToolCommand.d.ts +94 -0
- package/dist-types/commands/GetConnectorCommand.d.ts +116 -0
- package/dist-types/commands/GetConnectorDefinitionCommand.d.ts +150 -0
- package/dist-types/commands/GetToolCommand.d.ts +136 -0
- package/dist-types/commands/ListConnectorDefinitionsCommand.d.ts +154 -0
- package/dist-types/commands/ListConnectorsCommand.d.ts +120 -0
- package/dist-types/commands/ListToolsCommand.d.ts +137 -0
- package/dist-types/commands/ResolveConnectorConfigurationCommand.d.ts +106 -0
- package/dist-types/commands/UpdateConnectorCommand.d.ts +143 -0
- package/dist-types/commands/UpdateToolCommand.d.ts +183 -0
- package/dist-types/commands/index.d.ts +19 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +8 -0
- package/dist-types/index.d.ts +25 -0
- package/dist-types/models/WilmaToolsServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +46 -0
- package/dist-types/models/errors.d.ts +108 -0
- package/dist-types/models/models_0.d.ts +1602 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListConnectorDefinitionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListConnectorsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +55 -0
- package/dist-types/runtimeConfig.d.ts +55 -0
- package/dist-types/runtimeConfig.native.d.ts +54 -0
- package/dist-types/runtimeConfig.shared.d.ts +32 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +104 -0
- package/package.json +57 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@smithy/core/client";
|
|
2
|
+
import { CreateConnectorCommand, } from "./commands/CreateConnectorCommand";
|
|
3
|
+
import { CreateToolCommand, } from "./commands/CreateToolCommand";
|
|
4
|
+
import { DeleteConnectorCommand, } from "./commands/DeleteConnectorCommand";
|
|
5
|
+
import { DeleteToolCommand, } from "./commands/DeleteToolCommand";
|
|
6
|
+
import { DescribeCapabilitiesCommand, } from "./commands/DescribeCapabilitiesCommand";
|
|
7
|
+
import { DescribeConnectorsCommand, } from "./commands/DescribeConnectorsCommand";
|
|
8
|
+
import { DescribeToolsCommand, } from "./commands/DescribeToolsCommand";
|
|
9
|
+
import { DiscoverToolsCommand, } from "./commands/DiscoverToolsCommand";
|
|
10
|
+
import { ExecuteConnectorCommand, } from "./commands/ExecuteConnectorCommand";
|
|
11
|
+
import { ExecuteToolCommand, } from "./commands/ExecuteToolCommand";
|
|
12
|
+
import { GetConnectorCommand, } from "./commands/GetConnectorCommand";
|
|
13
|
+
import { GetConnectorDefinitionCommand, } from "./commands/GetConnectorDefinitionCommand";
|
|
14
|
+
import { GetToolCommand } from "./commands/GetToolCommand";
|
|
15
|
+
import { ListConnectorDefinitionsCommand, } from "./commands/ListConnectorDefinitionsCommand";
|
|
16
|
+
import { ListConnectorsCommand, } from "./commands/ListConnectorsCommand";
|
|
17
|
+
import { ListToolsCommand } from "./commands/ListToolsCommand";
|
|
18
|
+
import { ResolveConnectorConfigurationCommand, } from "./commands/ResolveConnectorConfigurationCommand";
|
|
19
|
+
import { UpdateConnectorCommand, } from "./commands/UpdateConnectorCommand";
|
|
20
|
+
import { UpdateToolCommand, } from "./commands/UpdateToolCommand";
|
|
21
|
+
import { paginateListConnectorDefinitions } from "./pagination/ListConnectorDefinitionsPaginator";
|
|
22
|
+
import { paginateListConnectors } from "./pagination/ListConnectorsPaginator";
|
|
23
|
+
import { WilmaToolsClient } from "./WilmaToolsClient";
|
|
24
|
+
const commands = {
|
|
25
|
+
CreateConnectorCommand,
|
|
26
|
+
CreateToolCommand,
|
|
27
|
+
DeleteConnectorCommand,
|
|
28
|
+
DeleteToolCommand,
|
|
29
|
+
DescribeCapabilitiesCommand,
|
|
30
|
+
DescribeConnectorsCommand,
|
|
31
|
+
DescribeToolsCommand,
|
|
32
|
+
DiscoverToolsCommand,
|
|
33
|
+
ExecuteConnectorCommand,
|
|
34
|
+
ExecuteToolCommand,
|
|
35
|
+
GetConnectorCommand,
|
|
36
|
+
GetConnectorDefinitionCommand,
|
|
37
|
+
GetToolCommand,
|
|
38
|
+
ListConnectorDefinitionsCommand,
|
|
39
|
+
ListConnectorsCommand,
|
|
40
|
+
ListToolsCommand,
|
|
41
|
+
ResolveConnectorConfigurationCommand,
|
|
42
|
+
UpdateConnectorCommand,
|
|
43
|
+
UpdateToolCommand,
|
|
44
|
+
};
|
|
45
|
+
const paginators = {
|
|
46
|
+
paginateListConnectorDefinitions,
|
|
47
|
+
paginateListConnectors,
|
|
48
|
+
};
|
|
49
|
+
export class WilmaTools extends WilmaToolsClient {
|
|
50
|
+
}
|
|
51
|
+
createAggregatedClient(commands, WilmaTools, { paginators });
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getUserAgentPlugin, resolveHostHeaderConfig, resolveUserAgentConfig, } from "@aws-sdk/core/client";
|
|
2
|
+
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
3
|
+
import { Client as __Client, } from "@smithy/core/client";
|
|
4
|
+
import { resolveEndpointConfig } from "@smithy/core/endpoints";
|
|
5
|
+
import { getContentLengthPlugin } from "@smithy/core/protocols";
|
|
6
|
+
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/core/retry";
|
|
7
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
8
|
+
import { defaultWilmaToolsHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
9
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
10
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
+
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
12
|
+
export { __Client };
|
|
13
|
+
export class WilmaToolsClient extends __Client {
|
|
14
|
+
config;
|
|
15
|
+
constructor(...[configuration]) {
|
|
16
|
+
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
17
|
+
super(_config_0);
|
|
18
|
+
this.initConfig = _config_0;
|
|
19
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
20
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
21
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
22
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
23
|
+
const _config_5 = resolveEndpointConfig(_config_4);
|
|
24
|
+
const _config_6 = resolveHttpAuthSchemeConfig(_config_5);
|
|
25
|
+
const _config_7 = resolveRuntimeExtensions(_config_6, configuration?.extensions || []);
|
|
26
|
+
this.config = _config_7;
|
|
27
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
29
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
30
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
31
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
32
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
33
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
34
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
35
|
+
httpAuthSchemeParametersProvider: defaultWilmaToolsHttpAuthSchemeParametersProvider,
|
|
36
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
37
|
+
"smithy.api#httpBearerAuth": config.token,
|
|
38
|
+
"wildix.auth#pbx": config.token,
|
|
39
|
+
"wildix.auth#s2s": config.token,
|
|
40
|
+
}),
|
|
41
|
+
}));
|
|
42
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
43
|
+
}
|
|
44
|
+
destroy() {
|
|
45
|
+
super.destroy();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
2
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
3
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
4
|
+
let _token = runtimeConfig.token;
|
|
5
|
+
return {
|
|
6
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
7
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
8
|
+
if (index === -1) {
|
|
9
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
httpAuthSchemes() {
|
|
16
|
+
return _httpAuthSchemes;
|
|
17
|
+
},
|
|
18
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
19
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
20
|
+
},
|
|
21
|
+
httpAuthSchemeProvider() {
|
|
22
|
+
return _httpAuthSchemeProvider;
|
|
23
|
+
},
|
|
24
|
+
setToken(token) {
|
|
25
|
+
_token = token;
|
|
26
|
+
},
|
|
27
|
+
token() {
|
|
28
|
+
return _token;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export const resolveHttpAuthRuntimeConfig = (config) => {
|
|
33
|
+
return {
|
|
34
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
35
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
36
|
+
token: config.token(),
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider } from "@smithy/core";
|
|
2
|
+
import { getSmithyContext, normalizeProvider } from "@smithy/core/client";
|
|
3
|
+
export const defaultWilmaToolsHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
+
return {
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters) {
|
|
9
|
+
return {
|
|
10
|
+
schemeId: "smithy.api#httpBearerAuth",
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
function createWildixAuthPbxHttpAuthOption(authParameters) {
|
|
14
|
+
return {
|
|
15
|
+
schemeId: "wildix.auth#pbx",
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function createWildixAuthS2sHttpAuthOption(authParameters) {
|
|
19
|
+
return {
|
|
20
|
+
schemeId: "wildix.auth#s2s",
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export const defaultWilmaToolsHttpAuthSchemeProvider = (authParameters) => {
|
|
24
|
+
const options = [];
|
|
25
|
+
switch (authParameters.operation) {
|
|
26
|
+
default: {
|
|
27
|
+
options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
|
|
28
|
+
options.push(createWildixAuthS2sHttpAuthOption(authParameters));
|
|
29
|
+
options.push(createWildixAuthPbxHttpAuthOption(authParameters));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return options;
|
|
33
|
+
};
|
|
34
|
+
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
35
|
+
const token = memoizeIdentityProvider(config.token, isIdentityExpired, doesIdentityRequireRefresh);
|
|
36
|
+
return Object.assign(config, {
|
|
37
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
38
|
+
token,
|
|
39
|
+
});
|
|
40
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { CreateConnector$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class CreateConnectorCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaTools", "CreateConnector", {})
|
|
13
|
+
.n("WilmaToolsClient", "CreateConnectorCommand")
|
|
14
|
+
.sc(CreateConnector$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { CreateTool$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class CreateToolCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaTools", "CreateTool", {})
|
|
13
|
+
.n("WilmaToolsClient", "CreateToolCommand")
|
|
14
|
+
.sc(CreateTool$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { DeleteConnector$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class DeleteConnectorCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaTools", "DeleteConnector", {})
|
|
13
|
+
.n("WilmaToolsClient", "DeleteConnectorCommand")
|
|
14
|
+
.sc(DeleteConnector$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { DeleteTool$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class DeleteToolCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaTools", "DeleteTool", {})
|
|
13
|
+
.n("WilmaToolsClient", "DeleteToolCommand")
|
|
14
|
+
.sc(DeleteTool$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { DescribeCapabilities$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class DescribeCapabilitiesCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaTools", "DescribeCapabilities", {})
|
|
13
|
+
.n("WilmaToolsClient", "DescribeCapabilitiesCommand")
|
|
14
|
+
.sc(DescribeCapabilities$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { DescribeConnectors$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class DescribeConnectorsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaTools", "DescribeConnectors", {})
|
|
13
|
+
.n("WilmaToolsClient", "DescribeConnectorsCommand")
|
|
14
|
+
.sc(DescribeConnectors$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { DescribeTools$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class DescribeToolsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaTools", "DescribeTools", {})
|
|
13
|
+
.n("WilmaToolsClient", "DescribeToolsCommand")
|
|
14
|
+
.sc(DescribeTools$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { DiscoverTools$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class DiscoverToolsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaTools", "DiscoverTools", {})
|
|
13
|
+
.n("WilmaToolsClient", "DiscoverToolsCommand")
|
|
14
|
+
.sc(DiscoverTools$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { ExecuteConnector$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ExecuteConnectorCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaTools", "ExecuteConnector", {})
|
|
13
|
+
.n("WilmaToolsClient", "ExecuteConnectorCommand")
|
|
14
|
+
.sc(ExecuteConnector$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { ExecuteTool$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ExecuteToolCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaTools", "ExecuteTool", {})
|
|
13
|
+
.n("WilmaToolsClient", "ExecuteToolCommand")
|
|
14
|
+
.sc(ExecuteTool$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetConnector$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class GetConnectorCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaTools", "GetConnector", {})
|
|
13
|
+
.n("WilmaToolsClient", "GetConnectorCommand")
|
|
14
|
+
.sc(GetConnector$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetConnectorDefinition$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class GetConnectorDefinitionCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaTools", "GetConnectorDefinition", {})
|
|
13
|
+
.n("WilmaToolsClient", "GetConnectorDefinitionCommand")
|
|
14
|
+
.sc(GetConnectorDefinition$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetTool$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class GetToolCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaTools", "GetTool", {})
|
|
13
|
+
.n("WilmaToolsClient", "GetToolCommand")
|
|
14
|
+
.sc(GetTool$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { ListConnectorDefinitions$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ListConnectorDefinitionsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaTools", "ListConnectorDefinitions", {})
|
|
13
|
+
.n("WilmaToolsClient", "ListConnectorDefinitionsCommand")
|
|
14
|
+
.sc(ListConnectorDefinitions$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { ListConnectors$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ListConnectorsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaTools", "ListConnectors", {})
|
|
13
|
+
.n("WilmaToolsClient", "ListConnectorsCommand")
|
|
14
|
+
.sc(ListConnectors$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { ListTools$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ListToolsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaTools", "ListTools", {})
|
|
13
|
+
.n("WilmaToolsClient", "ListToolsCommand")
|
|
14
|
+
.sc(ListTools$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { ResolveConnectorConfiguration$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ResolveConnectorConfigurationCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaTools", "ResolveConnectorConfiguration", {})
|
|
13
|
+
.n("WilmaToolsClient", "ResolveConnectorConfigurationCommand")
|
|
14
|
+
.sc(ResolveConnectorConfiguration$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { UpdateConnector$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class UpdateConnectorCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaTools", "UpdateConnector", {})
|
|
13
|
+
.n("WilmaToolsClient", "UpdateConnectorCommand")
|
|
14
|
+
.sc(UpdateConnector$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { UpdateTool$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class UpdateToolCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaTools", "UpdateTool", {})
|
|
13
|
+
.n("WilmaToolsClient", "UpdateToolCommand")
|
|
14
|
+
.sc(UpdateTool$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export * from "./CreateConnectorCommand";
|
|
2
|
+
export * from "./CreateToolCommand";
|
|
3
|
+
export * from "./DeleteConnectorCommand";
|
|
4
|
+
export * from "./DeleteToolCommand";
|
|
5
|
+
export * from "./DescribeCapabilitiesCommand";
|
|
6
|
+
export * from "./DescribeConnectorsCommand";
|
|
7
|
+
export * from "./DescribeToolsCommand";
|
|
8
|
+
export * from "./DiscoverToolsCommand";
|
|
9
|
+
export * from "./ExecuteConnectorCommand";
|
|
10
|
+
export * from "./ExecuteToolCommand";
|
|
11
|
+
export * from "./GetConnectorCommand";
|
|
12
|
+
export * from "./GetConnectorDefinitionCommand";
|
|
13
|
+
export * from "./GetToolCommand";
|
|
14
|
+
export * from "./ListConnectorDefinitionsCommand";
|
|
15
|
+
export * from "./ListConnectorsCommand";
|
|
16
|
+
export * from "./ListToolsCommand";
|
|
17
|
+
export * from "./ResolveConnectorConfigurationCommand";
|
|
18
|
+
export * from "./UpdateConnectorCommand";
|
|
19
|
+
export * from "./UpdateToolCommand";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const clientContextParamDefaults = {};
|
|
2
|
+
export const resolveClientEndpointParameters = (options) => {
|
|
3
|
+
return Object.assign(options, {
|
|
4
|
+
env: options.env ?? "prod",
|
|
5
|
+
defaultSigningName: "",
|
|
6
|
+
clientContextParams: Object.assign(clientContextParamDefaults, options.clientContextParams),
|
|
7
|
+
});
|
|
8
|
+
};
|
|
9
|
+
export const commonParams = {
|
|
10
|
+
env: { type: "clientContextParams", name: "env" },
|
|
11
|
+
endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
|
|
2
|
+
const a = "stringEquals", b = { "ref": "endpoint" }, c = { "ref": "env" };
|
|
3
|
+
const _data = {
|
|
4
|
+
conditions: [
|
|
5
|
+
["isSet", [b]],
|
|
6
|
+
[a, [c, "stable"]],
|
|
7
|
+
[a, [c, "stage"]]
|
|
8
|
+
],
|
|
9
|
+
results: [
|
|
10
|
+
[-1],
|
|
11
|
+
[b, {}],
|
|
12
|
+
["https://api-stable.wilma.wildix.com", {}],
|
|
13
|
+
["https://api-stage.wilma.wildix.com", {}],
|
|
14
|
+
["https://api.wilma.wildix.com", {}]
|
|
15
|
+
]
|
|
16
|
+
};
|
|
17
|
+
const root = 2;
|
|
18
|
+
const r = 100_000_000;
|
|
19
|
+
const nodes = new Int32Array([
|
|
20
|
+
-1, 1, -1,
|
|
21
|
+
0, r + 1, 3,
|
|
22
|
+
1, r + 2, 4,
|
|
23
|
+
2, r + 3, r + 4,
|
|
24
|
+
]);
|
|
25
|
+
export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { decideEndpoint, EndpointCache } from "@smithy/core/endpoints";
|
|
2
|
+
import { bdd } from "./bdd";
|
|
3
|
+
const cache = new EndpointCache({
|
|
4
|
+
size: 50,
|
|
5
|
+
params: ["endpoint", "env"],
|
|
6
|
+
});
|
|
7
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
8
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
9
|
+
endpointParams: endpointParams,
|
|
10
|
+
logger: context.logger,
|
|
11
|
+
}));
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-es/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./WilmaToolsClient";
|
|
2
|
+
export * from "./WilmaTools";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./schemas/schemas_0";
|
|
5
|
+
export * from "./pagination";
|
|
6
|
+
export * from "./models/enums";
|
|
7
|
+
export * from "./models/errors";
|
|
8
|
+
export * from "./models/models_0";
|
|
9
|
+
export { WilmaToolsServiceException } from "./models/WilmaToolsServiceException";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@smithy/core/client";
|
|
2
|
+
export { __ServiceException };
|
|
3
|
+
export class WilmaToolsServiceException extends __ServiceException {
|
|
4
|
+
constructor(options) {
|
|
5
|
+
super(options);
|
|
6
|
+
Object.setPrototypeOf(this, WilmaToolsServiceException.prototype);
|
|
7
|
+
}
|
|
8
|
+
}
|