@qrush/types 2.1.50 → 2.1.52

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/Chat.d.ts CHANGED
@@ -18,11 +18,17 @@ export interface Participant {
18
18
  birthday: Timestamp;
19
19
  pictureURI: string | null;
20
20
  check: true;
21
+ muted?: boolean;
22
+ unread?: boolean;
23
+ archived?: boolean;
24
+ pinned?: boolean;
21
25
  }
22
26
  type ChatOrigin = ChatOriginEvent | ChatOriginPersonalQR;
23
27
  interface ChatOriginEvent {
24
28
  type: 'event';
25
29
  name: string;
30
+ eventUID?: string;
31
+ roundUID?: string;
26
32
  }
27
33
  interface ChatOriginPersonalQR {
28
34
  type: 'personal';
@@ -44,6 +50,15 @@ export interface IFireMessages {
44
50
  readAt: Timestamp | undefined;
45
51
  message?: string;
46
52
  messagePayload?: MessagePayload;
53
+ reaction?: string | null;
54
+ replyTo?: {
55
+ _id: string;
56
+ message: string;
57
+ user: {
58
+ _id: string;
59
+ name: string;
60
+ };
61
+ };
47
62
  }
48
63
  type MessagePayload = MessageImagePayload;
49
64
  interface MessageImagePayload {
@@ -56,5 +71,15 @@ export interface IFireMessagesCreationData {
56
71
  sentAt: FieldValue;
57
72
  message?: string;
58
73
  messagePayload?: MessagePayload;
74
+ messageID?: string | number;
75
+ reaction?: string | null;
76
+ replyTo?: {
77
+ _id: string | number;
78
+ message: string;
79
+ user: {
80
+ _id: string | number;
81
+ name: string;
82
+ };
83
+ };
59
84
  }
60
85
  export {};
@@ -22,7 +22,10 @@ export type IFireWebappUser = {
22
22
  /** Which location or event the user wants to promote with Qrush */
23
23
  targetLocationOrEvent?: string;
24
24
  /** Types of user (can select multiple): event organizer, artist, or location owner */
25
- userTypes?: Array<'event_organizer' | 'artist' | 'location_owner'>;
25
+ userTypes?: Array<"event_organizer" | "artist" | "location_owner">;
26
26
  profileComplete?: boolean;
27
+ termsAcceptedAt?: Timestamp;
28
+ privacyAcceptedAt?: Timestamp;
29
+ contactConsentAt?: Timestamp;
27
30
  };
28
31
  export type FireWebappUserSnapshotRef = FireQueryDocSnapshotRef<IFireWebappUser>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qrush/types",
3
- "version": "2.1.50",
3
+ "version": "2.1.52",
4
4
  "description": "Shared TypeScript types for the QRush ecosystem",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",