@oxyfoo/whymeet-types 0.0.12 → 0.0.14
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 +12 -0
- package/dist/WS/Request.d.ts +2 -16
- package/package.json +1 -1
package/dist/HTTP/Auth.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { Profile } from '../Models/Profile.js';
|
|
|
2
2
|
export interface HTTPRequest_Device {
|
|
3
3
|
uuid?: string;
|
|
4
4
|
sessionToken?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
os?: string;
|
|
5
7
|
}
|
|
6
8
|
export type HTTPResponse_Device = {
|
|
7
9
|
status: 'new';
|
|
@@ -104,3 +106,13 @@ export interface HTTPRequest_IntegrityVerify {
|
|
|
104
106
|
export interface HTTPResponse_IntegrityVerify {
|
|
105
107
|
verified: boolean;
|
|
106
108
|
}
|
|
109
|
+
export interface HTTPRequest_AppealSuspension {
|
|
110
|
+
deviceUUID: string;
|
|
111
|
+
sessionToken: string;
|
|
112
|
+
message?: string;
|
|
113
|
+
}
|
|
114
|
+
export type HTTPResponse_AppealSuspension = {
|
|
115
|
+
success: true;
|
|
116
|
+
} | {
|
|
117
|
+
error: string;
|
|
118
|
+
};
|
package/dist/WS/Request.d.ts
CHANGED
|
@@ -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: {
|
|
@@ -416,7 +410,7 @@ export interface WSRequest_SetDiscoveryView {
|
|
|
416
410
|
view: DiscoveryView;
|
|
417
411
|
};
|
|
418
412
|
}
|
|
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 |
|
|
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;
|
|
420
414
|
export type WSClientCommand = WSClientRequest['command'];
|
|
421
415
|
export interface WSResponse_Handshake {
|
|
422
416
|
command: 'handshake';
|
|
@@ -599,14 +593,6 @@ export interface WSResponse_ReportUser {
|
|
|
599
593
|
error: string;
|
|
600
594
|
};
|
|
601
595
|
}
|
|
602
|
-
export interface WSResponse_AppealSuspension {
|
|
603
|
-
command: 'appeal-suspension';
|
|
604
|
-
payload: {
|
|
605
|
-
success: boolean;
|
|
606
|
-
} | {
|
|
607
|
-
error: string;
|
|
608
|
-
};
|
|
609
|
-
}
|
|
610
596
|
export interface WSResponse_SubmitFeedback {
|
|
611
597
|
command: 'submit-feedback';
|
|
612
598
|
payload: {
|
|
@@ -961,7 +947,7 @@ export interface WSResponse_SetDiscoveryView {
|
|
|
961
947
|
error: string;
|
|
962
948
|
};
|
|
963
949
|
}
|
|
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 |
|
|
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;
|
|
965
951
|
export interface WSEvent_NewMessage {
|
|
966
952
|
event: 'new-message';
|
|
967
953
|
payload: {
|