@wildix/xbees-users-client 1.0.22 → 1.0.24
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/Users.js +10 -2
- package/dist-cjs/commands/{BatchGetUsersStreamLinkDataCommand.js → BatchGetUsersCommand.js} +7 -7
- package/dist-cjs/commands/GetUserCommand.js +21 -0
- package/dist-cjs/commands/GetUserPbxLinkDataCommand.js +21 -0
- package/dist-cjs/commands/QueryUserCommand.js +21 -0
- package/dist-cjs/commands/QueryUsersCommand.js +21 -0
- package/dist-cjs/commands/index.js +5 -1
- package/dist-cjs/models/models_0.js +33 -1
- package/dist-cjs/protocols/Aws_restJson1.js +149 -11
- package/dist-es/Users.js +10 -2
- package/dist-es/commands/BatchGetUsersCommand.js +17 -0
- package/dist-es/commands/GetUserCommand.js +17 -0
- package/dist-es/commands/GetUserPbxLinkDataCommand.js +17 -0
- package/dist-es/commands/QueryUserCommand.js +17 -0
- package/dist-es/commands/QueryUsersCommand.js +17 -0
- package/dist-es/commands/index.js +5 -1
- package/dist-es/models/models_0.js +31 -0
- package/dist-es/protocols/Aws_restJson1.js +137 -7
- package/dist-types/Users.d.ts +35 -7
- package/dist-types/UsersClient.d.ts +7 -3
- package/dist-types/commands/BatchGetUsersCommand.d.ts +85 -0
- package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +53 -4
- package/dist-types/commands/GetUserCommand.d.ts +83 -0
- package/dist-types/commands/GetUserPbxLinkDataCommand.d.ts +120 -0
- package/dist-types/commands/QueryUserCommand.d.ts +92 -0
- package/dist-types/commands/QueryUsersCommand.d.ts +92 -0
- package/dist-types/commands/index.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +462 -60
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -9
- 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
- package/dist-es/commands/BatchGetUsersStreamLinkDataCommand.js +0 -17
- package/dist-types/commands/BatchGetUsersStreamLinkDataCommand.d.ts +0 -83
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { GetUserPbxLinkDataInput, GetUserPbxLinkDataOutput } 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 GetUserPbxLinkDataCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetUserPbxLinkDataCommandInput extends GetUserPbxLinkDataInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetUserPbxLinkDataCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetUserPbxLinkDataCommandOutput extends GetUserPbxLinkDataOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetUserPbxLinkDataCommand_base: {
|
|
25
|
+
new (input: GetUserPbxLinkDataCommandInput): import("@smithy/smithy-client").CommandImpl<GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetUserPbxLinkDataCommandInput): import("@smithy/smithy-client").CommandImpl<GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput, UsersClientResolvedConfig, 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 { UsersClient, GetUserPbxLinkDataCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
36
|
+
* // const { UsersClient, GetUserPbxLinkDataCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
37
|
+
* const client = new UsersClient(config);
|
|
38
|
+
* const input = { // GetUserPbxLinkDataInput
|
|
39
|
+
* id: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new GetUserPbxLinkDataCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // GetUserPbxLinkDataOutput
|
|
44
|
+
* // user: { // UserPbxLinkData
|
|
45
|
+
* // id: "STRING_VALUE", // required
|
|
46
|
+
* // company: "STRING_VALUE", // required
|
|
47
|
+
* // companyName: "STRING_VALUE",
|
|
48
|
+
* // domain: "STRING_VALUE", // required
|
|
49
|
+
* // email: "STRING_VALUE",
|
|
50
|
+
* // info: { // UserPersonalInfo
|
|
51
|
+
* // dn: "STRING_VALUE", // required
|
|
52
|
+
* // id: "STRING_VALUE", // required
|
|
53
|
+
* // name: "STRING_VALUE", // required
|
|
54
|
+
* // extension: "STRING_VALUE", // required
|
|
55
|
+
* // officePhone: "STRING_VALUE",
|
|
56
|
+
* // mobilePhone: "STRING_VALUE",
|
|
57
|
+
* // faxNumber: "STRING_VALUE",
|
|
58
|
+
* // email: "STRING_VALUE",
|
|
59
|
+
* // role: "STRING_VALUE", // required
|
|
60
|
+
* // language: "STRING_VALUE", // required
|
|
61
|
+
* // dialplan: "STRING_VALUE", // required
|
|
62
|
+
* // faxDialplan: "STRING_VALUE", // required
|
|
63
|
+
* // departament: "STRING_VALUE",
|
|
64
|
+
* // picture: "STRING_VALUE", // required
|
|
65
|
+
* // groupDn: "STRING_VALUE", // required
|
|
66
|
+
* // groupName: "STRING_VALUE", // required
|
|
67
|
+
* // jid: "STRING_VALUE", // required
|
|
68
|
+
* // licenseType: "basic" || "essential" || "business" || "premium" || "wizyconf", // required
|
|
69
|
+
* // login: "STRING_VALUE",
|
|
70
|
+
* // pbx: "STRING_VALUE",
|
|
71
|
+
* // pbxDn: "STRING_VALUE", // required
|
|
72
|
+
* // sourceId: "STRING_VALUE",
|
|
73
|
+
* // sipPassword: "STRING_VALUE",
|
|
74
|
+
* // },
|
|
75
|
+
* // pbx: { // UserPbxInfo
|
|
76
|
+
* // networkAddresses: [ // UserPbxInfoNetworkAddresses // required
|
|
77
|
+
* // "STRING_VALUE",
|
|
78
|
+
* // ],
|
|
79
|
+
* // ports: [ // UserPbxInfoPorts // required
|
|
80
|
+
* // "STRING_VALUE",
|
|
81
|
+
* // ],
|
|
82
|
+
* // externalLinePrefix: "STRING_VALUE",
|
|
83
|
+
* // version: "STRING_VALUE", // required
|
|
84
|
+
* // serial: "STRING_VALUE", // required
|
|
85
|
+
* // },
|
|
86
|
+
* // picture: "STRING_VALUE", // required
|
|
87
|
+
* // pictureDeleted: true || false,
|
|
88
|
+
* // port: "STRING_VALUE", // required
|
|
89
|
+
* // serial: "STRING_VALUE", // required
|
|
90
|
+
* // services: { // UserPbxServices
|
|
91
|
+
* // xcaracal: true || false,
|
|
92
|
+
* // wizyWebinar: true || false,
|
|
93
|
+
* // },
|
|
94
|
+
* // personalSettings: {},
|
|
95
|
+
* // dialplanSettings: {},
|
|
96
|
+
* // awsRegion: "STRING_VALUE",
|
|
97
|
+
* // updatedAt: "STRING_VALUE",
|
|
98
|
+
* // },
|
|
99
|
+
* // };
|
|
100
|
+
*
|
|
101
|
+
* ```
|
|
102
|
+
*
|
|
103
|
+
* @param GetUserPbxLinkDataCommandInput - {@link GetUserPbxLinkDataCommandInput}
|
|
104
|
+
* @returns {@link GetUserPbxLinkDataCommandOutput}
|
|
105
|
+
* @see {@link GetUserPbxLinkDataCommandInput} for command's `input` shape.
|
|
106
|
+
* @see {@link GetUserPbxLinkDataCommandOutput} for command's `response` shape.
|
|
107
|
+
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link UserNotFoundException} (client fault)
|
|
110
|
+
*
|
|
111
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
112
|
+
*
|
|
113
|
+
* @throws {@link ValidationException} (client fault)
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link UsersServiceException}
|
|
116
|
+
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
117
|
+
*
|
|
118
|
+
*/
|
|
119
|
+
export declare class GetUserPbxLinkDataCommand extends GetUserPbxLinkDataCommand_base {
|
|
120
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { QueryUserInput, QueryUserOutput } 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 QueryUserCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface QueryUserCommandInput extends QueryUserInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link QueryUserCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface QueryUserCommandOutput extends QueryUserOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const QueryUserCommand_base: {
|
|
25
|
+
new (input: QueryUserCommandInput): import("@smithy/smithy-client").CommandImpl<QueryUserCommandInput, QueryUserCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: QueryUserCommandInput): import("@smithy/smithy-client").CommandImpl<QueryUserCommandInput, QueryUserCommandOutput, UsersClientResolvedConfig, 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 { UsersClient, QueryUserCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
36
|
+
* // const { UsersClient, QueryUserCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
37
|
+
* const client = new UsersClient(config);
|
|
38
|
+
* const input = { // QueryUserInput
|
|
39
|
+
* query: { // UserQuery Union: only one key present
|
|
40
|
+
* id: "STRING_VALUE",
|
|
41
|
+
* email: "STRING_VALUE",
|
|
42
|
+
* phone: "STRING_VALUE",
|
|
43
|
+
* },
|
|
44
|
+
* predicate: { // UserQueryPredicate
|
|
45
|
+
* license: "basic" || "essential" || "business" || "premium" || "wizyconf",
|
|
46
|
+
* },
|
|
47
|
+
* };
|
|
48
|
+
* const command = new QueryUserCommand(input);
|
|
49
|
+
* const response = await client.send(command);
|
|
50
|
+
* // { // QueryUserOutput
|
|
51
|
+
* // user: { // User
|
|
52
|
+
* // id: "STRING_VALUE", // required
|
|
53
|
+
* // name: "STRING_VALUE",
|
|
54
|
+
* // email: "STRING_VALUE",
|
|
55
|
+
* // phone: "STRING_VALUE",
|
|
56
|
+
* // picture: "STRING_VALUE",
|
|
57
|
+
* // locale: "STRING_VALUE",
|
|
58
|
+
* // timeZone: "STRING_VALUE",
|
|
59
|
+
* // company: "STRING_VALUE",
|
|
60
|
+
* // bot: true || false,
|
|
61
|
+
* // pbxDomain: "STRING_VALUE",
|
|
62
|
+
* // pbxPort: "STRING_VALUE",
|
|
63
|
+
* // pbxExtension: "STRING_VALUE",
|
|
64
|
+
* // pbxSerial: "STRING_VALUE",
|
|
65
|
+
* // pbxUserId: "STRING_VALUE",
|
|
66
|
+
* // createdAt: "STRING_VALUE",
|
|
67
|
+
* // updatedAt: "STRING_VALUE",
|
|
68
|
+
* // },
|
|
69
|
+
* // };
|
|
70
|
+
*
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* @param QueryUserCommandInput - {@link QueryUserCommandInput}
|
|
74
|
+
* @returns {@link QueryUserCommandOutput}
|
|
75
|
+
* @see {@link QueryUserCommandInput} for command's `input` shape.
|
|
76
|
+
* @see {@link QueryUserCommandOutput} for command's `response` shape.
|
|
77
|
+
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link UserNotFoundException} (client fault)
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link UserQueryPredicateNotMetException} (client fault)
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ValidationException} (client fault)
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link UsersServiceException}
|
|
88
|
+
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
89
|
+
*
|
|
90
|
+
*/
|
|
91
|
+
export declare class QueryUserCommand extends QueryUserCommand_base {
|
|
92
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { QueryUsersInput, QueryUsersOutput } 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 QueryUsersCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface QueryUsersCommandInput extends QueryUsersInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link QueryUsersCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface QueryUsersCommandOutput extends QueryUsersOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const QueryUsersCommand_base: {
|
|
25
|
+
new (input: QueryUsersCommandInput): import("@smithy/smithy-client").CommandImpl<QueryUsersCommandInput, QueryUsersCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: QueryUsersCommandInput): import("@smithy/smithy-client").CommandImpl<QueryUsersCommandInput, QueryUsersCommandOutput, UsersClientResolvedConfig, 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 { UsersClient, QueryUsersCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
36
|
+
* // const { UsersClient, QueryUsersCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
37
|
+
* const client = new UsersClient(config);
|
|
38
|
+
* const input = { // QueryUsersInput
|
|
39
|
+
* queries: [ // UsersQueryList // required
|
|
40
|
+
* { // UserQuery Union: only one key present
|
|
41
|
+
* id: "STRING_VALUE",
|
|
42
|
+
* email: "STRING_VALUE",
|
|
43
|
+
* phone: "STRING_VALUE",
|
|
44
|
+
* },
|
|
45
|
+
* ],
|
|
46
|
+
* predicate: { // UserQueryPredicate
|
|
47
|
+
* license: "basic" || "essential" || "business" || "premium" || "wizyconf",
|
|
48
|
+
* },
|
|
49
|
+
* };
|
|
50
|
+
* const command = new QueryUsersCommand(input);
|
|
51
|
+
* const response = await client.send(command);
|
|
52
|
+
* // { // QueryUsersOutput
|
|
53
|
+
* // users: [ // UsersList // required
|
|
54
|
+
* // { // User
|
|
55
|
+
* // id: "STRING_VALUE", // required
|
|
56
|
+
* // name: "STRING_VALUE",
|
|
57
|
+
* // email: "STRING_VALUE",
|
|
58
|
+
* // phone: "STRING_VALUE",
|
|
59
|
+
* // picture: "STRING_VALUE",
|
|
60
|
+
* // locale: "STRING_VALUE",
|
|
61
|
+
* // timeZone: "STRING_VALUE",
|
|
62
|
+
* // company: "STRING_VALUE",
|
|
63
|
+
* // bot: true || false,
|
|
64
|
+
* // pbxDomain: "STRING_VALUE",
|
|
65
|
+
* // pbxPort: "STRING_VALUE",
|
|
66
|
+
* // pbxExtension: "STRING_VALUE",
|
|
67
|
+
* // pbxSerial: "STRING_VALUE",
|
|
68
|
+
* // pbxUserId: "STRING_VALUE",
|
|
69
|
+
* // createdAt: "STRING_VALUE",
|
|
70
|
+
* // updatedAt: "STRING_VALUE",
|
|
71
|
+
* // },
|
|
72
|
+
* // ],
|
|
73
|
+
* // };
|
|
74
|
+
*
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* @param QueryUsersCommandInput - {@link QueryUsersCommandInput}
|
|
78
|
+
* @returns {@link QueryUsersCommandOutput}
|
|
79
|
+
* @see {@link QueryUsersCommandInput} for command's `input` shape.
|
|
80
|
+
* @see {@link QueryUsersCommandOutput} for command's `response` shape.
|
|
81
|
+
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ValidationException} (client fault)
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link UsersServiceException}
|
|
88
|
+
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
89
|
+
*
|
|
90
|
+
*/
|
|
91
|
+
export declare class QueryUsersCommand extends QueryUsersCommand_base {
|
|
92
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
export * from "./BatchGetUsersCommand";
|
|
1
2
|
export * from "./BatchGetUsersPbxLinkDataCommand";
|
|
2
|
-
export * from "./BatchGetUsersStreamLinkDataCommand";
|
|
3
3
|
export * from "./ChangeUserEmailCommand";
|
|
4
4
|
export * from "./CreateBotCommand";
|
|
5
5
|
export * from "./CreateBotApiKeyCommand";
|
|
@@ -7,9 +7,13 @@ export * from "./DeleteBotCommand";
|
|
|
7
7
|
export * from "./DeleteBotApiKeyCommand";
|
|
8
8
|
export * from "./GetBotCommand";
|
|
9
9
|
export * from "./GetBotCallbackCommand";
|
|
10
|
+
export * from "./GetUserCommand";
|
|
11
|
+
export * from "./GetUserPbxLinkDataCommand";
|
|
10
12
|
export * from "./GetUserPbxLinkSuggestionCommand";
|
|
11
13
|
export * from "./ListBotApiKeysCommand";
|
|
12
14
|
export * from "./ListBotsCommand";
|
|
15
|
+
export * from "./QueryUserCommand";
|
|
16
|
+
export * from "./QueryUsersCommand";
|
|
13
17
|
export * from "./UpdateBotCommand";
|
|
14
18
|
export * from "./UpdateBotCallbackCommand";
|
|
15
19
|
export * from "./UploadPictureCommand";
|