@wildix/wms-api-client 1.1.9 → 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.
- package/dist-cjs/WmsApi.js +2 -0
- package/dist-cjs/commands/NotificationsCommand.js +21 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +43 -1
- package/dist-es/WmsApi.js +2 -0
- package/dist-es/commands/NotificationsCommand.js +17 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +40 -0
- package/dist-types/WmsApi.d.ts +7 -0
- package/dist-types/WmsApiClient.d.ts +3 -2
- package/dist-types/commands/NotificationsCommand.d.ts +75 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +73 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +1 -1
package/dist-cjs/WmsApi.js
CHANGED
|
@@ -9,6 +9,7 @@ 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");
|
|
13
14
|
const OriginateCommand_1 = require("./commands/OriginateCommand");
|
|
14
15
|
const UpdatePbxOAuth2ClientCommand_1 = require("./commands/UpdatePbxOAuth2ClientCommand");
|
|
@@ -21,6 +22,7 @@ const commands = {
|
|
|
21
22
|
GetPbxColleaguesCommand: GetPbxColleaguesCommand_1.GetPbxColleaguesCommand,
|
|
22
23
|
GetPbxesCommand: GetPbxesCommand_1.GetPbxesCommand,
|
|
23
24
|
GetPbxOAuth2ClientsCommand: GetPbxOAuth2ClientsCommand_1.GetPbxOAuth2ClientsCommand,
|
|
25
|
+
NotificationsCommand: NotificationsCommand_1.NotificationsCommand,
|
|
24
26
|
OriginateCommand: OriginateCommand_1.OriginateCommand,
|
|
25
27
|
OriginateCallCommand: OriginateCallCommand_1.OriginateCallCommand,
|
|
26
28
|
UpdatePbxOAuth2ClientCommand: UpdatePbxOAuth2ClientCommand_1.UpdatePbxOAuth2ClientCommand,
|
|
@@ -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;
|
|
@@ -8,6 +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);
|
|
11
12
|
tslib_1.__exportStar(require("./OriginateCommand"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./OriginateCallCommand"), exports);
|
|
13
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_OriginateCommand = 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_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,32 @@ 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;
|
|
131
157
|
const se_OriginateCommand = async (input, context) => {
|
|
132
158
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
133
159
|
const headers = {
|
|
@@ -303,6 +329,22 @@ const de_GetPbxOAuth2ClientsCommand = async (output, context) => {
|
|
|
303
329
|
return contents;
|
|
304
330
|
};
|
|
305
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;
|
|
306
348
|
const de_OriginateCommand = async (output, context) => {
|
|
307
349
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
308
350
|
return de_CommandError(output, context);
|
package/dist-es/WmsApi.js
CHANGED
|
@@ -6,6 +6,7 @@ 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";
|
|
10
11
|
import { OriginateCommand, } from "./commands/OriginateCommand";
|
|
11
12
|
import { UpdatePbxOAuth2ClientCommand, } from "./commands/UpdatePbxOAuth2ClientCommand";
|
|
@@ -18,6 +19,7 @@ const commands = {
|
|
|
18
19
|
GetPbxColleaguesCommand,
|
|
19
20
|
GetPbxesCommand,
|
|
20
21
|
GetPbxOAuth2ClientsCommand,
|
|
22
|
+
NotificationsCommand,
|
|
21
23
|
OriginateCommand,
|
|
22
24
|
OriginateCallCommand,
|
|
23
25
|
UpdatePbxOAuth2ClientCommand,
|
|
@@ -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
|
+
}
|
|
@@ -5,6 +5,7 @@ export * from "./GetPbxCallGroupsCommand";
|
|
|
5
5
|
export * from "./GetPbxColleaguesCommand";
|
|
6
6
|
export * from "./GetPbxesCommand";
|
|
7
7
|
export * from "./GetPbxOAuth2ClientsCommand";
|
|
8
|
+
export * from "./NotificationsCommand";
|
|
8
9
|
export * from "./OriginateCommand";
|
|
9
10
|
export * from "./OriginateCallCommand";
|
|
10
11
|
export * from "./UpdatePbxOAuth2ClientCommand";
|
|
@@ -118,6 +118,31 @@ 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
|
+
};
|
|
121
146
|
export const se_OriginateCommand = async (input, context) => {
|
|
122
147
|
const b = rb(input, context);
|
|
123
148
|
const headers = {
|
|
@@ -283,6 +308,21 @@ export const de_GetPbxOAuth2ClientsCommand = async (output, context) => {
|
|
|
283
308
|
Object.assign(contents, doc);
|
|
284
309
|
return contents;
|
|
285
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
|
+
};
|
|
286
326
|
export const de_OriginateCommand = async (output, context) => {
|
|
287
327
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
288
328
|
return de_CommandError(output, context);
|
package/dist-types/WmsApi.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ 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";
|
|
10
11
|
import { OriginateCommandInput, OriginateCommandOutput } from "./commands/OriginateCommand";
|
|
11
12
|
import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "./commands/UpdatePbxOAuth2ClientCommand";
|
|
@@ -58,6 +59,12 @@ export interface WmsApi {
|
|
|
58
59
|
getPbxOAuth2Clients(args: GetPbxOAuth2ClientsCommandInput, options?: __HttpHandlerOptions): Promise<GetPbxOAuth2ClientsCommandOutput>;
|
|
59
60
|
getPbxOAuth2Clients(args: GetPbxOAuth2ClientsCommandInput, cb: (err: any, data?: GetPbxOAuth2ClientsCommandOutput) => void): void;
|
|
60
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;
|
|
61
68
|
/**
|
|
62
69
|
* @see {@link OriginateCommand}
|
|
63
70
|
*/
|
|
@@ -5,6 +5,7 @@ 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";
|
|
9
10
|
import { OriginateCommandInput, OriginateCommandOutput } from "./commands/OriginateCommand";
|
|
10
11
|
import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "./commands/UpdatePbxOAuth2ClientCommand";
|
|
@@ -19,11 +20,11 @@ export { __Client };
|
|
|
19
20
|
/**
|
|
20
21
|
* @public
|
|
21
22
|
*/
|
|
22
|
-
export type ServiceInputTypes = CreatePbxOAuth2ClientCommandInput | DeletePbxOAuth2ClientCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | GetPbxesCommandInput | OriginateCallCommandInput | OriginateCommandInput | UpdatePbxOAuth2ClientCommandInput;
|
|
23
|
+
export type ServiceInputTypes = CreatePbxOAuth2ClientCommandInput | DeletePbxOAuth2ClientCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | GetPbxesCommandInput | NotificationsCommandInput | OriginateCallCommandInput | OriginateCommandInput | UpdatePbxOAuth2ClientCommandInput;
|
|
23
24
|
/**
|
|
24
25
|
* @public
|
|
25
26
|
*/
|
|
26
|
-
export type ServiceOutputTypes = CreatePbxOAuth2ClientCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | GetPbxesCommandOutput | OriginateCallCommandOutput | OriginateCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
|
|
27
|
+
export type ServiceOutputTypes = CreatePbxOAuth2ClientCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | GetPbxesCommandOutput | NotificationsCommandOutput | OriginateCallCommandOutput | OriginateCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
|
|
27
28
|
/**
|
|
28
29
|
* @public
|
|
29
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
|
+
}
|
|
@@ -5,6 +5,7 @@ export * from "./GetPbxCallGroupsCommand";
|
|
|
5
5
|
export * from "./GetPbxColleaguesCommand";
|
|
6
6
|
export * from "./GetPbxesCommand";
|
|
7
7
|
export * from "./GetPbxOAuth2ClientsCommand";
|
|
8
|
+
export * from "./NotificationsCommand";
|
|
8
9
|
export * from "./OriginateCommand";
|
|
9
10
|
export * from "./OriginateCallCommand";
|
|
10
11
|
export * from "./UpdatePbxOAuth2ClientCommand";
|
|
@@ -434,6 +434,79 @@ 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
|
+
}
|
|
437
510
|
/**
|
|
438
511
|
* @public
|
|
439
512
|
*/
|
|
@@ -5,6 +5,7 @@ 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";
|
|
9
10
|
import { OriginateCommandInput, OriginateCommandOutput } from "../commands/OriginateCommand";
|
|
10
11
|
import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "../commands/UpdatePbxOAuth2ClientCommand";
|
|
@@ -38,6 +39,10 @@ export declare const se_GetPbxesCommand: (input: GetPbxesCommandInput, context:
|
|
|
38
39
|
* serializeAws_restJson1GetPbxOAuth2ClientsCommand
|
|
39
40
|
*/
|
|
40
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>;
|
|
41
46
|
/**
|
|
42
47
|
* serializeAws_restJson1OriginateCommand
|
|
43
48
|
*/
|
|
@@ -78,6 +83,10 @@ export declare const de_GetPbxesCommand: (output: __HttpResponse, context: __Ser
|
|
|
78
83
|
* deserializeAws_restJson1GetPbxOAuth2ClientsCommand
|
|
79
84
|
*/
|
|
80
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>;
|
|
81
90
|
/**
|
|
82
91
|
* deserializeAws_restJson1OriginateCommand
|
|
83
92
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wms-api-client",
|
|
3
3
|
"description": "@wildix/wms-api-client client",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.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",
|