@wildix/wms-api-client 1.1.2 → 1.1.4

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 (53) hide show
  1. package/dist-cjs/WmsApi.js +4 -0
  2. package/dist-cjs/WmsApiClient.js +6 -3
  3. package/dist-cjs/commands/CreatePbxColleagueCommand.js +21 -0
  4. package/dist-cjs/commands/CreatePbxOAuth2ClientCommand.js +12 -32
  5. package/dist-cjs/commands/DeletePbxColleagueCommand.js +21 -0
  6. package/dist-cjs/commands/DeletePbxOAuth2ClientCommand.js +12 -32
  7. package/dist-cjs/commands/GetPbxAclGroupsPermissionsCommand.js +12 -32
  8. package/dist-cjs/commands/GetPbxCallGroupsCommand.js +12 -32
  9. package/dist-cjs/commands/GetPbxColleaguesCommand.js +12 -32
  10. package/dist-cjs/commands/GetPbxOAuth2ClientsCommand.js +12 -32
  11. package/dist-cjs/commands/UpdatePbxOAuth2ClientCommand.js +12 -32
  12. package/dist-cjs/commands/index.js +2 -0
  13. package/dist-cjs/models/models_0.js +29 -14
  14. package/dist-cjs/protocols/Aws_restJson1.js +220 -236
  15. package/dist-cjs/runtimeConfig.browser.js +5 -1
  16. package/dist-cjs/runtimeConfig.js +5 -1
  17. package/dist-cjs/runtimeConfig.shared.js +13 -11
  18. package/dist-es/WmsApi.js +4 -0
  19. package/dist-es/WmsApiClient.js +6 -3
  20. package/dist-es/commands/CreatePbxColleagueCommand.js +17 -0
  21. package/dist-es/commands/CreatePbxOAuth2ClientCommand.js +12 -32
  22. package/dist-es/commands/DeletePbxColleagueCommand.js +17 -0
  23. package/dist-es/commands/DeletePbxOAuth2ClientCommand.js +12 -32
  24. package/dist-es/commands/GetPbxAclGroupsPermissionsCommand.js +12 -32
  25. package/dist-es/commands/GetPbxCallGroupsCommand.js +12 -32
  26. package/dist-es/commands/GetPbxColleaguesCommand.js +12 -32
  27. package/dist-es/commands/GetPbxOAuth2ClientsCommand.js +12 -32
  28. package/dist-es/commands/UpdatePbxOAuth2ClientCommand.js +12 -32
  29. package/dist-es/commands/index.js +2 -0
  30. package/dist-es/models/models_0.js +28 -13
  31. package/dist-es/protocols/Aws_restJson1.js +214 -234
  32. package/dist-es/runtimeConfig.browser.js +4 -1
  33. package/dist-es/runtimeConfig.js +4 -1
  34. package/dist-es/runtimeConfig.shared.js +13 -11
  35. package/dist-types/WmsApi.d.ts +18 -0
  36. package/dist-types/WmsApiClient.d.ts +17 -9
  37. package/dist-types/commands/CreatePbxColleagueCommand.d.ts +96 -0
  38. package/dist-types/commands/CreatePbxOAuth2ClientCommand.d.ts +8 -20
  39. package/dist-types/commands/DeletePbxColleagueCommand.d.ts +65 -0
  40. package/dist-types/commands/DeletePbxOAuth2ClientCommand.d.ts +8 -20
  41. package/dist-types/commands/GetPbxAclGroupsPermissionsCommand.d.ts +7 -19
  42. package/dist-types/commands/GetPbxCallGroupsCommand.d.ts +8 -20
  43. package/dist-types/commands/GetPbxColleaguesCommand.d.ts +7 -19
  44. package/dist-types/commands/GetPbxOAuth2ClientsCommand.d.ts +8 -20
  45. package/dist-types/commands/UpdatePbxOAuth2ClientCommand.d.ts +8 -20
  46. package/dist-types/commands/index.d.ts +2 -0
  47. package/dist-types/index.d.ts +2 -0
  48. package/dist-types/models/models_0.d.ts +154 -70
  49. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  50. package/dist-types/runtimeConfig.browser.d.ts +3 -4
  51. package/dist-types/runtimeConfig.d.ts +3 -4
  52. package/dist-types/runtimeConfig.native.d.ts +3 -4
  53. package/package.json +31 -30
