@wildix/wms-api-client 1.1.5 → 1.1.7

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 (36) hide show
  1. package/dist-cjs/WmsApi.js +2 -4
  2. package/dist-cjs/WmsApiClient.js +7 -2
  3. package/dist-cjs/commands/{CreatePbxColleagueCommand.js → GetPbxesCommand.js} +7 -7
  4. package/dist-cjs/commands/index.js +1 -2
  5. package/dist-cjs/models/models_0.js +8 -23
  6. package/dist-cjs/protocols/Aws_restJson1.js +30 -80
  7. package/dist-es/WmsApi.js +2 -4
  8. package/dist-es/WmsApiClient.js +7 -2
  9. package/dist-es/commands/GetPbxesCommand.js +17 -0
  10. package/dist-es/commands/index.js +1 -2
  11. package/dist-es/models/models_0.js +7 -22
  12. package/dist-es/protocols/Aws_restJson1.js +23 -71
  13. package/dist-types/WmsApi.d.ts +8 -14
  14. package/dist-types/WmsApiClient.d.ts +6 -6
  15. package/dist-types/commands/CreatePbxOAuth2ClientCommand.d.ts +2 -1
  16. package/dist-types/commands/DeletePbxOAuth2ClientCommand.d.ts +2 -1
  17. package/dist-types/commands/GetPbxAclGroupsPermissionsCommand.d.ts +2 -1
  18. package/dist-types/commands/GetPbxCallGroupsCommand.d.ts +2 -1
  19. package/dist-types/commands/GetPbxColleaguesCommand.d.ts +2 -1
  20. package/dist-types/commands/GetPbxOAuth2ClientsCommand.d.ts +2 -1
  21. package/dist-types/commands/GetPbxesCommand.d.ts +75 -0
  22. package/dist-types/commands/UpdatePbxOAuth2ClientCommand.d.ts +2 -1
  23. package/dist-types/commands/index.d.ts +1 -2
  24. package/dist-types/index.d.ts +2 -2
  25. package/dist-types/models/WmsApiServiceException.d.ts +2 -1
  26. package/dist-types/models/models_0.d.ts +92 -130
  27. package/dist-types/protocols/Aws_restJson1.d.ts +9 -18
  28. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  29. package/dist-types/runtimeConfig.d.ts +1 -0
  30. package/dist-types/runtimeConfig.native.d.ts +1 -0
  31. package/package.json +11 -10
  32. package/dist-cjs/commands/DeletePbxColleagueCommand.js +0 -21
  33. package/dist-es/commands/CreatePbxColleagueCommand.js +0 -17
  34. package/dist-es/commands/DeletePbxColleagueCommand.js +0 -17
  35. package/dist-types/commands/CreatePbxColleagueCommand.d.ts +0 -99
  36. package/dist-types/commands/DeletePbxColleagueCommand.d.ts +0 -65
@@ -56,74 +56,32 @@ export interface AclGroupPermission {
56
56
  containSubGroups: boolean;
57
57
  groups: (AclGroupPermissionItem)[];
58
58
  }
59
- /**
60
- * @public
61
- * @enum
62
- */
63
- export declare const PbxColleagueRole: {
64
- readonly ADMIN: "admin";
65
- readonly FAX: "fax";
66
- readonly PARK_ORBIT: "park_orbit";
67
- readonly ROOM: "room";
68
- readonly USER: "user";
69
- };
70
59
  /**
71
60
  * @public
72
61
  */
