@wildix/wms-api-client 1.1.34 → 1.2.0
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/CallControlDtmfCommand.js +21 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +39 -2
- package/dist-es/WmsApi.js +2 -0
- package/dist-es/commands/CallControlDtmfCommand.js +17 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +35 -0
- package/dist-types/WmsApi.d.ts +7 -0
- package/dist-types/WmsApiClient.d.ts +3 -2
- package/dist-types/commands/CallControlDtmfCommand.d.ts +80 -0
- package/dist-types/commands/NotificationsCommand.d.ts +1 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +35 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/runtimeConfig.browser.d.ts +6 -1
- package/dist-types/runtimeConfig.d.ts +6 -1
- package/dist-types/runtimeConfig.native.d.ts +6 -1
- package/package.json +2 -2
package/dist-cjs/WmsApi.js
CHANGED
|
@@ -5,6 +5,7 @@ const WmsApiClient_1 = require("./WmsApiClient");
|
|
|
5
5
|
const CallControlAnswerCommand_1 = require("./commands/CallControlAnswerCommand");
|
|
6
6
|
const CallControlAttendantTransferCommand_1 = require("./commands/CallControlAttendantTransferCommand");
|
|
7
7
|
const CallControlBlindTransferCommand_1 = require("./commands/CallControlBlindTransferCommand");
|
|
8
|
+
const CallControlDtmfCommand_1 = require("./commands/CallControlDtmfCommand");
|
|
8
9
|
const CallControlHangupCommand_1 = require("./commands/CallControlHangupCommand");
|
|
9
10
|
const CallControlHoldCommand_1 = require("./commands/CallControlHoldCommand");
|
|
10
11
|
const CallControlMakeCallCommand_1 = require("./commands/CallControlMakeCallCommand");
|
|
@@ -38,6 +39,7 @@ const commands = {
|
|
|
38
39
|
CallControlAnswerCommand: CallControlAnswerCommand_1.CallControlAnswerCommand,
|
|
39
40
|
CallControlAttendantTransferCommand: CallControlAttendantTransferCommand_1.CallControlAttendantTransferCommand,
|
|
40
41
|
CallControlBlindTransferCommand: CallControlBlindTransferCommand_1.CallControlBlindTransferCommand,
|
|
42
|
+
CallControlDtmfCommand: CallControlDtmfCommand_1.CallControlDtmfCommand,
|
|
41
43
|
CallControlHangupCommand: CallControlHangupCommand_1.CallControlHangupCommand,
|
|
42
44
|
CallControlHoldCommand: CallControlHoldCommand_1.CallControlHoldCommand,
|
|
43
45
|
CallControlMakeCallCommand: CallControlMakeCallCommand_1.CallControlMakeCallCommand,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CallControlDtmfCommand = 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 CallControlDtmfCommand 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", "CallControlDtmf", {})
|
|
15
|
+
.n("WmsApiClient", "CallControlDtmfCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_CallControlDtmfCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_CallControlDtmfCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.CallControlDtmfCommand = CallControlDtmfCommand;
|
|
@@ -4,6 +4,7 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
tslib_1.__exportStar(require("./CallControlAnswerCommand"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./CallControlAttendantTransferCommand"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./CallControlBlindTransferCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./CallControlDtmfCommand"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./CallControlHangupCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./CallControlHoldCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./CallControlMakeCallCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_UpdatePbxOAuth2ClientCommand = exports.de_ReloadBroadcastsCommand = exports.de_OriginateCallCommand = exports.de_OriginateCommand = exports.de_NotificationsCommand = exports.de_ListUserDevicesCommand = exports.de_ListUserActiveCallsCommand = exports.de_ListPbxGroupsCommand = exports.de_ListPbxDepartmentsCommand = exports.de_GetPersonalInfoCommand = exports.de_GetPbxOAuth2ClientsCommand = exports.de_GetPbxesCommand = void 0;
|
|
3
|
+
exports.de_GetPbxAclGroupsPermissionsCommand = exports.de_GetColleagueByIdCommand = exports.de_GetCallQueuesSettingsCommand = exports.de_DeletePbxOAuth2ClientCommand = exports.de_DeletePbxColleagueCommand = exports.de_DeletePbxAclGroupCommand = exports.de_CreatePbxOAuth2ClientCommand = exports.de_CreatePbxColleagueCommand = exports.de_CreatePbxAclGroupCommand = exports.de_CallControlUpdateContactInfoCommand = exports.de_CallControlUnholdCommand = exports.de_CallControlMakeCallCommand = exports.de_CallControlHoldCommand = exports.de_CallControlHangupCommand = exports.de_CallControlDtmfCommand = exports.de_CallControlBlindTransferCommand = exports.de_CallControlAttendantTransferCommand = exports.de_CallControlAnswerCommand = exports.se_UpdatePbxOAuth2ClientCommand = exports.se_ReloadBroadcastsCommand = exports.se_OriginateCallCommand = exports.se_OriginateCommand = exports.se_NotificationsCommand = exports.se_ListUserDevicesCommand = exports.se_ListUserActiveCallsCommand = exports.se_ListPbxGroupsCommand = exports.se_ListPbxDepartmentsCommand = exports.se_GetPersonalInfoCommand = exports.se_GetPbxOAuth2ClientsCommand = exports.se_GetPbxesCommand = exports.se_GetPbxColleaguesCommand = exports.se_GetPbxCallGroupsCommand = exports.se_GetPbxAclGroupsPermissionsCommand = exports.se_GetColleagueByIdCommand = exports.se_GetCallQueuesSettingsCommand = exports.se_DeletePbxOAuth2ClientCommand = exports.se_DeletePbxColleagueCommand = exports.se_DeletePbxAclGroupCommand = exports.se_CreatePbxOAuth2ClientCommand = exports.se_CreatePbxColleagueCommand = exports.se_CreatePbxAclGroupCommand = exports.se_CallControlUpdateContactInfoCommand = exports.se_CallControlUnholdCommand = exports.se_CallControlMakeCallCommand = exports.se_CallControlHoldCommand = exports.se_CallControlHangupCommand = exports.se_CallControlDtmfCommand = exports.se_CallControlBlindTransferCommand = exports.se_CallControlAttendantTransferCommand = exports.se_CallControlAnswerCommand = void 0;
|
|
4
|
+
exports.de_UpdatePbxOAuth2ClientCommand = exports.de_ReloadBroadcastsCommand = exports.de_OriginateCallCommand = exports.de_OriginateCommand = exports.de_NotificationsCommand = exports.de_ListUserDevicesCommand = exports.de_ListUserActiveCallsCommand = exports.de_ListPbxGroupsCommand = exports.de_ListPbxDepartmentsCommand = exports.de_GetPersonalInfoCommand = exports.de_GetPbxOAuth2ClientsCommand = exports.de_GetPbxesCommand = exports.de_GetPbxColleaguesCommand = exports.de_GetPbxCallGroupsCommand = void 0;
|
|
5
5
|
const WmsApiServiceException_1 = require("../models/WmsApiServiceException");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const core_1 = require("@aws-sdk/core");
|
|
@@ -70,6 +70,27 @@ const se_CallControlBlindTransferCommand = async (input, context) => {
|
|
|
70
70
|
return b.build();
|
|
71
71
|
};
|
|
72
72
|
exports.se_CallControlBlindTransferCommand = se_CallControlBlindTransferCommand;
|
|
73
|
+
const se_CallControlDtmfCommand = async (input, context) => {
|
|
74
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
75
|
+
const headers = {
|
|
76
|
+
'content-type': 'application/json',
|
|
77
|
+
};
|
|
78
|
+
b.bp("/api/v2/call-control/dtmf1111");
|
|
79
|
+
const query = (0, smithy_client_1.map)({
|
|
80
|
+
[_u]: [, input[_u]],
|
|
81
|
+
});
|
|
82
|
+
let body;
|
|
83
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
84
|
+
'digits': [],
|
|
85
|
+
'sipCallId': [],
|
|
86
|
+
}));
|
|
87
|
+
b.m("POST")
|
|
88
|
+
.h(headers)
|
|
89
|
+
.q(query)
|
|
90
|
+
.b(body);
|
|
91
|
+
return b.build();
|
|
92
|
+
};
|
|
93
|
+
exports.se_CallControlDtmfCommand = se_CallControlDtmfCommand;
|
|
73
94
|
const se_CallControlHangupCommand = async (input, context) => {
|
|
74
95
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
75
96
|
const headers = {
|
|
@@ -494,6 +515,7 @@ const se_NotificationsCommand = async (input, context) => {
|
|
|
494
515
|
'playFrequency': [],
|
|
495
516
|
'priority': [],
|
|
496
517
|
'queueTimeout': [],
|
|
518
|
+
'skipTranscribe': [],
|
|
497
519
|
}));
|
|
498
520
|
b.m("POST")
|
|
499
521
|
.h(headers)
|
|
@@ -620,6 +642,21 @@ const de_CallControlBlindTransferCommand = async (output, context) => {
|
|
|
620
642
|
return contents;
|
|
621
643
|
};
|
|
622
644
|
exports.de_CallControlBlindTransferCommand = de_CallControlBlindTransferCommand;
|
|
645
|
+
const de_CallControlDtmfCommand = async (output, context) => {
|
|
646
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
647
|
+
return de_CommandError(output, context);
|
|
648
|
+
}
|
|
649
|
+
const contents = (0, smithy_client_1.map)({
|
|
650
|
+
$metadata: deserializeMetadata(output),
|
|
651
|
+
});
|
|
652
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
653
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
654
|
+
'message': smithy_client_1.expectString,
|
|
655
|
+
});
|
|
656
|
+
Object.assign(contents, doc);
|
|
657
|
+
return contents;
|
|
658
|
+
};
|
|
659
|
+
exports.de_CallControlDtmfCommand = de_CallControlDtmfCommand;
|
|
623
660
|
const de_CallControlHangupCommand = async (output, context) => {
|
|
624
661
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
625
662
|
return de_CommandError(output, context);
|
package/dist-es/WmsApi.js
CHANGED
|
@@ -2,6 +2,7 @@ import { WmsApiClient, } from "./WmsApiClient";
|
|
|
2
2
|
import { CallControlAnswerCommand, } from "./commands/CallControlAnswerCommand";
|
|
3
3
|
import { CallControlAttendantTransferCommand, } from "./commands/CallControlAttendantTransferCommand";
|
|
4
4
|
import { CallControlBlindTransferCommand, } from "./commands/CallControlBlindTransferCommand";
|
|
5
|
+
import { CallControlDtmfCommand, } from "./commands/CallControlDtmfCommand";
|
|
5
6
|
import { CallControlHangupCommand, } from "./commands/CallControlHangupCommand";
|
|
6
7
|
import { CallControlHoldCommand, } from "./commands/CallControlHoldCommand";
|
|
7
8
|
import { CallControlMakeCallCommand, } from "./commands/CallControlMakeCallCommand";
|
|
@@ -35,6 +36,7 @@ const commands = {
|
|
|
35
36
|
CallControlAnswerCommand,
|
|
36
37
|
CallControlAttendantTransferCommand,
|
|
37
38
|
CallControlBlindTransferCommand,
|
|
39
|
+
CallControlDtmfCommand,
|
|
38
40
|
CallControlHangupCommand,
|
|
39
41
|
CallControlHoldCommand,
|
|
40
42
|
CallControlMakeCallCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_CallControlDtmfCommand, se_CallControlDtmfCommand, } 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 CallControlDtmfCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "CallControlDtmf", {})
|
|
12
|
+
.n("WmsApiClient", "CallControlDtmfCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_CallControlDtmfCommand)
|
|
15
|
+
.de(de_CallControlDtmfCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./CallControlAnswerCommand";
|
|
2
2
|
export * from "./CallControlAttendantTransferCommand";
|
|
3
3
|
export * from "./CallControlBlindTransferCommand";
|
|
4
|
+
export * from "./CallControlDtmfCommand";
|
|
4
5
|
export * from "./CallControlHangupCommand";
|
|
5
6
|
export * from "./CallControlHoldCommand";
|
|
6
7
|
export * from "./CallControlMakeCallCommand";
|
|
@@ -63,6 +63,26 @@ export const se_CallControlBlindTransferCommand = async (input, context) => {
|
|
|
63
63
|
.b(body);
|
|
64
64
|
return b.build();
|
|
65
65
|
};
|
|
66
|
+
export const se_CallControlDtmfCommand = async (input, context) => {
|
|
67
|
+
const b = rb(input, context);
|
|
68
|
+
const headers = {
|
|
69
|
+
'content-type': 'application/json',
|
|
70
|
+
};
|
|
71
|
+
b.bp("/api/v2/call-control/dtmf1111");
|
|
72
|
+
const query = map({
|
|
73
|
+
[_u]: [, input[_u]],
|
|
74
|
+
});
|
|
75
|
+
let body;
|
|
76
|
+
body = JSON.stringify(take(input, {
|
|
77
|
+
'digits': [],
|
|
78
|
+
'sipCallId': [],
|
|
79
|
+
}));
|
|
80
|
+
b.m("POST")
|
|
81
|
+
.h(headers)
|
|
82
|
+
.q(query)
|
|
83
|
+
.b(body);
|
|
84
|
+
return b.build();
|
|
85
|
+
};
|
|
66
86
|
export const se_CallControlHangupCommand = async (input, context) => {
|
|
67
87
|
const b = rb(input, context);
|
|
68
88
|
const headers = {
|
|
@@ -464,6 +484,7 @@ export const se_NotificationsCommand = async (input, context) => {
|
|
|
464
484
|
'playFrequency': [],
|
|
465
485
|
'priority': [],
|
|
466
486
|
'queueTimeout': [],
|
|
487
|
+
'skipTranscribe': [],
|
|
467
488
|
}));
|
|
468
489
|
b.m("POST")
|
|
469
490
|
.h(headers)
|
|
@@ -582,6 +603,20 @@ export const de_CallControlBlindTransferCommand = async (output, context) => {
|
|
|
582
603
|
Object.assign(contents, doc);
|
|
583
604
|
return contents;
|
|
584
605
|
};
|
|
606
|
+
export const de_CallControlDtmfCommand = async (output, context) => {
|
|
607
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
608
|
+
return de_CommandError(output, context);
|
|
609
|
+
}
|
|
610
|
+
const contents = map({
|
|
611
|
+
$metadata: deserializeMetadata(output),
|
|
612
|
+
});
|
|
613
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
614
|
+
const doc = take(data, {
|
|
615
|
+
'message': __expectString,
|
|
616
|
+
});
|
|
617
|
+
Object.assign(contents, doc);
|
|
618
|
+
return contents;
|
|
619
|
+
};
|
|
585
620
|
export const de_CallControlHangupCommand = async (output, context) => {
|
|
586
621
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
587
622
|
return de_CommandError(output, context);
|
package/dist-types/WmsApi.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { WmsApiClient } from "./WmsApiClient";
|
|
|
2
2
|
import { CallControlAnswerCommandInput, CallControlAnswerCommandOutput } from "./commands/CallControlAnswerCommand";
|
|
3
3
|
import { CallControlAttendantTransferCommandInput, CallControlAttendantTransferCommandOutput } from "./commands/CallControlAttendantTransferCommand";
|
|
4
4
|
import { CallControlBlindTransferCommandInput, CallControlBlindTransferCommandOutput } from "./commands/CallControlBlindTransferCommand";
|
|
5
|
+
import { CallControlDtmfCommandInput, CallControlDtmfCommandOutput } from "./commands/CallControlDtmfCommand";
|
|
5
6
|
import { CallControlHangupCommandInput, CallControlHangupCommandOutput } from "./commands/CallControlHangupCommand";
|
|
6
7
|
import { CallControlHoldCommandInput, CallControlHoldCommandOutput } from "./commands/CallControlHoldCommand";
|
|
7
8
|
import { CallControlMakeCallCommandInput, CallControlMakeCallCommandOutput } from "./commands/CallControlMakeCallCommand";
|
|
@@ -50,6 +51,12 @@ export interface WmsApi {
|
|
|
50
51
|
callControlBlindTransfer(args: CallControlBlindTransferCommandInput, options?: __HttpHandlerOptions): Promise<CallControlBlindTransferCommandOutput>;
|
|
51
52
|
callControlBlindTransfer(args: CallControlBlindTransferCommandInput, cb: (err: any, data?: CallControlBlindTransferCommandOutput) => void): void;
|
|
52
53
|
callControlBlindTransfer(args: CallControlBlindTransferCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CallControlBlindTransferCommandOutput) => void): void;
|
|
54
|
+
/**
|
|
55
|
+
* @see {@link CallControlDtmfCommand}
|
|
56
|
+
*/
|
|
57
|
+
callControlDtmf(args: CallControlDtmfCommandInput, options?: __HttpHandlerOptions): Promise<CallControlDtmfCommandOutput>;
|
|
58
|
+
callControlDtmf(args: CallControlDtmfCommandInput, cb: (err: any, data?: CallControlDtmfCommandOutput) => void): void;
|
|
59
|
+
callControlDtmf(args: CallControlDtmfCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CallControlDtmfCommandOutput) => void): void;
|
|
53
60
|
/**
|
|
54
61
|
* @see {@link CallControlHangupCommand}
|
|
55
62
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CallControlAnswerCommandInput, CallControlAnswerCommandOutput } from "./commands/CallControlAnswerCommand";
|
|
2
2
|
import { CallControlAttendantTransferCommandInput, CallControlAttendantTransferCommandOutput } from "./commands/CallControlAttendantTransferCommand";
|
|
3
3
|
import { CallControlBlindTransferCommandInput, CallControlBlindTransferCommandOutput } from "./commands/CallControlBlindTransferCommand";
|
|
4
|
+
import { CallControlDtmfCommandInput, CallControlDtmfCommandOutput } from "./commands/CallControlDtmfCommand";
|
|
4
5
|
import { CallControlHangupCommandInput, CallControlHangupCommandOutput } from "./commands/CallControlHangupCommand";
|
|
5
6
|
import { CallControlHoldCommandInput, CallControlHoldCommandOutput } from "./commands/CallControlHoldCommand";
|
|
6
7
|
import { CallControlMakeCallCommandInput, CallControlMakeCallCommandOutput } from "./commands/CallControlMakeCallCommand";
|
|
@@ -40,11 +41,11 @@ export { __Client };
|
|
|
40
41
|
/**
|
|
41
42
|
* @public
|
|
42
43
|
*/
|
|
43
|
-
export type ServiceInputTypes = CallControlAnswerCommandInput | CallControlAttendantTransferCommandInput | CallControlBlindTransferCommandInput | CallControlHangupCommandInput | CallControlHoldCommandInput | CallControlMakeCallCommandInput | CallControlUnholdCommandInput | CallControlUpdateContactInfoCommandInput | CreatePbxAclGroupCommandInput | CreatePbxColleagueCommandInput | CreatePbxOAuth2ClientCommandInput | DeletePbxAclGroupCommandInput | DeletePbxColleagueCommandInput | DeletePbxOAuth2ClientCommandInput | GetCallQueuesSettingsCommandInput | GetColleagueByIdCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | GetPbxesCommandInput | GetPersonalInfoCommandInput | ListPbxDepartmentsCommandInput | ListPbxGroupsCommandInput | ListUserActiveCallsCommandInput | ListUserDevicesCommandInput | NotificationsCommandInput | OriginateCallCommandInput | OriginateCommandInput | ReloadBroadcastsCommandInput | UpdatePbxOAuth2ClientCommandInput;
|
|
44
|
+
export type ServiceInputTypes = CallControlAnswerCommandInput | CallControlAttendantTransferCommandInput | CallControlBlindTransferCommandInput | CallControlDtmfCommandInput | CallControlHangupCommandInput | CallControlHoldCommandInput | CallControlMakeCallCommandInput | CallControlUnholdCommandInput | CallControlUpdateContactInfoCommandInput | CreatePbxAclGroupCommandInput | CreatePbxColleagueCommandInput | CreatePbxOAuth2ClientCommandInput | DeletePbxAclGroupCommandInput | DeletePbxColleagueCommandInput | DeletePbxOAuth2ClientCommandInput | GetCallQueuesSettingsCommandInput | GetColleagueByIdCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | GetPbxesCommandInput | GetPersonalInfoCommandInput | ListPbxDepartmentsCommandInput | ListPbxGroupsCommandInput | ListUserActiveCallsCommandInput | ListUserDevicesCommandInput | NotificationsCommandInput | OriginateCallCommandInput | OriginateCommandInput | ReloadBroadcastsCommandInput | UpdatePbxOAuth2ClientCommandInput;
|
|
44
45
|
/**
|
|
45
46
|
* @public
|
|
46
47
|
*/
|
|
47
|
-
export type ServiceOutputTypes = CallControlAnswerCommandOutput | CallControlAttendantTransferCommandOutput | CallControlBlindTransferCommandOutput | CallControlHangupCommandOutput | CallControlHoldCommandOutput | CallControlMakeCallCommandOutput | CallControlUnholdCommandOutput | CallControlUpdateContactInfoCommandOutput | CreatePbxAclGroupCommandOutput | CreatePbxColleagueCommandOutput | CreatePbxOAuth2ClientCommandOutput | DeletePbxAclGroupCommandOutput | DeletePbxColleagueCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetCallQueuesSettingsCommandOutput | GetColleagueByIdCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | GetPbxesCommandOutput | GetPersonalInfoCommandOutput | ListPbxDepartmentsCommandOutput | ListPbxGroupsCommandOutput | ListUserActiveCallsCommandOutput | ListUserDevicesCommandOutput | NotificationsCommandOutput | OriginateCallCommandOutput | OriginateCommandOutput | ReloadBroadcastsCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
|
|
48
|
+
export type ServiceOutputTypes = CallControlAnswerCommandOutput | CallControlAttendantTransferCommandOutput | CallControlBlindTransferCommandOutput | CallControlDtmfCommandOutput | CallControlHangupCommandOutput | CallControlHoldCommandOutput | CallControlMakeCallCommandOutput | CallControlUnholdCommandOutput | CallControlUpdateContactInfoCommandOutput | CreatePbxAclGroupCommandOutput | CreatePbxColleagueCommandOutput | CreatePbxOAuth2ClientCommandOutput | DeletePbxAclGroupCommandOutput | DeletePbxColleagueCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetCallQueuesSettingsCommandOutput | GetColleagueByIdCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | GetPbxesCommandOutput | GetPersonalInfoCommandOutput | ListPbxDepartmentsCommandOutput | ListPbxGroupsCommandOutput | ListUserActiveCallsCommandOutput | ListUserDevicesCommandOutput | NotificationsCommandOutput | OriginateCallCommandOutput | OriginateCommandOutput | ReloadBroadcastsCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
|
|
48
49
|
/**
|
|
49
50
|
* @public
|
|
50
51
|
*/
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
|
|
2
|
+
import { CallControlDtmfInput, CallControlDtmfOutput } 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 CallControlDtmfCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CallControlDtmfCommandInput extends CallControlDtmfInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CallControlDtmfCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CallControlDtmfCommandOutput extends CallControlDtmfOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CallControlDtmfCommand_base: {
|
|
25
|
+
new (input: CallControlDtmfCommandInput): import("@smithy/smithy-client").CommandImpl<CallControlDtmfCommandInput, CallControlDtmfCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CallControlDtmfCommandInput): import("@smithy/smithy-client").CommandImpl<CallControlDtmfCommandInput, CallControlDtmfCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { WmsApiClient, CallControlDtmfCommand } from "@wildix/wms-api-client"; // ES Modules import
|
|
36
|
+
* // const { WmsApiClient, CallControlDtmfCommand } = require("@wildix/wms-api-client"); // CommonJS import
|
|
37
|
+
* const client = new WmsApiClient(config);
|
|
38
|
+
* const input = { // CallControlDtmfInput
|
|
39
|
+
* user: "STRING_VALUE",
|
|
40
|
+
* sipCallId: "STRING_VALUE", // required
|
|
41
|
+
* digits: "STRING_VALUE",
|
|
42
|
+
* };
|
|
43
|
+
* const command = new CallControlDtmfCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // CallControlDtmfOutput
|
|
46
|
+
* // message: "STRING_VALUE",
|
|
47
|
+
* // };
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param CallControlDtmfCommandInput - {@link CallControlDtmfCommandInput}
|
|
52
|
+
* @returns {@link CallControlDtmfCommandOutput}
|
|
53
|
+
* @see {@link CallControlDtmfCommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link CallControlDtmfCommandOutput} for command's `response` shape.
|
|
55
|
+
* @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link ChannelNotFoundException} (client fault)
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link WmsUnauthorizedException} (client fault)
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link WmsForbiddenException} (client fault)
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link WmsApiServiceException}
|
|
64
|
+
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
65
|
+
*
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
68
|
+
export declare class CallControlDtmfCommand extends CallControlDtmfCommand_base {
|
|
69
|
+
/** @internal type navigation helper, not in runtime. */
|
|
70
|
+
protected static __types: {
|
|
71
|
+
api: {
|
|
72
|
+
input: CallControlDtmfInput;
|
|
73
|
+
output: CallControlDtmfOutput;
|
|
74
|
+
};
|
|
75
|
+
sdk: {
|
|
76
|
+
input: CallControlDtmfCommandInput;
|
|
77
|
+
output: CallControlDtmfCommandOutput;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
}
|
|
@@ -46,6 +46,7 @@ declare const NotificationsCommand_base: {
|
|
|
46
46
|
* origin: "STRING_VALUE",
|
|
47
47
|
* priority: Number("int"),
|
|
48
48
|
* customRid: "STRING_VALUE",
|
|
49
|
+
* skipTranscribe: true || false,
|
|
49
50
|
* };
|
|
50
51
|
* const command = new NotificationsCommand(input);
|
|
51
52
|
* const response = await client.send(command);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./CallControlAnswerCommand";
|
|
2
2
|
export * from "./CallControlAttendantTransferCommand";
|
|
3
3
|
export * from "./CallControlBlindTransferCommand";
|
|
4
|
+
export * from "./CallControlDtmfCommand";
|
|
4
5
|
export * from "./CallControlHangupCommand";
|
|
5
6
|
export * from "./CallControlHoldCommand";
|
|
6
7
|
export * from "./CallControlMakeCallCommand";
|
|
@@ -231,6 +231,36 @@ export interface CallControlBlindTransferOutput {
|
|
|
231
231
|
*/
|
|
232
232
|
message?: string | undefined;
|
|
233
233
|
}
|
|
234
|
+
/**
|
|
235
|
+
* @public
|
|
236
|
+
*/
|
|
237
|
+
export interface CallControlDtmfInput {
|
|
238
|
+
/**
|
|
239
|
+
* Extension, login or email. Only users with root admin authorization can specify a different user. By default, the authorized user will be used. Optional parameter.
|
|
240
|
+
* @public
|
|
241
|
+
*/
|
|
242
|
+
user?: string | undefined;
|
|
243
|
+
/**
|
|
244
|
+
* Call identifier. For makecall action it is not required, for other actions it is required.
|
|
245
|
+
* @public
|
|
246
|
+
*/
|
|
247
|
+
sipCallId: string;
|
|
248
|
+
/**
|
|
249
|
+
* DTMF digits
|
|
250
|
+
* @public
|
|
251
|
+
*/
|
|
252
|
+
digits?: string | undefined;
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* @public
|
|
256
|
+
*/
|
|
257
|
+
export interface CallControlDtmfOutput {
|
|
258
|
+
/**
|
|
259
|
+
* A message describing the result of the call control operation, providing additional details or error information if applicable.
|
|
260
|
+
* @public
|
|
261
|
+
*/
|
|
262
|
+
message?: string | undefined;
|
|
263
|
+
}
|
|
234
264
|
/**
|
|
235
265
|
* @public
|
|
236
266
|
*/
|
|
@@ -1033,6 +1063,11 @@ export interface NotificationsInput {
|
|
|
1033
1063
|
* @public
|
|
1034
1064
|
*/
|
|
1035
1065
|
customRid?: string | undefined;
|
|
1066
|
+
/**
|
|
1067
|
+
* Skip notification transcribing.
|
|
1068
|
+
* @public
|
|
1069
|
+
*/
|
|
1070
|
+
skipTranscribe?: boolean | undefined;
|
|
1036
1071
|
}
|
|
1037
1072
|
/**
|
|
1038
1073
|
* @public
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CallControlAnswerCommandInput, CallControlAnswerCommandOutput } from "../commands/CallControlAnswerCommand";
|
|
2
2
|
import { CallControlAttendantTransferCommandInput, CallControlAttendantTransferCommandOutput } from "../commands/CallControlAttendantTransferCommand";
|
|
3
3
|
import { CallControlBlindTransferCommandInput, CallControlBlindTransferCommandOutput } from "../commands/CallControlBlindTransferCommand";
|
|
4
|
+
import { CallControlDtmfCommandInput, CallControlDtmfCommandOutput } from "../commands/CallControlDtmfCommand";
|
|
4
5
|
import { CallControlHangupCommandInput, CallControlHangupCommandOutput } from "../commands/CallControlHangupCommand";
|
|
5
6
|
import { CallControlHoldCommandInput, CallControlHoldCommandOutput } from "../commands/CallControlHoldCommand";
|
|
6
7
|
import { CallControlMakeCallCommandInput, CallControlMakeCallCommandOutput } from "../commands/CallControlMakeCallCommand";
|
|
@@ -43,6 +44,10 @@ export declare const se_CallControlAttendantTransferCommand: (input: CallControl
|
|
|
43
44
|
* serializeAws_restJson1CallControlBlindTransferCommand
|
|
44
45
|
*/
|
|
45
46
|
export declare const se_CallControlBlindTransferCommand: (input: CallControlBlindTransferCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
47
|
+
/**
|
|
48
|
+
* serializeAws_restJson1CallControlDtmfCommand
|
|
49
|
+
*/
|
|
50
|
+
export declare const se_CallControlDtmfCommand: (input: CallControlDtmfCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
46
51
|
/**
|
|
47
52
|
* serializeAws_restJson1CallControlHangupCommand
|
|
48
53
|
*/
|
|
@@ -167,6 +172,10 @@ export declare const de_CallControlAttendantTransferCommand: (output: __HttpResp
|
|
|
167
172
|
* deserializeAws_restJson1CallControlBlindTransferCommand
|
|
168
173
|
*/
|
|
169
174
|
export declare const de_CallControlBlindTransferCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CallControlBlindTransferCommandOutput>;
|
|
175
|
+
/**
|
|
176
|
+
* deserializeAws_restJson1CallControlDtmfCommand
|
|
177
|
+
*/
|
|
178
|
+
export declare const de_CallControlDtmfCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CallControlDtmfCommandOutput>;
|
|
170
179
|
/**
|
|
171
180
|
* deserializeAws_restJson1CallControlHangupCommand
|
|
172
181
|
*/
|
|
@@ -16,8 +16,13 @@ export declare const getRuntimeConfig: (config: WmsApiClientConfig) => {
|
|
|
16
16
|
domain: string;
|
|
17
17
|
port?: number | undefined;
|
|
18
18
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
19
|
-
apiVersion: string;
|
|
20
19
|
cacheMiddleware?: boolean | undefined;
|
|
20
|
+
protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
|
|
21
|
+
protocolSettings?: {
|
|
22
|
+
[setting: string]: unknown;
|
|
23
|
+
defaultNamespace?: string | undefined;
|
|
24
|
+
} | undefined;
|
|
25
|
+
apiVersion: string;
|
|
21
26
|
urlParser: import("@smithy/types").UrlParser;
|
|
22
27
|
base64Decoder: import("@smithy/types").Decoder;
|
|
23
28
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -17,8 +17,13 @@ export declare const getRuntimeConfig: (config: WmsApiClientConfig) => {
|
|
|
17
17
|
domain: string;
|
|
18
18
|
port?: number | undefined;
|
|
19
19
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
20
|
-
apiVersion: string;
|
|
21
20
|
cacheMiddleware?: boolean | undefined;
|
|
21
|
+
protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
|
|
22
|
+
protocolSettings?: {
|
|
23
|
+
[setting: string]: unknown;
|
|
24
|
+
defaultNamespace?: string | undefined;
|
|
25
|
+
} | undefined;
|
|
26
|
+
apiVersion: string;
|
|
22
27
|
urlParser: import("@smithy/types").UrlParser;
|
|
23
28
|
base64Decoder: import("@smithy/types").Decoder;
|
|
24
29
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -9,8 +9,13 @@ export declare const getRuntimeConfig: (config: WmsApiClientConfig) => {
|
|
|
9
9
|
port?: number | undefined;
|
|
10
10
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
11
11
|
requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
12
|
-
apiVersion: string;
|
|
13
12
|
cacheMiddleware?: boolean | undefined;
|
|
13
|
+
protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
|
|
14
|
+
protocolSettings?: {
|
|
15
|
+
[setting: string]: unknown;
|
|
16
|
+
defaultNamespace?: string | undefined;
|
|
17
|
+
} | undefined;
|
|
18
|
+
apiVersion: string;
|
|
14
19
|
urlParser: import("@smithy/types").UrlParser;
|
|
15
20
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
16
21
|
streamCollector: import("@smithy/types").StreamCollector;
|
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.
|
|
4
|
+
"version": "1.2.0",
|
|
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",
|
|
@@ -80,4 +80,4 @@
|
|
|
80
80
|
"react-native": {
|
|
81
81
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
82
82
|
}
|
|
83
|
-
}
|
|
83
|
+
}
|