@wildix/wms-api-client 1.2.1 → 1.2.3

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.
@@ -33,6 +33,7 @@ const NotificationsCommand_1 = require("./commands/NotificationsCommand");
33
33
  const OriginateCallCommand_1 = require("./commands/OriginateCallCommand");
34
34
  const OriginateCommand_1 = require("./commands/OriginateCommand");
35
35
  const ReloadBroadcastsCommand_1 = require("./commands/ReloadBroadcastsCommand");
36
+ const UpdatePbxColleagueCommand_1 = require("./commands/UpdatePbxColleagueCommand");
36
37
  const UpdatePbxOAuth2ClientCommand_1 = require("./commands/UpdatePbxOAuth2ClientCommand");
37
38
  const smithy_client_1 = require("@smithy/smithy-client");
38
39
  const commands = {
@@ -67,6 +68,7 @@ const commands = {
67
68
  OriginateCommand: OriginateCommand_1.OriginateCommand,
68
69
  OriginateCallCommand: OriginateCallCommand_1.OriginateCallCommand,
69
70
  ReloadBroadcastsCommand: ReloadBroadcastsCommand_1.ReloadBroadcastsCommand,
71
+ UpdatePbxColleagueCommand: UpdatePbxColleagueCommand_1.UpdatePbxColleagueCommand,
70
72
  UpdatePbxOAuth2ClientCommand: UpdatePbxOAuth2ClientCommand_1.UpdatePbxOAuth2ClientCommand,
71
73
  };
72
74
  class WmsApi extends WmsApiClient_1.WmsApiClient {
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdatePbxColleagueCommand = 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 UpdatePbxColleagueCommand 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", "UpdatePbxColleague", {})
15
+ .n("WmsApiClient", "UpdatePbxColleagueCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_UpdatePbxColleagueCommand)
18
+ .de(Aws_restJson1_1.de_UpdatePbxColleagueCommand)
19
+ .build() {
20
+ }
21
+ exports.UpdatePbxColleagueCommand = UpdatePbxColleagueCommand;
@@ -32,4 +32,5 @@ tslib_1.__exportStar(require("./NotificationsCommand"), exports);
32
32
  tslib_1.__exportStar(require("./OriginateCommand"), exports);
33
33
  tslib_1.__exportStar(require("./OriginateCallCommand"), exports);
34
34
  tslib_1.__exportStar(require("./ReloadBroadcastsCommand"), exports);
35
+ tslib_1.__exportStar(require("./UpdatePbxColleagueCommand"), exports);
35
36
  tslib_1.__exportStar(require("./UpdatePbxOAuth2ClientCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
3
+ 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_UpdatePbxColleagueCommand = 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_UpdatePbxColleagueCommand = 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 = exports.de_GetPbxAclGroupsPermissionsCommand = 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");
@@ -579,6 +579,39 @@ const se_ReloadBroadcastsCommand = async (input, context) => {
579
579
  return b.build();
580
580
  };
581
581
  exports.se_ReloadBroadcastsCommand = se_ReloadBroadcastsCommand;
582
+ const se_UpdatePbxColleagueCommand = async (input, context) => {
583
+ const b = (0, core_2.requestBuilder)(input, context);
584
+ const headers = {
585
+ 'content-type': 'application/json',
586
+ };
587
+ b.bp("/api/v1/PBX/Colleagues/{id}");
588
+ b.p('id', () => input.id.toString(), '{id}', false);
589
+ let body;
590
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
591
+ 'department': [],
592
+ 'dialplan': [],
593
+ 'email': [],
594
+ 'extension': [],
595
+ 'faxDialplan': [],
596
+ 'faxNumber': [],
597
+ 'groupDn': [],
598
+ 'language': [],
599
+ 'licenseType': [],
600
+ 'login': [],
601
+ 'mobilePhone': [],
602
+ 'name': [],
603
+ 'officePhone': [],
604
+ 'password': [],
605
+ 'picture': [],
606
+ 'role': [],
607
+ 'sipPassword': [],
608
+ }));
609
+ b.m("PUT")
610
+ .h(headers)
611
+ .b(body);
612
+ return b.build();
613
+ };
614
+ exports.se_UpdatePbxColleagueCommand = se_UpdatePbxColleagueCommand;
582
615
  const se_UpdatePbxOAuth2ClientCommand = async (input, context) => {
583
616
  const b = (0, core_2.requestBuilder)(input, context);
584
617
  const headers = {
@@ -1083,6 +1116,22 @@ const de_ReloadBroadcastsCommand = async (output, context) => {
1083
1116
  return contents;
1084
1117
  };
1085
1118
  exports.de_ReloadBroadcastsCommand = de_ReloadBroadcastsCommand;
1119
+ const de_UpdatePbxColleagueCommand = async (output, context) => {
1120
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1121
+ return de_CommandError(output, context);
1122
+ }
1123
+ const contents = (0, smithy_client_1.map)({
1124
+ $metadata: deserializeMetadata(output),
1125
+ });
1126
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1127
+ const doc = (0, smithy_client_1.take)(data, {
1128
+ 'result': smithy_client_1._json,
1129
+ 'type': smithy_client_1.expectString,
1130
+ });
1131
+ Object.assign(contents, doc);
1132
+ return contents;
1133
+ };
1134
+ exports.de_UpdatePbxColleagueCommand = de_UpdatePbxColleagueCommand;
1086
1135
  const de_UpdatePbxOAuth2ClientCommand = async (output, context) => {
1087
1136
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1088
1137
  return de_CommandError(output, context);
package/dist-es/WmsApi.js CHANGED
@@ -30,6 +30,7 @@ import { NotificationsCommand, } from "./commands/NotificationsCommand";
30
30
  import { OriginateCallCommand, } from "./commands/OriginateCallCommand";
31
31
  import { OriginateCommand, } from "./commands/OriginateCommand";
32
32
  import { ReloadBroadcastsCommand, } from "./commands/ReloadBroadcastsCommand";
33
+ import { UpdatePbxColleagueCommand, } from "./commands/UpdatePbxColleagueCommand";
33
34
  import { UpdatePbxOAuth2ClientCommand, } from "./commands/UpdatePbxOAuth2ClientCommand";
34
35
  import { createAggregatedClient } from "@smithy/smithy-client";
35
36
  const commands = {
@@ -64,6 +65,7 @@ const commands = {
64
65
  OriginateCommand,
65
66
  OriginateCallCommand,
66
67
  ReloadBroadcastsCommand,
68
+ UpdatePbxColleagueCommand,
67
69
  UpdatePbxOAuth2ClientCommand,
68
70
  };
69
71
  export class WmsApi extends WmsApiClient {
@@ -0,0 +1,17 @@
1
+ import { de_UpdatePbxColleagueCommand, se_UpdatePbxColleagueCommand, } 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 UpdatePbxColleagueCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WmsApi", "UpdatePbxColleague", {})
12
+ .n("WmsApiClient", "UpdatePbxColleagueCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_UpdatePbxColleagueCommand)
15
+ .de(de_UpdatePbxColleagueCommand)
16
+ .build() {
17
+ }
@@ -29,4 +29,5 @@ export * from "./NotificationsCommand";
29
29
  export * from "./OriginateCommand";
30
30
  export * from "./OriginateCallCommand";
31
31
  export * from "./ReloadBroadcastsCommand";
32
+ export * from "./UpdatePbxColleagueCommand";
32
33
  export * from "./UpdatePbxOAuth2ClientCommand";
@@ -544,6 +544,38 @@ export const se_ReloadBroadcastsCommand = async (input, context) => {
544
544
  .b(body);
545
545
  return b.build();
546
546
  };
547
+ export const se_UpdatePbxColleagueCommand = async (input, context) => {
548
+ const b = rb(input, context);
549
+ const headers = {
550
+ 'content-type': 'application/json',
551
+ };
552
+ b.bp("/api/v1/PBX/Colleagues/{id}");
553
+ b.p('id', () => input.id.toString(), '{id}', false);
554
+ let body;
555
+ body = JSON.stringify(take(input, {
556
+ 'department': [],
557
+ 'dialplan': [],
558
+ 'email': [],
559
+ 'extension': [],
560
+ 'faxDialplan': [],
561
+ 'faxNumber': [],
562
+ 'groupDn': [],
563
+ 'language': [],
564
+ 'licenseType': [],
565
+ 'login': [],
566
+ 'mobilePhone': [],
567
+ 'name': [],
568
+ 'officePhone': [],
569
+ 'password': [],
570
+ 'picture': [],
571
+ 'role': [],
572
+ 'sipPassword': [],
573
+ }));
574
+ b.m("PUT")
575
+ .h(headers)
576
+ .b(body);
577
+ return b.build();
578
+ };
547
579
  export const se_UpdatePbxOAuth2ClientCommand = async (input, context) => {
548
580
  const b = rb(input, context);
549
581
  const headers = {
@@ -1016,6 +1048,21 @@ export const de_ReloadBroadcastsCommand = async (output, context) => {
1016
1048
  Object.assign(contents, doc);
1017
1049
  return contents;
1018
1050
  };
1051
+ export const de_UpdatePbxColleagueCommand = async (output, context) => {
1052
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1053
+ return de_CommandError(output, context);
1054
+ }
1055
+ const contents = map({
1056
+ $metadata: deserializeMetadata(output),
1057
+ });
1058
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1059
+ const doc = take(data, {
1060
+ 'result': _json,
1061
+ 'type': __expectString,
1062
+ });
1063
+ Object.assign(contents, doc);
1064
+ return contents;
1065
+ };
1019
1066
  export const de_UpdatePbxOAuth2ClientCommand = async (output, context) => {
1020
1067
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1021
1068
  return de_CommandError(output, context);
@@ -30,6 +30,7 @@ import { NotificationsCommandInput, NotificationsCommandOutput } from "./command
30
30
  import { OriginateCallCommandInput, OriginateCallCommandOutput } from "./commands/OriginateCallCommand";
31
31
  import { OriginateCommandInput, OriginateCommandOutput } from "./commands/OriginateCommand";
32
32
  import { ReloadBroadcastsCommandInput, ReloadBroadcastsCommandOutput } from "./commands/ReloadBroadcastsCommand";
33
+ import { UpdatePbxColleagueCommandInput, UpdatePbxColleagueCommandOutput } from "./commands/UpdatePbxColleagueCommand";
33
34
  import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "./commands/UpdatePbxOAuth2ClientCommand";
34
35
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
35
36
  export interface WmsApi {
@@ -230,6 +231,12 @@ export interface WmsApi {
230
231
  reloadBroadcasts(args: ReloadBroadcastsCommandInput, options?: __HttpHandlerOptions): Promise<ReloadBroadcastsCommandOutput>;
231
232
  reloadBroadcasts(args: ReloadBroadcastsCommandInput, cb: (err: any, data?: ReloadBroadcastsCommandOutput) => void): void;
232
233
  reloadBroadcasts(args: ReloadBroadcastsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ReloadBroadcastsCommandOutput) => void): void;
234
+ /**
235
+ * @see {@link UpdatePbxColleagueCommand}
236
+ */
237
+ updatePbxColleague(args: UpdatePbxColleagueCommandInput, options?: __HttpHandlerOptions): Promise<UpdatePbxColleagueCommandOutput>;
238
+ updatePbxColleague(args: UpdatePbxColleagueCommandInput, cb: (err: any, data?: UpdatePbxColleagueCommandOutput) => void): void;
239
+ updatePbxColleague(args: UpdatePbxColleagueCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePbxColleagueCommandOutput) => void): void;
233
240
  /**
234
241
  * @see {@link UpdatePbxOAuth2ClientCommand}
235
242
  */
@@ -29,6 +29,7 @@ import { NotificationsCommandInput, NotificationsCommandOutput } from "./command
29
29
  import { OriginateCallCommandInput, OriginateCallCommandOutput } from "./commands/OriginateCallCommand";
30
30
  import { OriginateCommandInput, OriginateCommandOutput } from "./commands/OriginateCommand";
31
31
  import { ReloadBroadcastsCommandInput, ReloadBroadcastsCommandOutput } from "./commands/ReloadBroadcastsCommand";
32
+ import { UpdatePbxColleagueCommandInput, UpdatePbxColleagueCommandOutput } from "./commands/UpdatePbxColleagueCommand";
32
33
  import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "./commands/UpdatePbxOAuth2ClientCommand";
33
34
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
34
35
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
@@ -41,11 +42,11 @@ export { __Client };
41
42
  /**
42
43
  * @public
43
44
  */
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;
45
+ 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 | UpdatePbxColleagueCommandInput | UpdatePbxOAuth2ClientCommandInput;
45
46
  /**
46
47
  * @public
47
48
  */
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;
49
+ 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 | UpdatePbxColleagueCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
49
50
  /**
50
51
  * @public
51
52
  */
@@ -38,7 +38,7 @@ declare const CallControlDtmfCommand_base: {
38
38
  * const input = { // CallControlDtmfInput
39
39
  * user: "STRING_VALUE",
40
40
  * sipCallId: "STRING_VALUE", // required
41
- * digits: "STRING_VALUE",
41
+ * digits: "STRING_VALUE", // required
42
42
  * };
43
43
  * const command = new CallControlDtmfCommand(input);
44
44
  * const response = await client.send(command);
@@ -0,0 +1,116 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
2
+ import { UpdatePbxColleagueInput, UpdatePbxColleagueOutput } 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 UpdatePbxColleagueCommand}.
14
+ */
15
+ export interface UpdatePbxColleagueCommandInput extends UpdatePbxColleagueInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdatePbxColleagueCommand}.
21
+ */
22
+ export interface UpdatePbxColleagueCommandOutput extends UpdatePbxColleagueOutput, __MetadataBearer {
23
+ }
24
+ declare const UpdatePbxColleagueCommand_base: {
25
+ new (input: UpdatePbxColleagueCommandInput): import("@smithy/smithy-client").CommandImpl<UpdatePbxColleagueCommandInput, UpdatePbxColleagueCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: UpdatePbxColleagueCommandInput): import("@smithy/smithy-client").CommandImpl<UpdatePbxColleagueCommandInput, UpdatePbxColleagueCommandOutput, 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, UpdatePbxColleagueCommand } from "@wildix/wms-api-client"; // ES Modules import
36
+ * // const { WmsApiClient, UpdatePbxColleagueCommand } = require("@wildix/wms-api-client"); // CommonJS import
37
+ * const client = new WmsApiClient(config);
38
+ * const input = { // UpdatePbxColleagueInput
39
+ * id: Number("int"), // required
40
+ * extension: "STRING_VALUE",
41
+ * name: "STRING_VALUE",
42
+ * officePhone: "STRING_VALUE",
43
+ * mobilePhone: "STRING_VALUE",
44
+ * faxNumber: "STRING_VALUE",
45
+ * email: "STRING_VALUE",
46
+ * role: "admin" || "user" || "fax" || "park_orbit" || "room",
47
+ * groupDn: "STRING_VALUE",
48
+ * language: "STRING_VALUE",
49
+ * dialplan: "STRING_VALUE",
50
+ * faxDialplan: "STRING_VALUE",
51
+ * department: "STRING_VALUE",
52
+ * login: "STRING_VALUE",
53
+ * password: "STRING_VALUE",
54
+ * sipPassword: "STRING_VALUE",
55
+ * licenseType: "basic" || "essential" || "business" || "premium" || "wizyconf",
56
+ * picture: "STRING_VALUE",
57
+ * };
58
+ * const command = new UpdatePbxColleagueCommand(input);
59
+ * const response = await client.send(command);
60
+ * // { // UpdatePbxColleagueOutput
61
+ * // type: "result" || "error", // required
62
+ * // result: { // PbxColleague
63
+ * // id: "STRING_VALUE", // required
64
+ * // name: "STRING_VALUE",
65
+ * // login: "STRING_VALUE",
66
+ * // extension: "STRING_VALUE", // required
67
+ * // officePhone: "STRING_VALUE",
68
+ * // mobilePhone: "STRING_VALUE",
69
+ * // faxNumber: "STRING_VALUE",
70
+ * // email: "STRING_VALUE",
71
+ * // pbxDn: "STRING_VALUE", // required
72
+ * // pbx: "STRING_VALUE", // required
73
+ * // role: "admin" || "user" || "fax" || "park_orbit" || "room", // required
74
+ * // groupName: "STRING_VALUE", // required
75
+ * // groupDn: "STRING_VALUE", // required
76
+ * // language: "STRING_VALUE", // required
77
+ * // dialplan: "STRING_VALUE", // required
78
+ * // faxDialplan: "STRING_VALUE", // required
79
+ * // department: "STRING_VALUE",
80
+ * // picture: "STRING_VALUE", // required
81
+ * // sourceId: "STRING_VALUE",
82
+ * // licenseType: "basic" || "essential" || "business" || "premium" || "wizyconf", // required
83
+ * // jid: "STRING_VALUE", // required
84
+ * // },
85
+ * // };
86
+ *
87
+ * ```
88
+ *
89
+ * @param UpdatePbxColleagueCommandInput - {@link UpdatePbxColleagueCommandInput}
90
+ * @returns {@link UpdatePbxColleagueCommandOutput}
91
+ * @see {@link UpdatePbxColleagueCommandInput} for command's `input` shape.
92
+ * @see {@link UpdatePbxColleagueCommandOutput} for command's `response` shape.
93
+ * @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
94
+ *
95
+ * @throws {@link WmsUnauthorizedException} (client fault)
96
+ *
97
+ * @throws {@link WmsForbiddenException} (client fault)
98
+ *
99
+ * @throws {@link WmsApiServiceException}
100
+ * <p>Base exception class for all service exceptions from WmsApi service.</p>
101
+ *
102
+ *
103
+ */
104
+ export declare class UpdatePbxColleagueCommand extends UpdatePbxColleagueCommand_base {
105
+ /** @internal type navigation helper, not in runtime. */
106
+ protected static __types: {
107
+ api: {
108
+ input: UpdatePbxColleagueInput;
109
+ output: UpdatePbxColleagueOutput;
110
+ };
111
+ sdk: {
112
+ input: UpdatePbxColleagueCommandInput;
113
+ output: UpdatePbxColleagueCommandOutput;
114
+ };
115
+ };
116
+ }
@@ -29,4 +29,5 @@ export * from "./NotificationsCommand";
29
29
  export * from "./OriginateCommand";
30
30
  export * from "./OriginateCallCommand";
31
31
  export * from "./ReloadBroadcastsCommand";
32
+ export * from "./UpdatePbxColleagueCommand";
32
33
  export * from "./UpdatePbxOAuth2ClientCommand";
@@ -246,10 +246,10 @@ export interface CallControlDtmfInput {
246
246
  */
247
247
  sipCallId: string;
248
248
  /**
249
- * DTMF digits
249
+ * DTMF digits. Allowed characters: 0-9, *, #
250
250
  * @public
251
251
  */
252
- digits?: string | undefined;
252
+ digits: string;
253
253
  }
254
254
  /**
255
255
  * @public
@@ -1156,6 +1156,36 @@ export interface ReloadBroadcastsOutput {
1156
1156
  type: ResponseType;
1157
1157
  result: string;
1158
1158
  }
1159
+ /**
1160
+ * @public
1161
+ */
1162
+ export interface UpdatePbxColleagueInput {
1163
+ id: number;
1164
+ extension?: string | undefined;
1165
+ name?: string | undefined;
1166
+ officePhone?: string | undefined;
1167
+ mobilePhone?: string | undefined;
1168
+ faxNumber?: string | undefined;
1169
+ email?: string | undefined;
1170
+ role?: PbxColleagueRole | undefined;
1171
+ groupDn?: string | undefined;
1172
+ language?: string | undefined;
1173
+ dialplan?: string | undefined;
1174
+ faxDialplan?: string | undefined;
1175
+ department?: string | undefined;
1176
+ login?: string | undefined;
1177
+ password?: string | undefined;
1178
+ sipPassword?: string | undefined;
1179
+ licenseType?: PbxLicenseType | undefined;
1180
+ picture?: string | undefined;
1181
+ }
1182
+ /**
1183
+ * @public
1184
+ */
1185
+ export interface UpdatePbxColleagueOutput {
1186
+ type: ResponseType;
1187
+ result: PbxColleague;
1188
+ }
1159
1189
  /**
1160
1190
  * @public
1161
1191
  */
@@ -29,6 +29,7 @@ import { NotificationsCommandInput, NotificationsCommandOutput } from "../comman
29
29
  import { OriginateCallCommandInput, OriginateCallCommandOutput } from "../commands/OriginateCallCommand";
30
30
  import { OriginateCommandInput, OriginateCommandOutput } from "../commands/OriginateCommand";
31
31
  import { ReloadBroadcastsCommandInput, ReloadBroadcastsCommandOutput } from "../commands/ReloadBroadcastsCommand";
32
+ import { UpdatePbxColleagueCommandInput, UpdatePbxColleagueCommandOutput } from "../commands/UpdatePbxColleagueCommand";
32
33
  import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "../commands/UpdatePbxOAuth2ClientCommand";
33
34
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
34
35
  import { SerdeContext as __SerdeContext } from "@smithy/types";
@@ -156,6 +157,10 @@ export declare const se_OriginateCallCommand: (input: OriginateCallCommandInput,
156
157
  * serializeAws_restJson1ReloadBroadcastsCommand
157
158
  */
158
159
  export declare const se_ReloadBroadcastsCommand: (input: ReloadBroadcastsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
160
+ /**
161
+ * serializeAws_restJson1UpdatePbxColleagueCommand
162
+ */
163
+ export declare const se_UpdatePbxColleagueCommand: (input: UpdatePbxColleagueCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
159
164
  /**
160
165
  * serializeAws_restJson1UpdatePbxOAuth2ClientCommand
161
166
  */
@@ -284,6 +289,10 @@ export declare const de_OriginateCallCommand: (output: __HttpResponse, context:
284
289
  * deserializeAws_restJson1ReloadBroadcastsCommand
285
290
  */
286
291
  export declare const de_ReloadBroadcastsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ReloadBroadcastsCommandOutput>;
292
+ /**
293
+ * deserializeAws_restJson1UpdatePbxColleagueCommand
294
+ */
295
+ export declare const de_UpdatePbxColleagueCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdatePbxColleagueCommandOutput>;
287
296
  /**
288
297
  * deserializeAws_restJson1UpdatePbxOAuth2ClientCommand
289
298
  */
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.2.1",
4
+ "version": "1.2.3",
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
+ }