@qrush/types 2.1.66 → 2.1.68
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/Social.d.ts +26 -3
- package/dist/Social.js +4 -1
- package/dist/Users.d.ts +1 -4
- package/package.json +1 -1
package/dist/Social.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ export interface ISocialProfile {
|
|
|
37
37
|
};
|
|
38
38
|
socialProfileStatus?: SocialProfileStatus;
|
|
39
39
|
trustScore?: number;
|
|
40
|
+
hasTrustBadge?: boolean;
|
|
40
41
|
trustSignals?: ITrustSignals;
|
|
41
42
|
visibility: ISocialProfileVisibility;
|
|
42
43
|
}
|
|
@@ -53,11 +54,16 @@ export interface ISocialUserEntry {
|
|
|
53
54
|
occurrenceDate?: string;
|
|
54
55
|
hasSocialProfile?: boolean;
|
|
55
56
|
socialProfileStatus?: SocialProfileStatus;
|
|
57
|
+
hasTrustBadge?: boolean;
|
|
56
58
|
citySlug?: string;
|
|
57
59
|
entityId?: string;
|
|
58
60
|
entityType?: SocialEntityType;
|
|
59
61
|
entityTitle?: string;
|
|
60
62
|
lookingFor?: ILookingFor;
|
|
63
|
+
/** Event: eventStart; Weekly: computed from occurrenceDate + DaySchedule.eventStart */
|
|
64
|
+
entityStartTime?: Timestamp;
|
|
65
|
+
/** Flat boolean for efficient Firestore indexing (avoids != null on map field) */
|
|
66
|
+
hasLookingFor?: boolean;
|
|
61
67
|
}
|
|
62
68
|
export type SocialAction = 'going' | 'interested';
|
|
63
69
|
export type SocialEntityType = 'event' | 'location' | 'weekly';
|
|
@@ -71,9 +77,26 @@ export interface IToggleSocialActionResponse {
|
|
|
71
77
|
success: boolean;
|
|
72
78
|
isActive: boolean;
|
|
73
79
|
}
|
|
74
|
-
export
|
|
75
|
-
|
|
76
|
-
|
|
80
|
+
export interface IUpdateLookingForRequest {
|
|
81
|
+
action: SocialAction;
|
|
82
|
+
entityType: SocialEntityType;
|
|
83
|
+
entityId: string;
|
|
84
|
+
day?: string;
|
|
85
|
+
lookingFor: {
|
|
86
|
+
preset?: 'group' | 'dance_partner' | 'going_together';
|
|
87
|
+
text?: string;
|
|
88
|
+
} | null;
|
|
89
|
+
}
|
|
90
|
+
export interface IUpdateLookingForResponse {
|
|
91
|
+
success: boolean;
|
|
92
|
+
}
|
|
93
|
+
export type SocialProfileStatus = 'none' | 'basic' | 'full';
|
|
94
|
+
export type EntryVisibility = 'clear' | 'blurred' | 'hidden';
|
|
95
|
+
export type ListVisibility = 'all' | 'contacts' | 'hidden';
|
|
96
|
+
export declare const TRUST_THRESHOLDS: {
|
|
97
|
+
readonly UNBLURRED_ACCESS: 5;
|
|
98
|
+
readonly TRUSTED_BADGE: 10;
|
|
99
|
+
};
|
|
77
100
|
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';
|
|
78
101
|
export interface ITrustSignals {
|
|
79
102
|
phoneVerified: boolean;
|
package/dist/Social.js
CHANGED
package/dist/Users.d.ts
CHANGED
|
@@ -18,10 +18,6 @@ export type IFireUser = {
|
|
|
18
18
|
/** @deprecated replace with group collection query on goingUsers */
|
|
19
19
|
attendingEvent: string | null;
|
|
20
20
|
listVisibility?: 'all' | 'contacts' | 'hidden';
|
|
21
|
-
/** @deprecated moved to socialProfile subcollection */
|
|
22
|
-
socialProfile?: Record<string, unknown>;
|
|
23
|
-
/** @deprecated moved to socialProfile/default.socialSetupDone */
|
|
24
|
-
socialProfileSetupCompleted?: boolean;
|
|
25
21
|
sharingToken: SharingToken | null;
|
|
26
22
|
notificationTokens: string[];
|
|
27
23
|
markedForDeletion: boolean;
|
|
@@ -35,6 +31,7 @@ export type IFireUser = {
|
|
|
35
31
|
redemptionIds?: string[];
|
|
36
32
|
trustScore?: number;
|
|
37
33
|
socialProfileStatus?: SocialProfileStatus;
|
|
34
|
+
hasTrustBadge?: boolean;
|
|
38
35
|
isQrushPlus?: boolean;
|
|
39
36
|
};
|
|
40
37
|
export type UserRole = 'user' | 'staff' | 'team' | 'admin';
|