@wildix/xbees-users-client 1.0.23 → 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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { BatchGetUsersCommandInput, BatchGetUsersCommandOutput } from "../commands/BatchGetUsersCommand";
|
|
1
2
|
import { BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput } from "../commands/BatchGetUsersPbxLinkDataCommand";
|
|
2
|
-
import { BatchGetUsersStreamLinkDataCommandInput, BatchGetUsersStreamLinkDataCommandOutput } from "../commands/BatchGetUsersStreamLinkDataCommand";
|
|
3
3
|
import { ChangeUserEmailCommandInput, ChangeUserEmailCommandOutput } from "../commands/ChangeUserEmailCommand";
|
|
4
4
|
import { CreateBotApiKeyCommandInput, CreateBotApiKeyCommandOutput } from "../commands/CreateBotApiKeyCommand";
|
|
5
5
|
import { CreateBotCommandInput, CreateBotCommandOutput } from "../commands/CreateBotCommand";
|
|
@@ -7,9 +7,13 @@ import { DeleteBotApiKeyCommandInput, DeleteBotApiKeyCommandOutput } from "../co
|
|
|
7
7
|
import { DeleteBotCommandInput, DeleteBotCommandOutput } from "../commands/DeleteBotCommand";
|
|
8
8
|
import { GetBotCallbackCommandInput, GetBotCallbackCommandOutput } from "../commands/GetBotCallbackCommand";
|
|
9
9
|
import { GetBotCommandInput, GetBotCommandOutput } from "../commands/GetBotCommand";
|
|
10
|
+
import { GetUserCommandInput, GetUserCommandOutput } from "../commands/GetUserCommand";
|
|
11
|
+
import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "../commands/GetUserPbxLinkDataCommand";
|
|
10
12
|
import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "../commands/GetUserPbxLinkSuggestionCommand";
|
|
11
13
|
import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "../commands/ListBotApiKeysCommand";
|
|
12
14
|
import { ListBotsCommandInput, ListBotsCommandOutput } from "../commands/ListBotsCommand";
|
|
15
|
+
import { QueryUserCommandInput, QueryUserCommandOutput } from "../commands/QueryUserCommand";
|
|
16
|
+
import { QueryUsersCommandInput, QueryUsersCommandOutput } from "../commands/QueryUsersCommand";
|
|
13
17
|
import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "../commands/UpdateBotCallbackCommand";
|
|
14
18
|
import { UpdateBotCommandInput, UpdateBotCommandOutput } from "../commands/UpdateBotCommand";
|
|
15
19
|
import { UploadPictureCommandInput, UploadPictureCommandOutput } from "../commands/UploadPictureCommand";
|
|
@@ -17,13 +21,13 @@ import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from
|
|
|
17
21
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
18
22
|
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
19
23
|
/**
|
|
20
|
-
*
|
|
24
|
+
* serializeAws_restJson1BatchGetUsersCommand
|
|
21
25
|
*/
|
|
22
|
-
export declare const
|
|
26
|
+
export declare const se_BatchGetUsersCommand: (input: BatchGetUsersCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
23
27
|
/**
|
|
24
|
-
*
|
|
28
|
+
* serializeAws_restJson1BatchGetUsersPbxLinkDataCommand
|
|
25
29
|
*/
|
|
26
|
-
export declare const
|
|
30
|
+
export declare const se_BatchGetUsersPbxLinkDataCommand: (input: BatchGetUsersPbxLinkDataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
27
31
|
/**
|
|
28
32
|
* serializeAws_restJson1ChangeUserEmailCommand
|
|
29
33
|
*/
|
|
@@ -52,6 +56,14 @@ export declare const se_GetBotCommand: (input: GetBotCommandInput, context: __Se
|
|
|
52
56
|
* serializeAws_restJson1GetBotCallbackCommand
|
|
53
57
|
*/
|
|
54
58
|
export declare const se_GetBotCallbackCommand: (input: GetBotCallbackCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
59
|
+
/**
|
|
60
|
+
* serializeAws_restJson1GetUserCommand
|
|
61
|
+
*/
|
|
62
|
+
export declare const se_GetUserCommand: (input: GetUserCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
63
|
+
/**
|
|
64
|
+
* serializeAws_restJson1GetUserPbxLinkDataCommand
|
|
65
|
+
*/
|
|
66
|
+
export declare const se_GetUserPbxLinkDataCommand: (input: GetUserPbxLinkDataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
55
67
|
/**
|
|
56
68
|
* serializeAws_restJson1GetUserPbxLinkSuggestionCommand
|
|
57
69
|
*/
|
|
@@ -64,6 +76,14 @@ export declare const se_ListBotApiKeysCommand: (input: ListBotApiKeysCommandInpu
|
|
|
64
76
|
* serializeAws_restJson1ListBotsCommand
|
|
65
77
|
*/
|
|
66
78
|
export declare const se_ListBotsCommand: (input: ListBotsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
79
|
+
/**
|
|
80
|
+
* serializeAws_restJson1QueryUserCommand
|
|
81
|
+
*/
|
|
82
|
+
export declare const se_QueryUserCommand: (input: QueryUserCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
83
|
+
/**
|
|
84
|
+
* serializeAws_restJson1QueryUsersCommand
|
|
85
|
+
*/
|
|
86
|
+
export declare const se_QueryUsersCommand: (input: QueryUsersCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
67
87
|
/**
|
|
68
88
|
* serializeAws_restJson1UpdateBotCommand
|
|
69
89
|
*/
|
|
@@ -81,13 +101,13 @@ export declare const se_UploadPictureCommand: (input: UploadPictureCommandInput,
|
|
|
81
101
|
*/
|
|
82
102
|
export declare const se_VerifyBotSecretKeyCommand: (input: VerifyBotSecretKeyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
83
103
|
/**
|
|
84
|
-
*
|
|
104
|
+
* deserializeAws_restJson1BatchGetUsersCommand
|
|
85
105
|
*/
|
|
86
|
-
export declare const
|
|
106
|
+
export declare const de_BatchGetUsersCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetUsersCommandOutput>;
|
|
87
107
|
/**
|
|
88
|
-
*
|
|
108
|
+
* deserializeAws_restJson1BatchGetUsersPbxLinkDataCommand
|
|
89
109
|
*/
|
|
90
|
-
export declare const
|
|
110
|
+
export declare const de_BatchGetUsersPbxLinkDataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetUsersPbxLinkDataCommandOutput>;
|
|
91
111
|
/**
|
|
92
112
|
* deserializeAws_restJson1ChangeUserEmailCommand
|
|
93
113
|
*/
|
|
@@ -116,6 +136,14 @@ export declare const de_GetBotCommand: (output: __HttpResponse, context: __Serde
|
|
|
116
136
|
* deserializeAws_restJson1GetBotCallbackCommand
|
|
117
137
|
*/
|
|
118
138
|
export declare const de_GetBotCallbackCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetBotCallbackCommandOutput>;
|
|
139
|
+
/**
|
|
140
|
+
* deserializeAws_restJson1GetUserCommand
|
|
141
|
+
*/
|
|
142
|
+
export declare const de_GetUserCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetUserCommandOutput>;
|
|
143
|
+
/**
|
|
144
|
+
* deserializeAws_restJson1GetUserPbxLinkDataCommand
|
|
145
|
+
*/
|
|
146
|
+
export declare const de_GetUserPbxLinkDataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetUserPbxLinkDataCommandOutput>;
|
|
119
147
|
/**
|
|
120
148
|
* deserializeAws_restJson1GetUserPbxLinkSuggestionCommand
|
|
121
149
|
*/
|
|
@@ -128,6 +156,14 @@ export declare const de_ListBotApiKeysCommand: (output: __HttpResponse, context:
|
|
|
128
156
|
* deserializeAws_restJson1ListBotsCommand
|
|
129
157
|
*/
|
|
130
158
|
export declare const de_ListBotsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListBotsCommandOutput>;
|
|
159
|
+
/**
|
|
160
|
+
* deserializeAws_restJson1QueryUserCommand
|
|
161
|
+
*/
|
|
162
|
+
export declare const de_QueryUserCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<QueryUserCommandOutput>;
|
|
163
|
+
/**
|
|
164
|
+
* deserializeAws_restJson1QueryUsersCommand
|
|
165
|
+
*/
|
|
166
|
+
export declare const de_QueryUsersCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<QueryUsersCommandOutput>;
|
|
131
167
|
/**
|
|
132
168
|
* deserializeAws_restJson1UpdateBotCommand
|
|
133
169
|
*/
|
|
@@ -16,6 +16,7 @@ export declare const getRuntimeConfig: (config: UsersClientConfig) => {
|
|
|
16
16
|
env: "stage" | "stable" | "prod";
|
|
17
17
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
18
18
|
apiVersion: string;
|
|
19
|
+
cacheMiddleware?: boolean | undefined;
|
|
19
20
|
urlParser: import("@smithy/types").UrlParser;
|
|
20
21
|
base64Decoder: import("@smithy/types").Decoder;
|
|
21
22
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -16,6 +16,7 @@ export declare const getRuntimeConfig: (config: UsersClientConfig) => {
|
|
|
16
16
|
env: "stage" | "stable" | "prod";
|
|
17
17
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
18
18
|
apiVersion: string;
|
|
19
|
+
cacheMiddleware?: boolean | undefined;
|
|
19
20
|
urlParser: import("@smithy/types").UrlParser;
|
|
20
21
|
base64Decoder: import("@smithy/types").Decoder;
|
|
21
22
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -9,6 +9,7 @@ export declare const getRuntimeConfig: (config: UsersClientConfig) => {
|
|
|
9
9
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
10
10
|
requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
11
11
|
apiVersion: string;
|
|
12
|
+
cacheMiddleware?: boolean | undefined;
|
|
12
13
|
urlParser: import("@smithy/types").UrlParser;
|
|
13
14
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
14
15
|
streamCollector: import("@smithy/types").StreamCollector;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-users-client",
|
|
3
3
|
"description": "@wildix/xbees-users-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.24",
|
|
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",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { de_BatchGetUsersStreamLinkDataCommand, se_BatchGetUsersStreamLinkDataCommand, } 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 BatchGetUsersStreamLinkDataCommand extends $Command.classBuilder()
|
|
6
|
-
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
-
})
|
|
11
|
-
.s("Users", "BatchGetUsersStreamLinkData", {})
|
|
12
|
-
.n("UsersClient", "BatchGetUsersStreamLinkDataCommand")
|
|
13
|
-
.f(void 0, void 0)
|
|
14
|
-
.ser(se_BatchGetUsersStreamLinkDataCommand)
|
|
15
|
-
.de(de_BatchGetUsersStreamLinkDataCommand)
|
|
16
|
-
.build() {
|
|
17
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
-
import { BatchGetUsersStreamLinkDataInput, BatchGetUsersStreamLinkDataOutput } 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 BatchGetUsersStreamLinkDataCommand}.
|
|
14
|
-
*/
|
|
15
|
-
export interface BatchGetUsersStreamLinkDataCommandInput extends BatchGetUsersStreamLinkDataInput {
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*
|
|
20
|
-
* The output of {@link BatchGetUsersStreamLinkDataCommand}.
|
|
21
|
-
*/
|
|
22
|
-
export interface BatchGetUsersStreamLinkDataCommandOutput extends BatchGetUsersStreamLinkDataOutput, __MetadataBearer {
|
|
23
|
-
}
|
|
24
|
-
declare const BatchGetUsersStreamLinkDataCommand_base: {
|
|
25
|
-
new (input: BatchGetUsersStreamLinkDataCommandInput): import("@smithy/smithy-client").CommandImpl<BatchGetUsersStreamLinkDataCommandInput, BatchGetUsersStreamLinkDataCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (__0_0: BatchGetUsersStreamLinkDataCommandInput): import("@smithy/smithy-client").CommandImpl<BatchGetUsersStreamLinkDataCommandInput, BatchGetUsersStreamLinkDataCommandOutput, 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, BatchGetUsersStreamLinkDataCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
36
|
-
* // const { UsersClient, BatchGetUsersStreamLinkDataCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
37
|
-
* const client = new UsersClient(config);
|
|
38
|
-
* const input = { // BatchGetUsersStreamLinkDataInput
|
|
39
|
-
* id: [ // BatchUsersIdList // required
|
|
40
|
-
* "STRING_VALUE",
|
|
41
|
-
* ],
|
|
42
|
-
* };
|
|
43
|
-
* const command = new BatchGetUsersStreamLinkDataCommand(input);
|
|
44
|
-
* const response = await client.send(command);
|
|
45
|
-
* // { // BatchGetUsersStreamLinkDataOutput
|
|
46
|
-
* // users: { // BatchGetUsersStreamLinkDataResponseMap // required
|
|
47
|
-
* // "<keys>": { // StreamLinkData
|
|
48
|
-
* // id: "STRING_VALUE", // required
|
|
49
|
-
* // email: "STRING_VALUE",
|
|
50
|
-
* // phone: "STRING_VALUE",
|
|
51
|
-
* // name: "STRING_VALUE",
|
|
52
|
-
* // picture: "STRING_VALUE",
|
|
53
|
-
* // company: "STRING_VALUE",
|
|
54
|
-
* // pbxExtension: "STRING_VALUE",
|
|
55
|
-
* // pbxSerial: "STRING_VALUE",
|
|
56
|
-
* // pbxDomain: "STRING_VALUE",
|
|
57
|
-
* // pbxPort: "STRING_VALUE",
|
|
58
|
-
* // pbxUserId: "STRING_VALUE",
|
|
59
|
-
* // pbxUpdatedAt: "STRING_VALUE",
|
|
60
|
-
* // locale: "STRING_VALUE",
|
|
61
|
-
* // timeZone: "STRING_VALUE",
|
|
62
|
-
* // },
|
|
63
|
-
* // },
|
|
64
|
-
* // };
|
|
65
|
-
*
|
|
66
|
-
* ```
|
|
67
|
-
*
|
|
68
|
-
* @param BatchGetUsersStreamLinkDataCommandInput - {@link BatchGetUsersStreamLinkDataCommandInput}
|
|
69
|
-
* @returns {@link BatchGetUsersStreamLinkDataCommandOutput}
|
|
70
|
-
* @see {@link BatchGetUsersStreamLinkDataCommandInput} for command's `input` shape.
|
|
71
|
-
* @see {@link BatchGetUsersStreamLinkDataCommandOutput} for command's `response` shape.
|
|
72
|
-
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
73
|
-
*
|
|
74
|
-
* @throws {@link ForbiddenException} (client fault)
|
|
75
|
-
*
|
|
76
|
-
* @throws {@link ValidationException} (client fault)
|
|
77
|
-
*
|
|
78
|
-
* @throws {@link UsersServiceException}
|
|
79
|
-
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
80
|
-
*
|
|
81
|
-
*/
|
|
82
|
-
export declare class BatchGetUsersStreamLinkDataCommand extends BatchGetUsersStreamLinkDataCommand_base {
|
|
83
|
-
}
|