@qrush/types 2.1.76 → 2.1.78

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.
Files changed (2) hide show
  1. package/dist/Social.d.ts +10 -6
  2. package/package.json +1 -1
package/dist/Social.d.ts CHANGED
@@ -95,25 +95,28 @@ export interface IFilteredEntry {
95
95
  isOwnEntry?: boolean;
96
96
  }
97
97
  export type SocialAction = 'going' | 'interested';
98
+ export type SocialStatus = 'interested' | 'going' | 'none';
98
99
  export type SocialEntityType = 'event' | 'location' | 'weekly';
99
- export interface IToggleSocialActionRequest {
100
- action: SocialAction;
100
+ export interface ISetSocialStatusRequest {
101
+ desiredStatus: SocialStatus;
101
102
  entityType: SocialEntityType;
102
103
  entityId: string;
103
104
  day?: string;
104
105
  }
105
- export interface IToggleSocialActionResponse {
106
+ export interface ISetSocialStatusResponse {
106
107
  success: boolean;
107
- isActive: boolean;
108
+ status: SocialStatus;
108
109
  }
110
+ export type LookingForType = 'lfg' | 'lfm' | 'general';
109
111
  export interface IUpdateLookingForRequest {
110
112
  action: SocialAction;
111
113
  entityType: SocialEntityType;
112
114
  entityId: string;
113
115
  day?: string;
114
116
  lookingFor: {
115
- preset?: 'group' | 'dance_partner' | 'going_together';
117
+ type: LookingForType;
116
118
  text?: string;
119
+ onlyVerified?: boolean;
117
120
  } | null;
118
121
  }
119
122
  export interface IUpdateLookingForResponse {
@@ -121,7 +124,8 @@ export interface IUpdateLookingForResponse {
121
124
  }
122
125
  export type EntryVisibility = 'clear' | 'blurred' | 'hidden';
123
126
  export interface ILookingFor {
124
- preset?: 'group' | 'dance_partner' | 'going_together';
127
+ type: LookingForType;
125
128
  text?: string;
129
+ onlyVerified?: boolean;
126
130
  createdAt: Timestamp;
127
131
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qrush/types",
3
- "version": "2.1.76",
3
+ "version": "2.1.78",
4
4
  "description": "Shared TypeScript types for the QRush ecosystem",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",