@wildix/wms-api-client 1.1.8 → 1.1.10

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.
@@ -9,7 +9,9 @@ const GetPbxCallGroupsCommand_1 = require("./commands/GetPbxCallGroupsCommand");
9
9
  const GetPbxColleaguesCommand_1 = require("./commands/GetPbxColleaguesCommand");
10
10
  const GetPbxOAuth2ClientsCommand_1 = require("./commands/GetPbxOAuth2ClientsCommand");
11
11
  const GetPbxesCommand_1 = require("./commands/GetPbxesCommand");
12
+ const NotificationsCommand_1 = require("./commands/NotificationsCommand");
12
13
  const OriginateCallCommand_1 = require("./commands/OriginateCallCommand");
14
+ const OriginateCommand_1 = require("./commands/OriginateCommand");
13
15
  const UpdatePbxOAuth2ClientCommand_1 = require("./commands/UpdatePbxOAuth2ClientCommand");
14
16
  const smithy_client_1 = require("@smithy/smithy-client");
15
17
  const commands = {
@@ -20,6 +22,8 @@ const commands = {
20
22
  GetPbxColleaguesCommand: GetPbxColleaguesCommand_1.GetPbxColleaguesCommand,
21
23
  GetPbxesCommand: GetPbxesCommand_1.GetPbxesCommand,
22
24
  GetPbxOAuth2ClientsCommand: GetPbxOAuth2ClientsCommand_1.GetPbxOAuth2ClientsCommand,
25
+ NotificationsCommand: NotificationsCommand_1.NotificationsCommand,
26
+ OriginateCommand: OriginateCommand_1.OriginateCommand,
23
27
  OriginateCallCommand: OriginateCallCommand_1.OriginateCallCommand,
24
28
  UpdatePbxOAuth2ClientCommand: UpdatePbxOAuth2ClientCommand_1.UpdatePbxOAuth2ClientCommand,
25
29
  };
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationsCommand = 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 NotificationsCommand 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", "Notifications", {})
15
+ .n("WmsApiClient", "NotificationsCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_NotificationsCommand)
18
+ .de(Aws_restJson1_1.de_NotificationsCommand)
19
+ .build() {
20
+ }
21
+ exports.NotificationsCommand = NotificationsCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OriginateCommand = 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 OriginateCommand 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", "Originate", {})
15
+ .n("WmsApiClient", "OriginateCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_OriginateCommand)
18
+ .de(Aws_restJson1_1.de_OriginateCommand)
19
+ .build() {
20
+ }
21
+ exports.OriginateCommand = OriginateCommand;
@@ -8,5 +8,7 @@ tslib_1.__exportStar(require("./GetPbxCallGroupsCommand"), exports);
8
8
  tslib_1.__exportStar(require("./GetPbxColleaguesCommand"), exports);
9
9
  tslib_1.__exportStar(require("./GetPbxesCommand"), exports);
10
10
  tslib_1.__exportStar(require("./GetPbxOAuth2ClientsCommand"), exports);
11
+ tslib_1.__exportStar(require("./NotificationsCommand"), exports);
12
+ tslib_1.__exportStar(require("./OriginateCommand"), exports);
11
13
  tslib_1.__exportStar(require("./OriginateCallCommand"), exports);
12
14
  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_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;
3
+ exports.de_UpdatePbxOAuth2ClientCommand = exports.de_OriginateCallCommand = exports.de_OriginateCommand = exports.de_NotificationsCommand = 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_OriginateCommand = exports.se_NotificationsCommand = 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");
@@ -128,6 +128,59 @@ const se_GetPbxOAuth2ClientsCommand = async (input, context) => {
128
128
  return b.build();
129
129
  };
130
130
  exports.se_GetPbxOAuth2ClientsCommand = se_GetPbxOAuth2ClientsCommand;
131
+ const se_NotificationsCommand = 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/notifications");
137
+ let body;
138
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
139
+ 'broadcastMessage': [],
140
+ 'conferenceId': [],
141
+ 'confirmationTimeout': [],
142
+ 'customRid': [],
143
+ 'event': [],
144
+ 'from': [],
145
+ 'notificationType': [],
146
+ 'origin': [],
147
+ 'playFrequency': [],
148
+ 'priority': [],
149
+ 'queueTimeout': [],
150
+ }));
151
+ b.m("POST")
152
+ .h(headers)
153
+ .b(body);
154
+ return b.build();
155
+ };
156
+ exports.se_NotificationsCommand = se_NotificationsCommand;
157
+ const se_OriginateCommand = async (input, context) => {
158
+ const b = (0, core_1.requestBuilder)(input, context);
159
+ const headers = {
160
+ 'content-type': 'application/json',
161
+ };
162
+ b.bp("/api/v1/originate");
163
+ let body;
164
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
165
+ 'account': [],
166
+ 'actionid': [],
167
+ 'application': [],
168
+ 'async': [],
169
+ 'callerid': [],
170
+ 'channel': [],
171
+ 'context': [],
172
+ 'data': [],
173
+ 'exten': [],
174
+ 'priority': [],
175
+ 'timeout': [],
176
+ 'variable': [],
177
+ }));
178
+ b.m("POST")
179
+ .h(headers)
180
+ .b(body);
181
+ return b.build();
182
+ };
183
+ exports.se_OriginateCommand = se_OriginateCommand;
131
184
  const se_OriginateCallCommand = async (input, context) => {
132
185
  const b = (0, core_1.requestBuilder)(input, context);
133
186
  const headers = {
@@ -276,6 +329,38 @@ const de_GetPbxOAuth2ClientsCommand = async (output, context) => {
276
329
  return contents;
277
330
  };
278
331
  exports.de_GetPbxOAuth2ClientsCommand = de_GetPbxOAuth2ClientsCommand;
332
+ const de_NotificationsCommand = async (output, context) => {
333
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
334
+ return de_CommandError(output, context);
335
+ }
336
+ const contents = (0, smithy_client_1.map)({
337
+ $metadata: deserializeMetadata(output),
338
+ });
339
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
340
+ const doc = (0, smithy_client_1.take)(data, {
341
+ 'result': smithy_client_1._json,
342
+ 'type': smithy_client_1.expectString,
343
+ });
344
+ Object.assign(contents, doc);
345
+ return contents;
346
+ };
347
+ exports.de_NotificationsCommand = de_NotificationsCommand;
348
+ const de_OriginateCommand = async (output, context) => {
349
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
350
+ return de_CommandError(output, context);
351
+ }
352
+ const contents = (0, smithy_client_1.map)({
353
+ $metadata: deserializeMetadata(output),
354
+ });
355
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
356
+ const doc = (0, smithy_client_1.take)(data, {
357
+ 'result': smithy_client_1.expectString,
358
+ 'type': smithy_client_1.expectString,
359
+ });
360
+ Object.assign(contents, doc);
361
+ return contents;
362
+ };
363
+ exports.de_OriginateCommand = de_OriginateCommand;
279
364
  const de_OriginateCallCommand = async (output, context) => {
280
365
  if (output.statusCode !== 200 && output.statusCode >= 300) {
281
366
  return de_CommandError(output, context);
package/dist-es/WmsApi.js CHANGED
@@ -6,7 +6,9 @@ import { GetPbxCallGroupsCommand, } from "./commands/GetPbxCallGroupsCommand";
6
6
  import { GetPbxColleaguesCommand, } from "./commands/GetPbxColleaguesCommand";
7
7
  import { GetPbxOAuth2ClientsCommand, } from "./commands/GetPbxOAuth2ClientsCommand";
8
8
  import { GetPbxesCommand, } from "./commands/GetPbxesCommand";
9
+ import { NotificationsCommand, } from "./commands/NotificationsCommand";
9
10
  import { OriginateCallCommand, } from "./commands/OriginateCallCommand";
11
+ import { OriginateCommand, } from "./commands/OriginateCommand";
10
12
  import { UpdatePbxOAuth2ClientCommand, } from "./commands/UpdatePbxOAuth2ClientCommand";
11
13
  import { createAggregatedClient } from "@smithy/smithy-client";
12
14
  const commands = {
@@ -17,6 +19,8 @@ const commands = {
17
19
  GetPbxColleaguesCommand,
18
20
  GetPbxesCommand,
19
21
  GetPbxOAuth2ClientsCommand,
22
+ NotificationsCommand,
23
+ OriginateCommand,
20
24
  OriginateCallCommand,
21
25
  UpdatePbxOAuth2ClientCommand,
22
26
  };
@@ -0,0 +1,17 @@
1
+ import { de_NotificationsCommand, se_NotificationsCommand, } 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 NotificationsCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WmsApi", "Notifications", {})
12
+ .n("WmsApiClient", "NotificationsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_NotificationsCommand)
15
+ .de(de_NotificationsCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_OriginateCommand, se_OriginateCommand, } 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 OriginateCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WmsApi", "Originate", {})
12
+ .n("WmsApiClient", "OriginateCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_OriginateCommand)
15
+ .de(de_OriginateCommand)
16
+ .build() {
17
+ }
@@ -5,5 +5,7 @@ export * from "./GetPbxCallGroupsCommand";
5
5
  export * from "./GetPbxColleaguesCommand";
6
6
  export * from "./GetPbxesCommand";
7
7
  export * from "./GetPbxOAuth2ClientsCommand";
8
+ export * from "./NotificationsCommand";
9
+ export * from "./OriginateCommand";
8
10
  export * from "./OriginateCallCommand";
9
11
  export * from "./UpdatePbxOAuth2ClientCommand";
@@ -118,6 +118,57 @@ export const se_GetPbxOAuth2ClientsCommand = async (input, context) => {
118
118
  .b(body);
119
119
  return b.build();
120
120
  };
121
+ export const se_NotificationsCommand = async (input, context) => {
122
+ const b = rb(input, context);
123
+ const headers = {
124
+ 'content-type': 'application/json',
125
+ };
126
+ b.bp("/api/v1/notifications");
127
+ let body;
128
+ body = JSON.stringify(take(input, {
129
+ 'broadcastMessage': [],
130
+ 'conferenceId': [],
131
+ 'confirmationTimeout': [],
132
+ 'customRid': [],
133
+ 'event': [],
134
+ 'from': [],
135
+ 'notificationType': [],
136
+ 'origin': [],
137
+ 'playFrequency': [],
138
+ 'priority': [],
139
+ 'queueTimeout': [],
140
+ }));
141
+ b.m("POST")
142
+ .h(headers)
143
+ .b(body);
144
+ return b.build();
145
+ };
146
+ export const se_OriginateCommand = async (input, context) => {
147
+ const b = rb(input, context);
148
+ const headers = {
149
+ 'content-type': 'application/json',
150
+ };
151
+ b.bp("/api/v1/originate");
152
+ let body;
153
+ body = JSON.stringify(take(input, {
154
+ 'account': [],
155
+ 'actionid': [],
156
+ 'application': [],
157
+ 'async': [],
158
+ 'callerid': [],
159
+ 'channel': [],
160
+ 'context': [],
161
+ 'data': [],
162
+ 'exten': [],
163
+ 'priority': [],
164
+ 'timeout': [],
165
+ 'variable': [],
166
+ }));
167
+ b.m("POST")
168
+ .h(headers)
169
+ .b(body);
170
+ return b.build();
171
+ };
121
172
  export const se_OriginateCallCommand = async (input, context) => {
122
173
  const b = rb(input, context);
123
174
  const headers = {
@@ -257,6 +308,36 @@ export const de_GetPbxOAuth2ClientsCommand = async (output, context) => {
257
308
  Object.assign(contents, doc);
258
309
  return contents;
259
310
  };
311
+ export const de_NotificationsCommand = async (output, context) => {
312
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
313
+ return de_CommandError(output, context);
314
+ }
315
+ const contents = map({
316
+ $metadata: deserializeMetadata(output),
317
+ });
318
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
319
+ const doc = take(data, {
320
+ 'result': _json,
321
+ 'type': __expectString,
322
+ });
323
+ Object.assign(contents, doc);
324
+ return contents;
325
+ };
326
+ export const de_OriginateCommand = async (output, context) => {
327
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
328
+ return de_CommandError(output, context);
329
+ }
330
+ const contents = map({
331
+ $metadata: deserializeMetadata(output),
332
+ });
333
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
334
+ const doc = take(data, {
335
+ 'result': __expectString,
336
+ 'type': __expectString,
337
+ });
338
+ Object.assign(contents, doc);
339
+ return contents;
340
+ };
260
341
  export const de_OriginateCallCommand = async (output, context) => {
261
342
  if (output.statusCode !== 200 && output.statusCode >= 300) {
262
343
  return de_CommandError(output, context);
@@ -6,7 +6,9 @@ import { GetPbxCallGroupsCommandInput, GetPbxCallGroupsCommandOutput } from "./c
6
6
  import { GetPbxColleaguesCommandInput, GetPbxColleaguesCommandOutput } from "./commands/GetPbxColleaguesCommand";
7
7
  import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } from "./commands/GetPbxOAuth2ClientsCommand";
8
8
  import { GetPbxesCommandInput, GetPbxesCommandOutput } from "./commands/GetPbxesCommand";
9
+ import { NotificationsCommandInput, NotificationsCommandOutput } from "./commands/NotificationsCommand";
9
10
  import { OriginateCallCommandInput, OriginateCallCommandOutput } from "./commands/OriginateCallCommand";
11
+ import { OriginateCommandInput, OriginateCommandOutput } from "./commands/OriginateCommand";
10
12
  import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "./commands/UpdatePbxOAuth2ClientCommand";
11
13
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
12
14
  export interface WmsApi {
@@ -57,6 +59,18 @@ export interface WmsApi {
57
59
  getPbxOAuth2Clients(args: GetPbxOAuth2ClientsCommandInput, options?: __HttpHandlerOptions): Promise<GetPbxOAuth2ClientsCommandOutput>;
58
60
  getPbxOAuth2Clients(args: GetPbxOAuth2ClientsCommandInput, cb: (err: any, data?: GetPbxOAuth2ClientsCommandOutput) => void): void;
59
61
  getPbxOAuth2Clients(args: GetPbxOAuth2ClientsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPbxOAuth2ClientsCommandOutput) => void): void;
62
+ /**
63
+ * @see {@link NotificationsCommand}
64
+ */
65
+ notifications(args: NotificationsCommandInput, options?: __HttpHandlerOptions): Promise<NotificationsCommandOutput>;
66
+ notifications(args: NotificationsCommandInput, cb: (err: any, data?: NotificationsCommandOutput) => void): void;
67
+ notifications(args: NotificationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: NotificationsCommandOutput) => void): void;
68
+ /**
69
+ * @see {@link OriginateCommand}
70
+ */
71
+ originate(args: OriginateCommandInput, options?: __HttpHandlerOptions): Promise<OriginateCommandOutput>;
72
+ originate(args: OriginateCommandInput, cb: (err: any, data?: OriginateCommandOutput) => void): void;
73
+ originate(args: OriginateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: OriginateCommandOutput) => void): void;
60
74
  /**
61
75
  * @see {@link OriginateCallCommand}
62
76
  */
@@ -5,7 +5,9 @@ import { GetPbxCallGroupsCommandInput, GetPbxCallGroupsCommandOutput } from "./c
5
5
  import { GetPbxColleaguesCommandInput, GetPbxColleaguesCommandOutput } from "./commands/GetPbxColleaguesCommand";
6
6
  import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } from "./commands/GetPbxOAuth2ClientsCommand";
7
7
  import { GetPbxesCommandInput, GetPbxesCommandOutput } from "./commands/GetPbxesCommand";
8
+ import { NotificationsCommandInput, NotificationsCommandOutput } from "./commands/NotificationsCommand";
8
9
  import { OriginateCallCommandInput, OriginateCallCommandOutput } from "./commands/OriginateCallCommand";
10
+ import { OriginateCommandInput, OriginateCommandOutput } from "./commands/OriginateCommand";
9
11
  import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "./commands/UpdatePbxOAuth2ClientCommand";
10
12
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
11
13
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
@@ -18,11 +20,11 @@ export { __Client };
18
20
  /**
19
21
  * @public
20
22
  */
21
- export type ServiceInputTypes = CreatePbxOAuth2ClientCommandInput | DeletePbxOAuth2ClientCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | GetPbxesCommandInput | OriginateCallCommandInput | UpdatePbxOAuth2ClientCommandInput;
23
+ export type ServiceInputTypes = CreatePbxOAuth2ClientCommandInput | DeletePbxOAuth2ClientCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | GetPbxesCommandInput | NotificationsCommandInput | OriginateCallCommandInput | OriginateCommandInput | UpdatePbxOAuth2ClientCommandInput;
22
24
  /**
23
25
  * @public
24
26
  */
25
- export type ServiceOutputTypes = CreatePbxOAuth2ClientCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | GetPbxesCommandOutput | OriginateCallCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
27
+ export type ServiceOutputTypes = CreatePbxOAuth2ClientCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | GetPbxesCommandOutput | NotificationsCommandOutput | OriginateCallCommandOutput | OriginateCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
26
28
  /**
27
29
  * @public
28
30
  */
@@ -0,0 +1,75 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
2
+ import { NotificationsInput, NotificationsOutput } 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 NotificationsCommand}.
14
+ */
15
+ export interface NotificationsCommandInput extends NotificationsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link NotificationsCommand}.
21
+ */
22
+ export interface NotificationsCommandOutput extends NotificationsOutput, __MetadataBearer {
23
+ }
24
+ declare const NotificationsCommand_base: {
25
+ new (input: NotificationsCommandInput): import("@smithy/smithy-client").CommandImpl<NotificationsCommandInput, NotificationsCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: NotificationsCommandInput): import("@smithy/smithy-client").CommandImpl<NotificationsCommandInput, NotificationsCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Notifications
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WmsApiClient, NotificationsCommand } from "@wildix/wms-api-client"; // ES Modules import
35
+ * // const { WmsApiClient, NotificationsCommand } = require("@wildix/wms-api-client"); // CommonJS import
36
+ * const client = new WmsApiClient(config);
37
+ * const input = { // NotificationsInput
38
+ * from: "STRING_VALUE", // required
39
+ * notificationType: "STRING_VALUE", // required
40
+ * event: "STRING_VALUE", // required
41
+ * broadcastMessage: "STRING_VALUE", // required
42
+ * conferenceId: "STRING_VALUE", // required
43
+ * playFrequency: Number("int"),
44
+ * confirmationTimeout: Number("int"),
45
+ * queueTimeout: Number("int"),
46
+ * origin: "STRING_VALUE",
47
+ * priority: Number("int"),
48
+ * customRid: "STRING_VALUE",
49
+ * };
50
+ * const command = new NotificationsCommand(input);
51
+ * const response = await client.send(command);
52
+ * // { // NotificationsOutput
53
+ * // type: "result" || "error", // required
54
+ * // result: { // NotificationsOutputResult
55
+ * // id: "STRING_VALUE", // required
56
+ * // },
57
+ * // };
58
+ *
59
+ * ```
60
+ *
61
+ * @param NotificationsCommandInput - {@link NotificationsCommandInput}
62
+ * @returns {@link NotificationsCommandOutput}
63
+ * @see {@link NotificationsCommandInput} for command's `input` shape.
64
+ * @see {@link NotificationsCommandOutput} 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 NotificationsCommand extends NotificationsCommand_base {
75
+ }
@@ -0,0 +1,74 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
2
+ import { OriginateInput, OriginateOutput } 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 OriginateCommand}.
14
+ */
15
+ export interface OriginateCommandInput extends OriginateInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link OriginateCommand}.
21
+ */
22
+ export interface OriginateCommandOutput extends OriginateOutput, __MetadataBearer {
23
+ }
24
+ declare const OriginateCommand_base: {
25
+ new (input: OriginateCommandInput): import("@smithy/smithy-client").CommandImpl<OriginateCommandInput, OriginateCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: OriginateCommandInput): import("@smithy/smithy-client").CommandImpl<OriginateCommandInput, OriginateCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Originate
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WmsApiClient, OriginateCommand } from "@wildix/wms-api-client"; // ES Modules import
35
+ * // const { WmsApiClient, OriginateCommand } = require("@wildix/wms-api-client"); // CommonJS import
36
+ * const client = new WmsApiClient(config);
37
+ * const input = { // OriginateInput
38
+ * channel: "STRING_VALUE", // required
39
+ * exten: "STRING_VALUE",
40
+ * context: "STRING_VALUE",
41
+ * priority: "STRING_VALUE",
42
+ * application: "STRING_VALUE",
43
+ * data: "STRING_VALUE",
44
+ * timeout: "STRING_VALUE",
45
+ * callerid: "STRING_VALUE",
46
+ * variable: "STRING_VALUE",
47
+ * account: "STRING_VALUE",
48
+ * async: "STRING_VALUE",
49
+ * actionid: "STRING_VALUE",
50
+ * };
51
+ * const command = new OriginateCommand(input);
52
+ * const response = await client.send(command);
53
+ * // { // OriginateOutput
54
+ * // type: "result" || "error", // required
55
+ * // result: "Success", // required
56
+ * // };
57
+ *
58
+ * ```
59
+ *
60
+ * @param OriginateCommandInput - {@link OriginateCommandInput}
61
+ * @returns {@link OriginateCommandOutput}
62
+ * @see {@link OriginateCommandInput} for command's `input` shape.
63
+ * @see {@link OriginateCommandOutput} for command's `response` shape.
64
+ * @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
65
+ *
66
+ * @throws {@link WmsUnauthorizedException} (client fault)
67
+ *
68
+ * @throws {@link WmsApiServiceException}
69
+ * <p>Base exception class for all service exceptions from WmsApi service.</p>
70
+ *
71
+ * @public
72
+ */
73
+ export declare class OriginateCommand extends OriginateCommand_base {
74
+ }
@@ -5,5 +5,7 @@ export * from "./GetPbxCallGroupsCommand";
5
5
  export * from "./GetPbxColleaguesCommand";
6
6
  export * from "./GetPbxesCommand";
7
7
  export * from "./GetPbxOAuth2ClientsCommand";
8
+ export * from "./NotificationsCommand";
9
+ export * from "./OriginateCommand";
8
10
  export * from "./OriginateCallCommand";
9
11
  export * from "./UpdatePbxOAuth2ClientCommand";
@@ -434,6 +434,96 @@ export interface GetPbxOAuth2ClientsOutput {
434
434
  type: ResponseType;
435
435
  result: GetPbxOAuth2ClientsResult;
436
436
  }
437
+ /**
438
+ * @public
439
+ */
440
+ export interface NotificationsInput {
441
+ /**
442
+ * Information about the source of the notification. For example, the name of the camera.
443
+ * @public
444
+ */
445
+ from: string;
446
+ /**
447
+ * Type of the alert that is generated.
448
+ * @public
449
+ */
450
+ notificationType: string;
451
+ /**
452
+ * Information about the event. What happened.
453
+ * @public
454
+ */
455
+ event: string;
456
+ /**
457
+ * The message for announcing into a conference.
458
+ * @public
459
+ */
460
+ broadcastMessage: string;
461
+ /**
462
+ * The conference ID to which the message will be sent.
463
+ * @public
464
+ */
465
+ conferenceId: string;
466
+ /**
467
+ * How often (each N seconds) a request has to be repeated.
468
+ * @public
469
+ */
470
+ playFrequency?: number;
471
+ /**
472
+ * How many seconds the request should wait for the confirmation after the start.
473
+ * @public
474
+ */
475
+ confirmationTimeout?: number;
476
+ /**
477
+ * How many seconds the queued request should wait for starting processing.
478
+ * @public
479
+ */
480
+ queueTimeout?: number;
481
+ /**
482
+ * Indicates the source of the request.
483
+ * @public
484
+ */
485
+ origin?: string;
486
+ /**
487
+ * The priority of the notification.
488
+ * @public
489
+ */
490
+ priority?: number;
491
+ /**
492
+ * The custom request ID.
493
+ * @public
494
+ */
495
+ customRid?: string;
496
+ }
497
+ /**
498
+ * @public
499
+ */
500
+ export interface NotificationsOutputResult {
501
+ id: string;
502
+ }
503
+ /**
504
+ * @public
505
+ */
506
+ export interface NotificationsOutput {
507
+ type: ResponseType;
508
+ result: NotificationsOutputResult;
509
+ }
510
+ /**
511
+ * @public
512
+ */
513
+ export interface OriginateInput {
514
+ channel: string;
515
+ exten?: string;
516
+ context?: string;
517
+ priority?: string;
518
+ application?: string;
519
+ data?: string;
520
+ timeout?: string;
521
+ callerid?: string;
522
+ variable?: string;
523
+ account?: string;
524
+ async?: string;
525
+ actionid?: string;
526
+ }
437
527
  /**
438
528
  * @public
439
529
  * @enum
@@ -445,6 +535,13 @@ export declare const ResponseResult: {
445
535
  * @public
446
536
  */
447
537
  export type ResponseResult = typeof ResponseResult[keyof typeof ResponseResult];
538
+ /**
539
+ * @public
540
+ */
541
+ export interface OriginateOutput {
542
+ type: ResponseType;
543
+ result: ResponseResult;
544
+ }
448
545
  /**
449
546
  * @public
450
547
  */
@@ -5,7 +5,9 @@ import { GetPbxCallGroupsCommandInput, GetPbxCallGroupsCommandOutput } from "../
5
5
  import { GetPbxColleaguesCommandInput, GetPbxColleaguesCommandOutput } from "../commands/GetPbxColleaguesCommand";
6
6
  import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } from "../commands/GetPbxOAuth2ClientsCommand";