73
- export type PbxColleagueRole = typeof PbxColleagueRole[keyof typeof PbxColleagueRole];
74
- /**
75
- * @public
76
- */
77
- export interface CreatePbxColleagueInput {
78
- extension: string;
62
+ export interface CreatePbxOAuth2ClientInput {
63
+ /**
64
+ * A name of OAuth2 client.
65
+ * @public
66
+ */
79
67
  name: string;
80
- officePhone?: string;
81
- mobilePhone?: string;
82
- faxNumber?: string;
83
- email?: string;
84
- role?: PbxColleagueRole;
85
- groupDn?: string;
86
- language?: string;
87
- dialplan?: string;
88
- faxDialplan?: string;
89
- department?: string;
90
- login?: string;
91
- password?: string;
92
- sipPassword?: string;
93
- licenseType?: PbxLicenseType;
68
+ /**
69
+ * Array of redirect URLs, allowed for this client.
70
+ * @public
71
+ */
72
+ redirectUri: (string)[];
94
73
  }
95
74
  /**
96
75
  * @public
97
76
  */
98
- export interface PbxColleague {
77
+ export interface PbxOAuth2Client {
99
78
  id: string;
100
- name?: string;
101
- login?: string;
102
- extension: string;
103
- officePhone?: string;
104
- mobilePhone?: string;
105
- faxNumber?: string;
106
- email?: string;
107
- pbxDn: string;
108
- pbx: string;
109
- role: PbxColleagueRole;
110
- groupName: string;
111
- groupDn: string;
112
- language: string;
113
- dialplan: string;
114
- faxDialplan: string;
115
- department?: string;
116
- picture: string;
117
- sourceId?: string;
118
- licenseType: PbxLicenseType;
119
- jid: string;
120
- }
121
- /**
122
- * @public
123
- */
124
- export interface CreatePbxColleagueOutput {
125
- type: string;
126
- result: PbxColleague;
79
+ name: string;
80
+ redirectUri: (string)[];
81
+ secret: string;
82
+ created: number;
83
+ origins: (string)[];
84
+ accessTokenTtl: number;
127
85
  }
128
86
  /**
129
87
  * @public
@@ -137,6 +95,13 @@ export declare const ResponseType: {
137
95
  * @public
138
96
  */
139
97
  export type ResponseType = typeof ResponseType[keyof typeof ResponseType];
98
+ /**
99
+ * @public
100
+ */
101
+ export interface CreatePbxOAuth2ClientOutput {
102
+ type: ResponseType;
103
+ result: PbxOAuth2Client;
104
+ }
140
105
  /**
141
106
  * @public
142
107
  */
@@ -150,40 +115,6 @@ export declare class WmsUnauthorizedException extends __BaseException {
150
115
  */
151
116
  constructor(opts: __ExceptionOptionType<WmsUnauthorizedException, __BaseException>);
152
117
  }
153
- /**
154
- * @public
155
- */
156
- export interface CreatePbxOAuth2ClientInput {
157
- /**
158
- * A name of OAuth2 client.
159
- * @public
160
- */
161
- name: string;
162
- /**
163
- * Array of redirect URLs, allowed for this client.
164
- * @public
165
- */
166
- redirectUri: (string)[];
167
- }
168
- /**
169
- * @public
170
- */
171
- export interface PbxOAuth2Client {
172
- id: string;
173
- name: string;
174
- redirectUri: (string)[];
175
- secret: string;
176
- created: number;
177
- origins: (string)[];
178
- accessTokenTtl: number;
179
- }
180
- /**
181
- * @public
182
- */
183
- export interface CreatePbxOAuth2ClientOutput {
184
- type: ResponseType;
185
- result: PbxOAuth2Client;
186
- }
187
118
  /**
188
119
  * @public
189
120
  */
@@ -205,43 +136,6 @@ export declare class WmsValidationException extends __BaseException {
205
136
  */
206
137
  constructor(opts: __ExceptionOptionType<WmsValidationException, __BaseException>);
207
138
  }
208
- /**
209
- * @public
210
- * @enum
211
- */
212
- export declare const PbxColleaguesDeleteField: {
213
- readonly APPLICATIONS: "applications";
214
- readonly CALLS: "calls";
215
- readonly CALL_GROUP_MEMBER: "callGroupMember";
216
- readonly CHAT_HISTORY: "chatHistory";
217
- readonly DEVICES: "devices";
218
- readonly MISSED_CALL_MANAGER: "missedCallManager";
219
- readonly PAGING_GROUP_MEMBER: "pagingGroupMember";
220
- readonly PERSONAL_DATA: "personalData";
221
- readonly PHONEBOOKS: "phonebooks";
222
- readonly USER: "user";
223
- readonly USER_AVATAR: "userAvatar";
224
- readonly VOICEMAILS: "voicemails";
225
- readonly VOICEMAIL_GREETINGS: "voicemailGreetings";
226
- };
227
- /**
228
- * @public
229
- */
230
- export type PbxColleaguesDeleteField = typeof PbxColleaguesDeleteField[keyof typeof PbxColleaguesDeleteField];
231
- /**
232
- * @public
233
- */
234
- export interface DeletePbxColleagueInput {
235
- colleagueId: number;
236
- data?: (PbxColleaguesDeleteField)[];
237
- }
238
- /**
239
- * @public
240
- */
241
- export interface DeletePbxColleagueOutput {
242
- type?: string;
243
- result?: string;
244
- }
245
139
  /**
246
140
  * @public
247
141
  */
@@ -435,6 +329,47 @@ export interface GetPbxColleaguesInput {
435
329
  dir?: GetPbxColleaguesDir;
436
330
  searchStrategy?: PbxColleaguesSearchStrategy;
437
331
  }
332
+ /**
333
+ * @public
334
+ * @enum
335
+ */
336
+ export declare const PbxColleagueRole: {
337
+ readonly ADMIN: "admin";
338
+ readonly FAX: "fax";
339
+ readonly PARK_ORBIT: "park_orbit";
340
+ readonly ROOM: "room";
341
+ readonly USER: "user";
342
+ };
343
+ /**
344
+ * @public
345
+ */
346
+ export type PbxColleagueRole = typeof PbxColleagueRole[keyof typeof PbxColleagueRole];
347
+ /**
348
+ * @public
349
+ */
350
+ export interface PbxColleague {
351
+ id: string;
352
+ name?: string;
353
+ login?: string;
354
+ extension: string;
355
+ officePhone?: string;
356
+ mobilePhone?: string;
357
+ faxNumber?: string;
358
+ email?: string;
359
+ pbxDn: string;
360
+ pbx: string;
361
+ role: PbxColleagueRole;
362
+ groupName: string;
363
+ groupDn: string;
364
+ language: string;
365
+ dialplan: string;
366
+ faxDialplan: string;
367
+ department?: string;
368
+ picture: string;
369
+ sourceId?: string;
370
+ licenseType: PbxLicenseType;
371
+ jid: string;
372
+ }
438
373
  /**
439
374
  * @public
440
375
  */
@@ -449,6 +384,33 @@ export interface GetPbxColleaguesOutput {
449
384
  type: ResponseType;
450
385
  result: GetPbxColleaguesResult;
451
386
  }
387
+ /**
388
+ * @public
389
+ */
390
+ export interface Pbx {
391
+ ip: string;
392
+ serial: string;
393
+ host: string;
394
+ isServer: boolean;
395
+ port: number;
396
+ failOver: string;
397
+ version: string;
398
+ isUpdateNeeded: boolean;
399
+ dn: string;
400
+ }
401
+ /**
402
+ * @public
403
+ */
404
+ export interface GetPbxesResult {
405
+ records: (Pbx)[];
406
+ }
407
+ /**
408
+ * @public
409
+ */
410
+ export interface GetPbxesOutput {
411
+ type: ResponseType;
412
+ result: GetPbxesResult;
413
+ }
452
414
  /**
453
415
  * @public
454
416
  */
@@ -1,26 +1,17 @@
1
- import { CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput } from "../commands/CreatePbxColleagueCommand";
2
1
  import { CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput } from "../commands/CreatePbxOAuth2ClientCommand";
3
- import { DeletePbxColleagueCommandInput, DeletePbxColleagueCommandOutput } from "../commands/DeletePbxColleagueCommand";
4
2
  import { DeletePbxOAuth2ClientCommandInput, DeletePbxOAuth2ClientCommandOutput } from "../commands/DeletePbxOAuth2ClientCommand";
5
3
  import { GetPbxAclGroupsPermissionsCommandInput, GetPbxAclGroupsPermissionsCommandOutput } from "../commands/GetPbxAclGroupsPermissionsCommand";
6
4
  import { GetPbxCallGroupsCommandInput, GetPbxCallGroupsCommandOutput } from "../commands/GetPbxCallGroupsCommand";
7
5
  import { GetPbxColleaguesCommandInput, GetPbxColleaguesCommandOutput } from "../commands/GetPbxColleaguesCommand";
8
6
  import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } from "../commands/GetPbxOAuth2ClientsCommand";
7
+ import { GetPbxesCommandInput, GetPbxesCommandOutput } from "../commands/GetPbxesCommand";
9
8
  import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "../commands/UpdatePbxOAuth2ClientCommand";
10
9
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
11
10
  import { SerdeContext as __SerdeContext } from "@smithy/types";
12
- /**
13
- * serializeAws_restJson1CreatePbxColleagueCommand
14
- */
15
- export declare const se_CreatePbxColleagueCommand: (input: CreatePbxColleagueCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
16
11
  /**
17
12
  * serializeAws_restJson1CreatePbxOAuth2ClientCommand
18
13
  */
19
14
  export declare const se_CreatePbxOAuth2ClientCommand: (input: CreatePbxOAuth2ClientCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
20
- /**
21
- * serializeAws_restJson1DeletePbxColleagueCommand
22
- */
23
- export declare const se_DeletePbxColleagueCommand: (input: DeletePbxColleagueCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
24
15
  /**
25
16
  * serializeAws_restJson1DeletePbxOAuth2ClientCommand
26
17
  */
@@ -37,6 +28,10 @@ export declare const se_GetPbxCallGroupsCommand: (input: GetPbxCallGroupsCommand
37
28
  * serializeAws_restJson1GetPbxColleaguesCommand
38
29
  */
39
30
  export declare const se_GetPbxColleaguesCommand: (input: GetPbxColleaguesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
31
+ /**
32
+ * serializeAws_restJson1GetPbxesCommand
33
+ */
34
+ export declare const se_GetPbxesCommand: (input: GetPbxesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
40
35
  /**
41
36
  * serializeAws_restJson1GetPbxOAuth2ClientsCommand
42
37
  */
@@ -45,18 +40,10 @@ export declare const se_GetPbxOAuth2ClientsCommand: (input: GetPbxOAuth2ClientsC
45
40
  * serializeAws_restJson1UpdatePbxOAuth2ClientCommand
46
41
  */
47
42
  export declare const se_UpdatePbxOAuth2ClientCommand: (input: UpdatePbxOAuth2ClientCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
48
- /**
49
- * deserializeAws_restJson1CreatePbxColleagueCommand
50
- */
51
- export declare const de_CreatePbxColleagueCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreatePbxColleagueCommandOutput>;
52
43
  /**
53
44
  * deserializeAws_restJson1CreatePbxOAuth2ClientCommand
54
45
  */
55
46
  export declare const de_CreatePbxOAuth2ClientCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreatePbxOAuth2ClientCommandOutput>;
56
- /**
57
- * deserializeAws_restJson1DeletePbxColleagueCommand
58
- */
59
- export declare const de_DeletePbxColleagueCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeletePbxColleagueCommandOutput>;
60
47
  /**
61
48
  * deserializeAws_restJson1DeletePbxOAuth2ClientCommand
62
49
  */
@@ -73,6 +60,10 @@ export declare const de_GetPbxCallGroupsCommand: (output: __HttpResponse, contex
73
60
  * deserializeAws_restJson1GetPbxColleaguesCommand
74
61
  */
75
62
  export declare const de_GetPbxColleaguesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPbxColleaguesCommandOutput>;
63
+ /**
64
+ * deserializeAws_restJson1GetPbxesCommand
65
+ */
66
+ export declare const de_GetPbxesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPbxesCommandOutput>;
76
67
  /**
77
68
  * deserializeAws_restJson1GetPbxOAuth2ClientsCommand
78
69
  */
@@ -26,4 +26,5 @@ export declare const getRuntimeConfig: (config: WmsApiClientConfig) => {
26
26
  logger: import("@smithy/types").Logger;
27
27
  extensions: import("./runtimeExtensions").RuntimeExtension[];
28
28
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
29
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
29
30
  };
@@ -26,4 +26,5 @@ export declare const getRuntimeConfig: (config: WmsApiClientConfig) => {
26
26
  logger: import("@smithy/types").Logger;
27
27
  extensions: import("./runtimeExtensions").RuntimeExtension[];
28
28
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
29
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
29
30
  };
@@ -25,4 +25,5 @@ export declare const getRuntimeConfig: (config: WmsApiClientConfig) => {
25
25
  extensions: import("./runtimeExtensions").RuntimeExtension[];
26
26
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
27
27
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
28
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
28
29
  };
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.5",
4
+ "version": "1.1.7",
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",
@@ -9,7 +9,8 @@
9
9
  "build:types": "tsc -p tsconfig.types.json",
10
10
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
11
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
12
- "prepack": "yarn run clean && yarn run build"
12
+ "prepack": "yarn run clean && yarn run build",
13
+ "postpublish": "node ../../scripts/postpublish.js"
13
14
  },
14
15
  "main": "./dist-cjs/index.js",
15
16
  "types": "./dist-types/index.d.ts",
@@ -22,27 +23,27 @@
22
23
  "@aws-sdk/middleware-user-agent": "3.587.0",
23
24
  "@aws-sdk/types": "latest",
24
25
  "@aws-sdk/util-user-agent-browser": "3.577.0",
25
- "@aws-sdk/util-user-agent-node": "3.577.0",
26
- "@smithy/config-resolver": "^3.0.0",
27
- "@smithy/core": "^2.0.1",
26
+ "@aws-sdk/util-user-agent-node": "3.587.0",
27
+ "@smithy/config-resolver": "^3.0.1",
28
+ "@smithy/core": "^2.2.0",
28
29
  "@smithy/fetch-http-handler": "^3.0.1",
29
30
  "@smithy/hash-node": "^3.0.0",
30
31
  "@smithy/invalid-dependency": "^3.0.0",
31
32
  "@smithy/middleware-content-length": "^3.0.0",
32
- "@smithy/middleware-retry": "^3.0.1",
33
+ "@smithy/middleware-retry": "^3.0.3",
33
34
  "@smithy/middleware-serde": "^3.0.0",
34
35
  "@smithy/middleware-stack": "^3.0.0",
35
- "@smithy/node-config-provider": "^3.0.0",
36
+ "@smithy/node-config-provider": "^3.1.0",
36
37
  "@smithy/node-http-handler": "^3.0.0",
37
38
  "@smithy/protocol-http": "^4.0.0",
38
- "@smithy/smithy-client": "^3.0.1",
39
+ "@smithy/smithy-client": "^3.1.1",
39
40
  "@smithy/types": "^3.0.0",
40
41
  "@smithy/url-parser": "^3.0.0",
41
42
  "@smithy/util-base64": "^3.0.0",
42
43
  "@smithy/util-body-length-browser": "^3.0.0",
43
44
  "@smithy/util-body-length-node": "^3.0.0",
44
- "@smithy/util-defaults-mode-browser": "^3.0.1",
45
- "@smithy/util-defaults-mode-node": "^3.0.1",
45
+ "@smithy/util-defaults-mode-browser": "^3.0.3",
46
+ "@smithy/util-defaults-mode-node": "^3.0.3",
46
47
  "@smithy/util-retry": "^3.0.0",
47
48
  "@smithy/util-utf8": "^3.0.0",
48
49
  "@wildix/smithy-utils": "^1.0.2"
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeletePbxColleagueCommand = 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 DeletePbxColleagueCommand 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", "DeletePbxColleague", {})
15
- .n("WmsApiClient", "DeletePbxColleagueCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_DeletePbxColleagueCommand)
18
- .de(Aws_restJson1_1.de_DeletePbxColleagueCommand)
19
- .build() {
20
- }
21
- exports.DeletePbxColleagueCommand = DeletePbxColleagueCommand;
@@ -1,17 +0,0 @@
1
- import { de_CreatePbxColleagueCommand, se_CreatePbxColleagueCommand, } 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 CreatePbxColleagueCommand extends $Command.classBuilder()
6
- .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
- })
11
- .s("WmsApi", "CreatePbxColleague", {})
12
- .n("WmsApiClient", "CreatePbxColleagueCommand")
13
- .f(void 0, void 0)
14
- .ser(se_CreatePbxColleagueCommand)
15
- .de(de_CreatePbxColleagueCommand)
16
- .build() {
17
- }
@@ -1,17 +0,0 @@
1
- import { de_DeletePbxColleagueCommand, se_DeletePbxColleagueCommand, } 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 DeletePbxColleagueCommand extends $Command.classBuilder()
6
- .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
- })
11
- .s("WmsApi", "DeletePbxColleague", {})
12
- .n("WmsApiClient", "DeletePbxColleagueCommand")
13
- .f(void 0, void 0)
14
- .ser(se_DeletePbxColleagueCommand)
15
- .de(de_DeletePbxColleagueCommand)
16
- .build() {
17
- }
@@ -1,99 +0,0 @@
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 { __MetadataBearer, $Command };
9
- /**
10
- * @public
11
- *
12
- * The input for {@link CreatePbxColleagueCommand}.
13
- */
14
- export interface CreatePbxColleagueCommandInput extends CreatePbxColleagueInput {
15
- }
16
- /**
17
- * @public
18
- *
19
- * The output of {@link CreatePbxColleagueCommand}.
20
- */
21
- export interface CreatePbxColleagueCommandOutput extends CreatePbxColleagueOutput, __MetadataBearer {
22
- }
23
- declare const CreatePbxColleagueCommand_base: {
24
- new (input: CreatePbxColleagueCommandInput): import("@smithy/smithy-client").CommandImpl<CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
- new (__0_0: CreatePbxColleagueCommandInput): import("@smithy/smithy-client").CommandImpl<CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
- };
28
- /**
29
- * @public
30
- *
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { WmsApiClient, CreatePbxColleagueCommand } from "@wildix/wms-api-client"; // ES Modules import
35
- * // const { WmsApiClient, CreatePbxColleagueCommand } = require("@wildix/wms-api-client"); // CommonJS import
36
- * const client = new WmsApiClient(config);
37
- * const input = { // CreatePbxColleagueInput
38
- * extension: "STRING_VALUE", // required
39
- * name: "STRING_VALUE", // required
40
- * officePhone: "STRING_VALUE",
41
- * mobilePhone: "STRING_VALUE",
42
- * faxNumber: "STRING_VALUE",
43
- * email: "STRING_VALUE",
44
- * role: "admin" || "user" || "fax" || "park_orbit" || "room",
45
- * groupDn: "STRING_VALUE",
46
- * language: "STRING_VALUE",
47
- * dialplan: "STRING_VALUE",
48
- * faxDialplan: "STRING_VALUE",
49
- * department: "STRING_VALUE",
50
- * login: "STRING_VALUE",
51
- * password: "STRING_VALUE",
52
- * sipPassword: "STRING_VALUE",
53
- * licenseType: "basic" || "essential" || "business" || "premium" || "wizyconf",
54
- * };
55
- * const command = new CreatePbxColleagueCommand(input);
56
- * const response = await client.send(command);
57
- * // { // CreatePbxColleagueOutput
58
- * // type: "STRING_VALUE", // required
59
- * // result: { // PbxColleague
60
- * // id: "STRING_VALUE", // required
61
- * // name: "STRING_VALUE",
62
- * // login: "STRING_VALUE",
63
- * // extension: "STRING_VALUE", // required
64
- * // officePhone: "STRING_VALUE",
65
- * // mobilePhone: "STRING_VALUE",
66
- * // faxNumber: "STRING_VALUE",
67
- * // email: "STRING_VALUE",
68
- * // pbxDn: "STRING_VALUE", // required
69
- * // pbx: "STRING_VALUE", // required
70
- * // role: "admin" || "user" || "fax" || "park_orbit" || "room", // required
71
- * // groupName: "STRING_VALUE", // required
72
- * // groupDn: "STRING_VALUE", // required
73
- * // language: "STRING_VALUE", // required
74
- * // dialplan: "STRING_VALUE", // required
75
- * // faxDialplan: "STRING_VALUE", // required
76
- * // department: "STRING_VALUE",
77
- * // picture: "STRING_VALUE", // required
78
- * // sourceId: "STRING_VALUE",
79
- * // licenseType: "basic" || "essential" || "business" || "premium" || "wizyconf", // required
80
- * // jid: "STRING_VALUE", // required
81
- * // },
82
- * // };
83
- *
84
- * ```
85
- *
86
- * @param CreatePbxColleagueCommandInput - {@link CreatePbxColleagueCommandInput}
87
- * @returns {@link CreatePbxColleagueCommandOutput}
88
- * @see {@link CreatePbxColleagueCommandInput} for command's `input` shape.
89
- * @see {@link CreatePbxColleagueCommandOutput} for command's `response` shape.
90
- * @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
91
- *
92
- * @throws {@link WmsUnauthorizedException} (client fault)
93
- *
94
- * @throws {@link WmsApiServiceException}
95
- * <p>Base exception class for all service exceptions from WmsApi service.</p>
96
- *
97
- */
98
- export declare class CreatePbxColleagueCommand extends CreatePbxColleagueCommand_base {
99
- }
@@ -1,65 +0,0 @@
1
- import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
2
- import { DeletePbxColleagueInput, DeletePbxColleagueOutput } 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 { __MetadataBearer, $Command };
9
- /**
10
- * @public
11
- *
12
- * The input for {@link DeletePbxColleagueCommand}.
13
- */
14
- export interface DeletePbxColleagueCommandInput extends DeletePbxColleagueInput {
15
- }
16
- /**
17
- * @public
18
- *
19
- * The output of {@link DeletePbxColleagueCommand}.
20
- */
21
- export interface DeletePbxColleagueCommandOutput extends DeletePbxColleagueOutput, __MetadataBearer {
22
- }
23
- declare const DeletePbxColleagueCommand_base: {
24
- new (input: DeletePbxColleagueCommandInput): import("@smithy/smithy-client").CommandImpl<DeletePbxColleagueCommandInput, DeletePbxColleagueCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
- new (__0_0: DeletePbxColleagueCommandInput): import("@smithy/smithy-client").CommandImpl<DeletePbxColleagueCommandInput, DeletePbxColleagueCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
- };
28
- /**
29
- * @public
30
- *
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { WmsApiClient, DeletePbxColleagueCommand } from "@wildix/wms-api-client"; // ES Modules import
35
- * // const { WmsApiClient, DeletePbxColleagueCommand } = require("@wildix/wms-api-client"); // CommonJS import
36
- * const client = new WmsApiClient(config);
37
- * const input = { // DeletePbxColleagueInput
38
- * colleagueId: Number("int"), // required
39
- * data: [ // PbxColleagueDeleteFieldList
40
- * "user" || "userAvatar" || "personalData" || "voicemails" || "voicemailGreetings" || "calls" || "chatHistory" || "phonebooks" || "callGroupMember" || "missedCallManager" || "pagingGroupMember" || "applications" || "devices",
41
- * ],
42
- * };
43
- * const command = new DeletePbxColleagueCommand(input);
44
- * const response = await client.send(command);
45
- * // { // DeletePbxColleagueOutput
46
- * // type: "STRING_VALUE",
47
- * // result: "STRING_VALUE",
48
- * // };
49
- *
50
- * ```
51
- *
52
- * @param DeletePbxColleagueCommandInput - {@link DeletePbxColleagueCommandInput}
53
- * @returns {@link DeletePbxColleagueCommandOutput}
54
- * @see {@link DeletePbxColleagueCommandInput} for command's `input` shape.
55
- * @see {@link DeletePbxColleagueCommandOutput} for command's `response` shape.
56
- * @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
57
- *
58
- * @throws {@link WmsUnauthorizedException} (client fault)
59
- *
60
- * @throws {@link WmsApiServiceException}
61
- * <p>Base exception class for all service exceptions from WmsApi service.</p>
62
- *
63
- */
64
- export declare class DeletePbxColleagueCommand extends DeletePbxColleagueCommand_base {
65
- }