@kkkarsss/lr-models 1.0.5 → 1.0.6
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.
|
@@ -10,10 +10,11 @@ export type TIncident = {
|
|
|
10
10
|
dateEnd: Temporal.PlainDate;
|
|
11
11
|
timeEnd: Temporal.PlainTime;
|
|
12
12
|
tags: TGUID[];
|
|
13
|
+
averageRating?: number;
|
|
13
14
|
createdAt: Temporal.PlainDateTime;
|
|
14
15
|
updatedAt: Temporal.PlainDateTime;
|
|
15
16
|
};
|
|
16
|
-
export type TCreateIncidentRequestBody = Omit<TIncident, 'id' | 'createdAt' | 'updatedAt' | 'participants'> & {
|
|
17
|
+
export type TCreateIncidentRequestBody = Omit<TIncident, 'id' | 'createdAt' | 'updatedAt' | 'participants' | 'averageRating'> & {
|
|
17
18
|
authorId: TGUID;
|
|
18
19
|
participants?: TGUID[];
|
|
19
20
|
};
|
|
@@ -31,3 +32,15 @@ export type TLinkUserToIncidentRequestBody = {
|
|
|
31
32
|
userId: TGUID;
|
|
32
33
|
approved?: boolean;
|
|
33
34
|
};
|
|
35
|
+
export type TUpdateIncidentRequestBody = Partial<TIncident>;
|
|
36
|
+
export type TUpdateIncidentResponse = TIncident;
|
|
37
|
+
export type TSetIncidentRatingRequestBody = {
|
|
38
|
+
incidentId: TGUID;
|
|
39
|
+
userId: TGUID;
|
|
40
|
+
rating: number;
|
|
41
|
+
};
|
|
42
|
+
export type TSetIncidentRatingResponse = TIncident;
|
|
43
|
+
export type TGetIncidentByIdRequestParams = {
|
|
44
|
+
id: TGUID;
|
|
45
|
+
};
|
|
46
|
+
export type TGetIncidentByIdResponse = TIncident;
|