@wildix/wms-api-client 1.1.22 → 1.1.24

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.
Files changed (27) hide show
  1. package/dist-cjs/WmsApi.js +4 -2
  2. package/dist-cjs/commands/CallControlAttendantTransferCommand.js +21 -0
  3. package/dist-cjs/commands/{CallControlTransferCommand.js → CallControlBlindTransferCommand.js} +7 -7
  4. package/dist-cjs/commands/index.js +2 -1
  5. package/dist-cjs/protocols/Aws_restJson1.js +77 -47
  6. package/dist-es/WmsApi.js +4 -2
  7. package/dist-es/commands/CallControlAttendantTransferCommand.js +17 -0
  8. package/dist-es/commands/CallControlBlindTransferCommand.js +17 -0
  9. package/dist-es/commands/index.js +2 -1
  10. package/dist-es/protocols/Aws_restJson1.js +65 -37
  11. package/dist-types/WmsApi.d.ts +14 -7
  12. package/dist-types/WmsApiClient.d.ts +4 -3
  13. package/dist-types/commands/CallControlAnswerCommand.d.ts +2 -5
  14. package/dist-types/commands/CallControlAttendantTransferCommand.d.ts +80 -0
  15. package/dist-types/commands/CallControlBlindTransferCommand.d.ts +80 -0
  16. package/dist-types/commands/CallControlHangupCommand.d.ts +2 -5
  17. package/dist-types/commands/CallControlHoldCommand.d.ts +2 -5
  18. package/dist-types/commands/CallControlMakeCallCommand.d.ts +1 -4
  19. package/dist-types/commands/CallControlUnholdCommand.d.ts +2 -5
  20. package/dist-types/commands/ListUserActiveCallsCommand.d.ts +2 -1
  21. package/dist-types/commands/ListUserDevicesCommand.d.ts +4 -4
  22. package/dist-types/commands/index.d.ts +2 -1
  23. package/dist-types/models/models_0.d.ts +80 -41
  24. package/dist-types/protocols/Aws_restJson1.d.ts +18 -9
  25. package/package.json +1 -1
  26. package/dist-es/commands/CallControlTransferCommand.js +0 -17
  27. package/dist-types/commands/CallControlTransferCommand.d.ts +0 -83
