@oxyfoo/whymeet-types 0.0.19 → 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.
- package/dist/Models/Intention.d.ts +0 -16
- package/dist/Models/Intention.js +0 -214
- package/dist/Models/Match.d.ts +10 -4
- package/dist/Models/Profile.d.ts +2 -2
- package/dist/Models/Search.d.ts +5 -2
- package/dist/Models/SocialContext.d.ts +97 -0
- package/dist/Models/SocialContext.js +1186 -0
- package/dist/Models/Subscription.d.ts +6 -11
- package/dist/Models/index.d.ts +5 -3
- package/dist/Models/index.js +2 -1
- package/dist/WS/Request.d.ts +44 -27
- package/package.json +1 -1
|
@@ -18,14 +18,13 @@ export interface UserBoost {
|
|
|
18
18
|
expiresAt: string | null;
|
|
19
19
|
source: BoostSource | null;
|
|
20
20
|
}
|
|
21
|
-
export interface
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
export interface SwipeQuotaInfo {
|
|
26
|
-
swipesRemaining: number;
|
|
27
|
-
dailySwipeLimit: number;
|
|
21
|
+
export interface QuotaInfo {
|
|
22
|
+
remaining: number;
|
|
23
|
+
dailyLimit: number;
|
|
28
24
|
}
|
|
25
|
+
export type SearchQuotaInfo = QuotaInfo;
|
|
26
|
+
export type SwipeQuotaInfo = QuotaInfo;
|
|
27
|
+
export type ActivityQuotaInfo = QuotaInfo;
|
|
29
28
|
export declare const APP_CONFIG_KEYS: {
|
|
30
29
|
readonly searchDailyFree: "counter.search.daily.free";
|
|
31
30
|
readonly searchDailyPremium: "counter.search.daily.premium";
|
|
@@ -46,10 +45,6 @@ export interface UsageLimitConfig {
|
|
|
46
45
|
initialSearchTokens: number;
|
|
47
46
|
subscriptionBoostDays: number;
|
|
48
47
|
}
|
|
49
|
-
export interface ActivityViewQuotaInfo {
|
|
50
|
-
activityViewsRemaining: number;
|
|
51
|
-
dailyActivityOpenLimit: number;
|
|
52
|
-
}
|
|
53
48
|
export declare const PRODUCT_IDS: {
|
|
54
49
|
readonly subscriptions: {
|
|
55
50
|
readonly monthly: "com.whymeet.sub.monthly";
|
package/dist/Models/index.d.ts
CHANGED
|
@@ -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 {
|
|
7
|
-
export {
|
|
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';
|
|
@@ -17,7 +19,7 @@ export type { PlaceSuggestion, PlaceSuggestionLite } from './Place.js';
|
|
|
17
19
|
export type { BlockedUser } from './Block.js';
|
|
18
20
|
export type { PreferredPeriod } from './Availability.js';
|
|
19
21
|
export { PREFERRED_PERIODS } from './Availability.js';
|
|
20
|
-
export type { SubscriptionPlan, SubscriptionStatus, SubscriptionPlatform, UserSubscription, BoostPack, BoostSource, UserBoost,
|
|
22
|
+
export type { SubscriptionPlan, SubscriptionStatus, SubscriptionPlatform, UserSubscription, BoostPack, BoostSource, UserBoost, QuotaInfo, SearchQuotaInfo, SwipeQuotaInfo, ActivityQuotaInfo, UsageLimitConfig } from './Subscription.js';
|
|
21
23
|
export { SUBSCRIPTION_PLANS, SUBSCRIPTION_STATUSES, BOOST_PACKS, BOOST_DURATION_DAYS, PRODUCT_IDS, APP_CONFIG_KEYS } from './Subscription.js';
|
|
22
24
|
export type { BadgeCategory, BadgeKey, BadgeDefinition, UserBadge } from './Badge.js';
|
|
23
25
|
export type { HostLevelKey, HostLevel, HostLevelDefinition } from './TrustScore.js';
|
package/dist/Models/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { SOCIAL_VIBES } from './Profile.js';
|
|
2
|
-
export {
|
|
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';
|
package/dist/WS/Request.d.ts
CHANGED
|
@@ -5,12 +5,13 @@ import type { SearchFilters } from '../Models/Search.js';
|
|
|
5
5
|
import type { Notification } from '../Models/Notification.js';
|
|
6
6
|
import type { UserSettings, PeoplePreferences, ActivityPreferences, VisibilityPreferences, Gender } from '../Models/Settings.js';
|
|
7
7
|
import type { TagSuggestion } from '../Models/Tag.js';
|
|
8
|
-
import type { UserSubscription, UserBoost,
|
|
8
|
+
import type { UserSubscription, UserBoost, SearchQuotaInfo, BoostPack, SubscriptionPlatform } from '../Models/Subscription.js';
|
|
9
9
|
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 {
|
|
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
|
|
43
|
-
command: 'get-
|
|
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
|
-
|
|
50
|
+
momentKey: SocialMomentKey;
|
|
46
51
|
};
|
|
47
52
|
}
|
|
48
|
-
export interface
|
|
49
|
-
command: 'get-popular-tags';
|
|
53
|
+
export interface WSRequest_GetContextPopularTags {
|
|
54
|
+
command: 'get-context-popular-tags';
|
|
50
55
|
payload: {
|
|
51
|
-
|
|
52
|
-
|
|
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 {
|
|
@@ -361,8 +369,8 @@ export interface WSRequest_ValidateReceipt {
|
|
|
361
369
|
productId: string;
|
|
362
370
|
};
|
|
363
371
|
}
|
|
364
|
-
export interface
|
|
365
|
-
command: 'get-
|
|
372
|
+
export interface WSRequest_GetSearchQuota {
|
|
373
|
+
command: 'get-search-quota';
|
|
366
374
|
payload: Record<string, never>;
|
|
367
375
|
}
|
|
368
376
|
export interface WSRequest_SearchWithToken {
|
|
@@ -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 |
|
|
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';
|
|
@@ -457,8 +465,8 @@ export interface WSResponse_GetCandidates {
|
|
|
457
465
|
payload: {
|
|
458
466
|
candidates: MatchCandidate[];
|
|
459
467
|
totalAvailable: number;
|
|
460
|
-
|
|
461
|
-
|
|
468
|
+
remaining: number;
|
|
469
|
+
dailyLimit: number;
|
|
462
470
|
} | {
|
|
463
471
|
error: string;
|
|
464
472
|
};
|
|
@@ -471,16 +479,25 @@ export interface WSResponse_GetCandidateCounts {
|
|
|
471
479
|
error: string;
|
|
472
480
|
};
|
|
473
481
|
}
|
|
474
|
-
export interface
|
|
475
|
-
command: 'get-
|
|
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
|
|
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
|
} | {
|
|
@@ -523,7 +540,7 @@ export interface WSResponse_Search {
|
|
|
523
540
|
command: 'search';
|
|
524
541
|
payload: {
|
|
525
542
|
results: MatchCandidate[];
|
|
526
|
-
|
|
543
|
+
remaining: number;
|
|
527
544
|
totalCount: number;
|
|
528
545
|
} | {
|
|
529
546
|
error: string;
|
|
@@ -707,10 +724,10 @@ export interface WSResponse_ValidateReceipt {
|
|
|
707
724
|
error: string;
|
|
708
725
|
};
|
|
709
726
|
}
|
|
710
|
-
export interface
|
|
711
|
-
command: 'get-
|
|
727
|
+
export interface WSResponse_GetSearchQuota {
|
|
728
|
+
command: 'get-search-quota';
|
|
712
729
|
payload: {
|
|
713
|
-
|
|
730
|
+
quota: SearchQuotaInfo;
|
|
714
731
|
} | {
|
|
715
732
|
error: string;
|
|
716
733
|
};
|
|
@@ -719,7 +736,7 @@ export interface WSResponse_SearchWithToken {
|
|
|
719
736
|
command: 'search-with-token';
|
|
720
737
|
payload: {
|
|
721
738
|
results: MatchCandidate[];
|
|
722
|
-
|
|
739
|
+
remaining: number;
|
|
723
740
|
totalCount: number;
|
|
724
741
|
} | {
|
|
725
742
|
error: string;
|
|
@@ -845,7 +862,7 @@ export interface WSResponse_SearchActivitiesWithToken {
|
|
|
845
862
|
command: 'search-activities-with-token';
|
|
846
863
|
payload: {
|
|
847
864
|
activities: ActivitySummary[];
|
|
848
|
-
|
|
865
|
+
remaining: number;
|
|
849
866
|
totalCount: number;
|
|
850
867
|
} | {
|
|
851
868
|
error: string;
|
|
@@ -865,8 +882,8 @@ export interface WSResponse_GetCandidateActivities {
|
|
|
865
882
|
payload: {
|
|
866
883
|
activities: ActivitySummary[];
|
|
867
884
|
totalAvailable: number;
|
|
868
|
-
|
|
869
|
-
|
|
885
|
+
remaining: number;
|
|
886
|
+
dailyLimit: number;
|
|
870
887
|
} | {
|
|
871
888
|
error: string;
|
|
872
889
|
};
|
|
@@ -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 |
|
|
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: {
|