heartraite 1.0.230 → 1.0.231
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/sa.enum.d.ts +10 -0
- package/dist/enum/sa.enum.js +13 -1
- package/dist/types/sa.types.d.ts +25 -0
- package/package.json +1 -1
- package/src/enum/sa.enum.ts +12 -0
- package/src/types/sa.types.ts +32 -0
package/dist/enum/sa.enum.d.ts
CHANGED
|
@@ -5,3 +5,13 @@ export declare enum SACategoryID {
|
|
|
5
5
|
LOVE_LANGUAGE = "self_awareness_love_language",
|
|
6
6
|
VALUES = "self_awareness_values"
|
|
7
7
|
}
|
|
8
|
+
export declare enum SASectionPart {
|
|
9
|
+
INSIGHT = "insight",
|
|
10
|
+
REFLECTION = "reflection",
|
|
11
|
+
TIPS = "tips"
|
|
12
|
+
}
|
|
13
|
+
export declare enum SAEvidenceBand {
|
|
14
|
+
FEW = "few",
|
|
15
|
+
FAIRLY_CLEAR = "fairly_clear",
|
|
16
|
+
CLEAR = "clear"
|
|
17
|
+
}
|
package/dist/enum/sa.enum.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SACategoryID = void 0;
|
|
3
|
+
exports.SAEvidenceBand = exports.SASectionPart = exports.SACategoryID = void 0;
|
|
4
4
|
var SACategoryID;
|
|
5
5
|
(function (SACategoryID) {
|
|
6
6
|
SACategoryID["PERSONALITY"] = "self_awareness_personality";
|
|
@@ -9,3 +9,15 @@ var SACategoryID;
|
|
|
9
9
|
SACategoryID["LOVE_LANGUAGE"] = "self_awareness_love_language";
|
|
10
10
|
SACategoryID["VALUES"] = "self_awareness_values";
|
|
11
11
|
})(SACategoryID || (exports.SACategoryID = SACategoryID = {}));
|
|
12
|
+
var SASectionPart;
|
|
13
|
+
(function (SASectionPart) {
|
|
14
|
+
SASectionPart["INSIGHT"] = "insight";
|
|
15
|
+
SASectionPart["REFLECTION"] = "reflection";
|
|
16
|
+
SASectionPart["TIPS"] = "tips";
|
|
17
|
+
})(SASectionPart || (exports.SASectionPart = SASectionPart = {}));
|
|
18
|
+
var SAEvidenceBand;
|
|
19
|
+
(function (SAEvidenceBand) {
|
|
20
|
+
SAEvidenceBand["FEW"] = "few";
|
|
21
|
+
SAEvidenceBand["FAIRLY_CLEAR"] = "fairly_clear";
|
|
22
|
+
SAEvidenceBand["CLEAR"] = "clear";
|
|
23
|
+
})(SAEvidenceBand || (exports.SAEvidenceBand = SAEvidenceBand = {}));
|
package/dist/types/sa.types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LoveLanguageTrait, PersonalityTrait, SAEvidenceBand } from "../enum";
|
|
1
2
|
import { LoveLanguages, Personality } from "./ca.types";
|
|
2
3
|
export type SelfAwareness = {
|
|
3
4
|
userId: string;
|
|
@@ -6,6 +7,8 @@ export type SelfAwareness = {
|
|
|
6
7
|
personality: Personality;
|
|
7
8
|
loveLanguages: LoveLanguages;
|
|
8
9
|
processing?: boolean;
|
|
10
|
+
readState?: SAReadState;
|
|
11
|
+
evidence?: SAEvidence;
|
|
9
12
|
};
|
|
10
13
|
export type SACategory = {
|
|
11
14
|
id: string;
|
|
@@ -17,3 +20,25 @@ export type SACategorySection = {
|
|
|
17
20
|
reflection: string;
|
|
18
21
|
tip: string;
|
|
19
22
|
};
|
|
23
|
+
export type SASectionReadState = {
|
|
24
|
+
insight?: string;
|
|
25
|
+
reflection?: string;
|
|
26
|
+
tips?: string;
|
|
27
|
+
};
|
|
28
|
+
export type SACategoryReadState = {
|
|
29
|
+
sections: Record<string, SASectionReadState>;
|
|
30
|
+
};
|
|
31
|
+
export type SAReadState = {
|
|
32
|
+
firstOpenedAt?: string;
|
|
33
|
+
categories: Record<string, SACategoryReadState>;
|
|
34
|
+
};
|
|
35
|
+
export type SAEvidenceItem = {
|
|
36
|
+
answers: number;
|
|
37
|
+
band: SAEvidenceBand;
|
|
38
|
+
};
|
|
39
|
+
export type SAPersonalityEvidence = Record<PersonalityTrait, SAEvidenceItem>;
|
|
40
|
+
export type SALoveLanguageEvidence = Record<LoveLanguageTrait, SAEvidenceItem>;
|
|
41
|
+
export type SAEvidence = {
|
|
42
|
+
personality: SAPersonalityEvidence;
|
|
43
|
+
loveLanguages?: SALoveLanguageEvidence;
|
|
44
|
+
};
|
package/package.json
CHANGED
package/src/enum/sa.enum.ts
CHANGED
|
@@ -5,3 +5,15 @@ export enum SACategoryID {
|
|
|
5
5
|
LOVE_LANGUAGE = "self_awareness_love_language",
|
|
6
6
|
VALUES = "self_awareness_values",
|
|
7
7
|
}
|
|
8
|
+
|
|
9
|
+
export enum SASectionPart {
|
|
10
|
+
INSIGHT = "insight",
|
|
11
|
+
REFLECTION = "reflection",
|
|
12
|
+
TIPS = "tips",
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export enum SAEvidenceBand {
|
|
16
|
+
FEW = "few",
|
|
17
|
+
FAIRLY_CLEAR = "fairly_clear",
|
|
18
|
+
CLEAR = "clear",
|
|
19
|
+
}
|
package/src/types/sa.types.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LoveLanguageTrait, PersonalityTrait, SAEvidenceBand } from "../enum";
|
|
1
2
|
import { LoveLanguages, Personality } from "./ca.types";
|
|
2
3
|
|
|
3
4
|
export type SelfAwareness = {
|
|
@@ -7,6 +8,8 @@ export type SelfAwareness = {
|
|
|
7
8
|
personality: Personality;
|
|
8
9
|
loveLanguages: LoveLanguages;
|
|
9
10
|
processing?: boolean;
|
|
11
|
+
readState?: SAReadState;
|
|
12
|
+
evidence?: SAEvidence;
|
|
10
13
|
};
|
|
11
14
|
|
|
12
15
|
export type SACategory = {
|
|
@@ -20,3 +23,32 @@ export type SACategorySection = {
|
|
|
20
23
|
reflection: string;
|
|
21
24
|
tip: string;
|
|
22
25
|
};
|
|
26
|
+
|
|
27
|
+
export type SASectionReadState = {
|
|
28
|
+
insight?: string;
|
|
29
|
+
reflection?: string;
|
|
30
|
+
tips?: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export type SACategoryReadState = {
|
|
34
|
+
sections: Record<string, SASectionReadState>;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export type SAReadState = {
|
|
38
|
+
firstOpenedAt?: string;
|
|
39
|
+
categories: Record<string, SACategoryReadState>;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export type SAEvidenceItem = {
|
|
43
|
+
answers: number;
|
|
44
|
+
band: SAEvidenceBand;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export type SAPersonalityEvidence = Record<PersonalityTrait, SAEvidenceItem>;
|
|
48
|
+
|
|
49
|
+
export type SALoveLanguageEvidence = Record<LoveLanguageTrait, SAEvidenceItem>;
|
|
50
|
+
|
|
51
|
+
export type SAEvidence = {
|
|
52
|
+
personality: SAPersonalityEvidence;
|
|
53
|
+
loveLanguages?: SALoveLanguageEvidence;
|
|
54
|
+
};
|