@qrush/types 2.1.64 → 2.1.65

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.
@@ -0,0 +1,25 @@
1
+ import type { Timestamp } from '@firebase/firestore';
2
+ export type ConnectionStatus = 'pending' | 'accepted' | 'none';
3
+ export type ConnectionOrigin = 'connection_request' | 'qr_scan' | 'block';
4
+ export interface IConnection {
5
+ userIds: string[];
6
+ status: ConnectionStatus;
7
+ blocked: boolean;
8
+ blockedBy: string[];
9
+ users: {
10
+ [uid: string]: {
11
+ name: string;
12
+ avatarURL: string;
13
+ };
14
+ };
15
+ origin: ConnectionOrigin;
16
+ request?: {
17
+ fromUID: string;
18
+ toUID: string;
19
+ message?: string;
20
+ createdAt: Timestamp;
21
+ acceptedAt?: Timestamp;
22
+ };
23
+ createdAt: Timestamp;
24
+ updatedAt: Timestamp;
25
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -17,6 +17,9 @@ export interface IConversation {
17
17
  archived: {
18
18
  [uid: string]: boolean;
19
19
  };
20
+ pinned: {
21
+ [uid: string]: boolean;
22
+ };
20
23
  lastMessage: {
21
24
  text: string;
22
25
  senderId: string;
@@ -30,13 +33,13 @@ export interface IConversation {
30
33
  type: 'event' | 'personal';
31
34
  eventUID?: string;
32
35
  };
33
- request?: {
34
- status: 'pending' | 'accepted';
35
- fromUID: string;
36
- toUID: string;
37
- message: string;
38
- createdAt: Timestamp;
39
- acceptedAt?: Timestamp;
36
+ connectionId?: string;
37
+ blocked?: boolean;
38
+ deleted: {
39
+ [uid: string]: boolean;
40
+ };
41
+ deletedAt: {
42
+ [uid: string]: Timestamp;
40
43
  };
41
44
  }
42
45
  export interface IMessage {
@@ -141,5 +141,8 @@ export type IFireLocation = {
141
141
  weeklyGoingCount?: {
142
142
  [day: string]: number;
143
143
  };
144
+ weeklyInterestedCount?: {
145
+ [day: string]: number;
146
+ };
144
147
  };
145
148
  export type FireLocationSnapshotRef = FireQueryDocSnapshotRef<IFireLocation>;
package/dist/index.d.ts CHANGED
@@ -18,3 +18,4 @@ export * from './Chat.js';
18
18
  export * from './Conversation.js';
19
19
  export * from './Social.js';
20
20
  export * from './Report.js';
21
+ export * from './Connection.js';
package/dist/index.js CHANGED
@@ -18,3 +18,4 @@ export * from './Chat.js';
18
18
  export * from './Conversation.js';
19
19
  export * from './Social.js';
20
20
  export * from './Report.js';
21
+ export * from './Connection.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qrush/types",
3
- "version": "2.1.64",
3
+ "version": "2.1.65",
4
4
  "description": "Shared TypeScript types for the QRush ecosystem",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -148,6 +148,12 @@
148
148
  "react-native": "./dist/RemoteConfig.js",
149
149
  "import": "./dist/RemoteConfig.js",
150
150
  "require": "./dist/RemoteConfig.js"
151
+ },
152
+ "./Connection": {
153
+ "types": "./dist/Connection.d.ts",
154
+ "react-native": "./dist/Connection.js",
155
+ "import": "./dist/Connection.js",
156
+ "require": "./dist/Connection.js"
151
157
  }
152
158
  }
153
159
  }