heartraite 1.0.21 → 1.0.23
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/dist/enum/ca.enum.d.ts +6 -0
- package/dist/enum/ca.enum.js +8 -1
- package/dist/enum/match.enum.d.ts +0 -6
- package/dist/enum/match.enum.js +1 -8
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/types/ca.types.d.ts +7 -0
- package/dist/types/response.types.d.ts +1 -1
- package/dist/types/user.types.d.ts +2 -2
- package/package.json +1 -1
- package/src/enum/ca.enum.ts +7 -0
- package/src/enum/match.enum.ts +0 -7
- package/src/index.ts +0 -1
- package/src/types/ca.types.ts +9 -0
- package/src/types/response.types.ts +1 -1
- package/src/types/user.types.ts +2 -7
package/dist/enum/ca.enum.d.ts
CHANGED
package/dist/enum/ca.enum.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CASkipReason = void 0;
|
|
3
|
+
exports.CAStatus = exports.CASkipReason = void 0;
|
|
4
4
|
var CASkipReason;
|
|
5
5
|
(function (CASkipReason) {
|
|
6
6
|
CASkipReason["NOT_RELEVANT"] = "not_relevant";
|
|
@@ -8,3 +8,10 @@ var CASkipReason;
|
|
|
8
8
|
CASkipReason["DONT_KNOW"] = "dont_know";
|
|
9
9
|
CASkipReason["OTHER_REASON"] = "other_reason";
|
|
10
10
|
})(CASkipReason || (exports.CASkipReason = CASkipReason = {}));
|
|
11
|
+
var CAStatus;
|
|
12
|
+
(function (CAStatus) {
|
|
13
|
+
CAStatus["NOT_STARTED"] = "not started";
|
|
14
|
+
CAStatus["IN_PROGRESS"] = "in progress";
|
|
15
|
+
CAStatus["ERROR"] = "error";
|
|
16
|
+
CAStatus["SUCCESS"] = "success";
|
|
17
|
+
})(CAStatus || (exports.CAStatus = CAStatus = {}));
|
package/dist/enum/match.enum.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.AdvancedMatchStatus = void 0;
|
|
4
4
|
var AdvancedMatchStatus;
|
|
5
5
|
(function (AdvancedMatchStatus) {
|
|
6
6
|
AdvancedMatchStatus["INITIAL"] = "initial";
|
|
@@ -8,10 +8,3 @@ var AdvancedMatchStatus;
|
|
|
8
8
|
AdvancedMatchStatus["ERROR"] = "error";
|
|
9
9
|
AdvancedMatchStatus["SUCCESS"] = "success";
|
|
10
10
|
})(AdvancedMatchStatus || (exports.AdvancedMatchStatus = AdvancedMatchStatus = {}));
|
|
11
|
-
var CACompletionStatus;
|
|
12
|
-
(function (CACompletionStatus) {
|
|
13
|
-
CACompletionStatus["NOT_STARTED"] = "not started";
|
|
14
|
-
CACompletionStatus["IN_PROGRESS"] = "in progress";
|
|
15
|
-
CACompletionStatus["ERROR"] = "error";
|
|
16
|
-
CACompletionStatus["SUCCESS"] = "success";
|
|
17
|
-
})(CACompletionStatus || (exports.CACompletionStatus = CACompletionStatus = {}));
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/types/ca.types.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Answer, CategoryEvaluation } from "./submission.types";
|
|
2
2
|
type QuestionId = string;
|
|
3
3
|
type CategoryId = string;
|
|
4
|
+
type ScoreAmount = number;
|
|
5
|
+
export type Score = Record<QuestionId, ScoreAmount>;
|
|
4
6
|
export type CA = {
|
|
5
7
|
created: string;
|
|
6
8
|
userId: string;
|
|
@@ -8,4 +10,9 @@ export type CA = {
|
|
|
8
10
|
answers: Record<QuestionId, Answer>;
|
|
9
11
|
categoryEvaluations?: Record<CategoryId, CategoryEvaluation>;
|
|
10
12
|
};
|
|
13
|
+
export type CAScore = {
|
|
14
|
+
created: string;
|
|
15
|
+
userId: string;
|
|
16
|
+
scores: Score;
|
|
17
|
+
};
|
|
11
18
|
export {};
|
|
@@ -43,7 +43,7 @@ export type GetLikesResponse = Like[];
|
|
|
43
43
|
export type HandleLikeSeenResponse = void;
|
|
44
44
|
export type CreatePLSInputResponse = void;
|
|
45
45
|
export type CreatePLSAssessmentResponse = Assessment;
|
|
46
|
-
export type GetPLSAssessmentResponse =
|
|
46
|
+
export type GetPLSAssessmentResponse = FullAssessment;
|
|
47
47
|
export type GetPLSAssessmentsResponse = FullAssessment[];
|
|
48
48
|
export type CreatePLSSubmissionResponse = Submission;
|
|
49
49
|
export type GetPLSSubmissionResponse = Submission;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CAStatus, Gender, NotificationSetting, UserLanguage } from "../enum";
|
|
2
2
|
export type User = {
|
|
3
3
|
id: string;
|
|
4
4
|
email: string;
|
|
@@ -11,7 +11,7 @@ export type User = {
|
|
|
11
11
|
status: UserStatus;
|
|
12
12
|
};
|
|
13
13
|
export type UserStatus = {
|
|
14
|
-
|
|
14
|
+
caStatus: CAStatus;
|
|
15
15
|
};
|
|
16
16
|
export type UserSettings = {
|
|
17
17
|
language: UserLanguage;
|
package/package.json
CHANGED
package/src/enum/ca.enum.ts
CHANGED
package/src/enum/match.enum.ts
CHANGED
package/src/index.ts
CHANGED
package/src/types/ca.types.ts
CHANGED
|
@@ -2,6 +2,9 @@ import { Answer, CategoryEvaluation } from "./submission.types";
|
|
|
2
2
|
|
|
3
3
|
type QuestionId = string;
|
|
4
4
|
type CategoryId = string;
|
|
5
|
+
type ScoreAmount = number;
|
|
6
|
+
|
|
7
|
+
export type Score = Record<QuestionId, ScoreAmount>;
|
|
5
8
|
|
|
6
9
|
export type CA = {
|
|
7
10
|
created: string;
|
|
@@ -10,3 +13,9 @@ export type CA = {
|
|
|
10
13
|
answers: Record<QuestionId, Answer>;
|
|
11
14
|
categoryEvaluations?: Record<CategoryId, CategoryEvaluation>;
|
|
12
15
|
};
|
|
16
|
+
|
|
17
|
+
export type CAScore = {
|
|
18
|
+
created: string;
|
|
19
|
+
userId: string;
|
|
20
|
+
scores: Score;
|
|
21
|
+
};
|
|
@@ -56,7 +56,7 @@ export type HandleLikeSeenResponse = void;
|
|
|
56
56
|
// pls
|
|
57
57
|
export type CreatePLSInputResponse = void;
|
|
58
58
|
export type CreatePLSAssessmentResponse = Assessment;
|
|
59
|
-
export type GetPLSAssessmentResponse =
|
|
59
|
+
export type GetPLSAssessmentResponse = FullAssessment;
|
|
60
60
|
export type GetPLSAssessmentsResponse = FullAssessment[];
|
|
61
61
|
export type CreatePLSSubmissionResponse = Submission;
|
|
62
62
|
export type GetPLSSubmissionResponse = Submission;
|
package/src/types/user.types.ts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CACompletionStatus,
|
|
3
|
-
Gender,
|
|
4
|
-
NotificationSetting,
|
|
5
|
-
UserLanguage,
|
|
6
|
-
} from "../enum";
|
|
1
|
+
import { CAStatus, Gender, NotificationSetting, UserLanguage } from "../enum";
|
|
7
2
|
|
|
8
3
|
export type User = {
|
|
9
4
|
id: string;
|
|
@@ -18,7 +13,7 @@ export type User = {
|
|
|
18
13
|
};
|
|
19
14
|
|
|
20
15
|
export type UserStatus = {
|
|
21
|
-
|
|
16
|
+
caStatus: CAStatus;
|
|
22
17
|
};
|
|
23
18
|
|
|
24
19
|
export type UserSettings = {
|