@oxyfoo/whymeet-types 0.0.20 → 0.0.21

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.
@@ -3,8 +3,10 @@ export type { ReportReason, ReportSourceType } from './Report.js';
3
3
  export type { FeedbackType } from './Feedback.js';
4
4
  export type { Profile, SocialVibe, DiscoveryView } from './Profile.js';
5
5
  export { SOCIAL_VIBES } from './Profile.js';
6
- export type { Intention, IntentionKey, InterestCategory, InterestCategoryKey, SubIntention } from './Intention.js';
7
- export { INTENTION_KEYS, INTENTIONS, INTEREST_CATEGORY_KEYS, INTEREST_CATEGORIES, SUB_INTENTIONS } from './Intention.js';
6
+ export type { InterestCategory, InterestCategoryKey } from './Intention.js';
7
+ export { INTEREST_CATEGORY_KEYS, INTEREST_CATEGORIES } from './Intention.js';
8
+ export type { ContextFallbackLevel, ContextMatchSummary, SocialContext, SocialContextDomainMapping, SocialContextKey, SocialParentKey, SocialContextSelection, SocialContextTagMapping, SocialMoment, SocialMomentKey } from './SocialContext.js';
9
+ export { DEPRECATED_SOCIAL_CONTEXT_TO_ACTIVE_CONTEXT, DEPRECATED_SOCIAL_CONTEXT_TO_ACTIVE_CONTEXTS, getAllSocialContextsForMoment, getAncestorContextKeys, getChildSocialContexts, getDescendantContextKeys, getMomentKeyForContext, getParentKeyForContext, getSocialContext, getSocialContextsForMoment, hasChildSocialContexts, getSocialMoment, isSocialContextKey, isSocialMomentKey, LEGACY_INTENTION_TO_SOCIAL_CONTEXTS, normalizeSocialContextKey, normalizeSocialContextKeys, normalizeSocialContextSelection, SOCIAL_CONTEXT_DOMAIN_MAPPINGS, SOCIAL_CONTEXT_KEYS, SOCIAL_CONTEXTS_BY_PARENT, SOCIAL_CONTEXT_TAG_MAPPINGS, SOCIAL_CONTEXTS, SOCIAL_CONTEXTS_BY_KEY, SOCIAL_CONTEXTS_BY_MOMENT, SOCIAL_NESTED_CONTEXTS_BY_MOMENT, SOCIAL_MOMENT_KEYS, SOCIAL_MOMENTS, SOCIAL_MOMENTS_BY_KEY } from './SocialContext.js';
8
10
  export type { Tag, TagMatchType, TagSuggestion } from './Tag.js';
9
11
  export type { SearchFilters } from './Search.js';
10
12
  export type { MatchCandidate, Match, MatchRequest } from './Match.js';
@@ -1,5 +1,6 @@
1
1
  export { SOCIAL_VIBES } from './Profile.js';
2
- export { INTENTION_KEYS, INTENTIONS, INTEREST_CATEGORY_KEYS, INTEREST_CATEGORIES, SUB_INTENTIONS } from './Intention.js';
2
+ export { INTEREST_CATEGORY_KEYS, INTEREST_CATEGORIES } from './Intention.js';
3
+ export { DEPRECATED_SOCIAL_CONTEXT_TO_ACTIVE_CONTEXT, DEPRECATED_SOCIAL_CONTEXT_TO_ACTIVE_CONTEXTS, getAllSocialContextsForMoment, getAncestorContextKeys, getChildSocialContexts, getDescendantContextKeys, getMomentKeyForContext, getParentKeyForContext, getSocialContext, getSocialContextsForMoment, hasChildSocialContexts, getSocialMoment, isSocialContextKey, isSocialMomentKey, LEGACY_INTENTION_TO_SOCIAL_CONTEXTS, normalizeSocialContextKey, normalizeSocialContextKeys, normalizeSocialContextSelection, SOCIAL_CONTEXT_DOMAIN_MAPPINGS, SOCIAL_CONTEXT_KEYS, SOCIAL_CONTEXTS_BY_PARENT, SOCIAL_CONTEXT_TAG_MAPPINGS, SOCIAL_CONTEXTS, SOCIAL_CONTEXTS_BY_KEY, SOCIAL_CONTEXTS_BY_MOMENT, SOCIAL_NESTED_CONTEXTS_BY_MOMENT, SOCIAL_MOMENT_KEYS, SOCIAL_MOMENTS, SOCIAL_MOMENTS_BY_KEY } from './SocialContext.js';
3
4
  export { GENDERS, DEFAULT_PEOPLE, DEFAULT_ACTIVITY, DEFAULT_VISIBILITY } from './Settings.js';
4
5
  export { PREFERRED_PERIODS } from './Availability.js';
5
6
  export { SUBSCRIPTION_PLANS, SUBSCRIPTION_STATUSES, BOOST_PACKS, BOOST_DURATION_DAYS, PRODUCT_IDS, APP_CONFIG_KEYS } from './Subscription.js';
@@ -10,7 +10,8 @@ import type { ReportReason, ReportSourceType } from '../Models/Report.js';
10
10
  import type { FeedbackType } from '../Models/Feedback.js';
11
11
  import type { BlockedUser } from '../Models/Block.js';
12
12
  import type { Activity, ActivitySummary, ActivitySearchFilters } from '../Models/Activity.js';
13
- import type { IntentionKey, InterestCategoryKey } from '../Models/Intention.js';
13
+ import type { InterestCategoryKey } from '../Models/Intention.js';
14
+ import type { SocialContext, SocialContextSelection, SocialMoment, SocialMomentKey } from '../Models/SocialContext.js';
14
15
  import type { UserBadge } from '../Models/Badge.js';
