mgtypes 1.0.0 → 1.0.1
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/package.json +1 -1
- package/types/Content.ts +14 -1
package/package.json
CHANGED
package/types/Content.ts
CHANGED
|
@@ -101,6 +101,7 @@ interface Contentable {
|
|
|
101
101
|
pinType?: string;
|
|
102
102
|
|
|
103
103
|
// Plans
|
|
104
|
+
planCategory?:string
|
|
104
105
|
planType?: string;
|
|
105
106
|
inviteCount?: number;
|
|
106
107
|
attendingCount?: number;
|
|
@@ -150,15 +151,23 @@ interface SharedContentDetails {
|
|
|
150
151
|
};
|
|
151
152
|
}
|
|
152
153
|
|
|
154
|
+
/**
|
|
155
|
+
* Consists of information from both user_friend and user records
|
|
156
|
+
* to display the state of a friendship on client.
|
|
157
|
+
* Documents when the request was originally made and who
|
|
158
|
+
* has last updated it. TODO: create events that document
|
|
159
|
+
* how a friendship has changed over time
|
|
160
|
+
*/
|
|
153
161
|
interface FriendRequest {
|
|
154
162
|
id: number;
|
|
155
|
-
status: 'pending' | '
|
|
163
|
+
status: 'pending' | 'accepted' | 'denied' | 'blocked' | 'archived' | 'revoked';
|
|
156
164
|
createdAt: string;
|
|
157
165
|
updatedAt: string;
|
|
158
166
|
requesterId: number;
|
|
159
167
|
recipientId: number;
|
|
160
168
|
requester: User;
|
|
161
169
|
recipient: User;
|
|
170
|
+
lastUpdaterId: number;
|
|
162
171
|
}
|
|
163
172
|
|
|
164
173
|
// Specific content types - type Contentable above covers all content types coming in from server, but content types below are used for creating/editing content in Create[ContentType].tsx component
|
|
@@ -166,6 +175,9 @@ interface Pin {
|
|
|
166
175
|
id: number | null; // will not have id when creating
|
|
167
176
|
pinCategory?: string;
|
|
168
177
|
pinType?: string;
|
|
178
|
+
// TODO: CHANGE TO KEY AND BUCKET
|
|
179
|
+
// WHICH ARE NEEDED FOR createPresignedUrlWothClient
|
|
180
|
+
// KEY IS ROUTE + FILENAME
|
|
169
181
|
photoURL?: string; // only available after post is created (ie, this is not added by the user)
|
|
170
182
|
primaryText: string;
|
|
171
183
|
secondaryText: string;
|
|
@@ -180,6 +192,7 @@ interface Pin {
|
|
|
180
192
|
|
|
181
193
|
interface Plan {
|
|
182
194
|
id: number | null; // will not have id when creating
|
|
195
|
+
planCategory: string;
|
|
183
196
|
planType: string;
|
|
184
197
|
primaryText: string;
|
|
185
198
|
secondaryText: string;
|