@wildix/wms-api-client 1.1.5 → 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 -4
- package/dist-cjs/WmsApiClient.js +7 -2
- package/dist-cjs/commands/{CreatePbxColleagueCommand.js → GetPbxesCommand.js} +7 -7
- package/dist-cjs/commands/index.js +1 -2
- package/dist-cjs/models/models_0.js +8 -23
- package/dist-cjs/protocols/Aws_restJson1.js +30 -80
- package/dist-es/WmsApi.js +2 -4
- package/dist-es/WmsApiClient.js +7 -2
- package/dist-es/commands/GetPbxesCommand.js +17 -0
- package/dist-es/commands/index.js +1 -2
- package/dist-es/models/models_0.js +7 -22
- package/dist-es/protocols/Aws_restJson1.js +23 -71
- package/dist-types/WmsApi.d.ts +8 -14
- package/dist-types/WmsApiClient.d.ts +6 -6
- package/dist-types/commands/CreatePbxOAuth2ClientCommand.d.ts +2 -1
- package/dist-types/commands/DeletePbxOAuth2ClientCommand.d.ts +2 -1
- package/dist-types/commands/GetPbxAclGroupsPermissionsCommand.d.ts +2 -1
- package/dist-types/commands/GetPbxCallGroupsCommand.d.ts +2 -1
- package/dist-types/commands/GetPbxColleaguesCommand.d.ts +2 -1
- package/dist-types/commands/GetPbxOAuth2ClientsCommand.d.ts +2 -1
- package/dist-types/commands/GetPbxesCommand.d.ts +75 -0
- package/dist-types/commands/UpdatePbxOAuth2ClientCommand.d.ts +2 -1
- package/dist-types/commands/index.d.ts +1 -2
- package/dist-types/index.d.ts +2 -2
- package/dist-types/models/WmsApiServiceException.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +92 -130
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -18
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/package.json +11 -10
- package/dist-cjs/commands/DeletePbxColleagueCommand.js +0 -21
- package/dist-es/commands/CreatePbxColleagueCommand.js +0 -17
- package/dist-es/commands/DeletePbxColleagueCommand.js +0 -17
- package/dist-types/commands/CreatePbxColleagueCommand.d.ts +0 -99
- package/dist-types/commands/DeletePbxColleagueCommand.d.ts +0 -65
|
@@ -2,36 +2,6 @@ import { WmsApiServiceException as __BaseException } from "../models/WmsApiServi
|
|
|
2
2
|
import { WmsNotFoundException, WmsUnauthorizedException, WmsValidationException, } from "../models/models_0";
|
|
3
3
|
import { requestBuilder as rb } from "@smithy/core";
|
|
4
4
|
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
5
|
-
export const se_CreatePbxColleagueCommand = async (input, context) => {
|
|
6
|
-
const b = rb(input, context);
|
|
7
|
-
const headers = {
|
|
8
|
-
'content-type': 'application/json',
|
|
9
|
-
};
|
|
10
|
-
b.bp("/api/v1/PBX/Colleagues");
|
|
11
|
-
let body;
|
|
12
|
-
body = JSON.stringify(take(input, {
|
|
13
|
-
'department': [],
|
|
14
|
-
'dialplan': [],
|
|
15
|
-
'email': [],
|
|
16
|
-
'extension': [],
|
|
17
|
-
'faxDialplan': [],
|
|
18
|
-
'faxNumber': [],
|
|
19
|
-
'groupDn': [],
|
|
20
|
-
'language': [],
|
|
21
|
-
'licenseType': [],
|
|
22
|
-
'login': [],
|
|
23
|
-
'mobilePhone': [],
|
|
24
|
-
'name': [],
|
|
25
|
-
'officePhone': [],
|
|
26
|
-
'password': [],
|
|
27
|
-
'role': [],
|
|
28
|
-
'sipPassword': [],
|
|
29
|
-
}));
|
|
30
|
-
b.m("POST")
|
|
31
|
-
.h(headers)
|
|
32
|
-
.b(body);
|
|
33
|
-
return b.build();
|
|
34
|
-
};
|
|
35
5
|
export const se_CreatePbxOAuth2ClientCommand = async (input, context) => {
|
|
36
6
|
const b = rb(input, context);
|
|
37
7
|
const headers = {
|
|
@@ -48,21 +18,6 @@ export const se_CreatePbxOAuth2ClientCommand = async (input, context) => {
|
|
|
48
18
|
.b(body);
|
|
49
19
|
return b.build();
|
|
50
20
|
};
|
|
51
|
-
export const se_DeletePbxColleagueCommand = async (input, context) => {
|
|
52
|
-
const b = rb(input, context);
|
|
53
|
-
const headers = {};
|
|
54
|
-
b.bp("/api/v1/PBX/Colleagues/{colleagueId}");
|
|
55
|
-
b.p('colleagueId', () => input.colleagueId.toString(), '{colleagueId}', false);
|
|
56
|
-
const query = map({
|
|
57
|
-
[_d]: [() => input.data !== void 0, () => ((input[_d] || []).map(_entry => _entry))],
|
|
58
|
-
});
|
|
59
|
-
let body;
|
|
60
|
-
b.m("DELETE")
|
|
61
|
-
.h(headers)
|
|
62
|
-
.q(query)
|
|
63
|
-
.b(body);
|
|
64
|
-
return b.build();
|
|
65
|
-
};
|
|
66
21
|
export const se_DeletePbxOAuth2ClientCommand = async (input, context) => {
|
|
67
22
|
const b = rb(input, context);
|
|
68
23
|
const headers = {};
|
|
@@ -114,7 +69,7 @@ export const se_GetPbxColleaguesCommand = async (input, context) => {
|
|
|
114
69
|
[_fil]: [() => input.name !== void 0, () => ((input[_n] || []).map(_entry => _entry))],
|
|
115
70
|
[_filt]: [() => input.email !== void 0, () => ((input[_em] || []).map(_entry => _entry))],
|
|
116
71
|
[_filte]: [() => input.role !== void 0, () => ((input[_r] || []).map(_entry => _entry))],
|
|
117
|
-
[_filter]: [() => input.dialplan !== void 0, () => ((input[
|
|
72
|
+
[_filter]: [() => input.dialplan !== void 0, () => ((input[_d] || []).map(_entry => _entry))],
|
|
118
73
|
[_fDi]: [() => input.faxDialplan !== void 0, () => ((input[_fD] || []).map(_entry => _entry))],
|
|
119
74
|
[_filterd]: [() => input.department !== void 0, () => ((input[_de] || []).map(_entry => _entry))],
|
|
120
75
|
[_filterl]: [() => input.login !== void 0, () => ((input[_l] || []).map(_entry => _entry))],
|
|
@@ -127,7 +82,7 @@ export const se_GetPbxColleaguesCommand = async (input, context) => {
|
|
|
127
82
|
[_so]: [() => input.sort !== void 0, () => ((input[_so] || []).map(_entry => _entry))],
|
|
128
83
|
[_st]: [() => input.start !== void 0, () => (input[_st].toString())],
|
|
129
84
|
[_c]: [() => input.count !== void 0, () => (input[_c].toString())],
|
|
130
|
-
[
|
|
85
|
+
[_di]: [, input[_di]],
|
|
131
86
|
[_sS]: [, input[_sS]],
|
|
132
87
|
});
|
|
133
88
|
let body;
|
|
@@ -137,6 +92,19 @@ export const se_GetPbxColleaguesCommand = async (input, context) => {
|
|
|
137
92
|
.b(body);
|
|
138
93
|
return b.build();
|
|
139
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
|
+
};
|
|
140
108
|
export const se_GetPbxOAuth2ClientsCommand = async (input, context) => {
|
|
141
109
|
const b = rb(input, context);
|
|
142
110
|
const headers = {
|
|
@@ -167,21 +135,6 @@ export const se_UpdatePbxOAuth2ClientCommand = async (input, context) => {
|
|
|
167
135
|
.b(body);
|
|
168
136
|
return b.build();
|
|
169
137
|
};
|
|
170
|
-
export const de_CreatePbxColleagueCommand = async (output, context) => {
|
|
171
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
172
|
-
return de_CommandError(output, context);
|
|
173
|
-
}
|
|
174
|
-
const contents = map({
|
|
175
|
-
$metadata: deserializeMetadata(output),
|
|
176
|
-
});
|
|
177
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
178
|
-
const doc = take(data, {
|
|
179
|
-
'result': _json,
|
|
180
|
-
'type': __expectString,
|
|
181
|
-
});
|
|
182
|
-
Object.assign(contents, doc);
|
|
183
|
-
return contents;
|
|
184
|
-
};
|
|
185
138
|
export const de_CreatePbxOAuth2ClientCommand = async (output, context) => {
|
|
186
139
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
187
140
|
return de_CommandError(output, context);
|
|
@@ -197,7 +150,7 @@ export const de_CreatePbxOAuth2ClientCommand = async (output, context) => {
|
|
|
197
150
|
Object.assign(contents, doc);
|
|
198
151
|
return contents;
|
|
199
152
|
};
|
|
200
|
-
export const
|
|
153
|
+
export const de_DeletePbxOAuth2ClientCommand = async (output, context) => {
|
|
201
154
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
202
155
|
return de_CommandError(output, context);
|
|
203
156
|
}
|
|
@@ -212,7 +165,7 @@ export const de_DeletePbxColleagueCommand = async (output, context) => {
|
|
|
212
165
|
Object.assign(contents, doc);
|
|
213
166
|
return contents;
|
|
214
167
|
};
|
|
215
|
-
export const
|
|
168
|
+
export const de_GetPbxAclGroupsPermissionsCommand = async (output, context) => {
|
|
216
169
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
217
170
|
return de_CommandError(output, context);
|
|
218
171
|
}
|
|
@@ -221,13 +174,13 @@ export const de_DeletePbxOAuth2ClientCommand = async (output, context) => {
|
|
|
221
174
|
});
|
|
222
175
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
223
176
|
const doc = take(data, {
|
|
224
|
-
'result':
|
|
177
|
+
'result': _json,
|
|
225
178
|
'type': __expectString,
|
|
226
179
|
});
|
|
227
180
|
Object.assign(contents, doc);
|
|
228
181
|
return contents;
|
|
229
182
|
};
|
|
230
|
-
export const
|
|
183
|
+
export const de_GetPbxCallGroupsCommand = async (output, context) => {
|
|
231
184
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
232
185
|
return de_CommandError(output, context);
|
|
233
186
|
}
|
|
@@ -242,7 +195,7 @@ export const de_GetPbxAclGroupsPermissionsCommand = async (output, context) => {
|
|
|
242
195
|
Object.assign(contents, doc);
|
|
243
196
|
return contents;
|
|
244
197
|
};
|
|
245
|
-
export const
|
|
198
|
+
export const de_GetPbxColleaguesCommand = async (output, context) => {
|
|
246
199
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
247
200
|
return de_CommandError(output, context);
|
|
248
201
|
}
|
|
@@ -257,7 +210,7 @@ export const de_GetPbxCallGroupsCommand = async (output, context) => {
|
|
|
257
210
|
Object.assign(contents, doc);
|
|
258
211
|
return contents;
|
|
259
212
|
};
|
|
260
|
-
export const
|
|
213
|
+
export const de_GetPbxesCommand = async (output, context) => {
|
|
261
214
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
262
215
|
return de_CommandError(output, context);
|
|
263
216
|
}
|
|
@@ -385,10 +338,9 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
385
338
|
value.length != 0) &&
|
|
386
339
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
387
340
|
const _c = "count";
|
|
388
|
-
const _d = "
|
|
341
|
+
const _d = "dialplan";
|
|
389
342
|
const _de = "department";
|
|
390
|
-
const _di = "
|
|
391
|
-
const _dir = "dir";
|
|
343
|
+
const _di = "dir";
|
|
392
344
|
const _e = "extension";
|
|
393
345
|
const _em = "email";
|
|
394
346
|
const _f = "filter[extension][]";
|
package/dist-types/WmsApi.d.ts
CHANGED
|
@@ -1,33 +1,20 @@
|
|
|
1
1
|
import { WmsApiClient } from "./WmsApiClient";
|
|
2
|
-
import { CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput } from "./commands/CreatePbxColleagueCommand";
|
|
3
2
|
import { CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput } from "./commands/CreatePbxOAuth2ClientCommand";
|
|
4
|
-
import { DeletePbxColleagueCommandInput, DeletePbxColleagueCommandOutput } from "./commands/DeletePbxColleagueCommand";
|
|
5
3
|
import { DeletePbxOAuth2ClientCommandInput, DeletePbxOAuth2ClientCommandOutput } from "./commands/DeletePbxOAuth2ClientCommand";
|
|
6
4
|
import { GetPbxAclGroupsPermissionsCommandInput, GetPbxAclGroupsPermissionsCommandOutput } from "./commands/GetPbxAclGroupsPermissionsCommand";
|
|
7
5
|
import { GetPbxCallGroupsCommandInput, GetPbxCallGroupsCommandOutput } from "./commands/GetPbxCallGroupsCommand";
|
|
8
6
|
import { GetPbxColleaguesCommandInput, GetPbxColleaguesCommandOutput } from "./commands/GetPbxColleaguesCommand";
|
|
9
7
|
import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } from "./commands/GetPbxOAuth2ClientsCommand";
|
|
8
|
+
import { GetPbxesCommandInput, GetPbxesCommandOutput } from "./commands/GetPbxesCommand";
|
|
10
9
|
import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "./commands/UpdatePbxOAuth2ClientCommand";
|
|
11
10
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
12
11
|
export interface WmsApi {
|
|
13
|
-
/**
|
|
14
|
-
* @see {@link CreatePbxColleagueCommand}
|
|
15
|
-
*/
|
|
16
|
-
createPbxColleague(args: CreatePbxColleagueCommandInput, options?: __HttpHandlerOptions): Promise<CreatePbxColleagueCommandOutput>;
|
|
17
|
-
createPbxColleague(args: CreatePbxColleagueCommandInput, cb: (err: any, data?: CreatePbxColleagueCommandOutput) => void): void;
|
|
18
|
-
createPbxColleague(args: CreatePbxColleagueCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreatePbxColleagueCommandOutput) => void): void;
|
|
19
12
|
/**
|
|
20
13
|
* @see {@link CreatePbxOAuth2ClientCommand}
|
|
21
14
|
*/
|
|
22
15
|
createPbxOAuth2Client(args: CreatePbxOAuth2ClientCommandInput, options?: __HttpHandlerOptions): Promise<CreatePbxOAuth2ClientCommandOutput>;
|
|
23
16
|
createPbxOAuth2Client(args: CreatePbxOAuth2ClientCommandInput, cb: (err: any, data?: CreatePbxOAuth2ClientCommandOutput) => void): void;
|
|
24
17
|
createPbxOAuth2Client(args: CreatePbxOAuth2ClientCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreatePbxOAuth2ClientCommandOutput) => void): void;
|
|
25
|
-
/**
|
|
26
|
-
* @see {@link DeletePbxColleagueCommand}
|
|
27
|
-
*/
|
|
28
|
-
deletePbxColleague(args: DeletePbxColleagueCommandInput, options?: __HttpHandlerOptions): Promise<DeletePbxColleagueCommandOutput>;
|
|
29
|
-
deletePbxColleague(args: DeletePbxColleagueCommandInput, cb: (err: any, data?: DeletePbxColleagueCommandOutput) => void): void;
|
|
30
|
-
deletePbxColleague(args: DeletePbxColleagueCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePbxColleagueCommandOutput) => void): void;
|
|
31
18
|
/**
|
|
32
19
|
* @see {@link DeletePbxOAuth2ClientCommand}
|
|
33
20
|
*/
|
|
@@ -55,6 +42,13 @@ export interface WmsApi {
|
|
|
55
42
|
getPbxColleagues(args: GetPbxColleaguesCommandInput, options?: __HttpHandlerOptions): Promise<GetPbxColleaguesCommandOutput>;
|
|
56
43
|
getPbxColleagues(args: GetPbxColleaguesCommandInput, cb: (err: any, data?: GetPbxColleaguesCommandOutput) => void): void;
|
|
57
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;
|
|
58
52
|
/**
|
|
59
53
|
* @see {@link GetPbxOAuth2ClientsCommand}
|
|
60
54
|
*/
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput } from "./commands/CreatePbxColleagueCommand";
|
|
2
1
|
import { CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput } from "./commands/CreatePbxOAuth2ClientCommand";
|
|
3
|
-
import { DeletePbxColleagueCommandInput, DeletePbxColleagueCommandOutput } from "./commands/DeletePbxColleagueCommand";
|
|
4
2
|
import { DeletePbxOAuth2ClientCommandInput, DeletePbxOAuth2ClientCommandOutput } from "./commands/DeletePbxOAuth2ClientCommand";
|
|
5
3
|
import { GetPbxAclGroupsPermissionsCommandInput, GetPbxAclGroupsPermissionsCommandOutput } from "./commands/GetPbxAclGroupsPermissionsCommand";
|
|
6
4
|
import { GetPbxCallGroupsCommandInput, GetPbxCallGroupsCommandOutput } from "./commands/GetPbxCallGroupsCommand";
|
|
7
5
|
import { GetPbxColleaguesCommandInput, GetPbxColleaguesCommandOutput } from "./commands/GetPbxColleaguesCommand";
|
|
8
6
|
import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } from "./commands/GetPbxOAuth2ClientsCommand";
|
|
7
|
+
import { GetPbxesCommandInput, GetPbxesCommandOutput } from "./commands/GetPbxesCommand";
|
|
9
8
|
import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "./commands/UpdatePbxOAuth2ClientCommand";
|
|
10
9
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
11
10
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
11
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
12
12
|
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
13
13
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
14
14
|
import { Provider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
@@ -17,11 +17,11 @@ export { __Client };
|
|
|
17
17
|
/**
|
|
18
18
|
* @public
|
|
19
19
|
*/
|
|
20
|
-
export type ServiceInputTypes =
|
|
20
|
+
export type ServiceInputTypes = CreatePbxOAuth2ClientCommandInput | DeletePbxOAuth2ClientCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | GetPbxesCommandInput | UpdatePbxOAuth2ClientCommandInput;
|
|
21
21
|
/**
|
|
22
22
|
* @public
|
|
23
23
|
*/
|
|
24
|
-
export type ServiceOutputTypes =
|
|
24
|
+
export type ServiceOutputTypes = CreatePbxOAuth2ClientCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | GetPbxesCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
|
|
25
25
|
/**
|
|
26
26
|
* @public
|
|
27
27
|
*/
|
|
@@ -112,7 +112,7 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
112
112
|
/**
|
|
113
113
|
* @public
|
|
114
114
|
*/
|
|
115
|
-
export type WmsApiClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig;
|
|
115
|
+
export type WmsApiClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig;
|
|
116
116
|
/**
|
|
117
117
|
* @public
|
|
118
118
|
*
|
|
@@ -126,7 +126,7 @@ export interface WmsApiClientConfig extends WmsApiClientConfigType {
|
|
|
126
126
|
/**
|
|
127
127
|
* @public
|
|
128
128
|
*/
|
|
129
|
-
export type WmsApiClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig;
|
|
129
|
+
export type WmsApiClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig;
|
|
130
130
|
/**
|
|
131
131
|
* @public
|
|
132
132
|
*
|
|
@@ -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
|
+
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export * from "./CreatePbxColleagueCommand";
|
|
2
1
|
export * from "./CreatePbxOAuth2ClientCommand";
|
|
3
|
-
export * from "./DeletePbxColleagueCommand";
|
|
4
2
|
export * from "./DeletePbxOAuth2ClientCommand";
|
|
5
3
|
export * from "./GetPbxAclGroupsPermissionsCommand";
|
|
6
4
|
export * from "./GetPbxCallGroupsCommand";
|
|
7
5
|
export * from "./GetPbxColleaguesCommand";
|
|
6
|
+
export * from "./GetPbxesCommand";
|
|
8
7
|
export * from "./GetPbxOAuth2ClientsCommand";
|
|
9
8
|
export * from "./UpdatePbxOAuth2ClientCommand";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "./WmsApiClient";
|
|
2
2
|
export * from "./WmsApi";
|
|
3
|
-
export { RuntimeExtension } from "./runtimeExtensions";
|
|
4
|
-
export { WmsApiExtensionConfiguration } from "./extensionConfiguration";
|
|
3
|
+
export type { RuntimeExtension } from "./runtimeExtensions";
|
|
4
|
+
export type { WmsApiExtensionConfiguration } from "./extensionConfiguration";
|
|
5
5
|
export * from "./commands";
|
|
6
6
|
export * from "./models";
|
|
7
7
|
export { WmsApiServiceException } from "./models/WmsApiServiceException";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
|
|
2
|
-
export {
|
|
2
|
+
export type { __ServiceExceptionOptions };
|
|
3
|
+
export { __ServiceException };
|
|
3
4
|
/**
|
|
4
5
|
* @public
|
|
5
6
|
*
|