15
16
  import type { PlaceSuggestion, PlaceSuggestionLite } from '../Models/Place.js';
16
17
  export interface WSRequest_Handshake {
@@ -39,17 +40,21 @@ export interface WSRequest_GetCandidateCounts {
39
40
  command: 'get-candidate-counts';
40
41
  payload: Record<string, never>;
41
42
  }
42
- export interface WSRequest_GetSubIntentionCounts {
43
- command: 'get-subintention-counts';
43
+ export interface WSRequest_GetSocialContextCatalog {
44
+ command: 'get-social-context-catalog';
45
+ payload: Record<string, never>;
46
+ }
47
+ export interface WSRequest_GetSocialContextCounts {
48
+ command: 'get-social-context-counts';
44
49
  payload: {
45
- intention: IntentionKey;
50
+ momentKey: SocialMomentKey;
46
51
  };
47
52
  }
48
- export interface WSRequest_GetPopularTags {
49
- command: 'get-popular-tags';
53
+ export interface WSRequest_GetContextPopularTags {
54
+ command: 'get-context-popular-tags';
50
55
  payload: {
51
- intention: IntentionKey;
52
- subCategories: string[];
56
+ selection: SocialContextSelection;
57
+ selectedTags?: string[];
53
58
  };
54
59
  }
55
60
  export interface WSRequest_GetProfilePopularTags {
@@ -60,18 +65,21 @@ export interface WSRequest_Like {
60
65
  command: 'like';
61
66
  payload: {
62
67
  candidateId: string;
68
+ selection?: SocialContextSelection;
63
69
  };
64
70
  }
65
71
  export interface WSRequest_Skip {
66
72
  command: 'skip';
67
73
  payload: {
68
74
  candidateId: string;
75
+ selection?: SocialContextSelection;
69
76
  };
70
77
  }
71
78
  export interface WSRequest_Star {
72
79
  command: 'star';
73
80
  payload: {
74
81
  candidateId: string;
82
+ selection?: SocialContextSelection;
75
83
  };
76
84
  }
77
85
  export interface WSRequest_Search {
@@ -427,7 +435,7 @@ export interface WSRequest_SetDiscoveryView {
427
435
  view: DiscoveryView;
428
436
  };
429
437
  }
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_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_GetBadges | WSRequest_GetUserBadges | WSRequest_ClaimBadgeReward | WSRequest_ConfirmHostAttendance | WSRequest_ConfirmParticipation | WSRequest_SetDiscoveryView | WSRequest_PlacesSuggest | WSRequest_PlacesRetrieve;
438
+ export type WSClientRequest = WSRequest_Handshake | WSRequest_GetProfile | WSRequest_UpdateProfile | WSRequest_GetCandidates | WSRequest_GetCandidateCounts | WSRequest_GetSocialContextCatalog | WSRequest_GetSocialContextCounts | WSRequest_GetContextPopularTags | 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_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_GetBadges | WSRequest_GetUserBadges | WSRequest_ClaimBadgeReward | WSRequest_ConfirmHostAttendance | WSRequest_ConfirmParticipation | WSRequest_SetDiscoveryView | WSRequest_PlacesSuggest | WSRequest_PlacesRetrieve;
431
439
  export type WSClientCommand = WSClientRequest['command'];
432
440
  export interface WSResponse_Handshake {
433
441
  command: 'handshake';
@@ -471,16 +479,25 @@ export interface WSResponse_GetCandidateCounts {
471
479
  error: string;
472
480
  };
473
481
  }
474
- export interface WSResponse_GetSubIntentionCounts {
475
- command: 'get-subintention-counts';
482
+ export interface WSResponse_GetSocialContextCatalog {
483
+ command: 'get-social-context-catalog';
484
+ payload: {
485
+ moments: SocialMoment[];
486
+ contexts: SocialContext[];
487
+ } | {
488
+ error: string;
489
+ };
490
+ }
491
+ export interface WSResponse_GetSocialContextCounts {
492
+ command: 'get-social-context-counts';
476
493
  payload: {
477
494
  counts: Record<string, number>;
478
495
  } | {
479
496
  error: string;
480
497
  };
481
498
  }
482
- export interface WSResponse_GetPopularTags {
483
- command: 'get-popular-tags';
499
+ export interface WSResponse_GetContextPopularTags {
500
+ command: 'get-context-popular-tags';
484
501
  payload: {
485
502
  tags: string[];
486
503
  } | {
@@ -980,7 +997,7 @@ export interface WSResponse_PlacesRetrieve {
980
997
  error: string;
981
998
  };
982
999
  }
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_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_GetBadges | WSResponse_GetUserBadges | WSResponse_ClaimBadgeReward | WSResponse_ConfirmHostAttendance | WSResponse_ConfirmParticipation | WSResponse_SetDiscoveryView | WSResponse_PlacesSuggest | WSResponse_PlacesRetrieve;
1000
+ export type WSServerResponse = WSResponse_Handshake | WSResponse_GetProfile | WSResponse_UpdateProfile | WSResponse_GetCandidates | WSResponse_GetCandidateCounts | WSResponse_GetSocialContextCatalog | WSResponse_GetSocialContextCounts | WSResponse_GetContextPopularTags | 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_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_GetBadges | WSResponse_GetUserBadges | WSResponse_ClaimBadgeReward | WSResponse_ConfirmHostAttendance | WSResponse_ConfirmParticipation | WSResponse_SetDiscoveryView | WSResponse_PlacesSuggest | WSResponse_PlacesRetrieve;
984
1001
  export interface WSEvent_NewMessage {
985
1002
  event: 'new-message';
986
1003
  payload: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxyfoo/whymeet-types",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
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",