@wildix/wms-api-client 1.1.14 → 1.1.16
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.
- package/dist-cjs/WmsApi.js +8 -0
- package/dist-cjs/commands/CreatePbxAclGroupCommand.js +21 -0
- package/dist-cjs/commands/CreatePbxColleagueCommand.js +21 -0
- package/dist-cjs/commands/DeletePbxAclGroupCommand.js +21 -0
- package/dist-cjs/commands/DeletePbxColleagueCommand.js +21 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +10 -8
- package/dist-cjs/protocols/Aws_restJson1.js +140 -2
- package/dist-es/WmsApi.js +8 -0
- package/dist-es/commands/CreatePbxAclGroupCommand.js +17 -0
- package/dist-es/commands/CreatePbxColleagueCommand.js +17 -0
- package/dist-es/commands/DeletePbxAclGroupCommand.js +17 -0
- package/dist-es/commands/DeletePbxColleagueCommand.js +17 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +9 -7
- package/dist-es/protocols/Aws_restJson1.js +131 -1
- package/dist-types/WmsApi.d.ts +28 -0
- package/dist-types/WmsApiClient.d.ts +6 -2
- package/dist-types/commands/CreatePbxAclGroupCommand.d.ts +86 -0
- package/dist-types/commands/CreatePbxColleagueCommand.d.ts +100 -0
- package/dist-types/commands/DeletePbxAclGroupCommand.d.ts +63 -0
- package/dist-types/commands/DeletePbxColleagueCommand.d.ts +63 -0
- package/dist-types/commands/GetPbxAclGroupsPermissionsCommand.d.ts +1 -1
- package/dist-types/commands/NotificationsCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +159 -67
- package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/package.json +1 -1
|
@@ -23,12 +23,34 @@ export declare const AclGroupPermissionAbility: {
|
|
|
23
23
|
readonly CAN: "can";
|
|
24
24
|
readonly CANNOT: "cannot";
|
|
25
25
|
readonly NO: "no";
|
|
26
|
+
readonly NOUSE: "nouse";
|
|
27
|
+
readonly USE: "use";
|
|
26
28
|
readonly YES: "yes";
|
|
27
29
|
};
|
|
28
30
|
/**
|
|
29
31
|
* @public
|
|
30
32
|
*/
|
|
31
33
|
export type AclGroupPermissionAbility = typeof AclGroupPermissionAbility[keyof typeof AclGroupPermissionAbility];
|
|
34
|
+
/**
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
export interface AclGroupRule {
|
|
38
|
+
ability?: AclGroupPermissionAbility;
|
|
39
|
+
group?: string;
|
|
40
|
+
rule?: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
|
+
export interface AclGroup {
|
|
46
|
+
id: number;
|
|
47
|
+
name: string;
|
|
48
|
+
dn: string;
|
|
49
|
+
wcgrp: string;
|
|
50
|
+
inherits: string;
|
|
51
|
+
rules: (AclGroupRule)[];
|
|
52
|
+
adminRules: string;
|
|
53
|
+
}
|
|
32
54
|
/**
|
|
33
55
|
* @public
|
|
34
56
|
*/
|
|
@@ -59,29 +81,11 @@ export interface AclGroupPermission {
|
|
|
59
81
|
/**
|
|
60
82
|
* @public
|
|
61
83
|
*/
|
|
62
|
-
export interface
|
|
63
|
-
/**
|
|
64
|
-
* A name of OAuth2 client.
|
|
65
|
-
* @public
|
|
66
|
-
*/
|
|
67
|
-
name: string;
|
|
68
|
-
/**
|
|
69
|
-
* Array of redirect URLs, allowed for this client.
|
|
70
|
-
* @public
|
|
71
|
-
*/
|
|
72
|
-
redirectUri: (string)[];
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* @public
|
|
76
|
-
*/
|
|
77
|
-
export interface PbxOAuth2Client {
|
|
78
|
-
id: string;
|
|
84
|
+
export interface CreatePbxAclGroupInput {
|
|
79
85
|
name: string;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
origins: (string)[];
|
|
84
|
-
accessTokenTtl: number;
|
|
86
|
+
inherits?: string;
|
|
87
|
+
wcgrp?: string;
|
|
88
|
+
rules: (AclGroupRule)[];
|
|
85
89
|
}
|
|
86
90
|
/**
|
|
87
91
|
* @public
|
|
@@ -98,9 +102,9 @@ export type ResponseType = typeof ResponseType[keyof typeof ResponseType];
|
|
|
98
102
|
/**
|
|
99
103
|
* @public
|
|
100
104
|
*/
|
|
101
|
-
export interface
|
|
105
|
+
export interface CreatePbxAclGroupOutput {
|
|
102
106
|
type: ResponseType;
|
|
103
|
-
result:
|
|
107
|
+
result: AclGroup;
|
|
104
108
|
}
|
|
105
109
|
/**
|
|
106
110
|
* @public
|
|
@@ -115,6 +119,109 @@ export declare class WmsUnauthorizedException extends __BaseException {
|
|
|
115
119
|
*/
|
|
116
120
|
constructor(opts: __ExceptionOptionType<WmsUnauthorizedException, __BaseException>);
|
|
117
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* @public
|
|
124
|
+
* @enum
|
|
125
|
+
*/
|
|
126
|
+
export declare const PbxColleagueRole: {
|
|
127
|
+
readonly ADMIN: "admin";
|
|
128
|
+
readonly FAX: "fax";
|
|
129
|
+
readonly PARK_ORBIT: "park_orbit";
|
|
130
|
+
readonly ROOM: "room";
|
|
131
|
+
readonly USER: "user";
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* @public
|
|
135
|
+
*/
|
|
136
|
+
export type PbxColleagueRole = typeof PbxColleagueRole[keyof typeof PbxColleagueRole];
|
|
137
|
+
/**
|
|
138
|
+
* @public
|
|
139
|
+
*/
|
|
140
|
+
export interface CreatePbxColleagueInput {
|
|
141
|
+
extension: string;
|
|
142
|
+
name: string;
|
|
143
|
+
officePhone?: string;
|
|
144
|
+
mobilePhone?: string;
|
|
145
|
+
faxNumber?: string;
|
|
146
|
+
email?: string;
|
|
147
|
+
role?: PbxColleagueRole;
|
|
148
|
+
groupDn?: string;
|
|
149
|
+
language?: string;
|
|
150
|
+
dialplan?: string;
|
|
151
|
+
faxDialplan?: string;
|
|
152
|
+
department?: string;
|
|
153
|
+
login?: string;
|
|
154
|
+
password?: string;
|
|
155
|
+
sipPassword?: string;
|
|
156
|
+
licenseType?: PbxLicenseType;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* @public
|
|
160
|
+
*/
|
|
161
|
+
export interface PbxColleague {
|
|
162
|
+
id: string;
|
|
163
|
+
name?: string;
|
|
164
|
+
login?: string;
|
|
165
|
+
extension: string;
|
|
166
|
+
officePhone?: string;
|
|
167
|
+
mobilePhone?: string;
|
|
168
|
+
faxNumber?: string;
|
|
169
|
+
email?: string;
|
|
170
|
+
pbxDn: string;
|
|
171
|
+
pbx: string;
|
|
172
|
+
role: PbxColleagueRole;
|
|
173
|
+
groupName: string;
|
|
174
|
+
groupDn: string;
|
|
175
|
+
language: string;
|
|
176
|
+
dialplan: string;
|
|
177
|
+
faxDialplan: string;
|
|
178
|
+
department?: string;
|
|
179
|
+
picture: string;
|
|
180
|
+
sourceId?: string;
|
|
181
|
+
licenseType: PbxLicenseType;
|
|
182
|
+
jid: string;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* @public
|
|
186
|
+
*/
|
|
187
|
+
export interface CreatePbxColleagueOutput {
|
|
188
|
+
type: ResponseType;
|
|
189
|
+
result: PbxColleague;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* @public
|
|
193
|
+
*/
|
|
194
|
+
export interface CreatePbxOAuth2ClientInput {
|
|
195
|
+
/**
|
|
196
|
+
* A name of OAuth2 client.
|
|
197
|
+
* @public
|
|
198
|
+
*/
|
|
199
|
+
name: string;
|
|
200
|
+
/**
|
|
201
|
+
* Array of redirect URLs, allowed for this client.
|
|
202
|
+
* @public
|
|
203
|
+
*/
|
|
204
|
+
redirectUri: (string)[];
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* @public
|
|
208
|
+
*/
|
|
209
|
+
export interface PbxOAuth2Client {
|
|
210
|
+
id: string;
|
|
211
|
+
name: string;
|
|
212
|
+
redirectUri: (string)[];
|
|
213
|
+
secret: string;
|
|
214
|
+
created: number;
|
|
215
|
+
origins: (string)[];
|
|
216
|
+
accessTokenTtl: number;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* @public
|
|
220
|
+
*/
|
|
221
|
+
export interface CreatePbxOAuth2ClientOutput {
|
|
222
|
+
type: ResponseType;
|
|
223
|
+
result: PbxOAuth2Client;
|
|
224
|
+
}
|
|
118
225
|
/**
|
|
119
226
|
* @public
|
|
120
227
|
*/
|
|
@@ -136,6 +243,32 @@ export declare class WmsValidationException extends __BaseException {
|
|
|
136
243
|
*/
|
|
137
244
|
constructor(opts: __ExceptionOptionType<WmsValidationException, __BaseException>);
|
|
138
245
|
}
|
|
246
|
+
/**
|
|
247
|
+
* @public
|
|
248
|
+
*/
|
|
249
|
+
export interface DeletePbxAclGroupInput {
|
|
250
|
+
id: number;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* @public
|
|
254
|
+
*/
|
|
255
|
+
export interface DeletePbxAclGroupOutput {
|
|
256
|
+
type: ResponseType;
|
|
257
|
+
result: string;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* @public
|
|
261
|
+
*/
|
|
262
|
+
export interface DeletePbxColleagueInput {
|
|
263
|
+
id: number;
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* @public
|
|
267
|
+
*/
|
|
268
|
+
export interface DeletePbxColleagueOutput {
|
|
269
|
+
type: ResponseType;
|
|
270
|
+
result: string;
|
|
271
|
+
}
|
|
139
272
|
/**
|
|
140
273
|
* @public
|
|
141
274
|
*/
|
|
@@ -172,47 +305,6 @@ export declare class WmsNotFoundException extends __BaseException {
|
|
|
172
305
|
export interface GetColleagueByIdInput {
|
|
173
306
|
id: number;
|
|
174
307
|
}
|
|
175
|
-
/**
|
|
176
|
-
* @public
|
|
177
|
-
* @enum
|
|
178
|
-
*/
|
|
179
|
-
export declare const PbxColleagueRole: {
|
|
180
|
-
readonly ADMIN: "admin";
|
|
181
|
-
readonly FAX: "fax";
|
|
182
|
-
readonly PARK_ORBIT: "park_orbit";
|
|
183
|
-
readonly ROOM: "room";
|
|
184
|
-
readonly USER: "user";
|
|
185
|
-
};
|
|
186
|
-
/**
|
|
187
|
-
* @public
|
|
188
|
-
*/
|
|
189
|
-
export type PbxColleagueRole = typeof PbxColleagueRole[keyof typeof PbxColleagueRole];
|
|
190
|
-
/**
|
|
191
|
-
* @public
|
|
192
|
-
*/
|
|
193
|
-
export interface PbxColleague {
|
|
194
|
-
id: string;
|
|
195
|
-
name?: string;
|
|
196
|
-
login?: string;
|
|
197
|
-
extension: string;
|
|
198
|
-
officePhone?: string;
|
|
199
|
-
mobilePhone?: string;
|
|
200
|
-
faxNumber?: string;
|
|
201
|
-
email?: string;
|
|
202
|
-
pbxDn: string;
|
|
203
|
-
pbx: string;
|
|
204
|
-
role: PbxColleagueRole;
|
|
205
|
-
groupName: string;
|
|
206
|
-
groupDn: string;
|
|
207
|
-
language: string;
|
|
208
|
-
dialplan: string;
|
|
209
|
-
faxDialplan: string;
|
|
210
|
-
department?: string;
|
|
211
|
-
picture: string;
|
|
212
|
-
sourceId?: string;
|
|
213
|
-
licenseType: PbxLicenseType;
|
|
214
|
-
jid: string;
|
|
215
|
-
}
|
|
216
308
|
/**
|
|
217
309
|
* @public
|
|
218
310
|
*/
|
|
@@ -506,10 +598,10 @@ export interface NotificationsInput {
|
|
|
506
598
|
*/
|
|
507
599
|
broadcastMessage: string;
|
|
508
600
|
/**
|
|
509
|
-
* The
|
|
601
|
+
* The conference ID to which the message will be sent.
|
|
510
602
|
* @public
|
|
511
603
|
*/
|
|
512
|
-
|
|
604
|
+
conferenceId: string;
|
|
513
605
|
/**
|
|
514
606
|
* How often (each N seconds) a request has to be repeated.
|
|
515
607
|
* @public
|
|
@@ -1,4 +1,8 @@
|
|
|
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";
|
|
3
7
|
import { GetColleagueByIdCommandInput, GetColleagueByIdCommandOutput } from "../commands/GetColleagueByIdCommand";
|
|
4
8
|
import { GetPbxAclGroupsPermissionsCommandInput, GetPbxAclGroupsPermissionsCommandOutput } from "../commands/GetPbxAclGroupsPermissionsCommand";
|
|
@@ -13,10 +17,26 @@ import { OriginateCommandInput, OriginateCommandOutput } from "../commands/Origi
|
|
|
13
17
|
import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "../commands/UpdatePbxOAuth2ClientCommand";
|
|
14
18
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
15
19
|
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
20
|
+
/**
|
|
21
|
+
* serializeAws_restJson1CreatePbxAclGroupCommand
|
|
22
|
+
*/
|
|
23
|
+
export declare const se_CreatePbxAclGroupCommand: (input: CreatePbxAclGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
24
|
+
/**
|
|
25
|
+
* serializeAws_restJson1CreatePbxColleagueCommand
|
|
26
|
+
*/
|
|
27
|
+
export declare const se_CreatePbxColleagueCommand: (input: CreatePbxColleagueCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
16
28
|
/**
|
|
17
29
|
* serializeAws_restJson1CreatePbxOAuth2ClientCommand
|
|
18
30
|
*/
|
|
19
31
|
export declare const se_CreatePbxOAuth2ClientCommand: (input: CreatePbxOAuth2ClientCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
32
|
+
/**
|
|
33
|
+
* serializeAws_restJson1DeletePbxAclGroupCommand
|
|
34
|
+
*/
|
|
35
|
+
export declare const se_DeletePbxAclGroupCommand: (input: DeletePbxAclGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
36
|
+
/**
|
|
37
|
+
* serializeAws_restJson1DeletePbxColleagueCommand
|
|
38
|
+
*/
|
|
39
|
+
export declare const se_DeletePbxColleagueCommand: (input: DeletePbxColleagueCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
20
40
|
/**
|
|
21
41
|
* serializeAws_restJson1DeletePbxOAuth2ClientCommand
|
|
22
42
|
*/
|
|
@@ -65,10 +85,26 @@ export declare const se_OriginateCallCommand: (input: OriginateCallCommandInput,
|
|
|
65
85
|
* serializeAws_restJson1UpdatePbxOAuth2ClientCommand
|
|
66
86
|
*/
|
|
67
87
|
export declare const se_UpdatePbxOAuth2ClientCommand: (input: UpdatePbxOAuth2ClientCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
88
|
+
/**
|
|
89
|
+
* deserializeAws_restJson1CreatePbxAclGroupCommand
|
|
90
|
+
*/
|
|
91
|
+
export declare const de_CreatePbxAclGroupCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreatePbxAclGroupCommandOutput>;
|
|
92
|
+
/**
|
|
93
|
+
* deserializeAws_restJson1CreatePbxColleagueCommand
|
|
94
|
+
*/
|
|
95
|
+
export declare const de_CreatePbxColleagueCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreatePbxColleagueCommandOutput>;
|
|
68
96
|
/**
|
|
69
97
|
* deserializeAws_restJson1CreatePbxOAuth2ClientCommand
|
|
70
98
|
*/
|
|
71
99
|
export declare const de_CreatePbxOAuth2ClientCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreatePbxOAuth2ClientCommandOutput>;
|
|
100
|
+
/**
|
|
101
|
+
* deserializeAws_restJson1DeletePbxAclGroupCommand
|
|
102
|
+
*/
|
|
103
|
+
export declare const de_DeletePbxAclGroupCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeletePbxAclGroupCommandOutput>;
|
|
104
|
+
/**
|
|
105
|
+
* deserializeAws_restJson1DeletePbxColleagueCommand
|
|
106
|
+
*/
|
|
107
|
+
export declare const de_DeletePbxColleagueCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeletePbxColleagueCommandOutput>;
|
|
72
108
|
/**
|
|
73
109
|
* deserializeAws_restJson1DeletePbxOAuth2ClientCommand
|
|
74
110
|
*/
|
|
@@ -17,6 +17,7 @@ export declare const getRuntimeConfig: (config: WmsApiClientConfig) => {
|
|
|
17
17
|
port?: number | undefined;
|
|
18
18
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
19
19
|
apiVersion: string;
|
|
20
|
+
cacheMiddleware?: boolean | undefined;
|
|
20
21
|
urlParser: import("@smithy/types").UrlParser;
|
|
21
22
|
base64Decoder: import("@smithy/types").Decoder;
|
|
22
23
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -17,6 +17,7 @@ export declare const getRuntimeConfig: (config: WmsApiClientConfig) => {
|
|
|
17
17
|
port?: number | undefined;
|
|
18
18
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
19
19
|
apiVersion: string;
|
|
20
|
+
cacheMiddleware?: boolean | undefined;
|
|
20
21
|
urlParser: import("@smithy/types").UrlParser;
|
|
21
22
|
base64Decoder: import("@smithy/types").Decoder;
|
|
22
23
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -10,6 +10,7 @@ export declare const getRuntimeConfig: (config: WmsApiClientConfig) => {
|
|
|
10
10
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
11
11
|
requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
12
12
|
apiVersion: string;
|
|
13
|
+
cacheMiddleware?: boolean | undefined;
|
|
13
14
|
urlParser: import("@smithy/types").UrlParser;
|
|
14
15
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
15
16
|
streamCollector: import("@smithy/types").StreamCollector;
|
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.
|
|
4
|
+
"version": "1.1.16",
|
|
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",
|