@wildix/wms-api-client 1.1.6 → 1.1.7
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 +2 -0
- package/dist-cjs/commands/GetPbxesCommand.js +21 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +31 -1
- package/dist-es/WmsApi.js +2 -0
- package/dist-es/commands/GetPbxesCommand.js +17 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +28 -0
- package/dist-types/WmsApi.d.ts +8 -0
- package/dist-types/WmsApiClient.d.ts +3 -2
- package/dist-types/commands/GetPbxesCommand.d.ts +75 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +27 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +3 -2
package/dist-cjs/WmsApi.js
CHANGED
|
@@ -8,6 +8,7 @@ const GetPbxAclGroupsPermissionsCommand_1 = require("./commands/GetPbxAclGroupsP
|
|
|
8
8
|
const GetPbxCallGroupsCommand_1 = require("./commands/GetPbxCallGroupsCommand");
|
|
9
9
|
const GetPbxColleaguesCommand_1 = require("./commands/GetPbxColleaguesCommand");
|
|
10
10
|
const GetPbxOAuth2ClientsCommand_1 = require("./commands/GetPbxOAuth2ClientsCommand");
|
|
11
|
+
const GetPbxesCommand_1 = require("./commands/GetPbxesCommand");
|
|
11
12
|
const UpdatePbxOAuth2ClientCommand_1 = require("./commands/UpdatePbxOAuth2ClientCommand");
|
|
12
13
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
13
14
|
const commands = {
|
|
@@ -16,6 +17,7 @@ const commands = {
|
|
|
16
17
|
GetPbxAclGroupsPermissionsCommand: GetPbxAclGroupsPermissionsCommand_1.GetPbxAclGroupsPermissionsCommand,
|
|
17
18
|
GetPbxCallGroupsCommand: GetPbxCallGroupsCommand_1.GetPbxCallGroupsCommand,
|
|
18
19
|
GetPbxColleaguesCommand: GetPbxColleaguesCommand_1.GetPbxColleaguesCommand,
|
|
20
|
+
GetPbxesCommand: GetPbxesCommand_1.GetPbxesCommand,
|
|
19
21
|
GetPbxOAuth2ClientsCommand: GetPbxOAuth2ClientsCommand_1.GetPbxOAuth2ClientsCommand,
|
|
20
22
|
UpdatePbxOAuth2ClientCommand: UpdatePbxOAuth2ClientCommand_1.UpdatePbxOAuth2ClientCommand,
|
|
21
23
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetPbxesCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class GetPbxesCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("WmsApi", "GetPbxes", {})
|
|
15
|
+
.n("WmsApiClient", "GetPbxesCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_GetPbxesCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GetPbxesCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.GetPbxesCommand = GetPbxesCommand;
|
|
@@ -6,5 +6,6 @@ tslib_1.__exportStar(require("./DeletePbxOAuth2ClientCommand"), exports);
|
|
|
6
6
|
tslib_1.__exportStar(require("./GetPbxAclGroupsPermissionsCommand"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./GetPbxCallGroupsCommand"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./GetPbxColleaguesCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./GetPbxesCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./GetPbxOAuth2ClientsCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./UpdatePbxOAuth2ClientCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdatePbxOAuth2ClientCommand = exports.de_GetPbxOAuth2ClientsCommand = exports.de_GetPbxColleaguesCommand = exports.de_GetPbxCallGroupsCommand = exports.de_GetPbxAclGroupsPermissionsCommand = exports.de_DeletePbxOAuth2ClientCommand = exports.de_CreatePbxOAuth2ClientCommand = exports.se_UpdatePbxOAuth2ClientCommand = exports.se_GetPbxOAuth2ClientsCommand = exports.se_GetPbxColleaguesCommand = exports.se_GetPbxCallGroupsCommand = exports.se_GetPbxAclGroupsPermissionsCommand = exports.se_DeletePbxOAuth2ClientCommand = exports.se_CreatePbxOAuth2ClientCommand = void 0;
|
|
3
|
+
exports.de_UpdatePbxOAuth2ClientCommand = exports.de_GetPbxOAuth2ClientsCommand = exports.de_GetPbxesCommand = exports.de_GetPbxColleaguesCommand = exports.de_GetPbxCallGroupsCommand = exports.de_GetPbxAclGroupsPermissionsCommand = exports.de_DeletePbxOAuth2ClientCommand = exports.de_CreatePbxOAuth2ClientCommand = exports.se_UpdatePbxOAuth2ClientCommand = exports.se_GetPbxOAuth2ClientsCommand = exports.se_GetPbxesCommand = exports.se_GetPbxColleaguesCommand = exports.se_GetPbxCallGroupsCommand = exports.se_GetPbxAclGroupsPermissionsCommand = exports.se_DeletePbxOAuth2ClientCommand = exports.se_CreatePbxOAuth2ClientCommand = void 0;
|
|
4
4
|
const WmsApiServiceException_1 = require("../models/WmsApiServiceException");
|
|
5
5
|
const models_0_1 = require("../models/models_0");
|
|
6
6
|
const core_1 = require("@smithy/core");
|
|
@@ -100,6 +100,20 @@ const se_GetPbxColleaguesCommand = async (input, context) => {
|
|
|
100
100
|
return b.build();
|
|
101
101
|
};
|
|
102
102
|
exports.se_GetPbxColleaguesCommand = se_GetPbxColleaguesCommand;
|
|
103
|
+
const se_GetPbxesCommand = async (input, context) => {
|
|
104
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
105
|
+
const headers = {
|
|
106
|
+
'content-type': 'application/json',
|
|
107
|
+
};
|
|
108
|
+
b.bp("/api/v1/network/pbxes");
|
|
109
|
+
let body;
|
|
110
|
+
body = "";
|
|
111
|
+
b.m("GET")
|
|
112
|
+
.h(headers)
|
|
113
|
+
.b(body);
|
|
114
|
+
return b.build();
|
|
115
|
+
};
|
|
116
|
+
exports.se_GetPbxesCommand = se_GetPbxesCommand;
|
|
103
117
|
const se_GetPbxOAuth2ClientsCommand = async (input, context) => {
|
|
104
118
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
105
119
|
const headers = {
|
|
@@ -212,6 +226,22 @@ const de_GetPbxColleaguesCommand = async (output, context) => {
|
|
|
212
226
|
return contents;
|
|
213
227
|
};
|
|
214
228
|
exports.de_GetPbxColleaguesCommand = de_GetPbxColleaguesCommand;
|
|
229
|
+
const de_GetPbxesCommand = async (output, context) => {
|
|
230
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
231
|
+
return de_CommandError(output, context);
|
|
232
|
+
}
|
|
233
|
+
const contents = (0, smithy_client_1.map)({
|
|
234
|
+
$metadata: deserializeMetadata(output),
|
|
235
|
+
});
|
|
236
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
237
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
238
|
+
'result': smithy_client_1._json,
|
|
239
|
+
'type': smithy_client_1.expectString,
|
|
240
|
+
});
|
|
241
|
+
Object.assign(contents, doc);
|
|
242
|
+
return contents;
|
|
243
|
+
};
|
|
244
|
+
exports.de_GetPbxesCommand = de_GetPbxesCommand;
|
|
215
245
|
const de_GetPbxOAuth2ClientsCommand = async (output, context) => {
|
|
216
246
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
217
247
|
return de_CommandError(output, context);
|
package/dist-es/WmsApi.js
CHANGED
|
@@ -5,6 +5,7 @@ import { GetPbxAclGroupsPermissionsCommand, } from "./commands/GetPbxAclGroupsPe
|
|
|
5
5
|
import { GetPbxCallGroupsCommand, } from "./commands/GetPbxCallGroupsCommand";
|
|
6
6
|
import { GetPbxColleaguesCommand, } from "./commands/GetPbxColleaguesCommand";
|
|
7
7
|
import { GetPbxOAuth2ClientsCommand, } from "./commands/GetPbxOAuth2ClientsCommand";
|
|
8
|
+
import { GetPbxesCommand, } from "./commands/GetPbxesCommand";
|
|
8
9
|
import { UpdatePbxOAuth2ClientCommand, } from "./commands/UpdatePbxOAuth2ClientCommand";
|
|
9
10
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
10
11
|
const commands = {
|
|
@@ -13,6 +14,7 @@ const commands = {
|
|
|
13
14
|
GetPbxAclGroupsPermissionsCommand,
|
|
14
15
|
GetPbxCallGroupsCommand,
|
|
15
16
|
GetPbxColleaguesCommand,
|
|
17
|
+
GetPbxesCommand,
|
|
16
18
|
GetPbxOAuth2ClientsCommand,
|
|
17
19
|
UpdatePbxOAuth2ClientCommand,
|
|
18
20
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetPbxesCommand, se_GetPbxesCommand, } 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 GetPbxesCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "GetPbxes", {})
|
|
12
|
+
.n("WmsApiClient", "GetPbxesCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetPbxesCommand)
|
|
15
|
+
.de(de_GetPbxesCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -3,5 +3,6 @@ export * from "./DeletePbxOAuth2ClientCommand";
|
|
|
3
3
|
export * from "./GetPbxAclGroupsPermissionsCommand";
|
|
4
4
|
export * from "./GetPbxCallGroupsCommand";
|
|
5
5
|
export * from "./GetPbxColleaguesCommand";
|
|
6
|
+
export * from "./GetPbxesCommand";
|
|
6
7
|
export * from "./GetPbxOAuth2ClientsCommand";
|
|
7
8
|
export * from "./UpdatePbxOAuth2ClientCommand";
|
|
@@ -92,6 +92,19 @@ export const se_GetPbxColleaguesCommand = async (input, context) => {
|
|
|
92
92
|
.b(body);
|
|
93
93
|
return b.build();
|
|
94
94
|
};
|
|
95
|
+
export const se_GetPbxesCommand = async (input, context) => {
|
|
96
|
+
const b = rb(input, context);
|
|
97
|
+
const headers = {
|
|
98
|
+
'content-type': 'application/json',
|
|
99
|
+
};
|
|
100
|
+
b.bp("/api/v1/network/pbxes");
|
|
101
|
+
let body;
|
|
102
|
+
body = "";
|
|
103
|
+
b.m("GET")
|
|
104
|
+
.h(headers)
|
|
105
|
+
.b(body);
|
|
106
|
+
return b.build();
|
|
107
|
+
};
|
|
95
108
|
export const se_GetPbxOAuth2ClientsCommand = async (input, context) => {
|
|
96
109
|
const b = rb(input, context);
|
|
97
110
|
const headers = {
|
|
@@ -197,6 +210,21 @@ export const de_GetPbxColleaguesCommand = async (output, context) => {
|
|
|
197
210
|
Object.assign(contents, doc);
|
|
198
211
|
return contents;
|
|
199
212
|
};
|
|
213
|
+
export const de_GetPbxesCommand = async (output, context) => {
|
|
214
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
215
|
+
return de_CommandError(output, context);
|
|
216
|
+
}
|
|
217
|
+
const contents = map({
|
|
218
|
+
$metadata: deserializeMetadata(output),
|
|
219
|
+
});
|
|
220
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
221
|
+
const doc = take(data, {
|
|
222
|
+
'result': _json,
|
|
223
|
+
'type': __expectString,
|
|
224
|
+
});
|
|
225
|
+
Object.assign(contents, doc);
|
|
226
|
+
return contents;
|
|
227
|
+
};
|
|
200
228
|
export const de_GetPbxOAuth2ClientsCommand = async (output, context) => {
|
|
201
229
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
202
230
|
return de_CommandError(output, context);
|
package/dist-types/WmsApi.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { GetPbxAclGroupsPermissionsCommandInput, GetPbxAclGroupsPermissionsComma
|
|
|
5
5
|
import { GetPbxCallGroupsCommandInput, GetPbxCallGroupsCommandOutput } from "./commands/GetPbxCallGroupsCommand";
|
|
6
6
|
import { GetPbxColleaguesCommandInput, GetPbxColleaguesCommandOutput } from "./commands/GetPbxColleaguesCommand";
|
|
7
7
|
import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } from "./commands/GetPbxOAuth2ClientsCommand";
|
|
8
|
+
import { GetPbxesCommandInput, GetPbxesCommandOutput } from "./commands/GetPbxesCommand";
|
|
8
9
|
import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "./commands/UpdatePbxOAuth2ClientCommand";
|
|
9
10
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
10
11
|
export interface WmsApi {
|
|
@@ -41,6 +42,13 @@ export interface WmsApi {
|
|
|
41
42
|
getPbxColleagues(args: GetPbxColleaguesCommandInput, options?: __HttpHandlerOptions): Promise<GetPbxColleaguesCommandOutput>;
|
|
42
43
|
getPbxColleagues(args: GetPbxColleaguesCommandInput, cb: (err: any, data?: GetPbxColleaguesCommandOutput) => void): void;
|
|
43
44
|
getPbxColleagues(args: GetPbxColleaguesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPbxColleaguesCommandOutput) => void): void;
|
|
45
|
+
/**
|
|
46
|
+
* @see {@link GetPbxesCommand}
|
|
47
|
+
*/
|
|
48
|
+
getPbxes(): Promise<GetPbxesCommandOutput>;
|
|
49
|
+
getPbxes(args: GetPbxesCommandInput, options?: __HttpHandlerOptions): Promise<GetPbxesCommandOutput>;
|
|
50
|
+
getPbxes(args: GetPbxesCommandInput, cb: (err: any, data?: GetPbxesCommandOutput) => void): void;
|
|
51
|
+
getPbxes(args: GetPbxesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPbxesCommandOutput) => void): void;
|
|
44
52
|
/**
|
|
45
53
|
* @see {@link GetPbxOAuth2ClientsCommand}
|
|
46
54
|
*/
|
|
@@ -4,6 +4,7 @@ import { GetPbxAclGroupsPermissionsCommandInput, GetPbxAclGroupsPermissionsComma
|
|
|
4
4
|
import { GetPbxCallGroupsCommandInput, GetPbxCallGroupsCommandOutput } from "./commands/GetPbxCallGroupsCommand";
|
|
5
5
|
import { GetPbxColleaguesCommandInput, GetPbxColleaguesCommandOutput } from "./commands/GetPbxColleaguesCommand";
|
|
6
6
|
import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } from "./commands/GetPbxOAuth2ClientsCommand";
|
|
7
|
+
import { GetPbxesCommandInput, GetPbxesCommandOutput } from "./commands/GetPbxesCommand";
|
|
7
8
|
import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "./commands/UpdatePbxOAuth2ClientCommand";
|
|
8
9
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
9
10
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
@@ -16,11 +17,11 @@ export { __Client };
|
|
|
16
17
|
/**
|
|
17
18
|
* @public
|
|
18
19
|
*/
|
|
19
|
-
export type ServiceInputTypes = CreatePbxOAuth2ClientCommandInput | DeletePbxOAuth2ClientCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | UpdatePbxOAuth2ClientCommandInput;
|
|
20
|
+
export type ServiceInputTypes = CreatePbxOAuth2ClientCommandInput | DeletePbxOAuth2ClientCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | GetPbxesCommandInput | UpdatePbxOAuth2ClientCommandInput;
|
|
20
21
|
/**
|
|
21
22
|
* @public
|
|
22
23
|
*/
|
|
23
|
-
export type ServiceOutputTypes = CreatePbxOAuth2ClientCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
|
|
24
|
+
export type ServiceOutputTypes = CreatePbxOAuth2ClientCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | GetPbxesCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
|
|
24
25
|
/**
|
|
25
26
|
* @public
|
|
26
27
|
*/
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
|
|
2
|
+
import { GetPbxesOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetPbxesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetPbxesCommandInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetPbxesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetPbxesCommandOutput extends GetPbxesOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetPbxesCommand_base: {
|
|
25
|
+
new (input: GetPbxesCommandInput): import("@smithy/smithy-client").CommandImpl<GetPbxesCommandInput, GetPbxesCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [GetPbxesCommandInput]): import("@smithy/smithy-client").CommandImpl<GetPbxesCommandInput, GetPbxesCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Get list of PBXes.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WmsApiClient, GetPbxesCommand } from "@wildix/wms-api-client"; // ES Modules import
|
|
35
|
+
* // const { WmsApiClient, GetPbxesCommand } = require("@wildix/wms-api-client"); // CommonJS import
|
|
36
|
+
* const client = new WmsApiClient(config);
|
|
37
|
+
* const input = {};
|
|
38
|
+
* const command = new GetPbxesCommand(input);
|
|
39
|
+
* const response = await client.send(command);
|
|
40
|
+
* // { // GetPbxesOutput
|
|
41
|
+
* // type: "result" || "error", // required
|
|
42
|
+
* // result: { // GetPbxesResult
|
|
43
|
+
* // records: [ // PbxesList // required
|
|
44
|
+
* // { // Pbx
|
|
45
|
+
* // ip: "STRING_VALUE", // required
|
|
46
|
+
* // serial: "STRING_VALUE", // required
|
|
47
|
+
* // host: "STRING_VALUE", // required
|
|
48
|
+
* // isServer: true || false, // required
|
|
49
|
+
* // port: Number("int"), // required
|
|
50
|
+
* // failOver: "STRING_VALUE", // required
|
|
51
|
+
* // version: "STRING_VALUE", // required
|
|
52
|
+
* // isUpdateNeeded: true || false, // required
|
|
53
|
+
* // dn: "STRING_VALUE", // required
|
|
54
|
+
* // },
|
|
55
|
+
* // ],
|
|
56
|
+
* // },
|
|
57
|
+
* // };
|
|
58
|
+
*
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* @param GetPbxesCommandInput - {@link GetPbxesCommandInput}
|
|
62
|
+
* @returns {@link GetPbxesCommandOutput}
|
|
63
|
+
* @see {@link GetPbxesCommandInput} for command's `input` shape.
|
|
64
|
+
* @see {@link GetPbxesCommandOutput} for command's `response` shape.
|
|
65
|
+
* @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link WmsUnauthorizedException} (client fault)
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link WmsApiServiceException}
|
|
70
|
+
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
71
|
+
*
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
export declare class GetPbxesCommand extends GetPbxesCommand_base {
|
|
75
|
+
}
|
|
@@ -3,5 +3,6 @@ export * from "./DeletePbxOAuth2ClientCommand";
|
|
|
3
3
|
export * from "./GetPbxAclGroupsPermissionsCommand";
|
|
4
4
|
export * from "./GetPbxCallGroupsCommand";
|
|
5
5
|
export * from "./GetPbxColleaguesCommand";
|
|
6
|
+
export * from "./GetPbxesCommand";
|
|
6
7
|
export * from "./GetPbxOAuth2ClientsCommand";
|
|
7
8
|
export * from "./UpdatePbxOAuth2ClientCommand";
|
|
@@ -384,6 +384,33 @@ export interface GetPbxColleaguesOutput {
|
|
|
384
384
|
type: ResponseType;
|
|
385
385
|
result: GetPbxColleaguesResult;
|
|
386
386
|
}
|
|
387
|
+
/**
|
|
388
|
+
* @public
|
|
389
|
+
*/
|
|
390
|
+
export interface Pbx {
|
|
391
|
+
ip: string;
|
|
392
|
+
serial: string;
|
|
393
|
+
host: string;
|
|
394
|
+
isServer: boolean;
|
|
395
|
+
port: number;
|
|
396
|
+
failOver: string;
|
|
397
|
+
version: string;
|
|
398
|
+
isUpdateNeeded: boolean;
|
|
399
|
+
dn: string;
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* @public
|
|
403
|
+
*/
|
|
404
|
+
export interface GetPbxesResult {
|
|
405
|
+
records: (Pbx)[];
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* @public
|
|
409
|
+
*/
|
|
410
|
+
export interface GetPbxesOutput {
|
|
411
|
+
type: ResponseType;
|
|
412
|
+
result: GetPbxesResult;
|
|
413
|
+
}
|
|
387
414
|
/**
|
|
388
415
|
* @public
|
|
389
416
|
*/
|
|
@@ -4,6 +4,7 @@ import { GetPbxAclGroupsPermissionsCommandInput, GetPbxAclGroupsPermissionsComma
|
|
|
4
4
|
import { GetPbxCallGroupsCommandInput, GetPbxCallGroupsCommandOutput } from "../commands/GetPbxCallGroupsCommand";
|
|
5
5
|
import { GetPbxColleaguesCommandInput, GetPbxColleaguesCommandOutput } from "../commands/GetPbxColleaguesCommand";
|
|
6
6
|
import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } from "../commands/GetPbxOAuth2ClientsCommand";
|
|
7
|
+
import { GetPbxesCommandInput, GetPbxesCommandOutput } from "../commands/GetPbxesCommand";
|
|
7
8
|
import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "../commands/UpdatePbxOAuth2ClientCommand";
|
|
8
9
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
9
10
|
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
@@ -27,6 +28,10 @@ export declare const se_GetPbxCallGroupsCommand: (input: GetPbxCallGroupsCommand
|
|
|
27
28
|
* serializeAws_restJson1GetPbxColleaguesCommand
|
|
28
29
|
*/
|
|
29
30
|
export declare const se_GetPbxColleaguesCommand: (input: GetPbxColleaguesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
31
|
+
/**
|
|
32
|
+
* serializeAws_restJson1GetPbxesCommand
|
|
33
|
+
*/
|
|
34
|
+
export declare const se_GetPbxesCommand: (input: GetPbxesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
30
35
|
/**
|
|
31
36
|
* serializeAws_restJson1GetPbxOAuth2ClientsCommand
|
|
32
37
|
*/
|
|
@@ -55,6 +60,10 @@ export declare const de_GetPbxCallGroupsCommand: (output: __HttpResponse, contex
|
|
|
55
60
|
* deserializeAws_restJson1GetPbxColleaguesCommand
|
|
56
61
|
*/
|
|
57
62
|
export declare const de_GetPbxColleaguesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPbxColleaguesCommandOutput>;
|
|
63
|
+
/**
|
|
64
|
+
* deserializeAws_restJson1GetPbxesCommand
|
|
65
|
+
*/
|
|
66
|
+
export declare const de_GetPbxesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPbxesCommandOutput>;
|
|
58
67
|
/**
|
|
59
68
|
* deserializeAws_restJson1GetPbxOAuth2ClientsCommand
|
|
60
69
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wms-api-client",
|
|
3
3
|
"description": "@wildix/wms-api-client client",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.7",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"build:types": "tsc -p tsconfig.types.json",
|
|
10
10
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
11
11
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
|
|
12
|
-
"prepack": "yarn run clean && yarn run build"
|
|
12
|
+
"prepack": "yarn run clean && yarn run build",
|
|
13
|
+
"postpublish": "node ../../scripts/postpublish.js"
|
|
13
14
|
},
|
|
14
15
|
"main": "./dist-cjs/index.js",
|
|
15
16
|
"types": "./dist-types/index.d.ts",
|