@wildix/xbees-users-client 1.0.26 → 1.0.28
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/CreateSystemBotCommand.js +21 -0
- package/dist-cjs/commands/QueryColleaguesCommand.js +21 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +35 -1
- package/dist-cjs/protocols/Aws_restJson1.js +80 -4
- package/dist-es/Users.js +4 -0
- package/dist-es/commands/CreateSystemBotCommand.js +17 -0
- package/dist-es/commands/QueryColleaguesCommand.js +17 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +34 -0
- package/dist-es/protocols/Aws_restJson1.js +74 -2
- package/dist-types/Users.d.ts +16 -0
- package/dist-types/UsersClient.d.ts +4 -2
- package/dist-types/commands/CreateSystemBotCommand.d.ts +66 -0
- package/dist-types/commands/GetUserSettingsCommand.d.ts +2 -2
- package/dist-types/commands/QueryColleaguesCommand.d.ts +138 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +170 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/package.json +2 -2
package/dist-cjs/Users.js
CHANGED
|
@@ -8,6 +8,7 @@ const BatchGetUsersPbxLinkDataV1Command_1 = require("./commands/BatchGetUsersPbx
|
|
|
8
8
|
const ChangeUserEmailCommand_1 = require("./commands/ChangeUserEmailCommand");
|
|
9
9
|
const CreateBotApiKeyCommand_1 = require("./commands/CreateBotApiKeyCommand");
|
|
10
10
|
const CreateBotCommand_1 = require("./commands/CreateBotCommand");
|
|
11
|
+
const CreateSystemBotCommand_1 = require("./commands/CreateSystemBotCommand");
|
|
11
12
|
const DeleteBotApiKeyCommand_1 = require("./commands/DeleteBotApiKeyCommand");
|
|
12
13
|
const DeleteBotCommand_1 = require("./commands/DeleteBotCommand");
|
|
13
14
|
const GetBotCallbackCommand_1 = require("./commands/GetBotCallbackCommand");
|
|
@@ -20,6 +21,7 @@ const GetUserSettingsCommand_1 = require("./commands/GetUserSettingsCommand");
|
|
|
20
21
|
const ListBotApiKeysCommand_1 = require("./commands/ListBotApiKeysCommand");
|
|
21
22
|
const ListBotsCommand_1 = require("./commands/ListBotsCommand");
|
|
22
23
|
const PartialUpdateUserSettingsCommand_1 = require("./commands/PartialUpdateUserSettingsCommand");
|
|
24
|
+
const QueryColleaguesCommand_1 = require("./commands/QueryColleaguesCommand");
|
|
23
25
|
const QueryUserCommand_1 = require("./commands/QueryUserCommand");
|
|
24
26
|
const QueryUsersCommand_1 = require("./commands/QueryUsersCommand");
|
|
25
27
|
const UpdateBotCallbackCommand_1 = require("./commands/UpdateBotCallbackCommand");
|
|
@@ -36,6 +38,7 @@ const commands = {
|
|
|
36
38
|
ChangeUserEmailCommand: ChangeUserEmailCommand_1.ChangeUserEmailCommand,
|
|
37
39
|
CreateBotCommand: CreateBotCommand_1.CreateBotCommand,
|
|
38
40
|
CreateBotApiKeyCommand: CreateBotApiKeyCommand_1.CreateBotApiKeyCommand,
|
|
41
|
+
CreateSystemBotCommand: CreateSystemBotCommand_1.CreateSystemBotCommand,
|
|
39
42
|
DeleteBotCommand: DeleteBotCommand_1.DeleteBotCommand,
|
|
40
43
|
DeleteBotApiKeyCommand: DeleteBotApiKeyCommand_1.DeleteBotApiKeyCommand,
|
|
41
44
|
GetBotCommand: GetBotCommand_1.GetBotCommand,
|
|
@@ -48,6 +51,7 @@ const commands = {
|
|
|
48
51
|
ListBotApiKeysCommand: ListBotApiKeysCommand_1.ListBotApiKeysCommand,
|
|
49
52
|
ListBotsCommand: ListBotsCommand_1.ListBotsCommand,
|
|
50
53
|
PartialUpdateUserSettingsCommand: PartialUpdateUserSettingsCommand_1.PartialUpdateUserSettingsCommand,
|
|
54
|
+
QueryColleaguesCommand: QueryColleaguesCommand_1.QueryColleaguesCommand,
|
|
51
55
|
QueryUserCommand: QueryUserCommand_1.QueryUserCommand,
|
|
52
56
|
QueryUsersCommand: QueryUsersCommand_1.QueryUsersCommand,
|
|
53
57
|
UpdateBotCommand: UpdateBotCommand_1.UpdateBotCommand,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateSystemBotCommand = 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 CreateSystemBotCommand 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", "CreateSystemBot", {})
|
|
15
|
+
.n("UsersClient", "CreateSystemBotCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_CreateSystemBotCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_CreateSystemBotCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.CreateSystemBotCommand = CreateSystemBotCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QueryColleaguesCommand = 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 QueryColleaguesCommand 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", "QueryColleagues", {})
|
|
15
|
+
.n("UsersClient", "QueryColleaguesCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_QueryColleaguesCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_QueryColleaguesCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.QueryColleaguesCommand = QueryColleaguesCommand;
|
|
@@ -7,6 +7,7 @@ tslib_1.__exportStar(require("./BatchGetUsersPbxLinkDataV1Command"), exports);
|
|
|
7
7
|
tslib_1.__exportStar(require("./ChangeUserEmailCommand"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./CreateBotCommand"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./CreateBotApiKeyCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./CreateSystemBotCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./DeleteBotCommand"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./DeleteBotApiKeyCommand"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./GetBotCommand"), exports);
|
|
@@ -19,6 +20,7 @@ tslib_1.__exportStar(require("./GetUserSettingsCommand"), exports);
|
|
|
19
20
|
tslib_1.__exportStar(require("./ListBotApiKeysCommand"), exports);
|
|
20
21
|
tslib_1.__exportStar(require("./ListBotsCommand"), exports);
|
|
21
22
|
tslib_1.__exportStar(require("./PartialUpdateUserSettingsCommand"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./QueryColleaguesCommand"), exports);
|
|
22
24
|
tslib_1.__exportStar(require("./QueryUserCommand"), exports);
|
|
23
25
|
tslib_1.__exportStar(require("./QueryUsersCommand"), exports);
|
|
24
26
|
tslib_1.__exportStar(require("./UpdateBotCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserQueryPredicateNotMetException = exports.UserQuery = exports.UserNotFoundException = exports.UserCompanyNotValidException = exports.BotSecretKeyNotValidException = exports.BotNotFoundException = exports.BotEndpoint = exports.BotApiKeyNotFoundException = exports.PbxLicenseType = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
3
|
+
exports.UserQueryPredicateNotMetException = exports.UserQuery = exports.UserNotFoundException = exports.UserCompanyNotValidException = exports.BotSecretKeyNotValidException = exports.BotNotFoundException = exports.BotEndpoint = exports.BotApiKeyNotFoundException = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.PbxColleagueRole = exports.PbxLicenseType = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
4
4
|
const UsersServiceException_1 = require("./UsersServiceException");
|
|
5
5
|
class ValidationException extends UsersServiceException_1.UsersServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -35,6 +35,40 @@ exports.PbxLicenseType = {
|
|
|
35
35
|
PREMIUM: "premium",
|
|
36
36
|
WIZYCONF: "wizyconf",
|
|
37
37
|
};
|
|
38
|
+
exports.PbxColleagueRole = {
|
|
39
|
+
ADMIN: "admin",
|
|
40
|
+
FAX: "fax",
|
|
41
|
+
PARK_ORBIT: "park_orbit",
|
|
42
|
+
ROOM: "room",
|
|
43
|
+
USER: "user",
|
|
44
|
+
};
|
|
45
|
+
exports.GetPbxColleaguesDir = {
|
|
46
|
+
ASC: "asc",
|
|
47
|
+
DESC: "desc",
|
|
48
|
+
};
|
|
49
|
+
exports.PbxColleaguesQueryField = {
|
|
50
|
+
DEPARTMENT: "department",
|
|
51
|
+
DIALPLAN: "dialplan",
|
|
52
|
+
EMAIL: "email",
|
|
53
|
+
EXTENSION: "extension",
|
|
54
|
+
FAX_DIALPLAN: "faxDialplan",
|
|
55
|
+
GROUP_DN: "groupDn",
|
|
56
|
+
ID: "id",
|
|
57
|
+
LANGUAGE: "language",
|
|
58
|
+
LICENSE_TYPE: "licenseType",
|
|
59
|
+
LOGIN: "login",
|
|
60
|
+
MOBILE_PHONE: "mobilePhone",
|
|
61
|
+
NAME: "name",
|
|
62
|
+
OFFICE_PHONE: "officePhone",
|
|
63
|
+
PBX_DN: "pbxDn",
|
|
64
|
+
PICTURE: "picture",
|
|
65
|
+
ROLE: "role",
|
|
66
|
+
SOURCE_ID: "sourceId",
|
|
67
|
+
};
|
|
68
|
+
exports.PbxColleaguesSearchStrategy = {
|
|
69
|
+
CONTAIN: "contain",
|
|
70
|
+
STARTS_WITH: "startsWith",
|
|
71
|
+
};
|
|
38
72
|
class BotApiKeyNotFoundException extends UsersServiceException_1.UsersServiceException {
|
|
39
73
|
constructor(opts) {
|
|
40
74
|
super({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_VerifyBotSecretKeyV1Command = exports.de_VerifyBotSecretKeyCommand = void 0;
|
|
3
|
+
exports.de_QueryUsersCommand = exports.de_QueryUserCommand = exports.de_QueryColleaguesCommand = 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_CreateSystemBotCommand = 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_QueryColleaguesCommand = 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_CreateSystemBotCommand = 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 = exports.de_UploadPictureV1Command = exports.de_UploadPictureCommand = exports.de_UpdateBotCallbackCommand = exports.de_UpdateBotCommand = void 0;
|
|
5
5
|
const UsersServiceException_1 = require("../models/UsersServiceException");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const core_1 = require("@smithy/core");
|
|
@@ -115,6 +115,27 @@ const se_CreateBotApiKeyCommand = async (input, context) => {
|
|
|
115
115
|
return b.build();
|
|
116
116
|
};
|
|
117
117
|
exports.se_CreateBotApiKeyCommand = se_CreateBotApiKeyCommand;
|
|
118
|
+
const se_CreateSystemBotCommand = async (input, context) => {
|
|
119
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
120
|
+
const headers = {
|
|
121
|
+
'content-type': 'application/json',
|
|
122
|
+
};
|
|
123
|
+
b.bp("/v2/users/system-bots");
|
|
124
|
+
const query = (0, smithy_client_1.map)({
|
|
125
|
+
[_c]: [, input[_c]],
|
|
126
|
+
});
|
|
127
|
+
let body;
|
|
128
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
129
|
+
'name': [],
|
|
130
|
+
'picture': [],
|
|
131
|
+
}));
|
|
132
|
+
b.m("POST")
|
|
133
|
+
.h(headers)
|
|
134
|
+
.q(query)
|
|
135
|
+
.b(body);
|
|
136
|
+
return b.build();
|
|
137
|
+
};
|
|
138
|
+
exports.se_CreateSystemBotCommand = se_CreateSystemBotCommand;
|
|
118
139
|
const se_DeleteBotCommand = async (input, context) => {
|
|
119
140
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
120
141
|
const headers = {};
|
|
@@ -237,11 +258,14 @@ exports.se_GetUserPbxLinkSuggestionV1Command = se_GetUserPbxLinkSuggestionV1Comm
|
|
|
237
258
|
const se_GetUserSettingsCommand = async (input, context) => {
|
|
238
259
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
239
260
|
const headers = {};
|
|
240
|
-
b.bp("/v2/users/settings
|
|
241
|
-
|
|
261
|
+
b.bp("/v2/users/settings");
|
|
262
|
+
const query = (0, smithy_client_1.map)({
|
|
263
|
+
[_u]: [, input[_uI]],
|
|
264
|
+
});
|
|
242
265
|
let body;
|
|
243
266
|
b.m("GET")
|
|
244
267
|
.h(headers)
|
|
268
|
+
.q(query)
|
|
245
269
|
.b(body);
|
|
246
270
|
return b.build();
|
|
247
271
|
};
|
|
@@ -298,6 +322,26 @@ const se_PartialUpdateUserSettingsCommand = async (input, context) => {
|
|
|
298
322
|
return b.build();
|
|
299
323
|
};
|
|
300
324
|
exports.se_PartialUpdateUserSettingsCommand = se_PartialUpdateUserSettingsCommand;
|
|
325
|
+
const se_QueryColleaguesCommand = async (input, context) => {
|
|
326
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
327
|
+
const headers = {
|
|
328
|
+
'content-type': 'application/json',
|
|
329
|
+
};
|
|
330
|
+
b.bp("/v2/users/query-colleagues");
|
|
331
|
+
const query = (0, smithy_client_1.map)({
|
|
332
|
+
[_c]: [, input[_c]],
|
|
333
|
+
});
|
|
334
|
+
let body;
|
|
335
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
336
|
+
'query': _ => (0, smithy_client_1._json)(_),
|
|
337
|
+
}));
|
|
338
|
+
b.m("POST")
|
|
339
|
+
.h(headers)
|
|
340
|
+
.q(query)
|
|
341
|
+
.b(body);
|
|
342
|
+
return b.build();
|
|
343
|
+
};
|
|
344
|
+
exports.se_QueryColleaguesCommand = se_QueryColleaguesCommand;
|
|
301
345
|
const se_QueryUserCommand = async (input, context) => {
|
|
302
346
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
303
347
|
const headers = {
|
|
@@ -531,6 +575,21 @@ const de_CreateBotApiKeyCommand = async (output, context) => {
|
|
|
531
575
|
return contents;
|
|
532
576
|
};
|
|
533
577
|
exports.de_CreateBotApiKeyCommand = de_CreateBotApiKeyCommand;
|
|
578
|
+
const de_CreateSystemBotCommand = async (output, context) => {
|
|
579
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
580
|
+
return de_CommandError(output, context);
|
|
581
|
+
}
|
|
582
|
+
const contents = (0, smithy_client_1.map)({
|
|
583
|
+
$metadata: deserializeMetadata(output),
|
|
584
|
+
});
|
|
585
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
586
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
587
|
+
'id': smithy_client_1.expectString,
|
|
588
|
+
});
|
|
589
|
+
Object.assign(contents, doc);
|
|
590
|
+
return contents;
|
|
591
|
+
};
|
|
592
|
+
exports.de_CreateSystemBotCommand = de_CreateSystemBotCommand;
|
|
534
593
|
const de_DeleteBotCommand = async (output, context) => {
|
|
535
594
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
536
595
|
return de_CommandError(output, context);
|
|
@@ -703,6 +762,21 @@ const de_PartialUpdateUserSettingsCommand = async (output, context) => {
|
|
|
703
762
|
return contents;
|
|
704
763
|
};
|
|
705
764
|
exports.de_PartialUpdateUserSettingsCommand = de_PartialUpdateUserSettingsCommand;
|
|
765
|
+
const de_QueryColleaguesCommand = async (output, context) => {
|
|
766
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
767
|
+
return de_CommandError(output, context);
|
|
768
|
+
}
|
|
769
|
+
const contents = (0, smithy_client_1.map)({
|
|
770
|
+
$metadata: deserializeMetadata(output),
|
|
771
|
+
});
|
|
772
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
773
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
774
|
+
'colleagues': smithy_client_1._json,
|
|
775
|
+
});
|
|
776
|
+
Object.assign(contents, doc);
|
|
777
|
+
return contents;
|
|
778
|
+
};
|
|
779
|
+
exports.de_QueryColleaguesCommand = de_QueryColleaguesCommand;
|
|
706
780
|
const de_QueryUserCommand = async (output, context) => {
|
|
707
781
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
708
782
|
return de_CommandError(output, context);
|
|
@@ -1052,6 +1126,8 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1052
1126
|
const _c = "company";
|
|
1053
1127
|
const _e = "email";
|
|
1054
1128
|
const _t = "token";
|
|
1129
|
+
const _u = "user";
|
|
1130
|
+
const _uI = "userId";
|
|
1055
1131
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
|
|
1056
1132
|
if (encoded.length) {
|
|
1057
1133
|
return JSON.parse(encoded);
|
package/dist-es/Users.js
CHANGED
|
@@ -5,6 +5,7 @@ import { BatchGetUsersPbxLinkDataV1Command, } from "./commands/BatchGetUsersPbxL
|
|
|
5
5
|
import { ChangeUserEmailCommand, } from "./commands/ChangeUserEmailCommand";
|
|
6
6
|
import { CreateBotApiKeyCommand, } from "./commands/CreateBotApiKeyCommand";
|
|
7
7
|
import { CreateBotCommand, } from "./commands/CreateBotCommand";
|
|
8
|
+
import { CreateSystemBotCommand, } from "./commands/CreateSystemBotCommand";
|
|
8
9
|
import { DeleteBotApiKeyCommand, } from "./commands/DeleteBotApiKeyCommand";
|
|
9
10
|
import { DeleteBotCommand, } from "./commands/DeleteBotCommand";
|
|
10
11
|
import { GetBotCallbackCommand, } from "./commands/GetBotCallbackCommand";
|
|
@@ -17,6 +18,7 @@ import { GetUserSettingsCommand, } from "./commands/GetUserSettingsCommand";
|
|
|
17
18
|
import { ListBotApiKeysCommand, } from "./commands/ListBotApiKeysCommand";
|
|
18
19
|
import { ListBotsCommand, } from "./commands/ListBotsCommand";
|
|
19
20
|
import { PartialUpdateUserSettingsCommand, } from "./commands/PartialUpdateUserSettingsCommand";
|
|
21
|
+
import { QueryColleaguesCommand, } from "./commands/QueryColleaguesCommand";
|
|
20
22
|
import { QueryUserCommand, } from "./commands/QueryUserCommand";
|
|
21
23
|
import { QueryUsersCommand, } from "./commands/QueryUsersCommand";
|
|
22
24
|
import { UpdateBotCallbackCommand, } from "./commands/UpdateBotCallbackCommand";
|
|
@@ -33,6 +35,7 @@ const commands = {
|
|
|
33
35
|
ChangeUserEmailCommand,
|
|
34
36
|
CreateBotCommand,
|
|
35
37
|
CreateBotApiKeyCommand,
|
|
38
|
+
CreateSystemBotCommand,
|
|
36
39
|
DeleteBotCommand,
|
|
37
40
|
DeleteBotApiKeyCommand,
|
|
38
41
|
GetBotCommand,
|
|
@@ -45,6 +48,7 @@ const commands = {
|
|
|
45
48
|
ListBotApiKeysCommand,
|
|
46
49
|
ListBotsCommand,
|
|
47
50
|
PartialUpdateUserSettingsCommand,
|
|
51
|
+
QueryColleaguesCommand,
|
|
48
52
|
QueryUserCommand,
|
|
49
53
|
QueryUsersCommand,
|
|
50
54
|
UpdateBotCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_CreateSystemBotCommand, se_CreateSystemBotCommand, } 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 CreateSystemBotCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("Users", "CreateSystemBot", {})
|
|
12
|
+
.n("UsersClient", "CreateSystemBotCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_CreateSystemBotCommand)
|
|
15
|
+
.de(de_CreateSystemBotCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_QueryColleaguesCommand, se_QueryColleaguesCommand, } 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 QueryColleaguesCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("Users", "QueryColleagues", {})
|
|
12
|
+
.n("UsersClient", "QueryColleaguesCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_QueryColleaguesCommand)
|
|
15
|
+
.de(de_QueryColleaguesCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -4,6 +4,7 @@ export * from "./BatchGetUsersPbxLinkDataV1Command";
|
|
|
4
4
|
export * from "./ChangeUserEmailCommand";
|
|
5
5
|
export * from "./CreateBotCommand";
|
|
6
6
|
export * from "./CreateBotApiKeyCommand";
|
|
7
|
+
export * from "./CreateSystemBotCommand";
|
|
7
8
|
export * from "./DeleteBotCommand";
|
|
8
9
|
export * from "./DeleteBotApiKeyCommand";
|
|
9
10
|
export * from "./GetBotCommand";
|
|
@@ -16,6 +17,7 @@ export * from "./GetUserSettingsCommand";
|
|
|
16
17
|
export * from "./ListBotApiKeysCommand";
|
|
17
18
|
export * from "./ListBotsCommand";
|
|
18
19
|
export * from "./PartialUpdateUserSettingsCommand";
|
|
20
|
+
export * from "./QueryColleaguesCommand";
|
|
19
21
|
export * from "./QueryUserCommand";
|
|
20
22
|
export * from "./QueryUsersCommand";
|
|
21
23
|
export * from "./UpdateBotCommand";
|
|
@@ -30,6 +30,40 @@ export const PbxLicenseType = {
|
|
|
30
30
|
PREMIUM: "premium",
|
|
31
31
|
WIZYCONF: "wizyconf",
|
|
32
32
|
};
|
|
33
|
+
export const PbxColleagueRole = {
|
|
34
|
+
ADMIN: "admin",
|
|
35
|
+
FAX: "fax",
|
|
36
|
+
PARK_ORBIT: "park_orbit",
|
|
37
|
+
ROOM: "room",
|
|
38
|
+
USER: "user",
|
|
39
|
+
};
|
|
40
|
+
export const GetPbxColleaguesDir = {
|
|
41
|
+
ASC: "asc",
|
|
42
|
+
DESC: "desc",
|
|
43
|
+
};
|
|
44
|
+
export const PbxColleaguesQueryField = {
|
|
45
|
+
DEPARTMENT: "department",
|
|
46
|
+
DIALPLAN: "dialplan",
|
|
47
|
+
EMAIL: "email",
|
|
48
|
+
EXTENSION: "extension",
|
|
49
|
+
FAX_DIALPLAN: "faxDialplan",
|
|
50
|
+
GROUP_DN: "groupDn",
|
|
51
|
+
ID: "id",
|
|
52
|
+
LANGUAGE: "language",
|
|
53
|
+
LICENSE_TYPE: "licenseType",
|
|
54
|
+
LOGIN: "login",
|
|
55
|
+
MOBILE_PHONE: "mobilePhone",
|
|
56
|
+
NAME: "name",
|
|
57
|
+
OFFICE_PHONE: "officePhone",
|
|
58
|
+
PBX_DN: "pbxDn",
|
|
59
|
+
PICTURE: "picture",
|
|
60
|
+
ROLE: "role",
|
|
61
|
+
SOURCE_ID: "sourceId",
|
|
62
|
+
};
|
|
63
|
+
export const PbxColleaguesSearchStrategy = {
|
|
64
|
+
CONTAIN: "contain",
|
|
65
|
+
STARTS_WITH: "startsWith",
|
|
66
|
+
};
|
|
33
67
|
export class BotApiKeyNotFoundException extends __BaseException {
|
|
34
68
|
constructor(opts) {
|
|
35
69
|
super({
|
|
@@ -105,6 +105,26 @@ export const se_CreateBotApiKeyCommand = async (input, context) => {
|
|
|
105
105
|
.b(body);
|
|
106
106
|
return b.build();
|
|
107
107
|
};
|
|
108
|
+
export const se_CreateSystemBotCommand = async (input, context) => {
|
|
109
|
+
const b = rb(input, context);
|
|
110
|
+
const headers = {
|
|
111
|
+
'content-type': 'application/json',
|
|
112
|
+
};
|
|
113
|
+
b.bp("/v2/users/system-bots");
|
|
114
|
+
const query = map({
|
|
115
|
+
[_c]: [, input[_c]],
|
|
116
|
+
});
|
|
117
|
+
let body;
|
|
118
|
+
body = JSON.stringify(take(input, {
|
|
119
|
+
'name': [],
|
|
120
|
+
'picture': [],
|
|
121
|
+
}));
|
|
122
|
+
b.m("POST")
|
|
123
|
+
.h(headers)
|
|
124
|
+
.q(query)
|
|
125
|
+
.b(body);
|
|
126
|
+
return b.build();
|
|
127
|
+
};
|
|
108
128
|
export const se_DeleteBotCommand = async (input, context) => {
|
|
109
129
|
const b = rb(input, context);
|
|
110
130
|
const headers = {};
|
|
@@ -219,11 +239,14 @@ export const se_GetUserPbxLinkSuggestionV1Command = async (input, context) => {
|
|
|
219
239
|
export const se_GetUserSettingsCommand = async (input, context) => {
|
|
220
240
|
const b = rb(input, context);
|
|
221
241
|
const headers = {};
|
|
222
|
-
b.bp("/v2/users/settings
|
|
223
|
-
|
|
242
|
+
b.bp("/v2/users/settings");
|
|
243
|
+
const query = map({
|
|
244
|
+
[_u]: [, input[_uI]],
|
|
245
|
+
});
|
|
224
246
|
let body;
|
|
225
247
|
b.m("GET")
|
|
226
248
|
.h(headers)
|
|
249
|
+
.q(query)
|
|
227
250
|
.b(body);
|
|
228
251
|
return b.build();
|
|
229
252
|
};
|
|
@@ -276,6 +299,25 @@ export const se_PartialUpdateUserSettingsCommand = async (input, context) => {
|
|
|
276
299
|
.b(body);
|
|
277
300
|
return b.build();
|
|
278
301
|
};
|
|
302
|
+
export const se_QueryColleaguesCommand = async (input, context) => {
|
|
303
|
+
const b = rb(input, context);
|
|
304
|
+
const headers = {
|
|
305
|
+
'content-type': 'application/json',
|
|
306
|
+
};
|
|
307
|
+
b.bp("/v2/users/query-colleagues");
|
|
308
|
+
const query = map({
|
|
309
|
+
[_c]: [, input[_c]],
|
|
310
|
+
});
|
|
311
|
+
let body;
|
|
312
|
+
body = JSON.stringify(take(input, {
|
|
313
|
+
'query': _ => _json(_),
|
|
314
|
+
}));
|
|
315
|
+
b.m("POST")
|
|
316
|
+
.h(headers)
|
|
317
|
+
.q(query)
|
|
318
|
+
.b(body);
|
|
319
|
+
return b.build();
|
|
320
|
+
};
|
|
279
321
|
export const se_QueryUserCommand = async (input, context) => {
|
|
280
322
|
const b = rb(input, context);
|
|
281
323
|
const headers = {
|
|
@@ -495,6 +537,20 @@ export const de_CreateBotApiKeyCommand = async (output, context) => {
|
|
|
495
537
|
Object.assign(contents, doc);
|
|
496
538
|
return contents;
|
|
497
539
|
};
|
|
540
|
+
export const de_CreateSystemBotCommand = async (output, context) => {
|
|
541
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
542
|
+
return de_CommandError(output, context);
|
|
543
|
+
}
|
|
544
|
+
const contents = map({
|
|
545
|
+
$metadata: deserializeMetadata(output),
|
|
546
|
+
});
|
|
547
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
548
|
+
const doc = take(data, {
|
|
549
|
+
'id': __expectString,
|
|
550
|
+
});
|
|
551
|
+
Object.assign(contents, doc);
|
|
552
|
+
return contents;
|
|
553
|
+
};
|
|
498
554
|
export const de_DeleteBotCommand = async (output, context) => {
|
|
499
555
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
500
556
|
return de_CommandError(output, context);
|
|
@@ -655,6 +711,20 @@ export const de_PartialUpdateUserSettingsCommand = async (output, context) => {
|
|
|
655
711
|
Object.assign(contents, doc);
|
|
656
712
|
return contents;
|
|
657
713
|
};
|
|
714
|
+
export const de_QueryColleaguesCommand = async (output, context) => {
|
|
715
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
716
|
+
return de_CommandError(output, context);
|
|
717
|
+
}
|
|
718
|
+
const contents = map({
|
|
719
|
+
$metadata: deserializeMetadata(output),
|
|
720
|
+
});
|
|
721
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
722
|
+
const doc = take(data, {
|
|
723
|
+
'colleagues': _json,
|
|
724
|
+
});
|
|
725
|
+
Object.assign(contents, doc);
|
|
726
|
+
return contents;
|
|
727
|
+
};
|
|
658
728
|
export const de_QueryUserCommand = async (output, context) => {
|
|
659
729
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
660
730
|
return de_CommandError(output, context);
|
|
@@ -996,6 +1066,8 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
996
1066
|
const _c = "company";
|
|
997
1067
|
const _e = "email";
|
|
998
1068
|
const _t = "token";
|
|
1069
|
+
const _u = "user";
|
|
1070
|
+
const _uI = "userId";
|
|
999
1071
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
|
|
1000
1072
|
if (encoded.length) {
|
|
1001
1073
|
return JSON.parse(encoded);
|
package/dist-types/Users.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { BatchGetUsersPbxLinkDataV1CommandInput, BatchGetUsersPbxLinkDataV1Comma
|
|
|
5
5
|
import { ChangeUserEmailCommandInput, ChangeUserEmailCommandOutput } from "./commands/ChangeUserEmailCommand";
|
|
6
6
|
import { CreateBotApiKeyCommandInput, CreateBotApiKeyCommandOutput } from "./commands/CreateBotApiKeyCommand";
|
|
7
7
|
import { CreateBotCommandInput, CreateBotCommandOutput } from "./commands/CreateBotCommand";
|
|
8
|
+
import { CreateSystemBotCommandInput, CreateSystemBotCommandOutput } from "./commands/CreateSystemBotCommand";
|
|
8
9
|
import { DeleteBotApiKeyCommandInput, DeleteBotApiKeyCommandOutput } from "./commands/DeleteBotApiKeyCommand";
|
|
9
10
|
import { DeleteBotCommandInput, DeleteBotCommandOutput } from "./commands/DeleteBotCommand";
|
|
10
11
|
import { GetBotCallbackCommandInput, GetBotCallbackCommandOutput } from "./commands/GetBotCallbackCommand";
|
|
@@ -17,6 +18,7 @@ import { GetUserSettingsCommandInput, GetUserSettingsCommandOutput } from "./com
|
|
|
17
18
|
import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
|
|
18
19
|
import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
|
|
19
20
|
import { PartialUpdateUserSettingsCommandInput, PartialUpdateUserSettingsCommandOutput } from "./commands/PartialUpdateUserSettingsCommand";
|
|
21
|
+
import { QueryColleaguesCommandInput, QueryColleaguesCommandOutput } from "./commands/QueryColleaguesCommand";
|
|
20
22
|
import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
|
|
21
23
|
import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
|
|
22
24
|
import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
|
|
@@ -63,6 +65,12 @@ export interface Users {
|
|
|
63
65
|
createBotApiKey(args: CreateBotApiKeyCommandInput, options?: __HttpHandlerOptions): Promise<CreateBotApiKeyCommandOutput>;
|
|
64
66
|
createBotApiKey(args: CreateBotApiKeyCommandInput, cb: (err: any, data?: CreateBotApiKeyCommandOutput) => void): void;
|
|
65
67
|
createBotApiKey(args: CreateBotApiKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateBotApiKeyCommandOutput) => void): void;
|
|
68
|
+
/**
|
|
69
|
+
* @see {@link CreateSystemBotCommand}
|
|
70
|
+
*/
|
|
71
|
+
createSystemBot(args: CreateSystemBotCommandInput, options?: __HttpHandlerOptions): Promise<CreateSystemBotCommandOutput>;
|
|
72
|
+
createSystemBot(args: CreateSystemBotCommandInput, cb: (err: any, data?: CreateSystemBotCommandOutput) => void): void;
|
|
73
|
+
createSystemBot(args: CreateSystemBotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSystemBotCommandOutput) => void): void;
|
|
66
74
|
/**
|
|
67
75
|
* @see {@link DeleteBotCommand}
|
|
68
76
|
*/
|
|
@@ -116,6 +124,7 @@ export interface Users {
|
|
|
116
124
|
/**
|
|
117
125
|
* @see {@link GetUserSettingsCommand}
|
|
118
126
|
*/
|
|
127
|
+
getUserSettings(): Promise<GetUserSettingsCommandOutput>;
|
|
119
128
|
getUserSettings(args: GetUserSettingsCommandInput, options?: __HttpHandlerOptions): Promise<GetUserSettingsCommandOutput>;
|
|
120
129
|
getUserSettings(args: GetUserSettingsCommandInput, cb: (err: any, data?: GetUserSettingsCommandOutput) => void): void;
|
|
121
130
|
getUserSettings(args: GetUserSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserSettingsCommandOutput) => void): void;
|
|
@@ -138,6 +147,13 @@ export interface Users {
|
|
|
138
147
|
partialUpdateUserSettings(args: PartialUpdateUserSettingsCommandInput, options?: __HttpHandlerOptions): Promise<PartialUpdateUserSettingsCommandOutput>;
|
|
139
148
|
partialUpdateUserSettings(args: PartialUpdateUserSettingsCommandInput, cb: (err: any, data?: PartialUpdateUserSettingsCommandOutput) => void): void;
|
|
140
149
|
partialUpdateUserSettings(args: PartialUpdateUserSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PartialUpdateUserSettingsCommandOutput) => void): void;
|
|
150
|
+
/**
|
|
151
|
+
* @see {@link QueryColleaguesCommand}
|
|
152
|
+
*/
|
|
153
|
+
queryColleagues(): Promise<QueryColleaguesCommandOutput>;
|
|
154
|
+
queryColleagues(args: QueryColleaguesCommandInput, options?: __HttpHandlerOptions): Promise<QueryColleaguesCommandOutput>;
|
|
155
|
+
queryColleagues(args: QueryColleaguesCommandInput, cb: (err: any, data?: QueryColleaguesCommandOutput) => void): void;
|
|
156
|
+
queryColleagues(args: QueryColleaguesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryColleaguesCommandOutput) => void): void;
|
|
141
157
|
/**
|
|
142
158
|
* @see {@link QueryUserCommand}
|
|
143
159
|
*/
|
|
@@ -4,6 +4,7 @@ import { BatchGetUsersPbxLinkDataV1CommandInput, BatchGetUsersPbxLinkDataV1Comma
|
|
|
4
4
|
import { ChangeUserEmailCommandInput, ChangeUserEmailCommandOutput } from "./commands/ChangeUserEmailCommand";
|
|
5
5
|
import { CreateBotApiKeyCommandInput, CreateBotApiKeyCommandOutput } from "./commands/CreateBotApiKeyCommand";
|
|
6
6
|
import { CreateBotCommandInput, CreateBotCommandOutput } from "./commands/CreateBotCommand";
|
|
7
|
+
import { CreateSystemBotCommandInput, CreateSystemBotCommandOutput } from "./commands/CreateSystemBotCommand";
|
|
7
8
|
import { DeleteBotApiKeyCommandInput, DeleteBotApiKeyCommandOutput } from "./commands/DeleteBotApiKeyCommand";
|
|
8
9
|
import { DeleteBotCommandInput, DeleteBotCommandOutput } from "./commands/DeleteBotCommand";
|
|
9
10
|
import { GetBotCallbackCommandInput, GetBotCallbackCommandOutput } from "./commands/GetBotCallbackCommand";
|
|
@@ -16,6 +17,7 @@ import { GetUserSettingsCommandInput, GetUserSettingsCommandOutput } from "./com
|
|
|
16
17
|
import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
|
|
17
18
|
import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
|
|
18
19
|
import { PartialUpdateUserSettingsCommandInput, PartialUpdateUserSettingsCommandOutput } from "./commands/PartialUpdateUserSettingsCommand";
|
|
20
|
+
import { QueryColleaguesCommandInput, QueryColleaguesCommandOutput } from "./commands/QueryColleaguesCommand";
|
|
19
21
|
import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
|
|
20
22
|
import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
|
|
21
23
|
import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
|
|
@@ -35,11 +37,11 @@ export { __Client };
|
|
|
35
37
|
/**
|
|
36
38
|
* @public
|
|
37
39
|
*/
|
|
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;
|
|
40
|
+
export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | CreateSystemBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | GetUserSettingsCommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | PartialUpdateUserSettingsCommandInput | QueryColleaguesCommandInput | QueryUserCommandInput | QueryUsersCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput;
|
|
39
41
|
/**
|
|
40
42
|
* @public
|
|
41
43
|
*/
|
|
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;
|
|
44
|
+
export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | CreateSystemBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | GetUserSettingsCommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | PartialUpdateUserSettingsCommandOutput | QueryColleaguesCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput;
|
|
43
45
|
/**
|
|
44
46
|
* @public
|
|
45
47
|
*/
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { CreateSystemBotInput, CreateSystemBotOutput } 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 CreateSystemBotCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateSystemBotCommandInput extends CreateSystemBotInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateSystemBotCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateSystemBotCommandOutput extends CreateSystemBotOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateSystemBotCommand_base: {
|
|
25
|
+
new (input: CreateSystemBotCommandInput): import("@smithy/smithy-client").CommandImpl<CreateSystemBotCommandInput, CreateSystemBotCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CreateSystemBotCommandInput): import("@smithy/smithy-client").CommandImpl<CreateSystemBotCommandInput, CreateSystemBotCommandOutput, 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, CreateSystemBotCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
36
|
+
* // const { UsersClient, CreateSystemBotCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
37
|
+
* const client = new UsersClient(config);
|
|
38
|
+
* const input = { // CreateSystemBotInput
|
|
39
|
+
* company: "STRING_VALUE",
|
|
40
|
+
* name: "STRING_VALUE", // required
|
|
41
|
+
* picture: "STRING_VALUE",
|
|
42
|
+
* };
|
|
43
|
+
* const command = new CreateSystemBotCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // CreateSystemBotOutput
|
|
46
|
+
* // id: "STRING_VALUE", // required
|
|
47
|
+
* // };
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param CreateSystemBotCommandInput - {@link CreateSystemBotCommandInput}
|
|
52
|
+
* @returns {@link CreateSystemBotCommandOutput}
|
|
53
|
+
* @see {@link CreateSystemBotCommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link CreateSystemBotCommandOutput} for command's `response` shape.
|
|
55
|
+
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link ValidationException} (client fault)
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link UsersServiceException}
|
|
62
|
+
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
export declare class CreateSystemBotCommand extends CreateSystemBotCommand_base {
|
|
66
|
+
}
|
|
@@ -23,7 +23,7 @@ export interface GetUserSettingsCommandOutput extends GetUserSettingsOutput, __M
|
|
|
23
23
|
}
|
|
24
24
|
declare const GetUserSettingsCommand_base: {
|
|
25
25
|
new (input: GetUserSettingsCommandInput): import("@smithy/smithy-client").CommandImpl<GetUserSettingsCommandInput, GetUserSettingsCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (
|
|
26
|
+
new (...[input]: [] | [GetUserSettingsCommandInput]): import("@smithy/smithy-client").CommandImpl<GetUserSettingsCommandInput, GetUserSettingsCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
@@ -35,7 +35,7 @@ declare const GetUserSettingsCommand_base: {
|
|
|
35
35
|
* // const { UsersClient, GetUserSettingsCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
36
36
|
* const client = new UsersClient(config);
|
|
37
37
|
* const input = { // GetUserSettingsInput
|
|
38
|
-
* userId: "STRING_VALUE",
|
|
38
|
+
* userId: "STRING_VALUE",
|
|
39
39
|
* };
|
|
40
40
|
* const command = new GetUserSettingsCommand(input);
|
|
41
41
|
* const response = await client.send(command);
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { QueryColleaguesInput, QueryColleaguesOutput } 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 QueryColleaguesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface QueryColleaguesCommandInput extends QueryColleaguesInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link QueryColleaguesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface QueryColleaguesCommandOutput extends QueryColleaguesOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const QueryColleaguesCommand_base: {
|
|
25
|
+
new (input: QueryColleaguesCommandInput): import("@smithy/smithy-client").CommandImpl<QueryColleaguesCommandInput, QueryColleaguesCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [QueryColleaguesCommandInput]): import("@smithy/smithy-client").CommandImpl<QueryColleaguesCommandInput, QueryColleaguesCommandOutput, 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, QueryColleaguesCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
36
|
+
* // const { UsersClient, QueryColleaguesCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
37
|
+
* const client = new UsersClient(config);
|
|
38
|
+
* const input = { // QueryColleaguesInput
|
|
39
|
+
* company: "STRING_VALUE",
|
|
40
|
+
* query: { // QueryColleaguesParameters
|
|
41
|
+
* id: [ // ColleaguesFilterList
|
|
42
|
+
* "STRING_VALUE",
|
|
43
|
+
* ],
|
|
44
|
+
* extension: [
|
|
45
|
+
* "STRING_VALUE",
|
|
46
|
+
* ],
|
|
47
|
+
* officePhone: [
|
|
48
|
+
* "STRING_VALUE",
|
|
49
|
+
* ],
|
|
50
|
+
* mobilePhone: [
|
|
51
|
+
* "STRING_VALUE",
|
|
52
|
+
* ],
|
|
53
|
+
* name: [
|
|
54
|
+
* "STRING_VALUE",
|
|
55
|
+
* ],
|
|
56
|
+
* email: "<ColleaguesFilterList>",
|
|
57
|
+
* department: "<ColleaguesFilterList>",
|
|
58
|
+
* search: "STRING_VALUE",
|
|
59
|
+
* searchFields: [ // PbxColleaguesQueryFieldList
|
|
60
|
+
* "extension" || "officePhone" || "mobilePhone" || "name" || "email" || "role" || "groupDn" || "language" || "dialplan" || "faxDialplan" || "department" || "login" || "id" || "pbxDn" || "picture" || "sourceId" || "licenseType",
|
|
61
|
+
* ],
|
|
62
|
+
* searchStrategy: "contain" || "startsWith",
|
|
63
|
+
* sort: [
|
|
64
|
+
* "extension" || "officePhone" || "mobilePhone" || "name" || "email" || "role" || "groupDn" || "language" || "dialplan" || "faxDialplan" || "department" || "login" || "id" || "pbxDn" || "picture" || "sourceId" || "licenseType",
|
|
65
|
+
* ],
|
|
66
|
+
* start: Number("int"),
|
|
67
|
+
* count: Number("int"),
|
|
68
|
+
* dir: "asc" || "desc",
|
|
69
|
+
* },
|
|
70
|
+
* };
|
|
71
|
+
* const command = new QueryColleaguesCommand(input);
|
|
72
|
+
* const response = await client.send(command);
|
|
73
|
+
* // { // QueryColleaguesOutput
|
|
74
|
+
* // colleagues: [ // QueryColleaguesOutputItemList // required
|
|
75
|
+
* // { // QueryColleaguesOutputItem
|
|
76
|
+
* // user: { // User
|
|
77
|
+
* // id: "STRING_VALUE", // required
|
|
78
|
+
* // name: "STRING_VALUE",
|
|
79
|
+
* // email: "STRING_VALUE",
|
|
80
|
+
* // phone: "STRING_VALUE",
|
|
81
|
+
* // picture: "STRING_VALUE",
|
|
82
|
+
* // locale: "STRING_VALUE",
|
|
83
|
+
* // timeZone: "STRING_VALUE",
|
|
84
|
+
* // company: "STRING_VALUE",
|
|
85
|
+
* // bot: true || false,
|
|
86
|
+
* // pbxDomain: "STRING_VALUE",
|
|
87
|
+
* // pbxPort: "STRING_VALUE",
|
|
88
|
+
* // pbxExtension: "STRING_VALUE",
|
|
89
|
+
* // pbxSerial: "STRING_VALUE",
|
|
90
|
+
* // pbxUserId: "STRING_VALUE",
|
|
91
|
+
* // createdAt: "STRING_VALUE",
|
|
92
|
+
* // updatedAt: "STRING_VALUE",
|
|
93
|
+
* // },
|
|
94
|
+
* // colleague: { // PbxColleague
|
|
95
|
+
* // id: "STRING_VALUE", // required
|
|
96
|
+
* // name: "STRING_VALUE",
|
|
97
|
+
* // login: "STRING_VALUE",
|
|
98
|
+
* // extension: "STRING_VALUE", // required
|
|
99
|
+
* // officePhone: "STRING_VALUE",
|
|
100
|
+
* // mobilePhone: "STRING_VALUE",
|
|
101
|
+
* // faxNumber: "STRING_VALUE",
|
|
102
|
+
* // email: "STRING_VALUE",
|
|
103
|
+
* // pbxDn: "STRING_VALUE", // required
|
|
104
|
+
* // pbx: "STRING_VALUE", // required
|
|
105
|
+
* // role: "admin" || "user" || "fax" || "park_orbit" || "room", // required
|
|
106
|
+
* // groupName: "STRING_VALUE", // required
|
|
107
|
+
* // groupDn: "STRING_VALUE", // required
|
|
108
|
+
* // language: "STRING_VALUE", // required
|
|
109
|
+
* // dialplan: "STRING_VALUE", // required
|
|
110
|
+
* // faxDialplan: "STRING_VALUE", // required
|
|
111
|
+
* // department: "STRING_VALUE",
|
|
112
|
+
* // picture: "STRING_VALUE", // required
|
|
113
|
+
* // sourceId: "STRING_VALUE",
|
|
114
|
+
* // licenseType: "basic" || "essential" || "business" || "premium" || "wizyconf", // required
|
|
115
|
+
* // jid: "STRING_VALUE", // required
|
|
116
|
+
* // },
|
|
117
|
+
* // },
|
|
118
|
+
* // ],
|
|
119
|
+
* // };
|
|
120
|
+
*
|
|
121
|
+
* ```
|
|
122
|
+
*
|
|
123
|
+
* @param QueryColleaguesCommandInput - {@link QueryColleaguesCommandInput}
|
|
124
|
+
* @returns {@link QueryColleaguesCommandOutput}
|
|
125
|
+
* @see {@link QueryColleaguesCommandInput} for command's `input` shape.
|
|
126
|
+
* @see {@link QueryColleaguesCommandOutput} for command's `response` shape.
|
|
127
|
+
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
128
|
+
*
|
|
129
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
130
|
+
*
|
|
131
|
+
* @throws {@link ValidationException} (client fault)
|
|
132
|
+
*
|
|
133
|
+
* @throws {@link UsersServiceException}
|
|
134
|
+
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
135
|
+
*
|
|
136
|
+
*/
|
|
137
|
+
export declare class QueryColleaguesCommand extends QueryColleaguesCommand_base {
|
|
138
|
+
}
|
|
@@ -4,6 +4,7 @@ export * from "./BatchGetUsersPbxLinkDataV1Command";
|
|
|
4
4
|
export * from "./ChangeUserEmailCommand";
|
|
5
5
|
export * from "./CreateBotCommand";
|
|
6
6
|
export * from "./CreateBotApiKeyCommand";
|
|
7
|
+
export * from "./CreateSystemBotCommand";
|
|
7
8
|
export * from "./DeleteBotCommand";
|
|
8
9
|
export * from "./DeleteBotApiKeyCommand";
|
|
9
10
|
export * from "./GetBotCommand";
|
|
@@ -16,6 +17,7 @@ export * from "./GetUserSettingsCommand";
|
|
|
16
17
|
export * from "./ListBotApiKeysCommand";
|
|
17
18
|
export * from "./ListBotsCommand";
|
|
18
19
|
export * from "./PartialUpdateUserSettingsCommand";
|
|
20
|
+
export * from "./QueryColleaguesCommand";
|
|
19
21
|
export * from "./QueryUserCommand";
|
|
20
22
|
export * from "./QueryUsersCommand";
|
|
21
23
|
export * from "./UpdateBotCommand";
|
|
@@ -106,6 +106,98 @@ export interface BotWebhookEndpoint {
|
|
|
106
106
|
url: string;
|
|
107
107
|
secret: string;
|
|
108
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* @public
|
|
111
|
+
* @enum
|
|
112
|
+
*/
|
|
113
|
+
export declare const PbxColleagueRole: {
|
|
114
|
+
readonly ADMIN: "admin";
|
|
115
|
+
readonly FAX: "fax";
|
|
116
|
+
readonly PARK_ORBIT: "park_orbit";
|
|
117
|
+
readonly ROOM: "room";
|
|
118
|
+
readonly USER: "user";
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* @public
|
|
122
|
+
*/
|
|
123
|
+
export type PbxColleagueRole = typeof PbxColleagueRole[keyof typeof PbxColleagueRole];
|
|
124
|
+
/**
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
127
|
+
export interface PbxColleague {
|
|
128
|
+
id: string;
|
|
129
|
+
name?: string;
|
|
130
|
+
login?: string;
|
|
131
|
+
extension: string;
|
|
132
|
+
officePhone?: string;
|
|
133
|
+
mobilePhone?: string;
|
|
134
|
+
faxNumber?: string;
|
|
135
|
+
email?: string;
|
|
136
|
+
pbxDn: string;
|
|
137
|
+
pbx: string;
|
|
138
|
+
role: PbxColleagueRole;
|
|
139
|
+
groupName: string;
|
|
140
|
+
groupDn: string;
|
|
141
|
+
language: string;
|
|
142
|
+
dialplan: string;
|
|
143
|
+
faxDialplan: string;
|
|
144
|
+
department?: string;
|
|
145
|
+
picture: string;
|
|
146
|
+
sourceId?: string;
|
|
147
|
+
licenseType: PbxLicenseType;
|
|
148
|
+
jid: string;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* @public
|
|
152
|
+
* @enum
|
|
153
|
+
*/
|
|
154
|
+
export declare const GetPbxColleaguesDir: {
|
|
155
|
+
readonly ASC: "asc";
|
|
156
|
+
readonly DESC: "desc";
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* @public
|
|
160
|
+
*/
|
|
161
|
+
export type GetPbxColleaguesDir = typeof GetPbxColleaguesDir[keyof typeof GetPbxColleaguesDir];
|
|
162
|
+
/**
|
|
163
|
+
* @public
|
|
164
|
+
* @enum
|
|
165
|
+
*/
|
|
166
|
+
export declare const PbxColleaguesQueryField: {
|
|
167
|
+
readonly DEPARTMENT: "department";
|
|
168
|
+
readonly DIALPLAN: "dialplan";
|
|
169
|
+
readonly EMAIL: "email";
|
|
170
|
+
readonly EXTENSION: "extension";
|
|
171
|
+
readonly FAX_DIALPLAN: "faxDialplan";
|
|
172
|
+
readonly GROUP_DN: "groupDn";
|
|
173
|
+
readonly ID: "id";
|
|
174
|
+
readonly LANGUAGE: "language";
|
|
175
|
+
readonly LICENSE_TYPE: "licenseType";
|
|
176
|
+
readonly LOGIN: "login";
|
|
177
|
+
readonly MOBILE_PHONE: "mobilePhone";
|
|
178
|
+
readonly NAME: "name";
|
|
179
|
+
readonly OFFICE_PHONE: "officePhone";
|
|
180
|
+
readonly PBX_DN: "pbxDn";
|
|
181
|
+
readonly PICTURE: "picture";
|
|
182
|
+
readonly ROLE: "role";
|
|
183
|
+
readonly SOURCE_ID: "sourceId";
|
|
184
|
+
};
|
|
185
|
+
/**
|
|
186
|
+
* @public
|
|
187
|
+
*/
|
|
188
|
+
export type PbxColleaguesQueryField = typeof PbxColleaguesQueryField[keyof typeof PbxColleaguesQueryField];
|
|
189
|
+
/**
|
|
190
|
+
* @public
|
|
191
|
+
* @enum
|
|
192
|
+
*/
|
|
193
|
+
export declare const PbxColleaguesSearchStrategy: {
|
|
194
|
+
readonly CONTAIN: "contain";
|
|
195
|
+
readonly STARTS_WITH: "startsWith";
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* @public
|
|
199
|
+
*/
|
|
200
|
+
export type PbxColleaguesSearchStrategy = typeof PbxColleaguesSearchStrategy[keyof typeof PbxColleaguesSearchStrategy];
|
|
109
201
|
/**
|
|
110
202
|
* @public
|
|
111
203
|
*/
|
|
@@ -612,6 +704,28 @@ export interface CreateBotApiKeyOutput {
|
|
|
612
704
|
bot: Bot;
|
|
613
705
|
key: BotApiKey;
|
|
614
706
|
}
|
|
707
|
+
/**
|
|
708
|
+
* @public
|
|
709
|
+
*/
|
|
710
|
+
export interface CreateSystemBotInput {
|
|
711
|
+
/**
|
|
712
|
+
* The unique identifier of the tenant when a service token is used.
|
|
713
|
+
* @public
|
|
714
|
+
*/
|
|
715
|
+
company?: string;
|
|
716
|
+
name: string;
|
|
717
|
+
/**
|
|
718
|
+
* A URL pointing to the bot's avatar.
|
|
719
|
+
* @public
|
|
720
|
+
*/
|
|
721
|
+
picture?: string;
|
|
722
|
+
}
|
|
723
|
+
/**
|
|
724
|
+
* @public
|
|
725
|
+
*/
|
|
726
|
+
export interface CreateSystemBotOutput {
|
|
727
|
+
id: string;
|
|
728
|
+
}
|
|
615
729
|
/**
|
|
616
730
|
* @public
|
|
617
731
|
*/
|
|
@@ -773,7 +887,7 @@ export interface GetUserSettingsInput {
|
|
|
773
887
|
* The unique identifier of the user (Cloud ID, not ID of the user on PBX).
|
|
774
888
|
* @public
|
|
775
889
|
*/
|
|
776
|
-
userId
|
|
890
|
+
userId?: string;
|
|
777
891
|
}
|
|
778
892
|
/**
|
|
779
893
|
* @public
|
|
@@ -857,6 +971,61 @@ export interface PartialUpdateUserSettingsInput {
|
|
|
857
971
|
export interface PartialUpdateUserSettingsOutput {
|
|
858
972
|
emailNotifications?: EmailNotificationsSettings;
|
|
859
973
|
}
|
|
974
|
+
/**
|
|
975
|
+
* @public
|
|
976
|
+
*/
|
|
977
|
+
export interface QueryColleaguesParameters {
|
|
978
|
+
id?: (string)[];
|
|
979
|
+
extension?: (string)[];
|
|
980
|
+
officePhone?: (string)[];
|
|
981
|
+
mobilePhone?: (string)[];
|
|
982
|
+
name?: (string)[];
|
|
983
|
+
email?: (string)[];
|
|
984
|
+
department?: (string)[];
|
|
985
|
+
search?: string;
|
|
986
|
+
searchFields?: (PbxColleaguesQueryField)[];
|
|
987
|
+
searchStrategy?: PbxColleaguesSearchStrategy;
|
|
988
|
+
sort?: (PbxColleaguesQueryField)[];
|
|
989
|
+
start?: number;
|
|
990
|
+
count?: number;
|
|
991
|
+
dir?: GetPbxColleaguesDir;
|
|
992
|
+
}
|
|
993
|
+
/**
|
|
994
|
+
* @public
|
|
995
|
+
*/
|
|
996
|
+
export interface QueryColleaguesInput {
|
|
997
|
+
/**
|
|
998
|
+
* The unique identifier of the tenant when a service token is used.
|
|
999
|
+
* @public
|
|
1000
|
+
*/
|
|
1001
|
+
company?: string;
|
|
1002
|
+
query?: QueryColleaguesParameters;
|
|
1003
|
+
}
|
|
1004
|
+
/**
|
|
1005
|
+
* @public
|
|
1006
|
+
*/
|
|
1007
|
+
export interface QueryColleaguesOutputItem {
|
|
1008
|
+
/**
|
|
1009
|
+
* A user object associated on the cloud for this colleague that is registered on the WMS.
|
|
1010
|
+
* @public
|
|
1011
|
+
*/
|
|
1012
|
+
user?: User;
|
|
1013
|
+
/**
|
|
1014
|
+
* A colleague object returned by the PBX.
|
|
1015
|
+
* @public
|
|
1016
|
+
*/
|
|
1017
|
+
colleague: PbxColleague;
|
|
1018
|
+
}
|
|
1019
|
+
/**
|
|
1020
|
+
* @public
|
|
1021
|
+
*/
|
|
1022
|
+
export interface QueryColleaguesOutput {
|
|
1023
|
+
/**
|
|
1024
|
+
* A list of users that exist in the platform and matches predicate if specified.
|
|
1025
|
+
* @public
|
|
1026
|
+
*/
|
|
1027
|
+
colleagues: (QueryColleaguesOutputItem)[];
|
|
1028
|
+
}
|
|
860
1029
|
/**
|
|
861
1030
|
* @public
|
|
862
1031
|
*/
|
|
@@ -4,6 +4,7 @@ import { BatchGetUsersPbxLinkDataV1CommandInput, BatchGetUsersPbxLinkDataV1Comma
|
|
|
4
4
|
import { ChangeUserEmailCommandInput, ChangeUserEmailCommandOutput } from "../commands/ChangeUserEmailCommand";
|
|
5
5
|
import { CreateBotApiKeyCommandInput, CreateBotApiKeyCommandOutput } from "../commands/CreateBotApiKeyCommand";
|
|
6
6
|
import { CreateBotCommandInput, CreateBotCommandOutput } from "../commands/CreateBotCommand";
|
|
7
|
+
import { CreateSystemBotCommandInput, CreateSystemBotCommandOutput } from "../commands/CreateSystemBotCommand";
|
|
7
8
|
import { DeleteBotApiKeyCommandInput, DeleteBotApiKeyCommandOutput } from "../commands/DeleteBotApiKeyCommand";
|
|
8
9
|
import { DeleteBotCommandInput, DeleteBotCommandOutput } from "../commands/DeleteBotCommand";
|
|
9
10
|
import { GetBotCallbackCommandInput, GetBotCallbackCommandOutput } from "../commands/GetBotCallbackCommand";
|
|
@@ -16,6 +17,7 @@ import { GetUserSettingsCommandInput, GetUserSettingsCommandOutput } from "../co
|
|
|
16
17
|
import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "../commands/ListBotApiKeysCommand";
|
|
17
18
|
import { ListBotsCommandInput, ListBotsCommandOutput } from "../commands/ListBotsCommand";
|
|
18
19
|
import { PartialUpdateUserSettingsCommandInput, PartialUpdateUserSettingsCommandOutput } from "../commands/PartialUpdateUserSettingsCommand";
|
|
20
|
+
import { QueryColleaguesCommandInput, QueryColleaguesCommandOutput } from "../commands/QueryColleaguesCommand";
|
|
19
21
|
import { QueryUserCommandInput, QueryUserCommandOutput } from "../commands/QueryUserCommand";
|
|
20
22
|
import { QueryUsersCommandInput, QueryUsersCommandOutput } from "../commands/QueryUsersCommand";
|
|
21
23
|
import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "../commands/UpdateBotCallbackCommand";
|
|
@@ -50,6 +52,10 @@ export declare const se_CreateBotCommand: (input: CreateBotCommandInput, context
|
|
|
50
52
|
* serializeAws_restJson1CreateBotApiKeyCommand
|
|
51
53
|
*/
|
|
52
54
|
export declare const se_CreateBotApiKeyCommand: (input: CreateBotApiKeyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
55
|
+
/**
|
|
56
|
+
* serializeAws_restJson1CreateSystemBotCommand
|
|
57
|
+
*/
|
|
58
|
+
export declare const se_CreateSystemBotCommand: (input: CreateSystemBotCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
53
59
|
/**
|
|
54
60
|
* serializeAws_restJson1DeleteBotCommand
|
|
55
61
|
*/
|
|
@@ -98,6 +104,10 @@ export declare const se_ListBotsCommand: (input: ListBotsCommandInput, context:
|
|
|
98
104
|
* serializeAws_restJson1PartialUpdateUserSettingsCommand
|
|
99
105
|
*/
|
|
100
106
|
export declare const se_PartialUpdateUserSettingsCommand: (input: PartialUpdateUserSettingsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
107
|
+
/**
|
|
108
|
+
* serializeAws_restJson1QueryColleaguesCommand
|
|
109
|
+
*/
|
|
110
|
+
export declare const se_QueryColleaguesCommand: (input: QueryColleaguesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
101
111
|
/**
|
|
102
112
|
* serializeAws_restJson1QueryUserCommand
|
|
103
113
|
*/
|
|
@@ -154,6 +164,10 @@ export declare const de_CreateBotCommand: (output: __HttpResponse, context: __Se
|
|
|
154
164
|
* deserializeAws_restJson1CreateBotApiKeyCommand
|
|
155
165
|
*/
|
|
156
166
|
export declare const de_CreateBotApiKeyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateBotApiKeyCommandOutput>;
|
|
167
|
+
/**
|
|
168
|
+
* deserializeAws_restJson1CreateSystemBotCommand
|
|
169
|
+
*/
|
|
170
|
+
export declare const de_CreateSystemBotCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateSystemBotCommandOutput>;
|
|
157
171
|
/**
|
|
158
172
|
* deserializeAws_restJson1DeleteBotCommand
|
|
159
173
|
*/
|
|
@@ -202,6 +216,10 @@ export declare const de_ListBotsCommand: (output: __HttpResponse, context: __Ser
|
|
|
202
216
|
* deserializeAws_restJson1PartialUpdateUserSettingsCommand
|
|
203
217
|
*/
|
|
204
218
|
export declare const de_PartialUpdateUserSettingsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PartialUpdateUserSettingsCommandOutput>;
|
|
219
|
+
/**
|
|
220
|
+
* deserializeAws_restJson1QueryColleaguesCommand
|
|
221
|
+
*/
|
|
222
|
+
export declare const de_QueryColleaguesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<QueryColleaguesCommandOutput>;
|
|
205
223
|
/**
|
|
206
224
|
* deserializeAws_restJson1QueryUserCommand
|
|
207
225
|
*/
|
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.28",
|
|
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
|
+
}
|