@qrush/types 2.1.65 → 2.1.67
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/Report.d.ts +1 -1
- package/dist/Social.d.ts +47 -1
- package/dist/Users.d.ts +4 -0
- package/package.json +1 -1
package/dist/Report.d.ts
CHANGED
package/dist/Social.d.ts
CHANGED
|
@@ -35,7 +35,9 @@ export interface ISocialProfile {
|
|
|
35
35
|
partyDrugs?: string;
|
|
36
36
|
hardDrugs?: string;
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
socialProfileStatus?: SocialProfileStatus;
|
|
39
|
+
trustScore?: number;
|
|
40
|
+
trustSignals?: ITrustSignals;
|
|
39
41
|
visibility: ISocialProfileVisibility;
|
|
40
42
|
}
|
|
41
43
|
export interface ISocialUserEntry {
|
|
@@ -49,6 +51,17 @@ export interface ISocialUserEntry {
|
|
|
49
51
|
day?: string;
|
|
50
52
|
/** Resolved occurrence date (YYYY-MM-DD) for weekly entries */
|
|
51
53
|
occurrenceDate?: string;
|
|
54
|
+
hasSocialProfile?: boolean;
|
|
55
|
+
socialProfileStatus?: SocialProfileStatus;
|
|
56
|
+
citySlug?: string;
|
|
57
|
+
entityId?: string;
|
|
58
|
+
entityType?: SocialEntityType;
|
|
59
|
+
entityTitle?: string;
|
|
60
|
+
lookingFor?: ILookingFor;
|
|
61
|
+
/** Event: eventStart; Weekly: computed from occurrenceDate + DaySchedule.eventStart */
|
|
62
|
+
entityStartTime?: Timestamp;
|
|
63
|
+
/** Flat boolean for efficient Firestore indexing (avoids != null on map field) */
|
|
64
|
+
hasLookingFor?: boolean;
|
|
52
65
|
}
|
|
53
66
|
export type SocialAction = 'going' | 'interested';
|
|
54
67
|
export type SocialEntityType = 'event' | 'location' | 'weekly';
|
|
@@ -62,3 +75,36 @@ export interface IToggleSocialActionResponse {
|
|
|
62
75
|
success: boolean;
|
|
63
76
|
isActive: boolean;
|
|
64
77
|
}
|
|
78
|
+
export interface IUpdateLookingForRequest {
|
|
79
|
+
action: SocialAction;
|
|
80
|
+
entityType: SocialEntityType;
|
|
81
|
+
entityId: string;
|
|
82
|
+
day?: string;
|
|
83
|
+
lookingFor: {
|
|
84
|
+
preset?: 'group' | 'dance_partner' | 'going_together';
|
|
85
|
+
text?: string;
|
|
86
|
+
} | null;
|
|
87
|
+
}
|
|
88
|
+
export interface IUpdateLookingForResponse {
|
|
89
|
+
success: boolean;
|
|
90
|
+
}
|
|
91
|
+
export type SocialProfileStatus = 'incomplete' | 'minimal' | 'complete' | 'trusted';
|
|
92
|
+
export type AccessTier = 'guest' | 'registered' | 'minimal' | 'complete' | 'trusted';
|
|
93
|
+
export type EntryVisibility = 'clear' | 'nightlife_blur' | 'hidden';
|
|
94
|
+
export type TrustSignal = 'phone_verified' | 'profile_image' | 'bio_filled' | 'social_fields_3' | 'social_fields_5' | 'connections_1' | 'connections_3' | 'qrush_plus' | 'promo_redeemed' | 'account_age_7d' | 'account_age_30d' | 'social_actions_3';
|
|
95
|
+
export interface ITrustSignals {
|
|
96
|
+
phoneVerified: boolean;
|
|
97
|
+
hasProfileImage: boolean;
|
|
98
|
+
hasBio: boolean;
|
|
99
|
+
socialFieldsCount: number;
|
|
100
|
+
acceptedContactsCount: number;
|
|
101
|
+
isQrushPlusSubscriber: boolean;
|
|
102
|
+
promoRedemptionCount: number;
|
|
103
|
+
accountAgeDays: number;
|
|
104
|
+
socialActionsCount: number;
|
|
105
|
+
}
|
|
106
|
+
export interface ILookingFor {
|
|
107
|
+
preset?: 'group' | 'dance_partner' | 'going_together';
|
|
108
|
+
text?: string;
|
|
109
|
+
createdAt: Timestamp;
|
|
110
|
+
}
|
package/dist/Users.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { DocumentReference, FieldValue, Timestamp } from '@firebase/firestore';
|
|
2
2
|
import { FireQueryDocSnapshotRef } from './CustomDocType.js';
|
|
3
|
+
import type { SocialProfileStatus } from './Social.js';
|
|
3
4
|
export type Maybe<T> = T | null | undefined;
|
|
4
5
|
export type IFireUser = {
|
|
5
6
|
phone?: Phone;
|
|
@@ -32,6 +33,9 @@ export type IFireUser = {
|
|
|
32
33
|
profileImageUrl?: string;
|
|
33
34
|
totalSavings: number;
|
|
34
35
|
redemptionIds?: string[];
|
|
36
|
+
trustScore?: number;
|
|
37
|
+
socialProfileStatus?: SocialProfileStatus;
|
|
38
|
+
isQrushPlus?: boolean;
|
|
35
39
|
};
|
|
36
40
|
export type UserRole = 'user' | 'staff' | 'team' | 'admin';
|
|
37
41
|
export type UserAvatar = {
|