@oxyfoo/whymeet-types 0.0.14 → 0.0.16
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.
|
@@ -17,8 +17,8 @@ export interface Activity {
|
|
|
17
17
|
category: InterestCategoryKey;
|
|
18
18
|
dateTime: string | null;
|
|
19
19
|
locationName: string;
|
|
20
|
-
latitude: number
|
|
21
|
-
longitude: number
|
|
20
|
+
latitude: number;
|
|
21
|
+
longitude: number;
|
|
22
22
|
maxParticipants: number | null;
|
|
23
23
|
participantCount: number;
|
|
24
24
|
participants: ActivityParticipantInfo[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/Models/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export type { Notification } from './Notification.js';
|
|
|
13
13
|
export type { Language, Theme, UserSettings, Gender, PeoplePreferences, ActivityPreferences, VisibilityPreferences } from './Settings.js';
|
|
14
14
|
export { GENDERS, DEFAULT_PEOPLE, DEFAULT_ACTIVITY, DEFAULT_VISIBILITY } from './Settings.js';
|
|
15
15
|
export type { Activity, ActivitySummary, ActivitySearchFilters, ActivityPhoto, ActivityParticipantInfo } from './Activity.js';
|
|
16
|
+
export type { PlaceSuggestion, PlaceSuggestionLite } from './Place.js';
|
|
16
17
|
export type { BlockedUser } from './Block.js';
|
|
17
18
|
export type { PreferredPeriod } from './Availability.js';
|
|
18
19
|
export { PREFERRED_PERIODS } from './Availability.js';
|
package/dist/WS/Request.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import type { BlockedUser } from '../Models/Block.js';
|
|
|
12
12
|
import type { Activity, ActivitySummary, ActivitySearchFilters } from '../Models/Activity.js';
|
|
13
13
|
import type { IntentionKey, InterestCategoryKey } from '../Models/Intention.js';
|
|
14
14
|
import type { UserBadge } from '../Models/Badge.js';
|
|
15
|
+
import type { PlaceSuggestion, PlaceSuggestionLite } from '../Models/Place.js';
|
|
15
16
|
export interface WSRequest_Handshake {
|
|
16
17
|
command: 'handshake';
|
|
17
18
|
payload: {
|
|
@@ -217,8 +218,8 @@ export interface WSRequest_CreateActivity {
|
|
|
217
218
|
category: InterestCategoryKey;
|
|
218
219
|
dateTime?: string;
|
|
219
220
|
locationName: string;
|
|
220
|
-
latitude
|
|
221
|
-
longitude
|
|
221
|
+
latitude: number;
|
|
222
|
+
longitude: number;
|
|
222
223
|
maxParticipants?: number;
|
|
223
224
|
targetGenders?: Gender[];
|
|
224
225
|
targetAgeRange?: [number, number];
|
|
@@ -234,14 +235,30 @@ export interface WSRequest_UpdateActivity {
|
|
|
234
235
|
category?: InterestCategoryKey;
|
|
235
236
|
dateTime?: string | null;
|
|
236
237
|
locationName?: string;
|
|
237
|
-
latitude?: number
|
|
238
|
-
longitude?: number
|
|
238
|
+
latitude?: number;
|
|
239
|
+
longitude?: number;
|
|
239
240
|
maxParticipants?: number | null;
|
|
240
241
|
targetGenders?: Gender[];
|
|
241
242
|
targetAgeRange?: [number, number];
|
|
242
243
|
};
|
|
243
244
|
};
|
|
244
245
|
}
|
|
246
|
+
export interface WSRequest_PlacesSuggest {
|
|
247
|
+
command: 'places-suggest';
|
|
248
|
+
payload: {
|
|
249
|
+
query: string;
|
|
250
|
+
language?: string;
|
|
251
|
+
latitude?: number;
|
|
252
|
+
longitude?: number;
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
export interface WSRequest_PlacesRetrieve {
|
|
256
|
+
command: 'places-retrieve';
|
|
257
|
+
payload: {
|
|
258
|
+
id: string;
|
|
259
|
+
language?: string;
|
|
260
|
+
};
|
|
261
|
+
}
|
|
245
262
|
export interface WSRequest_CancelActivity {
|
|
246
263
|
command: 'cancel-activity';
|
|
247
264
|
payload: {
|
|
@@ -410,7 +427,7 @@ export interface WSRequest_SetDiscoveryView {
|
|
|
410
427
|
view: DiscoveryView;
|
|
411
428
|
};
|
|
412
429
|
}
|
|
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;
|
|
430
|
+
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 | WSRequest_PlacesSuggest | WSRequest_PlacesRetrieve;
|
|
414
431
|
export type WSClientCommand = WSClientRequest['command'];
|
|
415
432
|
export interface WSResponse_Handshake {
|
|
416
433
|
command: 'handshake';
|
|
@@ -947,7 +964,23 @@ export interface WSResponse_SetDiscoveryView {
|
|
|
947
964
|
error: string;
|
|
948
965
|
};
|
|
949
966
|
}
|
|
950
|
-
export
|
|
967
|
+
export interface WSResponse_PlacesSuggest {
|
|
968
|
+
command: 'places-suggest';
|
|
969
|
+
payload: {
|
|
970
|
+
suggestions: PlaceSuggestionLite[];
|
|
971
|
+
} | {
|
|
972
|
+
error: string;
|
|
973
|
+
};
|
|
974
|
+
}
|
|
975
|
+
export interface WSResponse_PlacesRetrieve {
|
|
976
|
+
command: 'places-retrieve';
|
|
977
|
+
payload: {
|
|
978
|
+
place: PlaceSuggestion | null;
|
|
979
|
+
} | {
|
|
980
|
+
error: string;
|
|
981
|
+
};
|
|
982
|
+
}
|
|
983
|
+
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 | WSResponse_PlacesSuggest | WSResponse_PlacesRetrieve;
|
|
951
984
|
export interface WSEvent_NewMessage {
|
|
952
985
|
event: 'new-message';
|
|
953
986
|
payload: {
|