@otters.ai/common-backend 1.0.88 → 1.0.91
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.
- package/build/interface/activity/activityCommonStruct.d.ts +0 -2
- package/build/interface/activity/activityCommonStruct.js +1 -0
- package/build/interface/activity/activityCreatedStruct.d.ts +2 -2
- package/build/interface/activity/activityUpdatedStruct.d.ts +2 -2
- package/build/interface/goal/goalCreatedStruct.d.ts +28 -8
- package/package.json +1 -1
|
@@ -31,6 +31,4 @@ export interface ActivitiesDetailsStruct extends ActivitiesBaseStruct {
|
|
|
31
31
|
viewers: BaseStruct[];
|
|
32
32
|
owner: AllUsersRespStruct;
|
|
33
33
|
}
|
|
34
|
-
export interface ActivityCommonCreationEntryStruct extends Omit<ActivitiesStruct, 'id' | 'createdAt' | 'updatedAt'> {
|
|
35
|
-
}
|
|
36
34
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Subjects } from "../../enum";
|
|
2
|
-
import {
|
|
2
|
+
import { ActivitiesStruct } from "./activityCommonStruct";
|
|
3
3
|
export interface ActivityCreatedStruct {
|
|
4
4
|
subject: Subjects.ActivityCreated;
|
|
5
|
-
data:
|
|
5
|
+
data: ActivitiesStruct;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Subjects } from "../../enum";
|
|
2
|
-
import {
|
|
2
|
+
import { ActivitiesStruct } from "./activityCommonStruct";
|
|
3
3
|
export interface ActivityUpdatedStruct {
|
|
4
4
|
subject: Subjects.ActivityUpdated;
|
|
5
|
-
data:
|
|
5
|
+
data: ActivitiesStruct;
|
|
6
6
|
}
|
|
@@ -1,11 +1,31 @@
|
|
|
1
|
-
import { Subjects } from "../../enum";
|
|
1
|
+
import { GoalCategory, Subjects } from "../../enum";
|
|
2
|
+
import { GoalActivityDetails } from "./goalActivityDetailsStruct";
|
|
3
|
+
import { AllUsersRespStruct } from "../user/user";
|
|
4
|
+
interface GoalBaseStruct {
|
|
5
|
+
id?: string;
|
|
6
|
+
ownerId: string;
|
|
7
|
+
name: string;
|
|
8
|
+
mapId: string;
|
|
9
|
+
description: string;
|
|
10
|
+
viewers: string[];
|
|
11
|
+
contributors: string[];
|
|
12
|
+
attachments: string[];
|
|
13
|
+
comments: string[];
|
|
14
|
+
category: GoalCategory;
|
|
15
|
+
progress: number;
|
|
16
|
+
companies: string[];
|
|
17
|
+
createdAt?: string;
|
|
18
|
+
updatedAt?: string;
|
|
19
|
+
}
|
|
2
20
|
export interface GoalCreatedStruct {
|
|
3
21
|
subject: Subjects.GoalCreated;
|
|
4
|
-
data:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
22
|
+
data: GoalStruct;
|
|
23
|
+
}
|
|
24
|
+
export interface GoalStruct extends GoalBaseStruct {
|
|
25
|
+
activities: string[];
|
|
26
|
+
}
|
|
27
|
+
export interface GoalActivitiesDetailsStruct extends GoalBaseStruct {
|
|
28
|
+
activities: GoalActivityDetails[];
|
|
29
|
+
owner: AllUsersRespStruct;
|
|
11
30
|
}
|
|
31
|
+
export {};
|