@@ -8,14 +8,14 @@ export const se_CallControlAnswerCommand = async (input, context) => {
8
8
  const headers = {
9
9
  'content-type': 'application/json',
10
10
  };
11
- b.bp("/api/v1/call-control/answer");
11
+ b.bp("/api/v2/call-control/answer");
12
12
  const query = map({
13
13
  [_u]: [, input[_u]],
14
14
  });
15
15
  let body;
16
16
  body = JSON.stringify(take(input, {
17
- 'channel': [],
18
17
  'device': [],
18
+ 'sipCallId': [],
19
19
  }));
20
20
  b.m("POST")
21
21
  .h(headers)
@@ -23,19 +23,19 @@ export const se_CallControlAnswerCommand = async (input, context) => {
23
23
  .b(body);
24
24
  return b.build();
25
25
  };
26
- export const se_CallControlHangupCommand = async (input, context) => {
26
+ export const se_CallControlAttendantTransferCommand = async (input, context) => {
27
27
  const b = rb(input, context);
28
28
  const headers = {
29
29
  'content-type': 'application/json',
30
30
  };
31
- b.bp("/api/v1/call-control/hangup");
31
+ b.bp("/api/v2/call-control/attendant-transfer");
32
32
  const query = map({
33
33
  [_u]: [, input[_u]],
34
34
  });
35
35
  let body;
36
36
  body = JSON.stringify(take(input, {
37
- 'channel': [],
38
- 'reason': [],
37
+ 'destination': [],
38
+ 'sipCallId': [],
39
39
  }));
40
40
  b.m("POST")
41
41
  .h(headers)
@@ -43,18 +43,19 @@ export const se_CallControlHangupCommand = async (input, context) => {
43
43
  .b(body);
44
44
  return b.build();
45
45
  };
46
- export const se_CallControlHoldCommand = async (input, context) => {
46
+ export const se_CallControlBlindTransferCommand = async (input, context) => {
47
47
  const b = rb(input, context);
48
48
  const headers = {
49
49
  'content-type': 'application/json',
50
50
  };
51
- b.bp("/api/v1/call-control/hold");
51
+ b.bp("/api/v2/call-control/blind-transfer");
52
52
  const query = map({
53
53
  [_u]: [, input[_u]],
54
54
  });
55
55
  let body;
56
56
  body = JSON.stringify(take(input, {
57
- 'channel': [],
57
+ 'destination': [],
58
+ 'sipCallId': [],
58
59
  }));
59
60
  b.m("POST")
60
61
  .h(headers)
@@ -62,19 +63,19 @@ export const se_CallControlHoldCommand = async (input, context) => {
62
63
  .b(body);
63
64
  return b.build();
64
65
  };
65
- export const se_CallControlMakeCallCommand = async (input, context) => {
66
+ export const se_CallControlHangupCommand = async (input, context) => {
66
67
  const b = rb(input, context);
67
68
  const headers = {
68
69
  'content-type': 'application/json',
69
70
  };
70
- b.bp("/api/v1/call-control/make-call");
71
+ b.bp("/api/v2/call-control/hangup");
71
72
  const query = map({
72
73
  [_u]: [, input[_u]],
73
74
  });
74
75
  let body;
75
76
  body = JSON.stringify(take(input, {
76
- 'destination': [],
77
- 'device': [],
77
+ 'reason': [],
78
+ 'sipCallId': [],
78
79
  }));
79
80
  b.m("POST")
80
81
  .h(headers)
@@ -82,19 +83,38 @@ export const se_CallControlMakeCallCommand = async (input, context) => {
82
83
  .b(body);
83
84
  return b.build();
84
85
  };
85
- export const se_CallControlTransferCommand = async (input, context) => {
86
+ export const se_CallControlHoldCommand = async (input, context) => {
86
87
  const b = rb(input, context);
87
88
  const headers = {
88
89
  'content-type': 'application/json',
89
90
  };
90
- b.bp("/api/v1/call-control/transfer");
91
+ b.bp("/api/v2/call-control/hold");
92
+ const query = map({
93
+ [_u]: [, input[_u]],
94
+ });
95
+ let body;
96
+ body = JSON.stringify(take(input, {
97
+ 'sipCallId': [],
98
+ }));
99
+ b.m("POST")
100
+ .h(headers)
101
+ .q(query)
102
+ .b(body);
103
+ return b.build();
104
+ };
105
+ export const se_CallControlMakeCallCommand = async (input, context) => {
106
+ const b = rb(input, context);
107
+ const headers = {
108
+ 'content-type': 'application/json',
109
+ };
110
+ b.bp("/api/v2/call-control/make-call");
91
111
  const query = map({
92
112
  [_u]: [, input[_u]],
93
113
  });
94
114
  let body;
95
115
  body = JSON.stringify(take(input, {
96
- 'channel': [],
97
116
  'destination': [],
117
+ 'device': [],
98
118
  }));
99
119
  b.m("POST")
100
120
  .h(headers)
@@ -107,13 +127,13 @@ export const se_CallControlUnholdCommand = async (input, context) => {
107
127
  const headers = {
108
128
  'content-type': 'application/json',
109
129
  };
110
- b.bp("/api/v1/call-control/unhold");
130
+ b.bp("/api/v2/call-control/unhold");
111
131
  const query = map({
112
132
  [_u]: [, input[_u]],
113
133
  });
114
134
  let body;
115
135
  body = JSON.stringify(take(input, {
116
- 'channel': [],
136
+ 'sipCallId': [],
117
137
  }));
118
138
  b.m("POST")
119
139
  .h(headers)
@@ -348,7 +368,7 @@ export const se_GetPersonalInfoCommand = async (input, context) => {
348
368
  export const se_ListUserActiveCallsCommand = async (input, context) => {
349
369
  const b = rb(input, context);
350
370
  const headers = {};
351
- b.bp("/api/v1/call-control/list-calls");
371
+ b.bp("/api/v2/call-control/list-calls");
352
372
  const query = map({
353
373
  [_u]: [, input[_u]],
354
374
  });
@@ -362,7 +382,7 @@ export const se_ListUserActiveCallsCommand = async (input, context) => {
362
382
  export const se_ListUserDevicesCommand = async (input, context) => {
363
383
  const b = rb(input, context);
364
384
  const headers = {};
365
- b.bp("/api/v1/call-control/list-devices");
385
+ b.bp("/api/v2/call-control/list-devices");
366
386
  const query = map({
367
387
  [_u]: [, input[_u]],
368
388
  });
@@ -477,13 +497,12 @@ export const de_CallControlAnswerCommand = async (output, context) => {
477
497
  });
478
498
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
479
499
  const doc = take(data, {
480
- 'result': _json,
481
- 'type': __expectString,
500
+ 'message': __expectString,
482
501
  });
483
502
  Object.assign(contents, doc);
484
503
  return contents;
485
504
  };
486
- export const de_CallControlHangupCommand = async (output, context) => {
505
+ export const de_CallControlAttendantTransferCommand = async (output, context) => {
487
506
  if (output.statusCode !== 200 && output.statusCode >= 300) {
488
507
  return de_CommandError(output, context);
489
508
  }
@@ -492,13 +511,12 @@ export const de_CallControlHangupCommand = async (output, context) => {
492
511
  });
493
512
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
494
513
  const doc = take(data, {
495
- 'result': _json,
496
- 'type': __expectString,
514
+ 'message': __expectString,
497
515
  });
498
516
  Object.assign(contents, doc);
499
517
  return contents;
500
518
  };
501
- export const de_CallControlHoldCommand = async (output, context) => {
519
+ export const de_CallControlBlindTransferCommand = async (output, context) => {
502
520
  if (output.statusCode !== 200 && output.statusCode >= 300) {
503
521
  return de_CommandError(output, context);
504
522
  }
@@ -507,13 +525,12 @@ export const de_CallControlHoldCommand = async (output, context) => {
507
525
  });
508
526
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
509
527
  const doc = take(data, {
510
- 'result': _json,
511
- 'type': __expectString,
528
+ 'message': __expectString,
512
529
  });
513
530
  Object.assign(contents, doc);
514
531
  return contents;
515
532
  };
516
- export const de_CallControlMakeCallCommand = async (output, context) => {
533
+ export const de_CallControlHangupCommand = async (output, context) => {
517
534
  if (output.statusCode !== 200 && output.statusCode >= 300) {
518
535
  return de_CommandError(output, context);
519
536
  }
@@ -522,13 +539,12 @@ export const de_CallControlMakeCallCommand = async (output, context) => {
522
539
  });
523
540
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
524
541
  const doc = take(data, {
525
- 'result': _json,
526
- 'type': __expectString,
542
+ 'message': __expectString,
527
543
  });
528
544
  Object.assign(contents, doc);
529
545
  return contents;
530
546
  };
531
- export const de_CallControlTransferCommand = async (output, context) => {
547
+ export const de_CallControlHoldCommand = async (output, context) => {
532
548
  if (output.statusCode !== 200 && output.statusCode >= 300) {
533
549
  return de_CommandError(output, context);
534
550
  }
@@ -537,8 +553,21 @@ export const de_CallControlTransferCommand = async (output, context) => {
537
553
  });
538
554
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
539
555
  const doc = take(data, {
540
- 'result': _json,
541
- 'type': __expectString,
556
+ 'message': __expectString,
557
+ });
558
+ Object.assign(contents, doc);
559
+ return contents;
560
+ };
561
+ export const de_CallControlMakeCallCommand = async (output, context) => {
562
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
563
+ return de_CommandError(output, context);
564
+ }
565
+ const contents = map({
566
+ $metadata: deserializeMetadata(output),
567
+ });
568
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
569
+ const doc = take(data, {
570
+ 'message': __expectString,
542
571
  });
543
572
  Object.assign(contents, doc);
544
573
  return contents;
@@ -552,8 +581,7 @@ export const de_CallControlUnholdCommand = async (output, context) => {
552
581
  });
553
582
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
554
583
  const doc = take(data, {
555
- 'result': _json,
556
- 'type': __expectString,
584
+ 'message': __expectString,
557
585
  });
558
586
  Object.assign(contents, doc);
559
587
  return contents;
@@ -776,7 +804,7 @@ export const de_ListUserDevicesCommand = async (output, context) => {
776
804
  });
777
805
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
778
806
  const doc = take(data, {
779
- 'active_device': _json,
807
+ 'activeDevice': _json,
780
808
  'devices': _json,
781
809
  });
782
810
  Object.assign(contents, doc);
@@ -1,9 +1,10 @@
1
1
  import { WmsApiClient } from "./WmsApiClient";
2
2
  import { CallControlAnswerCommandInput, CallControlAnswerCommandOutput } from "./commands/CallControlAnswerCommand";
3
+ import { CallControlAttendantTransferCommandInput, CallControlAttendantTransferCommandOutput } from "./commands/CallControlAttendantTransferCommand";
4
+ import { CallControlBlindTransferCommandInput, CallControlBlindTransferCommandOutput } from "./commands/CallControlBlindTransferCommand";
3
5
  import { CallControlHangupCommandInput, CallControlHangupCommandOutput } from "./commands/CallControlHangupCommand";
4
6
  import { CallControlHoldCommandInput, CallControlHoldCommandOutput } from "./commands/CallControlHoldCommand";
5
7
  import { CallControlMakeCallCommandInput, CallControlMakeCallCommandOutput } from "./commands/CallControlMakeCallCommand";
6
- import { CallControlTransferCommandInput, CallControlTransferCommandOutput } from "./commands/CallControlTransferCommand";
7
8
  import { CallControlUnholdCommandInput, CallControlUnholdCommandOutput } from "./commands/CallControlUnholdCommand";
8
9
  import { CreatePbxAclGroupCommandInput, CreatePbxAclGroupCommandOutput } from "./commands/CreatePbxAclGroupCommand";
9
10
  import { CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput } from "./commands/CreatePbxColleagueCommand";
@@ -33,6 +34,18 @@ export interface WmsApi {
33
34
  callControlAnswer(args: CallControlAnswerCommandInput, options?: __HttpHandlerOptions): Promise<CallControlAnswerCommandOutput>;
34
35
  callControlAnswer(args: CallControlAnswerCommandInput, cb: (err: any, data?: CallControlAnswerCommandOutput) => void): void;
35
36
  callControlAnswer(args: CallControlAnswerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CallControlAnswerCommandOutput) => void): void;
37
+ /**
38
+ * @see {@link CallControlAttendantTransferCommand}
39
+ */
40
+ callControlAttendantTransfer(args: CallControlAttendantTransferCommandInput, options?: __HttpHandlerOptions): Promise<CallControlAttendantTransferCommandOutput>;
41
+ callControlAttendantTransfer(args: CallControlAttendantTransferCommandInput, cb: (err: any, data?: CallControlAttendantTransferCommandOutput) => void): void;
42
+ callControlAttendantTransfer(args: CallControlAttendantTransferCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CallControlAttendantTransferCommandOutput) => void): void;
43
+ /**
44
+ * @see {@link CallControlBlindTransferCommand}
45
+ */
46
+ callControlBlindTransfer(args: CallControlBlindTransferCommandInput, options?: __HttpHandlerOptions): Promise<CallControlBlindTransferCommandOutput>;
47
+ callControlBlindTransfer(args: CallControlBlindTransferCommandInput, cb: (err: any, data?: CallControlBlindTransferCommandOutput) => void): void;
48
+ callControlBlindTransfer(args: CallControlBlindTransferCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CallControlBlindTransferCommandOutput) => void): void;
36
49
  /**
37
50
  * @see {@link CallControlHangupCommand}
38
51
  */
@@ -51,12 +64,6 @@ export interface WmsApi {
51
64
  callControlMakeCall(args: CallControlMakeCallCommandInput, options?: __HttpHandlerOptions): Promise<CallControlMakeCallCommandOutput>;
52
65
  callControlMakeCall(args: CallControlMakeCallCommandInput, cb: (err: any, data?: CallControlMakeCallCommandOutput) => void): void;
53
66
  callControlMakeCall(args: CallControlMakeCallCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CallControlMakeCallCommandOutput) => void): void;
54
- /**
55
- * @see {@link CallControlTransferCommand}
56
- */
57
- callControlTransfer(args: CallControlTransferCommandInput, options?: __HttpHandlerOptions): Promise<CallControlTransferCommandOutput>;
58
- callControlTransfer(args: CallControlTransferCommandInput, cb: (err: any, data?: CallControlTransferCommandOutput) => void): void;
59
- callControlTransfer(args: CallControlTransferCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CallControlTransferCommandOutput) => void): void;
60
67
  /**
61
68
  * @see {@link CallControlUnholdCommand}
62
69
  */
@@ -1,8 +1,9 @@
1
1
  import { CallControlAnswerCommandInput, CallControlAnswerCommandOutput } from "./commands/CallControlAnswerCommand";
2
+ import { CallControlAttendantTransferCommandInput, CallControlAttendantTransferCommandOutput } from "./commands/CallControlAttendantTransferCommand";
3
+ import { CallControlBlindTransferCommandInput, CallControlBlindTransferCommandOutput } from "./commands/CallControlBlindTransferCommand";
2
4
  import { CallControlHangupCommandInput, CallControlHangupCommandOutput } from "./commands/CallControlHangupCommand";
3
5
  import { CallControlHoldCommandInput, CallControlHoldCommandOutput } from "./commands/CallControlHoldCommand";
4
6
  import { CallControlMakeCallCommandInput, CallControlMakeCallCommandOutput } from "./commands/CallControlMakeCallCommand";
5
- import { CallControlTransferCommandInput, CallControlTransferCommandOutput } from "./commands/CallControlTransferCommand";
6
7
  import { CallControlUnholdCommandInput, CallControlUnholdCommandOutput } from "./commands/CallControlUnholdCommand";
7
8
  import { CreatePbxAclGroupCommandInput, CreatePbxAclGroupCommandOutput } from "./commands/CreatePbxAclGroupCommand";
8
9
  import { CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput } from "./commands/CreatePbxColleagueCommand";
@@ -35,11 +36,11 @@ export { __Client };
35
36
  /**
36
37
  * @public
37
38
  */
38
- export type ServiceInputTypes = CallControlAnswerCommandInput | CallControlHangupCommandInput | CallControlHoldCommandInput | CallControlMakeCallCommandInput | CallControlTransferCommandInput | CallControlUnholdCommandInput | CreatePbxAclGroupCommandInput | CreatePbxColleagueCommandInput | CreatePbxOAuth2ClientCommandInput | DeletePbxAclGroupCommandInput | DeletePbxColleagueCommandInput | DeletePbxOAuth2ClientCommandInput | GetColleagueByIdCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | GetPbxesCommandInput | GetPersonalInfoCommandInput | ListUserActiveCallsCommandInput | ListUserDevicesCommandInput | NotificationsCommandInput | OriginateCallCommandInput | OriginateCommandInput | ReloadBroadcastsCommandInput | UpdatePbxOAuth2ClientCommandInput;
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;
39
40
  /**
40
41
  * @public
41
42
  */
42
- export type ServiceOutputTypes = CallControlAnswerCommandOutput | CallControlHangupCommandOutput | CallControlHoldCommandOutput | CallControlMakeCallCommandOutput | CallControlTransferCommandOutput | CallControlUnholdCommandOutput | CreatePbxAclGroupCommandOutput | CreatePbxColleagueCommandOutput | CreatePbxOAuth2ClientCommandOutput | DeletePbxAclGroupCommandOutput | DeletePbxColleagueCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetColleagueByIdCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | GetPbxesCommandOutput | GetPersonalInfoCommandOutput | ListUserActiveCallsCommandOutput | ListUserDevicesCommandOutput | NotificationsCommandOutput | OriginateCallCommandOutput | OriginateCommandOutput | ReloadBroadcastsCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
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;
43
44
  /**
44
45
  * @public
45
46
  */
@@ -37,16 +37,13 @@ declare const CallControlAnswerCommand_base: {
37
37
  * const client = new WmsApiClient(config);
38
38
  * const input = { // CallControlAnswerInput
39
39
  * user: "STRING_VALUE",
40
- * channel: "STRING_VALUE", // required
40
+ * sipCallId: "STRING_VALUE", // required
41
41
  * device: "STRING_VALUE",
42
42
  * };
43
43
  * const command = new CallControlAnswerCommand(input);
44
44
  * const response = await client.send(command);
45
45
  * // { // CallControlAnswerOutput
46
- * // type: "result" || "error", // required
47
- * // result: { // CallControlResult
48
- * // message: "STRING_VALUE",
49
- * // },
46
+ * // message: "STRING_VALUE",
50
47
  * // };
51
48
  *
52
49
  * ```
@@ -0,0 +1,80 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
2
+ import { CallControlAttendantTransferInput, CallControlAttendantTransferOutput } 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 CallControlAttendantTransferCommand}.
14
+ */
15
+ export interface CallControlAttendantTransferCommandInput extends CallControlAttendantTransferInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CallControlAttendantTransferCommand}.
21
+ */
22
+ export interface CallControlAttendantTransferCommandOutput extends CallControlAttendantTransferOutput, __MetadataBearer {
23
+ }
24
+ declare const CallControlAttendantTransferCommand_base: {
25
+ new (input: CallControlAttendantTransferCommandInput): import("@smithy/smithy-client").CommandImpl<CallControlAttendantTransferCommandInput, CallControlAttendantTransferCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: CallControlAttendantTransferCommandInput): import("@smithy/smithy-client").CommandImpl<CallControlAttendantTransferCommandInput, CallControlAttendantTransferCommandOutput, 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, CallControlAttendantTransferCommand } from "@wildix/wms-api-client"; // ES Modules import
36
+ * // const { WmsApiClient, CallControlAttendantTransferCommand } = require("@wildix/wms-api-client"); // CommonJS import
37
+ * const client = new WmsApiClient(config);
38
+ * const input = { // CallControlAttendantTransferInput
39
+ * user: "STRING_VALUE",
40
+ * sipCallId: "STRING_VALUE", // required
41
+ * destination: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new CallControlAttendantTransferCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // CallControlAttendantTransferOutput
46
+ * // message: "STRING_VALUE",
47
+ * // };
48
+ *
49
+ * ```
50
+ *
51
+ * @param CallControlAttendantTransferCommandInput - {@link CallControlAttendantTransferCommandInput}
52
+ * @returns {@link CallControlAttendantTransferCommandOutput}
53
+ * @see {@link CallControlAttendantTransferCommandInput} for command's `input` shape.
54
+ * @see {@link CallControlAttendantTransferCommandOutput} 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 CallControlAttendantTransferCommand extends CallControlAttendantTransferCommand_base {
69
+ /** @internal type navigation helper, not in runtime. */
70
+ protected static __types: {
71
+ api: {
72
+ input: CallControlAttendantTransferInput;
73
+ output: CallControlAttendantTransferOutput;
74
+ };
75
+ sdk: {
76
+ input: CallControlAttendantTransferCommandInput;
77
+ output: CallControlAttendantTransferCommandOutput;
78
+ };
79
+ };
80
+ }
@@ -0,0 +1,80 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
2
+ import { CallControlBlindTransferInput, CallControlBlindTransferOutput } 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 CallControlBlindTransferCommand}.
14
+ */
15
+ export interface CallControlBlindTransferCommandInput extends CallControlBlindTransferInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CallControlBlindTransferCommand}.
21
+ */
22
+ export interface CallControlBlindTransferCommandOutput extends CallControlBlindTransferOutput, __MetadataBearer {
23
+ }
24
+ declare const CallControlBlindTransferCommand_base: {
25
+ new (input: CallControlBlindTransferCommandInput): import("@smithy/smithy-client").CommandImpl<CallControlBlindTransferCommandInput, CallControlBlindTransferCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: CallControlBlindTransferCommandInput): import("@smithy/smithy-client").CommandImpl<CallControlBlindTransferCommandInput, CallControlBlindTransferCommandOutput, 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, CallControlBlindTransferCommand } from "@wildix/wms-api-client"; // ES Modules import
36
+ * // const { WmsApiClient, CallControlBlindTransferCommand } = require("@wildix/wms-api-client"); // CommonJS import
37
+ * const client = new WmsApiClient(config);
38
+ * const input = { // CallControlBlindTransferInput
39
+ * user: "STRING_VALUE",
40
+ * sipCallId: "STRING_VALUE", // required
41
+ * destination: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new CallControlBlindTransferCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // CallControlBlindTransferOutput
46
+ * // message: "STRING_VALUE",
47
+ * // };
48
+ *
49
+ * ```
50
+ *
51
+ * @param CallControlBlindTransferCommandInput - {@link CallControlBlindTransferCommandInput}
52
+ * @returns {@link CallControlBlindTransferCommandOutput}
53
+ * @see {@link CallControlBlindTransferCommandInput} for command's `input` shape.
54
+ * @see {@link CallControlBlindTransferCommandOutput} 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 CallControlBlindTransferCommand extends CallControlBlindTransferCommand_base {
69
+ /** @internal type navigation helper, not in runtime. */
70
+ protected static __types: {
71
+ api: {
72
+ input: CallControlBlindTransferInput;
73
+ output: CallControlBlindTransferOutput;
74
+ };
75
+ sdk: {
76
+ input: CallControlBlindTransferCommandInput;
77
+ output: CallControlBlindTransferCommandOutput;
78
+ };
79
+ };
80
+ }
@@ -37,16 +37,13 @@ declare const CallControlHangupCommand_base: {
37
37
  * const client = new WmsApiClient(config);
38
38
  * const input = { // CallControlHangupInput
39
39
  * user: "STRING_VALUE",
40
- * channel: "STRING_VALUE", // required
40
+ * sipCallId: "STRING_VALUE", // required
41
41
  * reason: "STRING_VALUE",
42
42
  * };
43
43
  * const command = new CallControlHangupCommand(input);
44
44
  * const response = await client.send(command);
45
45
  * // { // CallControlHangupOutput
46
- * // type: "result" || "error", // required
47
- * // result: { // CallControlResult
48
- * // message: "STRING_VALUE",
49
- * // },
46
+ * // message: "STRING_VALUE",
50
47
  * // };
51
48
  *
52
49
  * ```
@@ -37,15 +37,12 @@ declare const CallControlHoldCommand_base: {
37
37
  * const client = new WmsApiClient(config);
38
38
  * const input = { // CallControlHoldInput
39
39
  * user: "STRING_VALUE",
40
- * channel: "STRING_VALUE", // required
40
+ * sipCallId: "STRING_VALUE", // required
41
41
  * };
42
42
  * const command = new CallControlHoldCommand(input);
43
43
  * const response = await client.send(command);
44
44
  * // { // CallControlHoldOutput
45
- * // type: "result" || "error", // required
46
- * // result: { // CallControlResult
47
- * // message: "STRING_VALUE",
48
- * // },
45
+ * // message: "STRING_VALUE",
49
46
  * // };
50
47
  *
51
48
  * ```
@@ -43,10 +43,7 @@ declare const CallControlMakeCallCommand_base: {
43
43
  * const command = new CallControlMakeCallCommand(input);
44
44
  * const response = await client.send(command);
45
45
  * // { // CallControlMakeCallOutput
46
- * // type: "result" || "error", // required
47
- * // result: { // CallControlResult
48
- * // message: "STRING_VALUE",
49
- * // },
46
+ * // message: "STRING_VALUE",
50
47
  * // };
51
48
  *
52
49
  * ```
@@ -37,15 +37,12 @@ declare const CallControlUnholdCommand_base: {
37
37
  * const client = new WmsApiClient(config);
38
38
  * const input = { // CallControlUnholdInput
39
39
  * user: "STRING_VALUE",
40
- * channel: "STRING_VALUE", // required
40
+ * sipCallId: "STRING_VALUE", // required
41
41
  * };
42
42
  * const command = new CallControlUnholdCommand(input);
43
43
  * const response = await client.send(command);
44
44
  * // { // CallControlUnholdOutput
45
- * // type: "result" || "error", // required
46
- * // result: { // CallControlResult
47
- * // message: "STRING_VALUE",
48
- * // },
45
+ * // message: "STRING_VALUE",
49
46
  * // };
50
47
  *
51
48
  * ```
@@ -43,12 +43,13 @@ declare const ListUserActiveCallsCommand_base: {
43
43
  * // { // ListUserActiveCallsOutput
44
44
  * // calls: [ // Calls
45
45
  * // { // Call
46
- * // callId: "STRING_VALUE", // required
46
+ * // sipCallId: "STRING_VALUE", // required
47
47
  * // callerNumber: "STRING_VALUE",
48
48
  * // callerName: "STRING_VALUE",
49
49
  * // calleeNumber: "STRING_VALUE",
50
50
  * // calleeName: "STRING_VALUE",
51
51
  * // state: "STRING_VALUE",
52
+ * // duration: Number("int"),
52
53
  * // },
53
54
  * // ],
54
55
  * // };
@@ -41,14 +41,14 @@ declare const ListUserDevicesCommand_base: {
41
41
  * const command = new ListUserDevicesCommand(input);
42
42
  * const response = await client.send(command);
43
43
  * // { // ListUserDevicesOutput
44
- * // devices: [ // DevicesList
44
+ * // devices: [ // DevicesList // required
45
45
  * // { // UserDevice
46
- * // user_agent: "STRING_VALUE",
46
+ * // userAgent: "STRING_VALUE",
47
47
  * // contact: "STRING_VALUE",
48
48
  * // },
49
49
  * // ],
50
- * // active_device: {
51
- * // user_agent: "STRING_VALUE",
50
+ * // activeDevice: {
51
+ * // userAgent: "STRING_VALUE",
52
52
  * // contact: "STRING_VALUE",
53
53
  * // },
54
54
  * // };
@@ -1,8 +1,9 @@
1
1
  export * from "./CallControlAnswerCommand";
2
+ export * from "./CallControlAttendantTransferCommand";
3
+ export * from "./CallControlBlindTransferCommand";
2
4
  export * from "./CallControlHangupCommand";
3
5
  export * from "./CallControlHoldCommand";
4
6
  export * from "./CallControlMakeCallCommand";
5
- export * from "./CallControlTransferCommand";
6
7
  export * from "./CallControlUnholdCommand";
7
8
  export * from "./CreatePbxAclGroupCommand";
8
9
  export * from "./CreatePbxColleagueCommand";