-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtypes.ts
More file actions
43 lines (39 loc) · 924 Bytes
/
types.ts
File metadata and controls
43 lines (39 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { EventDetailForUser, UserDetail } from "./types/userEvent";
type EventTypes = "Workshop" | "TechTalk" | "dll";
type EventStatus = "open" | "soon" | "closed";
export type TechEvent = {
id: number;
title: string;
description: string;
author: string;
date: string;
image_event: string;
created_at?: string;
updated_at?: string;
type_event?: EventTypes;
location?: string;
duration?: string;
capacity?: number;
tags?: string[];
registration_link?: string;
speakers?: string[];
status: EventStatus;
price?: number;
};
export type EventInfoType = {
id: number;
icon: React.ReactNode;
};
export type PaymentDetailResponse = {
id?: number;
event_id?: number;
user_id?: string;
order_no: string;
transaction_no: string;
payment_date: string;
status: string;
payment_url: string;
created_at: string;
event_detail: EventDetailForUser;
user_detail: UserDetail;
};