@wildix/xbees-users-client 1.0.25 → 1.0.26
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 +4 -0
- package/dist-cjs/commands/GetUserSettingsCommand.js +21 -0
- package/dist-cjs/commands/PartialUpdateUserSettingsCommand.js +21 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +66 -1
- package/dist-es/Users.js +4 -0
- package/dist-es/commands/GetUserSettingsCommand.js +17 -0
- package/dist-es/commands/PartialUpdateUserSettingsCommand.js +17 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +60 -0
- package/dist-types/Users.d.ts +14 -0
- package/dist-types/UsersClient.d.ts +4 -2
- package/dist-types/commands/GetUserSettingsCommand.d.ts +69 -0
- package/dist-types/commands/PartialUpdateUserSettingsCommand.d.ts +76 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +82 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/package.json +2 -2
package/dist-cjs/Users.js
CHANGED
|
@@ -16,8 +16,10 @@ const GetUserCommand_1 = require("./commands/GetUserCommand");
|
|
|
16
16
|
const GetUserPbxLinkDataCommand_1 = require("./commands/GetUserPbxLinkDataCommand");
|
|
17
17
|
const GetUserPbxLinkSuggestionCommand_1 = require("./commands/GetUserPbxLinkSuggestionCommand");
|
|
18
18
|
const GetUserPbxLinkSuggestionV1Command_1 = require("./commands/GetUserPbxLinkSuggestionV1Command");
|
|
19
|
+
const GetUserSettingsCommand_1 = require("./commands/GetUserSettingsCommand");
|
|
19
20
|
const ListBotApiKeysCommand_1 = require("./commands/ListBotApiKeysCommand");
|
|
20
21
|
const ListBotsCommand_1 = require("./commands/ListBotsCommand");
|
|
22
|
+
const PartialUpdateUserSettingsCommand_1 = require("./commands/PartialUpdateUserSettingsCommand");
|
|
21
23
|
const QueryUserCommand_1 = require("./commands/QueryUserCommand");
|
|
22
24
|
const QueryUsersCommand_1 = require("./commands/QueryUsersCommand");
|
|
23
25
|
const UpdateBotCallbackCommand_1 = require("./commands/UpdateBotCallbackCommand");
|
|
@@ -42,8 +44,10 @@ const commands = {
|
|
|
42
44
|
GetUserPbxLinkDataCommand: GetUserPbxLinkDataCommand_1.GetUserPbxLinkDataCommand,
|
|
43
45
|
GetUserPbxLinkSuggestionCommand: GetUserPbxLinkSuggestionCommand_1.GetUserPbxLinkSuggestionCommand,
|
|
44
46
|
GetUserPbxLinkSuggestionV1Command: GetUserPbxLinkSuggestionV1Command_1.GetUserPbxLinkSuggestionV1Command,
|
|
47
|
+
GetUserSettingsCommand: GetUserSettingsCommand_1.GetUserSettingsCommand,
|
|
45
48
|
ListBotApiKeysCommand: ListBotApiKeysCommand_1.ListBotApiKeysCommand,
|
|
46
49
|
ListBotsCommand: ListBotsCommand_1.ListBotsCommand,
|
|
50
|
+
PartialUpdateUserSettingsCommand: PartialUpdateUserSettingsCommand_1.PartialUpdateUserSettingsCommand,
|
|
47
51
|
QueryUserCommand: QueryUserCommand_1.QueryUserCommand,
|
|
48
52
|
QueryUsersCommand: QueryUsersCommand_1.QueryUsersCommand,
|
|
49
53
|
UpdateBotCommand: UpdateBotCommand_1.UpdateBotCommand,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetUserSettingsCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class GetUserSettingsCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Users", "GetUserSettings", {})
|
|
15
|
+
.n("UsersClient", "GetUserSettingsCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_GetUserSettingsCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GetUserSettingsCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.GetUserSettingsCommand = GetUserSettingsCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PartialUpdateUserSettingsCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class PartialUpdateUserSettingsCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Users", "PartialUpdateUserSettings", {})
|
|
15
|
+
.n("UsersClient", "PartialUpdateUserSettingsCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_PartialUpdateUserSettingsCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_PartialUpdateUserSettingsCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.PartialUpdateUserSettingsCommand = PartialUpdateUserSettingsCommand;
|
|
@@ -15,8 +15,10 @@ tslib_1.__exportStar(require("./GetUserCommand"), exports);
|
|
|
15
15
|
tslib_1.__exportStar(require("./GetUserPbxLinkDataCommand"), exports);
|
|
16
16
|
tslib_1.__exportStar(require("./GetUserPbxLinkSuggestionCommand"), exports);
|
|
17
17
|
tslib_1.__exportStar(require("./GetUserPbxLinkSuggestionV1Command"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./GetUserSettingsCommand"), exports);
|
|
18
19
|
tslib_1.__exportStar(require("./ListBotApiKeysCommand"), exports);
|
|
19
20
|
tslib_1.__exportStar(require("./ListBotsCommand"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./PartialUpdateUserSettingsCommand"), exports);
|
|
20
22
|
tslib_1.__exportStar(require("./QueryUserCommand"), exports);
|
|
21
23
|
tslib_1.__exportStar(require("./QueryUsersCommand"), exports);
|
|
22
24
|
tslib_1.__exportStar(require("./UpdateBotCommand"), exports);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UploadPictureV1Command = exports.de_UploadPictureCommand = exports.de_UpdateBotCallbackCommand = exports.de_UpdateBotCommand = exports.de_QueryUsersCommand = exports.de_QueryUserCommand = exports.de_PartialUpdateUserSettingsCommand = exports.de_ListBotsCommand = exports.de_ListBotApiKeysCommand = exports.de_GetUserSettingsCommand = exports.de_GetUserPbxLinkSuggestionV1Command = exports.de_GetUserPbxLinkSuggestionCommand = exports.de_GetUserPbxLinkDataCommand = exports.de_GetUserCommand = exports.de_GetBotCallbackCommand = exports.de_GetBotCommand = exports.de_DeleteBotApiKeyCommand = exports.de_DeleteBotCommand = exports.de_CreateBotApiKeyCommand = exports.de_CreateBotCommand = exports.de_ChangeUserEmailCommand = exports.de_BatchGetUsersPbxLinkDataV1Command = exports.de_BatchGetUsersPbxLinkDataCommand = exports.de_BatchGetUsersCommand = exports.se_VerifyBotSecretKeyV1Command = exports.se_VerifyBotSecretKeyCommand = exports.se_UploadPictureV1Command = exports.se_UploadPictureCommand = exports.se_UpdateBotCallbackCommand = exports.se_UpdateBotCommand = exports.se_QueryUsersCommand = exports.se_QueryUserCommand = exports.se_PartialUpdateUserSettingsCommand = exports.se_ListBotsCommand = exports.se_ListBotApiKeysCommand = exports.se_GetUserSettingsCommand = exports.se_GetUserPbxLinkSuggestionV1Command = exports.se_GetUserPbxLinkSuggestionCommand = exports.se_GetUserPbxLinkDataCommand = exports.se_GetUserCommand = exports.se_GetBotCallbackCommand = exports.se_GetBotCommand = exports.se_DeleteBotApiKeyCommand = exports.se_DeleteBotCommand = exports.se_CreateBotApiKeyCommand = exports.se_CreateBotCommand = exports.se_ChangeUserEmailCommand = exports.se_BatchGetUsersPbxLinkDataV1Command = exports.se_BatchGetUsersPbxLinkDataCommand = exports.se_BatchGetUsersCommand = void 0;
|
|
4
|
+
exports.de_VerifyBotSecretKeyV1Command = exports.de_VerifyBotSecretKeyCommand = void 0;
|
|
4
5
|
const UsersServiceException_1 = require("../models/UsersServiceException");
|
|
5
6
|
const models_0_1 = require("../models/models_0");
|
|
6
7
|
const core_1 = require("@smithy/core");
|
|
@@ -233,6 +234,18 @@ const se_GetUserPbxLinkSuggestionV1Command = async (input, context) => {
|
|
|
233
234
|
return b.build();
|
|
234
235
|
};
|
|
235
236
|
exports.se_GetUserPbxLinkSuggestionV1Command = se_GetUserPbxLinkSuggestionV1Command;
|
|
237
|
+
const se_GetUserSettingsCommand = async (input, context) => {
|
|
238
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
239
|
+
const headers = {};
|
|
240
|
+
b.bp("/v2/users/settings/{userId}");
|
|
241
|
+
b.p('userId', () => input.userId, '{userId}', false);
|
|
242
|
+
let body;
|
|
243
|
+
b.m("GET")
|
|
244
|
+
.h(headers)
|
|
245
|
+
.b(body);
|
|
246
|
+
return b.build();
|
|
247
|
+
};
|
|
248
|
+
exports.se_GetUserSettingsCommand = se_GetUserSettingsCommand;
|
|
236
249
|
const se_ListBotApiKeysCommand = async (input, context) => {
|
|
237
250
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
238
251
|
const headers = {};
|
|
@@ -264,6 +277,27 @@ const se_ListBotsCommand = async (input, context) => {
|
|
|
264
277
|
return b.build();
|
|
265
278
|
};
|
|
266
279
|
exports.se_ListBotsCommand = se_ListBotsCommand;
|
|
280
|
+
const se_PartialUpdateUserSettingsCommand = async (input, context) => {
|
|
281
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
282
|
+
const headers = {
|
|
283
|
+
'content-type': 'application/json',
|
|
284
|
+
};
|
|
285
|
+
b.bp("/v2/users/settings");
|
|
286
|
+
const query = (0, smithy_client_1.map)({
|
|
287
|
+
[_t]: [, input[_t]],
|
|
288
|
+
});
|
|
289
|
+
let body;
|
|
290
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
291
|
+
'settings': _ => (0, smithy_client_1._json)(_),
|
|
292
|
+
'userId': [],
|
|
293
|
+
}));
|
|
294
|
+
b.m("PATCH")
|
|
295
|
+
.h(headers)
|
|
296
|
+
.q(query)
|
|
297
|
+
.b(body);
|
|
298
|
+
return b.build();
|
|
299
|
+
};
|
|
300
|
+
exports.se_PartialUpdateUserSettingsCommand = se_PartialUpdateUserSettingsCommand;
|
|
267
301
|
const se_QueryUserCommand = async (input, context) => {
|
|
268
302
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
269
303
|
const headers = {
|
|
@@ -609,6 +643,21 @@ const de_GetUserPbxLinkSuggestionV1Command = async (output, context) => {
|
|
|
609
643
|
return contents;
|
|
610
644
|
};
|
|
611
645
|
exports.de_GetUserPbxLinkSuggestionV1Command = de_GetUserPbxLinkSuggestionV1Command;
|
|
646
|
+
const de_GetUserSettingsCommand = async (output, context) => {
|
|
647
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
648
|
+
return de_CommandError(output, context);
|
|
649
|
+
}
|
|
650
|
+
const contents = (0, smithy_client_1.map)({
|
|
651
|
+
$metadata: deserializeMetadata(output),
|
|
652
|
+
});
|
|
653
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
654
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
655
|
+
'emailNotifications': smithy_client_1._json,
|
|
656
|
+
});
|
|
657
|
+
Object.assign(contents, doc);
|
|
658
|
+
return contents;
|
|
659
|
+
};
|
|
660
|
+
exports.de_GetUserSettingsCommand = de_GetUserSettingsCommand;
|
|
612
661
|
const de_ListBotApiKeysCommand = async (output, context) => {
|
|
613
662
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
614
663
|
return de_CommandError(output, context);
|
|
@@ -639,6 +688,21 @@ const de_ListBotsCommand = async (output, context) => {
|
|
|
639
688
|
return contents;
|
|
640
689
|
};
|
|
641
690
|
exports.de_ListBotsCommand = de_ListBotsCommand;
|
|
691
|
+
const de_PartialUpdateUserSettingsCommand = async (output, context) => {
|
|
692
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
693
|
+
return de_CommandError(output, context);
|
|
694
|
+
}
|
|
695
|
+
const contents = (0, smithy_client_1.map)({
|
|
696
|
+
$metadata: deserializeMetadata(output),
|
|
697
|
+
});
|
|
698
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
699
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
700
|
+
'emailNotifications': smithy_client_1._json,
|
|
701
|
+
});
|
|
702
|
+
Object.assign(contents, doc);
|
|
703
|
+
return contents;
|
|
704
|
+
};
|
|
705
|
+
exports.de_PartialUpdateUserSettingsCommand = de_PartialUpdateUserSettingsCommand;
|
|
642
706
|
const de_QueryUserCommand = async (output, context) => {
|
|
643
707
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
644
708
|
return de_CommandError(output, context);
|
|
@@ -987,6 +1051,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
987
1051
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
988
1052
|
const _c = "company";
|
|
989
1053
|
const _e = "email";
|
|
1054
|
+
const _t = "token";
|
|
990
1055
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
|
|
991
1056
|
if (encoded.length) {
|
|
992
1057
|
return JSON.parse(encoded);
|
package/dist-es/Users.js
CHANGED
|
@@ -13,8 +13,10 @@ import { GetUserCommand, } from "./commands/GetUserCommand";
|
|
|
13
13
|
import { GetUserPbxLinkDataCommand, } from "./commands/GetUserPbxLinkDataCommand";
|
|
14
14
|
import { GetUserPbxLinkSuggestionCommand, } from "./commands/GetUserPbxLinkSuggestionCommand";
|
|
15
15
|
import { GetUserPbxLinkSuggestionV1Command, } from "./commands/GetUserPbxLinkSuggestionV1Command";
|
|
16
|
+
import { GetUserSettingsCommand, } from "./commands/GetUserSettingsCommand";
|
|
16
17
|
import { ListBotApiKeysCommand, } from "./commands/ListBotApiKeysCommand";
|
|
17
18
|
import { ListBotsCommand, } from "./commands/ListBotsCommand";
|
|
19
|
+
import { PartialUpdateUserSettingsCommand, } from "./commands/PartialUpdateUserSettingsCommand";
|
|
18
20
|
import { QueryUserCommand, } from "./commands/QueryUserCommand";
|
|
19
21
|
import { QueryUsersCommand, } from "./commands/QueryUsersCommand";
|
|
20
22
|
import { UpdateBotCallbackCommand, } from "./commands/UpdateBotCallbackCommand";
|
|
@@ -39,8 +41,10 @@ const commands = {
|
|
|
39
41
|
GetUserPbxLinkDataCommand,
|
|
40
42
|
GetUserPbxLinkSuggestionCommand,
|
|
41
43
|
GetUserPbxLinkSuggestionV1Command,
|
|
44
|
+
GetUserSettingsCommand,
|
|
42
45
|
ListBotApiKeysCommand,
|
|
43
46
|
ListBotsCommand,
|
|
47
|
+
PartialUpdateUserSettingsCommand,
|
|
44
48
|
QueryUserCommand,
|
|
45
49
|
QueryUsersCommand,
|
|
46
50
|
UpdateBotCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetUserSettingsCommand, se_GetUserSettingsCommand, } 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 GetUserSettingsCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("Users", "GetUserSettings", {})
|
|
12
|
+
.n("UsersClient", "GetUserSettingsCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetUserSettingsCommand)
|
|
15
|
+
.de(de_GetUserSettingsCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_PartialUpdateUserSettingsCommand, se_PartialUpdateUserSettingsCommand, } 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 PartialUpdateUserSettingsCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("Users", "PartialUpdateUserSettings", {})
|
|
12
|
+
.n("UsersClient", "PartialUpdateUserSettingsCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_PartialUpdateUserSettingsCommand)
|
|
15
|
+
.de(de_PartialUpdateUserSettingsCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -12,8 +12,10 @@ export * from "./GetUserCommand";
|
|
|
12
12
|
export * from "./GetUserPbxLinkDataCommand";
|
|
13
13
|
export * from "./GetUserPbxLinkSuggestionCommand";
|
|
14
14
|
export * from "./GetUserPbxLinkSuggestionV1Command";
|
|
15
|
+
export * from "./GetUserSettingsCommand";
|
|
15
16
|
export * from "./ListBotApiKeysCommand";
|
|
16
17
|
export * from "./ListBotsCommand";
|
|
18
|
+
export * from "./PartialUpdateUserSettingsCommand";
|
|
17
19
|
export * from "./QueryUserCommand";
|
|
18
20
|
export * from "./QueryUsersCommand";
|
|
19
21
|
export * from "./UpdateBotCommand";
|
|
@@ -216,6 +216,17 @@ export const se_GetUserPbxLinkSuggestionV1Command = async (input, context) => {
|
|
|
216
216
|
.b(body);
|
|
217
217
|
return b.build();
|
|
218
218
|
};
|
|
219
|
+
export const se_GetUserSettingsCommand = async (input, context) => {
|
|
220
|
+
const b = rb(input, context);
|
|
221
|
+
const headers = {};
|
|
222
|
+
b.bp("/v2/users/settings/{userId}");
|
|
223
|
+
b.p('userId', () => input.userId, '{userId}', false);
|
|
224
|
+
let body;
|
|
225
|
+
b.m("GET")
|
|
226
|
+
.h(headers)
|
|
227
|
+
.b(body);
|
|
228
|
+
return b.build();
|
|
229
|
+
};
|
|
219
230
|
export const se_ListBotApiKeysCommand = async (input, context) => {
|
|
220
231
|
const b = rb(input, context);
|
|
221
232
|
const headers = {};
|
|
@@ -245,6 +256,26 @@ export const se_ListBotsCommand = async (input, context) => {
|
|
|
245
256
|
.b(body);
|
|
246
257
|
return b.build();
|
|
247
258
|
};
|
|
259
|
+
export const se_PartialUpdateUserSettingsCommand = async (input, context) => {
|
|
260
|
+
const b = rb(input, context);
|
|
261
|
+
const headers = {
|
|
262
|
+
'content-type': 'application/json',
|
|
263
|
+
};
|
|
264
|
+
b.bp("/v2/users/settings");
|
|
265
|
+
const query = map({
|
|
266
|
+
[_t]: [, input[_t]],
|
|
267
|
+
});
|
|
268
|
+
let body;
|
|
269
|
+
body = JSON.stringify(take(input, {
|
|
270
|
+
'settings': _ => _json(_),
|
|
271
|
+
'userId': [],
|
|
272
|
+
}));
|
|
273
|
+
b.m("PATCH")
|
|
274
|
+
.h(headers)
|
|
275
|
+
.q(query)
|
|
276
|
+
.b(body);
|
|
277
|
+
return b.build();
|
|
278
|
+
};
|
|
248
279
|
export const se_QueryUserCommand = async (input, context) => {
|
|
249
280
|
const b = rb(input, context);
|
|
250
281
|
const headers = {
|
|
@@ -568,6 +599,20 @@ export const de_GetUserPbxLinkSuggestionV1Command = async (output, context) => {
|
|
|
568
599
|
Object.assign(contents, doc);
|
|
569
600
|
return contents;
|
|
570
601
|
};
|
|
602
|
+
export const de_GetUserSettingsCommand = async (output, context) => {
|
|
603
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
604
|
+
return de_CommandError(output, context);
|
|
605
|
+
}
|
|
606
|
+
const contents = map({
|
|
607
|
+
$metadata: deserializeMetadata(output),
|
|
608
|
+
});
|
|
609
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
610
|
+
const doc = take(data, {
|
|
611
|
+
'emailNotifications': _json,
|
|
612
|
+
});
|
|
613
|
+
Object.assign(contents, doc);
|
|
614
|
+
return contents;
|
|
615
|
+
};
|
|
571
616
|
export const de_ListBotApiKeysCommand = async (output, context) => {
|
|
572
617
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
573
618
|
return de_CommandError(output, context);
|
|
@@ -596,6 +641,20 @@ export const de_ListBotsCommand = async (output, context) => {
|
|
|
596
641
|
Object.assign(contents, doc);
|
|
597
642
|
return contents;
|
|
598
643
|
};
|
|
644
|
+
export const de_PartialUpdateUserSettingsCommand = async (output, context) => {
|
|
645
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
646
|
+
return de_CommandError(output, context);
|
|
647
|
+
}
|
|
648
|
+
const contents = map({
|
|
649
|
+
$metadata: deserializeMetadata(output),
|
|
650
|
+
});
|
|
651
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
652
|
+
const doc = take(data, {
|
|
653
|
+
'emailNotifications': _json,
|
|
654
|
+
});
|
|
655
|
+
Object.assign(contents, doc);
|
|
656
|
+
return contents;
|
|
657
|
+
};
|
|
599
658
|
export const de_QueryUserCommand = async (output, context) => {
|
|
600
659
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
601
660
|
return de_CommandError(output, context);
|
|
@@ -936,6 +995,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
936
995
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
937
996
|
const _c = "company";
|
|
938
997
|
const _e = "email";
|
|
998
|
+
const _t = "token";
|
|
939
999
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
|
|
940
1000
|
if (encoded.length) {
|
|
941
1001
|
return JSON.parse(encoded);
|
package/dist-types/Users.d.ts
CHANGED
|
@@ -13,8 +13,10 @@ import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCom
|
|
|
13
13
|
import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "./commands/GetUserPbxLinkDataCommand";
|
|
14
14
|
import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "./commands/GetUserPbxLinkSuggestionCommand";
|
|
15
15
|
import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
|
|
16
|
+
import { GetUserSettingsCommandInput, GetUserSettingsCommandOutput } from "./commands/GetUserSettingsCommand";
|
|
16
17
|
import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
|
|
17
18
|
import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
|
|
19
|
+
import { PartialUpdateUserSettingsCommandInput, PartialUpdateUserSettingsCommandOutput } from "./commands/PartialUpdateUserSettingsCommand";
|
|
18
20
|
import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
|
|
19
21
|
import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
|
|
20
22
|
import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
|
|
@@ -111,6 +113,12 @@ export interface Users {
|
|
|
111
113
|
getUserPbxLinkSuggestionV1(args: GetUserPbxLinkSuggestionV1CommandInput, options?: __HttpHandlerOptions): Promise<GetUserPbxLinkSuggestionV1CommandOutput>;
|
|
112
114
|
getUserPbxLinkSuggestionV1(args: GetUserPbxLinkSuggestionV1CommandInput, cb: (err: any, data?: GetUserPbxLinkSuggestionV1CommandOutput) => void): void;
|
|
113
115
|
getUserPbxLinkSuggestionV1(args: GetUserPbxLinkSuggestionV1CommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserPbxLinkSuggestionV1CommandOutput) => void): void;
|
|
116
|
+
/**
|
|
117
|
+
* @see {@link GetUserSettingsCommand}
|
|
118
|
+
*/
|
|
119
|
+
getUserSettings(args: GetUserSettingsCommandInput, options?: __HttpHandlerOptions): Promise<GetUserSettingsCommandOutput>;
|
|
120
|
+
getUserSettings(args: GetUserSettingsCommandInput, cb: (err: any, data?: GetUserSettingsCommandOutput) => void): void;
|
|
121
|
+
getUserSettings(args: GetUserSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserSettingsCommandOutput) => void): void;
|
|
114
122
|
/**
|
|
115
123
|
* @see {@link ListBotApiKeysCommand}
|
|
116
124
|
*/
|
|
@@ -124,6 +132,12 @@ export interface Users {
|
|
|
124
132
|
listBots(args: ListBotsCommandInput, options?: __HttpHandlerOptions): Promise<ListBotsCommandOutput>;
|
|
125
133
|
listBots(args: ListBotsCommandInput, cb: (err: any, data?: ListBotsCommandOutput) => void): void;
|
|
126
134
|
listBots(args: ListBotsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListBotsCommandOutput) => void): void;
|
|
135
|
+
/**
|
|
136
|
+
* @see {@link PartialUpdateUserSettingsCommand}
|
|
137
|
+
*/
|
|
138
|
+
partialUpdateUserSettings(args: PartialUpdateUserSettingsCommandInput, options?: __HttpHandlerOptions): Promise<PartialUpdateUserSettingsCommandOutput>;
|
|
139
|
+
partialUpdateUserSettings(args: PartialUpdateUserSettingsCommandInput, cb: (err: any, data?: PartialUpdateUserSettingsCommandOutput) => void): void;
|
|
140
|
+
partialUpdateUserSettings(args: PartialUpdateUserSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PartialUpdateUserSettingsCommandOutput) => void): void;
|
|
127
141
|
/**
|
|
128
142
|
* @see {@link QueryUserCommand}
|
|
129
143
|
*/
|
|
@@ -12,8 +12,10 @@ import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCom
|
|
|
12
12
|
import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "./commands/GetUserPbxLinkDataCommand";
|
|
13
13
|
import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "./commands/GetUserPbxLinkSuggestionCommand";
|
|
14
14
|
import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
|
|
15
|
+
import { GetUserSettingsCommandInput, GetUserSettingsCommandOutput } from "./commands/GetUserSettingsCommand";
|
|
15
16
|
import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
|
|
16
17
|
import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
|
|
18
|
+
import { PartialUpdateUserSettingsCommandInput, PartialUpdateUserSettingsCommandOutput } from "./commands/PartialUpdateUserSettingsCommand";
|
|
17
19
|
import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
|
|
18
20
|
import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
|
|
19
21
|
import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
|
|
@@ -33,11 +35,11 @@ export { __Client };
|
|
|
33
35
|
/**
|
|
34
36
|
* @public
|
|
35
37
|
*/
|
|
36
|
-
export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | QueryUserCommandInput | QueryUsersCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput;
|
|
38
|
+
export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | GetUserSettingsCommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | PartialUpdateUserSettingsCommandInput | QueryUserCommandInput | QueryUsersCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput;
|
|
37
39
|
/**
|
|
38
40
|
* @public
|
|
39
41
|
*/
|
|
40
|
-
export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput;
|
|
42
|
+
export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | GetUserSettingsCommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | PartialUpdateUserSettingsCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput;
|
|
41
43
|
/**
|
|
42
44
|
* @public
|
|
43
45
|
*/
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { GetUserSettingsInput, GetUserSettingsOutput } 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 GetUserSettingsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetUserSettingsCommandInput extends GetUserSettingsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetUserSettingsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetUserSettingsCommandOutput extends GetUserSettingsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetUserSettingsCommand_base: {
|
|
25
|
+
new (input: GetUserSettingsCommandInput): import("@smithy/smithy-client").CommandImpl<GetUserSettingsCommandInput, GetUserSettingsCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetUserSettingsCommandInput): import("@smithy/smithy-client").CommandImpl<GetUserSettingsCommandInput, GetUserSettingsCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Getting settings for the user.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { UsersClient, GetUserSettingsCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
35
|
+
* // const { UsersClient, GetUserSettingsCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
36
|
+
* const client = new UsersClient(config);
|
|
37
|
+
* const input = { // GetUserSettingsInput
|
|
38
|
+
* userId: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetUserSettingsCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetUserSettingsOutput
|
|
43
|
+
* // emailNotifications: { // EmailNotificationsSettings
|
|
44
|
+
* // unread: true || false, // required
|
|
45
|
+
* // transcription: true || false, // required
|
|
46
|
+
* // },
|
|
47
|
+
* // };
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param GetUserSettingsCommandInput - {@link GetUserSettingsCommandInput}
|
|
52
|
+
* @returns {@link GetUserSettingsCommandOutput}
|
|
53
|
+
* @see {@link GetUserSettingsCommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link GetUserSettingsCommandOutput} for command's `response` shape.
|
|
55
|
+
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link UserNotFoundException} (client fault)
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ValidationException} (client fault)
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link UsersServiceException}
|
|
64
|
+
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
65
|
+
*
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
export declare class GetUserSettingsCommand extends GetUserSettingsCommand_base {
|
|
69
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { PartialUpdateUserSettingsInput, PartialUpdateUserSettingsOutput } 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 PartialUpdateUserSettingsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface PartialUpdateUserSettingsCommandInput extends PartialUpdateUserSettingsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link PartialUpdateUserSettingsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface PartialUpdateUserSettingsCommandOutput extends PartialUpdateUserSettingsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const PartialUpdateUserSettingsCommand_base: {
|
|
25
|
+
new (input: PartialUpdateUserSettingsCommandInput): import("@smithy/smithy-client").CommandImpl<PartialUpdateUserSettingsCommandInput, PartialUpdateUserSettingsCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: PartialUpdateUserSettingsCommandInput): import("@smithy/smithy-client").CommandImpl<PartialUpdateUserSettingsCommandInput, PartialUpdateUserSettingsCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Getting settings for the user.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { UsersClient, PartialUpdateUserSettingsCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
35
|
+
* // const { UsersClient, PartialUpdateUserSettingsCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
36
|
+
* const client = new UsersClient(config);
|
|
37
|
+
* const input = { // PartialUpdateUserSettingsInput
|
|
38
|
+
* userId: "STRING_VALUE",
|
|
39
|
+
* token: "STRING_VALUE",
|
|
40
|
+
* settings: { // PartialUserSettings
|
|
41
|
+
* emailNotifications: { // PartialEmailNotificationsSettings
|
|
42
|
+
* unread: true || false,
|
|
43
|
+
* transcription: true || false,
|
|
44
|
+
* },
|
|
45
|
+
* },
|
|
46
|
+
* };
|
|
47
|
+
* const command = new PartialUpdateUserSettingsCommand(input);
|
|
48
|
+
* const response = await client.send(command);
|
|
49
|
+
* // { // PartialUpdateUserSettingsOutput
|
|
50
|
+
* // emailNotifications: { // EmailNotificationsSettings
|
|
51
|
+
* // unread: true || false, // required
|
|
52
|
+
* // transcription: true || false, // required
|
|
53
|
+
* // },
|
|
54
|
+
* // };
|
|
55
|
+
*
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @param PartialUpdateUserSettingsCommandInput - {@link PartialUpdateUserSettingsCommandInput}
|
|
59
|
+
* @returns {@link PartialUpdateUserSettingsCommandOutput}
|
|
60
|
+
* @see {@link PartialUpdateUserSettingsCommandInput} for command's `input` shape.
|
|
61
|
+
* @see {@link PartialUpdateUserSettingsCommandOutput} for command's `response` shape.
|
|
62
|
+
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link UserNotFoundException} (client fault)
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ValidationException} (client fault)
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link UsersServiceException}
|
|
71
|
+
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
72
|
+
*
|
|
73
|
+
* @public
|
|
74
|
+
*/
|
|
75
|
+
export declare class PartialUpdateUserSettingsCommand extends PartialUpdateUserSettingsCommand_base {
|
|
76
|
+
}
|
|
@@ -12,8 +12,10 @@ export * from "./GetUserCommand";
|
|
|
12
12
|
export * from "./GetUserPbxLinkDataCommand";
|
|
13
13
|
export * from "./GetUserPbxLinkSuggestionCommand";
|
|
14
14
|
export * from "./GetUserPbxLinkSuggestionV1Command";
|
|
15
|
+
export * from "./GetUserSettingsCommand";
|
|
15
16
|
export * from "./ListBotApiKeysCommand";
|
|
16
17
|
export * from "./ListBotsCommand";
|
|
18
|
+
export * from "./PartialUpdateUserSettingsCommand";
|
|
17
19
|
export * from "./QueryUserCommand";
|
|
18
20
|
export * from "./QueryUsersCommand";
|
|
19
21
|
export * from "./UpdateBotCommand";
|
|
@@ -637,6 +637,21 @@ export interface DeleteBotApiKeyInput {
|
|
|
637
637
|
*/
|
|
638
638
|
export interface DeleteBotApiKeyOutput {
|
|
639
639
|
}
|
|
640
|
+
/**
|
|
641
|
+
* @public
|
|
642
|
+
*/
|
|
643
|
+
export interface EmailNotificationsSettings {
|
|
644
|
+
/**
|
|
645
|
+
* Indicates whether the user wants to receive email notifications about unread messages.
|
|
646
|
+
* @public
|
|
647
|
+
*/
|
|
648
|
+
unread: boolean;
|
|
649
|
+
/**
|
|
650
|
+
* Indicates whether the user wants to receive email notifications about AI transcription.
|
|
651
|
+
* @public
|
|
652
|
+
*/
|
|
653
|
+
transcription: boolean;
|
|
654
|
+
}
|
|
640
655
|
/**
|
|
641
656
|
* @public
|
|
642
657
|
*/
|
|
@@ -750,6 +765,26 @@ export interface GetUserPbxLinkSuggestionV1Output {
|
|
|
750
765
|
*/
|
|
751
766
|
suggestion?: UserPbxLinkSuggestion;
|
|
752
767
|
}
|
|
768
|
+
/**
|
|
769
|
+
* @public
|
|
770
|
+
*/
|
|
771
|
+
export interface GetUserSettingsInput {
|
|
772
|
+
/**
|
|
773
|
+
* The unique identifier of the user (Cloud ID, not ID of the user on PBX).
|
|
774
|
+
* @public
|
|
775
|
+
*/
|
|
776
|
+
userId: string;
|
|
777
|
+
}
|
|
778
|
+
/**
|
|
779
|
+
* @public
|
|
780
|
+
*/
|
|
781
|
+
export interface GetUserSettingsOutput {
|
|
782
|
+
/**
|
|
783
|
+
* Indicates whether the user wants to receive email notifications.
|
|
784
|
+
* @public
|
|
785
|
+
*/
|
|
786
|
+
emailNotifications?: EmailNotificationsSettings;
|
|
787
|
+
}
|
|
753
788
|
/**
|
|
754
789
|
* @public
|
|
755
790
|
*/
|
|
@@ -775,6 +810,53 @@ export interface ListBotsInput {
|
|
|
775
810
|
export interface ListBotsOutput {
|
|
776
811
|
bots: (Bot)[];
|
|
777
812
|
}
|
|
813
|
+
/**
|
|
814
|
+
* @public
|
|
815
|
+
*/
|
|
816
|
+
export interface PartialEmailNotificationsSettings {
|
|
817
|
+
/**
|
|
818
|
+
* Indicates whether the user wants to receive email notifications about unread messages.
|
|
819
|
+
* @public
|
|
820
|
+
*/
|
|
821
|
+
unread?: boolean;
|
|
822
|
+
/**
|
|
823
|
+
* Indicates whether the user wants to receive email notifications about AI transcription.
|
|
824
|
+
* @public
|
|
825
|
+
*/
|
|
826
|
+
transcription?: boolean;
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* @public
|
|
830
|
+
*/
|
|
831
|
+
export interface PartialUserSettings {
|
|
832
|
+
/**
|
|
833
|
+
* Indicates whether the user wants to receive email notifications.
|
|
834
|
+
* @public
|
|
835
|
+
*/
|
|
836
|
+
emailNotifications?: PartialEmailNotificationsSettings;
|
|
837
|
+
}
|
|
838
|
+
/**
|
|
839
|
+
* @public
|
|
840
|
+
*/
|
|
841
|
+
export interface PartialUpdateUserSettingsInput {
|
|
842
|
+
/**
|
|
843
|
+
* The unique identifier of the user (Cloud ID, not ID of the user on PBX).
|
|
844
|
+
* @public
|
|
845
|
+
*/
|
|
846
|
+
userId?: string;
|
|
847
|
+
/**
|
|
848
|
+
* Email unsubscribe token.
|
|
849
|
+
* @public
|
|
850
|
+
*/
|
|
851
|
+
token?: string;
|
|
852
|
+
settings: PartialUserSettings;
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
* @public
|
|
856
|
+
*/
|
|
857
|
+
export interface PartialUpdateUserSettingsOutput {
|
|
858
|
+
emailNotifications?: EmailNotificationsSettings;
|
|
859
|
+
}
|
|
778
860
|
/**
|
|
779
861
|
* @public
|
|
780
862
|
*/
|
|
@@ -12,8 +12,10 @@ import { GetUserCommandInput, GetUserCommandOutput } from "../commands/GetUserCo
|
|
|
12
12
|
import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "../commands/GetUserPbxLinkDataCommand";
|
|
13
13
|
import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "../commands/GetUserPbxLinkSuggestionCommand";
|
|
14
14
|
import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "../commands/GetUserPbxLinkSuggestionV1Command";
|
|
15
|
+
import { GetUserSettingsCommandInput, GetUserSettingsCommandOutput } from "../commands/GetUserSettingsCommand";
|
|
15
16
|
import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "../commands/ListBotApiKeysCommand";
|
|
16
17
|
import { ListBotsCommandInput, ListBotsCommandOutput } from "../commands/ListBotsCommand";
|
|
18
|
+
import { PartialUpdateUserSettingsCommandInput, PartialUpdateUserSettingsCommandOutput } from "../commands/PartialUpdateUserSettingsCommand";
|
|
17
19
|
import { QueryUserCommandInput, QueryUserCommandOutput } from "../commands/QueryUserCommand";
|
|
18
20
|
import { QueryUsersCommandInput, QueryUsersCommandOutput } from "../commands/QueryUsersCommand";
|
|
19
21
|
import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "../commands/UpdateBotCallbackCommand";
|
|
@@ -80,6 +82,10 @@ export declare const se_GetUserPbxLinkSuggestionCommand: (input: GetUserPbxLinkS
|
|
|
80
82
|
* serializeAws_restJson1GetUserPbxLinkSuggestionV1Command
|
|
81
83
|
*/
|
|
82
84
|
export declare const se_GetUserPbxLinkSuggestionV1Command: (input: GetUserPbxLinkSuggestionV1CommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
85
|
+
/**
|
|
86
|
+
* serializeAws_restJson1GetUserSettingsCommand
|
|
87
|
+
*/
|
|
88
|
+
export declare const se_GetUserSettingsCommand: (input: GetUserSettingsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
83
89
|
/**
|
|
84
90
|
* serializeAws_restJson1ListBotApiKeysCommand
|
|
85
91
|
*/
|
|
@@ -88,6 +94,10 @@ export declare const se_ListBotApiKeysCommand: (input: ListBotApiKeysCommandInpu
|
|
|
88
94
|
* serializeAws_restJson1ListBotsCommand
|
|
89
95
|
*/
|
|
90
96
|
export declare const se_ListBotsCommand: (input: ListBotsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
97
|
+
/**
|
|
98
|
+
* serializeAws_restJson1PartialUpdateUserSettingsCommand
|
|
99
|
+
*/
|
|
100
|
+
export declare const se_PartialUpdateUserSettingsCommand: (input: PartialUpdateUserSettingsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
91
101
|
/**
|
|
92
102
|
* serializeAws_restJson1QueryUserCommand
|
|
93
103
|
*/
|
|
@@ -176,6 +186,10 @@ export declare const de_GetUserPbxLinkSuggestionCommand: (output: __HttpResponse
|
|
|
176
186
|
* deserializeAws_restJson1GetUserPbxLinkSuggestionV1Command
|
|
177
187
|
*/
|
|
178
188
|
export declare const de_GetUserPbxLinkSuggestionV1Command: (output: __HttpResponse, context: __SerdeContext) => Promise<GetUserPbxLinkSuggestionV1CommandOutput>;
|
|
189
|
+
/**
|
|
190
|
+
* deserializeAws_restJson1GetUserSettingsCommand
|
|
191
|
+
*/
|
|
192
|
+
export declare const de_GetUserSettingsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetUserSettingsCommandOutput>;
|
|
179
193
|
/**
|
|
180
194
|
* deserializeAws_restJson1ListBotApiKeysCommand
|
|
181
195
|
*/
|
|
@@ -184,6 +198,10 @@ export declare const de_ListBotApiKeysCommand: (output: __HttpResponse, context:
|
|
|
184
198
|
* deserializeAws_restJson1ListBotsCommand
|
|
185
199
|
*/
|
|
186
200
|
export declare const de_ListBotsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListBotsCommandOutput>;
|
|
201
|
+
/**
|
|
202
|
+
* deserializeAws_restJson1PartialUpdateUserSettingsCommand
|
|
203
|
+
*/
|
|
204
|
+
export declare const de_PartialUpdateUserSettingsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PartialUpdateUserSettingsCommandOutput>;
|
|
187
205
|
/**
|
|
188
206
|
* deserializeAws_restJson1QueryUserCommand
|
|
189
207
|
*/
|
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.26",
|
|
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",
|
|
@@ -76,4 +76,4 @@
|
|
|
76
76
|
"react-native": {
|
|
77
77
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
78
78
|
}
|
|
79
|
-
}
|
|
79
|
+
}
|