@wildix/wms-api-client 1.1.6 → 1.1.8

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.
@@ -8,6 +8,8 @@ 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");
12
+ const OriginateCallCommand_1 = require("./commands/OriginateCallCommand");
11
13
  const UpdatePbxOAuth2ClientCommand_1 = require("./commands/UpdatePbxOAuth2ClientCommand");
12
14
  const smithy_client_1 = require("@smithy/smithy-client");
13
15
  const commands = {
@@ -16,7 +18,9 @@ const commands = {
16
18
  GetPbxAclGroupsPermissionsCommand: GetPbxAclGroupsPermissionsCommand_1.GetPbxAclGroupsPermissionsCommand,
17
19
  GetPbxCallGroupsCommand: GetPbxCallGroupsCommand_1.GetPbxCallGroupsCommand,
18
20
  GetPbxColleaguesCommand: GetPbxColleaguesCommand_1.GetPbxColleaguesCommand,
21
+ GetPbxesCommand: GetPbxesCommand_1.GetPbxesCommand,
19
22
  GetPbxOAuth2ClientsCommand: GetPbxOAuth2ClientsCommand_1.GetPbxOAuth2ClientsCommand,
23
+ OriginateCallCommand: OriginateCallCommand_1.OriginateCallCommand,
20
24
  UpdatePbxOAuth2ClientCommand: UpdatePbxOAuth2ClientCommand_1.UpdatePbxOAuth2ClientCommand,
21
25
  };
22
26
  class WmsApi extends WmsApiClient_1.WmsApiClient {
@@ -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;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OriginateCallCommand = 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 OriginateCallCommand 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", "OriginateCall", {})
15
+ .n("WmsApiClient", "OriginateCallCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_OriginateCallCommand)
18
+ .de(Aws_restJson1_1.de_OriginateCallCommand)
19
+ .build() {
20
+ }
21
+ exports.OriginateCallCommand = OriginateCallCommand;
@@ -6,5 +6,7 @@ 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);
11
+ tslib_1.__exportStar(require("./OriginateCallCommand"), exports);
10
12
  tslib_1.__exportStar(require("./UpdatePbxOAuth2ClientCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PbxColleagueRole = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.WmsNotFoundException = exports.WmsValidationException = exports.WmsUnauthorizedException = exports.ResponseType = exports.AclGroupPermissionAbility = exports.PbxLicenseType = void 0;
3
+ exports.ResponseResult = exports.PbxColleagueRole = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.WmsNotFoundException = exports.WmsValidationException = exports.WmsUnauthorizedException = exports.ResponseType = exports.AclGroupPermissionAbility = exports.PbxLicenseType = void 0;
4
4
  const WmsApiServiceException_1 = require("./WmsApiServiceException");
5
5
  exports.PbxLicenseType = {
6
6
  BASIC: "basic",
@@ -99,3 +99,6 @@ exports.PbxColleagueRole = {
99
99
  ROOM: "room",
100
100
  USER: "user",
101
101
  };
102
+ exports.ResponseResult = {
103
+ SUCCESS: "Success",
104
+ };
@@ -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_OriginateCallCommand = 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_OriginateCallCommand = 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 = {
@@ -114,6 +128,24 @@ const se_GetPbxOAuth2ClientsCommand = async (input, context) => {
114
128
  return b.build();
115
129
  };
116
130
  exports.se_GetPbxOAuth2ClientsCommand = se_GetPbxOAuth2ClientsCommand;
131
+ const se_OriginateCallCommand = async (input, context) => {
132
+ const b = (0, core_1.requestBuilder)(input, context);
133
+ const headers = {
134
+ 'content-type': 'application/json',
135
+ };
136
+ b.bp("/api/v1/originate/call");
137
+ let body;
138
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
139
+ 'name': [],
140
+ 'number': [],
141
+ 'postpone': [],
142
+ }));
143
+ b.m("POST")
144
+ .h(headers)
145
+ .b(body);
146
+ return b.build();
147
+ };
148
+ exports.se_OriginateCallCommand = se_OriginateCallCommand;
117
149
  const se_UpdatePbxOAuth2ClientCommand = async (input, context) => {
118
150
  const b = (0, core_1.requestBuilder)(input, context);
119
151
  const headers = {
@@ -212,6 +244,22 @@ const de_GetPbxColleaguesCommand = async (output, context) => {
212
244
  return contents;
213
245
  };
214
246
  exports.de_GetPbxColleaguesCommand = de_GetPbxColleaguesCommand;
247
+ const de_GetPbxesCommand = async (output, context) => {
248
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
249
+ return de_CommandError(output, context);
250
+ }
251
+ const contents = (0, smithy_client_1.map)({
252
+ $metadata: deserializeMetadata(output),
253
+ });
254
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
255
+ const doc = (0, smithy_client_1.take)(data, {
256
+ 'result': smithy_client_1._json,
257
+ 'type': smithy_client_1.expectString,
258
+ });
259
+ Object.assign(contents, doc);
260
+ return contents;
261
+ };
262
+ exports.de_GetPbxesCommand = de_GetPbxesCommand;
215
263
  const de_GetPbxOAuth2ClientsCommand = async (output, context) => {
216
264
  if (output.statusCode !== 200 && output.statusCode >= 300) {
217
265
  return de_CommandError(output, context);
@@ -228,6 +276,22 @@ const de_GetPbxOAuth2ClientsCommand = async (output, context) => {
228
276
  return contents;
229
277
  };
230
278
  exports.de_GetPbxOAuth2ClientsCommand = de_GetPbxOAuth2ClientsCommand;
279
+ const de_OriginateCallCommand = async (output, context) => {
280
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
281
+ return de_CommandError(output, context);
282
+ }
283
+ const contents = (0, smithy_client_1.map)({
284
+ $metadata: deserializeMetadata(output),
285
+ });
286
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
287
+ const doc = (0, smithy_client_1.take)(data, {
288
+ 'result': smithy_client_1.expectString,
289
+ 'type': smithy_client_1.expectString,
290
+ });
291
+ Object.assign(contents, doc);
292
+ return contents;
293
+ };
294
+ exports.de_OriginateCallCommand = de_OriginateCallCommand;
231
295
  const de_UpdatePbxOAuth2ClientCommand = async (output, context) => {
232
296
  if (output.statusCode !== 200 && output.statusCode >= 300) {
233
297
  return de_CommandError(output, context);
package/dist-es/WmsApi.js CHANGED
@@ -5,6 +5,8 @@ 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";
9
+ import { OriginateCallCommand, } from "./commands/OriginateCallCommand";
8
10
  import { UpdatePbxOAuth2ClientCommand, } from "./commands/UpdatePbxOAuth2ClientCommand";
9
11
  import { createAggregatedClient } from "@smithy/smithy-client";
10
12
  const commands = {
@@ -13,7 +15,9 @@ const commands = {
13
15
  GetPbxAclGroupsPermissionsCommand,
14
16
  GetPbxCallGroupsCommand,
15
17
  GetPbxColleaguesCommand,
18
+ GetPbxesCommand,
16
19
  GetPbxOAuth2ClientsCommand,
20
+ OriginateCallCommand,
17
21
  UpdatePbxOAuth2ClientCommand,
18
22
  };
19
23
  export class WmsApi extends WmsApiClient {
@@ -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
+ }
@@ -0,0 +1,17 @@
1
+ import { de_OriginateCallCommand, se_OriginateCallCommand, } 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 OriginateCallCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WmsApi", "OriginateCall", {})
12
+ .n("WmsApiClient", "OriginateCallCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_OriginateCallCommand)
15
+ .de(de_OriginateCallCommand)
16
+ .build() {
17
+ }
@@ -3,5 +3,7 @@ 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";
8
+ export * from "./OriginateCallCommand";
7
9
  export * from "./UpdatePbxOAuth2ClientCommand";
@@ -93,3 +93,6 @@ export const PbxColleagueRole = {
93
93
  ROOM: "room",
94
94
  USER: "user",
95
95
  };
96
+ export const ResponseResult = {
97
+ SUCCESS: "Success",
98
+ };
@@ -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 = {
@@ -105,6 +118,23 @@ export const se_GetPbxOAuth2ClientsCommand = async (input, context) => {
105
118
  .b(body);
106
119
  return b.build();
107
120
  };
121
+ export const se_OriginateCallCommand = async (input, context) => {
122
+ const b = rb(input, context);
123
+ const headers = {
124
+ 'content-type': 'application/json',
125
+ };
126
+ b.bp("/api/v1/originate/call");
127
+ let body;
128
+ body = JSON.stringify(take(input, {
129
+ 'name': [],
130
+ 'number': [],
131
+ 'postpone': [],
132
+ }));
133
+ b.m("POST")
134
+ .h(headers)
135
+ .b(body);
136
+ return b.build();
137
+ };
108
138
  export const se_UpdatePbxOAuth2ClientCommand = async (input, context) => {
109
139
  const b = rb(input, context);
110
140
  const headers = {
@@ -197,6 +227,21 @@ export const de_GetPbxColleaguesCommand = async (output, context) => {
197
227
  Object.assign(contents, doc);
198
228
  return contents;
199
229
  };
230
+ export const de_GetPbxesCommand = async (output, context) => {
231
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
232
+ return de_CommandError(output, context);
233
+ }
234
+ const contents = map({
235
+ $metadata: deserializeMetadata(output),
236
+ });
237
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
238
+ const doc = take(data, {
239
+ 'result': _json,
240
+ 'type': __expectString,
241
+ });
242
+ Object.assign(contents, doc);
243
+ return contents;
244
+ };
200
245
  export const de_GetPbxOAuth2ClientsCommand = async (output, context) => {
201
246
  if (output.statusCode !== 200 && output.statusCode >= 300) {
202
247
  return de_CommandError(output, context);
@@ -212,6 +257,21 @@ export const de_GetPbxOAuth2ClientsCommand = async (output, context) => {
212
257
  Object.assign(contents, doc);
213
258
  return contents;
214
259
  };
260
+ export const de_OriginateCallCommand = async (output, context) => {
261
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
262
+ return de_CommandError(output, context);
263
+ }
264
+ const contents = map({
265
+ $metadata: deserializeMetadata(output),
266
+ });
267
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
268
+ const doc = take(data, {
269
+ 'result': __expectString,
270
+ 'type': __expectString,
271
+ });
272
+ Object.assign(contents, doc);
273
+ return contents;
274
+ };
215
275
  export const de_UpdatePbxOAuth2ClientCommand = async (output, context) => {
216
276
  if (output.statusCode !== 200 && output.statusCode >= 300) {
217
277
  return de_CommandError(output, context);
@@ -5,6 +5,8 @@ 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";
9
+ import { OriginateCallCommandInput, OriginateCallCommandOutput } from "./commands/OriginateCallCommand";
8
10
  import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "./commands/UpdatePbxOAuth2ClientCommand";
9
11
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
10
12
  export interface WmsApi {
@@ -41,6 +43,13 @@ export interface WmsApi {
41
43
  getPbxColleagues(args: GetPbxColleaguesCommandInput, options?: __HttpHandlerOptions): Promise<GetPbxColleaguesCommandOutput>;
42
44
  getPbxColleagues(args: GetPbxColleaguesCommandInput, cb: (err: any, data?: GetPbxColleaguesCommandOutput) => void): void;
43
45
  getPbxColleagues(args: GetPbxColleaguesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPbxColleaguesCommandOutput) => void): void;
46
+ /**
47
+ * @see {@link GetPbxesCommand}
48
+ */
49
+ getPbxes(): Promise<GetPbxesCommandOutput>;
50
+ getPbxes(args: GetPbxesCommandInput, options?: __HttpHandlerOptions): Promise<GetPbxesCommandOutput>;
51
+ getPbxes(args: GetPbxesCommandInput, cb: (err: any, data?: GetPbxesCommandOutput) => void): void;
52
+ getPbxes(args: GetPbxesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPbxesCommandOutput) => void): void;
44
53
  /**
45
54
  * @see {@link GetPbxOAuth2ClientsCommand}
46
55
  */
@@ -48,6 +57,12 @@ export interface WmsApi {
48
57
  getPbxOAuth2Clients(args: GetPbxOAuth2ClientsCommandInput, options?: __HttpHandlerOptions): Promise<GetPbxOAuth2ClientsCommandOutput>;
49
58
  getPbxOAuth2Clients(args: GetPbxOAuth2ClientsCommandInput, cb: (err: any, data?: GetPbxOAuth2ClientsCommandOutput) => void): void;
50
59
  getPbxOAuth2Clients(args: GetPbxOAuth2ClientsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPbxOAuth2ClientsCommandOutput) => void): void;
60
+ /**
61
+ * @see {@link OriginateCallCommand}
62
+ */
63
+ originateCall(args: OriginateCallCommandInput, options?: __HttpHandlerOptions): Promise<OriginateCallCommandOutput>;
64
+ originateCall(args: OriginateCallCommandInput, cb: (err: any, data?: OriginateCallCommandOutput) => void): void;
65
+ originateCall(args: OriginateCallCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: OriginateCallCommandOutput) => void): void;
51
66
  /**
52
67
  * @see {@link UpdatePbxOAuth2ClientCommand}
53
68
  */
@@ -4,6 +4,8 @@ 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";
8
+ import { OriginateCallCommandInput, OriginateCallCommandOutput } from "./commands/OriginateCallCommand";
7
9
  import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "./commands/UpdatePbxOAuth2ClientCommand";
8
10
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
9
11
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
@@ -16,11 +18,11 @@ export { __Client };
16
18
  /**
17
19
  * @public
18
20
  */
19
- export type ServiceInputTypes = CreatePbxOAuth2ClientCommandInput | DeletePbxOAuth2ClientCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | UpdatePbxOAuth2ClientCommandInput;
21
+ export type ServiceInputTypes = CreatePbxOAuth2ClientCommandInput | DeletePbxOAuth2ClientCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | GetPbxesCommandInput | OriginateCallCommandInput | UpdatePbxOAuth2ClientCommandInput;
20
22
  /**
21
23
  * @public
22
24
  */
23
- export type ServiceOutputTypes = CreatePbxOAuth2ClientCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
25
+ export type ServiceOutputTypes = CreatePbxOAuth2ClientCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | GetPbxesCommandOutput | OriginateCallCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
24
26
  /**
25
27
  * @public
26
28
  */
@@ -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
+ }
@@ -0,0 +1,65 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
2
+ import { OriginateCallInput, OriginateCallOutput } 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 OriginateCallCommand}.
14
+ */
15
+ export interface OriginateCallCommandInput extends OriginateCallInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link OriginateCallCommand}.
21
+ */
22
+ export interface OriginateCallCommandOutput extends OriginateCallOutput, __MetadataBearer {
23
+ }
24
+ declare const OriginateCallCommand_base: {
25
+ new (input: OriginateCallCommandInput): import("@smithy/smithy-client").CommandImpl<OriginateCallCommandInput, OriginateCallCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: OriginateCallCommandInput): import("@smithy/smithy-client").CommandImpl<OriginateCallCommandInput, OriginateCallCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Originate call
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WmsApiClient, OriginateCallCommand } from "@wildix/wms-api-client"; // ES Modules import
35
+ * // const { WmsApiClient, OriginateCallCommand } = require("@wildix/wms-api-client"); // CommonJS import
36
+ * const client = new WmsApiClient(config);
37
+ * const input = { // OriginateCallInput
38
+ * number: "STRING_VALUE", // required
39
+ * name: "STRING_VALUE",
40
+ * postpone: "STRING_VALUE",
41
+ * };
42
+ * const command = new OriginateCallCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // OriginateCallOutput
45
+ * // type: "result" || "error", // required
46
+ * // result: "Success", // required
47
+ * // };
48
+ *
49
+ * ```
50
+ *
51
+ * @param OriginateCallCommandInput - {@link OriginateCallCommandInput}
52
+ * @returns {@link OriginateCallCommandOutput}
53
+ * @see {@link OriginateCallCommandInput} for command's `input` shape.
54
+ * @see {@link OriginateCallCommandOutput} for command's `response` shape.
55
+ * @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
56
+ *
57
+ * @throws {@link WmsUnauthorizedException} (client fault)
58
+ *
59
+ * @throws {@link WmsApiServiceException}
60
+ * <p>Base exception class for all service exceptions from WmsApi service.</p>
61
+ *
62
+ * @public
63
+ */
64
+ export declare class OriginateCallCommand extends OriginateCallCommand_base {
65
+ }
@@ -3,5 +3,7 @@ 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";
8
+ export * from "./OriginateCallCommand";
7
9
  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
  */
@@ -407,6 +434,44 @@ export interface GetPbxOAuth2ClientsOutput {
407
434
  type: ResponseType;
408
435
  result: GetPbxOAuth2ClientsResult;
409
436
  }
437
+ /**
438
+ * @public
439
+ * @enum
440
+ */
441
+ export declare const ResponseResult: {
442
+ readonly SUCCESS: "Success";
443
+ };
444
+ /**
445
+ * @public
446
+ */
447
+ export type ResponseResult = typeof ResponseResult[keyof typeof ResponseResult];
448
+ /**
449
+ * @public
450
+ */
451
+ export interface OriginateCallInput {
452
+ /**
453
+ * The phone number.
454
+ * @public
455
+ */
456
+ number: string;
457
+ /**
458
+ * The name
459
+ * @public
460
+ */
461
+ name?: string;
462
+ /**
463
+ * Date of sending the delayed message. (14/07/2015 15:35)
464
+ * @public
465
+ */
466
+ postpone?: string;
467
+ }
468
+ /**
469
+ * @public
470
+ */
471
+ export interface OriginateCallOutput {
472
+ type: ResponseType;
473
+ result: ResponseResult;
474
+ }
410
475
  /**
411
476
  * @public
412
477
  */
@@ -4,6 +4,8 @@ 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";
8
+ import { OriginateCallCommandInput, OriginateCallCommandOutput } from "../commands/OriginateCallCommand";
7
9
  import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "../commands/UpdatePbxOAuth2ClientCommand";
8
10
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
9
11
  import { SerdeContext as __SerdeContext } from "@smithy/types";
@@ -27,10 +29,18 @@ export declare const se_GetPbxCallGroupsCommand: (input: GetPbxCallGroupsCommand
27
29
  * serializeAws_restJson1GetPbxColleaguesCommand
28
30
  */
29
31
  export declare const se_GetPbxColleaguesCommand: (input: GetPbxColleaguesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
32
+ /**
33
+ * serializeAws_restJson1GetPbxesCommand
34
+ */
35
+ export declare const se_GetPbxesCommand: (input: GetPbxesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
30
36
  /**
31
37
  * serializeAws_restJson1GetPbxOAuth2ClientsCommand
32
38
  */
33
39
  export declare const se_GetPbxOAuth2ClientsCommand: (input: GetPbxOAuth2ClientsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
40
+ /**
41
+ * serializeAws_restJson1OriginateCallCommand
42
+ */
43
+ export declare const se_OriginateCallCommand: (input: OriginateCallCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
34
44
  /**
35
45
  * serializeAws_restJson1UpdatePbxOAuth2ClientCommand
36
46
  */
@@ -55,10 +65,18 @@ export declare const de_GetPbxCallGroupsCommand: (output: __HttpResponse, contex
55
65
  * deserializeAws_restJson1GetPbxColleaguesCommand
56
66
  */
57
67
  export declare const de_GetPbxColleaguesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPbxColleaguesCommandOutput>;
68
+ /**
69
+ * deserializeAws_restJson1GetPbxesCommand
70
+ */
71
+ export declare const de_GetPbxesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPbxesCommandOutput>;
58
72
  /**
59
73
  * deserializeAws_restJson1GetPbxOAuth2ClientsCommand
60
74
  */
61
75
  export declare const de_GetPbxOAuth2ClientsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPbxOAuth2ClientsCommandOutput>;
76
+ /**
77
+ * deserializeAws_restJson1OriginateCallCommand
78
+ */
79
+ export declare const de_OriginateCallCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<OriginateCallCommandOutput>;
62
80
  /**
63
81
  * deserializeAws_restJson1UpdatePbxOAuth2ClientCommand
64
82
  */
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.6",
4
+ "version": "1.1.8",
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",