@oxyfoo/whymeet-types 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Models/Profile.d.ts +2 -0
- package/dist/Models/index.d.ts +1 -1
- package/dist/WS/Request.d.ts +22 -4
- package/package.json +1 -1
package/dist/Models/Profile.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { Tag } from './Tag.js';
|
|
|
4
4
|
import type { HostLevel } from './TrustScore.js';
|
|
5
5
|
export type SocialVibe = 'reserved' | 'calm' | 'balanced' | 'outgoing' | 'very_social';
|
|
6
6
|
export declare const SOCIAL_VIBES: readonly SocialVibe[];
|
|
7
|
+
export type DiscoveryView = 'swipe' | 'advanced';
|
|
7
8
|
export interface Profile extends User {
|
|
8
9
|
bio: string;
|
|
9
10
|
birthDateLastChangedAt: string | null;
|
|
@@ -12,6 +13,7 @@ export interface Profile extends User {
|
|
|
12
13
|
socialVibe: SocialVibe;
|
|
13
14
|
intentions: IntentionKey[];
|
|
14
15
|
spokenLanguages: string[];
|
|
16
|
+
preferredDiscoveryView: DiscoveryView;
|
|
15
17
|
location: {
|
|
16
18
|
country: string;
|
|
17
19
|
region: string;
|
package/dist/Models/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type { User, ProfilePhoto } from './User.js';
|
|
2
2
|
export type { ReportReason, ReportSourceType } from './Report.js';
|
|
3
3
|
export type { FeedbackType } from './Feedback.js';
|
|
4
|
-
export type { Profile, SocialVibe } from './Profile.js';
|
|
4
|
+
export type { Profile, SocialVibe, DiscoveryView } from './Profile.js';
|
|
5
5
|
export { SOCIAL_VIBES } from './Profile.js';
|
|
6
6
|
export type { Intention, IntentionKey, InterestCategory, InterestCategoryKey, SubIntention } from './Intention.js';
|
|
7
7
|
export { INTENTION_KEYS, INTENTIONS, INTEREST_CATEGORY_KEYS, INTEREST_CATEGORIES, SUB_INTENTIONS } from './Intention.js';
|
package/dist/WS/Request.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Profile } from '../Models/Profile.js';
|
|
1
|
+
import type { Profile, DiscoveryView } from '../Models/Profile.js';
|
|
2
2
|
import type { MatchCandidate, MatchRequest } from '../Models/Match.js';
|
|
3
3
|
import type { Conversation, Message } from '../Models/Conversation.js';
|
|
4
4
|
import type { SearchFilters } from '../Models/Search.js';
|
|
@@ -410,7 +410,13 @@ export interface WSRequest_ConfirmParticipation {
|
|
|
410
410
|
attended: boolean;
|
|
411
411
|
};
|
|
412
412
|
}
|
|
413
|
-
export
|
|
413
|
+
export interface WSRequest_SetDiscoveryView {
|
|
414
|
+
command: 'set-discovery-view';
|
|
415
|
+
payload: {
|
|
416
|
+
view: DiscoveryView;
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
export type WSClientRequest = WSRequest_Handshake | WSRequest_GetProfile | WSRequest_UpdateProfile | WSRequest_GetCandidates | WSRequest_GetCandidateCounts | WSRequest_GetSubIntentionCounts | WSRequest_GetPopularTags | WSRequest_Like | WSRequest_Skip | WSRequest_Star | WSRequest_Search | WSRequest_GetConversations | WSRequest_GetMessages | WSRequest_SendMessage | WSRequest_GetRequests | WSRequest_AcceptRequest | WSRequest_DeclineRequest | WSRequest_GetNotifications | WSRequest_SubmitFeedback | WSRequest_MarkNotificationRead | WSRequest_BlockUser | WSRequest_ReportUser | WSRequest_Unmatch | WSRequest_AppealSuspension | WSRequest_GetSettings | WSRequest_UpdateSettings | WSRequest_TagSuggest | WSRequest_GetPreferences | WSRequest_UpdatePreferences | WSRequest_DeleteAccount | WSRequest_RegisterPushToken | WSRequest_GetSubscription | WSRequest_ValidateReceipt | WSRequest_GetTokenBalance | WSRequest_SearchWithToken | WSRequest_PreviewSearch | WSRequest_PurchaseBoost | WSRequest_GetBoostStatus | WSRequest_MarkRead | WSRequest_GetUserProfile | WSRequest_CreateActivity | WSRequest_UpdateActivity | WSRequest_CancelActivity | WSRequest_GetActivity | WSRequest_JoinActivity | WSRequest_LeaveActivity | WSRequest_GetActivities | WSRequest_GetActivityCounts | WSRequest_SearchActivities | WSRequest_SearchActivitiesWithToken | WSRequest_PreviewSearchActivities | WSRequest_GetCandidateActivities | WSRequest_GetPopularActivityTags | WSRequest_ReportActivity | WSRequest_GetMyActivities | WSRequest_GetBlockedUsers | WSRequest_UnblockUser | WSRequest_GetProfilePopularTags | WSRequest_GetBadges | WSRequest_GetUserBadges | WSRequest_ClaimBadgeReward | WSRequest_ConfirmHostAttendance | WSRequest_ConfirmParticipation | WSRequest_SetDiscoveryView;
|
|
414
420
|
export type WSClientCommand = WSClientRequest['command'];
|
|
415
421
|
export interface WSResponse_Handshake {
|
|
416
422
|
command: 'handshake';
|
|
@@ -947,7 +953,15 @@ export interface WSResponse_ConfirmParticipation {
|
|
|
947
953
|
error: string;
|
|
948
954
|
};
|
|
949
955
|
}
|
|
950
|
-
export
|
|
956
|
+
export interface WSResponse_SetDiscoveryView {
|
|
957
|
+
command: 'set-discovery-view';
|
|
958
|
+
payload: {
|
|
959
|
+
ok: true;
|
|
960
|
+
} | {
|
|
961
|
+
error: string;
|
|
962
|
+
};
|
|
963
|
+
}
|
|
964
|
+
export type WSServerResponse = WSResponse_Handshake | WSResponse_GetProfile | WSResponse_UpdateProfile | WSResponse_GetCandidates | WSResponse_GetCandidateCounts | WSResponse_GetSubIntentionCounts | WSResponse_GetPopularTags | WSResponse_Like | WSResponse_Skip | WSResponse_Star | WSResponse_Search | WSResponse_GetConversations | WSResponse_GetMessages | WSResponse_SendMessage | WSResponse_GetRequests | WSResponse_AcceptRequest | WSResponse_DeclineRequest | WSResponse_SubmitFeedback | WSResponse_GetNotifications | WSResponse_MarkNotificationRead | WSResponse_BlockUser | WSResponse_ReportUser | WSResponse_Unmatch | WSResponse_AppealSuspension | WSResponse_GetSettings | WSResponse_UpdateSettings | WSResponse_TagSuggest | WSResponse_GetPreferences | WSResponse_UpdatePreferences | WSResponse_DeleteAccount | WSResponse_RegisterPushToken | WSResponse_GetSubscription | WSResponse_ValidateReceipt | WSResponse_GetTokenBalance | WSResponse_SearchWithToken | WSResponse_PreviewSearch | WSResponse_PurchaseBoost | WSResponse_GetBoostStatus | WSResponse_CreateActivity | WSResponse_UpdateActivity | WSResponse_CancelActivity | WSResponse_GetActivity | WSResponse_JoinActivity | WSResponse_LeaveActivity | WSResponse_GetActivities | WSResponse_GetActivityCounts | WSResponse_SearchActivities | WSResponse_SearchActivitiesWithToken | WSResponse_PreviewSearchActivities | WSResponse_GetCandidateActivities | WSResponse_GetPopularActivityTags | WSResponse_ReportActivity | WSResponse_GetMyActivities | WSResponse_MarkRead | WSResponse_GetUserProfile | WSResponse_GetBlockedUsers | WSResponse_UnblockUser | WSResponse_GetProfilePopularTags | WSResponse_GetBadges | WSResponse_GetUserBadges | WSResponse_ClaimBadgeReward | WSResponse_ConfirmHostAttendance | WSResponse_ConfirmParticipation | WSResponse_SetDiscoveryView;
|
|
951
965
|
export interface WSEvent_NewMessage {
|
|
952
966
|
event: 'new-message';
|
|
953
967
|
payload: {
|
|
@@ -978,13 +992,17 @@ export interface WSEvent_Suspended {
|
|
|
978
992
|
event: 'suspended';
|
|
979
993
|
payload: Record<string, never>;
|
|
980
994
|
}
|
|
995
|
+
export interface WSEvent_Banned {
|
|
996
|
+
event: 'banned';
|
|
997
|
+
payload: Record<string, never>;
|
|
998
|
+
}
|
|
981
999
|
export interface WSEvent_RateLimited {
|
|
982
1000
|
event: 'rate-limited';
|
|
983
1001
|
payload: {
|
|
984
1002
|
message: string;
|
|
985
1003
|
};
|
|
986
1004
|
}
|
|
987
|
-
export type WSServerEvent = WSEvent_NewMessage | WSEvent_NewMatch | WSEvent_Notification | WSEvent_MarkRead | WSEvent_Suspended | WSEvent_RateLimited;
|
|
1005
|
+
export type WSServerEvent = WSEvent_NewMessage | WSEvent_NewMatch | WSEvent_Notification | WSEvent_MarkRead | WSEvent_Suspended | WSEvent_Banned | WSEvent_RateLimited;
|
|
988
1006
|
export interface WSEnvelope<T = WSClientRequest | WSServerResponse | WSServerEvent> {
|
|
989
1007
|
id: string;
|
|
990
1008
|
timestamp: number;
|