@oxyfoo/whymeet-types 0.0.21 → 0.0.23
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/Models/Activity.d.ts +1 -1
- package/dist/Models/Intention.d.ts +89 -6
- package/dist/Models/Intention.js +1077 -38
- package/dist/Models/InterestCategory.d.ts +9 -0
- package/dist/Models/InterestCategory.js +40 -0
- package/dist/Models/Match.d.ts +9 -10
- package/dist/Models/Profile.d.ts +2 -2
- package/dist/Models/Search.d.ts +5 -5
- package/dist/Models/index.d.ts +4 -4
- package/dist/Models/index.js +2 -2
- package/dist/WS/Request.d.ts +23 -23
- package/package.json +2 -2
- package/dist/Models/SocialContext.d.ts +0 -97
- package/dist/Models/SocialContext.js +0 -1186
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
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"];
|
|
2
|
+
export type InterestCategoryKey = (typeof INTEREST_CATEGORY_KEYS)[number];
|
|
3
|
+
export interface InterestCategory {
|
|
4
|
+
key: InterestCategoryKey;
|
|
5
|
+
label: string;
|
|
6
|
+
emoji: string;
|
|
7
|
+
description: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const INTEREST_CATEGORIES: readonly InterestCategory[];
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export const INTEREST_CATEGORY_KEYS = [
|
|
2
|
+
'sports',
|
|
3
|
+
'music',
|
|
4
|
+
'nightlife',
|
|
5
|
+
'gaming',
|
|
6
|
+
'food',
|
|
7
|
+
'culture',
|
|
8
|
+
'cinema',
|
|
9
|
+
'reading',
|
|
10
|
+
'outdoors',
|
|
11
|
+
'wellness',
|
|
12
|
+
'travel',
|
|
13
|
+
'creative',
|
|
14
|
+
'learning',
|
|
15
|
+
'tech',
|
|
16
|
+
'cooking',
|
|
17
|
+
'craft',
|
|
18
|
+
'pro',
|
|
19
|
+
'coaching'
|
|
20
|
+
];
|
|
21
|
+
export const INTEREST_CATEGORIES = [
|
|
22
|
+
{ key: 'sports', label: 'Sports', emoji: '⚽', description: 'Football, running, fitness…' },
|
|
23
|
+
{ key: 'music', label: 'Musique', emoji: '🎵', description: 'Concerts, instruments, genres…' },
|
|
24
|
+
{ key: 'nightlife', label: 'Sorties', emoji: '🌙', description: 'Bars, clubs, soirées…' },
|
|
25
|
+
{ key: 'gaming', label: 'Gaming', emoji: '🎮', description: 'Jeux vidéo, board games…' },
|
|
26
|
+
{ key: 'food', label: 'Food', emoji: '🍕', description: 'Restaurants, cuisine, food trips…' },
|
|
27
|
+
{ key: 'culture', label: 'Culture', emoji: '🎭', description: 'Musées, expos, théâtre…' },
|
|
28
|
+
{ key: 'cinema', label: 'Ciné & séries', emoji: '🎬', description: 'Films, séries, documentaires…' },
|
|
29
|
+
{ key: 'reading', label: 'Lecture', emoji: '📚', description: 'Romans, BD, manga, essais…' },
|
|
30
|
+
{ key: 'outdoors', label: 'Plein air', emoji: '🏔️', description: 'Rando, escalade, nature…' },
|
|
31
|
+
{ key: 'wellness', label: 'Bien-être', emoji: '🧘', description: 'Yoga, méditation, spa…' },
|
|
32
|
+
{ key: 'travel', label: 'Voyages', emoji: '✈️', description: 'Découvrir de nouveaux endroits' },
|
|
33
|
+
{ key: 'creative', label: 'Créatif', emoji: '🎨', description: 'Art, photo, écriture, DIY…' },
|
|
34
|
+
{ key: 'learning', label: 'Apprentissage', emoji: '📖', description: 'Langues, sciences, histoire…' },
|
|
35
|
+
{ key: 'tech', label: 'Tech', emoji: '💻', description: 'Code, IA, design, data…' },
|
|
36
|
+
{ key: 'cooking', label: 'Cuisine', emoji: '👨🍳', description: 'Pâtisserie, gastronomie, cocktails…' },
|
|
37
|
+
{ key: 'craft', label: 'Artisanat', emoji: '🔨', description: 'Bricolage, couture, menuiserie…' },
|
|
38
|
+
{ key: 'pro', label: 'Pro', emoji: '💼', description: 'Domaines professionnels et études…' },
|
|
39
|
+
{ key: 'coaching', label: 'Coaching', emoji: '🎓', description: 'Transmettre, coacher, enseigner…' }
|
|
40
|
+
];
|
package/dist/Models/Match.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { User } from './User.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { IntentionMatchSummary, IntentionKey, IntentionCategoryKey } from './Intention.js';
|
|
3
3
|
import type { HostLevel } from './TrustScore.js';
|
|
4
4
|
import type { SocialVibe } from './Profile.js';
|
|
5
5
|
export interface MatchCandidate {
|
|
6
6
|
id: string;
|
|
7
7
|
user: User;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
intentionKeys: IntentionKey[];
|
|
9
|
+
intentionMatch?: IntentionMatchSummary;
|
|
10
10
|
bio: string;
|
|
11
11
|
interests: string[];
|
|
12
12
|
skills: string[];
|
|
@@ -24,9 +24,8 @@ export interface Match {
|
|
|
24
24
|
id: string;
|
|
25
25
|
user: User;
|
|
26
26
|
matchContext: string;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
socialContextLabel: string;
|
|
27
|
+
categoryKey: IntentionCategoryKey;
|
|
28
|
+
intentionKey: IntentionKey;
|
|
30
29
|
matchedAt: string;
|
|
31
30
|
lastMessage?: string;
|
|
32
31
|
lastMessageTime?: string;
|
|
@@ -36,10 +35,10 @@ export interface Match {
|
|
|
36
35
|
export interface MatchRequest {
|
|
37
36
|
id: string;
|
|
38
37
|
sender: User;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
intentionKeys: IntentionKey[];
|
|
39
|
+
intentionMatch?: IntentionMatchSummary;
|
|
40
|
+
categoryKey?: IntentionCategoryKey;
|
|
41
|
+
intentionKey?: IntentionKey;
|
|
43
42
|
matchContext: string;
|
|
44
43
|
sentAt: string;
|
|
45
44
|
}
|
package/dist/Models/Profile.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { User } from './User.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { IntentionKey } from './Intention.js';
|
|
3
3
|
import { Tag } from './Tag.js';
|
|
4
4
|
import type { HostLevel } from './TrustScore.js';
|
|
5
5
|
export type SocialVibe = 'reserved' | 'calm' | 'balanced' | 'outgoing' | 'very_social';
|
|
@@ -11,7 +11,7 @@ export interface Profile extends User {
|
|
|
11
11
|
interests: Tag[];
|
|
12
12
|
skills: Tag[];
|
|
13
13
|
socialVibe: SocialVibe;
|
|
14
|
-
|
|
14
|
+
intentionKeys: IntentionKey[];
|
|
15
15
|
spokenLanguages: string[];
|
|
16
16
|
preferredDiscoveryView: DiscoveryView;
|
|
17
17
|
location: {
|
package/dist/Models/Search.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { InterestCategoryKey } from './
|
|
2
|
-
import type {
|
|
1
|
+
import type { InterestCategoryKey } from './InterestCategory.js';
|
|
2
|
+
import type { IntentionKey, IntentionCategoryKey } from './Intention.js';
|
|
3
3
|
import type { SocialVibe } from './Profile.js';
|
|
4
4
|
import type { PreferredPeriod } from './Availability.js';
|
|
5
5
|
export interface SearchFilters {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
categoryKey?: IntentionCategoryKey;
|
|
7
|
+
intentionKey?: IntentionKey;
|
|
8
|
+
intentionKeys?: IntentionKey[];
|
|
9
9
|
interestCategory?: InterestCategoryKey;
|
|
10
10
|
interestCategories?: InterestCategoryKey[];
|
|
11
11
|
tags?: string[];
|
package/dist/Models/index.d.ts
CHANGED
|
@@ -3,10 +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 { InterestCategory, InterestCategoryKey } from './
|
|
7
|
-
export { INTEREST_CATEGORY_KEYS, INTEREST_CATEGORIES } from './
|
|
8
|
-
export type {
|
|
9
|
-
export {
|
|
6
|
+
export type { InterestCategory, InterestCategoryKey } from './InterestCategory.js';
|
|
7
|
+
export { INTEREST_CATEGORY_KEYS, INTEREST_CATEGORIES } from './InterestCategory.js';
|
|
8
|
+
export type { IntentionFallbackLevel, IntentionMatchSummary, Intention, IntentionDomainMapping, IntentionKey, IntentionParentKey, IntentionSelection, IntentionTagMapping, IntentionCategory, IntentionCategoryKey } from './Intention.js';
|
|
9
|
+
export { getAllIntentionsForCategory, getAncestorIntentionKeys, getChildIntentions, getDescendantIntentionKeys, getCategoryKeyForIntention, getParentKeyForIntention, getIntention, getIntentionsForCategory, hasChildIntentions, getIntentionCategory, isIntentionKey, isIntentionCategoryKey, normalizeIntentionKey, normalizeIntentionKeys, normalizeIntentionSelection, INTENTION_DOMAIN_MAPPINGS, INTENTION_KEYS, INTENTIONS_BY_PARENT, INTENTION_TAG_MAPPINGS, INTENTIONS, INTENTIONS_BY_KEY, INTENTIONS_BY_CATEGORY, NESTED_INTENTIONS_BY_CATEGORY, INTENTION_CATEGORY_KEYS, INTENTION_CATEGORIES, INTENTION_CATEGORIES_BY_KEY } from './Intention.js';
|
|
10
10
|
export type { Tag, TagMatchType, TagSuggestion } from './Tag.js';
|
|
11
11
|
export type { SearchFilters } from './Search.js';
|
|
12
12
|
export type { MatchCandidate, Match, MatchRequest } from './Match.js';
|
package/dist/Models/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { SOCIAL_VIBES } from './Profile.js';
|
|
2
|
-
export { INTEREST_CATEGORY_KEYS, INTEREST_CATEGORIES } from './
|
|
3
|
-
export {
|
|
2
|
+
export { INTEREST_CATEGORY_KEYS, INTEREST_CATEGORIES } from './InterestCategory.js';
|
|
3
|
+
export { getAllIntentionsForCategory, getAncestorIntentionKeys, getChildIntentions, getDescendantIntentionKeys, getCategoryKeyForIntention, getParentKeyForIntention, getIntention, getIntentionsForCategory, hasChildIntentions, getIntentionCategory, isIntentionKey, isIntentionCategoryKey, normalizeIntentionKey, normalizeIntentionKeys, normalizeIntentionSelection, INTENTION_DOMAIN_MAPPINGS, INTENTION_KEYS, INTENTIONS_BY_PARENT, INTENTION_TAG_MAPPINGS, INTENTIONS, INTENTIONS_BY_KEY, INTENTIONS_BY_CATEGORY, NESTED_INTENTIONS_BY_CATEGORY, INTENTION_CATEGORY_KEYS, INTENTION_CATEGORIES, INTENTION_CATEGORIES_BY_KEY } from './Intention.js';
|
|
4
4
|
export { GENDERS, DEFAULT_PEOPLE, DEFAULT_ACTIVITY, DEFAULT_VISIBILITY } from './Settings.js';
|
|
5
5
|
export { PREFERRED_PERIODS } from './Availability.js';
|
|
6
6
|
export { SUBSCRIPTION_PLANS, SUBSCRIPTION_STATUSES, BOOST_PACKS, BOOST_DURATION_DAYS, PRODUCT_IDS, APP_CONFIG_KEYS } from './Subscription.js';
|
package/dist/WS/Request.d.ts
CHANGED
|
@@ -10,8 +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 { InterestCategoryKey } from '../Models/
|
|
14
|
-
import type {
|
|
13
|
+
import type { InterestCategoryKey } from '../Models/InterestCategory.js';
|
|
14
|
+
import type { Intention, IntentionSelection, IntentionCategory, IntentionCategoryKey } from '../Models/Intention.js';
|
|
15
15
|
import type { UserBadge } from '../Models/Badge.js';
|
|
16
16
|
import type { PlaceSuggestion, PlaceSuggestionLite } from '../Models/Place.js';
|
|
17
17
|
export interface WSRequest_Handshake {
|
|
@@ -40,20 +40,20 @@ export interface WSRequest_GetCandidateCounts {
|
|
|
40
40
|
command: 'get-candidate-counts';
|
|
41
41
|
payload: Record<string, never>;
|
|
42
42
|
}
|
|
43
|
-
export interface
|
|
44
|
-
command: 'get-
|
|
43
|
+
export interface WSRequest_GetIntentionCatalog {
|
|
44
|
+
command: 'get-intention-catalog';
|
|
45
45
|
payload: Record<string, never>;
|
|
46
46
|
}
|
|
47
|
-
export interface
|
|
48
|
-
command: 'get-
|
|
47
|
+
export interface WSRequest_GetIntentionCounts {
|
|
48
|
+
command: 'get-intention-counts';
|
|
49
49
|
payload: {
|
|
50
|
-
|
|
50
|
+
categoryKey: IntentionCategoryKey;
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
export interface
|
|
54
|
-
command: 'get-
|
|
53
|
+
export interface WSRequest_GetIntentionPopularTags {
|
|
54
|
+
command: 'get-intention-popular-tags';
|
|
55
55
|
payload: {
|
|
56
|
-
selection:
|
|
56
|
+
selection: IntentionSelection;
|
|
57
57
|
selectedTags?: string[];
|
|
58
58
|
};
|
|
59
59
|
}
|
|
@@ -65,21 +65,21 @@ export interface WSRequest_Like {
|
|
|
65
65
|
command: 'like';
|
|
66
66
|
payload: {
|
|
67
67
|
candidateId: string;
|
|
68
|
-
selection?:
|
|
68
|
+
selection?: IntentionSelection;
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
71
|
export interface WSRequest_Skip {
|
|
72
72
|
command: 'skip';
|
|
73
73
|
payload: {
|
|
74
74
|
candidateId: string;
|
|
75
|
-
selection?:
|
|
75
|
+
selection?: IntentionSelection;
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
export interface WSRequest_Star {
|
|
79
79
|
command: 'star';
|
|
80
80
|
payload: {
|
|
81
81
|
candidateId: string;
|
|
82
|
-
selection?:
|
|
82
|
+
selection?: IntentionSelection;
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
export interface WSRequest_Search {
|
|
@@ -435,7 +435,7 @@ export interface WSRequest_SetDiscoveryView {
|
|
|
435
435
|
view: DiscoveryView;
|
|
436
436
|
};
|
|
437
437
|
}
|
|
438
|
-
export type WSClientRequest = WSRequest_Handshake | WSRequest_GetProfile | WSRequest_UpdateProfile | WSRequest_GetCandidates | WSRequest_GetCandidateCounts |
|
|
438
|
+
export type WSClientRequest = WSRequest_Handshake | WSRequest_GetProfile | WSRequest_UpdateProfile | WSRequest_GetCandidates | WSRequest_GetCandidateCounts | WSRequest_GetIntentionCatalog | WSRequest_GetIntentionCounts | WSRequest_GetIntentionPopularTags | 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;
|
|
439
439
|
export type WSClientCommand = WSClientRequest['command'];
|
|
440
440
|
export interface WSResponse_Handshake {
|
|
441
441
|
command: 'handshake';
|
|
@@ -479,25 +479,25 @@ export interface WSResponse_GetCandidateCounts {
|
|
|
479
479
|
error: string;
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
|
-
export interface
|
|
483
|
-
command: 'get-
|
|
482
|
+
export interface WSResponse_GetIntentionCatalog {
|
|
483
|
+
command: 'get-intention-catalog';
|
|
484
484
|
payload: {
|
|
485
|
-
|
|
486
|
-
|
|
485
|
+
categories: IntentionCategory[];
|
|
486
|
+
intentions: Intention[];
|
|
487
487
|
} | {
|
|
488
488
|
error: string;
|
|
489
489
|
};
|
|
490
490
|
}
|
|
491
|
-
export interface
|
|
492
|
-
command: 'get-
|
|
491
|
+
export interface WSResponse_GetIntentionCounts {
|
|
492
|
+
command: 'get-intention-counts';
|
|
493
493
|
payload: {
|
|
494
494
|
counts: Record<string, number>;
|
|
495
495
|
} | {
|
|
496
496
|
error: string;
|
|
497
497
|
};
|
|
498
498
|
}
|
|
499
|
-
export interface
|
|
500
|
-
command: 'get-
|
|
499
|
+
export interface WSResponse_GetIntentionPopularTags {
|
|
500
|
+
command: 'get-intention-popular-tags';
|
|
501
501
|
payload: {
|
|
502
502
|
tags: string[];
|
|
503
503
|
} | {
|
|
@@ -997,7 +997,7 @@ export interface WSResponse_PlacesRetrieve {
|
|
|
997
997
|
error: string;
|
|
998
998
|
};
|
|
999
999
|
}
|
|
1000
|
-
export type WSServerResponse = WSResponse_Handshake | WSResponse_GetProfile | WSResponse_UpdateProfile | WSResponse_GetCandidates | WSResponse_GetCandidateCounts |
|
|
1000
|
+
export type WSServerResponse = WSResponse_Handshake | WSResponse_GetProfile | WSResponse_UpdateProfile | WSResponse_GetCandidates | WSResponse_GetCandidateCounts | WSResponse_GetIntentionCatalog | WSResponse_GetIntentionCounts | WSResponse_GetIntentionPopularTags | 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;
|
|
1001
1001
|
export interface WSEvent_NewMessage {
|
|
1002
1002
|
event: 'new-message';
|
|
1003
1003
|
payload: {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxyfoo/whymeet-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
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",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"build": "tsc && tsc-alias && rm -f ./dist/tsconfig.tsbuildinfo",
|
|
9
|
+
"build": "rm -rf dist && tsc && tsc-alias && rm -f ./dist/tsconfig.tsbuildinfo",
|
|
10
10
|
"lint": "eslint .",
|
|
11
11
|
"lint:fix": "eslint . --fix",
|
|
12
12
|
"format": "prettier --check '**/*.{ts,tsx}'",
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import type { InterestCategoryKey } from './Intention.js';
|
|
2
|
-
export declare const SOCIAL_MOMENT_KEYS: readonly ["do_something_together", "go_out_or_move", "talk_and_share", "build_connection", "see_if_it_clicks", "grow_or_build"];
|
|
3
|
-
export type SocialMomentKey = (typeof SOCIAL_MOMENT_KEYS)[number];
|
|
4
|
-
export declare const SOCIAL_CONTEXT_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_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"];
|
|
5
|
-
export type SocialContextKey = (typeof SOCIAL_CONTEXT_KEYS)[number];
|
|
6
|
-
export type SocialParentKey = SocialMomentKey | SocialContextKey;
|
|
7
|
-
export type SupportedLocale = 'fr' | 'en';
|
|
8
|
-
export interface SocialMomentI18n {
|
|
9
|
-
label: string;
|
|
10
|
-
description: string;
|
|
11
|
-
}
|
|
12
|
-
export interface SocialContextI18n {
|
|
13
|
-
label: string;
|
|
14
|
-
shortLabel: string;
|
|
15
|
-
description: string;
|
|
16
|
-
}
|
|
17
|
-
export interface SocialMoment {
|
|
18
|
-
key: SocialMomentKey;
|
|
19
|
-
emoji: string;
|
|
20
|
-
order: number;
|
|
21
|
-
i18n: {
|
|
22
|
-
fr: SocialMomentI18n;
|
|
23
|
-
en: SocialMomentI18n;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
export interface SocialContext {
|
|
27
|
-
key: SocialContextKey;
|
|
28
|
-
parentKey: SocialParentKey;
|
|
29
|
-
momentKey: SocialMomentKey;
|
|
30
|
-
level: 2 | 3;
|
|
31
|
-
emoji: string;
|
|
32
|
-
tags: readonly string[];
|
|
33
|
-
domainKeys: readonly InterestCategoryKey[];
|
|
34
|
-
broad?: boolean;
|
|
35
|
-
order: number;
|
|
36
|
-
i18n: {
|
|
37
|
-
fr: SocialContextI18n;
|
|
38
|
-
en: SocialContextI18n;
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
export interface SocialContextSelection {
|
|
42
|
-
momentKey: SocialMomentKey;
|
|
43
|
-
contextKey: SocialContextKey;
|
|
44
|
-
tags?: string[];
|
|
45
|
-
query?: string;
|
|
46
|
-
}
|
|
47
|
-
export interface SocialContextTagMapping {
|
|
48
|
-
contextKey: SocialContextKey;
|
|
49
|
-
tag: string;
|
|
50
|
-
}
|
|
51
|
-
export interface SocialContextDomainMapping {
|
|
52
|
-
contextKey: SocialContextKey;
|
|
53
|
-
domainKey: InterestCategoryKey;
|
|
54
|
-
weight: number;
|
|
55
|
-
}
|
|
56
|
-
export type ContextFallbackLevel = 'none' | 'same_moment' | 'related_domains' | 'broad_context';
|
|
57
|
-
export interface ContextMatchSummary {
|
|
58
|
-
momentKey: SocialMomentKey;
|
|
59
|
-
contextKey: SocialContextKey;
|
|
60
|
-
label: string;
|
|
61
|
-
reasons: string[];
|
|
62
|
-
fallbackLevel: ContextFallbackLevel;
|
|
63
|
-
scoreParts?: {
|
|
64
|
-
context: number;
|
|
65
|
-
tags: number;
|
|
66
|
-
distance: number;
|
|
67
|
-
trust: number;
|
|
68
|
-
vibe: number;
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
export declare const SOCIAL_MOMENTS: readonly SocialMoment[];
|
|
72
|
-
export declare const SOCIAL_CONTEXTS: readonly SocialContext[];
|
|
73
|
-
export declare const SOCIAL_CONTEXTS_BY_KEY: Readonly<Record<SocialContextKey, SocialContext>>;
|
|
74
|
-
export declare const SOCIAL_MOMENTS_BY_KEY: Readonly<Record<SocialMomentKey, SocialMoment>>;
|
|
75
|
-
export declare const SOCIAL_CONTEXTS_BY_PARENT: Readonly<Record<SocialParentKey, readonly SocialContext[]>>;
|
|
76
|
-
export declare const SOCIAL_CONTEXTS_BY_MOMENT: Readonly<Record<SocialMomentKey, readonly SocialContext[]>>;
|
|
77
|
-
export declare const SOCIAL_NESTED_CONTEXTS_BY_MOMENT: Readonly<Record<SocialMomentKey, readonly SocialContext[]>>;
|
|
78
|
-
export declare const SOCIAL_CONTEXT_TAG_MAPPINGS: readonly SocialContextTagMapping[];
|
|
79
|
-
export declare const SOCIAL_CONTEXT_DOMAIN_MAPPINGS: readonly SocialContextDomainMapping[];
|
|
80
|
-
export declare const LEGACY_INTENTION_TO_SOCIAL_CONTEXTS: Readonly<Record<string, readonly SocialContextKey[]>>;
|
|
81
|
-
export declare const DEPRECATED_SOCIAL_CONTEXT_TO_ACTIVE_CONTEXTS: Readonly<Record<string, readonly SocialContextKey[]>>;
|
|
82
|
-
export declare const DEPRECATED_SOCIAL_CONTEXT_TO_ACTIVE_CONTEXT: Readonly<Record<string, SocialContextKey>>;
|
|
83
|
-
export declare function isSocialMomentKey(value: string): value is SocialMomentKey;
|
|
84
|
-
export declare function isSocialContextKey(value: string): value is SocialContextKey;
|
|
85
|
-
export declare function normalizeSocialContextKey(value: string): SocialContextKey | null;
|
|
86
|
-
export declare function normalizeSocialContextKeys(values: readonly string[] | undefined | null): SocialContextKey[];
|
|
87
|
-
export declare function getSocialMoment(key: SocialMomentKey): SocialMoment;
|
|
88
|
-
export declare function getSocialContext(key: SocialContextKey): SocialContext;
|
|
89
|
-
export declare function getSocialContextsForMoment(momentKey: SocialMomentKey): readonly SocialContext[];
|
|
90
|
-
export declare function getAllSocialContextsForMoment(momentKey: SocialMomentKey): readonly SocialContext[];
|
|
91
|
-
export declare function getChildSocialContexts(parentKey: SocialParentKey): readonly SocialContext[];
|
|
92
|
-
export declare function hasChildSocialContexts(parentKey: SocialParentKey): boolean;
|
|
93
|
-
export declare function getParentKeyForContext(contextKey: SocialContextKey): SocialParentKey;
|
|
94
|
-
export declare function getMomentKeyForContext(contextKey: SocialContextKey): SocialMomentKey;
|
|
95
|
-
export declare function getAncestorContextKeys(contextKey: SocialContextKey): SocialContextKey[];
|
|
96
|
-
export declare function getDescendantContextKeys(parentKey: SocialParentKey): SocialContextKey[];
|
|
97
|
-
export declare function normalizeSocialContextSelection(selection: SocialContextSelection): SocialContextSelection | null;
|