heartraite 1.0.233 → 1.0.234

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.
@@ -10,7 +10,7 @@ import { Message } from "./message.types";
10
10
  import { User } from "./user.types";
11
11
  import { OutgoingLike } from "./like.types";
12
12
  import { CA } from "./ca.types";
13
- import { SelfAwareness, SelfAwarenessV2 } from "./sa.types";
13
+ import { SelfAwareness } from "./sa.types";
14
14
  import { PLSScore } from "./pls.types";
15
15
  import { AdvancedMatch } from "./am.types";
16
16
  import { SystemMessage } from "./system-message.types";
@@ -97,9 +97,6 @@ export type CreateReportResponse = void;
97
97
  export type GetSelfAwarenessReponse = SelfAwareness | {
98
98
  processing: true;
99
99
  };
100
- export type GetSelfAwarenessV2Response = SelfAwarenessV2 | {
101
- processing: true;
102
- };
103
100
  export type GetPLSScoresResponse = PLSScore[];
104
101
  export type RegisterOnboardingResponse = void;
105
102
  export type GetUserResponse = User;
@@ -7,6 +7,13 @@ export type SelfAwareness = {
7
7
  created: string;
8
8
  personality: Personality;
9
9
  loveLanguages: LoveLanguages;
10
+ accessState: SAAccessState;
11
+ items: SAItem[];
12
+ chapters: SAChapters;
13
+ pursuit?: DQPursuit;
14
+ freeChapterId?: SAChapterId;
15
+ freeChapterSwitchUsed: boolean;
16
+ stampedCategories?: SACategory[];
10
17
  processing?: boolean;
11
18
  readState?: SAReadState;
12
19
  evidence?: SAEvidence;
@@ -97,7 +104,6 @@ export type SAChapter = {
97
104
  gap?: SAChapterGap;
98
105
  reflection: string;
99
106
  practice: string;
100
- art9OptIn: boolean;
101
107
  refreshedAt?: string;
102
108
  };
103
109
  export type SAChapters = Partial<Record<SAChapterId, SAChapter>>;
@@ -106,7 +112,6 @@ export type SAEntitlementStamp = {
106
112
  grantedUnder: SAEntitlementGrant;
107
113
  };
108
114
  export type SAEntitlements = Partial<Record<SAItemId, SAEntitlementStamp>>;
109
- export type SAArt9OptIn = Partial<Record<SAItemId, boolean>>;
110
115
  export type SAItem = {
111
116
  itemId: SAItemId;
112
117
  kind: SAItemKind;
@@ -121,29 +126,12 @@ export type SAItem = {
121
126
  stamped?: boolean;
122
127
  pursuable?: boolean;
123
128
  };
124
- export type SelfAwarenessV2 = SelfAwareness & {
125
- accessState: SAAccessState;
126
- items: SAItem[];
127
- chapters: SAChapters;
128
- pursuit?: DQPursuit;
129
- freeChapterId?: SAChapterId;
130
- freeChapterSwitchUsed?: boolean;
131
- art9OptIn?: SAArt9OptIn;
132
- stampedCategories?: SACategory[];
133
- };
134
129
  export type SAClaimFeedbackResponse = {
135
130
  claim: SAClaim;
136
131
  };
137
- export type SASetArt9OptInResponse = {
138
- art9OptIn: SAArt9OptIn;
139
- };
140
132
  export type SAClaimFeedbackRequest = {
141
133
  chapterId: SAChapterId;
142
134
  claimId: string;
143
135
  value: SAClaimFeedbackValue;
144
136
  note?: string;
145
137
  };
146
- export type SASetArt9OptInRequest = {
147
- chapterId: SAChapterId;
148
- optIn: boolean;
149
- };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.233",
3
+ "version": "1.0.234",
4
4
  "description": "Heartraite npm package for common functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,7 +21,7 @@ import { Message } from "./message.types";
21
21
  import { User } from "./user.types";
22
22
  import { OutgoingLike } from "./like.types";
23
23
  import { CA } from "./ca.types";
24
- import { SelfAwareness, SelfAwarenessV2 } from "./sa.types";
24
+ import { SelfAwareness } from "./sa.types";
25
25
  import { PLSScore } from "./pls.types";
26
26
  import { AdvancedMatch } from "./am.types";
27
27
  import { SystemMessage } from "./system-message.types";
@@ -144,10 +144,6 @@ export type CreateReportResponse = void;
144
144
  // sa
145
145
  export type GetSelfAwarenessReponse = SelfAwareness | { processing: true };
146
146
 
147
- export type GetSelfAwarenessV2Response =
148
- | SelfAwarenessV2
149
- | { processing: true };
150
-
151
147
  // score
152
148
  export type GetPLSScoresResponse = PLSScore[];
153
149
 
@@ -21,6 +21,13 @@ export type SelfAwareness = {
21
21
  created: string;
22
22
  personality: Personality;
23
23
  loveLanguages: LoveLanguages;
24
+ accessState: SAAccessState;
25
+ items: SAItem[];
26
+ chapters: SAChapters;
27
+ pursuit?: DQPursuit;
28
+ freeChapterId?: SAChapterId;
29
+ freeChapterSwitchUsed: boolean;
30
+ stampedCategories?: SACategory[];
24
31
  processing?: boolean;
25
32
  readState?: SAReadState;
26
33
  evidence?: SAEvidence;
@@ -129,7 +136,6 @@ export type SAChapter = {
129
136
  gap?: SAChapterGap;
130
137
  reflection: string;
131
138
  practice: string;
132
- art9OptIn: boolean;
133
139
  refreshedAt?: string;
134
140
  };
135
141
 
@@ -142,8 +148,6 @@ export type SAEntitlementStamp = {
142
148
 
143
149
  export type SAEntitlements = Partial<Record<SAItemId, SAEntitlementStamp>>;
144
150
 
145
- export type SAArt9OptIn = Partial<Record<SAItemId, boolean>>;
146
-
147
151
  export type SAItem = {
148
152
  itemId: SAItemId;
149
153
  kind: SAItemKind;
@@ -159,33 +163,13 @@ export type SAItem = {
159
163
  pursuable?: boolean;
160
164
  };
161
165
 
162
- export type SelfAwarenessV2 = SelfAwareness & {
163
- accessState: SAAccessState;
164
- items: SAItem[];
165
- chapters: SAChapters;
166
- pursuit?: DQPursuit;
167
- freeChapterId?: SAChapterId;
168
- freeChapterSwitchUsed?: boolean;
169
- art9OptIn?: SAArt9OptIn;
170
- stampedCategories?: SACategory[];
171
- };
172
-
173
166
  export type SAClaimFeedbackResponse = {
174
167
  claim: SAClaim;
175
168
  };
176
169
 
177
- export type SASetArt9OptInResponse = {
178
- art9OptIn: SAArt9OptIn;
179
- };
180
-
181
170
  export type SAClaimFeedbackRequest = {
182
171
  chapterId: SAChapterId;
183
172
  claimId: string;
184
173
  value: SAClaimFeedbackValue;
185
174
  note?: string;
186
175
  };
187
-
188
- export type SASetArt9OptInRequest = {
189
- chapterId: SAChapterId;
190
- optIn: boolean;
191
- };