@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
@@ -82,12 +82,13 @@ export interface AclGroupPermission {
82
82
  * @public
83
83
  */
84
84
  export interface Call {
85
- callId: string;
85
+ sipCallId: string;
86
86
  callerNumber?: string | undefined;
87
87
  callerName?: string | undefined;
88
88
  calleeNumber?: string | undefined;
89
89
  calleeName?: string | undefined;
90
90
  state?: string | undefined;
91
+ duration?: number | undefined;
91
92
  }
92
93
  /**
93
94
  * @public
@@ -102,7 +103,7 @@ export interface CallControlAnswerInput {
102
103
  * Call identifier. For makecall action it is not required, for other actions it is required.
103
104
  * @public
104
105
  */
105
- channel: string;
106
+ sipCallId: string;
106
107
  /**
107
108
  * Can specify the device to answer the call on. If not specified, the default device for the user will be used.
108
109
  * @public
@@ -112,7 +113,7 @@ export interface CallControlAnswerInput {
112
113
  /**
113
114
  * @public
114
115
  */
115
- export interface CallControlResult {
116
+ export interface CallControlAnswerOutput {
116
117
  /**
117
118
  * A message describing the result of the call control operation, providing additional details or error information if applicable.
118
119
  * @public
@@ -131,13 +132,6 @@ export declare const ResponseType: {
131
132
  * @public
132
133
  */
133
134
  export type ResponseType = typeof ResponseType[keyof typeof ResponseType];
134
- /**
135
- * @public
136
- */
137
- export interface CallControlAnswerOutput {
138
- type: ResponseType;
139
- result: CallControlResult;
140
- }
141
135
  /**
142
136
  * @public
143
137
  */
@@ -180,7 +174,7 @@ export declare class WmsUnauthorizedException extends __BaseException {
180
174
  /**
181
175
  * @public
182
176
  */
183
- export interface CallControlHangupInput {
177
+ export interface CallControlAttendantTransferInput {
184
178
  /**
185
179
  * 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.
186
180
  * @public
@@ -190,24 +184,27 @@ export interface CallControlHangupInput {
190
184
  * Call identifier. For makecall action it is not required, for other actions it is required.
191
185
  * @public
192
186
  */
193
- channel: string;
187
+ sipCallId: string;
194
188
  /**
195
- * Optional reason for the hangup. This can provide additional context for the action taken.
189
+ * The destination for a call control operation. This can be a phone number, extension, or another valid identifier.
196
190
  * @public
197
191
  */
198
- reason?: string | undefined;
192
+ destination: string;
199
193
  }
200
194
  /**
201
195
  * @public
202
196
  */
203
- export interface CallControlHangupOutput {
204
- type: ResponseType;
205
- result: CallControlResult;
197
+ export interface CallControlAttendantTransferOutput {
198
+ /**
199
+ * A message describing the result of the call control operation, providing additional details or error information if applicable.
200
+ * @public
201
+ */
202
+ message?: string | undefined;
206
203
  }
207
204
  /**
208
205
  * @public
209
206
  */
210
- export interface CallControlHoldInput {
207
+ export interface CallControlBlindTransferInput {
211
208
  /**
212
209
  * 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.
213
210
  * @public
@@ -217,46 +214,57 @@ export interface CallControlHoldInput {
217
214
  * Call identifier. For makecall action it is not required, for other actions it is required.
218
215
  * @public
219
216
  */
220
- channel: string;
217
+ sipCallId: string;
218
+ /**
219
+ * The destination for a call control operation. This can be a phone number, extension, or another valid identifier.
220
+ * @public
221
+ */
222
+ destination: string;
221
223
  }
222
224
  /**
223
225
  * @public
224
226
  */
225
- export interface CallControlHoldOutput {
226
- type: ResponseType;
227
- result: CallControlResult;
227
+ export interface CallControlBlindTransferOutput {
228
+ /**
229
+ * A message describing the result of the call control operation, providing additional details or error information if applicable.
230
+ * @public
231
+ */
232
+ message?: string | undefined;
228
233
  }
229
234
  /**
230
235
  * @public
231
236
  */
232
- export interface CallControlMakeCallInput {
237
+ export interface CallControlHangupInput {
233
238
  /**
234
239
  * Extension, login or email. Only users with root admin authorization can specify a different user. By default, the authorized user will be used. Optional parameter.
235
240
  * @public
236
241
  */
237
242
  user?: string | undefined;
238
243
  /**
239
- * The destination for a call control operation. This can be a phone number, extension, or another valid identifier.
244
+ * Call identifier. For makecall action it is not required, for other actions it is required.
240
245
  * @public
241
246
  */
242
- destination: string;
247
+ sipCallId: string;
243
248
  /**
244
- * Can specify the device to answer the call on. If not specified, the default device for the user will be used.
249
+ * Optional reason for the hangup. This can provide additional context for the action taken.
245
250
  * @public
246
251
  */
247
- device?: string | undefined;
252
+ reason?: string | undefined;
248
253
  }
249
254
  /**
250
255
  * @public
251
256
  */
252
- export interface CallControlMakeCallOutput {
253
- type: ResponseType;
254
- result: CallControlResult;
257
+ export interface CallControlHangupOutput {
258
+ /**
259
+ * A message describing the result of the call control operation, providing additional details or error information if applicable.
260
+ * @public
261
+ */
262
+ message?: string | undefined;
255
263
  }
256
264
  /**
257
265
  * @public
258
266
  */
259
- export interface CallControlTransferInput {
267
+ export interface CallControlHoldInput {
260
268
  /**
261
269
  * 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.
262
270
  * @public
@@ -266,19 +274,47 @@ export interface CallControlTransferInput {
266
274
  * Call identifier. For makecall action it is not required, for other actions it is required.
267
275
  * @public
268
276
  */
269
- channel: string;
277
+ sipCallId: string;
278
+ }
279
+ /**
280
+ * @public
281
+ */
282
+ export interface CallControlHoldOutput {
283
+ /**
284
+ * A message describing the result of the call control operation, providing additional details or error information if applicable.
285
+ * @public
286
+ */
287
+ message?: string | undefined;
288
+ }
289
+ /**
290
+ * @public
291
+ */
292
+ export interface CallControlMakeCallInput {
293
+ /**
294
+ * 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.
295
+ * @public
296
+ */
297
+ user?: string | undefined;
270
298
  /**
271
299
  * The destination for a call control operation. This can be a phone number, extension, or another valid identifier.
272
300
  * @public
273
301
  */
274
302
  destination: string;
303
+ /**
304
+ * Can specify the device to answer the call on. If not specified, the default device for the user will be used.
305
+ * @public
306
+ */
307
+ device?: string | undefined;
275
308
  }
276
309
  /**
277
310
  * @public
278
311
  */
279
- export interface CallControlTransferOutput {
280
- type: ResponseType;
281
- result: CallControlResult;
312
+ export interface CallControlMakeCallOutput {
313
+ /**
314
+ * A message describing the result of the call control operation, providing additional details or error information if applicable.
315
+ * @public
316
+ */
317
+ message?: string | undefined;
282
318
  }
283
319
  /**
284
320
  * @public
@@ -293,14 +329,17 @@ export interface CallControlUnholdInput {
293
329
  * Call identifier. For makecall action it is not required, for other actions it is required.
294
330
  * @public
295
331
  */
296
- channel: string;
332
+ sipCallId: string;
297
333
  }
298
334
  /**
299
335
  * @public
300
336
  */
301
337
  export interface CallControlUnholdOutput {
302
- type: ResponseType;
303
- result: CallControlResult;
338
+ /**
339
+ * A message describing the result of the call control operation, providing additional details or error information if applicable.
340
+ * @public
341
+ */
342
+ message?: string | undefined;
304
343
  }
305
344
  /**
306
345
  * @public
@@ -507,7 +546,7 @@ export declare class WmsNotFoundException extends __BaseException {
507
546
  * @public
508
547
  */
509
548
  export interface UserDevice {
510
- user_agent?: string | undefined;
549
+ userAgent?: string | undefined;
511
550
  contact?: string | undefined;
512
551
  }
513
552
  /**
@@ -814,8 +853,8 @@ export interface ListUserDevicesInput {
814
853
  * @public
815
854
  */
816
855
  export interface ListUserDevicesOutput {
817
- devices?: (UserDevice)[] | undefined;
818
- active_device?: UserDevice | undefined;
856
+ devices: (UserDevice)[];
857
+ activeDevice: UserDevice;
819
858
  }
820
859
  /**
821
860
  * @public
@@ -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";
@@ -30,6 +31,14 @@ import { SerdeContext as __SerdeContext } from "@smithy/types";
30
31
  * serializeAws_restJson1CallControlAnswerCommand
31
32
  */
32
33
  export declare const se_CallControlAnswerCommand: (input: CallControlAnswerCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
34
+ /**
35
+ * serializeAws_restJson1CallControlAttendantTransferCommand
36
+ */
37
+ export declare const se_CallControlAttendantTransferCommand: (input: CallControlAttendantTransferCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
38
+ /**
39
+ * serializeAws_restJson1CallControlBlindTransferCommand
40
+ */
41
+ export declare const se_CallControlBlindTransferCommand: (input: CallControlBlindTransferCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
33
42
  /**
34
43
  * serializeAws_restJson1CallControlHangupCommand
35
44
  */
@@ -42,10 +51,6 @@ export declare const se_CallControlHoldCommand: (input: CallControlHoldCommandIn
42
51
  * serializeAws_restJson1CallControlMakeCallCommand
43
52
  */
44
53
  export declare const se_CallControlMakeCallCommand: (input: CallControlMakeCallCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
45
- /**
46
- * serializeAws_restJson1CallControlTransferCommand
47
- */
48
- export declare const se_CallControlTransferCommand: (input: CallControlTransferCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
49
54
  /**
50
55
  * serializeAws_restJson1CallControlUnholdCommand
51
56
  */
@@ -134,6 +139,14 @@ export declare const se_UpdatePbxOAuth2ClientCommand: (input: UpdatePbxOAuth2Cli
134
139
  * deserializeAws_restJson1CallControlAnswerCommand
135
140
  */
136
141
  export declare const de_CallControlAnswerCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CallControlAnswerCommandOutput>;
142
+ /**
143
+ * deserializeAws_restJson1CallControlAttendantTransferCommand
144
+ */
145
+ export declare const de_CallControlAttendantTransferCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CallControlAttendantTransferCommandOutput>;
146
+ /**
147
+ * deserializeAws_restJson1CallControlBlindTransferCommand
148
+ */
149
+ export declare const de_CallControlBlindTransferCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CallControlBlindTransferCommandOutput>;
137
150
  /**
138
151
  * deserializeAws_restJson1CallControlHangupCommand
139
152
  */
@@ -146,10 +159,6 @@ export declare const de_CallControlHoldCommand: (output: __HttpResponse, context
146
159
  * deserializeAws_restJson1CallControlMakeCallCommand
147
160
  */
148
161
  export declare const de_CallControlMakeCallCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CallControlMakeCallCommandOutput>;
149
- /**
150
- * deserializeAws_restJson1CallControlTransferCommand
151
- */
152
- export declare const de_CallControlTransferCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CallControlTransferCommandOutput>;
153
162
  /**
154
163
  * deserializeAws_restJson1CallControlUnholdCommand
155
164
  */
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.22",
4
+ "version": "1.1.24",
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",
@@ -1,17 +0,0 @@
1
- import { de_CallControlTransferCommand, se_CallControlTransferCommand, } 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 CallControlTransferCommand extends $Command.classBuilder()
6
- .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
- })
11
- .s("WmsApi", "CallControlTransfer", {})
12
- .n("WmsApiClient", "CallControlTransferCommand")
13
- .f(void 0, void 0)
14
- .ser(se_CallControlTransferCommand)
15
- .de(de_CallControlTransferCommand)
16
- .build() {
17
- }
@@ -1,83 +0,0 @@
1
- import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
2
- import { CallControlTransferInput, CallControlTransferOutput } 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 CallControlTransferCommand}.
14
- */
15
- export interface CallControlTransferCommandInput extends CallControlTransferInput {
16
- }
17
- /**
18
- * @public
19
- *
20
- * The output of {@link CallControlTransferCommand}.
21
- */
22
- export interface CallControlTransferCommandOutput extends CallControlTransferOutput, __MetadataBearer {
23
- }
24
- declare const CallControlTransferCommand_base: {
25
- new (input: CallControlTransferCommandInput): import("@smithy/smithy-client").CommandImpl<CallControlTransferCommandInput, CallControlTransferCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: CallControlTransferCommandInput): import("@smithy/smithy-client").CommandImpl<CallControlTransferCommandInput, CallControlTransferCommandOutput, 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, CallControlTransferCommand } from "@wildix/wms-api-client"; // ES Modules import
36
- * // const { WmsApiClient, CallControlTransferCommand } = require("@wildix/wms-api-client"); // CommonJS import
37
- * const client = new WmsApiClient(config);
38
- * const input = { // CallControlTransferInput
39
- * user: "STRING_VALUE",
40
- * channel: "STRING_VALUE", // required
41
- * destination: "STRING_VALUE", // required
42
- * };
43
- * const command = new CallControlTransferCommand(input);
44
- * const response = await client.send(command);
45
- * // { // CallControlTransferOutput
46
- * // type: "result" || "error", // required
47
- * // result: { // CallControlResult
48
- * // message: "STRING_VALUE",
49
- * // },
50
- * // };
51
- *
52
- * ```
53
- *
54
- * @param CallControlTransferCommandInput - {@link CallControlTransferCommandInput}
55
- * @returns {@link CallControlTransferCommandOutput}
56
- * @see {@link CallControlTransferCommandInput} for command's `input` shape.
57
- * @see {@link CallControlTransferCommandOutput} for command's `response` shape.
58
- * @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
59
- *
60
- * @throws {@link ChannelNotFoundException} (client fault)
61
- *
62
- * @throws {@link WmsUnauthorizedException} (client fault)
63
- *
64
- * @throws {@link WmsForbiddenException} (client fault)
65
- *
66
- * @throws {@link WmsApiServiceException}
67
- * <p>Base exception class for all service exceptions from WmsApi service.</p>
68
- *
69
- *
70
- */
71
- export declare class CallControlTransferCommand extends CallControlTransferCommand_base {
72
- /** @internal type navigation helper, not in runtime. */
73
- protected static __types: {
74
- api: {
75
- input: CallControlTransferInput;
76
- output: CallControlTransferOutput;
77
- };
78
- sdk: {
79
- input: CallControlTransferCommandInput;
80
- output: CallControlTransferCommandOutput;
81
- };
82
- };
83
- }