@oxyfoo/whymeet-types 0.0.10 → 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.
@@ -14,7 +14,7 @@ export interface SubIntention {
14
14
  tags: string[];
15
15
  }
16
16
  export declare const SUB_INTENTIONS: Record<IntentionKey, SubIntention[]>;
17
- export declare const INTEREST_CATEGORY_KEYS: readonly ["sports", "music", "nightlife", "gaming", "food", "culture", "outdoors", "wellness", "travel", "creative", "learning"];
17
+ export declare const INTEREST_CATEGORY_KEYS: readonly ["sports", "music", "nightlife", "gaming", "food", "culture", "cinema", "reading", "outdoors", "wellness", "travel", "creative", "learning", "tech", "cooking", "craft", "pro", "coaching"];
18
18
  export type InterestCategoryKey = (typeof INTEREST_CATEGORY_KEYS)[number];
19
19
  export interface InterestCategory {
20
20
  key: InterestCategoryKey;
@@ -219,11 +219,18 @@ export const INTEREST_CATEGORY_KEYS = [
219
219
  'gaming',
220
220
  'food',
221
221
  'culture',
222
+ 'cinema',
223
+ 'reading',
222
224
  'outdoors',
223
225
  'wellness',
224
226
  'travel',
225
227
  'creative',
226
- 'learning'
228
+ 'learning',
229
+ 'tech',
230
+ 'cooking',
231
+ 'craft',
232
+ 'pro',
233
+ 'coaching'
227
234
  ];
228
235
  export const INTEREST_CATEGORIES = [
229
236
  { key: 'sports', label: 'Sports', emoji: '⚽', description: 'Football, running, fitness…' },
@@ -231,10 +238,17 @@ export const INTEREST_CATEGORIES = [
231
238
  { key: 'nightlife', label: 'Sorties', emoji: '🌙', description: 'Bars, clubs, soirées…' },
232
239
  { key: 'gaming', label: 'Gaming', emoji: '🎮', description: 'Jeux vidéo, board games…' },
233
240
  { key: 'food', label: 'Food', emoji: '🍕', description: 'Restaurants, cuisine, food trips…' },
234
- { key: 'culture', label: 'Culture', emoji: '🎭', description: 'Musées, cinéma, théâtre…' },
241
+ { key: 'culture', label: 'Culture', emoji: '🎭', description: 'Musées, expos, théâtre…' },
242
+ { key: 'cinema', label: 'Ciné & séries', emoji: '🎬', description: 'Films, séries, documentaires…' },
243
+ { key: 'reading', label: 'Lecture', emoji: '📚', description: 'Romans, BD, manga, essais…' },
235
244
  { key: 'outdoors', label: 'Plein air', emoji: '🏔️', description: 'Rando, escalade, nature…' },
236
245
  { key: 'wellness', label: 'Bien-être', emoji: '🧘', description: 'Yoga, méditation, spa…' },
237
246
  { key: 'travel', label: 'Voyages', emoji: '✈️', description: 'Découvrir de nouveaux endroits' },
238
247
  { key: 'creative', label: 'Créatif', emoji: '🎨', description: 'Art, photo, écriture, DIY…' },
239
- { key: 'learning', label: 'Apprentissage', emoji: '📚', description: 'Langues, tech, sciences…' }
248
+ { key: 'learning', label: 'Apprentissage', emoji: '📖', description: 'Langues, sciences, histoire…' },
249
+ { key: 'tech', label: 'Tech', emoji: '💻', description: 'Code, IA, design, data…' },
250
+ { key: 'cooking', label: 'Cuisine', emoji: '👨‍🍳', description: 'Pâtisserie, gastronomie, cocktails…' },
251
+ { key: 'craft', label: 'Artisanat', emoji: '🔨', description: 'Bricolage, couture, menuiserie…' },
252
+ { key: 'pro', label: 'Pro', emoji: '💼', description: 'Domaines professionnels et études…' },
253
+ { key: 'coaching', label: 'Coaching', emoji: '🎓', description: 'Transmettre, coacher, enseigner…' }
240
254
  ];
@@ -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;
@@ -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';
@@ -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 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;
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 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;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxyfoo/whymeet-types",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "description": "WhyMeet Types - Shared TypeScript types for the WhyMeet project.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",