@wildix/wms-api-client 1.1.11 → 1.1.13

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 (35) hide show
  1. package/dist-cjs/WmsApi.js +12 -0
  2. package/dist-cjs/commands/CreatePbxAclGroupCommand.js +21 -0
  3. package/dist-cjs/commands/CreatePbxColleagueCommand.js +21 -0
  4. package/dist-cjs/commands/DeletePbxAclGroupCommand.js +21 -0
  5. package/dist-cjs/commands/DeletePbxColleagueCommand.js +21 -0
  6. package/dist-cjs/commands/GetColleagueByIdCommand.js +21 -0
  7. package/dist-cjs/commands/GetPersonalInfoCommand.js +21 -0
  8. package/dist-cjs/commands/index.js +6 -0
  9. package/dist-cjs/models/models_0.js +8 -8
  10. package/dist-cjs/protocols/Aws_restJson1.js +219 -1
  11. package/dist-es/WmsApi.js +12 -0
  12. package/dist-es/commands/CreatePbxAclGroupCommand.js +17 -0
  13. package/dist-es/commands/CreatePbxColleagueCommand.js +17 -0
  14. package/dist-es/commands/DeletePbxAclGroupCommand.js +17 -0
  15. package/dist-es/commands/DeletePbxColleagueCommand.js +17 -0
  16. package/dist-es/commands/GetColleagueByIdCommand.js +17 -0
  17. package/dist-es/commands/GetPersonalInfoCommand.js +17 -0
  18. package/dist-es/commands/index.js +6 -0
  19. package/dist-es/models/models_0.js +7 -7
  20. package/dist-es/protocols/Aws_restJson1.js +206 -0
  21. package/dist-types/WmsApi.d.ts +43 -0
  22. package/dist-types/WmsApiClient.d.ts +8 -2
  23. package/dist-types/commands/CreatePbxAclGroupCommand.d.ts +86 -0
  24. package/dist-types/commands/CreatePbxColleagueCommand.d.ts +100 -0
  25. package/dist-types/commands/DeletePbxAclGroupCommand.d.ts +63 -0
  26. package/dist-types/commands/DeletePbxColleagueCommand.d.ts +63 -0
  27. package/dist-types/commands/GetColleagueByIdCommand.d.ts +85 -0
  28. package/dist-types/commands/GetPersonalInfoCommand.d.ts +124 -0
  29. package/dist-types/commands/index.d.ts +6 -0
  30. package/dist-types/models/models_0.d.ts +196 -59
  31. package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
  32. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  33. package/dist-types/runtimeConfig.d.ts +1 -0
  34. package/dist-types/runtimeConfig.native.d.ts +1 -0
  35. package/package.json +1 -1
@@ -1,10 +1,16 @@
1
+ export * from "./CreatePbxAclGroupCommand";
2
+ export * from "./CreatePbxColleagueCommand";
1
3
  export * from "./CreatePbxOAuth2ClientCommand";
4
+ export * from "./DeletePbxAclGroupCommand";
5
+ export * from "./DeletePbxColleagueCommand";
2
6
  export * from "./DeletePbxOAuth2ClientCommand";
7
+ export * from "./GetColleagueByIdCommand";
3
8
  export * from "./GetPbxAclGroupsPermissionsCommand";
4
9
  export * from "./GetPbxCallGroupsCommand";
5
10
  export * from "./GetPbxColleaguesCommand";
6
11
  export * from "./GetPbxesCommand";
7
12
  export * from "./GetPbxOAuth2ClientsCommand";
13
+ export * from "./GetPersonalInfoCommand";
8
14
  export * from "./NotificationsCommand";
9
15
  export * from "./OriginateCommand";
10
16
  export * from "./OriginateCallCommand";
@@ -30,6 +30,13 @@ export class WmsUnauthorizedException extends __BaseException {
30
30
  this.reason = opts.reason;
31
31
  }
32
32
  }
