@wildix/xbees-users-client 1.0.27 → 1.0.29
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 +12 -0
- package/dist-cjs/commands/BatchGetUsersEmailNotificationsSettingsCommand.js +21 -0
- package/dist-cjs/commands/GetUserEmailNotificationsSettingsCommand.js +21 -0
- package/dist-cjs/commands/PartialUpdateUserEmailNotificationsSettingsCommand.js +21 -0
- package/dist-cjs/commands/UnsubscribeFromTranscriptionEmailNotificationsCommand.js +21 -0
- package/dist-cjs/commands/UnsubscribeFromUnreadEmailNotificationsCommand.js +21 -0
- package/dist-cjs/commands/UpdateUserEmailNotificationsSettingsCommand.js +21 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/protocols/Aws_restJson1.js +180 -2
- package/dist-es/Users.js +12 -0
- package/dist-es/commands/BatchGetUsersEmailNotificationsSettingsCommand.js +17 -0
- package/dist-es/commands/GetUserEmailNotificationsSettingsCommand.js +17 -0
- package/dist-es/commands/PartialUpdateUserEmailNotificationsSettingsCommand.js +17 -0
- package/dist-es/commands/UnsubscribeFromTranscriptionEmailNotificationsCommand.js +17 -0
- package/dist-es/commands/UnsubscribeFromUnreadEmailNotificationsCommand.js +17 -0
- package/dist-es/commands/UpdateUserEmailNotificationsSettingsCommand.js +17 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +166 -0
- package/dist-types/Users.d.ts +42 -0
- package/dist-types/UsersClient.d.ts +8 -2
- package/dist-types/commands/BatchGetUsersEmailNotificationsSettingsCommand.d.ts +71 -0
- package/dist-types/commands/GetUserEmailNotificationsSettingsCommand.d.ts +69 -0
- package/dist-types/commands/PartialUpdateUserEmailNotificationsSettingsCommand.d.ts +69 -0
- package/dist-types/commands/UnsubscribeFromTranscriptionEmailNotificationsCommand.d.ts +62 -0
- package/dist-types/commands/UnsubscribeFromUnreadEmailNotificationsCommand.d.ts +62 -0
- package/dist-types/commands/UpdateUserEmailNotificationsSettingsCommand.d.ts +69 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +121 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
- package/package.json +2 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_UpdateUserEmailNotificationsSettingsCommand, se_UpdateUserEmailNotificationsSettingsCommand, } 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 UpdateUserEmailNotificationsSettingsCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("Users", "UpdateUserEmailNotificationsSettings", {})
|
|
12
|
+
.n("UsersClient", "UpdateUserEmailNotificationsSettingsCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_UpdateUserEmailNotificationsSettingsCommand)
|
|
15
|
+
.de(de_UpdateUserEmailNotificationsSettingsCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./BatchGetUsersCommand";
|
|
2
|
+
export * from "./BatchGetUsersEmailNotificationsSettingsCommand";
|
|
2
3
|
export * from "./BatchGetUsersPbxLinkDataCommand";
|
|
3
4
|
export * from "./BatchGetUsersPbxLinkDataV1Command";
|
|
4
5
|
export * from "./ChangeUserEmailCommand";
|
|
@@ -10,16 +11,21 @@ export * from "./DeleteBotApiKeyCommand";
|
|
|
10
11
|
export * from "./GetBotCommand";
|
|
11
12
|
export * from "./GetBotCallbackCommand";
|
|
12
13
|
export * from "./GetUserCommand";
|
|
14
|
+
export * from "./GetUserEmailNotificationsSettingsCommand";
|
|
13
15
|
export * from "./GetUserPbxLinkDataCommand";
|
|
14
16
|
export * from "./GetUserPbxLinkSuggestionCommand";
|
|
15
17
|
export * from "./GetUserPbxLinkSuggestionV1Command";
|
|
16
18
|
export * from "./ListBotApiKeysCommand";
|
|
17
19
|
export * from "./ListBotsCommand";
|
|
20
|
+
export * from "./PartialUpdateUserEmailNotificationsSettingsCommand";
|
|
18
21
|
export * from "./QueryColleaguesCommand";
|
|
19
22
|
export * from "./QueryUserCommand";
|
|
20
23
|
export * from "./QueryUsersCommand";
|
|
24
|
+
export * from "./UnsubscribeFromTranscriptionEmailNotificationsCommand";
|
|
25
|
+
export * from "./UnsubscribeFromUnreadEmailNotificationsCommand";
|
|
21
26
|
export * from "./UpdateBotCommand";
|
|
22
27
|
export * from "./UpdateBotCallbackCommand";
|
|
28
|
+
export * from "./UpdateUserEmailNotificationsSettingsCommand";
|
|
23
29
|
export * from "./UploadPictureCommand";
|
|
24
30
|
export * from "./UploadPictureV1Command";
|
|
25
31
|
export * from "./VerifyBotSecretKeyCommand";
|
|
@@ -17,6 +17,21 @@ export const se_BatchGetUsersCommand = async (input, context) => {
|
|
|
17
17
|
.b(body);
|
|
18
18
|
return b.build();
|
|
19
19
|
};
|
|
20
|
+
export const se_BatchGetUsersEmailNotificationsSettingsCommand = async (input, context) => {
|
|
21
|
+
const b = rb(input, context);
|
|
22
|
+
const headers = {
|
|
23
|
+
'content-type': 'application/json',
|
|
24
|
+
};
|
|
25
|
+
b.bp("/v2/users/batch-get-users-email-notifications-settings");
|
|
26
|
+
let body;
|
|
27
|
+
body = JSON.stringify(take(input, {
|
|
28
|
+
'usersIds': _ => _json(_),
|
|
29
|
+
}));
|
|
30
|
+
b.m("POST")
|
|
31
|
+
.h(headers)
|
|
32
|
+
.b(body);
|
|
33
|
+
return b.build();
|
|
34
|
+
};
|
|
20
35
|
export const se_BatchGetUsersPbxLinkDataCommand = async (input, context) => {
|
|
21
36
|
const b = rb(input, context);
|
|
22
37
|
const headers = {
|
|
@@ -197,6 +212,17 @@ export const se_GetUserCommand = async (input, context) => {
|
|
|
197
212
|
.b(body);
|
|
198
213
|
return b.build();
|
|
199
214
|
};
|
|
215
|
+
export const se_GetUserEmailNotificationsSettingsCommand = async (input, context) => {
|
|
216
|
+
const b = rb(input, context);
|
|
217
|
+
const headers = {};
|
|
218
|
+
b.bp("/v2/users/cloud/{userId}/notifications/email");
|
|
219
|
+
b.p('userId', () => input.userId, '{userId}', false);
|
|
220
|
+
let body;
|
|
221
|
+
b.m("GET")
|
|
222
|
+
.h(headers)
|
|
223
|
+
.b(body);
|
|
224
|
+
return b.build();
|
|
225
|
+
};
|
|
200
226
|
export const se_GetUserPbxLinkDataCommand = async (input, context) => {
|
|
201
227
|
const b = rb(input, context);
|
|
202
228
|
const headers = {};
|
|
@@ -265,6 +291,23 @@ export const se_ListBotsCommand = async (input, context) => {
|
|
|
265
291
|
.b(body);
|
|
266
292
|
return b.build();
|
|
267
293
|
};
|
|
294
|
+
export const se_PartialUpdateUserEmailNotificationsSettingsCommand = async (input, context) => {
|
|
295
|
+
const b = rb(input, context);
|
|
296
|
+
const headers = {
|
|
297
|
+
'content-type': 'application/json',
|
|
298
|
+
};
|
|
299
|
+
b.bp("/v2/users/cloud/{userId}/notifications/email");
|
|
300
|
+
b.p('userId', () => input.userId, '{userId}', false);
|
|
301
|
+
let body;
|
|
302
|
+
body = JSON.stringify(take(input, {
|
|
303
|
+
'transcription': [],
|
|
304
|
+
'unread': [],
|
|
305
|
+
}));
|
|
306
|
+
b.m("PATCH")
|
|
307
|
+
.h(headers)
|
|
308
|
+
.b(body);
|
|
309
|
+
return b.build();
|
|
310
|
+
};
|
|
268
311
|
export const se_QueryColleaguesCommand = async (input, context) => {
|
|
269
312
|
const b = rb(input, context);
|
|
270
313
|
const headers = {
|
|
@@ -316,6 +359,36 @@ export const se_QueryUsersCommand = async (input, context) => {
|
|
|
316
359
|
.b(body);
|
|
317
360
|
return b.build();
|
|
318
361
|
};
|
|
362
|
+
export const se_UnsubscribeFromTranscriptionEmailNotificationsCommand = async (input, context) => {
|
|
363
|
+
const b = rb(input, context);
|
|
364
|
+
const headers = {
|
|
365
|
+
'content-type': 'application/json',
|
|
366
|
+
};
|
|
367
|
+
b.bp("/v2/users/unsubscribe-transcription-email-notifications");
|
|
368
|
+
let body;
|
|
369
|
+
body = JSON.stringify(take(input, {
|
|
370
|
+
'unsubscribeToken': [],
|
|
371
|
+
}));
|
|
372
|
+
b.m("POST")
|
|
373
|
+
.h(headers)
|
|
374
|
+
.b(body);
|
|
375
|
+
return b.build();
|
|
376
|
+
};
|
|
377
|
+
export const se_UnsubscribeFromUnreadEmailNotificationsCommand = async (input, context) => {
|
|
378
|
+
const b = rb(input, context);
|
|
379
|
+
const headers = {
|
|
380
|
+
'content-type': 'application/json',
|
|
381
|
+
};
|
|
382
|
+
b.bp("/v2/users/unsubscribe-unread-email-notifications");
|
|
383
|
+
let body;
|
|
384
|
+
body = JSON.stringify(take(input, {
|
|
385
|
+
'unsubscribeToken': [],
|
|
386
|
+
}));
|
|
387
|
+
b.m("POST")
|
|
388
|
+
.h(headers)
|
|
389
|
+
.b(body);
|
|
390
|
+
return b.build();
|
|
391
|
+
};
|
|
319
392
|
export const se_UpdateBotCommand = async (input, context) => {
|
|
320
393
|
const b = rb(input, context);
|
|
321
394
|
const headers = {
|
|
@@ -358,6 +431,23 @@ export const se_UpdateBotCallbackCommand = async (input, context) => {
|
|
|
358
431
|
.b(body);
|
|
359
432
|
return b.build();
|
|
360
433
|
};
|
|
434
|
+
export const se_UpdateUserEmailNotificationsSettingsCommand = async (input, context) => {
|
|
435
|
+
const b = rb(input, context);
|
|
436
|
+
const headers = {
|
|
437
|
+
'content-type': 'application/json',
|
|
438
|
+
};
|
|
439
|
+
b.bp("/v2/users/cloud/{userId}/notifications/email");
|
|
440
|
+
b.p('userId', () => input.userId, '{userId}', false);
|
|
441
|
+
let body;
|
|
442
|
+
body = JSON.stringify(take(input, {
|
|
443
|
+
'transcription': [],
|
|
444
|
+
'unread': [],
|
|
445
|
+
}));
|
|
446
|
+
b.m("POST")
|
|
447
|
+
.h(headers)
|
|
448
|
+
.b(body);
|
|
449
|
+
return b.build();
|
|
450
|
+
};
|
|
361
451
|
export const se_UploadPictureCommand = async (input, context) => {
|
|
362
452
|
const b = rb(input, context);
|
|
363
453
|
const headers = {
|
|
@@ -432,6 +522,20 @@ export const de_BatchGetUsersCommand = async (output, context) => {
|
|
|
432
522
|
Object.assign(contents, doc);
|
|
433
523
|
return contents;
|
|
434
524
|
};
|
|
525
|
+
export const de_BatchGetUsersEmailNotificationsSettingsCommand = async (output, context) => {
|
|
526
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
527
|
+
return de_CommandError(output, context);
|
|
528
|
+
}
|
|
529
|
+
const contents = map({
|
|
530
|
+
$metadata: deserializeMetadata(output),
|
|
531
|
+
});
|
|
532
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
533
|
+
const doc = take(data, {
|
|
534
|
+
'notifications': _json,
|
|
535
|
+
});
|
|
536
|
+
Object.assign(contents, doc);
|
|
537
|
+
return contents;
|
|
538
|
+
};
|
|
435
539
|
export const de_BatchGetUsersPbxLinkDataCommand = async (output, context) => {
|
|
436
540
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
437
541
|
return de_CommandError(output, context);
|
|
@@ -579,6 +683,20 @@ export const de_GetUserCommand = async (output, context) => {
|
|
|
579
683
|
Object.assign(contents, doc);
|
|
580
684
|
return contents;
|
|
581
685
|
};
|
|
686
|
+
export const de_GetUserEmailNotificationsSettingsCommand = async (output, context) => {
|
|
687
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
688
|
+
return de_CommandError(output, context);
|
|
689
|
+
}
|
|
690
|
+
const contents = map({
|
|
691
|
+
$metadata: deserializeMetadata(output),
|
|
692
|
+
});
|
|
693
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
694
|
+
const doc = take(data, {
|
|
695
|
+
'notifications': _json,
|
|
696
|
+
});
|
|
697
|
+
Object.assign(contents, doc);
|
|
698
|
+
return contents;
|
|
699
|
+
};
|
|
582
700
|
export const de_GetUserPbxLinkDataCommand = async (output, context) => {
|
|
583
701
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
584
702
|
return de_CommandError(output, context);
|
|
@@ -649,6 +767,20 @@ export const de_ListBotsCommand = async (output, context) => {
|
|
|
649
767
|
Object.assign(contents, doc);
|
|
650
768
|
return contents;
|
|
651
769
|
};
|
|
770
|
+
export const de_PartialUpdateUserEmailNotificationsSettingsCommand = async (output, context) => {
|
|
771
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
772
|
+
return de_CommandError(output, context);
|
|
773
|
+
}
|
|
774
|
+
const contents = map({
|
|
775
|
+
$metadata: deserializeMetadata(output),
|
|
776
|
+
});
|
|
777
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
778
|
+
const doc = take(data, {
|
|
779
|
+
'notifications': _json,
|
|
780
|
+
});
|
|
781
|
+
Object.assign(contents, doc);
|
|
782
|
+
return contents;
|
|
783
|
+
};
|
|
652
784
|
export const de_QueryColleaguesCommand = async (output, context) => {
|
|
653
785
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
654
786
|
return de_CommandError(output, context);
|
|
@@ -691,6 +823,26 @@ export const de_QueryUsersCommand = async (output, context) => {
|
|
|
691
823
|
Object.assign(contents, doc);
|
|
692
824
|
return contents;
|
|
693
825
|
};
|
|
826
|
+
export const de_UnsubscribeFromTranscriptionEmailNotificationsCommand = async (output, context) => {
|
|
827
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
828
|
+
return de_CommandError(output, context);
|
|
829
|
+
}
|
|
830
|
+
const contents = map({
|
|
831
|
+
$metadata: deserializeMetadata(output),
|
|
832
|
+
});
|
|
833
|
+
await collectBody(output.body, context);
|
|
834
|
+
return contents;
|
|
835
|
+
};
|
|
836
|
+
export const de_UnsubscribeFromUnreadEmailNotificationsCommand = async (output, context) => {
|
|
837
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
838
|
+
return de_CommandError(output, context);
|
|
839
|
+
}
|
|
840
|
+
const contents = map({
|
|
841
|
+
$metadata: deserializeMetadata(output),
|
|
842
|
+
});
|
|
843
|
+
await collectBody(output.body, context);
|
|
844
|
+
return contents;
|
|
845
|
+
};
|
|
694
846
|
export const de_UpdateBotCommand = async (output, context) => {
|
|
695
847
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
696
848
|
return de_CommandError(output, context);
|
|
@@ -719,6 +871,20 @@ export const de_UpdateBotCallbackCommand = async (output, context) => {
|
|
|
719
871
|
Object.assign(contents, doc);
|
|
720
872
|
return contents;
|
|
721
873
|
};
|
|
874
|
+
export const de_UpdateUserEmailNotificationsSettingsCommand = async (output, context) => {
|
|
875
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
876
|
+
return de_CommandError(output, context);
|
|
877
|
+
}
|
|
878
|
+
const contents = map({
|
|
879
|
+
$metadata: deserializeMetadata(output),
|
|
880
|
+
});
|
|
881
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
882
|
+
const doc = take(data, {
|
|
883
|
+
'notifications': _json,
|
|
884
|
+
});
|
|
885
|
+
Object.assign(contents, doc);
|
|
886
|
+
return contents;
|
|
887
|
+
};
|
|
722
888
|
export const de_UploadPictureCommand = async (output, context) => {
|
|
723
889
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
724
890
|
return de_CommandError(output, context);
|
package/dist-types/Users.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UsersClient } from "./UsersClient";
|
|
2
2
|
import { BatchGetUsersCommandInput, BatchGetUsersCommandOutput } from "./commands/BatchGetUsersCommand";
|
|
3
|
+
import { BatchGetUsersEmailNotificationsSettingsCommandInput, BatchGetUsersEmailNotificationsSettingsCommandOutput } from "./commands/BatchGetUsersEmailNotificationsSettingsCommand";
|
|
3
4
|
import { BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput } from "./commands/BatchGetUsersPbxLinkDataCommand";
|
|
4
5
|
import { BatchGetUsersPbxLinkDataV1CommandInput, BatchGetUsersPbxLinkDataV1CommandOutput } from "./commands/BatchGetUsersPbxLinkDataV1Command";
|
|
5
6
|
import { ChangeUserEmailCommandInput, ChangeUserEmailCommandOutput } from "./commands/ChangeUserEmailCommand";
|
|
@@ -11,16 +12,21 @@ import { DeleteBotCommandInput, DeleteBotCommandOutput } from "./commands/Delete
|
|
|
11
12
|
import { GetBotCallbackCommandInput, GetBotCallbackCommandOutput } from "./commands/GetBotCallbackCommand";
|
|
12
13
|
import { GetBotCommandInput, GetBotCommandOutput } from "./commands/GetBotCommand";
|
|
13
14
|
import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
|
|
15
|
+
import { GetUserEmailNotificationsSettingsCommandInput, GetUserEmailNotificationsSettingsCommandOutput } from "./commands/GetUserEmailNotificationsSettingsCommand";
|
|
14
16
|
import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "./commands/GetUserPbxLinkDataCommand";
|
|
15
17
|
import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "./commands/GetUserPbxLinkSuggestionCommand";
|
|
16
18
|
import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
|
|
17
19
|
import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
|
|
18
20
|
import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
|
|
21
|
+
import { PartialUpdateUserEmailNotificationsSettingsCommandInput, PartialUpdateUserEmailNotificationsSettingsCommandOutput } from "./commands/PartialUpdateUserEmailNotificationsSettingsCommand";
|
|
19
22
|
import { QueryColleaguesCommandInput, QueryColleaguesCommandOutput } from "./commands/QueryColleaguesCommand";
|
|
20
23
|
import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
|
|
21
24
|
import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
|
|
25
|
+
import { UnsubscribeFromTranscriptionEmailNotificationsCommandInput, UnsubscribeFromTranscriptionEmailNotificationsCommandOutput } from "./commands/UnsubscribeFromTranscriptionEmailNotificationsCommand";
|
|
26
|
+
import { UnsubscribeFromUnreadEmailNotificationsCommandInput, UnsubscribeFromUnreadEmailNotificationsCommandOutput } from "./commands/UnsubscribeFromUnreadEmailNotificationsCommand";
|
|
22
27
|
import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
|
|
23
28
|
import { UpdateBotCommandInput, UpdateBotCommandOutput } from "./commands/UpdateBotCommand";
|
|
29
|
+
import { UpdateUserEmailNotificationsSettingsCommandInput, UpdateUserEmailNotificationsSettingsCommandOutput } from "./commands/UpdateUserEmailNotificationsSettingsCommand";
|
|
24
30
|
import { UploadPictureCommandInput, UploadPictureCommandOutput } from "./commands/UploadPictureCommand";
|
|
25
31
|
import { UploadPictureV1CommandInput, UploadPictureV1CommandOutput } from "./commands/UploadPictureV1Command";
|
|
26
32
|
import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "./commands/VerifyBotSecretKeyCommand";
|
|
@@ -33,6 +39,12 @@ export interface Users {
|
|
|
33
39
|
batchGetUsers(args: BatchGetUsersCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetUsersCommandOutput>;
|
|
34
40
|
batchGetUsers(args: BatchGetUsersCommandInput, cb: (err: any, data?: BatchGetUsersCommandOutput) => void): void;
|
|
35
41
|
batchGetUsers(args: BatchGetUsersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetUsersCommandOutput) => void): void;
|
|
42
|
+
/**
|
|
43
|
+
* @see {@link BatchGetUsersEmailNotificationsSettingsCommand}
|
|
44
|
+
*/
|
|
45
|
+
batchGetUsersEmailNotificationsSettings(args: BatchGetUsersEmailNotificationsSettingsCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetUsersEmailNotificationsSettingsCommandOutput>;
|
|
46
|
+
batchGetUsersEmailNotificationsSettings(args: BatchGetUsersEmailNotificationsSettingsCommandInput, cb: (err: any, data?: BatchGetUsersEmailNotificationsSettingsCommandOutput) => void): void;
|
|
47
|
+
batchGetUsersEmailNotificationsSettings(args: BatchGetUsersEmailNotificationsSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetUsersEmailNotificationsSettingsCommandOutput) => void): void;
|
|
36
48
|
/**
|
|
37
49
|
* @see {@link BatchGetUsersPbxLinkDataCommand}
|
|
38
50
|
*/
|
|
@@ -99,6 +111,12 @@ export interface Users {
|
|
|
99
111
|
getUser(args: GetUserCommandInput, options?: __HttpHandlerOptions): Promise<GetUserCommandOutput>;
|
|
100
112
|
getUser(args: GetUserCommandInput, cb: (err: any, data?: GetUserCommandOutput) => void): void;
|
|
101
113
|
getUser(args: GetUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserCommandOutput) => void): void;
|
|
114
|
+
/**
|
|
115
|
+
* @see {@link GetUserEmailNotificationsSettingsCommand}
|
|
116
|
+
*/
|
|
117
|
+
getUserEmailNotificationsSettings(args: GetUserEmailNotificationsSettingsCommandInput, options?: __HttpHandlerOptions): Promise<GetUserEmailNotificationsSettingsCommandOutput>;
|
|
118
|
+
getUserEmailNotificationsSettings(args: GetUserEmailNotificationsSettingsCommandInput, cb: (err: any, data?: GetUserEmailNotificationsSettingsCommandOutput) => void): void;
|
|
119
|
+
getUserEmailNotificationsSettings(args: GetUserEmailNotificationsSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserEmailNotificationsSettingsCommandOutput) => void): void;
|
|
102
120
|
/**
|
|
103
121
|
* @see {@link GetUserPbxLinkDataCommand}
|
|
104
122
|
*/
|
|
@@ -132,6 +150,12 @@ export interface Users {
|
|
|
132
150
|
listBots(args: ListBotsCommandInput, options?: __HttpHandlerOptions): Promise<ListBotsCommandOutput>;
|
|
133
151
|
listBots(args: ListBotsCommandInput, cb: (err: any, data?: ListBotsCommandOutput) => void): void;
|
|
134
152
|
listBots(args: ListBotsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListBotsCommandOutput) => void): void;
|
|
153
|
+
/**
|
|
154
|
+
* @see {@link PartialUpdateUserEmailNotificationsSettingsCommand}
|
|
155
|
+
*/
|
|
156
|
+
partialUpdateUserEmailNotificationsSettings(args: PartialUpdateUserEmailNotificationsSettingsCommandInput, options?: __HttpHandlerOptions): Promise<PartialUpdateUserEmailNotificationsSettingsCommandOutput>;
|
|
157
|
+
partialUpdateUserEmailNotificationsSettings(args: PartialUpdateUserEmailNotificationsSettingsCommandInput, cb: (err: any, data?: PartialUpdateUserEmailNotificationsSettingsCommandOutput) => void): void;
|
|
158
|
+
partialUpdateUserEmailNotificationsSettings(args: PartialUpdateUserEmailNotificationsSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PartialUpdateUserEmailNotificationsSettingsCommandOutput) => void): void;
|
|
135
159
|
/**
|
|
136
160
|
* @see {@link QueryColleaguesCommand}
|
|
137
161
|
*/
|
|
@@ -151,6 +175,18 @@ export interface Users {
|
|
|
151
175
|
queryUsers(args: QueryUsersCommandInput, options?: __HttpHandlerOptions): Promise<QueryUsersCommandOutput>;
|
|
152
176
|
queryUsers(args: QueryUsersCommandInput, cb: (err: any, data?: QueryUsersCommandOutput) => void): void;
|
|
153
177
|
queryUsers(args: QueryUsersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryUsersCommandOutput) => void): void;
|
|
178
|
+
/**
|
|
179
|
+
* @see {@link UnsubscribeFromTranscriptionEmailNotificationsCommand}
|
|
180
|
+
*/
|
|
181
|
+
unsubscribeFromTranscriptionEmailNotifications(args: UnsubscribeFromTranscriptionEmailNotificationsCommandInput, options?: __HttpHandlerOptions): Promise<UnsubscribeFromTranscriptionEmailNotificationsCommandOutput>;
|
|
182
|
+
unsubscribeFromTranscriptionEmailNotifications(args: UnsubscribeFromTranscriptionEmailNotificationsCommandInput, cb: (err: any, data?: UnsubscribeFromTranscriptionEmailNotificationsCommandOutput) => void): void;
|
|
183
|
+
unsubscribeFromTranscriptionEmailNotifications(args: UnsubscribeFromTranscriptionEmailNotificationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnsubscribeFromTranscriptionEmailNotificationsCommandOutput) => void): void;
|
|
184
|
+
/**
|
|
185
|
+
* @see {@link UnsubscribeFromUnreadEmailNotificationsCommand}
|
|
186
|
+
*/
|
|
187
|
+
unsubscribeFromUnreadEmailNotifications(args: UnsubscribeFromUnreadEmailNotificationsCommandInput, options?: __HttpHandlerOptions): Promise<UnsubscribeFromUnreadEmailNotificationsCommandOutput>;
|
|
188
|
+
unsubscribeFromUnreadEmailNotifications(args: UnsubscribeFromUnreadEmailNotificationsCommandInput, cb: (err: any, data?: UnsubscribeFromUnreadEmailNotificationsCommandOutput) => void): void;
|
|
189
|
+
unsubscribeFromUnreadEmailNotifications(args: UnsubscribeFromUnreadEmailNotificationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnsubscribeFromUnreadEmailNotificationsCommandOutput) => void): void;
|
|
154
190
|
/**
|
|
155
191
|
* @see {@link UpdateBotCommand}
|
|
156
192
|
*/
|
|
@@ -163,6 +199,12 @@ export interface Users {
|
|
|
163
199
|
updateBotCallback(args: UpdateBotCallbackCommandInput, options?: __HttpHandlerOptions): Promise<UpdateBotCallbackCommandOutput>;
|
|
164
200
|
updateBotCallback(args: UpdateBotCallbackCommandInput, cb: (err: any, data?: UpdateBotCallbackCommandOutput) => void): void;
|
|
165
201
|
updateBotCallback(args: UpdateBotCallbackCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateBotCallbackCommandOutput) => void): void;
|
|
202
|
+
/**
|
|
203
|
+
* @see {@link UpdateUserEmailNotificationsSettingsCommand}
|
|
204
|
+
*/
|
|
205
|
+
updateUserEmailNotificationsSettings(args: UpdateUserEmailNotificationsSettingsCommandInput, options?: __HttpHandlerOptions): Promise<UpdateUserEmailNotificationsSettingsCommandOutput>;
|
|
206
|
+
updateUserEmailNotificationsSettings(args: UpdateUserEmailNotificationsSettingsCommandInput, cb: (err: any, data?: UpdateUserEmailNotificationsSettingsCommandOutput) => void): void;
|
|
207
|
+
updateUserEmailNotificationsSettings(args: UpdateUserEmailNotificationsSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateUserEmailNotificationsSettingsCommandOutput) => void): void;
|
|
166
208
|
/**
|
|
167
209
|
* @see {@link UploadPictureCommand}
|
|
168
210
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BatchGetUsersCommandInput, BatchGetUsersCommandOutput } from "./commands/BatchGetUsersCommand";
|
|
2
|
+
import { BatchGetUsersEmailNotificationsSettingsCommandInput, BatchGetUsersEmailNotificationsSettingsCommandOutput } from "./commands/BatchGetUsersEmailNotificationsSettingsCommand";
|
|
2
3
|
import { BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput } from "./commands/BatchGetUsersPbxLinkDataCommand";
|
|
3
4
|
import { BatchGetUsersPbxLinkDataV1CommandInput, BatchGetUsersPbxLinkDataV1CommandOutput } from "./commands/BatchGetUsersPbxLinkDataV1Command";
|
|
4
5
|
import { ChangeUserEmailCommandInput, ChangeUserEmailCommandOutput } from "./commands/ChangeUserEmailCommand";
|
|
@@ -10,16 +11,21 @@ import { DeleteBotCommandInput, DeleteBotCommandOutput } from "./commands/Delete
|
|
|
10
11
|
import { GetBotCallbackCommandInput, GetBotCallbackCommandOutput } from "./commands/GetBotCallbackCommand";
|
|
11
12
|
import { GetBotCommandInput, GetBotCommandOutput } from "./commands/GetBotCommand";
|
|
12
13
|
import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
|
|
14
|
+
import { GetUserEmailNotificationsSettingsCommandInput, GetUserEmailNotificationsSettingsCommandOutput } from "./commands/GetUserEmailNotificationsSettingsCommand";
|
|
13
15
|
import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "./commands/GetUserPbxLinkDataCommand";
|
|
14
16
|
import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "./commands/GetUserPbxLinkSuggestionCommand";
|
|
15
17
|
import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
|
|
16
18
|
import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
|
|
17
19
|
import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
|
|
20
|
+
import { PartialUpdateUserEmailNotificationsSettingsCommandInput, PartialUpdateUserEmailNotificationsSettingsCommandOutput } from "./commands/PartialUpdateUserEmailNotificationsSettingsCommand";
|
|
18
21
|
import { QueryColleaguesCommandInput, QueryColleaguesCommandOutput } from "./commands/QueryColleaguesCommand";
|
|
19
22
|
import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
|
|
20
23
|
import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
|
|
24
|
+
import { UnsubscribeFromTranscriptionEmailNotificationsCommandInput, UnsubscribeFromTranscriptionEmailNotificationsCommandOutput } from "./commands/UnsubscribeFromTranscriptionEmailNotificationsCommand";
|
|
25
|
+
import { UnsubscribeFromUnreadEmailNotificationsCommandInput, UnsubscribeFromUnreadEmailNotificationsCommandOutput } from "./commands/UnsubscribeFromUnreadEmailNotificationsCommand";
|
|
21
26
|
import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
|
|
22
27
|
import { UpdateBotCommandInput, UpdateBotCommandOutput } from "./commands/UpdateBotCommand";
|
|
28
|
+
import { UpdateUserEmailNotificationsSettingsCommandInput, UpdateUserEmailNotificationsSettingsCommandOutput } from "./commands/UpdateUserEmailNotificationsSettingsCommand";
|
|
23
29
|
import { UploadPictureCommandInput, UploadPictureCommandOutput } from "./commands/UploadPictureCommand";
|
|
24
30
|
import { UploadPictureV1CommandInput, UploadPictureV1CommandOutput } from "./commands/UploadPictureV1Command";
|
|
25
31
|
import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "./commands/VerifyBotSecretKeyCommand";
|
|
@@ -35,11 +41,11 @@ export { __Client };
|
|
|
35
41
|
/**
|
|
36
42
|
* @public
|
|
37
43
|
*/
|
|
38
|
-
export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | CreateSystemBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | QueryColleaguesCommandInput | QueryUserCommandInput | QueryUsersCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput;
|
|
44
|
+
export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersEmailNotificationsSettingsCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | CreateSystemBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserEmailNotificationsSettingsCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | PartialUpdateUserEmailNotificationsSettingsCommandInput | QueryColleaguesCommandInput | QueryUserCommandInput | QueryUsersCommandInput | UnsubscribeFromTranscriptionEmailNotificationsCommandInput | UnsubscribeFromUnreadEmailNotificationsCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UpdateUserEmailNotificationsSettingsCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput;
|
|
39
45
|
/**
|
|
40
46
|
* @public
|
|
41
47
|
*/
|
|
42
|
-
export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | CreateSystemBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | QueryColleaguesCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput;
|
|
48
|
+
export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersEmailNotificationsSettingsCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | CreateSystemBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserEmailNotificationsSettingsCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | PartialUpdateUserEmailNotificationsSettingsCommandOutput | QueryColleaguesCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | UnsubscribeFromTranscriptionEmailNotificationsCommandOutput | UnsubscribeFromUnreadEmailNotificationsCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UpdateUserEmailNotificationsSettingsCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput;
|
|
43
49
|
/**
|
|
44
50
|
* @public
|
|
45
51
|
*/
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { BatchGetUsersEmailNotificationsSettingsInput, BatchGetUsersEmailNotificationsSettingsOutput } 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 BatchGetUsersEmailNotificationsSettingsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface BatchGetUsersEmailNotificationsSettingsCommandInput extends BatchGetUsersEmailNotificationsSettingsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link BatchGetUsersEmailNotificationsSettingsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface BatchGetUsersEmailNotificationsSettingsCommandOutput extends BatchGetUsersEmailNotificationsSettingsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const BatchGetUsersEmailNotificationsSettingsCommand_base: {
|
|
25
|
+
new (input: BatchGetUsersEmailNotificationsSettingsCommandInput): import("@smithy/smithy-client").CommandImpl<BatchGetUsersEmailNotificationsSettingsCommandInput, BatchGetUsersEmailNotificationsSettingsCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: BatchGetUsersEmailNotificationsSettingsCommandInput): import("@smithy/smithy-client").CommandImpl<BatchGetUsersEmailNotificationsSettingsCommandInput, BatchGetUsersEmailNotificationsSettingsCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Get multiple user settings by their IDs
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { UsersClient, BatchGetUsersEmailNotificationsSettingsCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
35
|
+
* // const { UsersClient, BatchGetUsersEmailNotificationsSettingsCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
36
|
+
* const client = new UsersClient(config);
|
|
37
|
+
* const input = { // BatchGetUsersEmailNotificationsSettingsInput
|
|
38
|
+
* usersIds: [ // UsersIdList // required
|
|
39
|
+
* "STRING_VALUE",
|
|
40
|
+
* ],
|
|
41
|
+
* };
|
|
42
|
+
* const command = new BatchGetUsersEmailNotificationsSettingsCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // BatchGetUsersEmailNotificationsSettingsOutput
|
|
45
|
+
* // notifications: { // UsersEmailNotificationsSettingsMap // required
|
|
46
|
+
* // "<keys>": { // UserEmailNotificationsSettings
|
|
47
|
+
* // unread: true || false, // required
|
|
48
|
+
* // transcription: true || false, // required
|
|
49
|
+
* // },
|
|
50
|
+
* // },
|
|
51
|
+
* // };
|
|
52
|
+
*
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @param BatchGetUsersEmailNotificationsSettingsCommandInput - {@link BatchGetUsersEmailNotificationsSettingsCommandInput}
|
|
56
|
+
* @returns {@link BatchGetUsersEmailNotificationsSettingsCommandOutput}
|
|
57
|
+
* @see {@link BatchGetUsersEmailNotificationsSettingsCommandInput} for command's `input` shape.
|
|
58
|
+
* @see {@link BatchGetUsersEmailNotificationsSettingsCommandOutput} for command's `response` shape.
|
|
59
|
+
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ValidationException} (client fault)
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link UsersServiceException}
|
|
66
|
+
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
67
|
+
*
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
export declare class BatchGetUsersEmailNotificationsSettingsCommand extends BatchGetUsersEmailNotificationsSettingsCommand_base {
|
|
71
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { GetUserEmailNotificationsSettingsInput, GetUserEmailNotificationsSettingsOutput } 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 GetUserEmailNotificationsSettingsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetUserEmailNotificationsSettingsCommandInput extends GetUserEmailNotificationsSettingsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetUserEmailNotificationsSettingsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetUserEmailNotificationsSettingsCommandOutput extends GetUserEmailNotificationsSettingsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetUserEmailNotificationsSettingsCommand_base: {
|
|
25
|
+
new (input: GetUserEmailNotificationsSettingsCommandInput): import("@smithy/smithy-client").CommandImpl<GetUserEmailNotificationsSettingsCommandInput, GetUserEmailNotificationsSettingsCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetUserEmailNotificationsSettingsCommandInput): import("@smithy/smithy-client").CommandImpl<GetUserEmailNotificationsSettingsCommandInput, GetUserEmailNotificationsSettingsCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Getting user email notifications settings
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { UsersClient, GetUserEmailNotificationsSettingsCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
35
|
+
* // const { UsersClient, GetUserEmailNotificationsSettingsCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
36
|
+
* const client = new UsersClient(config);
|
|
37
|
+
* const input = { // GetUserEmailNotificationsSettingsInput
|
|
38
|
+
* userId: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetUserEmailNotificationsSettingsCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetUserEmailNotificationsSettingsOutput
|
|
43
|
+
* // notifications: { // UserEmailNotificationsSettings
|
|
44
|
+
* // unread: true || false, // required
|
|
45
|
+
* // transcription: true || false, // required
|
|
46
|
+
* // },
|
|
47
|
+
* // };
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param GetUserEmailNotificationsSettingsCommandInput - {@link GetUserEmailNotificationsSettingsCommandInput}
|
|
52
|
+
* @returns {@link GetUserEmailNotificationsSettingsCommandOutput}
|
|
53
|
+
* @see {@link GetUserEmailNotificationsSettingsCommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link GetUserEmailNotificationsSettingsCommandOutput} 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 GetUserEmailNotificationsSettingsCommand extends GetUserEmailNotificationsSettingsCommand_base {
|
|
69
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { PartialUpdateUserEmailNotificationsSettingsInput, PartialUpdateUserEmailNotificationsSettingsOutput } 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 PartialUpdateUserEmailNotificationsSettingsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface PartialUpdateUserEmailNotificationsSettingsCommandInput extends PartialUpdateUserEmailNotificationsSettingsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link PartialUpdateUserEmailNotificationsSettingsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface PartialUpdateUserEmailNotificationsSettingsCommandOutput extends PartialUpdateUserEmailNotificationsSettingsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const PartialUpdateUserEmailNotificationsSettingsCommand_base: {
|
|
25
|
+
new (input: PartialUpdateUserEmailNotificationsSettingsCommandInput): import("@smithy/smithy-client").CommandImpl<PartialUpdateUserEmailNotificationsSettingsCommandInput, PartialUpdateUserEmailNotificationsSettingsCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: PartialUpdateUserEmailNotificationsSettingsCommandInput): import("@smithy/smithy-client").CommandImpl<PartialUpdateUserEmailNotificationsSettingsCommandInput, PartialUpdateUserEmailNotificationsSettingsCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Partially update user email notifications settings
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { UsersClient, PartialUpdateUserEmailNotificationsSettingsCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
35
|
+
* // const { UsersClient, PartialUpdateUserEmailNotificationsSettingsCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
36
|
+
* const client = new UsersClient(config);
|
|
37
|
+
* const input = { // PartialUpdateUserEmailNotificationsSettingsInput
|
|
38
|
+
* unread: true || false,
|
|
39
|
+
* transcription: true || false,
|
|
40
|
+
* userId: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new PartialUpdateUserEmailNotificationsSettingsCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // PartialUpdateUserEmailNotificationsSettingsOutput
|
|
45
|
+
* // notifications: { // UserEmailNotificationsSettings
|
|
46
|
+
* // unread: true || false, // required
|
|
47
|
+
* // transcription: true || false, // required
|
|
48
|
+
* // },
|
|
49
|
+
* // };
|
|
50
|
+
*
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @param PartialUpdateUserEmailNotificationsSettingsCommandInput - {@link PartialUpdateUserEmailNotificationsSettingsCommandInput}
|
|
54
|
+
* @returns {@link PartialUpdateUserEmailNotificationsSettingsCommandOutput}
|
|
55
|
+
* @see {@link PartialUpdateUserEmailNotificationsSettingsCommandInput} for command's `input` shape.
|
|
56
|
+
* @see {@link PartialUpdateUserEmailNotificationsSettingsCommandOutput} for command's `response` shape.
|
|
57
|
+
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
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 PartialUpdateUserEmailNotificationsSettingsCommand extends PartialUpdateUserEmailNotificationsSettingsCommand_base {
|
|
69
|
+
}
|