Skip to content

Commit 9200c73

Browse files
chore(develop): sync types to dmgincs/nestjs-api
1 parent 23eacfc commit 9200c73

File tree

4 files changed

+35
-1
lines changed

4 files changed

+35
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export enum EventRequestedRsvpType {
2+
MEMBER = 'member',
3+
GROUP = 'group'
4+
}

src/emt/CreateEventRequest.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { EventRegions, EventTypes } from '~/constants/Events';
1+
import { EventRequestedRsvpType } from '~/constants/EventRequestedRsvpType';
2+
import { EventRegions, EventRsvpTypes, EventTypes } from '~/constants/Events';
23

34
export class CreateEventRequestDto {
45

@@ -31,10 +32,24 @@ export class CreateEventRequestDto {
3132
/** Whether the event is a 21+ event, meaning only members who are above the age of 21 can join */
3233
is_over21: boolean;
3334

35+
/** Whether an event is private (limited to the requested rsvps) or not */
36+
37+
is_private?: boolean;
38+
3439
/** The member ID of the host */
3540
host_id: number;
3641

3742
/** The ID of the image used as the event banner */
3843

3944
image_id?: number;
45+
46+
/** A list of all RSVPd members */
47+
rsvps: {
48+
member_id: number;
49+
rsvpType: EventRsvpTypes;
50+
}[];
51+
52+
/** The group/member(s) to request rsvps from */
53+
54+
requested_rsvps?: { requested_entity_id: number; type: EventRequestedRsvpType }[];
4055
}

src/emt/EditEventRequest.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { EventRequestedRsvpType } from '~/constants/EventRequestedRsvpType';
12
import { EventRegions, EventTypes } from '~/constants/Events';
23

34
export class EditEventRequestDto {
@@ -36,4 +37,11 @@ export class EditEventRequestDto {
3637

3738
/** The ID of the image used as the event banner */
3839
image_id?: number;
40+
41+
/** Whether an event is private (limited to the requested rsvps) or not */
42+
is_private?: boolean;
43+
44+
/** The group/member(s) to request rsvps from */
45+
46+
requested_rsvps?: { requested_entity_id: number; type: EventRequestedRsvpType }[];
3947
}

src/emt/GetEventResponse.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { EventRequestedRsvpType } from '~/constants/EventRequestedRsvpType';
12
import { EventRegions, EventRsvpTypes, EventTypes } from '~/constants/Events';
23

34
export class GetEventResponseDto {
@@ -57,4 +58,10 @@ export class GetEventResponseDto {
5758
member_id: number;
5859
rsvpType: EventRsvpTypes;
5960
}[];
61+
62+
/** Whether the event is private or not */
63+
is_private: boolean;
64+
65+
/** The group/member(s) rsvps have been requested from */
66+
requested_rsvps?: { requested_entity_id: number; type: EventRequestedRsvpType }[];
6067
}

0 commit comments

Comments
 (0)