-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoffering.ts
58 lines (54 loc) · 1.06 KB
/
offering.ts
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
type CreditRange = {
min: number;
max: number;
avg?: number;
};
export type CreateOffering = {
name: string;
image: string[];
offeringDescription: string;
creditRange: CreditRange;
};
export type UpateOffering = {
offeringId: string;
} & Partial<CreateOffering>;
type User = {
id: string;
userName: string;
userType: string;
profileImage: string;
};
type counts = {
like: number;
};
export type OfferingData = {
owner: User;
name: string;
image: string[];
offeringDescription: string;
creditRange: CreditRange;
completeOffers: number;
isActive: boolean;
createdAt: string;
updatedAt: string;
offeringId: string;
pendingOffers?: number;
offerStatus?: null | string;
counts?: counts;
isUserLike?: boolean;
};
export type Offer = {
offeringId: string;
offerId: string;
user: User;
credit: number;
isReschedule: boolean;
offerDate: number;
offerDescription: string | null;
status: string;
message: string | null;
isActiveNotification: boolean;
createdAt: string;
updatedAt: string;
offering: OfferingData;
};