7
7
  import { GetPbxesCommandInput, GetPbxesCommandOutput } from "../commands/GetPbxesCommand";
8
+ import { NotificationsCommandInput, NotificationsCommandOutput } from "../commands/NotificationsCommand";
8
9
  import { OriginateCallCommandInput, OriginateCallCommandOutput } from "../commands/OriginateCallCommand";
10
+ import { OriginateCommandInput, OriginateCommandOutput } from "../commands/OriginateCommand";
9
11
  import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "../commands/UpdatePbxOAuth2ClientCommand";
10
12
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
11
13
  import { SerdeContext as __SerdeContext } from "@smithy/types";
@@ -37,6 +39,14 @@ export declare const se_GetPbxesCommand: (input: GetPbxesCommandInput, context:
37
39
  * serializeAws_restJson1GetPbxOAuth2ClientsCommand
38
40
  */
39
41
  export declare const se_GetPbxOAuth2ClientsCommand: (input: GetPbxOAuth2ClientsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
42
+ /**
43
+ * serializeAws_restJson1NotificationsCommand
44
+ */
45
+ export declare const se_NotificationsCommand: (input: NotificationsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
46
+ /**
47
+ * serializeAws_restJson1OriginateCommand
48
+ */
49
+ export declare const se_OriginateCommand: (input: OriginateCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
40
50
  /**
41
51
  * serializeAws_restJson1OriginateCallCommand
42
52
  */
@@ -73,6 +83,14 @@ export declare const de_GetPbxesCommand: (output: __HttpResponse, context: __Ser
73
83
  * deserializeAws_restJson1GetPbxOAuth2ClientsCommand
74
84
  */
75
85
  export declare const de_GetPbxOAuth2ClientsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPbxOAuth2ClientsCommandOutput>;
86
+ /**
87
+ * deserializeAws_restJson1NotificationsCommand
88
+ */
89
+ export declare const de_NotificationsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<NotificationsCommandOutput>;
90
+ /**
91
+ * deserializeAws_restJson1OriginateCommand
92
+ */
93
+ export declare const de_OriginateCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<OriginateCommandOutput>;
76
94
  /**
77
95
  * deserializeAws_restJson1OriginateCallCommand
78
96
  */
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.8",
4
+ "version": "1.1.10",
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",