@oxyfoo/whymeet-types 0.0.37 → 0.0.39

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.
@@ -1,5 +1,5 @@
1
1
  import { User } from './User.js';
2
- export type MessageType = 'text' | 'user_joined' | 'user_left';
2
+ export type MessageType = 'text' | 'user_joined' | 'user_left' | 'shared_activity';
3
3
  export interface Conversation {
4
4
  id: string;
5
5
  participant: User;
@@ -21,4 +21,5 @@ export interface Message {
21
21
  timestamp: string;
22
22
  read: boolean;
23
23
  type: MessageType;
24
+ activityId?: string | null;
24
25
  }
@@ -1,7 +1,7 @@
1
1
  import type { InterestCategoryKey } from './InterestCategory.js';
2
2
  export declare const INTENTION_CATEGORY_KEYS: readonly ["do_something_together", "go_out_or_move", "talk_and_share", "build_connection", "see_if_it_clicks", "grow_or_build"];
3
3
  export type IntentionCategoryKey = (typeof INTENTION_CATEGORY_KEYS)[number];
4
- export declare const INTENTION_KEYS: readonly ["go_out_coffee", "go_out_drink", "go_out_meal", "go_out_walk", "go_out_tonight", "go_out_discover", "activity_sports", "activity_play", "activity_play_video_games", "activity_play_board_games", "activity_play_chess", "activity_culture", "activity_creative", "activity_food", "activity_outdoor", "talk_light", "talk_deep", "talk_topic", "talk_media", "talk_language_exchange", "talk_online", "meet_make_acquaintance", "meet_feeling", "meet_simple_first_date", "meet_relaxed_date", "meet_spontaneous", "meet_online_first", "regular_sports_partner", "regular_game_partner", "regular_talk_buddy", "regular_social_habit", "regular_small_group", "regular_go_out_often", "build_coworking", "build_project", "build_entrepreneurship", "build_create_together", "build_learn_together", "build_mentoring", "build_collaboration"];
4
+ export declare const INTENTION_KEYS: readonly ["go_out_coffee", "go_out_drink", "go_out_meal", "go_out_walk", "go_out_tonight", "go_out_discover", "activity_sports", "activity_play", "activity_play_video_games", "activity_play_board_games", "activity_play_chess", "activity_culture", "activity_creative", "activity_food", "activity_outdoor", "activity_outdoor_pet", "activity_outdoor_dog_walk", "talk_light", "talk_deep", "talk_topic", "talk_media", "talk_language_exchange", "talk_online", "meet_make_acquaintance", "meet_feeling", "meet_simple_first_date", "meet_relaxed_date", "meet_spontaneous", "meet_online_first", "regular_sports_partner", "regular_game_partner", "regular_talk_buddy", "regular_social_habit", "regular_small_group", "regular_go_out_often", "build_coworking", "build_project", "build_entrepreneurship", "build_create_together", "build_learn_together", "build_mentoring", "build_collaboration"];
5
5
  export type IntentionKey = (typeof INTENTION_KEYS)[number];
6
6
  export type IntentionParentKey = IntentionCategoryKey | IntentionKey;
7
7
  export type SupportedLocale = 'fr' | 'en';
@@ -22,6 +22,8 @@ export const INTENTION_KEYS = [
22
22
  'activity_creative',
23
23
  'activity_food',
24
24
  'activity_outdoor',
25
+ 'activity_outdoor_pet',
26
+ 'activity_outdoor_dog_walk',
25
27
  'talk_light',
26
28
  'talk_deep',
27
29
  'talk_topic',
@@ -454,6 +456,50 @@ export const INTENTIONS = [
454
456
  domainKeys: ['outdoors', 'travel', 'sports'],
455
457
  order: 60
456
458
  },
459
+ {
460
+ key: 'activity_outdoor_pet',
461
+ parentKey: 'activity_outdoor',
462
+ categoryKey: 'do_something_together',
463
+ level: 3,
464
+ emoji: '🐾',
465
+ i18n: {
466
+ fr: {
467
+ label: 'Sortie avec son animal',
468
+ shortLabel: 'Sortie animal',
469
+ description: 'Se retrouver pour une balade ou une sortie, animaux de compagnie bienvenus.'
470
+ },
471
+ en: {
472
+ label: 'Outing with a pet',
473
+ shortLabel: 'Pet outing',
474
+ description: 'Meet up for a walk or outing — pets welcome.'
475
+ }
476
+ },
477
+ tags: ['Chien', 'Chat', 'Parc animalier', 'Plein air', 'Balade', 'Animal'],
478
+ domainKeys: ['outdoors', 'wellness'],
479
+ order: 61
480
+ },
481
+ {
482
+ key: 'activity_outdoor_dog_walk',
483
+ parentKey: 'activity_outdoor',
484
+ categoryKey: 'do_something_together',
485
+ level: 3,
486
+ emoji: '🐕',
487
+ i18n: {
488
+ fr: {
489
+ label: 'Promener son chien',
490
+ shortLabel: 'Chien',
491
+ description: 'Sortir promener son chien en bonne compagnie — parcs, sentiers ou balades urbaines.'
492
+ },
493
+ en: {
494
+ label: 'Walk the dog',
495
+ shortLabel: 'Dog walk',
496
+ description: 'Take your dog out with good company — parks, trails, or urban strolls.'
497
+ }
498
+ },
499
+ tags: ['Parc', 'Laisse libre', 'Sentier', 'Urbain', 'Race', 'Chiot', 'Dressage'],
500
+ domainKeys: ['outdoors', 'wellness'],
501
+ order: 62
502
+ },
457
503
  {
458
504
  key: 'talk_light',
459
505
  parentKey: 'talk_and_share',
@@ -117,6 +117,14 @@ export interface WSRequest_SendMessage {
117
117
  text: string;
118
118
  };
119
119
  }
120
+ export interface WSRequest_ShareActivity {
121
+ command: 'share-activity';
122
+ payload: {
123
+ activityId: string;
124
+ conversationIds: string[];
125
+ text?: string;
126
+ };
127
+ }
120
128
  export interface WSRequest_GetRequests {
121
129
  command: 'get-requests';
122
130
  payload: {
@@ -479,7 +487,7 @@ export interface WSRequest_AnalyticsIngest {
479
487
  events: AnalyticsClientEvent<AnalyticsEventName>[];
480
488
  };
481
489
  }
482
- export type WSClientRequest = WSRequest_Handshake | WSRequest_GetProfile | WSRequest_UpdateProfile | WSRequest_GetCandidates | WSRequest_GetCandidateCounts | WSRequest_GetIntentionCatalog | WSRequest_GetIntentionCounts | WSRequest_GetIntentionPopularTags | WSRequest_Like | WSRequest_Skip | WSRequest_Search | WSRequest_GetConversations | WSRequest_GetMessages | WSRequest_SendMessage | WSRequest_GetRequests | WSRequest_AcceptRequest | WSRequest_DeclineRequest | WSRequest_GetNotifications | WSRequest_GetCounters | 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_GetSearchQuota | 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_GetRefinePopularTags | WSRequest_GetBadges | WSRequest_GetUserBadges | WSRequest_ConfirmBadgeReward | WSRequest_ClaimBadgeReward | WSRequest_ConfirmHostAttendance | WSRequest_ConfirmParticipation | WSRequest_SetDiscoveryView | WSRequest_PlacesSuggest | WSRequest_PlacesRetrieve | WSRequest_AnalyticsIngest;
490
+ export type WSClientRequest = WSRequest_Handshake | WSRequest_GetProfile | WSRequest_UpdateProfile | WSRequest_GetCandidates | WSRequest_GetCandidateCounts | WSRequest_GetIntentionCatalog | WSRequest_GetIntentionCounts | WSRequest_GetIntentionPopularTags | WSRequest_Like | WSRequest_Skip | WSRequest_Search | WSRequest_GetConversations | WSRequest_GetMessages | WSRequest_SendMessage | WSRequest_ShareActivity | WSRequest_GetRequests | WSRequest_AcceptRequest | WSRequest_DeclineRequest | WSRequest_GetNotifications | WSRequest_GetCounters | 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_GetSearchQuota | 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_GetRefinePopularTags | WSRequest_GetBadges | WSRequest_GetUserBadges | WSRequest_ConfirmBadgeReward | WSRequest_ClaimBadgeReward | WSRequest_ConfirmHostAttendance | WSRequest_ConfirmParticipation | WSRequest_SetDiscoveryView | WSRequest_PlacesSuggest | WSRequest_PlacesRetrieve | WSRequest_AnalyticsIngest;
483
491
  export type WSClientCommand = WSClientRequest['command'];
484
492
  export interface WSResponse_Handshake {
485
493
  command: 'handshake';
@@ -617,6 +625,15 @@ export interface WSResponse_SendMessage {
617
625
  error: string;
618
626
  };
619
627
  }
628
+ export interface WSResponse_ShareActivity {
629
+ command: 'share-activity';
630
+ payload: {
631
+ messages: Message[];
632
+ failedConversationIds: string[];
633
+ } | {
634
+ error: string;
635
+ };
636
+ }
620
637
  export interface WSResponse_GetRequests {
621
638
  command: 'get-requests';
622
639
  payload: {
@@ -1085,7 +1102,7 @@ export interface WSResponse_AnalyticsIngest {
1085
1102
  error: string;
1086
1103
  };
1087
1104
  }
1088
- export type WSServerResponse = WSResponse_Handshake | WSResponse_GetProfile | WSResponse_UpdateProfile | WSResponse_GetCandidates | WSResponse_GetCandidateCounts | WSResponse_GetIntentionCatalog | WSResponse_GetIntentionCounts | WSResponse_GetIntentionPopularTags | WSResponse_Like | WSResponse_Skip | WSResponse_Search | WSResponse_GetConversations | WSResponse_GetMessages | WSResponse_SendMessage | WSResponse_GetRequests | WSResponse_AcceptRequest | WSResponse_DeclineRequest | WSResponse_SubmitFeedback | WSResponse_GetNotifications | WSResponse_GetCounters | 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_GetSearchQuota | 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_GetRefinePopularTags | WSResponse_GetBadges | WSResponse_GetUserBadges | WSResponse_ClaimBadgeReward | WSResponse_ConfirmBadgeReward | WSResponse_ConfirmHostAttendance | WSResponse_ConfirmParticipation | WSResponse_SetDiscoveryView | WSResponse_PlacesSuggest | WSResponse_PlacesRetrieve | WSResponse_AnalyticsIngest;
1105
+ export type WSServerResponse = WSResponse_Handshake | WSResponse_GetProfile | WSResponse_UpdateProfile | WSResponse_GetCandidates | WSResponse_GetCandidateCounts | WSResponse_GetIntentionCatalog | WSResponse_GetIntentionCounts | WSResponse_GetIntentionPopularTags | WSResponse_Like | WSResponse_Skip | WSResponse_Search | WSResponse_GetConversations | WSResponse_GetMessages | WSResponse_SendMessage | WSResponse_ShareActivity | WSResponse_GetRequests | WSResponse_AcceptRequest | WSResponse_DeclineRequest | WSResponse_SubmitFeedback | WSResponse_GetNotifications | WSResponse_GetCounters | 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_GetSearchQuota | 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_GetRefinePopularTags | WSResponse_GetBadges | WSResponse_GetUserBadges | WSResponse_ClaimBadgeReward | WSResponse_ConfirmBadgeReward | WSResponse_ConfirmHostAttendance | WSResponse_ConfirmParticipation | WSResponse_SetDiscoveryView | WSResponse_PlacesSuggest | WSResponse_PlacesRetrieve | WSResponse_AnalyticsIngest;
1089
1106
  export interface WSEvent_NewMessage {
1090
1107
  event: 'new-message';
1091
1108
  payload: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxyfoo/whymeet-types",
3
- "version": "0.0.37",
3
+ "version": "0.0.39",
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",