heartraite 1.0.229 → 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.
@@ -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
+ }
@@ -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 = {}));
@@ -5,6 +5,7 @@ export type Report = {
5
5
  reportedUserId: string;
6
6
  reason: ReportReason;
7
7
  description?: string;
8
+ conversationId?: string;
8
9
  status: ReportStatus;
9
10
  resolvedBy?: string;
10
11
  created: string;
@@ -215,6 +215,7 @@ export type CreateReportRequest = {
215
215
  reportedUserId: string;
216
216
  reason: ReportReason;
217
217
  description?: string;
218
+ conversationId?: string;
218
219
  };
219
220
  export type RegisterOnboardingRequest = {
220
221
  firstName: string;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.229",
3
+ "version": "1.0.231",
4
4
  "description": "Heartraite npm package for common functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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
+ }
@@ -6,6 +6,7 @@ export type Report = {
6
6
  reportedUserId: string;
7
7
  reason: ReportReason;
8
8
  description?: string;
9
+ conversationId?: string;
9
10
  status: ReportStatus;
10
11
  resolvedBy?: string;
11
12
  created: string;
@@ -244,6 +244,7 @@ export type CreateReportRequest = {
244
244
  reportedUserId: string;
245
245
  reason: ReportReason;
246
246
  description?: string;
247
+ conversationId?: string;
247
248
  };
248
249
 
249
250
  // user
@@ -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
+ };