@nomalism-com/types 0.46.13 → 0.46.14
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.
|
@@ -6,6 +6,23 @@ export type ICreateRequest = Pick<IEntity, 'owner_id' | 'document_header_id' | '
|
|
|
6
6
|
export type IResponse = IEntity;
|
|
7
7
|
export type IUpdateSentRequest = Pick<IEntity, 'document_header_id' | 'persona_id'>;
|
|
8
8
|
export type IUpdateSurveyRequest = Pick<IEntity, 'document_header_id' | 'persona_id' | 'data'>;
|
|
9
|
+
export interface ISurveyStatsSummary {
|
|
10
|
+
total: number;
|
|
11
|
+
sent: number;
|
|
12
|
+
pending: number;
|
|
13
|
+
responded: number;
|
|
14
|
+
response_rate: number;
|
|
15
|
+
}
|
|
16
|
+
export interface ISurveyStatsDailyPoint {
|
|
17
|
+
day: string;
|
|
18
|
+
created: number;
|
|
19
|
+
sent: number;
|
|
20
|
+
responded: number;
|
|
21
|
+
}
|
|
22
|
+
export interface ISurveyStatsResponse {
|
|
23
|
+
summary: ISurveyStatsSummary;
|
|
24
|
+
daily: ISurveyStatsDailyPoint[];
|
|
25
|
+
}
|
|
9
26
|
export interface IRepository {
|
|
10
27
|
find(): Promise<IResponse[]>;
|
|
11
28
|
updateSent(data: IUpdateSentRequest): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/types",
|
|
3
3
|
"description": "A nomalism package with all necessary types and validations for developing APIs",
|
|
4
|
-
"version": "0.46.
|
|
4
|
+
"version": "0.46.14",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"prepack": "npm run lint && npm run build"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"joi": "^18.2.
|
|
29
|
+
"joi": "^18.2.3"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@swc/core": "^1.15.41",
|