@wildix/wms-api-client 1.1.2 → 1.1.4
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/WmsApi.js +4 -0
- package/dist-cjs/WmsApiClient.js +6 -3
- package/dist-cjs/commands/CreatePbxColleagueCommand.js +21 -0
- package/dist-cjs/commands/CreatePbxOAuth2ClientCommand.js +12 -32
- package/dist-cjs/commands/DeletePbxColleagueCommand.js +21 -0
- package/dist-cjs/commands/DeletePbxOAuth2ClientCommand.js +12 -32
- package/dist-cjs/commands/GetPbxAclGroupsPermissionsCommand.js +12 -32
- package/dist-cjs/commands/GetPbxCallGroupsCommand.js +12 -32
- package/dist-cjs/commands/GetPbxColleaguesCommand.js +12 -32
- package/dist-cjs/commands/GetPbxOAuth2ClientsCommand.js +12 -32
- package/dist-cjs/commands/UpdatePbxOAuth2ClientCommand.js +12 -32
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +29 -14
- package/dist-cjs/protocols/Aws_restJson1.js +220 -236
- package/dist-cjs/runtimeConfig.browser.js +5 -1
- package/dist-cjs/runtimeConfig.js +5 -1
- package/dist-cjs/runtimeConfig.shared.js +13 -11
- package/dist-es/WmsApi.js +4 -0
- package/dist-es/WmsApiClient.js +6 -3
- package/dist-es/commands/CreatePbxColleagueCommand.js +17 -0
- package/dist-es/commands/CreatePbxOAuth2ClientCommand.js +12 -32
- package/dist-es/commands/DeletePbxColleagueCommand.js +17 -0
- package/dist-es/commands/DeletePbxOAuth2ClientCommand.js +12 -32
- package/dist-es/commands/GetPbxAclGroupsPermissionsCommand.js +12 -32
- package/dist-es/commands/GetPbxCallGroupsCommand.js +12 -32
- package/dist-es/commands/GetPbxColleaguesCommand.js +12 -32
- package/dist-es/commands/GetPbxOAuth2ClientsCommand.js +12 -32
- package/dist-es/commands/UpdatePbxOAuth2ClientCommand.js +12 -32
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +28 -13
- package/dist-es/protocols/Aws_restJson1.js +214 -234
- package/dist-es/runtimeConfig.browser.js +4 -1
- package/dist-es/runtimeConfig.js +4 -1
- package/dist-es/runtimeConfig.shared.js +13 -11
- package/dist-types/WmsApi.d.ts +18 -0
- package/dist-types/WmsApiClient.d.ts +17 -9
- package/dist-types/commands/CreatePbxColleagueCommand.d.ts +96 -0
- package/dist-types/commands/CreatePbxOAuth2ClientCommand.d.ts +8 -20
- package/dist-types/commands/DeletePbxColleagueCommand.d.ts +65 -0
- package/dist-types/commands/DeletePbxOAuth2ClientCommand.d.ts +8 -20
- package/dist-types/commands/GetPbxAclGroupsPermissionsCommand.d.ts +7 -19
- package/dist-types/commands/GetPbxCallGroupsCommand.d.ts +8 -20
- package/dist-types/commands/GetPbxColleaguesCommand.d.ts +7 -19
- package/dist-types/commands/GetPbxOAuth2ClientsCommand.d.ts +8 -20
- package/dist-types/commands/UpdatePbxOAuth2ClientCommand.d.ts +8 -20
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +154 -70
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/runtimeConfig.browser.d.ts +3 -4
- package/dist-types/runtimeConfig.d.ts +3 -4
- package/dist-types/runtimeConfig.native.d.ts +3 -4
- package/package.json +31 -30
|
@@ -5,15 +5,17 @@ const smithy_client_1 = require("@smithy/smithy-client");
|
|
|
5
5
|
const url_parser_1 = require("@smithy/url-parser");
|
|
6
6
|
const util_base64_1 = require("@smithy/util-base64");
|
|
7
7
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
8
|
-
const getRuntimeConfig = (config) =>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
const getRuntimeConfig = (config) => {
|
|
9
|
+
return {
|
|
10
|
+
apiVersion: "",
|
|
11
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
12
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
13
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
14
|
+
extensions: config?.extensions ?? [],
|
|
15
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
16
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
17
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
18
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
|
19
|
+
};
|
|
20
|
+
};
|
|
19
21
|
exports.getRuntimeConfig = getRuntimeConfig;
|
package/dist-es/WmsApi.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { WmsApiClient, } from "./WmsApiClient";
|
|
2
|
+
import { CreatePbxColleagueCommand, } from "./commands/CreatePbxColleagueCommand";
|
|
2
3
|
import { CreatePbxOAuth2ClientCommand, } from "./commands/CreatePbxOAuth2ClientCommand";
|
|
4
|
+
import { DeletePbxColleagueCommand, } from "./commands/DeletePbxColleagueCommand";
|
|
3
5
|
import { DeletePbxOAuth2ClientCommand, } from "./commands/DeletePbxOAuth2ClientCommand";
|
|
4
6
|
import { GetPbxAclGroupsPermissionsCommand, } from "./commands/GetPbxAclGroupsPermissionsCommand";
|
|
5
7
|
import { GetPbxCallGroupsCommand, } from "./commands/GetPbxCallGroupsCommand";
|
|
@@ -8,7 +10,9 @@ import { GetPbxOAuth2ClientsCommand, } from "./commands/GetPbxOAuth2ClientsComma
|
|
|
8
10
|
import { UpdatePbxOAuth2ClientCommand, } from "./commands/UpdatePbxOAuth2ClientCommand";
|
|
9
11
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
10
12
|
const commands = {
|
|
13
|
+
CreatePbxColleagueCommand,
|
|
11
14
|
CreatePbxOAuth2ClientCommand,
|
|
15
|
+
DeletePbxColleagueCommand,
|
|
12
16
|
DeletePbxOAuth2ClientCommand,
|
|
13
17
|
GetPbxAclGroupsPermissionsCommand,
|
|
14
18
|
GetPbxCallGroupsCommand,
|
package/dist-es/WmsApiClient.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
2
2
|
import { resolveRuntimeExtensions, } from "./runtimeExtensions";
|
|
3
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
3
4
|
import { Client as __Client, } from "@smithy/smithy-client";
|
|
4
5
|
import { authorizationMiddleware } from '@wildix/smithy-utils';
|
|
5
6
|
export { __Client };
|
|
6
7
|
export class WmsApiClient extends __Client {
|
|
7
8
|
constructor(...[configuration]) {
|
|
8
9
|
let _config_0 = __getRuntimeConfig(configuration || {});
|
|
9
|
-
let _config_1 =
|
|
10
|
+
let _config_1 = resolveUserAgentConfig(_config_0);
|
|
11
|
+
let _config_2 = resolveRuntimeExtensions(_config_1, configuration?.extensions || []);
|
|
12
|
+
const hostname = configuration.domain.endsWith("wildixin.com") ? configuration.domain : `${configuration.domain}.wildixin.com`;
|
|
10
13
|
const endpoint = () => {
|
|
11
|
-
const hostname = configuration.domain.endsWith("wildixin.com") ? configuration.domain : `${configuration.domain}.wildixin.com`;
|
|
12
14
|
return {
|
|
13
15
|
hostname,
|
|
14
16
|
protocol: "https",
|
|
@@ -17,12 +19,13 @@ export class WmsApiClient extends __Client {
|
|
|
17
19
|
};
|
|
18
20
|
};
|
|
19
21
|
const config = {
|
|
20
|
-
...
|
|
22
|
+
..._config_2,
|
|
21
23
|
endpoint,
|
|
22
24
|
};
|
|
23
25
|
super(config);
|
|
24
26
|
this.config = config;
|
|
25
27
|
this.middlewareStack.add(authorizationMiddleware.bind(this, configuration.token), { step: "build" });
|
|
28
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
26
29
|
}
|
|
27
30
|
destroy() {
|
|
28
31
|
super.destroy();
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_CreatePbxColleagueCommand, se_CreatePbxColleagueCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class CreatePbxColleagueCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "CreatePbxColleague", {})
|
|
12
|
+
.n("WmsApiClient", "CreatePbxColleagueCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_CreatePbxColleagueCommand)
|
|
15
|
+
.de(de_CreatePbxColleagueCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -1,37 +1,17 @@
|
|
|
1
1
|
import { de_CreatePbxOAuth2ClientCommand, se_CreatePbxOAuth2ClientCommand, } from "../protocols/Aws_restJson1";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
4
|
export { $Command };
|
|
6
|
-
export class CreatePbxOAuth2ClientCommand extends $Command
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
this.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
logger,
|
|
19
|
-
clientName,
|
|
20
|
-
commandName,
|
|
21
|
-
inputFilterSensitiveLog: (_) => _,
|
|
22
|
-
outputFilterSensitiveLog: (_) => _,
|
|
23
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
24
|
-
service: "WmsApi",
|
|
25
|
-
operation: "CreatePbxOAuth2Client",
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
const { requestHandler } = configuration;
|
|
29
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
30
|
-
}
|
|
31
|
-
serialize(input, context) {
|
|
32
|
-
return se_CreatePbxOAuth2ClientCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
deserialize(output, context) {
|
|
35
|
-
return de_CreatePbxOAuth2ClientCommand(output, context);
|
|
36
|
-
}
|
|
5
|
+
export class CreatePbxOAuth2ClientCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "CreatePbxOAuth2Client", {})
|
|
12
|
+
.n("WmsApiClient", "CreatePbxOAuth2ClientCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_CreatePbxOAuth2ClientCommand)
|
|
15
|
+
.de(de_CreatePbxOAuth2ClientCommand)
|
|
16
|
+
.build() {
|
|
37
17
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_DeletePbxColleagueCommand, se_DeletePbxColleagueCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class DeletePbxColleagueCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "DeletePbxColleague", {})
|
|
12
|
+
.n("WmsApiClient", "DeletePbxColleagueCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_DeletePbxColleagueCommand)
|
|
15
|
+
.de(de_DeletePbxColleagueCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -1,37 +1,17 @@
|
|
|
1
1
|
import { de_DeletePbxOAuth2ClientCommand, se_DeletePbxOAuth2ClientCommand, } from "../protocols/Aws_restJson1";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
4
|
export { $Command };
|
|
6
|
-
export class DeletePbxOAuth2ClientCommand extends $Command
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
this.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
logger,
|
|
19
|
-
clientName,
|
|
20
|
-
commandName,
|
|
21
|
-
inputFilterSensitiveLog: (_) => _,
|
|
22
|
-
outputFilterSensitiveLog: (_) => _,
|
|
23
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
24
|
-
service: "WmsApi",
|
|
25
|
-
operation: "DeletePbxOAuth2Client",
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
const { requestHandler } = configuration;
|
|
29
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
30
|
-
}
|
|
31
|
-
serialize(input, context) {
|
|
32
|
-
return se_DeletePbxOAuth2ClientCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
deserialize(output, context) {
|
|
35
|
-
return de_DeletePbxOAuth2ClientCommand(output, context);
|
|
36
|
-
}
|
|
5
|
+
export class DeletePbxOAuth2ClientCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "DeletePbxOAuth2Client", {})
|
|
12
|
+
.n("WmsApiClient", "DeletePbxOAuth2ClientCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_DeletePbxOAuth2ClientCommand)
|
|
15
|
+
.de(de_DeletePbxOAuth2ClientCommand)
|
|
16
|
+
.build() {
|
|
37
17
|
}
|
|
@@ -1,37 +1,17 @@
|
|
|
1
1
|
import { de_GetPbxAclGroupsPermissionsCommand, se_GetPbxAclGroupsPermissionsCommand, } from "../protocols/Aws_restJson1";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
4
|
export { $Command };
|
|
6
|
-
export class GetPbxAclGroupsPermissionsCommand extends $Command
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
this.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
logger,
|
|
19
|
-
clientName,
|
|
20
|
-
commandName,
|
|
21
|
-
inputFilterSensitiveLog: (_) => _,
|
|
22
|
-
outputFilterSensitiveLog: (_) => _,
|
|
23
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
24
|
-
service: "WmsApi",
|
|
25
|
-
operation: "GetPbxAclGroupsPermissions",
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
const { requestHandler } = configuration;
|
|
29
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
30
|
-
}
|
|
31
|
-
serialize(input, context) {
|
|
32
|
-
return se_GetPbxAclGroupsPermissionsCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
deserialize(output, context) {
|
|
35
|
-
return de_GetPbxAclGroupsPermissionsCommand(output, context);
|
|
36
|
-
}
|
|
5
|
+
export class GetPbxAclGroupsPermissionsCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "GetPbxAclGroupsPermissions", {})
|
|
12
|
+
.n("WmsApiClient", "GetPbxAclGroupsPermissionsCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetPbxAclGroupsPermissionsCommand)
|
|
15
|
+
.de(de_GetPbxAclGroupsPermissionsCommand)
|
|
16
|
+
.build() {
|
|
37
17
|
}
|
|
@@ -1,37 +1,17 @@
|
|
|
1
1
|
import { de_GetPbxCallGroupsCommand, se_GetPbxCallGroupsCommand, } from "../protocols/Aws_restJson1";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
4
|
export { $Command };
|
|
6
|
-
export class GetPbxCallGroupsCommand extends $Command
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
this.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
logger,
|
|
19
|
-
clientName,
|
|
20
|
-
commandName,
|
|
21
|
-
inputFilterSensitiveLog: (_) => _,
|
|
22
|
-
outputFilterSensitiveLog: (_) => _,
|
|
23
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
24
|
-
service: "WmsApi",
|
|
25
|
-
operation: "GetPbxCallGroups",
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
const { requestHandler } = configuration;
|
|
29
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
30
|
-
}
|
|
31
|
-
serialize(input, context) {
|
|
32
|
-
return se_GetPbxCallGroupsCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
deserialize(output, context) {
|
|
35
|
-
return de_GetPbxCallGroupsCommand(output, context);
|
|
36
|
-
}
|
|
5
|
+
export class GetPbxCallGroupsCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "GetPbxCallGroups", {})
|
|
12
|
+
.n("WmsApiClient", "GetPbxCallGroupsCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetPbxCallGroupsCommand)
|
|
15
|
+
.de(de_GetPbxCallGroupsCommand)
|
|
16
|
+
.build() {
|
|
37
17
|
}
|
|
@@ -1,37 +1,17 @@
|
|
|
1
1
|
import { de_GetPbxColleaguesCommand, se_GetPbxColleaguesCommand, } from "../protocols/Aws_restJson1";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
4
|
export { $Command };
|
|
6
|
-
export class GetPbxColleaguesCommand extends $Command
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
this.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
logger,
|
|
19
|
-
clientName,
|
|
20
|
-
commandName,
|
|
21
|
-
inputFilterSensitiveLog: (_) => _,
|
|
22
|
-
outputFilterSensitiveLog: (_) => _,
|
|
23
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
24
|
-
service: "WmsApi",
|
|
25
|
-
operation: "GetPbxColleagues",
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
const { requestHandler } = configuration;
|
|
29
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
30
|
-
}
|
|
31
|
-
serialize(input, context) {
|
|
32
|
-
return se_GetPbxColleaguesCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
deserialize(output, context) {
|
|
35
|
-
return de_GetPbxColleaguesCommand(output, context);
|
|
36
|
-
}
|
|
5
|
+
export class GetPbxColleaguesCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "GetPbxColleagues", {})
|
|
12
|
+
.n("WmsApiClient", "GetPbxColleaguesCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetPbxColleaguesCommand)
|
|
15
|
+
.de(de_GetPbxColleaguesCommand)
|
|
16
|
+
.build() {
|
|
37
17
|
}
|
|
@@ -1,37 +1,17 @@
|
|
|
1
1
|
import { de_GetPbxOAuth2ClientsCommand, se_GetPbxOAuth2ClientsCommand, } from "../protocols/Aws_restJson1";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
4
|
export { $Command };
|
|
6
|
-
export class GetPbxOAuth2ClientsCommand extends $Command
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
this.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
logger,
|
|
19
|
-
clientName,
|
|
20
|
-
commandName,
|
|
21
|
-
inputFilterSensitiveLog: (_) => _,
|
|
22
|
-
outputFilterSensitiveLog: (_) => _,
|
|
23
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
24
|
-
service: "WmsApi",
|
|
25
|
-
operation: "GetPbxOAuth2Clients",
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
const { requestHandler } = configuration;
|
|
29
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
30
|
-
}
|
|
31
|
-
serialize(input, context) {
|
|
32
|
-
return se_GetPbxOAuth2ClientsCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
deserialize(output, context) {
|
|
35
|
-
return de_GetPbxOAuth2ClientsCommand(output, context);
|
|
36
|
-
}
|
|
5
|
+
export class GetPbxOAuth2ClientsCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "GetPbxOAuth2Clients", {})
|
|
12
|
+
.n("WmsApiClient", "GetPbxOAuth2ClientsCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetPbxOAuth2ClientsCommand)
|
|
15
|
+
.de(de_GetPbxOAuth2ClientsCommand)
|
|
16
|
+
.build() {
|
|
37
17
|
}
|
|
@@ -1,37 +1,17 @@
|
|
|
1
1
|
import { de_UpdatePbxOAuth2ClientCommand, se_UpdatePbxOAuth2ClientCommand, } from "../protocols/Aws_restJson1";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
4
|
export { $Command };
|
|
6
|
-
export class UpdatePbxOAuth2ClientCommand extends $Command
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
this.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
logger,
|
|
19
|
-
clientName,
|
|
20
|
-
commandName,
|
|
21
|
-
inputFilterSensitiveLog: (_) => _,
|
|
22
|
-
outputFilterSensitiveLog: (_) => _,
|
|
23
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
24
|
-
service: "WmsApi",
|
|
25
|
-
operation: "UpdatePbxOAuth2Client",
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
const { requestHandler } = configuration;
|
|
29
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
30
|
-
}
|
|
31
|
-
serialize(input, context) {
|
|
32
|
-
return se_UpdatePbxOAuth2ClientCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
deserialize(output, context) {
|
|
35
|
-
return de_UpdatePbxOAuth2ClientCommand(output, context);
|
|
36
|
-
}
|
|
5
|
+
export class UpdatePbxOAuth2ClientCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "UpdatePbxOAuth2Client", {})
|
|
12
|
+
.n("WmsApiClient", "UpdatePbxOAuth2ClientCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_UpdatePbxOAuth2ClientCommand)
|
|
15
|
+
.de(de_UpdatePbxOAuth2ClientCommand)
|
|
16
|
+
.build() {
|
|
37
17
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
export * from "./CreatePbxColleagueCommand";
|
|
1
2
|
export * from "./CreatePbxOAuth2ClientCommand";
|
|
3
|
+
export * from "./DeletePbxColleagueCommand";
|
|
2
4
|
export * from "./DeletePbxOAuth2ClientCommand";
|
|
3
5
|
export * from "./GetPbxAclGroupsPermissionsCommand";
|
|
4
6
|
export * from "./GetPbxCallGroupsCommand";
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import { WmsApiServiceException as __BaseException } from "./WmsApiServiceException";
|
|
2
|
-
export const AclGroupPermissionAbility = {
|
|
3
|
-
CAN: "can",
|
|
4
|
-
CANNOT: "cannot",
|
|
5
|
-
NO: "no",
|
|
6
|
-
YES: "yes",
|
|
7
|
-
};
|
|
8
2
|
export const PbxLicenseType = {
|
|
9
3
|
BASIC: "basic",
|
|
10
4
|
BUSINESS: "business",
|
|
@@ -12,6 +6,19 @@ export const PbxLicenseType = {
|
|
|
12
6
|
PREMIUM: "premium",
|
|
13
7
|
WIZYCONF: "wizyconf",
|
|
14
8
|
};
|
|
9
|
+
export const AclGroupPermissionAbility = {
|
|
10
|
+
CAN: "can",
|
|
11
|
+
CANNOT: "cannot",
|
|
12
|
+
NO: "no",
|
|
13
|
+
YES: "yes",
|
|
14
|
+
};
|
|
15
|
+
export const PbxColleagueRole = {
|
|
16
|
+
ADMIN: "admin",
|
|
17
|
+
FAX: "fax",
|
|
18
|
+
PARK_ORBIT: "park_orbit",
|
|
19
|
+
ROOM: "room",
|
|
20
|
+
USER: "user",
|
|
21
|
+
};
|
|
15
22
|
export const ResponseType = {
|
|
16
23
|
ERROR: "error",
|
|
17
24
|
RESULT: "result",
|
|
@@ -45,6 +52,21 @@ export class WmsValidationException extends __BaseException {
|
|
|
45
52
|
this.errors = opts.errors;
|
|
46
53
|
}
|
|
47
54
|
}
|
|
55
|
+
export const PbxColleaguesDeleteField = {
|
|
56
|
+
APPLICATIONS: "applications",
|
|
57
|
+
CALLS: "calls",
|
|
58
|
+
CALL_GROUP_MEMBER: "callGroupMember",
|
|
59
|
+
CHAT_HISTORY: "chatHistory",
|
|
60
|
+
DEVICES: "devices",
|
|
61
|
+
MISSED_CALL_MANAGER: "missedCallManager",
|
|
62
|
+
PAGING_GROUP_MEMBER: "pagingGroupMember",
|
|
63
|
+
PERSONAL_DATA: "personalData",
|
|
64
|
+
PHONEBOOKS: "phonebooks",
|
|
65
|
+
USER: "user",
|
|
66
|
+
USER_AVATAR: "userAvatar",
|
|
67
|
+
VOICEMAILS: "voicemails",
|
|
68
|
+
VOICEMAIL_GREETINGS: "voicemailGreetings",
|
|
69
|
+
};
|
|
48
70
|
export class WmsNotFoundException extends __BaseException {
|
|
49
71
|
constructor(opts) {
|
|
50
72
|
super({
|
|
@@ -86,10 +108,3 @@ export const PbxColleaguesSearchStrategy = {
|
|
|
86
108
|
CONTAIN: "contain",
|
|
87
109
|
STARTS_WITH: "startsWith",
|
|
88
110
|
};
|
|
89
|
-
export const PbxColleagueRole = {
|
|
90
|
-
ADMIN: "admin",
|
|
91
|
-
FAX: "fax",
|
|
92
|
-
PARK_ORBIT: "park_orbit",
|
|
93
|
-
ROOM: "room",
|
|
94
|
-
USER: "user",
|
|
95
|
-
};
|