@qrush/types 2.1.83 → 2.1.85

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.
@@ -1,13 +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' | 'lfg_request';
4
- export interface IConnectionEventContext {
5
- eventUID: string;
6
- eventName: string;
7
- locationTitle: string;
8
- entityType: 'event' | 'weekly';
9
- eventImageURL?: string;
10
- eventStart?: Timestamp;
4
+ export type AttachmentType = 'event' | 'weekly' | 'location' | 'promotion' | 'artist';
5
+ export interface IAttachment {
6
+ type: AttachmentType;
7
+ entityId: string;
8
+ title: string;
9
+ subtitle?: string;
10
+ imageURL?: string;
11
+ date?: Timestamp;
11
12
  }
12
13
  export interface IConnection {
13
14
  userIds: string[];
@@ -28,7 +29,7 @@ export interface IConnection {
28
29
  message?: string;
29
30
  createdAt: Timestamp;
30
31
  acceptedAt?: Timestamp;
31
- eventContext?: IConnectionEventContext;
32
+ attachment?: IAttachment;
32
33
  };
33
34
  createdAt: Timestamp;
34
35
  updatedAt: Timestamp;
@@ -1,5 +1,5 @@
1
1
  import type { Timestamp } from '@firebase/firestore';
2
- import type { IConnectionEventContext } from './Connection.js';
2
+ import type { IAttachment } from './Connection.js';
3
3
  export interface IConversation {
4
4
  type: 'direct' | 'group';
5
5
  participantIds: string[];
@@ -60,5 +60,5 @@ export interface IMessage {
60
60
  content: string;
61
61
  senderId: string;
62
62
  };
63
- eventContext?: IConnectionEventContext;
63
+ attachment?: IAttachment;
64
64
  }
package/dist/Users.d.ts CHANGED
@@ -98,3 +98,15 @@ export type IFireUserUpdateNotificationToken = {
98
98
  notificationTokens: FieldValue;
99
99
  };
100
100
  export type IFireUserUpdateDatingPreference = Pick<IFireUser, 'interestedIn'>;
101
+ export type IRemoveVerificationResponse = {
102
+ success: boolean;
103
+ embeddingDeleted: boolean;
104
+ };
105
+ export type ICheckEmbeddingStatusRequest = {
106
+ userId: string;
107
+ };
108
+ export type ICheckEmbeddingStatusResponse = {
109
+ exists: boolean;
110
+ status: 'active' | 'banned' | 'not_found';
111
+ createdAt?: string;
112
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qrush/types",
3
- "version": "2.1.83",
3
+ "version": "2.1.85",
4
4
  "description": "Shared TypeScript types for the QRush ecosystem",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",