@oxyfoo/whymeet-types 0.0.11 → 0.0.13
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/HTTP/Auth.d.ts +10 -0
- package/dist/Models/Profile.d.ts +2 -0
- package/dist/Models/index.d.ts +1 -1
- package/dist/WS/Request.d.ts +22 -18
- package/package.json +1 -1
package/dist/HTTP/Auth.d.ts
CHANGED
|
@@ -104,3 +104,13 @@ export interface HTTPRequest_IntegrityVerify {
|
|
|
104
104
|
export interface HTTPResponse_IntegrityVerify {
|
|
105
105
|
verified: boolean;
|
|
106
106
|
}
|
|
107
|
+
export interface HTTPRequest_AppealSuspension {
|
|
108
|
+
deviceUUID: string;
|
|
109
|
+
sessionToken: string;
|
|
110
|
+
message?: string;
|
|
111
|
+
}
|
|
112
|
+
export type HTTPResponse_AppealSuspension = {
|
|
113
|
+
success: true;
|
|
114
|
+
} | {
|
|
115
|
+
error: string;
|
|
116
|
+
};
|
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';
|
|
@@ -140,12 +140,6 @@ export interface WSRequest_ReportUser {
|
|
|
140
140
|
message?: string;
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
|
-
export interface WSRequest_AppealSuspension {
|
|
144
|
-
command: 'appeal-suspension';
|
|
145
|
-
payload: {
|
|
146
|
-
message?: string;
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
143
|
export interface WSRequest_SubmitFeedback {
|
|
150
144
|
command: 'submit-feedback';
|
|
151
145
|
payload: {
|
|
@@ -410,7 +404,13 @@ export interface WSRequest_ConfirmParticipation {
|
|
|
410
404
|
attended: boolean;
|
|
411
405
|
};
|
|
412
406
|
}
|
|
413
|
-
export
|
|
407
|
+
export interface WSRequest_SetDiscoveryView {
|
|
408
|
+
command: 'set-discovery-view';
|
|
409
|
+
payload: {
|
|
410
|
+
view: DiscoveryView;
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
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_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
414
|
export type WSClientCommand = WSClientRequest['command'];
|
|
415
415
|
export interface WSResponse_Handshake {
|
|
416
416
|
command: 'handshake';
|
|
@@ -593,14 +593,6 @@ export interface WSResponse_ReportUser {
|
|
|
593
593
|
error: string;
|
|
594
594
|
};
|
|
595
595
|
}
|
|
596
|
-
export interface WSResponse_AppealSuspension {
|
|
597
|
-
command: 'appeal-suspension';
|
|
598
|
-
payload: {
|
|
599
|
-
success: boolean;
|
|
600
|
-
} | {
|
|
601
|
-
error: string;
|
|
602
|
-
};
|
|
603
|
-
}
|
|
604
596
|
export interface WSResponse_SubmitFeedback {
|
|
605
597
|
command: 'submit-feedback';
|
|
606
598
|
payload: {
|
|
@@ -947,7 +939,15 @@ export interface WSResponse_ConfirmParticipation {
|
|
|
947
939
|
error: string;
|
|
948
940
|
};
|
|
949
941
|
}
|
|
950
|
-
export
|
|
942
|
+
export interface WSResponse_SetDiscoveryView {
|
|
943
|
+
command: 'set-discovery-view';
|
|
944
|
+
payload: {
|
|
945
|
+
ok: true;
|
|
946
|
+
} | {
|
|
947
|
+
error: string;
|
|
948
|
+
};
|
|
949
|
+
}
|
|
950
|
+
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_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
951
|
export interface WSEvent_NewMessage {
|
|
952
952
|
event: 'new-message';
|
|
953
953
|
payload: {
|
|
@@ -978,13 +978,17 @@ export interface WSEvent_Suspended {
|
|
|
978
978
|
event: 'suspended';
|
|
979
979
|
payload: Record<string, never>;
|
|
980
980
|
}
|
|
981
|
+
export interface WSEvent_Banned {
|
|
982
|
+
event: 'banned';
|
|
983
|
+
payload: Record<string, never>;
|
|
984
|
+
}
|
|
981
985
|
export interface WSEvent_RateLimited {
|
|
982
986
|
event: 'rate-limited';
|
|
983
987
|
payload: {
|
|
984
988
|
message: string;
|
|
985
989
|
};
|
|
986
990
|
}
|
|
987
|
-
export type WSServerEvent = WSEvent_NewMessage | WSEvent_NewMatch | WSEvent_Notification | WSEvent_MarkRead | WSEvent_Suspended | WSEvent_RateLimited;
|
|
991
|
+
export type WSServerEvent = WSEvent_NewMessage | WSEvent_NewMatch | WSEvent_Notification | WSEvent_MarkRead | WSEvent_Suspended | WSEvent_Banned | WSEvent_RateLimited;
|
|
988
992
|
export interface WSEnvelope<T = WSClientRequest | WSServerResponse | WSServerEvent> {
|
|
989
993
|
id: string;
|
|
990
994
|
timestamp: number;
|