@oxyfoo/whymeet-types 0.0.1
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/LICENSE +17 -0
- package/README.md +34 -0
- package/dist/HTTP/Auth.d.ts +87 -0
- package/dist/HTTP/Auth.js +1 -0
- package/dist/Models/Activity.d.ts +51 -0
- package/dist/Models/Activity.js +1 -0
- package/dist/Models/Availability.d.ts +2 -0
- package/dist/Models/Availability.js +1 -0
- package/dist/Models/Block.d.ts +9 -0
- package/dist/Models/Block.js +1 -0
- package/dist/Models/Conversation.d.ts +20 -0
- package/dist/Models/Conversation.js +1 -0
- package/dist/Models/Intention.d.ts +25 -0
- package/dist/Models/Intention.js +240 -0
- package/dist/Models/Match.d.ts +34 -0
- package/dist/Models/Match.js +1 -0
- package/dist/Models/Notification.d.ts +10 -0
- package/dist/Models/Notification.js +1 -0
- package/dist/Models/Profile.d.ts +25 -0
- package/dist/Models/Profile.js +1 -0
- package/dist/Models/Report.d.ts +2 -0
- package/dist/Models/Report.js +1 -0
- package/dist/Models/Search.d.ts +14 -0
- package/dist/Models/Search.js +1 -0
- package/dist/Models/Settings.d.ts +33 -0
- package/dist/Models/Settings.js +17 -0
- package/dist/Models/Subscription.d.ts +40 -0
- package/dist/Models/Subscription.js +20 -0
- package/dist/Models/Tag.d.ts +9 -0
- package/dist/Models/Tag.js +1 -0
- package/dist/Models/User.d.ts +23 -0
- package/dist/Models/User.js +1 -0
- package/dist/Models/index.d.ts +19 -0
- package/dist/Models/index.js +5 -0
- package/dist/WS/Request.d.ts +794 -0
- package/dist/WS/Request.js +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/package.json +59 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare const SUBSCRIPTION_PLANS: readonly ["monthly", "semi_annual", "annual"];
|
|
2
|
+
export type SubscriptionPlan = (typeof SUBSCRIPTION_PLANS)[number];
|
|
3
|
+
export declare const SUBSCRIPTION_STATUSES: readonly ["active", "expired", "cancelled", "grace_period"];
|
|
4
|
+
export type SubscriptionStatus = (typeof SUBSCRIPTION_STATUSES)[number];
|
|
5
|
+
export type SubscriptionPlatform = 'ios' | 'android';
|
|
6
|
+
export interface UserSubscription {
|
|
7
|
+
plan: SubscriptionPlan;
|
|
8
|
+
status: SubscriptionStatus;
|
|
9
|
+
expiresAt: string;
|
|
10
|
+
platform: SubscriptionPlatform;
|
|
11
|
+
}
|
|
12
|
+
export declare const BOOST_PACKS: readonly ["boost_1d", "boost_3d", "boost_7d"];
|
|
13
|
+
export type BoostPack = (typeof BOOST_PACKS)[number];
|
|
14
|
+
export declare const BOOST_DURATION_DAYS: Record<BoostPack, number>;
|
|
15
|
+
export type BoostSource = 'purchase' | 'subscription';
|
|
16
|
+
export interface UserBoost {
|
|
17
|
+
active: boolean;
|
|
18
|
+
expiresAt: string | null;
|
|
19
|
+
source: BoostSource | null;
|
|
20
|
+
}
|
|
21
|
+
export interface TokenBalance {
|
|
22
|
+
tokens: number;
|
|
23
|
+
lastRefillAt: string;
|
|
24
|
+
}
|
|
25
|
+
export interface SwipeQuotaInfo {
|
|
26
|
+
swipesRemaining: number;
|
|
27
|
+
dailySwipeLimit: number;
|
|
28
|
+
}
|
|
29
|
+
export declare const PRODUCT_IDS: {
|
|
30
|
+
readonly subscriptions: {
|
|
31
|
+
readonly monthly: "com.whymeet.sub.monthly";
|
|
32
|
+
readonly semi_annual: "com.whymeet.sub.semi_annual";
|
|
33
|
+
readonly annual: "com.whymeet.sub.annual";
|
|
34
|
+
};
|
|
35
|
+
readonly boosts: {
|
|
36
|
+
readonly boost_1d: "com.whymeet.boost.1d";
|
|
37
|
+
readonly boost_3d: "com.whymeet.boost.3d";
|
|
38
|
+
readonly boost_7d: "com.whymeet.boost.7d";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export const SUBSCRIPTION_PLANS = ['monthly', 'semi_annual', 'annual'];
|
|
2
|
+
export const SUBSCRIPTION_STATUSES = ['active', 'expired', 'cancelled', 'grace_period'];
|
|
3
|
+
export const BOOST_PACKS = ['boost_1d', 'boost_3d', 'boost_7d'];
|
|
4
|
+
export const BOOST_DURATION_DAYS = {
|
|
5
|
+
boost_1d: 1,
|
|
6
|
+
boost_3d: 3,
|
|
7
|
+
boost_7d: 7
|
|
8
|
+
};
|
|
9
|
+
export const PRODUCT_IDS = {
|
|
10
|
+
subscriptions: {
|
|
11
|
+
monthly: 'com.whymeet.sub.monthly',
|
|
12
|
+
semi_annual: 'com.whymeet.sub.semi_annual',
|
|
13
|
+
annual: 'com.whymeet.sub.annual'
|
|
14
|
+
},
|
|
15
|
+
boosts: {
|
|
16
|
+
boost_1d: 'com.whymeet.boost.1d',
|
|
17
|
+
boost_3d: 'com.whymeet.boost.3d',
|
|
18
|
+
boost_7d: 'com.whymeet.boost.7d'
|
|
19
|
+
}
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Gender } from './Settings.js';
|
|
2
|
+
import type { PreferredPeriod } from './Availability.js';
|
|
3
|
+
export interface ProfilePhoto {
|
|
4
|
+
id: string;
|
|
5
|
+
key: string;
|
|
6
|
+
description: string;
|
|
7
|
+
position: number;
|
|
8
|
+
}
|
|
9
|
+
export interface User {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
age: number;
|
|
13
|
+
birthDate: string | null;
|
|
14
|
+
gender: Gender;
|
|
15
|
+
photos: ProfilePhoto[];
|
|
16
|
+
city: string;
|
|
17
|
+
verified: boolean;
|
|
18
|
+
suspended: boolean;
|
|
19
|
+
banned: boolean;
|
|
20
|
+
preferredPeriod: PreferredPeriod;
|
|
21
|
+
isPremium: boolean;
|
|
22
|
+
isBoosted: boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type { User, ProfilePhoto } from './User.js';
|
|
2
|
+
export type { ReportReason, ReportSourceType } from './Report.js';
|
|
3
|
+
export type { Profile, SocialVibe } from './Profile.js';
|
|
4
|
+
export { SOCIAL_VIBES } from './Profile.js';
|
|
5
|
+
export type { Intention, IntentionKey, InterestCategory, InterestCategoryKey, SubIntention } from './Intention.js';
|
|
6
|
+
export { INTENTION_KEYS, INTENTIONS, INTEREST_CATEGORY_KEYS, INTEREST_CATEGORIES, SUB_INTENTIONS } from './Intention.js';
|
|
7
|
+
export type { Tag, TagMatchType, TagSuggestion } from './Tag.js';
|
|
8
|
+
export type { SearchFilters } from './Search.js';
|
|
9
|
+
export type { MatchCandidate, Match, MatchRequest } from './Match.js';
|
|
10
|
+
export type { Conversation, Message } from './Conversation.js';
|
|
11
|
+
export type { Notification } from './Notification.js';
|
|
12
|
+
export type { Language, Theme, UserSettings, Gender, DiscoveryPreferences, VisibilityPreferences } from './Settings.js';
|
|
13
|
+
export { GENDERS, DEFAULT_DISCOVERY, DEFAULT_VISIBILITY } from './Settings.js';
|
|
14
|
+
export type { Activity, ActivitySummary, ActivitySearchFilters, ActivityPhoto } from './Activity.js';
|
|
15
|
+
export type { BlockedUser } from './Block.js';
|
|
16
|
+
export type { PreferredPeriod } from './Availability.js';
|
|
17
|
+
export { PREFERRED_PERIODS } from './Availability.js';
|
|
18
|
+
export type { SubscriptionPlan, SubscriptionStatus, SubscriptionPlatform, UserSubscription, BoostPack, BoostSource, UserBoost, TokenBalance, SwipeQuotaInfo } from './Subscription.js';
|
|
19
|
+
export { SUBSCRIPTION_PLANS, SUBSCRIPTION_STATUSES, BOOST_PACKS, BOOST_DURATION_DAYS, PRODUCT_IDS } from './Subscription.js';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { SOCIAL_VIBES } from './Profile.js';
|
|
2
|
+
export { INTENTION_KEYS, INTENTIONS, INTEREST_CATEGORY_KEYS, INTEREST_CATEGORIES, SUB_INTENTIONS } from './Intention.js';
|
|
3
|
+
export { GENDERS, DEFAULT_DISCOVERY, DEFAULT_VISIBILITY } from './Settings.js';
|
|
4
|
+
export { PREFERRED_PERIODS } from './Availability.js';
|
|
5
|
+
export { SUBSCRIPTION_PLANS, SUBSCRIPTION_STATUSES, BOOST_PACKS, BOOST_DURATION_DAYS, PRODUCT_IDS } from './Subscription.js';
|