@@ -1,5 +1,20 @@
1
1
  import { WmsApiServiceException as __BaseException } from "./WmsApiServiceException";
2
2
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
3
+ /**
4
+ * @public
5
+ * @enum
6
+ */
7
+ export declare const PbxLicenseType: {
8
+ readonly BASIC: "basic";
9
+ readonly BUSINESS: "business";
10
+ readonly ESSENTIAL: "essential";
11
+ readonly PREMIUM: "premium";
12
+ readonly WIZYCONF: "wizyconf";
13
+ };
14
+ /**
15
+ * @public
16
+ */
17
+ export type PbxLicenseType = typeof PbxLicenseType[keyof typeof PbxLicenseType];
3
18
  /**
4
19
  * @public
5
20
  * @enum
@@ -35,7 +50,7 @@ export interface AclGroupPermissionItem {
35
50
  * @public
36
51
  */
37
52
  export interface AclGroupPermission {
38
- ability: AclGroupPermissionAbility | string;
53
+ ability: AclGroupPermissionAbility;
39
54
  key: string;
40
55
  name: string;
41
56
  containSubGroups: boolean;
@@ -45,43 +60,63 @@ export interface AclGroupPermission {
45
60
  * @public
46
61
  * @enum
47
62
  */
48
- export declare const PbxLicenseType: {
49
- readonly BASIC: "basic";
50
- readonly BUSINESS: "business";
51
- readonly ESSENTIAL: "essential";
52
- readonly PREMIUM: "premium";
53
- readonly WIZYCONF: "wizyconf";
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";
54
69
  };
55
70
  /**
56
71
  * @public
57
72
  */
58
- export type PbxLicenseType = typeof PbxLicenseType[keyof typeof PbxLicenseType];
73
+ export type PbxColleagueRole = typeof PbxColleagueRole[keyof typeof PbxColleagueRole];
59
74
  /**
60
75
  * @public
61
76
  */
62
- export interface CreatePbxOAuth2ClientInput {
63
- /**
64
- * @public
65
- * A name of OAuth2 client.
66
- */
77
+ export interface CreatePbxColleagueInput {
78
+ extension: string;
67
79
  name: string;
68
- /**
69
- * @public
70
- * Array of redirect URLs, allowed for this client.
71
- */
72
- redirectUri: (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;
73
94
  }
74
95
  /**
75
96
  * @public
76
97
  */
77
- export interface PbxOAuth2Client {
98
+ export interface CreatePbxColleagueOutput {
78
99
  id: string;
79
- name: string;
80
- redirectUri: (string)[];
81
- secret: string;
82
- created: number;
83
- origins: (string)[];
84
- accessTokenTtl: number;
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;
85
120
  }
86
121
  /**
87
122
  * @public
@@ -95,26 +130,53 @@ export declare const ResponseType: {
95
130
  * @public
96
131
  */
97
132
  export type ResponseType = typeof ResponseType[keyof typeof ResponseType];
98
- /**
99
- * @public
100
- */
101
- export interface CreatePbxOAuth2ClientOutput {
102
- type: ResponseType | string;
103
- result: PbxOAuth2Client;
104
- }
105
133
  /**
106
134
  * @public
107
135
  */
108
136
  export declare class WmsUnauthorizedException extends __BaseException {
109
137
  readonly name: "WmsUnauthorizedException";
110
138
  readonly $fault: "client";
111
- type: ResponseType | string;
139
+ type: ResponseType;
112
140
  reason: string;
113
141
  /**
114
142
  * @internal
115
143
  */
116
144
  constructor(opts: __ExceptionOptionType<WmsUnauthorizedException, __BaseException>);
117
145
  }
146
+ /**
147
+ * @public
148
+ */
149
+ export interface CreatePbxOAuth2ClientInput {
150
+ /**
151
+ * A name of OAuth2 client.
152
+ * @public
153
+ */
154
+ name: string;
155
+ /**
156
+ * Array of redirect URLs, allowed for this client.
157
+ * @public
158
+ */
159
+ redirectUri: (string)[];
160
+ }
161
+ /**
162
+ * @public
163
+ */
164
+ export interface PbxOAuth2Client {
165
+ id: string;
166
+ name: string;
167
+ redirectUri: (string)[];
168
+ secret: string;
169
+ created: number;
170
+ origins: (string)[];
171
+ accessTokenTtl: number;
172
+ }
173
+ /**
174
+ * @public
175
+ */
176
+ export interface CreatePbxOAuth2ClientOutput {
177
+ type: ResponseType;
178
+ result: PbxOAuth2Client;
179
+ }
118
180
  /**
119
181
  * @public
120
182
  */
@@ -128,7 +190,7 @@ export interface WmsErrorItem {
128
190
  export declare class WmsValidationException extends __BaseException {
129
191
  readonly name: "WmsValidationException";
130
192
  readonly $fault: "client";
131
- type: ResponseType | string;
193
+ type: ResponseType;
132
194
  reason: string;
133
195
  errors: (WmsErrorItem)[];
134
196
  /**
@@ -136,13 +198,50 @@ export declare class WmsValidationException extends __BaseException {
136
198
  */
137
199
  constructor(opts: __ExceptionOptionType<WmsValidationException, __BaseException>);
138
200
  }
201
+ /**
202
+ * @public
203
+ * @enum
204
+ */
205
+ export declare const PbxColleaguesDeleteField: {
206
+ readonly APPLICATIONS: "applications";
207
+ readonly CALLS: "calls";
208
+ readonly CALL_GROUP_MEMBER: "callGroupMember";
209
+ readonly CHAT_HISTORY: "chatHistory";
210
+ readonly DEVICES: "devices";
211
+ readonly MISSED_CALL_MANAGER: "missedCallManager";
212
+ readonly PAGING_GROUP_MEMBER: "pagingGroupMember";
213
+ readonly PERSONAL_DATA: "personalData";
214
+ readonly PHONEBOOKS: "phonebooks";
215
+ readonly USER: "user";
216
+ readonly USER_AVATAR: "userAvatar";
217
+ readonly VOICEMAILS: "voicemails";
218
+ readonly VOICEMAIL_GREETINGS: "voicemailGreetings";
219
+ };
220
+ /**
221
+ * @public
222
+ */
223
+ export type PbxColleaguesDeleteField = typeof PbxColleaguesDeleteField[keyof typeof PbxColleaguesDeleteField];
224
+ /**
225
+ * @public
226
+ */
227
+ export interface DeletePbxColleagueInput {
228
+ colleagueId: number;
229
+ data?: (PbxColleaguesDeleteField)[];
230
+ }
231
+ /**
232
+ * @public
233
+ */
234
+ export interface DeletePbxColleagueOutput {
235
+ type?: string;
236
+ result?: string;
237
+ }
139
238
  /**
140
239
  * @public
141
240
  */
142
241
  export interface DeletePbxOAuth2ClientInput {
143
242
  /**
144
- * @public
145
243
  * Client ID.
244
+ * @public
146
245
  */
147
246
  id: string;
148
247
  }
@@ -150,7 +249,7 @@ export interface DeletePbxOAuth2ClientInput {
150
249
  * @public
151
250
  */
152
251
  export interface DeletePbxOAuth2ClientOutput {
153
- type: ResponseType | string;
252
+ type: ResponseType;
154
253
  result: string;
155
254
  }
156
255
  /**
@@ -159,7 +258,7 @@ export interface DeletePbxOAuth2ClientOutput {
159
258
  export declare class WmsNotFoundException extends __BaseException {
160
259
  readonly name: "WmsNotFoundException";
161
260
  readonly $fault: "client";
162
- type: ResponseType | string;
261
+ type: ResponseType;
163
262
  reason: string;
164
263
  /**
165
264
  * @internal
@@ -171,13 +270,13 @@ export declare class WmsNotFoundException extends __BaseException {
171
270
  */
172
271
  export interface GetPbxAclGroupsPermissionsInput {
173
272
  /**
174
- * @public
175
273
  * User group(s) ID for filter result. Example: ['12345'] or ['12345','67890','134711']
274
+ * @public
176
275
  */
177
276
  groups?: (string)[];
178
277
  /**
179
- * @public
180
278
  * ACL permission(s) key for filter result. Example: ['SEE_CALL_RECORDINGS'] or ['CTI_ANALYTICS','SUPERVISION','SEE_ANALYTICS']
279
+ * @public
181
280
  */
182
281
  permissions?: (string)[];
183
282
  }
@@ -185,7 +284,7 @@ export interface GetPbxAclGroupsPermissionsInput {
185
284
  * @public
186
285
  */
187
286
  export interface GetPbxAclGroupsPermissionsOutput {
188
- type: ResponseType | string;
287
+ type: ResponseType;
189
288
  result: (AclGroupPermission)[];
190
289
  }
191
290
  /**
@@ -248,7 +347,7 @@ export interface GetPbxCallGroupsResult {
248
347
  * @public
249
348
  */
250
349
  export interface GetPbxCallGroupsOutput {
251
- type: ResponseType | string;
350
+ type: ResponseType;
252
351
  result: GetPbxCallGroupsResult;
253
352
  }
254
353
  /**
@@ -319,31 +418,16 @@ export interface GetPbxColleaguesInput {
319
418
  login?: (string)[];
320
419
  groupDn?: (string)[];
321
420
  pbxDn?: (string)[];
322
- licenseType?: (PbxLicenseType | string)[];
323
- fields?: (PbxColleaguesQueryField | string)[];
324
- searchFields?: (PbxColleaguesQueryField | string)[];
421
+ licenseType?: (PbxLicenseType)[];
422
+ fields?: (PbxColleaguesQueryField)[];
423
+ searchFields?: (PbxColleaguesQueryField)[];
325
424
  search?: string;
326
- sort?: (PbxColleaguesQueryField | string)[];
425
+ sort?: (PbxColleaguesQueryField)[];
327
426
  start?: number;
328
427
  count?: number;
329
- dir?: GetPbxColleaguesDir | string;
330
- searchStrategy?: PbxColleaguesSearchStrategy | string;
428
+ dir?: GetPbxColleaguesDir;
429
+ searchStrategy?: PbxColleaguesSearchStrategy;
331
430
  }
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
431
  /**
348
432
  * @public
349
433
  */
@@ -358,7 +442,7 @@ export interface PbxColleague {
358
442
  email?: string;
359
443
  pbxDn: string;
360
444
  pbx: string;
361
- role: PbxColleagueRole | string;
445
+ role: PbxColleagueRole;
362
446
  groupName: string;
363
447
  groupDn: string;
364
448
  language: string;
@@ -367,7 +451,7 @@ export interface PbxColleague {
367
451
  department?: string;
368
452
  picture: string;
369
453
  sourceId?: string;
370
- licenseType: PbxLicenseType | string;
454
+ licenseType: PbxLicenseType;
371
455
  jid: string;
372
456
  }
373
457
  /**
@@ -381,7 +465,7 @@ export interface GetPbxColleaguesResult {
381
465
  * @public
382
466
  */
383
467
  export interface GetPbxColleaguesOutput {
384
- type: ResponseType | string;
468
+ type: ResponseType;
385
469
  result: GetPbxColleaguesResult;
386
470
  }
387
471
  /**
@@ -404,7 +488,7 @@ export interface GetPbxOAuth2ClientsResult {
404
488
  * @public
405
489
  */
406
490
  export interface GetPbxOAuth2ClientsOutput {
407
- type: ResponseType | string;
491
+ type: ResponseType;
408
492
  result: GetPbxOAuth2ClientsResult;
409
493
  }
410
494
  /**
@@ -412,18 +496,18 @@ export interface GetPbxOAuth2ClientsOutput {
412
496
  */
413
497
  export interface UpdatePbxOAuth2ClientInput {
414
498
  /**
415
- * @public
416
499
  * Client ID.
500
+ * @public
417
501
  */
418
502
  id: string;
419
503
  /**
420
- * @public
421
504
  * A name of OAuth2 client.
505
+ * @public
422
506
  */
423
507
  name: string;
424
508
  /**
425
- * @public
426
509
  * Array of redirect URLs, allowed for this client.
510
+ * @public
427
511
  */
428
512
  redirectUri: (string)[];
429
513
  }
@@ -431,6 +515,6 @@ export interface UpdatePbxOAuth2ClientInput {
431
515
  * @public
432
516
  */
433
517
  export interface UpdatePbxOAuth2ClientOutput {
434
- type: ResponseType | string;
518
+ type: ResponseType;
435
519
  result: PbxOAuth2Client;
436
520
  }
@@ -1,4 +1,6 @@
1
+ import { CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput } from "../commands/CreatePbxColleagueCommand";
1
2
  import { CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput } from "../commands/CreatePbxOAuth2ClientCommand";
3
+ import { DeletePbxColleagueCommandInput, DeletePbxColleagueCommandOutput } from "../commands/DeletePbxColleagueCommand";
2
4
  import { DeletePbxOAuth2ClientCommandInput, DeletePbxOAuth2ClientCommandOutput } from "../commands/DeletePbxOAuth2ClientCommand";
3
5
  import { GetPbxAclGroupsPermissionsCommandInput, GetPbxAclGroupsPermissionsCommandOutput } from "../commands/GetPbxAclGroupsPermissionsCommand";
4
6
  import { GetPbxCallGroupsCommandInput, GetPbxCallGroupsCommandOutput } from "../commands/GetPbxCallGroupsCommand";
@@ -7,10 +9,18 @@ import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } fro
7
9
  import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "../commands/UpdatePbxOAuth2ClientCommand";
8
10
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
9
11
  import { SerdeContext as __SerdeContext } from "@smithy/types";
12
+ /**
13
+ * serializeAws_restJson1CreatePbxColleagueCommand
14
+ */
15
+ export declare const se_CreatePbxColleagueCommand: (input: CreatePbxColleagueCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
10
16
  /**
11
17
  * serializeAws_restJson1CreatePbxOAuth2ClientCommand
12
18
  */
13
19
  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>;
14
24
  /**
15
25
  * serializeAws_restJson1DeletePbxOAuth2ClientCommand
16
26
  */
@@ -35,10 +45,18 @@ export declare const se_GetPbxOAuth2ClientsCommand: (input: GetPbxOAuth2ClientsC
35
45
  * serializeAws_restJson1UpdatePbxOAuth2ClientCommand
36
46
  */
37
47
  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>;
38
52
  /**
39
53
  * deserializeAws_restJson1CreatePbxOAuth2ClientCommand
40
54
  */
41
55
  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>;
42
60
  /**
43
61
  * deserializeAws_restJson1DeletePbxOAuth2ClientCommand
44
62
  */
@@ -7,11 +7,9 @@ export declare const getRuntimeConfig: (config: WmsApiClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
+ defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
10
11
  maxAttempts: number | import("@smithy/types").Provider<number>;
11
- requestHandler: ((import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> | Record<string, unknown> | import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/fetch-http-handler").FetchHttpHandlerOptions) & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
12
- updateHttpClientConfig(key: never, value: never): void;
13
- httpHandlerConfigs(): {};
14
- }) | RequestHandler;
12
+ requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
15
13
  retryMode: string | import("@smithy/types").Provider<string>;
16
14
  sha256: import("@smithy/types").HashConstructor;
17
15
  streamCollector: import("@smithy/types").StreamCollector;
@@ -27,4 +25,5 @@ export declare const getRuntimeConfig: (config: WmsApiClientConfig) => {
27
25
  disableHostPrefix: boolean;
28
26
  logger: import("@smithy/types").Logger;
29
27
  extensions: import("./runtimeExtensions").RuntimeExtension[];
28
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
30
29
  };
@@ -7,11 +7,9 @@ export declare const getRuntimeConfig: (config: WmsApiClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
+ defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
10
11
  maxAttempts: number | import("@smithy/types").Provider<number>;
11
- requestHandler: ((import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> | Record<string, unknown> | import("@smithy/node-http-handler").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions) & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
12
- updateHttpClientConfig(key: never, value: never): void;
13
- httpHandlerConfigs(): {};
14
- }) | RequestHandler;
12
+ requestHandler: RequestHandler | import("@smithy/protocol-http").HttpHandler<any>;
15
13
  retryMode: string | import("@smithy/types").Provider<string>;
16
14
  sha256: import("@smithy/types").HashConstructor;
17
15
  streamCollector: import("@smithy/types").StreamCollector;
@@ -27,4 +25,5 @@ export declare const getRuntimeConfig: (config: WmsApiClientConfig) => {
27
25
  disableHostPrefix: boolean;
28
26
  logger: import("@smithy/types").Logger;
29
27
  extensions: import("./runtimeExtensions").RuntimeExtension[];
28
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
30
29
  };
@@ -8,10 +8,7 @@ export declare const getRuntimeConfig: (config: WmsApiClientConfig) => {
8
8
  domain: string;
9
9
  port?: number | undefined;
10
10
  token: import("@wildix/smithy-utils").TokenProvider;
11
- requestHandler: ((import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> | Record<string, unknown> | import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions) & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
12
- updateHttpClientConfig(key: never, value: never): void;
13
- httpHandlerConfigs(): {};
14
- }) | import("@smithy/fetch-http-handler").FetchHttpHandler;
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;
15
12
  apiVersion: string;
16
13
  urlParser: import("@smithy/types").UrlParser;
17
14
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
@@ -21,9 +18,11 @@ export declare const getRuntimeConfig: (config: WmsApiClientConfig) => {
21
18
  utf8Decoder: import("@smithy/types").Decoder;
22
19
  utf8Encoder: (input: string | Uint8Array) => string;
23
20
  disableHostPrefix: boolean;
21
+ defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
24
22
  maxAttempts: number | import("@smithy/types").Provider<number>;
25
23
  retryMode: string | import("@smithy/types").Provider<string>;
26
24
  logger: import("@smithy/types").Logger;
27
25
  extensions: import("./runtimeExtensions").RuntimeExtension[];
28
26
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
27
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
29
28
  };
package/package.json CHANGED
@@ -1,15 +1,14 @@
1
1
  {
2
2
  "name": "@wildix/wms-api-client",
3
3
  "description": "@wildix/wms-api-client client",
4
- "version": "1.1.2",
4
+ "version": "1.1.4",
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",
8
- "build:docs": "typedoc",
9
8
  "build:es": "tsc -p tsconfig.es.json",
10
9
  "build:types": "tsc -p tsconfig.types.json",
11
10
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
11
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
13
12
  "prepack": "yarn run clean && yarn run build"
14
13
  },
15
14
  "main": "./dist-cjs/index.js",
@@ -17,45 +16,47 @@
17
16
  "module": "./dist-es/index.js",
18
17
  "sideEffects": false,
19
18
  "dependencies": {
20
- "tslib": "^2.5.0",
19
+ "tslib": "^2.6.2",
21
20
  "@aws-crypto/sha256-browser": "3.0.0",
22
21
  "@aws-crypto/sha256-js": "3.0.0",
22
+ "@aws-sdk/middleware-user-agent": "3.587.0",
23
23
  "@aws-sdk/types": "latest",
24
- "@smithy/config-resolver": "^2.0.11",
25
- "@smithy/fetch-http-handler": "^2.2.1",
26
- "@smithy/hash-node": "^2.0.10",
27
- "@smithy/invalid-dependency": "^2.0.10",
28
- "@smithy/middleware-content-length": "^2.0.12",
29
- "@smithy/middleware-retry": "^2.0.13",
30
- "@smithy/middleware-serde": "^2.0.10",
31
- "@smithy/middleware-stack": "^2.0.4",
32
- "@smithy/node-config-provider": "^2.0.13",
33
- "@smithy/node-http-handler": "^2.1.6",
34
- "@smithy/protocol-http": "^3.0.6",
35
- "@smithy/smithy-client": "^2.1.9",
36
- "@smithy/types": "^2.3.4",
37
- "@smithy/url-parser": "^2.0.10",
38
- "@smithy/util-base64": "^2.0.0",
39
- "@smithy/util-body-length-browser": "^2.0.0",
40
- "@smithy/util-body-length-node": "^2.1.0",
41
- "@smithy/util-defaults-mode-browser": "^2.0.13",
42
- "@smithy/util-defaults-mode-node": "^2.0.15",
43
- "@smithy/util-retry": "^2.0.3",
44
- "@smithy/util-utf8": "^2.0.0",
24
+ "@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",
28
+ "@smithy/fetch-http-handler": "^3.0.1",
29
+ "@smithy/hash-node": "^3.0.0",
30
+ "@smithy/invalid-dependency": "^3.0.0",
31
+ "@smithy/middleware-content-length": "^3.0.0",
32
+ "@smithy/middleware-retry": "^3.0.1",
33
+ "@smithy/middleware-serde": "^3.0.0",
34
+ "@smithy/middleware-stack": "^3.0.0",
35
+ "@smithy/node-config-provider": "^3.0.0",
36
+ "@smithy/node-http-handler": "^3.0.0",
37
+ "@smithy/protocol-http": "^4.0.0",
38
+ "@smithy/smithy-client": "^3.0.1",
39
+ "@smithy/types": "^3.0.0",
40
+ "@smithy/url-parser": "^3.0.0",
41
+ "@smithy/util-base64": "^3.0.0",
42
+ "@smithy/util-body-length-browser": "^3.0.0",
43
+ "@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",
46
+ "@smithy/util-retry": "^3.0.0",
47
+ "@smithy/util-utf8": "^3.0.0",
45
48
  "@wildix/smithy-utils": "^1.0.2"
46
49
  },
47
50
  "devDependencies": {
48
- "@tsconfig/node14": "1.0.3",
51
+ "@tsconfig/node16": "16.1.3",
49
52
  "concurrently": "7.0.0",
50
53
  "downlevel-dts": "0.10.1",
51
54
  "rimraf": "^3.0.0",
52
- "typedoc": "0.23.23",
53
55
  "typescript": "~4.9.5",
54
- "@smithy/service-client-documentation-generator": "^2.0.0",
55
- "@types/node": "^14.14.31"
56
+ "@types/node": "^16.18.96"
56
57
  },
57
58
  "engines": {
58
- "node": ">=14.0.0"
59
+ "node": ">=16.0.0"
59
60
  },
60
61
  "typesVersions": {
61
62
  "<4.0": {