@otters.ai/common-backend 1.0.85 → 1.0.87
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.
|
@@ -1,19 +1,36 @@
|
|
|
1
|
-
import { ActivityStatus } from "../../enum";
|
|
1
|
+
import { ActivitiesEnum, ActivityStatus } from "../../enum";
|
|
2
2
|
import { ActivityStatusHistory } from "./activityStatusHistoryStruct";
|
|
3
|
-
|
|
3
|
+
import { BaseStruct } from "../baseStruct";
|
|
4
|
+
import { AllUsersRespStruct } from "../user/user";
|
|
5
|
+
interface ActivitiesBaseStruct {
|
|
4
6
|
id?: string;
|
|
7
|
+
ownerId: string;
|
|
5
8
|
name: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
map: BaseStruct;
|
|
10
|
+
goal: BaseStruct;
|
|
11
|
+
description: string;
|
|
12
|
+
attachments: string[];
|
|
13
|
+
companies: string[];
|
|
14
|
+
type: ActivitiesEnum;
|
|
9
15
|
status: ActivityStatus;
|
|
16
|
+
comments: string[];
|
|
10
17
|
currentValue: number;
|
|
11
18
|
targetValue: number;
|
|
12
19
|
progress: number;
|
|
20
|
+
date: string;
|
|
13
21
|
statusHistory: ActivityStatusHistory[];
|
|
14
|
-
ownerId: string;
|
|
15
22
|
createdAt?: string;
|
|
16
23
|
updatedAt?: string;
|
|
17
24
|
}
|
|
18
|
-
export interface
|
|
25
|
+
export interface ActivitiesStruct extends ActivitiesBaseStruct {
|
|
26
|
+
contributors: string[];
|
|
27
|
+
viewers: string[];
|
|
28
|
+
}
|
|
29
|
+
export interface ActivitiesDetailsStruct extends ActivitiesBaseStruct {
|
|
30
|
+
contributors: BaseStruct[];
|
|
31
|
+
viewers: BaseStruct[];
|
|
32
|
+
owner: AllUsersRespStruct;
|
|
33
|
+
}
|
|
34
|
+
export interface ActivityCommonCreationEntryStruct extends Omit<ActivitiesBaseStruct, 'id' | 'createdAt' | 'updatedAt'> {
|
|
19
35
|
}
|
|
36
|
+
export {};
|