@wildix/wms-api-client 1.1.24 → 1.1.26

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,6 +9,7 @@ const CallControlHangupCommand_1 = require("./commands/CallControlHangupCommand"
9
9
  const CallControlHoldCommand_1 = require("./commands/CallControlHoldCommand");
10
10
  const CallControlMakeCallCommand_1 = require("./commands/CallControlMakeCallCommand");
11
11
  const CallControlUnholdCommand_1 = require("./commands/CallControlUnholdCommand");
12
+ const CallControlUpdateContactInfoCommand_1 = require("./commands/CallControlUpdateContactInfoCommand");
12
13
  const CreatePbxAclGroupCommand_1 = require("./commands/CreatePbxAclGroupCommand");
13
14
  const CreatePbxColleagueCommand_1 = require("./commands/CreatePbxColleagueCommand");
14
15
  const CreatePbxOAuth2ClientCommand_1 = require("./commands/CreatePbxOAuth2ClientCommand");
@@ -38,6 +39,7 @@ const commands = {
38
39
  CallControlHoldCommand: CallControlHoldCommand_1.CallControlHoldCommand,
39
40
  CallControlMakeCallCommand: CallControlMakeCallCommand_1.CallControlMakeCallCommand,
40
41
  CallControlUnholdCommand: CallControlUnholdCommand_1.CallControlUnholdCommand,
42
+ CallControlUpdateContactInfoCommand: CallControlUpdateContactInfoCommand_1.CallControlUpdateContactInfoCommand,
41
43
  CreatePbxAclGroupCommand: CreatePbxAclGroupCommand_1.CreatePbxAclGroupCommand,
42
44
  CreatePbxColleagueCommand: CreatePbxColleagueCommand_1.CreatePbxColleagueCommand,
43
45
  CreatePbxOAuth2ClientCommand: CreatePbxOAuth2ClientCommand_1.CreatePbxOAuth2ClientCommand,
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CallControlUpdateContactInfoCommand = 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 CallControlUpdateContactInfoCommand 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", "CallControlUpdateContactInfo", {})
15
+ .n("WmsApiClient", "CallControlUpdateContactInfoCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_CallControlUpdateContactInfoCommand)
18
+ .de(Aws_restJson1_1.de_CallControlUpdateContactInfoCommand)
19
+ .build() {
20
+ }
21
+ exports.CallControlUpdateContactInfoCommand = CallControlUpdateContactInfoCommand;
@@ -8,6 +8,7 @@ tslib_1.__exportStar(require("./CallControlHangupCommand"), exports);
8
8
  tslib_1.__exportStar(require("./CallControlHoldCommand"), exports);
9
9
  tslib_1.__exportStar(require("./CallControlMakeCallCommand"), exports);
10
10
  tslib_1.__exportStar(require("./CallControlUnholdCommand"), exports);
11
+ tslib_1.__exportStar(require("./CallControlUpdateContactInfoCommand"), exports);
11
12
  tslib_1.__exportStar(require("./CreatePbxAclGroupCommand"), exports);
12
13
  tslib_1.__exportStar(require("./CreatePbxColleagueCommand"), exports);
13
14
  tslib_1.__exportStar(require("./CreatePbxOAuth2ClientCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_NotificationsCommand = exports.de_ListUserDevicesCommand = exports.de_ListUserActiveCallsCommand = exports.de_GetPersonalInfoCommand = exports.de_GetPbxOAuth2ClientsCommand = exports.de_GetPbxesCommand = exports.de_GetPbxColleaguesCommand = exports.de_GetPbxCallGroupsCommand = exports.de_GetPbxAclGroupsPermissionsCommand = exports.de_GetColleagueByIdCommand = exports.de_DeletePbxOAuth2ClientCommand = exports.de_DeletePbxColleagueCommand = exports.de_DeletePbxAclGroupCommand = exports.de_CreatePbxOAuth2ClientCommand = exports.de_CreatePbxColleagueCommand = exports.de_CreatePbxAclGroupCommand = exports.de_CallControlUnholdCommand = exports.de_CallControlMakeCallCommand = exports.de_CallControlHoldCommand = exports.de_CallControlHangupCommand = 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_GetPersonalInfoCommand = exports.se_GetPbxOAuth2ClientsCommand = exports.se_GetPbxesCommand = exports.se_GetPbxColleaguesCommand = exports.se_GetPbxCallGroupsCommand = exports.se_GetPbxAclGroupsPermissionsCommand = exports.se_GetColleagueByIdCommand = exports.se_DeletePbxOAuth2ClientCommand = exports.se_DeletePbxColleagueCommand = exports.se_DeletePbxAclGroupCommand = exports.se_CreatePbxOAuth2ClientCommand = exports.se_CreatePbxColleagueCommand = exports.se_CreatePbxAclGroupCommand = exports.se_CallControlUnholdCommand = exports.se_CallControlMakeCallCommand = exports.se_CallControlHoldCommand = exports.se_CallControlHangupCommand = exports.se_CallControlBlindTransferCommand = exports.se_CallControlAttendantTransferCommand = exports.se_CallControlAnswerCommand = void 0;
4
- exports.de_UpdatePbxOAuth2ClientCommand = exports.de_ReloadBroadcastsCommand = exports.de_OriginateCallCommand = exports.de_OriginateCommand = void 0;
3
+ exports.de_ListUserActiveCallsCommand = exports.de_GetPersonalInfoCommand = exports.de_GetPbxOAuth2ClientsCommand = exports.de_GetPbxesCommand = exports.de_GetPbxColleaguesCommand = exports.de_GetPbxCallGroupsCommand = exports.de_GetPbxAclGroupsPermissionsCommand = exports.de_GetColleagueByIdCommand = 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_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_GetPersonalInfoCommand = exports.se_GetPbxOAuth2ClientsCommand = exports.se_GetPbxesCommand = exports.se_GetPbxColleaguesCommand = exports.se_GetPbxCallGroupsCommand = exports.se_GetPbxAclGroupsPermissionsCommand = exports.se_GetColleagueByIdCommand = 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_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 = 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");
@@ -152,6 +152,28 @@ const se_CallControlUnholdCommand = async (input, context) => {
152
152
  return b.build();
153
153
  };
154
154
  exports.se_CallControlUnholdCommand = se_CallControlUnholdCommand;
155
+ const se_CallControlUpdateContactInfoCommand = async (input, context) => {
156
+ const b = (0, core_2.requestBuilder)(input, context);
157
+ const headers = {
158
+ 'content-type': 'application/json',
159
+ };
160
+ b.bp("/api/v2/call-control/update-contact-info");
161
+ const query = (0, smithy_client_1.map)({
162
+ [_u]: [, input[_u]],
163
+ });
164
+ let body;
165
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
166
+ 'name': [],
167
+ 'phone': [],
168
+ 'sipCallId': [],
169
+ }));
170
+ b.m("POST")
171
+ .h(headers)
172
+ .q(query)
173
+ .b(body);
174
+ return b.build();
175
+ };
176
+ exports.se_CallControlUpdateContactInfoCommand = se_CallControlUpdateContactInfoCommand;
155
177
  const se_CreatePbxAclGroupCommand = async (input, context) => {
156
178
  const b = (0, core_2.requestBuilder)(input, context);
157
179
  const headers = {
@@ -624,6 +646,21 @@ const de_CallControlUnholdCommand = async (output, context) => {
624
646
  return contents;
625
647
  };
626
648
  exports.de_CallControlUnholdCommand = de_CallControlUnholdCommand;
649
+ const de_CallControlUpdateContactInfoCommand = async (output, context) => {
650
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
651
+ return de_CommandError(output, context);
652
+ }
653
+ const contents = (0, smithy_client_1.map)({
654
+ $metadata: deserializeMetadata(output),
655
+ });
656
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
657
+ const doc = (0, smithy_client_1.take)(data, {
658
+ 'message': smithy_client_1.expectString,
659
+ });
660
+ Object.assign(contents, doc);
661
+ return contents;
662
+ };
663
+ exports.de_CallControlUpdateContactInfoCommand = de_CallControlUpdateContactInfoCommand;
627
664
  const de_CreatePbxAclGroupCommand = async (output, context) => {
628
665
  if (output.statusCode !== 200 && output.statusCode >= 300) {
629
666
  return de_CommandError(output, context);
package/dist-es/WmsApi.js CHANGED
@@ -6,6 +6,7 @@ import { CallControlHangupCommand, } from "./commands/CallControlHangupCommand";
6
6
  import { CallControlHoldCommand, } from "./commands/CallControlHoldCommand";
7
7
  import { CallControlMakeCallCommand, } from "./commands/CallControlMakeCallCommand";
8
8
  import { CallControlUnholdCommand, } from "./commands/CallControlUnholdCommand";
9
+ import { CallControlUpdateContactInfoCommand, } from "./commands/CallControlUpdateContactInfoCommand";
9
10
  import { CreatePbxAclGroupCommand, } from "./commands/CreatePbxAclGroupCommand";
10
11
  import { CreatePbxColleagueCommand, } from "./commands/CreatePbxColleagueCommand";
11
12
  import { CreatePbxOAuth2ClientCommand, } from "./commands/CreatePbxOAuth2ClientCommand";
@@ -35,6 +36,7 @@ const commands = {
35
36
  CallControlHoldCommand,
36
37
  CallControlMakeCallCommand,
37
38
  CallControlUnholdCommand,
39
+ CallControlUpdateContactInfoCommand,
38
40
  CreatePbxAclGroupCommand,
39
41
  CreatePbxColleagueCommand,
40
42
  CreatePbxOAuth2ClientCommand,
@@ -0,0 +1,17 @@
1
+ import { de_CallControlUpdateContactInfoCommand, se_CallControlUpdateContactInfoCommand, } 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 CallControlUpdateContactInfoCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WmsApi", "CallControlUpdateContactInfo", {})
12
+ .n("WmsApiClient", "CallControlUpdateContactInfoCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_CallControlUpdateContactInfoCommand)
15
+ .de(de_CallControlUpdateContactInfoCommand)
16
+ .build() {
17
+ }
@@ -5,6 +5,7 @@ export * from "./CallControlHangupCommand";
5
5
  export * from "./CallControlHoldCommand";
6
6
  export * from "./CallControlMakeCallCommand";
7
7
  export * from "./CallControlUnholdCommand";
8
+ export * from "./CallControlUpdateContactInfoCommand";
8
9
  export * from "./CreatePbxAclGroupCommand";
9
10
  export * from "./CreatePbxColleagueCommand";
10
11
  export * from "./CreatePbxOAuth2ClientCommand";
@@ -141,6 +141,27 @@ export const se_CallControlUnholdCommand = async (input, context) => {
141
141
  .b(body);
142
142
  return b.build();
143
143
  };
144
+ export const se_CallControlUpdateContactInfoCommand = async (input, context) => {
145
+ const b = rb(input, context);
146
+ const headers = {
147
+ 'content-type': 'application/json',
148
+ };
149
+ b.bp("/api/v2/call-control/update-contact-info");
150
+ const query = map({
151
+ [_u]: [, input[_u]],
152
+ });
153
+ let body;
154
+ body = JSON.stringify(take(input, {
155
+ 'name': [],
156
+ 'phone': [],
157
+ 'sipCallId': [],
158
+ }));
159
+ b.m("POST")
160
+ .h(headers)
161
+ .q(query)
162
+ .b(body);
163
+ return b.build();
164
+ };
144
165
  export const se_CreatePbxAclGroupCommand = async (input, context) => {
145
166
  const b = rb(input, context);
146
167
  const headers = {
@@ -586,6 +607,20 @@ export const de_CallControlUnholdCommand = async (output, context) => {
586
607
  Object.assign(contents, doc);
587
608
  return contents;
588
609
  };
610
+ export const de_CallControlUpdateContactInfoCommand = async (output, context) => {
611
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
612
+ return de_CommandError(output, context);
613
+ }
614
+ const contents = map({
615
+ $metadata: deserializeMetadata(output),
616
+ });
617
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
618
+ const doc = take(data, {
619
+ 'message': __expectString,
620
+ });
621
+ Object.assign(contents, doc);
622
+ return contents;
623
+ };
589
624
  export const de_CreatePbxAclGroupCommand = async (output, context) => {
590
625
  if (output.statusCode !== 200 && output.statusCode >= 300) {
591
626
  return de_CommandError(output, context);
@@ -6,6 +6,7 @@ import { CallControlHangupCommandInput, CallControlHangupCommandOutput } from ".
6
6
  import { CallControlHoldCommandInput, CallControlHoldCommandOutput } from "./commands/CallControlHoldCommand";
7
7
  import { CallControlMakeCallCommandInput, CallControlMakeCallCommandOutput } from "./commands/CallControlMakeCallCommand";
8
8
  import { CallControlUnholdCommandInput, CallControlUnholdCommandOutput } from "./commands/CallControlUnholdCommand";
9
+ import { CallControlUpdateContactInfoCommandInput, CallControlUpdateContactInfoCommandOutput } from "./commands/CallControlUpdateContactInfoCommand";
9
10
  import { CreatePbxAclGroupCommandInput, CreatePbxAclGroupCommandOutput } from "./commands/CreatePbxAclGroupCommand";
10
11
  import { CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput } from "./commands/CreatePbxColleagueCommand";
11
12
  import { CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput } from "./commands/CreatePbxOAuth2ClientCommand";
@@ -70,6 +71,12 @@ export interface WmsApi {
70
71
  callControlUnhold(args: CallControlUnholdCommandInput, options?: __HttpHandlerOptions): Promise<CallControlUnholdCommandOutput>;
71
72
  callControlUnhold(args: CallControlUnholdCommandInput, cb: (err: any, data?: CallControlUnholdCommandOutput) => void): void;
72
73
  callControlUnhold(args: CallControlUnholdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CallControlUnholdCommandOutput) => void): void;
74
+ /**
75
+ * @see {@link CallControlUpdateContactInfoCommand}
76
+ */
77
+ callControlUpdateContactInfo(args: CallControlUpdateContactInfoCommandInput, options?: __HttpHandlerOptions): Promise<CallControlUpdateContactInfoCommandOutput>;
78
+ callControlUpdateContactInfo(args: CallControlUpdateContactInfoCommandInput, cb: (err: any, data?: CallControlUpdateContactInfoCommandOutput) => void): void;
79
+ callControlUpdateContactInfo(args: CallControlUpdateContactInfoCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CallControlUpdateContactInfoCommandOutput) => void): void;
73
80
  /**
74
81
  * @see {@link CreatePbxAclGroupCommand}
75
82
  */
@@ -5,6 +5,7 @@ import { CallControlHangupCommandInput, CallControlHangupCommandOutput } from ".
5
5
  import { CallControlHoldCommandInput, CallControlHoldCommandOutput } from "./commands/CallControlHoldCommand";
6
6
  import { CallControlMakeCallCommandInput, CallControlMakeCallCommandOutput } from "./commands/CallControlMakeCallCommand";
7
7
  import { CallControlUnholdCommandInput, CallControlUnholdCommandOutput } from "./commands/CallControlUnholdCommand";
8
+ import { CallControlUpdateContactInfoCommandInput, CallControlUpdateContactInfoCommandOutput } from "./commands/CallControlUpdateContactInfoCommand";
8
9
  import { CreatePbxAclGroupCommandInput, CreatePbxAclGroupCommandOutput } from "./commands/CreatePbxAclGroupCommand";
9
10
  import { CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput } from "./commands/CreatePbxColleagueCommand";
10
11
  import { CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput } from "./commands/CreatePbxOAuth2ClientCommand";
@@ -36,11 +37,11 @@ export { __Client };
36
37
  /**
37
38
  * @public
38
39
  */
39
- export type ServiceInputTypes = CallControlAnswerCommandInput | CallControlAttendantTransferCommandInput | CallControlBlindTransferCommandInput | CallControlHangupCommandInput | CallControlHoldCommandInput | CallControlMakeCallCommandInput | CallControlUnholdCommandInput | CreatePbxAclGroupCommandInput | CreatePbxColleagueCommandInput | CreatePbxOAuth2ClientCommandInput | DeletePbxAclGroupCommandInput | DeletePbxColleagueCommandInput | DeletePbxOAuth2ClientCommandInput | GetColleagueByIdCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | GetPbxesCommandInput | GetPersonalInfoCommandInput | ListUserActiveCallsCommandInput | ListUserDevicesCommandInput | NotificationsCommandInput | OriginateCallCommandInput | OriginateCommandInput | ReloadBroadcastsCommandInput | UpdatePbxOAuth2ClientCommandInput;
40
+ export type ServiceInputTypes = CallControlAnswerCommandInput | CallControlAttendantTransferCommandInput | CallControlBlindTransferCommandInput | CallControlHangupCommandInput | CallControlHoldCommandInput | CallControlMakeCallCommandInput | CallControlUnholdCommandInput | CallControlUpdateContactInfoCommandInput | CreatePbxAclGroupCommandInput | CreatePbxColleagueCommandInput | CreatePbxOAuth2ClientCommandInput | DeletePbxAclGroupCommandInput | DeletePbxColleagueCommandInput | DeletePbxOAuth2ClientCommandInput | GetColleagueByIdCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | GetPbxesCommandInput | GetPersonalInfoCommandInput | ListUserActiveCallsCommandInput | ListUserDevicesCommandInput | NotificationsCommandInput | OriginateCallCommandInput | OriginateCommandInput | ReloadBroadcastsCommandInput | UpdatePbxOAuth2ClientCommandInput;
40
41
  /**
41
42
  * @public
42
43
  */
43
- export type ServiceOutputTypes = CallControlAnswerCommandOutput | CallControlAttendantTransferCommandOutput | CallControlBlindTransferCommandOutput | CallControlHangupCommandOutput | CallControlHoldCommandOutput | CallControlMakeCallCommandOutput | CallControlUnholdCommandOutput | CreatePbxAclGroupCommandOutput | CreatePbxColleagueCommandOutput | CreatePbxOAuth2ClientCommandOutput | DeletePbxAclGroupCommandOutput | DeletePbxColleagueCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetColleagueByIdCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | GetPbxesCommandOutput | GetPersonalInfoCommandOutput | ListUserActiveCallsCommandOutput | ListUserDevicesCommandOutput | NotificationsCommandOutput | OriginateCallCommandOutput | OriginateCommandOutput | ReloadBroadcastsCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
44
+ export type ServiceOutputTypes = CallControlAnswerCommandOutput | CallControlAttendantTransferCommandOutput | CallControlBlindTransferCommandOutput | CallControlHangupCommandOutput | CallControlHoldCommandOutput | CallControlMakeCallCommandOutput | CallControlUnholdCommandOutput | CallControlUpdateContactInfoCommandOutput | CreatePbxAclGroupCommandOutput | CreatePbxColleagueCommandOutput | CreatePbxOAuth2ClientCommandOutput | DeletePbxAclGroupCommandOutput | DeletePbxColleagueCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetColleagueByIdCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | GetPbxesCommandOutput | GetPersonalInfoCommandOutput | ListUserActiveCallsCommandOutput | ListUserDevicesCommandOutput | NotificationsCommandOutput | OriginateCallCommandOutput | OriginateCommandOutput | ReloadBroadcastsCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
44
45
  /**
45
46
  * @public
46
47
  */
@@ -0,0 +1,81 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
2
+ import { CallControlUpdateContactInfoInput, CallControlUpdateContactInfoOutput } 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 CallControlUpdateContactInfoCommand}.
14
+ */
15
+ export interface CallControlUpdateContactInfoCommandInput extends CallControlUpdateContactInfoInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CallControlUpdateContactInfoCommand}.
21
+ */
22
+ export interface CallControlUpdateContactInfoCommandOutput extends CallControlUpdateContactInfoOutput, __MetadataBearer {
23
+ }
24
+ declare const CallControlUpdateContactInfoCommand_base: {
25
+ new (input: CallControlUpdateContactInfoCommandInput): import("@smithy/smithy-client").CommandImpl<CallControlUpdateContactInfoCommandInput, CallControlUpdateContactInfoCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: CallControlUpdateContactInfoCommandInput): import("@smithy/smithy-client").CommandImpl<CallControlUpdateContactInfoCommandInput, CallControlUpdateContactInfoCommandOutput, 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, CallControlUpdateContactInfoCommand } from "@wildix/wms-api-client"; // ES Modules import
36
+ * // const { WmsApiClient, CallControlUpdateContactInfoCommand } = require("@wildix/wms-api-client"); // CommonJS import
37
+ * const client = new WmsApiClient(config);
38
+ * const input = { // CallControlUpdateContactInfoInput
39
+ * user: "STRING_VALUE",
40
+ * sipCallId: "STRING_VALUE", // required
41
+ * name: "STRING_VALUE",
42
+ * phone: "STRING_VALUE",
43
+ * };
44
+ * const command = new CallControlUpdateContactInfoCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // CallControlUpdateContactInfoOutput
47
+ * // message: "STRING_VALUE",
48
+ * // };
49
+ *
50
+ * ```
51
+ *
52
+ * @param CallControlUpdateContactInfoCommandInput - {@link CallControlUpdateContactInfoCommandInput}
53
+ * @returns {@link CallControlUpdateContactInfoCommandOutput}
54
+ * @see {@link CallControlUpdateContactInfoCommandInput} for command's `input` shape.
55
+ * @see {@link CallControlUpdateContactInfoCommandOutput} for command's `response` shape.
56
+ * @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
57
+ *
58
+ * @throws {@link ChannelNotFoundException} (client fault)
59
+ *
60
+ * @throws {@link WmsUnauthorizedException} (client fault)
61
+ *
62
+ * @throws {@link WmsForbiddenException} (client fault)
63
+ *
64
+ * @throws {@link WmsApiServiceException}
65
+ * <p>Base exception class for all service exceptions from WmsApi service.</p>
66
+ *
67
+ *
68
+ */
69
+ export declare class CallControlUpdateContactInfoCommand extends CallControlUpdateContactInfoCommand_base {
70
+ /** @internal type navigation helper, not in runtime. */
71
+ protected static __types: {
72
+ api: {
73
+ input: CallControlUpdateContactInfoInput;
74
+ output: CallControlUpdateContactInfoOutput;
75
+ };
76
+ sdk: {
77
+ input: CallControlUpdateContactInfoCommandInput;
78
+ output: CallControlUpdateContactInfoCommandOutput;
79
+ };
80
+ };
81
+ }
@@ -41,15 +41,15 @@ declare const ListUserActiveCallsCommand_base: {
41
41
  * const command = new ListUserActiveCallsCommand(input);
42
42
  * const response = await client.send(command);
43
43
  * // { // ListUserActiveCallsOutput
44
- * // calls: [ // Calls
44
+ * // calls: [ // Calls // required
45
45
  * // { // Call
46
46
  * // sipCallId: "STRING_VALUE", // required
47
- * // callerNumber: "STRING_VALUE",
47
+ * // callerNumber: "STRING_VALUE", // required
48
48
  * // callerName: "STRING_VALUE",
49
- * // calleeNumber: "STRING_VALUE",
49
+ * // calleeNumber: "STRING_VALUE", // required
50
50
  * // calleeName: "STRING_VALUE",
51
- * // state: "STRING_VALUE",
52
- * // duration: Number("int"),
51
+ * // state: "STRING_VALUE", // required
52
+ * // duration: Number("int"), // required
53
53
  * // },
54
54
  * // ],
55
55
  * // };
@@ -43,13 +43,15 @@ declare const ListUserDevicesCommand_base: {
43
43
  * // { // ListUserDevicesOutput
44
44
  * // devices: [ // DevicesList // required
45
45
  * // { // UserDevice
46
- * // userAgent: "STRING_VALUE",
47
- * // contact: "STRING_VALUE",
46
+ * // userAgent: "STRING_VALUE", // required
47
+ * // contact: "STRING_VALUE", // required
48
+ * // active: true || false, // required
48
49
  * // },
49
50
  * // ],
50
51
  * // activeDevice: {
51
- * // userAgent: "STRING_VALUE",
52
- * // contact: "STRING_VALUE",
52
+ * // userAgent: "STRING_VALUE", // required
53
+ * // contact: "STRING_VALUE", // required
54
+ * // active: true || false, // required
53
55
  * // },
54
56
  * // };
55
57
  *
@@ -5,6 +5,7 @@ export * from "./CallControlHangupCommand";
5
5
  export * from "./CallControlHoldCommand";
6
6
  export * from "./CallControlMakeCallCommand";
7
7
  export * from "./CallControlUnholdCommand";
8
+ export * from "./CallControlUpdateContactInfoCommand";
8
9
  export * from "./CreatePbxAclGroupCommand";
9
10
  export * from "./CreatePbxColleagueCommand";
10
11
  export * from "./CreatePbxOAuth2ClientCommand";
@@ -83,12 +83,12 @@ export interface AclGroupPermission {
83
83
  */
84
84
  export interface Call {
85
85
  sipCallId: string;
86
- callerNumber?: string | undefined;
86
+ callerNumber: string;
87
87
  callerName?: string | undefined;
88
- calleeNumber?: string | undefined;
88
+ calleeNumber: string;
89
89
  calleeName?: string | undefined;
90
- state?: string | undefined;
91
- duration?: number | undefined;
90
+ state: string;
91
+ duration: number;
92
92
  }
93
93
  /**
94
94
  * @public
@@ -341,6 +341,41 @@ export interface CallControlUnholdOutput {
341
341
  */
342
342
  message?: string | undefined;
343
343
  }
344
+ /**
345
+ * @public
346
+ */
347
+ export interface CallControlUpdateContactInfoInput {
348
+ /**
349
+ * 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.
350
+ * @public
351
+ */
352
+ user?: string | undefined;
353
+ /**
354
+ * Call identifier. For makecall action it is not required, for other actions it is required.
355
+ * @public
356
+ */
357
+ sipCallId: string;
358
+ /**
359
+ * Contact name
360
+ * @public
361
+ */
362
+ name?: string | undefined;
363
+ /**
364
+ * Phone number
365
+ * @public
366
+ */
367
+ phone?: string | undefined;
368
+ }
369
+ /**
370
+ * @public
371
+ */
372
+ export interface CallControlUpdateContactInfoOutput {
373
+ /**
374
+ * A message describing the result of the call control operation, providing additional details or error information if applicable.
375
+ * @public
376
+ */
377
+ message?: string | undefined;
378
+ }
344
379
  /**
345
380
  * @public
346
381
  */
@@ -546,8 +581,9 @@ export declare class WmsNotFoundException extends __BaseException {
546
581
  * @public
547
582
  */
548
583
  export interface UserDevice {
549
- userAgent?: string | undefined;
550
- contact?: string | undefined;
584
+ userAgent: string;
585
+ contact: string;
586
+ active: boolean;
551
587
  }
552
588
  /**
553
589
  * @public
@@ -837,7 +873,7 @@ export interface ListUserActiveCallsInput {
837
873
  * @public
838
874
  */
839
875
  export interface ListUserActiveCallsOutput {
840
- calls?: (Call)[] | undefined;
876
+ calls: (Call)[];
841
877
  }
842
878
  /**
843
879
  * @public
@@ -5,6 +5,7 @@ import { CallControlHangupCommandInput, CallControlHangupCommandOutput } from ".
5
5
  import { CallControlHoldCommandInput, CallControlHoldCommandOutput } from "../commands/CallControlHoldCommand";
6
6
  import { CallControlMakeCallCommandInput, CallControlMakeCallCommandOutput } from "../commands/CallControlMakeCallCommand";
7
7
  import { CallControlUnholdCommandInput, CallControlUnholdCommandOutput } from "../commands/CallControlUnholdCommand";
8
+ import { CallControlUpdateContactInfoCommandInput, CallControlUpdateContactInfoCommandOutput } from "../commands/CallControlUpdateContactInfoCommand";
8
9
  import { CreatePbxAclGroupCommandInput, CreatePbxAclGroupCommandOutput } from "../commands/CreatePbxAclGroupCommand";
9
10
  import { CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput } from "../commands/CreatePbxColleagueCommand";
10
11
  import { CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput } from "../commands/CreatePbxOAuth2ClientCommand";
@@ -55,6 +56,10 @@ export declare const se_CallControlMakeCallCommand: (input: CallControlMakeCallC
55
56
  * serializeAws_restJson1CallControlUnholdCommand
56
57
  */
57
58
  export declare const se_CallControlUnholdCommand: (input: CallControlUnholdCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
59
+ /**
60
+ * serializeAws_restJson1CallControlUpdateContactInfoCommand
61
+ */
62
+ export declare const se_CallControlUpdateContactInfoCommand: (input: CallControlUpdateContactInfoCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
58
63
  /**
59
64
  * serializeAws_restJson1CreatePbxAclGroupCommand
60
65
  */
@@ -163,6 +168,10 @@ export declare const de_CallControlMakeCallCommand: (output: __HttpResponse, con
163
168
  * deserializeAws_restJson1CallControlUnholdCommand
164
169
  */
165
170
  export declare const de_CallControlUnholdCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CallControlUnholdCommandOutput>;
171
+ /**
172
+ * deserializeAws_restJson1CallControlUpdateContactInfoCommand
173
+ */
174
+ export declare const de_CallControlUpdateContactInfoCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CallControlUpdateContactInfoCommandOutput>;
166
175
  /**
167
176
  * deserializeAws_restJson1CreatePbxAclGroupCommand
168
177
  */
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.24",
4
+ "version": "1.1.26",
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",