@oxyfoo/whymeet-types 0.0.19 → 0.0.20
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/Subscription.d.ts +6 -11
- package/dist/Models/index.d.ts +1 -1
- package/dist/WS/Request.d.ts +15 -15
- 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
|
@@ -17,7 +17,7 @@ export type { PlaceSuggestion, PlaceSuggestionLite } from './Place.js';
|
|
|
17
17
|
export type { BlockedUser } from './Block.js';
|
|
18
18
|
export type { PreferredPeriod } from './Availability.js';
|
|
19
19
|
export { PREFERRED_PERIODS } from './Availability.js';
|
|
20
|
-
export type { SubscriptionPlan, SubscriptionStatus, SubscriptionPlatform, UserSubscription, BoostPack, BoostSource, UserBoost,
|
|
20
|
+
export type { SubscriptionPlan, SubscriptionStatus, SubscriptionPlatform, UserSubscription, BoostPack, BoostSource, UserBoost, QuotaInfo, SearchQuotaInfo, SwipeQuotaInfo, ActivityQuotaInfo, UsageLimitConfig } from './Subscription.js';
|
|
21
21
|
export { SUBSCRIPTION_PLANS, SUBSCRIPTION_STATUSES, BOOST_PACKS, BOOST_DURATION_DAYS, PRODUCT_IDS, APP_CONFIG_KEYS } from './Subscription.js';
|
|
22
22
|
export type { BadgeCategory, BadgeKey, BadgeDefinition, UserBadge } from './Badge.js';
|
|
23
23
|
export type { HostLevelKey, HostLevel, HostLevelDefinition } from './TrustScore.js';
|
package/dist/WS/Request.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ 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';
|
|
@@ -361,8 +361,8 @@ export interface WSRequest_ValidateReceipt {
|
|
|
361
361
|
productId: string;
|
|
362
362
|
};
|
|
363
363
|
}
|
|
364
|
-
export interface
|
|
365
|
-
command: 'get-
|
|
364
|
+
export interface WSRequest_GetSearchQuota {
|
|
365
|
+
command: 'get-search-quota';
|
|
366
366
|
payload: Record<string, never>;
|
|
367
367
|
}
|
|
368
368
|
export interface WSRequest_SearchWithToken {
|
|
@@ -427,7 +427,7 @@ export interface WSRequest_SetDiscoveryView {
|
|
|
427
427
|
view: DiscoveryView;
|
|
428
428
|
};
|
|
429
429
|
}
|
|
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 |
|
|
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;
|
|
431
431
|
export type WSClientCommand = WSClientRequest['command'];
|
|
432
432
|
export interface WSResponse_Handshake {
|
|
433
433
|
command: 'handshake';
|
|
@@ -457,8 +457,8 @@ export interface WSResponse_GetCandidates {
|
|
|
457
457
|
payload: {
|
|
458
458
|
candidates: MatchCandidate[];
|
|
459
459
|
totalAvailable: number;
|
|
460
|
-
|
|
461
|
-
|
|
460
|
+
remaining: number;
|
|
461
|
+
dailyLimit: number;
|
|
462
462
|
} | {
|
|
463
463
|
error: string;
|
|
464
464
|
};
|
|
@@ -523,7 +523,7 @@ export interface WSResponse_Search {
|
|
|
523
523
|
command: 'search';
|
|
524
524
|
payload: {
|
|
525
525
|
results: MatchCandidate[];
|
|
526
|
-
|
|
526
|
+
remaining: number;
|
|
527
527
|
totalCount: number;
|
|
528
528
|
} | {
|
|
529
529
|
error: string;
|
|
@@ -707,10 +707,10 @@ export interface WSResponse_ValidateReceipt {
|
|
|
707
707
|
error: string;
|
|
708
708
|
};
|
|
709
709
|
}
|
|
710
|
-
export interface
|
|
711
|
-
command: 'get-
|
|
710
|
+
export interface WSResponse_GetSearchQuota {
|
|
711
|
+
command: 'get-search-quota';
|
|
712
712
|
payload: {
|
|
713
|
-
|
|
713
|
+
quota: SearchQuotaInfo;
|
|
714
714
|
} | {
|
|
715
715
|
error: string;
|
|
716
716
|
};
|
|
@@ -719,7 +719,7 @@ export interface WSResponse_SearchWithToken {
|
|
|
719
719
|
command: 'search-with-token';
|
|
720
720
|
payload: {
|
|
721
721
|
results: MatchCandidate[];
|
|
722
|
-
|
|
722
|
+
remaining: number;
|
|
723
723
|
totalCount: number;
|
|
724
724
|
} | {
|
|
725
725
|
error: string;
|
|
@@ -845,7 +845,7 @@ export interface WSResponse_SearchActivitiesWithToken {
|
|
|
845
845
|
command: 'search-activities-with-token';
|
|
846
846
|
payload: {
|
|
847
847
|
activities: ActivitySummary[];
|
|
848
|
-
|
|
848
|
+
remaining: number;
|
|
849
849
|
totalCount: number;
|
|
850
850
|
} | {
|
|
851
851
|
error: string;
|
|
@@ -865,8 +865,8 @@ export interface WSResponse_GetCandidateActivities {
|
|
|
865
865
|
payload: {
|
|
866
866
|
activities: ActivitySummary[];
|
|
867
867
|
totalAvailable: number;
|
|
868
|
-
|
|
869
|
-
|
|
868
|
+
remaining: number;
|
|
869
|
+
dailyLimit: number;
|
|
870
870
|
} | {
|
|
871
871
|
error: string;
|
|
872
872
|
};
|
|
@@ -980,7 +980,7 @@ export interface WSResponse_PlacesRetrieve {
|
|
|
980
980
|
error: string;
|
|
981
981
|
};
|
|
982
982
|
}
|
|
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 |
|
|
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;
|
|
984
984
|
export interface WSEvent_NewMessage {
|
|
985
985
|
event: 'new-message';
|
|
986
986
|
payload: {
|