onehook-api-client 1.0.35 → 1.0.36
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 +14 -0
- package/dist-cjs/OneHook.js +4 -0
- package/dist-cjs/commands/GetTraditionPreferencesCommand.js +21 -0
- package/dist-cjs/commands/UpdateTraditionPreferencesCommand.js +21 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +22 -1
- package/dist-cjs/protocols/Aws_restJson1.js +61 -3
- package/dist-es/OneHook.js +4 -0
- package/dist-es/commands/GetTraditionPreferencesCommand.js +17 -0
- package/dist-es/commands/UpdateTraditionPreferencesCommand.js +17 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +21 -0
- package/dist-es/protocols/Aws_restJson1.js +54 -0
- package/dist-types/OneHook.d.ts +15 -0
- package/dist-types/OneHookClient.d.ts +4 -2
- package/dist-types/commands/DiscoverCommand.d.ts +8 -0
- package/dist-types/commands/GetTraditionPreferencesCommand.d.ts +83 -0
- package/dist-types/commands/UpdateTraditionPreferencesCommand.d.ts +87 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +103 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -507,6 +507,13 @@ GetSuggestions
|
|
|
507
507
|
</details>
|
|
508
508
|
<details>
|
|
509
509
|
<summary>
|
|
510
|
+
GetTraditionPreferences
|
|
511
|
+
</summary>
|
|
512
|
+
|
|
513
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/GetTraditionPreferencesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/GetTraditionPreferencesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/GetTraditionPreferencesCommandOutput/)
|
|
514
|
+
</details>
|
|
515
|
+
<details>
|
|
516
|
+
<summary>
|
|
510
517
|
IndexLocation
|
|
511
518
|
</summary>
|
|
512
519
|
|
|
@@ -563,6 +570,13 @@ UpdatePreferences
|
|
|
563
570
|
</details>
|
|
564
571
|
<details>
|
|
565
572
|
<summary>
|
|
573
|
+
UpdateTraditionPreferences
|
|
574
|
+
</summary>
|
|
575
|
+
|
|
576
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/UpdateTraditionPreferencesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/UpdateTraditionPreferencesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/UpdateTraditionPreferencesCommandOutput/)
|
|
577
|
+
</details>
|
|
578
|
+
<details>
|
|
579
|
+
<summary>
|
|
566
580
|
CompleteLivenessSession
|
|
567
581
|
</summary>
|
|
568
582
|
|
package/dist-cjs/OneHook.js
CHANGED
|
@@ -36,6 +36,7 @@ const GetReceivedLikesCommand_1 = require("./commands/GetReceivedLikesCommand");
|
|
|
36
36
|
const GetRosesCommand_1 = require("./commands/GetRosesCommand");
|
|
37
37
|
const GetStateCommand_1 = require("./commands/GetStateCommand");
|
|
38
38
|
const GetSuggestionsCommand_1 = require("./commands/GetSuggestionsCommand");
|
|
39
|
+
const GetTraditionPreferencesCommand_1 = require("./commands/GetTraditionPreferencesCommand");
|
|
39
40
|
const GetUserByEmailCommand_1 = require("./commands/GetUserByEmailCommand");
|
|
40
41
|
const GetUserCommand_1 = require("./commands/GetUserCommand");
|
|
41
42
|
const GetUserIdByUsernameCommand_1 = require("./commands/GetUserIdByUsernameCommand");
|
|
@@ -69,6 +70,7 @@ const UpdateEntitlementsCommand_1 = require("./commands/UpdateEntitlementsComman
|
|
|
69
70
|
const UpdatePhoneNumberCommand_1 = require("./commands/UpdatePhoneNumberCommand");
|
|
70
71
|
const UpdatePreferencesCommand_1 = require("./commands/UpdatePreferencesCommand");
|
|
71
72
|
const UpdateProfileCommand_1 = require("./commands/UpdateProfileCommand");
|
|
73
|
+
const UpdateTraditionPreferencesCommand_1 = require("./commands/UpdateTraditionPreferencesCommand");
|
|
72
74
|
const UpdateUsernameCommand_1 = require("./commands/UpdateUsernameCommand");
|
|
73
75
|
const UpgradeUserCommand_1 = require("./commands/UpgradeUserCommand");
|
|
74
76
|
const ValidateInviteCommand_1 = require("./commands/ValidateInviteCommand");
|
|
@@ -119,6 +121,7 @@ const commands = {
|
|
|
119
121
|
GetReceivedLikesCommand: GetReceivedLikesCommand_1.GetReceivedLikesCommand,
|
|
120
122
|
GetRosesCommand: GetRosesCommand_1.GetRosesCommand,
|
|
121
123
|
GetSuggestionsCommand: GetSuggestionsCommand_1.GetSuggestionsCommand,
|
|
124
|
+
GetTraditionPreferencesCommand: GetTraditionPreferencesCommand_1.GetTraditionPreferencesCommand,
|
|
122
125
|
IndexLocationCommand: IndexLocationCommand_1.IndexLocationCommand,
|
|
123
126
|
RecordSuggestionCommand: RecordSuggestionCommand_1.RecordSuggestionCommand,
|
|
124
127
|
RemoveLocationCommand: RemoveLocationCommand_1.RemoveLocationCommand,
|
|
@@ -127,6 +130,7 @@ const commands = {
|
|
|
127
130
|
SwipeCommand: SwipeCommand_1.SwipeCommand,
|
|
128
131
|
SwipeByUsernameCommand: SwipeByUsernameCommand_1.SwipeByUsernameCommand,
|
|
129
132
|
UpdatePreferencesCommand: UpdatePreferencesCommand_1.UpdatePreferencesCommand,
|
|
133
|
+
UpdateTraditionPreferencesCommand: UpdateTraditionPreferencesCommand_1.UpdateTraditionPreferencesCommand,
|
|
130
134
|
CompleteLivenessSessionCommand: CompleteLivenessSessionCommand_1.CompleteLivenessSessionCommand,
|
|
131
135
|
CorrectBirthDateCommand: CorrectBirthDateCommand_1.CorrectBirthDateCommand,
|
|
132
136
|
CreateLivenessSessionCommand: CreateLivenessSessionCommand_1.CreateLivenessSessionCommand,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetTraditionPreferencesCommand = 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 GetTraditionPreferencesCommand 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("OneHookService", "GetTraditionPreferences", {})
|
|
15
|
+
.n("OneHookClient", "GetTraditionPreferencesCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_GetTraditionPreferencesCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GetTraditionPreferencesCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.GetTraditionPreferencesCommand = GetTraditionPreferencesCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateTraditionPreferencesCommand = 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 UpdateTraditionPreferencesCommand 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("OneHookService", "UpdateTraditionPreferences", {})
|
|
15
|
+
.n("OneHookClient", "UpdateTraditionPreferencesCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_UpdateTraditionPreferencesCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_UpdateTraditionPreferencesCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.UpdateTraditionPreferencesCommand = UpdateTraditionPreferencesCommand;
|
|
@@ -45,6 +45,7 @@ tslib_1.__exportStar(require("./GetPreferencesCommand"), exports);
|
|
|
45
45
|
tslib_1.__exportStar(require("./GetReceivedLikesCommand"), exports);
|
|
46
46
|
tslib_1.__exportStar(require("./GetRosesCommand"), exports);
|
|
47
47
|
tslib_1.__exportStar(require("./GetSuggestionsCommand"), exports);
|
|
48
|
+
tslib_1.__exportStar(require("./GetTraditionPreferencesCommand"), exports);
|
|
48
49
|
tslib_1.__exportStar(require("./IndexLocationCommand"), exports);
|
|
49
50
|
tslib_1.__exportStar(require("./RecordSuggestionCommand"), exports);
|
|
50
51
|
tslib_1.__exportStar(require("./RemoveLocationCommand"), exports);
|
|
@@ -53,6 +54,7 @@ tslib_1.__exportStar(require("./RemoveSuggestionCommand"), exports);
|
|
|
53
54
|
tslib_1.__exportStar(require("./SwipeCommand"), exports);
|
|
54
55
|
tslib_1.__exportStar(require("./SwipeByUsernameCommand"), exports);
|
|
55
56
|
tslib_1.__exportStar(require("./UpdatePreferencesCommand"), exports);
|
|
57
|
+
tslib_1.__exportStar(require("./UpdateTraditionPreferencesCommand"), exports);
|
|
56
58
|
tslib_1.__exportStar(require("./CompleteLivenessSessionCommand"), exports);
|
|
57
59
|
tslib_1.__exportStar(require("./CorrectBirthDateCommand"), exports);
|
|
58
60
|
tslib_1.__exportStar(require("./CreateLivenessSessionCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SuggestionBasis = exports.MatchFinder = exports.DiscoveryCategory = exports.SubscriptionTier = exports.ConflictError = exports.CredentialGap = exports.AccountState = exports.PushTokenKind = exports.DeviceLimitError = exports.Platform = exports.LastSeenVisibility = exports.MediaKind = exports.ForbiddenError = exports.NotFoundError = exports.InternalServerError = exports.BadRequestError = void 0;
|
|
3
|
+
exports.SuggestionBasis = exports.MatchVerdict = exports.MatchHighlightSource = exports.MatchFinder = exports.DiscoveryCategory = exports.SubscriptionTier = exports.ConflictError = exports.CredentialGap = exports.AccountState = exports.PushTokenKind = exports.DeviceLimitError = exports.Platform = exports.LastSeenVisibility = exports.MediaKind = exports.ForbiddenError = exports.NotFoundError = exports.InternalServerError = exports.BadRequestError = void 0;
|
|
4
4
|
const OneHookServiceException_1 = require("./OneHookServiceException");
|
|
5
5
|
class BadRequestError extends OneHookServiceException_1.OneHookServiceException {
|
|
6
6
|
name = "BadRequestError";
|
|
@@ -139,6 +139,27 @@ exports.MatchFinder = {
|
|
|
139
139
|
MR_ONEHOOK: "MR_ONEHOOK",
|
|
140
140
|
ONEHOOK_INTELLIGENCE: "ONEHOOK_INTELLIGENCE",
|
|
141
141
|
};
|
|
142
|
+
exports.MatchHighlightSource = {
|
|
143
|
+
ARABIC_PARTS: "ARABIC_PARTS",
|
|
144
|
+
BABYLONIAN: "BABYLONIAN",
|
|
145
|
+
BAZI: "BAZI",
|
|
146
|
+
BUDDHIST: "BUDDHIST",
|
|
147
|
+
CELTIC: "CELTIC",
|
|
148
|
+
EGYPTIAN: "EGYPTIAN",
|
|
149
|
+
HEBREW: "HEBREW",
|
|
150
|
+
HELLENISTIC: "HELLENISTIC",
|
|
151
|
+
KUNDALI: "KUNDALI",
|
|
152
|
+
MR_ONEHOOK: "MR_ONEHOOK",
|
|
153
|
+
ONEHOOK_INTELLIGENCE: "ONEHOOK_INTELLIGENCE",
|
|
154
|
+
TIBETAN: "TIBETAN",
|
|
155
|
+
TZOLKIN: "TZOLKIN",
|
|
156
|
+
WESTERN: "WESTERN",
|
|
157
|
+
ZI_WEI_DOU_SHU: "ZI_WEI_DOU_SHU",
|
|
158
|
+
};
|
|
159
|
+
exports.MatchVerdict = {
|
|
160
|
+
EXCELLENT: "EXCELLENT",
|
|
161
|
+
GOOD: "GOOD",
|
|
162
|
+
};
|
|
142
163
|
exports.SuggestionBasis = {
|
|
143
164
|
EXPLICIT_REQUEST: "EXPLICIT_REQUEST",
|
|
144
165
|
INFERRED_INCLINATION: "INFERRED_INCLINATION",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.de_UpgradeUserCommand = exports.de_UnhookCommand = exports.de_InitUserCommand = exports.de_GetStateCommand = exports.de_GetMatchCommand = exports.de_CompleteOnboardingCommand = exports.de_UpdateProfileCommand = exports.de_SearchPlacesCommand = exports.de_GetProfileCommand = exports.de_GetPlaceCommand = exports.de_GetMyProfileCommand = exports.de_GetLivenessStatusCommand = exports.de_GetBirthDateStatusCommand = exports.de_GenerateUploadUrlCommand = exports.de_GenerateDownloadUrlCommand = exports.de_DeleteProfileCommand = exports.de_CreateLivenessSessionCommand = exports.de_CorrectBirthDateCommand = exports.de_CompleteLivenessSessionCommand = exports.de_UpdatePreferencesCommand = exports.de_SwipeByUsernameCommand = exports.de_SwipeCommand = exports.de_RemoveSuggestionCommand = exports.de_RemoveOneHookSuggestionCommand = exports.de_RemoveLocationCommand = exports.de_RecordSuggestionCommand = exports.de_IndexLocationCommand = exports.de_GetSuggestionsCommand = exports.de_GetRosesCommand = exports.de_GetReceivedLikesCommand = exports.de_GetPreferencesCommand = exports.de_GetNotificationPreferencesCommand = exports.de_DiscoverCommand = exports.de_VerifyAdminLinkOtpCommand = exports.de_ValidateInviteCommand = exports.de_UpdateUsernameCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateEntitlementsCommand = exports.de_UnlinkSocialCommand = exports.de_SetPreservationHoldCommand = exports.de_SetAccountStateCommand = exports.de_SendAdminLinkOtpCommand = void 0;
|
|
3
|
+
exports.se_RemoveSuggestionCommand = exports.se_RemoveOneHookSuggestionCommand = exports.se_RemoveLocationCommand = exports.se_RecordSuggestionCommand = exports.se_IndexLocationCommand = exports.se_GetTraditionPreferencesCommand = exports.se_GetSuggestionsCommand = exports.se_GetRosesCommand = exports.se_GetReceivedLikesCommand = exports.se_GetPreferencesCommand = exports.se_GetNotificationPreferencesCommand = exports.se_DiscoverCommand = exports.se_VerifyAdminLinkOtpCommand = exports.se_ValidateInviteCommand = exports.se_UpdateUsernameCommand = exports.se_UpdatePhoneNumberCommand = exports.se_UpdateEntitlementsCommand = exports.se_UnlinkSocialCommand = exports.se_SetPreservationHoldCommand = exports.se_SetAccountStateCommand = exports.se_SendAdminLinkOtpCommand = exports.se_RevokeUserAccessCommand = 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_GetPreservationHoldCommand = exports.se_GetCredentialReadinessCommand = exports.se_GetAdminPhoneStatusCommand = exports.se_GetAccountStateCommand = exports.se_GenerateInviteCommand = exports.se_CreateAdminInviteCommand = 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 = exports.se_GetAiContextMatchCommand = void 0;
|
|
4
|
+
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_GetPreservationHoldCommand = exports.de_GetCredentialReadinessCommand = exports.de_GetAdminPhoneStatusCommand = exports.de_GetAccountStateCommand = exports.de_GenerateInviteCommand = exports.de_CreateAdminInviteCommand = 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.de_GetAiContextMatchCommand = exports.se_UpgradeUserCommand = exports.se_UnhookCommand = exports.se_InitUserCommand = exports.se_GetStateCommand = exports.se_GetMatchCommand = exports.se_CompleteOnboardingCommand = exports.se_UpdateProfileCommand = exports.se_SearchPlacesCommand = exports.se_GetProfileCommand = exports.se_GetPlaceCommand = exports.se_GetMyProfileCommand = exports.se_GetLivenessStatusCommand = exports.se_GetBirthDateStatusCommand = exports.se_GenerateUploadUrlCommand = exports.se_GenerateDownloadUrlCommand = exports.se_DeleteProfileCommand = exports.se_CreateLivenessSessionCommand = exports.se_CorrectBirthDateCommand = exports.se_CompleteLivenessSessionCommand = exports.se_UpdateTraditionPreferencesCommand = exports.se_UpdatePreferencesCommand = exports.se_SwipeByUsernameCommand = exports.se_SwipeCommand = void 0;
|
|
5
|
+
exports.de_UpgradeUserCommand = exports.de_UnhookCommand = exports.de_InitUserCommand = exports.de_GetStateCommand = exports.de_GetMatchCommand = exports.de_CompleteOnboardingCommand = exports.de_UpdateProfileCommand = exports.de_SearchPlacesCommand = exports.de_GetProfileCommand = exports.de_GetPlaceCommand = exports.de_GetMyProfileCommand = exports.de_GetLivenessStatusCommand = exports.de_GetBirthDateStatusCommand = exports.de_GenerateUploadUrlCommand = exports.de_GenerateDownloadUrlCommand = exports.de_DeleteProfileCommand = exports.de_CreateLivenessSessionCommand = exports.de_CorrectBirthDateCommand = exports.de_CompleteLivenessSessionCommand = exports.de_UpdateTraditionPreferencesCommand = exports.de_UpdatePreferencesCommand = exports.de_SwipeByUsernameCommand = exports.de_SwipeCommand = exports.de_RemoveSuggestionCommand = exports.de_RemoveOneHookSuggestionCommand = exports.de_RemoveLocationCommand = exports.de_RecordSuggestionCommand = exports.de_IndexLocationCommand = exports.de_GetTraditionPreferencesCommand = exports.de_GetSuggestionsCommand = exports.de_GetRosesCommand = exports.de_GetReceivedLikesCommand = exports.de_GetPreferencesCommand = exports.de_GetNotificationPreferencesCommand = exports.de_DiscoverCommand = exports.de_VerifyAdminLinkOtpCommand = exports.de_ValidateInviteCommand = exports.de_UpdateUsernameCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateEntitlementsCommand = exports.de_UnlinkSocialCommand = exports.de_SetPreservationHoldCommand = exports.de_SetAccountStateCommand = exports.de_SendAdminLinkOtpCommand = exports.de_RevokeUserAccessCommand = exports.de_RequestPhoneUpdateOtpCommand = void 0;
|
|
6
6
|
const OneHookServiceException_1 = require("../models/OneHookServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const core_1 = require("@aws-sdk/core");
|
|
@@ -673,6 +673,17 @@ const se_GetSuggestionsCommand = async (input, context) => {
|
|
|
673
673
|
return b.build();
|
|
674
674
|
};
|
|
675
675
|
exports.se_GetSuggestionsCommand = se_GetSuggestionsCommand;
|
|
676
|
+
const se_GetTraditionPreferencesCommand = async (input, context) => {
|
|
677
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
678
|
+
const headers = {};
|
|
679
|
+
b.bp("/matching/traditions");
|
|
680
|
+
let body;
|
|
681
|
+
b.m("GET")
|
|
682
|
+
.h(headers)
|
|
683
|
+
.b(body);
|
|
684
|
+
return b.build();
|
|
685
|
+
};
|
|
686
|
+
exports.se_GetTraditionPreferencesCommand = se_GetTraditionPreferencesCommand;
|
|
676
687
|
const se_IndexLocationCommand = async (input, context) => {
|
|
677
688
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
678
689
|
const headers = {
|
|
@@ -832,6 +843,22 @@ const se_UpdatePreferencesCommand = async (input, context) => {
|
|
|
832
843
|
return b.build();
|
|
833
844
|
};
|
|
834
845
|
exports.se_UpdatePreferencesCommand = se_UpdatePreferencesCommand;
|
|
846
|
+
const se_UpdateTraditionPreferencesCommand = async (input, context) => {
|
|
847
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
848
|
+
const headers = {
|
|
849
|
+
'content-type': 'application/json',
|
|
850
|
+
};
|
|
851
|
+
b.bp("/matching/traditions");
|
|
852
|
+
let body;
|
|
853
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
854
|
+
'disabled': _ => (0, smithy_client_1._json)(_),
|
|
855
|
+
}));
|
|
856
|
+
b.m("PUT")
|
|
857
|
+
.h(headers)
|
|
858
|
+
.b(body);
|
|
859
|
+
return b.build();
|
|
860
|
+
};
|
|
861
|
+
exports.se_UpdateTraditionPreferencesCommand = se_UpdateTraditionPreferencesCommand;
|
|
835
862
|
const se_CompleteLivenessSessionCommand = async (input, context) => {
|
|
836
863
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
837
864
|
const headers = {
|
|
@@ -1892,6 +1919,21 @@ const de_GetSuggestionsCommand = async (output, context) => {
|
|
|
1892
1919
|
return contents;
|
|
1893
1920
|
};
|
|
1894
1921
|
exports.de_GetSuggestionsCommand = de_GetSuggestionsCommand;
|
|
1922
|
+
const de_GetTraditionPreferencesCommand = async (output, context) => {
|
|
1923
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1924
|
+
return de_CommandError(output, context);
|
|
1925
|
+
}
|
|
1926
|
+
const contents = (0, smithy_client_1.map)({
|
|
1927
|
+
$metadata: deserializeMetadata(output),
|
|
1928
|
+
});
|
|
1929
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1930
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1931
|
+
'traditions': smithy_client_1._json,
|
|
1932
|
+
});
|
|
1933
|
+
Object.assign(contents, doc);
|
|
1934
|
+
return contents;
|
|
1935
|
+
};
|
|
1936
|
+
exports.de_GetTraditionPreferencesCommand = de_GetTraditionPreferencesCommand;
|
|
1895
1937
|
const de_IndexLocationCommand = async (output, context) => {
|
|
1896
1938
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1897
1939
|
return de_CommandError(output, context);
|
|
@@ -2006,6 +2048,21 @@ const de_UpdatePreferencesCommand = async (output, context) => {
|
|
|
2006
2048
|
return contents;
|
|
2007
2049
|
};
|
|
2008
2050
|
exports.de_UpdatePreferencesCommand = de_UpdatePreferencesCommand;
|
|
2051
|
+
const de_UpdateTraditionPreferencesCommand = async (output, context) => {
|
|
2052
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2053
|
+
return de_CommandError(output, context);
|
|
2054
|
+
}
|
|
2055
|
+
const contents = (0, smithy_client_1.map)({
|
|
2056
|
+
$metadata: deserializeMetadata(output),
|
|
2057
|
+
});
|
|
2058
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
2059
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2060
|
+
'traditions': smithy_client_1._json,
|
|
2061
|
+
});
|
|
2062
|
+
Object.assign(contents, doc);
|
|
2063
|
+
return contents;
|
|
2064
|
+
};
|
|
2065
|
+
exports.de_UpdateTraditionPreferencesCommand = de_UpdateTraditionPreferencesCommand;
|
|
2009
2066
|
const de_CompleteLivenessSessionCommand = async (output, context) => {
|
|
2010
2067
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2011
2068
|
return de_CommandError(output, context);
|
|
@@ -2539,6 +2596,7 @@ const de_CandidateDto = (output, context) => {
|
|
|
2539
2596
|
'distanceKm': smithy_client_1.limitedParseDouble,
|
|
2540
2597
|
'matchFinder': smithy_client_1.expectString,
|
|
2541
2598
|
'matchFinderLabel': smithy_client_1.expectString,
|
|
2599
|
+
'matchHighlights': smithy_client_1._json,
|
|
2542
2600
|
'reasoning': smithy_client_1.expectString,
|
|
2543
2601
|
'score': smithy_client_1.limitedParseDouble,
|
|
2544
2602
|
'similarity': smithy_client_1.limitedParseDouble,
|
package/dist-es/OneHook.js
CHANGED
|
@@ -33,6 +33,7 @@ import { GetReceivedLikesCommand, } from "./commands/GetReceivedLikesCommand";
|
|
|
33
33
|
import { GetRosesCommand, } from "./commands/GetRosesCommand";
|
|
34
34
|
import { GetStateCommand, } from "./commands/GetStateCommand";
|
|
35
35
|
import { GetSuggestionsCommand, } from "./commands/GetSuggestionsCommand";
|
|
36
|
+
import { GetTraditionPreferencesCommand, } from "./commands/GetTraditionPreferencesCommand";
|
|
36
37
|
import { GetUserByEmailCommand, } from "./commands/GetUserByEmailCommand";
|
|
37
38
|
import { GetUserCommand, } from "./commands/GetUserCommand";
|
|
38
39
|
import { GetUserIdByUsernameCommand, } from "./commands/GetUserIdByUsernameCommand";
|
|
@@ -66,6 +67,7 @@ import { UpdateEntitlementsCommand, } from "./commands/UpdateEntitlementsCommand
|
|
|
66
67
|
import { UpdatePhoneNumberCommand, } from "./commands/UpdatePhoneNumberCommand";
|
|
67
68
|
import { UpdatePreferencesCommand, } from "./commands/UpdatePreferencesCommand";
|
|
68
69
|
import { UpdateProfileCommand, } from "./commands/UpdateProfileCommand";
|
|
70
|
+
import { UpdateTraditionPreferencesCommand, } from "./commands/UpdateTraditionPreferencesCommand";
|
|
69
71
|
import { UpdateUsernameCommand, } from "./commands/UpdateUsernameCommand";
|
|
70
72
|
import { UpgradeUserCommand, } from "./commands/UpgradeUserCommand";
|
|
71
73
|
import { ValidateInviteCommand, } from "./commands/ValidateInviteCommand";
|
|
@@ -116,6 +118,7 @@ const commands = {
|
|
|
116
118
|
GetReceivedLikesCommand,
|
|
117
119
|
GetRosesCommand,
|
|
118
120
|
GetSuggestionsCommand,
|
|
121
|
+
GetTraditionPreferencesCommand,
|
|
119
122
|
IndexLocationCommand,
|
|
120
123
|
RecordSuggestionCommand,
|
|
121
124
|
RemoveLocationCommand,
|
|
@@ -124,6 +127,7 @@ const commands = {
|
|
|
124
127
|
SwipeCommand,
|
|
125
128
|
SwipeByUsernameCommand,
|
|
126
129
|
UpdatePreferencesCommand,
|
|
130
|
+
UpdateTraditionPreferencesCommand,
|
|
127
131
|
CompleteLivenessSessionCommand,
|
|
128
132
|
CorrectBirthDateCommand,
|
|
129
133
|
CreateLivenessSessionCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetTraditionPreferencesCommand, se_GetTraditionPreferencesCommand, } 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 GetTraditionPreferencesCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "GetTraditionPreferences", {})
|
|
12
|
+
.n("OneHookClient", "GetTraditionPreferencesCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetTraditionPreferencesCommand)
|
|
15
|
+
.de(de_GetTraditionPreferencesCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_UpdateTraditionPreferencesCommand, se_UpdateTraditionPreferencesCommand, } 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 UpdateTraditionPreferencesCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "UpdateTraditionPreferences", {})
|
|
12
|
+
.n("OneHookClient", "UpdateTraditionPreferencesCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_UpdateTraditionPreferencesCommand)
|
|
15
|
+
.de(de_UpdateTraditionPreferencesCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -42,6 +42,7 @@ export * from "./GetPreferencesCommand";
|
|
|
42
42
|
export * from "./GetReceivedLikesCommand";
|
|
43
43
|
export * from "./GetRosesCommand";
|
|
44
44
|
export * from "./GetSuggestionsCommand";
|
|
45
|
+
export * from "./GetTraditionPreferencesCommand";
|
|
45
46
|
export * from "./IndexLocationCommand";
|
|
46
47
|
export * from "./RecordSuggestionCommand";
|
|
47
48
|
export * from "./RemoveLocationCommand";
|
|
@@ -50,6 +51,7 @@ export * from "./RemoveSuggestionCommand";
|
|
|
50
51
|
export * from "./SwipeCommand";
|
|
51
52
|
export * from "./SwipeByUsernameCommand";
|
|
52
53
|
export * from "./UpdatePreferencesCommand";
|
|
54
|
+
export * from "./UpdateTraditionPreferencesCommand";
|
|
53
55
|
export * from "./CompleteLivenessSessionCommand";
|
|
54
56
|
export * from "./CorrectBirthDateCommand";
|
|
55
57
|
export * from "./CreateLivenessSessionCommand";
|
|
@@ -130,6 +130,27 @@ export const MatchFinder = {
|
|
|
130
130
|
MR_ONEHOOK: "MR_ONEHOOK",
|
|
131
131
|
ONEHOOK_INTELLIGENCE: "ONEHOOK_INTELLIGENCE",
|
|
132
132
|
};
|
|
133
|
+
export const MatchHighlightSource = {
|
|
134
|
+
ARABIC_PARTS: "ARABIC_PARTS",
|
|
135
|
+
BABYLONIAN: "BABYLONIAN",
|
|
136
|
+
BAZI: "BAZI",
|
|
137
|
+
BUDDHIST: "BUDDHIST",
|
|
138
|
+
CELTIC: "CELTIC",
|
|
139
|
+
EGYPTIAN: "EGYPTIAN",
|
|
140
|
+
HEBREW: "HEBREW",
|
|
141
|
+
HELLENISTIC: "HELLENISTIC",
|
|
142
|
+
KUNDALI: "KUNDALI",
|
|
143
|
+
MR_ONEHOOK: "MR_ONEHOOK",
|
|
144
|
+
ONEHOOK_INTELLIGENCE: "ONEHOOK_INTELLIGENCE",
|
|
145
|
+
TIBETAN: "TIBETAN",
|
|
146
|
+
TZOLKIN: "TZOLKIN",
|
|
147
|
+
WESTERN: "WESTERN",
|
|
148
|
+
ZI_WEI_DOU_SHU: "ZI_WEI_DOU_SHU",
|
|
149
|
+
};
|
|
150
|
+
export const MatchVerdict = {
|
|
151
|
+
EXCELLENT: "EXCELLENT",
|
|
152
|
+
GOOD: "GOOD",
|
|
153
|
+
};
|
|
133
154
|
export const SuggestionBasis = {
|
|
134
155
|
EXPLICIT_REQUEST: "EXPLICIT_REQUEST",
|
|
135
156
|
INFERRED_INCLINATION: "INFERRED_INCLINATION",
|
|
@@ -624,6 +624,16 @@ export const se_GetSuggestionsCommand = async (input, context) => {
|
|
|
624
624
|
.b(body);
|
|
625
625
|
return b.build();
|
|
626
626
|
};
|
|
627
|
+
export const se_GetTraditionPreferencesCommand = async (input, context) => {
|
|
628
|
+
const b = rb(input, context);
|
|
629
|
+
const headers = {};
|
|
630
|
+
b.bp("/matching/traditions");
|
|
631
|
+
let body;
|
|
632
|
+
b.m("GET")
|
|
633
|
+
.h(headers)
|
|
634
|
+
.b(body);
|
|
635
|
+
return b.build();
|
|
636
|
+
};
|
|
627
637
|
export const se_IndexLocationCommand = async (input, context) => {
|
|
628
638
|
const b = rb(input, context);
|
|
629
639
|
const headers = {
|
|
@@ -775,6 +785,21 @@ export const se_UpdatePreferencesCommand = async (input, context) => {
|
|
|
775
785
|
.b(body);
|
|
776
786
|
return b.build();
|
|
777
787
|
};
|
|
788
|
+
export const se_UpdateTraditionPreferencesCommand = async (input, context) => {
|
|
789
|
+
const b = rb(input, context);
|
|
790
|
+
const headers = {
|
|
791
|
+
'content-type': 'application/json',
|
|
792
|
+
};
|
|
793
|
+
b.bp("/matching/traditions");
|
|
794
|
+
let body;
|
|
795
|
+
body = JSON.stringify(take(input, {
|
|
796
|
+
'disabled': _ => _json(_),
|
|
797
|
+
}));
|
|
798
|
+
b.m("PUT")
|
|
799
|
+
.h(headers)
|
|
800
|
+
.b(body);
|
|
801
|
+
return b.build();
|
|
802
|
+
};
|
|
778
803
|
export const se_CompleteLivenessSessionCommand = async (input, context) => {
|
|
779
804
|
const b = rb(input, context);
|
|
780
805
|
const headers = {
|
|
@@ -1772,6 +1797,20 @@ export const de_GetSuggestionsCommand = async (output, context) => {
|
|
|
1772
1797
|
Object.assign(contents, doc);
|
|
1773
1798
|
return contents;
|
|
1774
1799
|
};
|
|
1800
|
+
export const de_GetTraditionPreferencesCommand = async (output, context) => {
|
|
1801
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1802
|
+
return de_CommandError(output, context);
|
|
1803
|
+
}
|
|
1804
|
+
const contents = map({
|
|
1805
|
+
$metadata: deserializeMetadata(output),
|
|
1806
|
+
});
|
|
1807
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1808
|
+
const doc = take(data, {
|
|
1809
|
+
'traditions': _json,
|
|
1810
|
+
});
|
|
1811
|
+
Object.assign(contents, doc);
|
|
1812
|
+
return contents;
|
|
1813
|
+
};
|
|
1775
1814
|
export const de_IndexLocationCommand = async (output, context) => {
|
|
1776
1815
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1777
1816
|
return de_CommandError(output, context);
|
|
@@ -1878,6 +1917,20 @@ export const de_UpdatePreferencesCommand = async (output, context) => {
|
|
|
1878
1917
|
Object.assign(contents, doc);
|
|
1879
1918
|
return contents;
|
|
1880
1919
|
};
|
|
1920
|
+
export const de_UpdateTraditionPreferencesCommand = async (output, context) => {
|
|
1921
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1922
|
+
return de_CommandError(output, context);
|
|
1923
|
+
}
|
|
1924
|
+
const contents = map({
|
|
1925
|
+
$metadata: deserializeMetadata(output),
|
|
1926
|
+
});
|
|
1927
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1928
|
+
const doc = take(data, {
|
|
1929
|
+
'traditions': _json,
|
|
1930
|
+
});
|
|
1931
|
+
Object.assign(contents, doc);
|
|
1932
|
+
return contents;
|
|
1933
|
+
};
|
|
1881
1934
|
export const de_CompleteLivenessSessionCommand = async (output, context) => {
|
|
1882
1935
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1883
1936
|
return de_CommandError(output, context);
|
|
@@ -2392,6 +2445,7 @@ const de_CandidateDto = (output, context) => {
|
|
|
2392
2445
|
'distanceKm': __limitedParseDouble,
|
|
2393
2446
|
'matchFinder': __expectString,
|
|
2394
2447
|
'matchFinderLabel': __expectString,
|
|
2448
|
+
'matchHighlights': _json,
|
|
2395
2449
|
'reasoning': __expectString,
|
|
2396
2450
|
'score': __limitedParseDouble,
|
|
2397
2451
|
'similarity': __limitedParseDouble,
|
package/dist-types/OneHook.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ import { GetReceivedLikesCommandInput, GetReceivedLikesCommandOutput } from "./c
|
|
|
33
33
|
import { GetRosesCommandInput, GetRosesCommandOutput } from "./commands/GetRosesCommand";
|
|
34
34
|
import { GetStateCommandInput, GetStateCommandOutput } from "./commands/GetStateCommand";
|
|
35
35
|
import { GetSuggestionsCommandInput, GetSuggestionsCommandOutput } from "./commands/GetSuggestionsCommand";
|
|
36
|
+
import { GetTraditionPreferencesCommandInput, GetTraditionPreferencesCommandOutput } from "./commands/GetTraditionPreferencesCommand";
|
|
36
37
|
import { GetUserByEmailCommandInput, GetUserByEmailCommandOutput } from "./commands/GetUserByEmailCommand";
|
|
37
38
|
import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
|
|
38
39
|
import { GetUserIdByUsernameCommandInput, GetUserIdByUsernameCommandOutput } from "./commands/GetUserIdByUsernameCommand";
|
|
@@ -66,6 +67,7 @@ import { UpdateEntitlementsCommandInput, UpdateEntitlementsCommandOutput } from
|
|
|
66
67
|
import { UpdatePhoneNumberCommandInput, UpdatePhoneNumberCommandOutput } from "./commands/UpdatePhoneNumberCommand";
|
|
67
68
|
import { UpdatePreferencesCommandInput, UpdatePreferencesCommandOutput } from "./commands/UpdatePreferencesCommand";
|
|
68
69
|
import { UpdateProfileCommandInput, UpdateProfileCommandOutput } from "./commands/UpdateProfileCommand";
|
|
70
|
+
import { UpdateTraditionPreferencesCommandInput, UpdateTraditionPreferencesCommandOutput } from "./commands/UpdateTraditionPreferencesCommand";
|
|
69
71
|
import { UpdateUsernameCommandInput, UpdateUsernameCommandOutput } from "./commands/UpdateUsernameCommand";
|
|
70
72
|
import { UpgradeUserCommandInput, UpgradeUserCommandOutput } from "./commands/UpgradeUserCommand";
|
|
71
73
|
import { ValidateInviteCommandInput, ValidateInviteCommandOutput } from "./commands/ValidateInviteCommand";
|
|
@@ -342,6 +344,13 @@ export interface OneHook {
|
|
|
342
344
|
getSuggestions(args: GetSuggestionsCommandInput, options?: __HttpHandlerOptions): Promise<GetSuggestionsCommandOutput>;
|
|
343
345
|
getSuggestions(args: GetSuggestionsCommandInput, cb: (err: any, data?: GetSuggestionsCommandOutput) => void): void;
|
|
344
346
|
getSuggestions(args: GetSuggestionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSuggestionsCommandOutput) => void): void;
|
|
347
|
+
/**
|
|
348
|
+
* @see {@link GetTraditionPreferencesCommand}
|
|
349
|
+
*/
|
|
350
|
+
getTraditionPreferences(): Promise<GetTraditionPreferencesCommandOutput>;
|
|
351
|
+
getTraditionPreferences(args: GetTraditionPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<GetTraditionPreferencesCommandOutput>;
|
|
352
|
+
getTraditionPreferences(args: GetTraditionPreferencesCommandInput, cb: (err: any, data?: GetTraditionPreferencesCommandOutput) => void): void;
|
|
353
|
+
getTraditionPreferences(args: GetTraditionPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTraditionPreferencesCommandOutput) => void): void;
|
|
345
354
|
/**
|
|
346
355
|
* @see {@link IndexLocationCommand}
|
|
347
356
|
*/
|
|
@@ -392,6 +401,12 @@ export interface OneHook {
|
|
|
392
401
|
updatePreferences(args: UpdatePreferencesCommandInput, options?: __HttpHandlerOptions): Promise<UpdatePreferencesCommandOutput>;
|
|
393
402
|
updatePreferences(args: UpdatePreferencesCommandInput, cb: (err: any, data?: UpdatePreferencesCommandOutput) => void): void;
|
|
394
403
|
updatePreferences(args: UpdatePreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePreferencesCommandOutput) => void): void;
|
|
404
|
+
/**
|
|
405
|
+
* @see {@link UpdateTraditionPreferencesCommand}
|
|
406
|
+
*/
|
|
407
|
+
updateTraditionPreferences(args: UpdateTraditionPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTraditionPreferencesCommandOutput>;
|
|
408
|
+
updateTraditionPreferences(args: UpdateTraditionPreferencesCommandInput, cb: (err: any, data?: UpdateTraditionPreferencesCommandOutput) => void): void;
|
|
409
|
+
updateTraditionPreferences(args: UpdateTraditionPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateTraditionPreferencesCommandOutput) => void): void;
|
|
395
410
|
/**
|
|
396
411
|
* @see {@link CompleteLivenessSessionCommand}
|
|
397
412
|
*/
|
|
@@ -33,6 +33,7 @@ import { GetReceivedLikesCommandInput, GetReceivedLikesCommandOutput } from "./c
|
|
|
33
33
|
import { GetRosesCommandInput, GetRosesCommandOutput } from "./commands/GetRosesCommand";
|
|
34
34
|
import { GetStateCommandInput, GetStateCommandOutput } from "./commands/GetStateCommand";
|
|
35
35
|
import { GetSuggestionsCommandInput, GetSuggestionsCommandOutput } from "./commands/GetSuggestionsCommand";
|
|
36
|
+
import { GetTraditionPreferencesCommandInput, GetTraditionPreferencesCommandOutput } from "./commands/GetTraditionPreferencesCommand";
|
|
36
37
|
import { GetUserByEmailCommandInput, GetUserByEmailCommandOutput } from "./commands/GetUserByEmailCommand";
|
|
37
38
|
import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
|
|
38
39
|
import { GetUserIdByUsernameCommandInput, GetUserIdByUsernameCommandOutput } from "./commands/GetUserIdByUsernameCommand";
|
|
@@ -66,6 +67,7 @@ import { UpdateEntitlementsCommandInput, UpdateEntitlementsCommandOutput } from
|
|
|
66
67
|
import { UpdatePhoneNumberCommandInput, UpdatePhoneNumberCommandOutput } from "./commands/UpdatePhoneNumberCommand";
|
|
67
68
|
import { UpdatePreferencesCommandInput, UpdatePreferencesCommandOutput } from "./commands/UpdatePreferencesCommand";
|
|
68
69
|
import { UpdateProfileCommandInput, UpdateProfileCommandOutput } from "./commands/UpdateProfileCommand";
|
|
70
|
+
import { UpdateTraditionPreferencesCommandInput, UpdateTraditionPreferencesCommandOutput } from "./commands/UpdateTraditionPreferencesCommand";
|
|
69
71
|
import { UpdateUsernameCommandInput, UpdateUsernameCommandOutput } from "./commands/UpdateUsernameCommand";
|
|
70
72
|
import { UpgradeUserCommandInput, UpgradeUserCommandOutput } from "./commands/UpgradeUserCommand";
|
|
71
73
|
import { ValidateInviteCommandInput, ValidateInviteCommandOutput } from "./commands/ValidateInviteCommand";
|
|
@@ -82,11 +84,11 @@ export { __Client };
|
|
|
82
84
|
/**
|
|
83
85
|
* @public
|
|
84
86
|
*/
|
|
85
|
-
export type ServiceInputTypes = AuthSocialCommandInput | CompleteLivenessSessionCommandInput | CompleteOnboardingCommandInput | CorrectBirthDateCommandInput | CreateAdminInviteCommandInput | CreateLivenessSessionCommandInput | CreateMediaDownloadUrlCommandInput | CreateMediaUploadUrlCommandInput | DeleteMatchMessagesCommandInput | DeleteProfileCommandInput | DeletePushTokenCommandInput | DiscoverCommandInput | GenerateDownloadUrlCommandInput | GenerateInviteCommandInput | GenerateUploadUrlCommandInput | GetAccountStateCommandInput | GetAdminPhoneStatusCommandInput | GetAiContextMatchCommandInput | GetBirthDateStatusCommandInput | GetChatSettingsCommandInput | GetCredentialReadinessCommandInput | GetLivenessStatusCommandInput | GetMatchCommandInput | GetMyProfileCommandInput | GetNotificationPreferencesCommandInput | GetParticipantRegistryCommandInput | GetPlaceCommandInput | GetPreferencesCommandInput | GetPreservationHoldCommandInput | GetProfileCommandInput | GetReceivedLikesCommandInput | GetRosesCommandInput | GetStateCommandInput | GetSuggestionsCommandInput | GetUserByEmailCommandInput | GetUserCommandInput | GetUserIdByUsernameCommandInput | IndexLocationCommandInput | InitUserCommandInput | LinkEmailCommandInput | LinkSocialCommandInput | ListMyDevicesCommandInput | RecordSuggestionCommandInput | RegisterDeviceCommandInput | RegisterPhoneCommandInput | RegisterPushTokenCommandInput | RemoveLocationCommandInput | RemoveOneHookSuggestionCommandInput | RemoveSuggestionCommandInput | RequestEmailOtpCommandInput | RequestPhoneOtpCommandInput | RequestPhoneUpdateOtpCommandInput | RevokeDeviceCommandInput | RevokeUserAccessCommandInput | SearchPlacesCommandInput | SendAdminLinkOtpCommandInput | SetAccountStateCommandInput | SetPreservationHoldCommandInput | SwipeByUsernameCommandInput | SwipeCommandInput | UnhookCommandInput | UnlinkSocialCommandInput | UpdateChatSettingsCommandInput | UpdateEntitlementsCommandInput | UpdatePhoneNumberCommandInput | UpdatePreferencesCommandInput | UpdateProfileCommandInput | UpdateUsernameCommandInput | UpgradeUserCommandInput | ValidateInviteCommandInput | VerifyAdminLinkOtpCommandInput;
|
|
87
|
+
export type ServiceInputTypes = AuthSocialCommandInput | CompleteLivenessSessionCommandInput | CompleteOnboardingCommandInput | CorrectBirthDateCommandInput | CreateAdminInviteCommandInput | CreateLivenessSessionCommandInput | CreateMediaDownloadUrlCommandInput | CreateMediaUploadUrlCommandInput | DeleteMatchMessagesCommandInput | DeleteProfileCommandInput | DeletePushTokenCommandInput | DiscoverCommandInput | GenerateDownloadUrlCommandInput | GenerateInviteCommandInput | GenerateUploadUrlCommandInput | GetAccountStateCommandInput | GetAdminPhoneStatusCommandInput | GetAiContextMatchCommandInput | GetBirthDateStatusCommandInput | GetChatSettingsCommandInput | GetCredentialReadinessCommandInput | GetLivenessStatusCommandInput | GetMatchCommandInput | GetMyProfileCommandInput | GetNotificationPreferencesCommandInput | GetParticipantRegistryCommandInput | GetPlaceCommandInput | GetPreferencesCommandInput | GetPreservationHoldCommandInput | GetProfileCommandInput | GetReceivedLikesCommandInput | GetRosesCommandInput | GetStateCommandInput | GetSuggestionsCommandInput | GetTraditionPreferencesCommandInput | GetUserByEmailCommandInput | GetUserCommandInput | GetUserIdByUsernameCommandInput | IndexLocationCommandInput | InitUserCommandInput | LinkEmailCommandInput | LinkSocialCommandInput | ListMyDevicesCommandInput | RecordSuggestionCommandInput | RegisterDeviceCommandInput | RegisterPhoneCommandInput | RegisterPushTokenCommandInput | RemoveLocationCommandInput | RemoveOneHookSuggestionCommandInput | RemoveSuggestionCommandInput | RequestEmailOtpCommandInput | RequestPhoneOtpCommandInput | RequestPhoneUpdateOtpCommandInput | RevokeDeviceCommandInput | RevokeUserAccessCommandInput | SearchPlacesCommandInput | SendAdminLinkOtpCommandInput | SetAccountStateCommandInput | SetPreservationHoldCommandInput | SwipeByUsernameCommandInput | SwipeCommandInput | UnhookCommandInput | UnlinkSocialCommandInput | UpdateChatSettingsCommandInput | UpdateEntitlementsCommandInput | UpdatePhoneNumberCommandInput | UpdatePreferencesCommandInput | UpdateProfileCommandInput | UpdateTraditionPreferencesCommandInput | UpdateUsernameCommandInput | UpgradeUserCommandInput | ValidateInviteCommandInput | VerifyAdminLinkOtpCommandInput;
|
|
86
88
|
/**
|
|
87
89
|
* @public
|
|
88
90
|
*/
|
|
89
|
-
export type ServiceOutputTypes = AuthSocialCommandOutput | CompleteLivenessSessionCommandOutput | CompleteOnboardingCommandOutput | CorrectBirthDateCommandOutput | CreateAdminInviteCommandOutput | CreateLivenessSessionCommandOutput | CreateMediaDownloadUrlCommandOutput | CreateMediaUploadUrlCommandOutput | DeleteMatchMessagesCommandOutput | DeleteProfileCommandOutput | DeletePushTokenCommandOutput | DiscoverCommandOutput | GenerateDownloadUrlCommandOutput | GenerateInviteCommandOutput | GenerateUploadUrlCommandOutput | GetAccountStateCommandOutput | GetAdminPhoneStatusCommandOutput | GetAiContextMatchCommandOutput | GetBirthDateStatusCommandOutput | GetChatSettingsCommandOutput | GetCredentialReadinessCommandOutput | GetLivenessStatusCommandOutput | GetMatchCommandOutput | GetMyProfileCommandOutput | GetNotificationPreferencesCommandOutput | GetParticipantRegistryCommandOutput | GetPlaceCommandOutput | GetPreferencesCommandOutput | GetPreservationHoldCommandOutput | GetProfileCommandOutput | GetReceivedLikesCommandOutput | GetRosesCommandOutput | GetStateCommandOutput | GetSuggestionsCommandOutput | GetUserByEmailCommandOutput | GetUserCommandOutput | GetUserIdByUsernameCommandOutput | IndexLocationCommandOutput | InitUserCommandOutput | LinkEmailCommandOutput | LinkSocialCommandOutput | ListMyDevicesCommandOutput | RecordSuggestionCommandOutput | RegisterDeviceCommandOutput | RegisterPhoneCommandOutput | RegisterPushTokenCommandOutput | RemoveLocationCommandOutput | RemoveOneHookSuggestionCommandOutput | RemoveSuggestionCommandOutput | RequestEmailOtpCommandOutput | RequestPhoneOtpCommandOutput | RequestPhoneUpdateOtpCommandOutput | RevokeDeviceCommandOutput | RevokeUserAccessCommandOutput | SearchPlacesCommandOutput | SendAdminLinkOtpCommandOutput | SetAccountStateCommandOutput | SetPreservationHoldCommandOutput | SwipeByUsernameCommandOutput | SwipeCommandOutput | UnhookCommandOutput | UnlinkSocialCommandOutput | UpdateChatSettingsCommandOutput | UpdateEntitlementsCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePreferencesCommandOutput | UpdateProfileCommandOutput | UpdateUsernameCommandOutput | UpgradeUserCommandOutput | ValidateInviteCommandOutput | VerifyAdminLinkOtpCommandOutput;
|
|
91
|
+
export type ServiceOutputTypes = AuthSocialCommandOutput | CompleteLivenessSessionCommandOutput | CompleteOnboardingCommandOutput | CorrectBirthDateCommandOutput | CreateAdminInviteCommandOutput | CreateLivenessSessionCommandOutput | CreateMediaDownloadUrlCommandOutput | CreateMediaUploadUrlCommandOutput | DeleteMatchMessagesCommandOutput | DeleteProfileCommandOutput | DeletePushTokenCommandOutput | DiscoverCommandOutput | GenerateDownloadUrlCommandOutput | GenerateInviteCommandOutput | GenerateUploadUrlCommandOutput | GetAccountStateCommandOutput | GetAdminPhoneStatusCommandOutput | GetAiContextMatchCommandOutput | GetBirthDateStatusCommandOutput | GetChatSettingsCommandOutput | GetCredentialReadinessCommandOutput | GetLivenessStatusCommandOutput | GetMatchCommandOutput | GetMyProfileCommandOutput | GetNotificationPreferencesCommandOutput | GetParticipantRegistryCommandOutput | GetPlaceCommandOutput | GetPreferencesCommandOutput | GetPreservationHoldCommandOutput | GetProfileCommandOutput | GetReceivedLikesCommandOutput | GetRosesCommandOutput | GetStateCommandOutput | GetSuggestionsCommandOutput | GetTraditionPreferencesCommandOutput | GetUserByEmailCommandOutput | GetUserCommandOutput | GetUserIdByUsernameCommandOutput | IndexLocationCommandOutput | InitUserCommandOutput | LinkEmailCommandOutput | LinkSocialCommandOutput | ListMyDevicesCommandOutput | RecordSuggestionCommandOutput | RegisterDeviceCommandOutput | RegisterPhoneCommandOutput | RegisterPushTokenCommandOutput | RemoveLocationCommandOutput | RemoveOneHookSuggestionCommandOutput | RemoveSuggestionCommandOutput | RequestEmailOtpCommandOutput | RequestPhoneOtpCommandOutput | RequestPhoneUpdateOtpCommandOutput | RevokeDeviceCommandOutput | RevokeUserAccessCommandOutput | SearchPlacesCommandOutput | SendAdminLinkOtpCommandOutput | SetAccountStateCommandOutput | SetPreservationHoldCommandOutput | SwipeByUsernameCommandOutput | SwipeCommandOutput | UnhookCommandOutput | UnlinkSocialCommandOutput | UpdateChatSettingsCommandOutput | UpdateEntitlementsCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePreferencesCommandOutput | UpdateProfileCommandOutput | UpdateTraditionPreferencesCommandOutput | UpdateUsernameCommandOutput | UpgradeUserCommandOutput | ValidateInviteCommandOutput | VerifyAdminLinkOtpCommandOutput;
|
|
90
92
|
/**
|
|
91
93
|
* @public
|
|
92
94
|
*/
|
|
@@ -56,6 +56,14 @@ declare const DiscoverCommand_base: {
|
|
|
56
56
|
* // suggestionId: "STRING_VALUE",
|
|
57
57
|
* // suggestionBasis: "EXPLICIT_REQUEST" || "INFERRED_INCLINATION",
|
|
58
58
|
* // similarity: Number("double"),
|
|
59
|
+
* // matchHighlights: [ // MatchHighlightList
|
|
60
|
+
* // { // MatchHighlight
|
|
61
|
+
* // source: "ONEHOOK_INTELLIGENCE" || "MR_ONEHOOK" || "KUNDALI" || "WESTERN" || "BAZI" || "ZI_WEI_DOU_SHU" || "TZOLKIN" || "TIBETAN" || "HEBREW" || "ARABIC_PARTS" || "BUDDHIST" || "CELTIC" || "EGYPTIAN" || "HELLENISTIC" || "BABYLONIAN", // required
|
|
62
|
+
* // label: "STRING_VALUE", // required
|
|
63
|
+
* // verdict: "GOOD" || "EXCELLENT", // required
|
|
64
|
+
* // reason: "STRING_VALUE", // required
|
|
65
|
+
* // },
|
|
66
|
+
* // ],
|
|
59
67
|
* // },
|
|
60
68
|
* // ],
|
|
61
69
|
* // count: Number("int"), // required
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
|
|
2
|
+
import { TraditionPreferencesResponse } 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 GetTraditionPreferencesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetTraditionPreferencesCommandInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetTraditionPreferencesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetTraditionPreferencesCommandOutput extends TraditionPreferencesResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetTraditionPreferencesCommand_base: {
|
|
25
|
+
new (input: GetTraditionPreferencesCommandInput): import("@smithy/smithy-client").CommandImpl<GetTraditionPreferencesCommandInput, GetTraditionPreferencesCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [GetTraditionPreferencesCommandInput]): import("@smithy/smithy-client").CommandImpl<GetTraditionPreferencesCommandInput, GetTraditionPreferencesCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* The traditional matching systems the caller takes part in. Every member is enrolled in all of them
|
|
31
|
+
* by default. A tradition is only evaluated, shown and used for ranking when both members are enrolled.
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { OneHookClient, GetTraditionPreferencesCommand } from "onehook-api-client"; // ES Modules import
|
|
36
|
+
* // const { OneHookClient, GetTraditionPreferencesCommand } = require("onehook-api-client"); // CommonJS import
|
|
37
|
+
* const client = new OneHookClient(config);
|
|
38
|
+
* const input = {};
|
|
39
|
+
* const command = new GetTraditionPreferencesCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // TraditionPreferencesResponse
|
|
42
|
+
* // traditions: [ // TraditionSettingList // required
|
|
43
|
+
* // { // TraditionSetting
|
|
44
|
+
* // id: "STRING_VALUE", // required
|
|
45
|
+
* // label: "STRING_VALUE", // required
|
|
46
|
+
* // description: "STRING_VALUE", // required
|
|
47
|
+
* // enabled: true || false, // required
|
|
48
|
+
* // needs: "STRING_VALUE", // required
|
|
49
|
+
* // },
|
|
50
|
+
* // ],
|
|
51
|
+
* // };
|
|
52
|
+
*
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @param GetTraditionPreferencesCommandInput - {@link GetTraditionPreferencesCommandInput}
|
|
56
|
+
* @returns {@link GetTraditionPreferencesCommandOutput}
|
|
57
|
+
* @see {@link GetTraditionPreferencesCommandInput} for command's `input` shape.
|
|
58
|
+
* @see {@link GetTraditionPreferencesCommandOutput} for command's `response` shape.
|
|
59
|
+
* @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link BadRequestError} (client fault)
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link InternalServerError} (server fault)
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link OneHookServiceException}
|
|
66
|
+
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
67
|
+
*
|
|
68
|
+
*
|
|
69
|
+
* @public
|
|
70
|
+
*/
|
|
71
|
+
export declare class GetTraditionPreferencesCommand extends GetTraditionPreferencesCommand_base {
|
|
72
|
+
/** @internal type navigation helper, not in runtime. */
|
|
73
|
+
protected static __types: {
|
|
74
|
+
api: {
|
|
75
|
+
input: {};
|
|
76
|
+
output: TraditionPreferencesResponse;
|
|
77
|
+
};
|
|
78
|
+
sdk: {
|
|
79
|
+
input: GetTraditionPreferencesCommandInput;
|
|
80
|
+
output: GetTraditionPreferencesCommandOutput;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
|
|
2
|
+
import { TraditionPreferencesResponse, UpdateTraditionPreferencesRequest } 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 UpdateTraditionPreferencesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateTraditionPreferencesCommandInput extends UpdateTraditionPreferencesRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateTraditionPreferencesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateTraditionPreferencesCommandOutput extends TraditionPreferencesResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateTraditionPreferencesCommand_base: {
|
|
25
|
+
new (input: UpdateTraditionPreferencesCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateTraditionPreferencesCommandInput, UpdateTraditionPreferencesCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UpdateTraditionPreferencesCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateTraditionPreferencesCommandInput, UpdateTraditionPreferencesCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Sets which traditions the caller opts out of (replaces the previous list). An empty list re-enrols
|
|
31
|
+
* the caller in every tradition.
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { OneHookClient, UpdateTraditionPreferencesCommand } from "onehook-api-client"; // ES Modules import
|
|
36
|
+
* // const { OneHookClient, UpdateTraditionPreferencesCommand } = require("onehook-api-client"); // CommonJS import
|
|
37
|
+
* const client = new OneHookClient(config);
|
|
38
|
+
* const input = { // UpdateTraditionPreferencesRequest
|
|
39
|
+
* disabled: [ // StringList // required
|
|
40
|
+
* "STRING_VALUE",
|
|
41
|
+
* ],
|
|
42
|
+
* };
|
|
43
|
+
* const command = new UpdateTraditionPreferencesCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // TraditionPreferencesResponse
|
|
46
|
+
* // traditions: [ // TraditionSettingList // required
|
|
47
|
+
* // { // TraditionSetting
|
|
48
|
+
* // id: "STRING_VALUE", // required
|
|
49
|
+
* // label: "STRING_VALUE", // required
|
|
50
|
+
* // description: "STRING_VALUE", // required
|
|
51
|
+
* // enabled: true || false, // required
|
|
52
|
+
* // needs: "STRING_VALUE", // required
|
|
53
|
+
* // },
|
|
54
|
+
* // ],
|
|
55
|
+
* // };
|
|
56
|
+
*
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @param UpdateTraditionPreferencesCommandInput - {@link UpdateTraditionPreferencesCommandInput}
|
|
60
|
+
* @returns {@link UpdateTraditionPreferencesCommandOutput}
|
|
61
|
+
* @see {@link UpdateTraditionPreferencesCommandInput} for command's `input` shape.
|
|
62
|
+
* @see {@link UpdateTraditionPreferencesCommandOutput} for command's `response` shape.
|
|
63
|
+
* @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link BadRequestError} (client fault)
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link InternalServerError} (server fault)
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link OneHookServiceException}
|
|
70
|
+
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
71
|
+
*
|
|
72
|
+
*
|
|
73
|
+
* @public
|
|
74
|
+
*/
|
|
75
|
+
export declare class UpdateTraditionPreferencesCommand extends UpdateTraditionPreferencesCommand_base {
|
|
76
|
+
/** @internal type navigation helper, not in runtime. */
|
|
77
|
+
protected static __types: {
|
|
78
|
+
api: {
|
|
79
|
+
input: UpdateTraditionPreferencesRequest;
|
|
80
|
+
output: TraditionPreferencesResponse;
|
|
81
|
+
};
|
|
82
|
+
sdk: {
|
|
83
|
+
input: UpdateTraditionPreferencesCommandInput;
|
|
84
|
+
output: UpdateTraditionPreferencesCommandOutput;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
}
|
|
@@ -42,6 +42,7 @@ export * from "./GetPreferencesCommand";
|
|
|
42
42
|
export * from "./GetReceivedLikesCommand";
|
|
43
43
|
export * from "./GetRosesCommand";
|
|
44
44
|
export * from "./GetSuggestionsCommand";
|
|
45
|
+
export * from "./GetTraditionPreferencesCommand";
|
|
45
46
|
export * from "./IndexLocationCommand";
|
|
46
47
|
export * from "./RecordSuggestionCommand";
|
|
47
48
|
export * from "./RemoveLocationCommand";
|
|
@@ -50,6 +51,7 @@ export * from "./RemoveSuggestionCommand";
|
|
|
50
51
|
export * from "./SwipeCommand";
|
|
51
52
|
export * from "./SwipeByUsernameCommand";
|
|
52
53
|
export * from "./UpdatePreferencesCommand";
|
|
54
|
+
export * from "./UpdateTraditionPreferencesCommand";
|
|
53
55
|
export * from "./CompleteLivenessSessionCommand";
|
|
54
56
|
export * from "./CorrectBirthDateCommand";
|
|
55
57
|
export * from "./CreateLivenessSessionCommand";
|
|
@@ -1265,6 +1265,65 @@ export declare const MatchFinder: {
|
|
|
1265
1265
|
* @public
|
|
1266
1266
|
*/
|
|
1267
1267
|
export type MatchFinder = typeof MatchFinder[keyof typeof MatchFinder];
|
|
1268
|
+
/**
|
|
1269
|
+
* @public
|
|
1270
|
+
* @enum
|
|
1271
|
+
*/
|
|
1272
|
+
export declare const MatchHighlightSource: {
|
|
1273
|
+
readonly ARABIC_PARTS: "ARABIC_PARTS";
|
|
1274
|
+
readonly BABYLONIAN: "BABYLONIAN";
|
|
1275
|
+
readonly BAZI: "BAZI";
|
|
1276
|
+
readonly BUDDHIST: "BUDDHIST";
|
|
1277
|
+
readonly CELTIC: "CELTIC";
|
|
1278
|
+
readonly EGYPTIAN: "EGYPTIAN";
|
|
1279
|
+
readonly HEBREW: "HEBREW";
|
|
1280
|
+
readonly HELLENISTIC: "HELLENISTIC";
|
|
1281
|
+
readonly KUNDALI: "KUNDALI";
|
|
1282
|
+
readonly MR_ONEHOOK: "MR_ONEHOOK";
|
|
1283
|
+
readonly ONEHOOK_INTELLIGENCE: "ONEHOOK_INTELLIGENCE";
|
|
1284
|
+
readonly TIBETAN: "TIBETAN";
|
|
1285
|
+
readonly TZOLKIN: "TZOLKIN";
|
|
1286
|
+
readonly WESTERN: "WESTERN";
|
|
1287
|
+
readonly ZI_WEI_DOU_SHU: "ZI_WEI_DOU_SHU";
|
|
1288
|
+
};
|
|
1289
|
+
/**
|
|
1290
|
+
* @public
|
|
1291
|
+
*/
|
|
1292
|
+
export type MatchHighlightSource = typeof MatchHighlightSource[keyof typeof MatchHighlightSource];
|
|
1293
|
+
/**
|
|
1294
|
+
* @public
|
|
1295
|
+
* @enum
|
|
1296
|
+
*/
|
|
1297
|
+
export declare const MatchVerdict: {
|
|
1298
|
+
readonly EXCELLENT: "EXCELLENT";
|
|
1299
|
+
readonly GOOD: "GOOD";
|
|
1300
|
+
};
|
|
1301
|
+
/**
|
|
1302
|
+
* @public
|
|
1303
|
+
*/
|
|
1304
|
+
export type MatchVerdict = typeof MatchVerdict[keyof typeof MatchVerdict];
|
|
1305
|
+
/**
|
|
1306
|
+
* One reason a candidate is a good match. Rendered as one swipeable card.
|
|
1307
|
+
* @public
|
|
1308
|
+
*/
|
|
1309
|
+
export interface MatchHighlight {
|
|
1310
|
+
/**
|
|
1311
|
+
* Where a match highlight comes from. Traditional systems mirror `Tradition`.
|
|
1312
|
+
* @public
|
|
1313
|
+
*/
|
|
1314
|
+
source: MatchHighlightSource | undefined;
|
|
1315
|
+
/**
|
|
1316
|
+
* Display name of `source`, e.g. "Kundali", "Mr. OneHook".
|
|
1317
|
+
* @public
|
|
1318
|
+
*/
|
|
1319
|
+
label: string | undefined;
|
|
1320
|
+
verdict: MatchVerdict | undefined;
|
|
1321
|
+
/**
|
|
1322
|
+
* Why, in plain language. Never reveals the other member's birth date, time or place.
|
|
1323
|
+
* @public
|
|
1324
|
+
*/
|
|
1325
|
+
reason: string | undefined;
|
|
1326
|
+
}
|
|
1268
1327
|
/**
|
|
1269
1328
|
* @public
|
|
1270
1329
|
* @enum
|
|
@@ -1317,6 +1376,15 @@ export interface CandidateDto {
|
|
|
1317
1376
|
* @public
|
|
1318
1377
|
*/
|
|
1319
1378
|
similarity?: number | undefined;
|
|
1379
|
+
/**
|
|
1380
|
+
* Every reason this candidate is a good match, one per source (OneHook Intelligence, Mr. OneHook,
|
|
1381
|
+
* and each traditional system that judged the pair a good match: Kundali, Bazi, ...). Each source
|
|
1382
|
+
* judges on its own; nothing is averaged. Strongest first. Empty when there is no specific reason;
|
|
1383
|
+
* the client then shows no "why we matched you" cards. A tradition appears only when both members
|
|
1384
|
+
* are enrolled in it and it rates the match good or excellent.
|
|
1385
|
+
* @public
|
|
1386
|
+
*/
|
|
1387
|
+
matchHighlights?: (MatchHighlight)[] | undefined;
|
|
1320
1388
|
}
|
|
1321
1389
|
/**
|
|
1322
1390
|
* @public
|
|
@@ -1521,6 +1589,31 @@ export interface GetSuggestionsResponse {
|
|
|
1521
1589
|
*/
|
|
1522
1590
|
oneHook?: CurrentSuggestion | undefined;
|
|
1523
1591
|
}
|
|
1592
|
+
/**
|
|
1593
|
+
* One tradition as shown in the settings screen.
|
|
1594
|
+
* @public
|
|
1595
|
+
*/
|
|
1596
|
+
export interface TraditionSetting {
|
|
1597
|
+
/**
|
|
1598
|
+
* Stable id, e.g. `KUNDALI`.
|
|
1599
|
+
* @public
|
|
1600
|
+
*/
|
|
1601
|
+
id: string | undefined;
|
|
1602
|
+
label: string | undefined;
|
|
1603
|
+
description: string | undefined;
|
|
1604
|
+
enabled: boolean | undefined;
|
|
1605
|
+
/**
|
|
1606
|
+
* The least birth data it uses: `DATE`, `TIME` (birth time) or `PLACE` (time and birthplace).
|
|
1607
|
+
* @public
|
|
1608
|
+
*/
|
|
1609
|
+
needs: string | undefined;
|
|
1610
|
+
}
|
|
1611
|
+
/**
|
|
1612
|
+
* @public
|
|
1613
|
+
*/
|
|
1614
|
+
export interface TraditionPreferencesResponse {
|
|
1615
|
+
traditions: (TraditionSetting)[] | undefined;
|
|
1616
|
+
}
|
|
1524
1617
|
/**
|
|
1525
1618
|
* @public
|
|
1526
1619
|
*/
|
|
@@ -1826,6 +1919,16 @@ export interface UpdatePreferencesRequest {
|
|
|
1826
1919
|
*/
|
|
1827
1920
|
notifyDailyPicks?: boolean | undefined;
|
|
1828
1921
|
}
|
|
1922
|
+
/**
|
|
1923
|
+
* @public
|
|
1924
|
+
*/
|
|
1925
|
+
export interface UpdateTraditionPreferencesRequest {
|
|
1926
|
+
/**
|
|
1927
|
+
* Tradition ids (from `GET /matching/traditions`) to opt out of.
|
|
1928
|
+
* @public
|
|
1929
|
+
*/
|
|
1930
|
+
disabled: (string)[] | undefined;
|
|
1931
|
+
}
|
|
1829
1932
|
/**
|
|
1830
1933
|
* @public
|
|
1831
1934
|
*/
|
|
@@ -32,6 +32,7 @@ import { GetReceivedLikesCommandInput, GetReceivedLikesCommandOutput } from "../
|
|
|
32
32
|
import { GetRosesCommandInput, GetRosesCommandOutput } from "../commands/GetRosesCommand";
|
|
33
33
|
import { GetStateCommandInput, GetStateCommandOutput } from "../commands/GetStateCommand";
|
|
34
34
|
import { GetSuggestionsCommandInput, GetSuggestionsCommandOutput } from "../commands/GetSuggestionsCommand";
|
|
35
|
+
import { GetTraditionPreferencesCommandInput, GetTraditionPreferencesCommandOutput } from "../commands/GetTraditionPreferencesCommand";
|
|
35
36
|
import { GetUserByEmailCommandInput, GetUserByEmailCommandOutput } from "../commands/GetUserByEmailCommand";
|
|
36
37
|
import { GetUserCommandInput, GetUserCommandOutput } from "../commands/GetUserCommand";
|
|
37
38
|
import { GetUserIdByUsernameCommandInput, GetUserIdByUsernameCommandOutput } from "../commands/GetUserIdByUsernameCommand";
|
|
@@ -65,6 +66,7 @@ import { UpdateEntitlementsCommandInput, UpdateEntitlementsCommandOutput } from
|
|
|
65
66
|
import { UpdatePhoneNumberCommandInput, UpdatePhoneNumberCommandOutput } from "../commands/UpdatePhoneNumberCommand";
|
|
66
67
|
import { UpdatePreferencesCommandInput, UpdatePreferencesCommandOutput } from "../commands/UpdatePreferencesCommand";
|
|
67
68
|
import { UpdateProfileCommandInput, UpdateProfileCommandOutput } from "../commands/UpdateProfileCommand";
|
|
69
|
+
import { UpdateTraditionPreferencesCommandInput, UpdateTraditionPreferencesCommandOutput } from "../commands/UpdateTraditionPreferencesCommand";
|
|
68
70
|
import { UpdateUsernameCommandInput, UpdateUsernameCommandOutput } from "../commands/UpdateUsernameCommand";
|
|
69
71
|
import { UpgradeUserCommandInput, UpgradeUserCommandOutput } from "../commands/UpgradeUserCommand";
|
|
70
72
|
import { ValidateInviteCommandInput, ValidateInviteCommandOutput } from "../commands/ValidateInviteCommand";
|
|
@@ -247,6 +249,10 @@ export declare const se_GetRosesCommand: (input: GetRosesCommandInput, context:
|
|
|
247
249
|
* serializeAws_restJson1GetSuggestionsCommand
|
|
248
250
|
*/
|
|
249
251
|
export declare const se_GetSuggestionsCommand: (input: GetSuggestionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
252
|
+
/**
|
|
253
|
+
* serializeAws_restJson1GetTraditionPreferencesCommand
|
|
254
|
+
*/
|
|
255
|
+
export declare const se_GetTraditionPreferencesCommand: (input: GetTraditionPreferencesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
250
256
|
/**
|
|
251
257
|
* serializeAws_restJson1IndexLocationCommand
|
|
252
258
|
*/
|
|
@@ -279,6 +285,10 @@ export declare const se_SwipeByUsernameCommand: (input: SwipeByUsernameCommandIn
|
|
|
279
285
|
* serializeAws_restJson1UpdatePreferencesCommand
|
|
280
286
|
*/
|
|
281
287
|
export declare const se_UpdatePreferencesCommand: (input: UpdatePreferencesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
288
|
+
/**
|
|
289
|
+
* serializeAws_restJson1UpdateTraditionPreferencesCommand
|
|
290
|
+
*/
|
|
291
|
+
export declare const se_UpdateTraditionPreferencesCommand: (input: UpdateTraditionPreferencesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
282
292
|
/**
|
|
283
293
|
* serializeAws_restJson1CompleteLivenessSessionCommand
|
|
284
294
|
*/
|
|
@@ -531,6 +541,10 @@ export declare const de_GetRosesCommand: (output: __HttpResponse, context: __Ser
|
|
|
531
541
|
* deserializeAws_restJson1GetSuggestionsCommand
|
|
532
542
|
*/
|
|
533
543
|
export declare const de_GetSuggestionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetSuggestionsCommandOutput>;
|
|
544
|
+
/**
|
|
545
|
+
* deserializeAws_restJson1GetTraditionPreferencesCommand
|
|
546
|
+
*/
|
|
547
|
+
export declare const de_GetTraditionPreferencesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetTraditionPreferencesCommandOutput>;
|
|
534
548
|
/**
|
|
535
549
|
* deserializeAws_restJson1IndexLocationCommand
|
|
536
550
|
*/
|
|
@@ -563,6 +577,10 @@ export declare const de_SwipeByUsernameCommand: (output: __HttpResponse, context
|
|
|
563
577
|
* deserializeAws_restJson1UpdatePreferencesCommand
|
|
564
578
|
*/
|
|
565
579
|
export declare const de_UpdatePreferencesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdatePreferencesCommandOutput>;
|
|
580
|
+
/**
|
|
581
|
+
* deserializeAws_restJson1UpdateTraditionPreferencesCommand
|
|
582
|
+
*/
|
|
583
|
+
export declare const de_UpdateTraditionPreferencesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateTraditionPreferencesCommandOutput>;
|
|
566
584
|
/**
|
|
567
585
|
* deserializeAws_restJson1CompleteLivenessSessionCommand
|
|
568
586
|
*/
|
package/package.json
CHANGED