33
+ export const PbxColleagueRole = {
34
+ ADMIN: "admin",
35
+ FAX: "fax",
36
+ PARK_ORBIT: "park_orbit",
37
+ ROOM: "room",
38
+ USER: "user",
39
+ };
33
40
  export class WmsValidationException extends __BaseException {
34
41
  constructor(opts) {
35
42
  super({
@@ -86,13 +93,6 @@ export const PbxColleaguesSearchStrategy = {
86
93
  CONTAIN: "contain",
87
94
  STARTS_WITH: "startsWith",
88
95
  };
89
- export const PbxColleagueRole = {
90
- ADMIN: "admin",
91
- FAX: "fax",
92
- PARK_ORBIT: "park_orbit",
93
- ROOM: "room",
94
- USER: "user",
95
- };
96
96
  export const ResponseResult = {
97
97
  SUCCESS: "Success",
98
98
  };
@@ -2,6 +2,54 @@ import { WmsApiServiceException as __BaseException } from "../models/WmsApiServi
2
2
  import { WmsNotFoundException, WmsUnauthorizedException, WmsValidationException, } from "../models/models_0";
3
3
  import { requestBuilder as rb } from "@smithy/core";
4
4
  import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
5
+ export const se_CreatePbxAclGroupCommand = async (input, context) => {
6
+ const b = rb(input, context);
7
+ const headers = {
8
+ 'content-type': 'application/json',
9
+ };
10
+ b.bp("/api/v1/pbx/aclgroups");
11
+ let body;
12
+ body = JSON.stringify(take(input, {
13
+ 'inherits': [],
14
+ 'name': [],
15
+ 'rules': _ => _json(_),
16
+ 'wcgrp': [],
17
+ }));
18
+ b.m("POST")
19
+ .h(headers)
20
+ .b(body);
21
+ return b.build();
22
+ };
23
+ export const se_CreatePbxColleagueCommand = async (input, context) => {
24
+ const b = rb(input, context);
25
+ const headers = {
26
+ 'content-type': 'application/json',
27
+ };
28
+ b.bp("/api/v1/PBX/Colleagues");
29
+ let body;
30
+ body = JSON.stringify(take(input, {
31
+ 'department': [],
32
+ 'dialplan': [],
33
+ 'email': [],
34
+ 'extension': [],
35
+ 'faxDialplan': [],
36
+ 'faxNumber': [],
37
+ 'groupDn': [],
38
+ 'language': [],
39
+ 'licenseType': [],
40
+ 'login': [],
41
+ 'mobilePhone': [],
42
+ 'name': [],
43
+ 'officePhone': [],
44
+ 'password': [],
45
+ 'role': [],
46
+ 'sipPassword': [],
47
+ }));
48
+ b.m("POST")
49
+ .h(headers)
50
+ .b(body);
51
+ return b.build();
52
+ };
5
53
  export const se_CreatePbxOAuth2ClientCommand = async (input, context) => {
6
54
  const b = rb(input, context);
7
55
  const headers = {
@@ -18,6 +66,28 @@ export const se_CreatePbxOAuth2ClientCommand = async (input, context) => {
18
66
  .b(body);
19
67
  return b.build();
20
68
  };
69
+ export const se_DeletePbxAclGroupCommand = async (input, context) => {
70
+ const b = rb(input, context);
71
+ const headers = {};
72
+ b.bp("/api/v1/pbx/aclgroups/{id}");
73
+ b.p('id', () => input.id.toString(), '{id}', false);
74
+ let body;
75
+ b.m("POST")
76
+ .h(headers)
77
+ .b(body);
78
+ return b.build();
79
+ };
80
+ export const se_DeletePbxColleagueCommand = async (input, context) => {
81
+ const b = rb(input, context);
82
+ const headers = {};
83
+ b.bp("/api/v1/PBX/Colleagues/{id}");
84
+ b.p('id', () => input.id.toString(), '{id}', false);
85
+ let body;
86
+ b.m("DELETE")
87
+ .h(headers)
88
+ .b(body);
89
+ return b.build();
90
+ };
21
91
  export const se_DeletePbxOAuth2ClientCommand = async (input, context) => {
22
92
  const b = rb(input, context);
23
93
  const headers = {};
@@ -29,6 +99,17 @@ export const se_DeletePbxOAuth2ClientCommand = async (input, context) => {
29
99
  .b(body);
30
100
  return b.build();
31
101
  };
102
+ export const se_GetColleagueByIdCommand = async (input, context) => {
103
+ const b = rb(input, context);
104
+ const headers = {};
105
+ b.bp("/api/v1/Colleagues/{id}");
106
+ b.p('id', () => input.id.toString(), '{id}', false);
107
+ let body;
108
+ b.m("GET")
109
+ .h(headers)
110
+ .b(body);
111
+ return b.build();
112
+ };
32
113
  export const se_GetPbxAclGroupsPermissionsCommand = async (input, context) => {
33
114
  const b = rb(input, context);
34
115
  const headers = {};
@@ -118,6 +199,41 @@ export const se_GetPbxOAuth2ClientsCommand = async (input, context) => {
118
199
  .b(body);
119
200
  return b.build();
120
201
  };
202
+ export const se_GetPersonalInfoCommand = async (input, context) => {
203
+ const b = rb(input, context);
204
+ const headers = {};
205
+ b.bp("/api/v1/personal/info");
206
+ const query = map({
207
+ [_f]: [() => input.extension !== void 0, () => ((input[_e] || []).map(_entry => _entry))],
208
+ [_fi]: [() => input.id !== void 0, () => ((input[_i] || []).map(_entry => _entry))],
209
+ [_fP]: [() => input.officePhone !== void 0, () => ((input[_oP] || []).map(_entry => _entry))],
210
+ [_fPi]: [() => input.mobilePhone !== void 0, () => ((input[_mP] || []).map(_entry => _entry))],
211
+ [_fil]: [() => input.name !== void 0, () => ((input[_n] || []).map(_entry => _entry))],
212
+ [_filt]: [() => input.email !== void 0, () => ((input[_em] || []).map(_entry => _entry))],
213
+ [_filte]: [() => input.role !== void 0, () => ((input[_r] || []).map(_entry => _entry))],
214
+ [_filter]: [() => input.dialplan !== void 0, () => ((input[_d] || []).map(_entry => _entry))],
215
+ [_fDi]: [() => input.faxDialplan !== void 0, () => ((input[_fD] || []).map(_entry => _entry))],
216
+ [_filterd]: [() => input.department !== void 0, () => ((input[_de] || []).map(_entry => _entry))],
217
+ [_filterl]: [() => input.login !== void 0, () => ((input[_l] || []).map(_entry => _entry))],
218
+ [_fDil]: [() => input.groupDn !== void 0, () => ((input[_gD] || []).map(_entry => _entry))],
219
+ [_fDilt]: [() => input.pbxDn !== void 0, () => ((input[_pD] || []).map(_entry => _entry))],
220
+ [_fT]: [() => input.licenseType !== void 0, () => ((input[_lT] || []).map(_entry => _entry))],
221
+ [_fie]: [() => input.fields !== void 0, () => ((input[_fie] || []).map(_entry => _entry))],
222
+ [_sF]: [() => input.searchFields !== void 0, () => ((input[_sF] || []).map(_entry => _entry))],
223
+ [_s]: [, input[_s]],
224
+ [_so]: [() => input.sort !== void 0, () => ((input[_so] || []).map(_entry => _entry))],
225
+ [_st]: [() => input.start !== void 0, () => (input[_st].toString())],
226
+ [_c]: [() => input.count !== void 0, () => (input[_c].toString())],
227
+ [_di]: [, input[_di]],
228
+ [_sS]: [, input[_sS]],
229
+ });
230
+ let body;
231
+ b.m("GET")
232
+ .h(headers)
233
+ .q(query)
234
+ .b(body);
235
+ return b.build();
236
+ };
121
237
  export const se_NotificationsCommand = async (input, context) => {
122
238
  const b = rb(input, context);
123
239
  const headers = {
@@ -203,6 +319,36 @@ export const se_UpdatePbxOAuth2ClientCommand = async (input, context) => {
203
319
  .b(body);
204
320
  return b.build();
205
321
  };
322
+ export const de_CreatePbxAclGroupCommand = async (output, context) => {
323
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
324
+ return de_CommandError(output, context);
325
+ }
326
+ const contents = map({
327
+ $metadata: deserializeMetadata(output),
328
+ });
329
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
330
+ const doc = take(data, {
331
+ 'result': _json,
332
+ 'type': __expectString,
333
+ });
334
+ Object.assign(contents, doc);
335
+ return contents;
336
+ };
337
+ export const de_CreatePbxColleagueCommand = async (output, context) => {
338
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
339
+ return de_CommandError(output, context);
340
+ }
341
+ const contents = map({
342
+ $metadata: deserializeMetadata(output),
343
+ });
344
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
345
+ const doc = take(data, {
346
+ 'result': _json,
347
+ 'type': __expectString,
348
+ });
349
+ Object.assign(contents, doc);
350
+ return contents;
351
+ };
206
352
  export const de_CreatePbxOAuth2ClientCommand = async (output, context) => {
207
353
  if (output.statusCode !== 200 && output.statusCode >= 300) {
208
354
  return de_CommandError(output, context);
@@ -218,6 +364,36 @@ export const de_CreatePbxOAuth2ClientCommand = async (output, context) => {
218
364
  Object.assign(contents, doc);
219
365
  return contents;
220
366
  };
367
+ export const de_DeletePbxAclGroupCommand = async (output, context) => {
368
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
369
+ return de_CommandError(output, context);
370
+ }
371
+ const contents = map({
372
+ $metadata: deserializeMetadata(output),
373
+ });
374
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
375
+ const doc = take(data, {
376
+ 'result': __expectString,
377
+ 'type': __expectString,
378
+ });
379
+ Object.assign(contents, doc);
380
+ return contents;
381
+ };
382
+ export const de_DeletePbxColleagueCommand = async (output, context) => {
383
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
384
+ return de_CommandError(output, context);
385
+ }
386
+ const contents = map({
387
+ $metadata: deserializeMetadata(output),
388
+ });
389
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
390
+ const doc = take(data, {
391
+ 'result': __expectString,
392
+ 'type': __expectString,
393
+ });
394
+ Object.assign(contents, doc);
395
+ return contents;
396
+ };
221
397
  export const de_DeletePbxOAuth2ClientCommand = async (output, context) => {
222
398
  if (output.statusCode !== 200 && output.statusCode >= 300) {
223
399
  return de_CommandError(output, context);
@@ -233,6 +409,21 @@ export const de_DeletePbxOAuth2ClientCommand = async (output, context) => {
233
409
  Object.assign(contents, doc);
234
410
  return contents;
235
411
  };
412
+ export const de_GetColleagueByIdCommand = async (output, context) => {
413
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
414
+ return de_CommandError(output, context);
415
+ }
416
+ const contents = map({
417
+ $metadata: deserializeMetadata(output),
418
+ });
419
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
420
+ const doc = take(data, {
421
+ 'result': _json,
422
+ 'type': __expectString,
423
+ });
424
+ Object.assign(contents, doc);
425
+ return contents;
426
+ };
236
427
  export const de_GetPbxAclGroupsPermissionsCommand = async (output, context) => {
237
428
  if (output.statusCode !== 200 && output.statusCode >= 300) {
238
429
  return de_CommandError(output, context);
@@ -308,6 +499,21 @@ export const de_GetPbxOAuth2ClientsCommand = async (output, context) => {
308
499
  Object.assign(contents, doc);
309
500
  return contents;
310
501
  };
502
+ export const de_GetPersonalInfoCommand = async (output, context) => {
503
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
504
+ return de_CommandError(output, context);
505
+ }
506
+ const contents = map({
507
+ $metadata: deserializeMetadata(output),
508
+ });
509
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
510
+ const doc = take(data, {
511
+ 'result': _json,
512
+ 'type': __expectString,
513
+ });
514
+ Object.assign(contents, doc);
515
+ return contents;
516
+ };
311
517
  export const de_NotificationsCommand = async (output, context) => {
312
518
  if (output.statusCode !== 200 && output.statusCode >= 300) {
313
519
  return de_CommandError(output, context);
@@ -1,29 +1,65 @@
1
1
  import { WmsApiClient } from "./WmsApiClient";
2
+ import { CreatePbxAclGroupCommandInput, CreatePbxAclGroupCommandOutput } from "./commands/CreatePbxAclGroupCommand";
3
+ import { CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput } from "./commands/CreatePbxColleagueCommand";
2
4
  import { CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput } from "./commands/CreatePbxOAuth2ClientCommand";
5
+ import { DeletePbxAclGroupCommandInput, DeletePbxAclGroupCommandOutput } from "./commands/DeletePbxAclGroupCommand";
6
+ import { DeletePbxColleagueCommandInput, DeletePbxColleagueCommandOutput } from "./commands/DeletePbxColleagueCommand";
3
7
  import { DeletePbxOAuth2ClientCommandInput, DeletePbxOAuth2ClientCommandOutput } from "./commands/DeletePbxOAuth2ClientCommand";
8
+ import { GetColleagueByIdCommandInput, GetColleagueByIdCommandOutput } from "./commands/GetColleagueByIdCommand";
4
9
  import { GetPbxAclGroupsPermissionsCommandInput, GetPbxAclGroupsPermissionsCommandOutput } from "./commands/GetPbxAclGroupsPermissionsCommand";
5
10
  import { GetPbxCallGroupsCommandInput, GetPbxCallGroupsCommandOutput } from "./commands/GetPbxCallGroupsCommand";
6
11
  import { GetPbxColleaguesCommandInput, GetPbxColleaguesCommandOutput } from "./commands/GetPbxColleaguesCommand";
7
12
  import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } from "./commands/GetPbxOAuth2ClientsCommand";
8
13
  import { GetPbxesCommandInput, GetPbxesCommandOutput } from "./commands/GetPbxesCommand";
14
+ import { GetPersonalInfoCommandInput, GetPersonalInfoCommandOutput } from "./commands/GetPersonalInfoCommand";
9
15
  import { NotificationsCommandInput, NotificationsCommandOutput } from "./commands/NotificationsCommand";
10
16
  import { OriginateCallCommandInput, OriginateCallCommandOutput } from "./commands/OriginateCallCommand";
11
17
  import { OriginateCommandInput, OriginateCommandOutput } from "./commands/OriginateCommand";
12
18
  import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "./commands/UpdatePbxOAuth2ClientCommand";
13
19
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
14
20
  export interface WmsApi {
21
+ /**
22
+ * @see {@link CreatePbxAclGroupCommand}
23
+ */
24
+ createPbxAclGroup(args: CreatePbxAclGroupCommandInput, options?: __HttpHandlerOptions): Promise<CreatePbxAclGroupCommandOutput>;
25
+ createPbxAclGroup(args: CreatePbxAclGroupCommandInput, cb: (err: any, data?: CreatePbxAclGroupCommandOutput) => void): void;
26
+ createPbxAclGroup(args: CreatePbxAclGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreatePbxAclGroupCommandOutput) => void): void;
27
+ /**
28
+ * @see {@link CreatePbxColleagueCommand}
29
+ */
30
+ createPbxColleague(args: CreatePbxColleagueCommandInput, options?: __HttpHandlerOptions): Promise<CreatePbxColleagueCommandOutput>;
31
+ createPbxColleague(args: CreatePbxColleagueCommandInput, cb: (err: any, data?: CreatePbxColleagueCommandOutput) => void): void;
32
+ createPbxColleague(args: CreatePbxColleagueCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreatePbxColleagueCommandOutput) => void): void;
15
33
  /**
16
34
  * @see {@link CreatePbxOAuth2ClientCommand}
17
35
  */
18
36
  createPbxOAuth2Client(args: CreatePbxOAuth2ClientCommandInput, options?: __HttpHandlerOptions): Promise<CreatePbxOAuth2ClientCommandOutput>;
19
37
  createPbxOAuth2Client(args: CreatePbxOAuth2ClientCommandInput, cb: (err: any, data?: CreatePbxOAuth2ClientCommandOutput) => void): void;
20
38
  createPbxOAuth2Client(args: CreatePbxOAuth2ClientCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreatePbxOAuth2ClientCommandOutput) => void): void;
39
+ /**
40
+ * @see {@link DeletePbxAclGroupCommand}
41
+ */
42
+ deletePbxAclGroup(args: DeletePbxAclGroupCommandInput, options?: __HttpHandlerOptions): Promise<DeletePbxAclGroupCommandOutput>;
43
+ deletePbxAclGroup(args: DeletePbxAclGroupCommandInput, cb: (err: any, data?: DeletePbxAclGroupCommandOutput) => void): void;
44
+ deletePbxAclGroup(args: DeletePbxAclGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePbxAclGroupCommandOutput) => void): void;
45
+ /**
46
+ * @see {@link DeletePbxColleagueCommand}
47
+ */
48
+ deletePbxColleague(args: DeletePbxColleagueCommandInput, options?: __HttpHandlerOptions): Promise<DeletePbxColleagueCommandOutput>;
49
+ deletePbxColleague(args: DeletePbxColleagueCommandInput, cb: (err: any, data?: DeletePbxColleagueCommandOutput) => void): void;
50
+ deletePbxColleague(args: DeletePbxColleagueCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePbxColleagueCommandOutput) => void): void;
21
51
  /**
22
52
  * @see {@link DeletePbxOAuth2ClientCommand}
23
53
  */
24
54
  deletePbxOAuth2Client(args: DeletePbxOAuth2ClientCommandInput, options?: __HttpHandlerOptions): Promise<DeletePbxOAuth2ClientCommandOutput>;
25
55
  deletePbxOAuth2Client(args: DeletePbxOAuth2ClientCommandInput, cb: (err: any, data?: DeletePbxOAuth2ClientCommandOutput) => void): void;
26
56
  deletePbxOAuth2Client(args: DeletePbxOAuth2ClientCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePbxOAuth2ClientCommandOutput) => void): void;
57
+ /**
58
+ * @see {@link GetColleagueByIdCommand}
59
+ */
60
+ getColleagueById(args: GetColleagueByIdCommandInput, options?: __HttpHandlerOptions): Promise<GetColleagueByIdCommandOutput>;
61
+ getColleagueById(args: GetColleagueByIdCommandInput, cb: (err: any, data?: GetColleagueByIdCommandOutput) => void): void;
62
+ getColleagueById(args: GetColleagueByIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetColleagueByIdCommandOutput) => void): void;
27
63
  /**
28
64
  * @see {@link GetPbxAclGroupsPermissionsCommand}
29
65
  */
@@ -59,6 +95,13 @@ export interface WmsApi {
59
95
  getPbxOAuth2Clients(args: GetPbxOAuth2ClientsCommandInput, options?: __HttpHandlerOptions): Promise<GetPbxOAuth2ClientsCommandOutput>;
60
96
  getPbxOAuth2Clients(args: GetPbxOAuth2ClientsCommandInput, cb: (err: any, data?: GetPbxOAuth2ClientsCommandOutput) => void): void;
61
97
  getPbxOAuth2Clients(args: GetPbxOAuth2ClientsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPbxOAuth2ClientsCommandOutput) => void): void;
98
+ /**
99
+ * @see {@link GetPersonalInfoCommand}
100
+ */
101
+ getPersonalInfo(): Promise<GetPersonalInfoCommandOutput>;
102
+ getPersonalInfo(args: GetPersonalInfoCommandInput, options?: __HttpHandlerOptions): Promise<GetPersonalInfoCommandOutput>;
103
+ getPersonalInfo(args: GetPersonalInfoCommandInput, cb: (err: any, data?: GetPersonalInfoCommandOutput) => void): void;
104
+ getPersonalInfo(args: GetPersonalInfoCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPersonalInfoCommandOutput) => void): void;
62
105
  /**
63
106
  * @see {@link NotificationsCommand}
64
107
  */
@@ -1,10 +1,16 @@
1
+ import { CreatePbxAclGroupCommandInput, CreatePbxAclGroupCommandOutput } from "./commands/CreatePbxAclGroupCommand";
2
+ import { CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput } from "./commands/CreatePbxColleagueCommand";
1
3
  import { CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput } from "./commands/CreatePbxOAuth2ClientCommand";
4
+ import { DeletePbxAclGroupCommandInput, DeletePbxAclGroupCommandOutput } from "./commands/DeletePbxAclGroupCommand";
5
+ import { DeletePbxColleagueCommandInput, DeletePbxColleagueCommandOutput } from "./commands/DeletePbxColleagueCommand";
2
6
  import { DeletePbxOAuth2ClientCommandInput, DeletePbxOAuth2ClientCommandOutput } from "./commands/DeletePbxOAuth2ClientCommand";
7
+ import { GetColleagueByIdCommandInput, GetColleagueByIdCommandOutput } from "./commands/GetColleagueByIdCommand";
3
8
  import { GetPbxAclGroupsPermissionsCommandInput, GetPbxAclGroupsPermissionsCommandOutput } from "./commands/GetPbxAclGroupsPermissionsCommand";
4
9
  import { GetPbxCallGroupsCommandInput, GetPbxCallGroupsCommandOutput } from "./commands/GetPbxCallGroupsCommand";
5
10
  import { GetPbxColleaguesCommandInput, GetPbxColleaguesCommandOutput } from "./commands/GetPbxColleaguesCommand";
6
11
  import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } from "./commands/GetPbxOAuth2ClientsCommand";
7
12
  import { GetPbxesCommandInput, GetPbxesCommandOutput } from "./commands/GetPbxesCommand";
13
+ import { GetPersonalInfoCommandInput, GetPersonalInfoCommandOutput } from "./commands/GetPersonalInfoCommand";
8
14
  import { NotificationsCommandInput, NotificationsCommandOutput } from "./commands/NotificationsCommand";
9
15
  import { OriginateCallCommandInput, OriginateCallCommandOutput } from "./commands/OriginateCallCommand";
10
16
  import { OriginateCommandInput, OriginateCommandOutput } from "./commands/OriginateCommand";
@@ -20,11 +26,11 @@ export { __Client };
20
26
  /**
21
27
  * @public
22
28
  */
23
- export type ServiceInputTypes = CreatePbxOAuth2ClientCommandInput | DeletePbxOAuth2ClientCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | GetPbxesCommandInput | NotificationsCommandInput | OriginateCallCommandInput | OriginateCommandInput | UpdatePbxOAuth2ClientCommandInput;
29
+ export type ServiceInputTypes = CreatePbxAclGroupCommandInput | CreatePbxColleagueCommandInput | CreatePbxOAuth2ClientCommandInput | DeletePbxAclGroupCommandInput | DeletePbxColleagueCommandInput | DeletePbxOAuth2ClientCommandInput | GetColleagueByIdCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | GetPbxesCommandInput | GetPersonalInfoCommandInput | NotificationsCommandInput | OriginateCallCommandInput | OriginateCommandInput | UpdatePbxOAuth2ClientCommandInput;
24
30
  /**
25
31
  * @public
26
32
  */
27
- export type ServiceOutputTypes = CreatePbxOAuth2ClientCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | GetPbxesCommandOutput | NotificationsCommandOutput | OriginateCallCommandOutput | OriginateCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
33
+ export type ServiceOutputTypes = CreatePbxAclGroupCommandOutput | CreatePbxColleagueCommandOutput | CreatePbxOAuth2ClientCommandOutput | DeletePbxAclGroupCommandOutput | DeletePbxColleagueCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetColleagueByIdCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | GetPbxesCommandOutput | GetPersonalInfoCommandOutput | NotificationsCommandOutput | OriginateCallCommandOutput | OriginateCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
28
34
  /**
29
35
  * @public
30
36
  */
@@ -0,0 +1,86 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
2
+ import { CreatePbxAclGroupInput, CreatePbxAclGroupOutput } 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 CreatePbxAclGroupCommand}.
14
+ */
15
+ export interface CreatePbxAclGroupCommandInput extends CreatePbxAclGroupInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreatePbxAclGroupCommand}.
21
+ */
22
+ export interface CreatePbxAclGroupCommandOutput extends CreatePbxAclGroupOutput, __MetadataBearer {
23
+ }
24
+ declare const CreatePbxAclGroupCommand_base: {
25
+ new (input: CreatePbxAclGroupCommandInput): import("@smithy/smithy-client").CommandImpl<CreatePbxAclGroupCommandInput, CreatePbxAclGroupCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: CreatePbxAclGroupCommandInput): import("@smithy/smithy-client").CommandImpl<CreatePbxAclGroupCommandInput, CreatePbxAclGroupCommandOutput, 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, CreatePbxAclGroupCommand } from "@wildix/wms-api-client"; // ES Modules import
36
+ * // const { WmsApiClient, CreatePbxAclGroupCommand } = require("@wildix/wms-api-client"); // CommonJS import
37
+ * const client = new WmsApiClient(config);
38
+ * const input = { // CreatePbxAclGroupInput
39
+ * name: "STRING_VALUE", // required
40
+ * inherits: "STRING_VALUE",
41
+ * wcgrp: "STRING_VALUE",
42
+ * rules: [ // AclGroupRulesList // required
43
+ * { // AclGroupRule
44
+ * ability: "can" || "cannot" || "yes" || "no",
45
+ * group: "STRING_VALUE",
46
+ * rule: "STRING_VALUE",
47
+ * },
48
+ * ],
49
+ * };
50
+ * const command = new CreatePbxAclGroupCommand(input);
51
+ * const response = await client.send(command);
52
+ * // { // CreatePbxAclGroupOutput
53
+ * // type: "result" || "error", // required
54
+ * // result: { // CreatePbxAclGroupResult
55
+ * // id: "STRING_VALUE", // required
56
+ * // name: "STRING_VALUE", // required
57
+ * // dn: "STRING_VALUE", // required
58
+ * // wcgrp: "STRING_VALUE", // required
59
+ * // inherits: "STRING_VALUE", // required
60
+ * // rules: [ // AclGroupRulesList // required
61
+ * // { // AclGroupRule
62
+ * // ability: "can" || "cannot" || "yes" || "no",
63
+ * // group: "STRING_VALUE",
64
+ * // rule: "STRING_VALUE",
65
+ * // },
66
+ * // ],
67
+ * // adminRules: "STRING_VALUE", // required
68
+ * // },
69
+ * // };
70
+ *
71
+ * ```
72
+ *
73
+ * @param CreatePbxAclGroupCommandInput - {@link CreatePbxAclGroupCommandInput}
74
+ * @returns {@link CreatePbxAclGroupCommandOutput}
75
+ * @see {@link CreatePbxAclGroupCommandInput} for command's `input` shape.
76
+ * @see {@link CreatePbxAclGroupCommandOutput} for command's `response` shape.
77
+ * @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
78
+ *
79
+ * @throws {@link WmsUnauthorizedException} (client fault)
80
+ *
81
+ * @throws {@link WmsApiServiceException}
82
+ * <p>Base exception class for all service exceptions from WmsApi service.</p>
83
+ *
84
+ */
85
+ export declare class CreatePbxAclGroupCommand extends CreatePbxAclGroupCommand_base {
86
+ }
@@ -0,0 +1,100 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
2
+ import { CreatePbxColleagueInput, CreatePbxColleagueOutput } 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 CreatePbxColleagueCommand}.
14
+ */
15
+ export interface CreatePbxColleagueCommandInput extends CreatePbxColleagueInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreatePbxColleagueCommand}.
21
+ */
22
+ export interface CreatePbxColleagueCommandOutput extends CreatePbxColleagueOutput, __MetadataBearer {
23
+ }
24
+ declare const CreatePbxColleagueCommand_base: {
25
+ new (input: CreatePbxColleagueCommandInput): import("@smithy/smithy-client").CommandImpl<CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: CreatePbxColleagueCommandInput): import("@smithy/smithy-client").CommandImpl<CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput, 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, CreatePbxColleagueCommand } from "@wildix/wms-api-client"; // ES Modules import
36
+ * // const { WmsApiClient, CreatePbxColleagueCommand } = require("@wildix/wms-api-client"); // CommonJS import
37
+ * const client = new WmsApiClient(config);
38
+ * const input = { // CreatePbxColleagueInput
39
+ * extension: "STRING_VALUE", // required
40
+ * name: "STRING_VALUE", // required
41
+ * officePhone: "STRING_VALUE",
42
+ * mobilePhone: "STRING_VALUE",
43
+ * faxNumber: "STRING_VALUE",
44
+ * email: "STRING_VALUE",
45
+ * role: "admin" || "user" || "fax" || "park_orbit" || "room",
46
+ * groupDn: "STRING_VALUE",
47
+ * language: "STRING_VALUE",
48
+ * dialplan: "STRING_VALUE",
49
+ * faxDialplan: "STRING_VALUE",
50
+ * department: "STRING_VALUE",
51
+ * login: "STRING_VALUE",
52
+ * password: "STRING_VALUE",
53
+ * sipPassword: "STRING_VALUE",
54
+ * licenseType: "basic" || "essential" || "business" || "premium" || "wizyconf",
55
+ * };
56
+ * const command = new CreatePbxColleagueCommand(input);
57
+ * const response = await client.send(command);
58
+ * // { // CreatePbxColleagueOutput
59
+ * // type: "result" || "error", // required
60
+ * // result: { // PbxColleague
61
+ * // id: "STRING_VALUE", // required
62
+ * // name: "STRING_VALUE",
63
+ * // login: "STRING_VALUE",
64
+ * // extension: "STRING_VALUE", // required
65
+ * // officePhone: "STRING_VALUE",
66
+ * // mobilePhone: "STRING_VALUE",
67
+ * // faxNumber: "STRING_VALUE",
68
+ * // email: "STRING_VALUE",
69
+ * // pbxDn: "STRING_VALUE", // required
70
+ * // pbx: "STRING_VALUE", // required
71
+ * // role: "admin" || "user" || "fax" || "park_orbit" || "room", // required
72
+ * // groupName: "STRING_VALUE", // required
73
+ * // groupDn: "STRING_VALUE", // required
74
+ * // language: "STRING_VALUE", // required
75
+ * // dialplan: "STRING_VALUE", // required
76
+ * // faxDialplan: "STRING_VALUE", // required
77
+ * // department: "STRING_VALUE",
78
+ * // picture: "STRING_VALUE", // required
79
+ * // sourceId: "STRING_VALUE",
80
+ * // licenseType: "basic" || "essential" || "business" || "premium" || "wizyconf", // required
81
+ * // jid: "STRING_VALUE", // required
82
+ * // },
83
+ * // };
84
+ *
85
+ * ```
86
+ *
87
+ * @param CreatePbxColleagueCommandInput - {@link CreatePbxColleagueCommandInput}
88
+ * @returns {@link CreatePbxColleagueCommandOutput}
89
+ * @see {@link CreatePbxColleagueCommandInput} for command's `input` shape.
90
+ * @see {@link CreatePbxColleagueCommandOutput} for command's `response` shape.
91
+ * @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
92
+ *
93
+ * @throws {@link WmsUnauthorizedException} (client fault)
94
+ *
95
+ * @throws {@link WmsApiServiceException}
96
+ * <p>Base exception class for all service exceptions from WmsApi service.</p>
97
+ *
98
+ */
99
+ export declare class CreatePbxColleagueCommand extends CreatePbxColleagueCommand_base {
100
+ }