@wildix/wms-api-client 1.1.12 → 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.
- 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 +8 -8
- package/dist-cjs/protocols/Aws_restJson1.js +139 -1
- 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 +7 -7
- package/dist-es/protocols/Aws_restJson1.js +130 -0
- 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/CreatePbxOAuth2ClientCommand.d.ts +2 -2
- package/dist-types/commands/DeletePbxAclGroupCommand.d.ts +63 -0
- package/dist-types/commands/DeletePbxColleagueCommand.d.ts +63 -0
- package/dist-types/commands/DeletePbxOAuth2ClientCommand.d.ts +2 -2
- package/dist-types/commands/GetColleagueByIdCommand.d.ts +2 -2
- package/dist-types/commands/GetPbxAclGroupsPermissionsCommand.d.ts +2 -2
- package/dist-types/commands/GetPbxCallGroupsCommand.d.ts +2 -2
- package/dist-types/commands/GetPbxColleaguesCommand.d.ts +2 -2
- package/dist-types/commands/GetPbxOAuth2ClientsCommand.d.ts +2 -2
- package/dist-types/commands/GetPbxesCommand.d.ts +2 -2
- package/dist-types/commands/GetPersonalInfoCommand.d.ts +2 -2
- package/dist-types/commands/NotificationsCommand.d.ts +2 -2
- package/dist-types/commands/OriginateCallCommand.d.ts +2 -2
- package/dist-types/commands/OriginateCommand.d.ts +2 -2
- package/dist-types/commands/UpdatePbxOAuth2ClientCommand.d.ts +2 -2
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +149 -59
- 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
|
@@ -59,29 +59,31 @@ export interface AclGroupPermission {
|
|
|
59
59
|
/**
|
|
60
60
|
* @public
|
|
61
61
|
*/
|
|
62
|
-
export interface
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
export interface AclGroupRule {
|
|
63
|
+
ability?: AclGroupPermissionAbility;
|
|
64
|
+
group?: string;
|
|
65
|
+
rule?: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
export interface CreatePbxAclGroupInput {
|
|
67
71
|
name: string;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
*/
|
|
72
|
-
redirectUri: (string)[];
|
|
72
|
+
inherits?: string;
|
|
73
|
+
wcgrp?: string;
|
|
74
|
+
rules: (AclGroupRule)[];
|
|
73
75
|
}
|
|
74
76
|
/**
|
|
75
77
|
* @public
|
|
76
78
|
*/
|
|
77
|
-
export interface
|
|
79
|
+
export interface CreatePbxAclGroupResult {
|
|
78
80
|
id: string;
|
|
79
81
|
name: string;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
dn: string;
|
|
83
|
+
wcgrp: string;
|
|
84
|
+
inherits: string;
|
|
85
|
+
rules: (AclGroupRule)[];
|
|
86
|
+
adminRules: string;
|
|
85
87
|
}
|
|
86
88
|
/**
|
|
87
89
|
* @public
|
|
@@ -98,9 +100,9 @@ export type ResponseType = typeof ResponseType[keyof typeof ResponseType];
|
|
|
98
100
|
/**
|
|
99
101
|
* @public
|
|
100
102
|
*/
|
|
101
|
-
export interface
|
|
103
|
+
export interface CreatePbxAclGroupOutput {
|
|
102
104
|
type: ResponseType;
|
|
103
|
-
result:
|
|
105
|
+
result: CreatePbxAclGroupResult;
|
|
104
106
|
}
|
|
105
107
|
/**
|
|
106
108
|
* @public
|
|
@@ -115,6 +117,109 @@ export declare class WmsUnauthorizedException extends __BaseException {
|
|
|
115
117
|
*/
|
|
116
118
|
constructor(opts: __ExceptionOptionType<WmsUnauthorizedException, __BaseException>);
|
|
117
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
* @public
|
|
122
|
+
* @enum
|
|
123
|
+
*/
|
|
124
|
+
export declare const PbxColleagueRole: {
|
|
125
|
+
readonly ADMIN: "admin";
|
|
126
|
+
readonly FAX: "fax";
|
|
127
|
+
readonly PARK_ORBIT: "park_orbit";
|
|
128
|
+
readonly ROOM: "room";
|
|
129
|
+
readonly USER: "user";
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* @public
|
|
133
|
+
*/
|
|
134
|
+
export type PbxColleagueRole = typeof PbxColleagueRole[keyof typeof PbxColleagueRole];
|
|
135
|
+
/**
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
138
|
+
export interface CreatePbxColleagueInput {
|
|
139
|
+
extension: string;
|
|
140
|
+
name: string;
|
|
141
|
+
officePhone?: string;
|
|
142
|
+
mobilePhone?: string;
|
|
143
|
+
faxNumber?: string;
|
|
144
|
+
email?: string;
|
|
145
|
+
role?: PbxColleagueRole;
|
|
146
|
+
groupDn?: string;
|
|
147
|
+
language?: string;
|
|
148
|
+
dialplan?: string;
|
|
149
|
+
faxDialplan?: string;
|
|
150
|
+
department?: string;
|
|
151
|
+
login?: string;
|
|
152
|
+
password?: string;
|
|
153
|
+
sipPassword?: string;
|
|
154
|
+
licenseType?: PbxLicenseType;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* @public
|
|
158
|
+
*/
|
|
159
|
+
export interface PbxColleague {
|
|
160
|
+
id: string;
|
|
161
|
+
name?: string;
|
|
162
|
+
login?: string;
|
|
163
|
+
extension: string;
|
|
164
|
+
officePhone?: string;
|
|
165
|
+
mobilePhone?: string;
|
|
166
|
+
faxNumber?: string;
|
|
167
|
+
email?: string;
|
|
168
|
+
pbxDn: string;
|
|
169
|
+
pbx: string;
|
|
170
|
+
role: PbxColleagueRole;
|
|
171
|
+
groupName: string;
|
|
172
|
+
groupDn: string;
|
|
173
|
+
language: string;
|
|
174
|
+
dialplan: string;
|
|
175
|
+
faxDialplan: string;
|
|
176
|
+
department?: string;
|
|
177
|
+
picture: string;
|
|
178
|
+
sourceId?: string;
|
|
179
|
+
licenseType: PbxLicenseType;
|
|
180
|
+
jid: string;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* @public
|
|
184
|
+
*/
|
|
185
|
+
export interface CreatePbxColleagueOutput {
|
|
186
|
+
type: ResponseType;
|
|
187
|
+
result: PbxColleague;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* @public
|
|
191
|
+
*/
|
|
192
|
+
export interface CreatePbxOAuth2ClientInput {
|
|
193
|
+
/**
|
|
194
|
+
* A name of OAuth2 client.
|
|
195
|
+
* @public
|
|
196
|
+
*/
|
|
197
|
+
name: string;
|
|
198
|
+
/**
|
|
199
|
+
* Array of redirect URLs, allowed for this client.
|
|
200
|
+
* @public
|
|
201
|
+
*/
|
|
202
|
+
redirectUri: (string)[];
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* @public
|
|
206
|
+
*/
|
|
207
|
+
export interface PbxOAuth2Client {
|
|
208
|
+
id: string;
|
|
209
|
+
name: string;
|
|
210
|
+
redirectUri: (string)[];
|
|
211
|
+
secret: string;
|
|
212
|
+
created: number;
|
|
213
|
+
origins: (string)[];
|
|
214
|
+
accessTokenTtl: number;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* @public
|
|
218
|
+
*/
|
|
219
|
+
export interface CreatePbxOAuth2ClientOutput {
|
|
220
|
+
type: ResponseType;
|
|
221
|
+
result: PbxOAuth2Client;
|
|
222
|
+
}
|
|
118
223
|
/**
|
|
119
224
|
* @public
|
|
120
225
|
*/
|
|
@@ -136,6 +241,32 @@ export declare class WmsValidationException extends __BaseException {
|
|
|
136
241
|
*/
|
|
137
242
|
constructor(opts: __ExceptionOptionType<WmsValidationException, __BaseException>);
|
|
138
243
|
}
|
|
244
|
+
/**
|
|
245
|
+
* @public
|
|
246
|
+
*/
|
|
247
|
+
export interface DeletePbxAclGroupInput {
|
|
248
|
+
id: number;
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* @public
|
|
252
|
+
*/
|
|
253
|
+
export interface DeletePbxAclGroupOutput {
|
|
254
|
+
type: ResponseType;
|
|
255
|
+
result: string;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* @public
|
|
259
|
+
*/
|
|
260
|
+
export interface DeletePbxColleagueInput {
|
|
261
|
+
id: number;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* @public
|
|
265
|
+
*/
|
|
266
|
+
export interface DeletePbxColleagueOutput {
|
|
267
|
+
type: ResponseType;
|
|
268
|
+
result: string;
|
|
269
|
+
}
|
|
139
270
|
/**
|
|
140
271
|
* @public
|
|
141
272
|
*/
|
|
@@ -172,47 +303,6 @@ export declare class WmsNotFoundException extends __BaseException {
|
|
|
172
303
|
export interface GetColleagueByIdInput {
|
|
173
304
|
id: number;
|
|
174
305
|
}
|
|
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
306
|
/**
|
|
217
307
|
* @public
|
|
218
308
|
*/
|
|
@@ -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.13",
|
|
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",
|