onehook-api-client 1.0.12 → 1.0.15
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/README.md +63 -0
- package/dist-cjs/OneHook.js +18 -0
- package/dist-cjs/commands/CreateMediaDownloadUrlCommand.js +21 -0
- package/dist-cjs/commands/CreateMediaUploadUrlCommand.js +21 -0
- package/dist-cjs/commands/DeletePushTokenCommand.js +21 -0
- package/dist-cjs/commands/GetChatSettingsCommand.js +21 -0
- package/dist-cjs/commands/GetNotificationPreferencesCommand.js +21 -0
- package/dist-cjs/commands/GetUserIdByUsernameCommand.js +21 -0
- package/dist-cjs/commands/RegisterPushTokenCommand.js +21 -0
- package/dist-cjs/commands/SwipeByUsernameCommand.js +21 -0
- package/dist-cjs/commands/UpdateChatSettingsCommand.js +21 -0
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/graphql/types.js +6 -1
- package/dist-cjs/models/models_0.js +17 -6
- package/dist-cjs/protocols/Aws_restJson1.js +345 -3
- package/dist-es/OneHook.js +18 -0
- package/dist-es/commands/CreateMediaDownloadUrlCommand.js +17 -0
- package/dist-es/commands/CreateMediaUploadUrlCommand.js +17 -0
- package/dist-es/commands/DeletePushTokenCommand.js +17 -0
- package/dist-es/commands/GetChatSettingsCommand.js +17 -0
- package/dist-es/commands/GetNotificationPreferencesCommand.js +17 -0
- package/dist-es/commands/GetUserIdByUsernameCommand.js +17 -0
- package/dist-es/commands/RegisterPushTokenCommand.js +17 -0
- package/dist-es/commands/SwipeByUsernameCommand.js +17 -0
- package/dist-es/commands/UpdateChatSettingsCommand.js +17 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/graphql/types.js +5 -0
- package/dist-es/models/models_0.js +16 -5
- package/dist-es/protocols/Aws_restJson1.js +324 -1
- package/dist-types/OneHook.d.ts +65 -0
- package/dist-types/OneHookClient.d.ts +11 -2
- package/dist-types/commands/CreateMediaDownloadUrlCommand.d.ts +87 -0
- package/dist-types/commands/CreateMediaUploadUrlCommand.d.ts +92 -0
- package/dist-types/commands/DeletePushTokenCommand.d.ts +85 -0
- package/dist-types/commands/GetChatSettingsCommand.d.ts +85 -0
- package/dist-types/commands/GetMyProfileCommand.d.ts +4 -1
- package/dist-types/commands/GetNotificationPreferencesCommand.d.ts +91 -0
- package/dist-types/commands/GetPreferencesCommand.d.ts +37 -1
- package/dist-types/commands/GetProfileCommand.d.ts +4 -1
- package/dist-types/commands/GetUserIdByUsernameCommand.d.ts +84 -0
- package/dist-types/commands/RegisterPushTokenCommand.d.ts +93 -0
- package/dist-types/commands/SwipeByUsernameCommand.d.ts +93 -0
- package/dist-types/commands/UpdateChatSettingsCommand.d.ts +95 -0
- package/dist-types/commands/UpdatePreferencesCommand.d.ts +37 -1
- package/dist-types/commands/UpdateProfileCommand.d.ts +4 -1
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/graphql/types.d.ts +33 -0
- package/dist-types/models/models_0.d.ts +511 -16
- package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
- package/package.json +1 -1
|
@@ -1,12 +1,48 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.se_UnhookCommand = exports.se_InitUserCommand = exports.se_GetStateCommand = exports.se_GetMatchCommand = exports.se_CompleteOnboardingCommand = exports.se_UpdateProfileCommand = exports.se_GetProfileCommand = exports.se_GetMyProfileCommand = exports.se_GetLivenessStatusCommand = exports.se_GenerateUploadUrlCommand = exports.se_GenerateDownloadUrlCommand = exports.se_DeleteProfileCommand = exports.se_CreateLivenessSessionCommand = exports.se_CompleteLivenessSessionCommand = exports.se_UpdatePreferencesCommand = exports.se_SwipeByUsernameCommand = exports.se_SwipeCommand = exports.se_RemoveLocationCommand = exports.se_IndexLocationCommand = exports.se_GetPreferencesCommand = exports.se_GetNotificationPreferencesCommand = exports.se_DiscoverCommand = exports.se_ValidateInviteCommand = exports.se_UpdateUsernameCommand = exports.se_UpdatePhoneNumberCommand = exports.se_UpdateEntitlementsCommand = exports.se_UnlinkSocialCommand = exports.se_RequestPhoneUpdateOtpCommand = exports.se_RequestPhoneOtpCommand = exports.se_RequestEmailOtpCommand = exports.se_RegisterPhoneCommand = exports.se_LinkSocialCommand = exports.se_LinkEmailCommand = exports.se_GetUserIdByUsernameCommand = exports.se_GetUserByEmailCommand = exports.se_GetUserCommand = exports.se_GetCredentialReadinessCommand = exports.se_GenerateInviteCommand = exports.se_AuthSocialCommand = exports.se_UpdateChatSettingsCommand = exports.se_RevokeDeviceCommand = exports.se_RegisterPushTokenCommand = exports.se_RegisterDeviceCommand = exports.se_ListMyDevicesCommand = exports.se_GetParticipantRegistryCommand = exports.se_GetChatSettingsCommand = exports.se_DeletePushTokenCommand = exports.se_DeleteMatchMessagesCommand = exports.se_CreateMediaUploadUrlCommand = exports.se_CreateMediaDownloadUrlCommand = void 0;
|
|
4
|
+
exports.de_InitUserCommand = exports.de_GetStateCommand = exports.de_GetMatchCommand = exports.de_CompleteOnboardingCommand = exports.de_UpdateProfileCommand = exports.de_GetProfileCommand = exports.de_GetMyProfileCommand = exports.de_GetLivenessStatusCommand = exports.de_GenerateUploadUrlCommand = exports.de_GenerateDownloadUrlCommand = exports.de_DeleteProfileCommand = exports.de_CreateLivenessSessionCommand = exports.de_CompleteLivenessSessionCommand = exports.de_UpdatePreferencesCommand = exports.de_SwipeByUsernameCommand = exports.de_SwipeCommand = exports.de_RemoveLocationCommand = exports.de_IndexLocationCommand = exports.de_GetPreferencesCommand = exports.de_GetNotificationPreferencesCommand = exports.de_DiscoverCommand = exports.de_ValidateInviteCommand = exports.de_UpdateUsernameCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateEntitlementsCommand = exports.de_UnlinkSocialCommand = exports.de_RequestPhoneUpdateOtpCommand = exports.de_RequestPhoneOtpCommand = exports.de_RequestEmailOtpCommand = exports.de_RegisterPhoneCommand = exports.de_LinkSocialCommand = exports.de_LinkEmailCommand = exports.de_GetUserIdByUsernameCommand = exports.de_GetUserByEmailCommand = exports.de_GetUserCommand = exports.de_GetCredentialReadinessCommand = exports.de_GenerateInviteCommand = exports.de_AuthSocialCommand = exports.de_UpdateChatSettingsCommand = exports.de_RevokeDeviceCommand = exports.de_RegisterPushTokenCommand = exports.de_RegisterDeviceCommand = exports.de_ListMyDevicesCommand = exports.de_GetParticipantRegistryCommand = exports.de_GetChatSettingsCommand = exports.de_DeletePushTokenCommand = exports.de_DeleteMatchMessagesCommand = exports.de_CreateMediaUploadUrlCommand = exports.de_CreateMediaDownloadUrlCommand = exports.se_UpgradeUserCommand = void 0;
|
|
5
|
+
exports.de_UpgradeUserCommand = exports.de_UnhookCommand = void 0;
|
|
5
6
|
const OneHookServiceException_1 = require("../models/OneHookServiceException");
|
|
6
7
|
const models_0_1 = require("../models/models_0");
|
|
7
8
|
const core_1 = require("@aws-sdk/core");
|
|
8
9
|
const core_2 = require("@smithy/core");
|
|
9
10
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
11
|
+
const se_CreateMediaDownloadUrlCommand = async (input, context) => {
|
|
12
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
13
|
+
const headers = {
|
|
14
|
+
'content-type': 'application/json',
|
|
15
|
+
};
|
|
16
|
+
b.bp("/chat/media/download-url");
|
|
17
|
+
let body;
|
|
18
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
19
|
+
'matchId': [],
|
|
20
|
+
'objectKey': [],
|
|
21
|
+
}));
|
|
22
|
+
b.m("POST")
|
|
23
|
+
.h(headers)
|
|
24
|
+
.b(body);
|
|
25
|
+
return b.build();
|
|
26
|
+
};
|
|
27
|
+
exports.se_CreateMediaDownloadUrlCommand = se_CreateMediaDownloadUrlCommand;
|
|
28
|
+
const se_CreateMediaUploadUrlCommand = async (input, context) => {
|
|
29
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
30
|
+
const headers = {
|
|
31
|
+
'content-type': 'application/json',
|
|
32
|
+
};
|
|
33
|
+
b.bp("/chat/media/upload-url");
|
|
34
|
+
let body;
|
|
35
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
36
|
+
'contentLength': [],
|
|
37
|
+
'kind': [],
|
|
38
|
+
'matchId': [],
|
|
39
|
+
}));
|
|
40
|
+
b.m("POST")
|
|
41
|
+
.h(headers)
|
|
42
|
+
.b(body);
|
|
43
|
+
return b.build();
|
|
44
|
+
};
|
|
45
|
+
exports.se_CreateMediaUploadUrlCommand = se_CreateMediaUploadUrlCommand;
|
|
10
46
|
const se_DeleteMatchMessagesCommand = async (input, context) => {
|
|
11
47
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
12
48
|
const headers = {};
|
|
@@ -19,6 +55,29 @@ const se_DeleteMatchMessagesCommand = async (input, context) => {
|
|
|
19
55
|
return b.build();
|
|
20
56
|
};
|
|
21
57
|
exports.se_DeleteMatchMessagesCommand = se_DeleteMatchMessagesCommand;
|
|
58
|
+
const se_DeletePushTokenCommand = async (input, context) => {
|
|
59
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
60
|
+
const headers = {};
|
|
61
|
+
b.bp("/chat/devices/{deviceId}/push-token");
|
|
62
|
+
b.p('deviceId', () => input.deviceId, '{deviceId}', false);
|
|
63
|
+
let body;
|
|
64
|
+
b.m("DELETE")
|
|
65
|
+
.h(headers)
|
|
66
|
+
.b(body);
|
|
67
|
+
return b.build();
|
|
68
|
+
};
|
|
69
|
+
exports.se_DeletePushTokenCommand = se_DeletePushTokenCommand;
|
|
70
|
+
const se_GetChatSettingsCommand = async (input, context) => {
|
|
71
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
72
|
+
const headers = {};
|
|
73
|
+
b.bp("/chat/settings");
|
|
74
|
+
let body;
|
|
75
|
+
b.m("GET")
|
|
76
|
+
.h(headers)
|
|
77
|
+
.b(body);
|
|
78
|
+
return b.build();
|
|
79
|
+
};
|
|
80
|
+
exports.se_GetChatSettingsCommand = se_GetChatSettingsCommand;
|
|
22
81
|
const se_GetParticipantRegistryCommand = async (input, context) => {
|
|
23
82
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
24
83
|
const headers = {};
|
|
@@ -67,6 +126,24 @@ const se_RegisterDeviceCommand = async (input, context) => {
|
|
|
67
126
|
return b.build();
|
|
68
127
|
};
|
|
69
128
|
exports.se_RegisterDeviceCommand = se_RegisterDeviceCommand;
|
|
129
|
+
const se_RegisterPushTokenCommand = async (input, context) => {
|
|
130
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
131
|
+
const headers = {
|
|
132
|
+
'content-type': 'application/json',
|
|
133
|
+
};
|
|
134
|
+
b.bp("/chat/devices/{deviceId}/push-token");
|
|
135
|
+
b.p('deviceId', () => input.deviceId, '{deviceId}', false);
|
|
136
|
+
let body;
|
|
137
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
138
|
+
'platform': [],
|
|
139
|
+
'token': [],
|
|
140
|
+
}));
|
|
141
|
+
b.m("PUT")
|
|
142
|
+
.h(headers)
|
|
143
|
+
.b(body);
|
|
144
|
+
return b.build();
|
|
145
|
+
};
|
|
146
|
+
exports.se_RegisterPushTokenCommand = se_RegisterPushTokenCommand;
|
|
70
147
|
const se_RevokeDeviceCommand = async (input, context) => {
|
|
71
148
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
72
149
|
const headers = {};
|
|
@@ -79,6 +156,29 @@ const se_RevokeDeviceCommand = async (input, context) => {
|
|
|
79
156
|
return b.build();
|
|
80
157
|
};
|
|
81
158
|
exports.se_RevokeDeviceCommand = se_RevokeDeviceCommand;
|
|
159
|
+
const se_UpdateChatSettingsCommand = async (input, context) => {
|
|
160
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
161
|
+
const headers = {
|
|
162
|
+
'content-type': 'application/json',
|
|
163
|
+
};
|
|
164
|
+
b.bp("/chat/settings");
|
|
165
|
+
let body;
|
|
166
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
167
|
+
'defaultDisappearingSeconds': [],
|
|
168
|
+
'lastSeenVisibility': [],
|
|
169
|
+
'messageNotifications': [],
|
|
170
|
+
'reactionNotifications': [],
|
|
171
|
+
'readReceipts': [],
|
|
172
|
+
'screenshotProtection': [],
|
|
173
|
+
'showPreviews': [],
|
|
174
|
+
'typingIndicators': [],
|
|
175
|
+
}));
|
|
176
|
+
b.m("PUT")
|
|
177
|
+
.h(headers)
|
|
178
|
+
.b(body);
|
|
179
|
+
return b.build();
|
|
180
|
+
};
|
|
181
|
+
exports.se_UpdateChatSettingsCommand = se_UpdateChatSettingsCommand;
|
|
82
182
|
const se_AuthSocialCommand = async (input, context) => {
|
|
83
183
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
84
184
|
const headers = {
|
|
@@ -149,6 +249,18 @@ const se_GetUserByEmailCommand = async (input, context) => {
|
|
|
149
249
|
return b.build();
|
|
150
250
|
};
|
|
151
251
|
exports.se_GetUserByEmailCommand = se_GetUserByEmailCommand;
|
|
252
|
+
const se_GetUserIdByUsernameCommand = async (input, context) => {
|
|
253
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
254
|
+
const headers = {};
|
|
255
|
+
b.bp("/identity/users/by-username/{username}");
|
|
256
|
+
b.p('username', () => input.username, '{username}', false);
|
|
257
|
+
let body;
|
|
258
|
+
b.m("GET")
|
|
259
|
+
.h(headers)
|
|
260
|
+
.b(body);
|
|
261
|
+
return b.build();
|
|
262
|
+
};
|
|
263
|
+
exports.se_GetUserIdByUsernameCommand = se_GetUserIdByUsernameCommand;
|
|
152
264
|
const se_LinkEmailCommand = async (input, context) => {
|
|
153
265
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
154
266
|
const headers = {
|
|
@@ -345,6 +457,18 @@ const se_DiscoverCommand = async (input, context) => {
|
|
|
345
457
|
return b.build();
|
|
346
458
|
};
|
|
347
459
|
exports.se_DiscoverCommand = se_DiscoverCommand;
|
|
460
|
+
const se_GetNotificationPreferencesCommand = async (input, context) => {
|
|
461
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
462
|
+
const headers = {};
|
|
463
|
+
b.bp("/matching/internal/users/{userId}/notification-preferences");
|
|
464
|
+
b.p('userId', () => input.userId, '{userId}', false);
|
|
465
|
+
let body;
|
|
466
|
+
b.m("GET")
|
|
467
|
+
.h(headers)
|
|
468
|
+
.b(body);
|
|
469
|
+
return b.build();
|
|
470
|
+
};
|
|
471
|
+
exports.se_GetNotificationPreferencesCommand = se_GetNotificationPreferencesCommand;
|
|
348
472
|
const se_GetPreferencesCommand = async (input, context) => {
|
|
349
473
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
350
474
|
const headers = {};
|
|
@@ -409,6 +533,22 @@ const se_SwipeCommand = async (input, context) => {
|
|
|
409
533
|
return b.build();
|
|
410
534
|
};
|
|
411
535
|
exports.se_SwipeCommand = se_SwipeCommand;
|
|
536
|
+
const se_SwipeByUsernameCommand = async (input, context) => {
|
|
537
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
538
|
+
const headers = {
|
|
539
|
+
'content-type': 'application/json',
|
|
540
|
+
};
|
|
541
|
+
b.bp("/matching/swipe/by-username");
|
|
542
|
+
let body;
|
|
543
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
544
|
+
'username': [],
|
|
545
|
+
}));
|
|
546
|
+
b.m("POST")
|
|
547
|
+
.h(headers)
|
|
548
|
+
.b(body);
|
|
549
|
+
return b.build();
|
|
550
|
+
};
|
|
551
|
+
exports.se_SwipeByUsernameCommand = se_SwipeByUsernameCommand;
|
|
412
552
|
const se_UpdatePreferencesCommand = async (input, context) => {
|
|
413
553
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
414
554
|
const headers = {
|
|
@@ -418,10 +558,38 @@ const se_UpdatePreferencesCommand = async (input, context) => {
|
|
|
418
558
|
b.p('userId', () => input.userId, '{userId}', false);
|
|
419
559
|
let body;
|
|
420
560
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
561
|
+
'cannabis': [],
|
|
562
|
+
'dealbreakers': _ => (0, smithy_client_1._json)(_),
|
|
563
|
+
'discoverable': [],
|
|
564
|
+
'distanceUnit': [],
|
|
565
|
+
'drinking': [],
|
|
566
|
+
'drugs': [],
|
|
567
|
+
'educationLevel': [],
|
|
568
|
+
'exercise': [],
|
|
569
|
+
'familyPlans': [],
|
|
421
570
|
'genders': _ => (0, smithy_client_1._json)(_),
|
|
571
|
+
'incognito': [],
|
|
572
|
+
'interestedInGenders': _ => (0, smithy_client_1._json)(_),
|
|
573
|
+
'interests': _ => (0, smithy_client_1._json)(_),
|
|
422
574
|
'maxAge': [],
|
|
423
575
|
'maxDistanceKm': [],
|
|
576
|
+
'maxHeight': [],
|
|
424
577
|
'minAge': [],
|
|
578
|
+
'minHeight': [],
|
|
579
|
+
'notifyDailyPicks': [],
|
|
580
|
+
'notifyLikes': [],
|
|
581
|
+
'notifyMatches': [],
|
|
582
|
+
'politicalView': [],
|
|
583
|
+
'preferredLanguages': _ => (0, smithy_client_1._json)(_),
|
|
584
|
+
'relationshipType': [],
|
|
585
|
+
'religion': [],
|
|
586
|
+
'requireBio': [],
|
|
587
|
+
'requirePhoto': [],
|
|
588
|
+
'requireRecentlyActive': [],
|
|
589
|
+
'smoking': [],
|
|
590
|
+
'starSigns': _ => (0, smithy_client_1._json)(_),
|
|
591
|
+
'verifiedOnly': [],
|
|
592
|
+
'wantsKids': [],
|
|
425
593
|
}));
|
|
426
594
|
b.m("PUT")
|
|
427
595
|
.h(headers)
|
|
@@ -563,6 +731,7 @@ const se_UpdateProfileCommand = async (input, context) => {
|
|
|
563
731
|
'interests': _ => (0, smithy_client_1._json)(_),
|
|
564
732
|
'languages': _ => (0, smithy_client_1._json)(_),
|
|
565
733
|
'openers': _ => (0, smithy_client_1._json)(_),
|
|
734
|
+
'pictureTransforms': _ => (0, smithy_client_1._json)(_),
|
|
566
735
|
'pictures': _ => (0, smithy_client_1._json)(_),
|
|
567
736
|
'politicalView': [],
|
|
568
737
|
'prompts': _ => (0, smithy_client_1._json)(_),
|
|
@@ -656,6 +825,39 @@ const se_UpgradeUserCommand = async (input, context) => {
|
|
|
656
825
|
return b.build();
|
|
657
826
|
};
|
|
658
827
|
exports.se_UpgradeUserCommand = se_UpgradeUserCommand;
|
|
828
|
+
const de_CreateMediaDownloadUrlCommand = async (output, context) => {
|
|
829
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
830
|
+
return de_CommandError(output, context);
|
|
831
|
+
}
|
|
832
|
+
const contents = (0, smithy_client_1.map)({
|
|
833
|
+
$metadata: deserializeMetadata(output),
|
|
834
|
+
});
|
|
835
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
836
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
837
|
+
'downloadUrl': smithy_client_1.expectString,
|
|
838
|
+
'expiresInSeconds': smithy_client_1.expectInt32,
|
|
839
|
+
});
|
|
840
|
+
Object.assign(contents, doc);
|
|
841
|
+
return contents;
|
|
842
|
+
};
|
|
843
|
+
exports.de_CreateMediaDownloadUrlCommand = de_CreateMediaDownloadUrlCommand;
|
|
844
|
+
const de_CreateMediaUploadUrlCommand = async (output, context) => {
|
|
845
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
846
|
+
return de_CommandError(output, context);
|
|
847
|
+
}
|
|
848
|
+
const contents = (0, smithy_client_1.map)({
|
|
849
|
+
$metadata: deserializeMetadata(output),
|
|
850
|
+
});
|
|
851
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
852
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
853
|
+
'expiresInSeconds': smithy_client_1.expectInt32,
|
|
854
|
+
'objectKey': smithy_client_1.expectString,
|
|
855
|
+
'uploadUrl': smithy_client_1.expectString,
|
|
856
|
+
});
|
|
857
|
+
Object.assign(contents, doc);
|
|
858
|
+
return contents;
|
|
859
|
+
};
|
|
860
|
+
exports.de_CreateMediaUploadUrlCommand = de_CreateMediaUploadUrlCommand;
|
|
659
861
|
const de_DeleteMatchMessagesCommand = async (output, context) => {
|
|
660
862
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
661
863
|
return de_CommandError(output, context);
|
|
@@ -671,6 +873,37 @@ const de_DeleteMatchMessagesCommand = async (output, context) => {
|
|
|
671
873
|
return contents;
|
|
672
874
|
};
|
|
673
875
|
exports.de_DeleteMatchMessagesCommand = de_DeleteMatchMessagesCommand;
|
|
876
|
+
const de_DeletePushTokenCommand = async (output, context) => {
|
|
877
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
878
|
+
return de_CommandError(output, context);
|
|
879
|
+
}
|
|
880
|
+
const contents = (0, smithy_client_1.map)({
|
|
881
|
+
$metadata: deserializeMetadata(output),
|
|
882
|
+
});
|
|
883
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
884
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
885
|
+
'deleted': smithy_client_1.expectBoolean,
|
|
886
|
+
'deviceId': smithy_client_1.expectString,
|
|
887
|
+
});
|
|
888
|
+
Object.assign(contents, doc);
|
|
889
|
+
return contents;
|
|
890
|
+
};
|
|
891
|
+
exports.de_DeletePushTokenCommand = de_DeletePushTokenCommand;
|
|
892
|
+
const de_GetChatSettingsCommand = async (output, context) => {
|
|
893
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
894
|
+
return de_CommandError(output, context);
|
|
895
|
+
}
|
|
896
|
+
const contents = (0, smithy_client_1.map)({
|
|
897
|
+
$metadata: deserializeMetadata(output),
|
|
898
|
+
});
|
|
899
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
900
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
901
|
+
'settings': smithy_client_1._json,
|
|
902
|
+
});
|
|
903
|
+
Object.assign(contents, doc);
|
|
904
|
+
return contents;
|
|
905
|
+
};
|
|
906
|
+
exports.de_GetChatSettingsCommand = de_GetChatSettingsCommand;
|
|
674
907
|
const de_GetParticipantRegistryCommand = async (output, context) => {
|
|
675
908
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
676
909
|
return de_CommandError(output, context);
|
|
@@ -721,6 +954,22 @@ const de_RegisterDeviceCommand = async (output, context) => {
|
|
|
721
954
|
return contents;
|
|
722
955
|
};
|
|
723
956
|
exports.de_RegisterDeviceCommand = de_RegisterDeviceCommand;
|
|
957
|
+
const de_RegisterPushTokenCommand = async (output, context) => {
|
|
958
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
959
|
+
return de_CommandError(output, context);
|
|
960
|
+
}
|
|
961
|
+
const contents = (0, smithy_client_1.map)({
|
|
962
|
+
$metadata: deserializeMetadata(output),
|
|
963
|
+
});
|
|
964
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
965
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
966
|
+
'deviceId': smithy_client_1.expectString,
|
|
967
|
+
'registered': smithy_client_1.expectBoolean,
|
|
968
|
+
});
|
|
969
|
+
Object.assign(contents, doc);
|
|
970
|
+
return contents;
|
|
971
|
+
};
|
|
972
|
+
exports.de_RegisterPushTokenCommand = de_RegisterPushTokenCommand;
|
|
724
973
|
const de_RevokeDeviceCommand = async (output, context) => {
|
|
725
974
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
726
975
|
return de_CommandError(output, context);
|
|
@@ -737,6 +986,21 @@ const de_RevokeDeviceCommand = async (output, context) => {
|
|
|
737
986
|
return contents;
|
|
738
987
|
};
|
|
739
988
|
exports.de_RevokeDeviceCommand = de_RevokeDeviceCommand;
|
|
989
|
+
const de_UpdateChatSettingsCommand = async (output, context) => {
|
|
990
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
991
|
+
return de_CommandError(output, context);
|
|
992
|
+
}
|
|
993
|
+
const contents = (0, smithy_client_1.map)({
|
|
994
|
+
$metadata: deserializeMetadata(output),
|
|
995
|
+
});
|
|
996
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
997
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
998
|
+
'settings': smithy_client_1._json,
|
|
999
|
+
});
|
|
1000
|
+
Object.assign(contents, doc);
|
|
1001
|
+
return contents;
|
|
1002
|
+
};
|
|
1003
|
+
exports.de_UpdateChatSettingsCommand = de_UpdateChatSettingsCommand;
|
|
740
1004
|
const de_AuthSocialCommand = async (output, context) => {
|
|
741
1005
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
742
1006
|
return de_CommandError(output, context);
|
|
@@ -835,6 +1099,21 @@ const de_GetUserByEmailCommand = async (output, context) => {
|
|
|
835
1099
|
return contents;
|
|
836
1100
|
};
|
|
837
1101
|
exports.de_GetUserByEmailCommand = de_GetUserByEmailCommand;
|
|
1102
|
+
const de_GetUserIdByUsernameCommand = async (output, context) => {
|
|
1103
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1104
|
+
return de_CommandError(output, context);
|
|
1105
|
+
}
|
|
1106
|
+
const contents = (0, smithy_client_1.map)({
|
|
1107
|
+
$metadata: deserializeMetadata(output),
|
|
1108
|
+
});
|
|
1109
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1110
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1111
|
+
'userId': smithy_client_1.expectString,
|
|
1112
|
+
});
|
|
1113
|
+
Object.assign(contents, doc);
|
|
1114
|
+
return contents;
|
|
1115
|
+
};
|
|
1116
|
+
exports.de_GetUserIdByUsernameCommand = de_GetUserIdByUsernameCommand;
|
|
838
1117
|
const de_LinkEmailCommand = async (output, context) => {
|
|
839
1118
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
840
1119
|
return de_CommandError(output, context);
|
|
@@ -1024,6 +1303,24 @@ const de_DiscoverCommand = async (output, context) => {
|
|
|
1024
1303
|
return contents;
|
|
1025
1304
|
};
|
|
1026
1305
|
exports.de_DiscoverCommand = de_DiscoverCommand;
|
|
1306
|
+
const de_GetNotificationPreferencesCommand = async (output, context) => {
|
|
1307
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1308
|
+
return de_CommandError(output, context);
|
|
1309
|
+
}
|
|
1310
|
+
const contents = (0, smithy_client_1.map)({
|
|
1311
|
+
$metadata: deserializeMetadata(output),
|
|
1312
|
+
});
|
|
1313
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1314
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1315
|
+
'notifyDailyPicks': smithy_client_1.expectBoolean,
|
|
1316
|
+
'notifyLikes': smithy_client_1.expectBoolean,
|
|
1317
|
+
'notifyMatches': smithy_client_1.expectBoolean,
|
|
1318
|
+
'userId': smithy_client_1.expectString,
|
|
1319
|
+
});
|
|
1320
|
+
Object.assign(contents, doc);
|
|
1321
|
+
return contents;
|
|
1322
|
+
};
|
|
1323
|
+
exports.de_GetNotificationPreferencesCommand = de_GetNotificationPreferencesCommand;
|
|
1027
1324
|
const de_GetPreferencesCommand = async (output, context) => {
|
|
1028
1325
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1029
1326
|
return de_CommandError(output, context);
|
|
@@ -1033,11 +1330,39 @@ const de_GetPreferencesCommand = async (output, context) => {
|
|
|
1033
1330
|
});
|
|
1034
1331
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1035
1332
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1036
|
-
'
|
|
1333
|
+
'cannabis': smithy_client_1.expectString,
|
|
1334
|
+
'dealbreakers': smithy_client_1._json,
|
|
1335
|
+
'discoverable': smithy_client_1.expectBoolean,
|
|
1336
|
+
'distanceUnit': smithy_client_1.expectString,
|
|
1337
|
+
'drinking': smithy_client_1.expectString,
|
|
1338
|
+
'drugs': smithy_client_1.expectString,
|
|
1339
|
+
'educationLevel': smithy_client_1.expectString,
|
|
1340
|
+
'exercise': smithy_client_1.expectString,
|
|
1341
|
+
'familyPlans': smithy_client_1.expectString,
|
|
1342
|
+
'incognito': smithy_client_1.expectBoolean,
|
|
1343
|
+
'interestedInGenders': smithy_client_1._json,
|
|
1344
|
+
'interests': smithy_client_1._json,
|
|
1037
1345
|
'maxAge': smithy_client_1.expectInt32,
|
|
1038
1346
|
'maxDistanceKm': smithy_client_1.expectInt32,
|
|
1347
|
+
'maxHeight': smithy_client_1.expectInt32,
|
|
1039
1348
|
'minAge': smithy_client_1.expectInt32,
|
|
1349
|
+
'minHeight': smithy_client_1.expectInt32,
|
|
1350
|
+
'notifyDailyPicks': smithy_client_1.expectBoolean,
|
|
1351
|
+
'notifyLikes': smithy_client_1.expectBoolean,
|
|
1352
|
+
'notifyMatches': smithy_client_1.expectBoolean,
|
|
1353
|
+
'politicalView': smithy_client_1.expectString,
|
|
1354
|
+
'preferredLanguages': smithy_client_1._json,
|
|
1355
|
+
'recentlyActiveDays': smithy_client_1.expectInt32,
|
|
1356
|
+
'relationshipType': smithy_client_1.expectString,
|
|
1357
|
+
'religion': smithy_client_1.expectString,
|
|
1358
|
+
'requireBio': smithy_client_1.expectBoolean,
|
|
1359
|
+
'requirePhoto': smithy_client_1.expectBoolean,
|
|
1360
|
+
'requireRecentlyActive': smithy_client_1.expectBoolean,
|
|
1361
|
+
'smoking': smithy_client_1.expectString,
|
|
1362
|
+
'starSigns': smithy_client_1._json,
|
|
1040
1363
|
'userId': smithy_client_1.expectString,
|
|
1364
|
+
'verifiedOnly': smithy_client_1.expectBoolean,
|
|
1365
|
+
'wantsKids': smithy_client_1.expectString,
|
|
1041
1366
|
});
|
|
1042
1367
|
Object.assign(contents, doc);
|
|
1043
1368
|
return contents;
|
|
@@ -1090,6 +1415,21 @@ const de_SwipeCommand = async (output, context) => {
|
|
|
1090
1415
|
return contents;
|
|
1091
1416
|
};
|
|
1092
1417
|
exports.de_SwipeCommand = de_SwipeCommand;
|
|
1418
|
+
const de_SwipeByUsernameCommand = async (output, context) => {
|
|
1419
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1420
|
+
return de_CommandError(output, context);
|
|
1421
|
+
}
|
|
1422
|
+
const contents = (0, smithy_client_1.map)({
|
|
1423
|
+
$metadata: deserializeMetadata(output),
|
|
1424
|
+
});
|
|
1425
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1426
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1427
|
+
'status': smithy_client_1.expectString,
|
|
1428
|
+
});
|
|
1429
|
+
Object.assign(contents, doc);
|
|
1430
|
+
return contents;
|
|
1431
|
+
};
|
|
1432
|
+
exports.de_SwipeByUsernameCommand = de_SwipeByUsernameCommand;
|
|
1093
1433
|
const de_UpdatePreferencesCommand = async (output, context) => {
|
|
1094
1434
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1095
1435
|
return de_CommandError(output, context);
|
|
@@ -1230,6 +1570,7 @@ const de_GetMyProfileCommand = async (output, context) => {
|
|
|
1230
1570
|
'languages': smithy_client_1._json,
|
|
1231
1571
|
'moderationStatus': smithy_client_1.expectString,
|
|
1232
1572
|
'openers': smithy_client_1._json,
|
|
1573
|
+
'pictureTransforms': smithy_client_1._json,
|
|
1233
1574
|
'pictures': smithy_client_1._json,
|
|
1234
1575
|
'politicalView': smithy_client_1.expectString,
|
|
1235
1576
|
'prompts': smithy_client_1._json,
|
|
@@ -1282,6 +1623,7 @@ const de_GetProfileCommand = async (output, context) => {
|
|
|
1282
1623
|
'languages': smithy_client_1._json,
|
|
1283
1624
|
'moderationStatus': smithy_client_1.expectString,
|
|
1284
1625
|
'openers': smithy_client_1._json,
|
|
1626
|
+
'pictureTransforms': smithy_client_1._json,
|
|
1285
1627
|
'pictures': smithy_client_1._json,
|
|
1286
1628
|
'politicalView': smithy_client_1.expectString,
|
|
1287
1629
|
'prompts': smithy_client_1._json,
|
package/dist-es/OneHook.js
CHANGED
|
@@ -3,22 +3,28 @@ import { AuthSocialCommand, } from "./commands/AuthSocialCommand";
|
|
|
3
3
|
import { CompleteLivenessSessionCommand, } from "./commands/CompleteLivenessSessionCommand";
|
|
4
4
|
import { CompleteOnboardingCommand, } from "./commands/CompleteOnboardingCommand";
|
|
5
5
|
import { CreateLivenessSessionCommand, } from "./commands/CreateLivenessSessionCommand";
|
|
6
|
+
import { CreateMediaDownloadUrlCommand, } from "./commands/CreateMediaDownloadUrlCommand";
|
|
7
|
+
import { CreateMediaUploadUrlCommand, } from "./commands/CreateMediaUploadUrlCommand";
|
|
6
8
|
import { DeleteMatchMessagesCommand, } from "./commands/DeleteMatchMessagesCommand";
|
|
7
9
|
import { DeleteProfileCommand, } from "./commands/DeleteProfileCommand";
|
|
10
|
+
import { DeletePushTokenCommand, } from "./commands/DeletePushTokenCommand";
|
|
8
11
|
import { DiscoverCommand, } from "./commands/DiscoverCommand";
|
|
9
12
|
import { GenerateDownloadUrlCommand, } from "./commands/GenerateDownloadUrlCommand";
|
|
10
13
|
import { GenerateInviteCommand, } from "./commands/GenerateInviteCommand";
|
|
11
14
|
import { GenerateUploadUrlCommand, } from "./commands/GenerateUploadUrlCommand";
|
|
15
|
+
import { GetChatSettingsCommand, } from "./commands/GetChatSettingsCommand";
|
|
12
16
|
import { GetCredentialReadinessCommand, } from "./commands/GetCredentialReadinessCommand";
|
|
13
17
|
import { GetLivenessStatusCommand, } from "./commands/GetLivenessStatusCommand";
|
|
14
18
|
import { GetMatchCommand, } from "./commands/GetMatchCommand";
|
|
15
19
|
import { GetMyProfileCommand, } from "./commands/GetMyProfileCommand";
|
|
20
|
+
import { GetNotificationPreferencesCommand, } from "./commands/GetNotificationPreferencesCommand";
|
|
16
21
|
import { GetParticipantRegistryCommand, } from "./commands/GetParticipantRegistryCommand";
|
|
17
22
|
import { GetPreferencesCommand, } from "./commands/GetPreferencesCommand";
|
|
18
23
|
import { GetProfileCommand, } from "./commands/GetProfileCommand";
|
|
19
24
|
import { GetStateCommand, } from "./commands/GetStateCommand";
|
|
20
25
|
import { GetUserByEmailCommand, } from "./commands/GetUserByEmailCommand";
|
|
21
26
|
import { GetUserCommand, } from "./commands/GetUserCommand";
|
|
27
|
+
import { GetUserIdByUsernameCommand, } from "./commands/GetUserIdByUsernameCommand";
|
|
22
28
|
import { IndexLocationCommand, } from "./commands/IndexLocationCommand";
|
|
23
29
|
import { InitUserCommand, } from "./commands/InitUserCommand";
|
|
24
30
|
import { LinkEmailCommand, } from "./commands/LinkEmailCommand";
|
|
@@ -26,14 +32,17 @@ import { LinkSocialCommand, } from "./commands/LinkSocialCommand";
|
|
|
26
32
|
import { ListMyDevicesCommand, } from "./commands/ListMyDevicesCommand";
|
|
27
33
|
import { RegisterDeviceCommand, } from "./commands/RegisterDeviceCommand";
|
|
28
34
|
import { RegisterPhoneCommand, } from "./commands/RegisterPhoneCommand";
|
|
35
|
+
import { RegisterPushTokenCommand, } from "./commands/RegisterPushTokenCommand";
|
|
29
36
|
import { RemoveLocationCommand, } from "./commands/RemoveLocationCommand";
|
|
30
37
|
import { RequestEmailOtpCommand, } from "./commands/RequestEmailOtpCommand";
|
|
31
38
|
import { RequestPhoneOtpCommand, } from "./commands/RequestPhoneOtpCommand";
|
|
32
39
|
import { RequestPhoneUpdateOtpCommand, } from "./commands/RequestPhoneUpdateOtpCommand";
|
|
33
40
|
import { RevokeDeviceCommand, } from "./commands/RevokeDeviceCommand";
|
|
41
|
+
import { SwipeByUsernameCommand, } from "./commands/SwipeByUsernameCommand";
|
|
34
42
|
import { SwipeCommand, } from "./commands/SwipeCommand";
|
|
35
43
|
import { UnhookCommand, } from "./commands/UnhookCommand";
|
|
36
44
|
import { UnlinkSocialCommand, } from "./commands/UnlinkSocialCommand";
|
|
45
|
+
import { UpdateChatSettingsCommand, } from "./commands/UpdateChatSettingsCommand";
|
|
37
46
|
import { UpdateEntitlementsCommand, } from "./commands/UpdateEntitlementsCommand";
|
|
38
47
|
import { UpdatePhoneNumberCommand, } from "./commands/UpdatePhoneNumberCommand";
|
|
39
48
|
import { UpdatePreferencesCommand, } from "./commands/UpdatePreferencesCommand";
|
|
@@ -43,16 +52,23 @@ import { UpgradeUserCommand, } from "./commands/UpgradeUserCommand";
|
|
|
43
52
|
import { ValidateInviteCommand, } from "./commands/ValidateInviteCommand";
|
|
44
53
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
45
54
|
const commands = {
|
|
55
|
+
CreateMediaDownloadUrlCommand,
|
|
56
|
+
CreateMediaUploadUrlCommand,
|
|
46
57
|
DeleteMatchMessagesCommand,
|
|
58
|
+
DeletePushTokenCommand,
|
|
59
|
+
GetChatSettingsCommand,
|
|
47
60
|
GetParticipantRegistryCommand,
|
|
48
61
|
ListMyDevicesCommand,
|
|
49
62
|
RegisterDeviceCommand,
|
|
63
|
+
RegisterPushTokenCommand,
|
|
50
64
|
RevokeDeviceCommand,
|
|
65
|
+
UpdateChatSettingsCommand,
|
|
51
66
|
AuthSocialCommand,
|
|
52
67
|
GenerateInviteCommand,
|
|
53
68
|
GetCredentialReadinessCommand,
|
|
54
69
|
GetUserCommand,
|
|
55
70
|
GetUserByEmailCommand,
|
|
71
|
+
GetUserIdByUsernameCommand,
|
|
56
72
|
LinkEmailCommand,
|
|
57
73
|
LinkSocialCommand,
|
|
58
74
|
RegisterPhoneCommand,
|
|
@@ -65,10 +81,12 @@ const commands = {
|
|
|
65
81
|
UpdateUsernameCommand,
|
|
66
82
|
ValidateInviteCommand,
|
|
67
83
|
DiscoverCommand,
|
|
84
|
+
GetNotificationPreferencesCommand,
|
|
68
85
|
GetPreferencesCommand,
|
|
69
86
|
IndexLocationCommand,
|
|
70
87
|
RemoveLocationCommand,
|
|
71
88
|
SwipeCommand,
|
|
89
|
+
SwipeByUsernameCommand,
|
|
72
90
|
UpdatePreferencesCommand,
|
|
73
91
|
CompleteLivenessSessionCommand,
|
|
74
92
|
CreateLivenessSessionCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_CreateMediaDownloadUrlCommand, se_CreateMediaDownloadUrlCommand, } 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 CreateMediaDownloadUrlCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "CreateMediaDownloadUrl", {})
|
|
12
|
+
.n("OneHookClient", "CreateMediaDownloadUrlCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_CreateMediaDownloadUrlCommand)
|
|
15
|
+
.de(de_CreateMediaDownloadUrlCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_CreateMediaUploadUrlCommand, se_CreateMediaUploadUrlCommand, } 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 CreateMediaUploadUrlCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "CreateMediaUploadUrl", {})
|
|
12
|
+
.n("OneHookClient", "CreateMediaUploadUrlCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_CreateMediaUploadUrlCommand)
|
|
15
|
+
.de(de_CreateMediaUploadUrlCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_DeletePushTokenCommand, se_DeletePushTokenCommand, } 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 DeletePushTokenCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "DeletePushToken", {})
|
|
12
|
+
.n("OneHookClient", "DeletePushTokenCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_DeletePushTokenCommand)
|
|
15
|
+
.de(de_DeletePushTokenCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetChatSettingsCommand, se_GetChatSettingsCommand, } 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 GetChatSettingsCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "GetChatSettings", {})
|
|
12
|
+
.n("OneHookClient", "GetChatSettingsCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetChatSettingsCommand)
|
|
15
|
+
.de(de_GetChatSettingsCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetNotificationPreferencesCommand, se_GetNotificationPreferencesCommand, } 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 GetNotificationPreferencesCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "GetNotificationPreferences", {})
|
|
12
|
+
.n("OneHookClient", "GetNotificationPreferencesCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetNotificationPreferencesCommand)
|
|
15
|
+
.de(de_GetNotificationPreferencesCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|