@qrush/types 2.1.67 → 2.1.69
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/Connection.d.ts +9 -0
- package/dist/Conversation.d.ts +2 -0
- package/dist/Social.d.ts +9 -3
- package/dist/Social.js +4 -1
- package/dist/Users.d.ts +1 -4
- package/package.json +1 -1
package/dist/Connection.d.ts
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import type { Timestamp } from '@firebase/firestore';
|
|
2
2
|
export type ConnectionStatus = 'pending' | 'accepted' | 'none';
|
|
3
3
|
export type ConnectionOrigin = 'connection_request' | 'qr_scan' | 'block';
|
|
4
|
+
export interface IConnectionEventContext {
|
|
5
|
+
eventUID: string;
|
|
6
|
+
eventName: string;
|
|
7
|
+
locationTitle: string;
|
|
8
|
+
entityType: 'event' | 'weekly';
|
|
9
|
+
eventImageURL?: string;
|
|
10
|
+
eventStart?: Timestamp;
|
|
11
|
+
}
|
|
4
12
|
export interface IConnection {
|
|
5
13
|
userIds: string[];
|
|
6
14
|
status: ConnectionStatus;
|
|
@@ -19,6 +27,7 @@ export interface IConnection {
|
|
|
19
27
|
message?: string;
|
|
20
28
|
createdAt: Timestamp;
|
|
21
29
|
acceptedAt?: Timestamp;
|
|
30
|
+
eventContext?: IConnectionEventContext;
|
|
22
31
|
};
|
|
23
32
|
createdAt: Timestamp;
|
|
24
33
|
updatedAt: Timestamp;
|
package/dist/Conversation.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Timestamp } from '@firebase/firestore';
|
|
2
|
+
import type { IConnectionEventContext } from './Connection.js';
|
|
2
3
|
export interface IConversation {
|
|
3
4
|
type: 'direct' | 'group';
|
|
4
5
|
participantIds: string[];
|
|
@@ -59,4 +60,5 @@ export interface IMessage {
|
|
|
59
60
|
content: string;
|
|
60
61
|
senderId: string;
|
|
61
62
|
};
|
|
63
|
+
eventContext?: IConnectionEventContext;
|
|
62
64
|
}
|
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,6 +54,7 @@ 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;
|
|
@@ -88,9 +90,13 @@ export interface IUpdateLookingForRequest {
|
|
|
88
90
|
export interface IUpdateLookingForResponse {
|
|
89
91
|
success: boolean;
|
|
90
92
|
}
|
|
91
|
-
export type SocialProfileStatus = '
|
|
92
|
-
export type
|
|
93
|
-
export type
|
|
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
|
+
};
|
|
94
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';
|
|
95
101
|
export interface ITrustSignals {
|
|
96
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';
|