@oxyfoo/whymeet-types 0.0.33 → 0.0.34
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/Match.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export interface MatchCandidate {
|
|
|
18
18
|
blurred?: boolean;
|
|
19
19
|
alreadyInteracted?: boolean;
|
|
20
20
|
alreadyMatched?: boolean;
|
|
21
|
+
conversationId?: string;
|
|
21
22
|
hostLevel?: HostLevel | null;
|
|
22
23
|
socialVibe?: SocialVibe | null;
|
|
23
24
|
}
|
|
@@ -42,4 +43,5 @@ export interface MatchRequest {
|
|
|
42
43
|
intentionKey?: IntentionKey;
|
|
43
44
|
matchContext: string;
|
|
44
45
|
sentAt: string;
|
|
46
|
+
compatibilityScore?: number;
|
|
45
47
|
}
|
|
@@ -8,7 +8,10 @@ export interface UserSubscription {
|
|
|
8
8
|
status: SubscriptionStatus;
|
|
9
9
|
expiresAt: string;
|
|
10
10
|
platform: SubscriptionPlatform;
|
|
11
|
+
cancelledAt?: string | null;
|
|
11
12
|
}
|
|
13
|
+
export declare const PURCHASE_ERROR_CODES: readonly ["invalid_receipt", "expired_receipt", "unknown_product", "already_boosted", "already_subscribed", "platform_unavailable", "unknown"];
|
|
14
|
+
export type PurchaseErrorCode = (typeof PURCHASE_ERROR_CODES)[number];
|
|
12
15
|
export declare const BOOST_PACKS: readonly ["boost_1d", "boost_3d", "boost_7d"];
|
|
13
16
|
export type BoostPack = (typeof BOOST_PACKS)[number];
|
|
14
17
|
export declare const BOOST_DURATION_DAYS: Record<BoostPack, number>;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
export const SUBSCRIPTION_PLANS = ['monthly', 'semi_annual', 'annual'];
|
|
2
2
|
export const SUBSCRIPTION_STATUSES = ['active', 'expired', 'cancelled', 'grace_period'];
|
|
3
|
+
export const PURCHASE_ERROR_CODES = [
|
|
4
|
+
'invalid_receipt',
|
|
5
|
+
'expired_receipt',
|
|
6
|
+
'unknown_product',
|
|
7
|
+
'already_boosted',
|
|
8
|
+
'already_subscribed',
|
|
9
|
+
'platform_unavailable',
|
|
10
|
+
'unknown'
|
|
11
|
+
];
|
|
3
12
|
export const BOOST_PACKS = ['boost_1d', 'boost_3d', 'boost_7d'];
|
|
4
13
|
export const BOOST_DURATION_DAYS = {
|
|
5
14
|
boost_1d: 1,
|
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, SearchQuotaInfo, BoostPack, SubscriptionPlatform } from '../Models/Subscription.js';
|
|
8
|
+
import type { UserSubscription, UserBoost, SearchQuotaInfo, BoostPack, SubscriptionPlatform, PurchaseErrorCode } 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';
|
|
@@ -780,6 +780,7 @@ export interface WSResponse_ValidateReceipt {
|
|
|
780
780
|
boost: UserBoost;
|
|
781
781
|
} | {
|
|
782
782
|
error: string;
|
|
783
|
+
code?: PurchaseErrorCode;
|
|
783
784
|
};
|
|
784
785
|
}
|
|
785
786
|
export interface WSResponse_GetSearchQuota {
|
|
@@ -815,6 +816,7 @@ export interface WSResponse_PurchaseBoost {
|
|
|
815
816
|
boost: UserBoost;
|
|
816
817
|
} | {
|
|
817
818
|
error: string;
|
|
819
|
+
code?: PurchaseErrorCode;
|
|
818
820
|
};
|
|
819
821
|
}
|
|
820
822
|
export interface WSResponse_GetBoostStatus {
|