heartraite 1.0.233 → 1.0.235
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/dq.enum.d.ts +0 -9
- package/dist/enum/dq.enum.js +1 -12
- package/dist/enum/sa.enum.d.ts +1 -16
- package/dist/enum/sa.enum.js +1 -19
- package/dist/types/dq.types.d.ts +8 -12
- package/dist/types/response.types.d.ts +1 -4
- package/dist/types/sa.types.d.ts +21 -74
- package/package.json +1 -1
- package/src/enum/dq.enum.ts +0 -11
- package/src/enum/sa.enum.ts +0 -18
- package/src/types/dq.types.ts +7 -13
- package/src/types/response.types.ts +1 -5
- package/src/types/sa.types.ts +20 -87
package/dist/enum/dq.enum.d.ts
CHANGED
|
@@ -1,18 +1,9 @@
|
|
|
1
|
-
export declare enum DQPursuitPhase {
|
|
2
|
-
FIRST_READING = "first_reading",
|
|
3
|
-
FULL = "full"
|
|
4
|
-
}
|
|
5
1
|
export declare enum DQPursuitPausedReason {
|
|
6
2
|
BANK = "bank",
|
|
7
3
|
COMPLETE = "complete",
|
|
8
4
|
USER = "user",
|
|
9
5
|
MEMBERSHIP = "membership"
|
|
10
6
|
}
|
|
11
|
-
export declare enum DQReflectionKind {
|
|
12
|
-
LEARNING = "learning",
|
|
13
|
-
DIRECTION = "direction",
|
|
14
|
-
NONE = "none"
|
|
15
|
-
}
|
|
16
7
|
export declare enum DQSetPursuitOutcome {
|
|
17
8
|
STARTED = "started",
|
|
18
9
|
CLEARED = "cleared",
|
package/dist/enum/dq.enum.js
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DQSetPursuitOutcome = exports.
|
|
4
|
-
var DQPursuitPhase;
|
|
5
|
-
(function (DQPursuitPhase) {
|
|
6
|
-
DQPursuitPhase["FIRST_READING"] = "first_reading";
|
|
7
|
-
DQPursuitPhase["FULL"] = "full";
|
|
8
|
-
})(DQPursuitPhase || (exports.DQPursuitPhase = DQPursuitPhase = {}));
|
|
3
|
+
exports.DQSetPursuitOutcome = exports.DQPursuitPausedReason = void 0;
|
|
9
4
|
var DQPursuitPausedReason;
|
|
10
5
|
(function (DQPursuitPausedReason) {
|
|
11
6
|
DQPursuitPausedReason["BANK"] = "bank";
|
|
@@ -13,12 +8,6 @@ var DQPursuitPausedReason;
|
|
|
13
8
|
DQPursuitPausedReason["USER"] = "user";
|
|
14
9
|
DQPursuitPausedReason["MEMBERSHIP"] = "membership";
|
|
15
10
|
})(DQPursuitPausedReason || (exports.DQPursuitPausedReason = DQPursuitPausedReason = {}));
|
|
16
|
-
var DQReflectionKind;
|
|
17
|
-
(function (DQReflectionKind) {
|
|
18
|
-
DQReflectionKind["LEARNING"] = "learning";
|
|
19
|
-
DQReflectionKind["DIRECTION"] = "direction";
|
|
20
|
-
DQReflectionKind["NONE"] = "none";
|
|
21
|
-
})(DQReflectionKind || (exports.DQReflectionKind = DQReflectionKind = {}));
|
|
22
11
|
var DQSetPursuitOutcome;
|
|
23
12
|
(function (DQSetPursuitOutcome) {
|
|
24
13
|
DQSetPursuitOutcome["STARTED"] = "started";
|
package/dist/enum/sa.enum.d.ts
CHANGED
|
@@ -26,8 +26,7 @@ export declare enum SAChapterId {
|
|
|
26
26
|
}
|
|
27
27
|
export declare enum SAItemKind {
|
|
28
28
|
CATEGORY = "category",
|
|
29
|
-
CHAPTER = "chapter"
|
|
30
|
-
LETTER = "letter"
|
|
29
|
+
CHAPTER = "chapter"
|
|
31
30
|
}
|
|
32
31
|
export declare enum SAItemAccess {
|
|
33
32
|
FULL = "full",
|
|
@@ -46,17 +45,3 @@ export declare enum SAEntitlementGrant {
|
|
|
46
45
|
PAYONCE = "payonce",
|
|
47
46
|
GRANT = "grant"
|
|
48
47
|
}
|
|
49
|
-
export declare enum SAChapterStage {
|
|
50
|
-
FIRST_READING = "first_reading",
|
|
51
|
-
FULL = "full"
|
|
52
|
-
}
|
|
53
|
-
export declare enum SAClaimValence {
|
|
54
|
-
NEUTRAL = "neutral",
|
|
55
|
-
STRENGTH = "strength",
|
|
56
|
-
COST = "cost"
|
|
57
|
-
}
|
|
58
|
-
export declare enum SAClaimFeedbackValue {
|
|
59
|
-
YES = "yes",
|
|
60
|
-
PARTIAL = "partial",
|
|
61
|
-
NO = "no"
|
|
62
|
-
}
|
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.
|
|
3
|
+
exports.SAEntitlementGrant = exports.SAAccessState = exports.SAItemAccess = exports.SAItemKind = exports.SAChapterId = exports.SAEvidenceBand = exports.SASectionPart = exports.SACategoryID = void 0;
|
|
4
4
|
var SACategoryID;
|
|
5
5
|
(function (SACategoryID) {
|
|
6
6
|
SACategoryID["PERSONALITY"] = "self_awareness_personality";
|
|
@@ -35,7 +35,6 @@ var SAItemKind;
|
|
|
35
35
|
(function (SAItemKind) {
|
|
36
36
|
SAItemKind["CATEGORY"] = "category";
|
|
37
37
|
SAItemKind["CHAPTER"] = "chapter";
|
|
38
|
-
SAItemKind["LETTER"] = "letter";
|
|
39
38
|
})(SAItemKind || (exports.SAItemKind = SAItemKind = {}));
|
|
40
39
|
var SAItemAccess;
|
|
41
40
|
(function (SAItemAccess) {
|
|
@@ -57,20 +56,3 @@ var SAEntitlementGrant;
|
|
|
57
56
|
SAEntitlementGrant["PAYONCE"] = "payonce";
|
|
58
57
|
SAEntitlementGrant["GRANT"] = "grant";
|
|
59
58
|
})(SAEntitlementGrant || (exports.SAEntitlementGrant = SAEntitlementGrant = {}));
|
|
60
|
-
var SAChapterStage;
|
|
61
|
-
(function (SAChapterStage) {
|
|
62
|
-
SAChapterStage["FIRST_READING"] = "first_reading";
|
|
63
|
-
SAChapterStage["FULL"] = "full";
|
|
64
|
-
})(SAChapterStage || (exports.SAChapterStage = SAChapterStage = {}));
|
|
65
|
-
var SAClaimValence;
|
|
66
|
-
(function (SAClaimValence) {
|
|
67
|
-
SAClaimValence["NEUTRAL"] = "neutral";
|
|
68
|
-
SAClaimValence["STRENGTH"] = "strength";
|
|
69
|
-
SAClaimValence["COST"] = "cost";
|
|
70
|
-
})(SAClaimValence || (exports.SAClaimValence = SAClaimValence = {}));
|
|
71
|
-
var SAClaimFeedbackValue;
|
|
72
|
-
(function (SAClaimFeedbackValue) {
|
|
73
|
-
SAClaimFeedbackValue["YES"] = "yes";
|
|
74
|
-
SAClaimFeedbackValue["PARTIAL"] = "partial";
|
|
75
|
-
SAClaimFeedbackValue["NO"] = "no";
|
|
76
|
-
})(SAClaimFeedbackValue || (exports.SAClaimFeedbackValue = SAClaimFeedbackValue = {}));
|
package/dist/types/dq.types.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Internal backend details (psychometrics, scoring, etc.) belong in backend only.
|
|
6
6
|
*/
|
|
7
7
|
import { Locale } from "../enum/localization.enum";
|
|
8
|
-
import { DQPursuitPausedReason,
|
|
9
|
-
import { SAChapterId
|
|
8
|
+
import { DQPursuitPausedReason, DQSetPursuitOutcome } from "../enum/dq.enum";
|
|
9
|
+
import { SAChapterId } from "../enum/sa.enum";
|
|
10
10
|
import type { SAReadiness } from "./sa.types";
|
|
11
11
|
/**
|
|
12
12
|
* DQ locale codes for question content
|
|
@@ -136,21 +136,17 @@ export interface GetQuestionResponse {
|
|
|
136
136
|
}
|
|
137
137
|
export interface DQPursuit {
|
|
138
138
|
chapterId: SAChapterId;
|
|
139
|
-
phase: DQPursuitPhase;
|
|
140
139
|
startedAt: string;
|
|
141
140
|
pausedReason?: DQPursuitPausedReason;
|
|
142
141
|
readiness?: SAReadiness;
|
|
143
142
|
}
|
|
144
|
-
export interface DQReflection {
|
|
145
|
-
kind: DQReflectionKind;
|
|
146
|
-
text: string;
|
|
147
|
-
traitId?: string;
|
|
148
|
-
traitName?: string;
|
|
149
|
-
answersOnTrait?: number;
|
|
150
|
-
}
|
|
151
143
|
export interface DQChapterEvent {
|
|
152
144
|
chapterId: SAChapterId;
|
|
153
|
-
|
|
145
|
+
}
|
|
146
|
+
export interface DQChapterProgress {
|
|
147
|
+
chapterId: SAChapterId;
|
|
148
|
+
answersLeft: number;
|
|
149
|
+
ready: boolean;
|
|
154
150
|
}
|
|
155
151
|
export interface DQSubmitAnswerResponse {
|
|
156
152
|
answerId: string;
|
|
@@ -159,7 +155,7 @@ export interface DQSubmitAnswerResponse {
|
|
|
159
155
|
quotaExhausted: boolean;
|
|
160
156
|
quotaResetsAt?: string;
|
|
161
157
|
pursuit?: DQPursuit;
|
|
162
|
-
|
|
158
|
+
chapterProgress?: DQChapterProgress;
|
|
163
159
|
chapterEvent?: DQChapterEvent;
|
|
164
160
|
}
|
|
165
161
|
export interface DQSetPursuitRequest {
|
|
@@ -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
|
|
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;
|
package/dist/types/sa.types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LoveLanguageTrait, PersonalityTrait, SAAccessState, SACategoryID, SAChapterId,
|
|
1
|
+
import { LoveLanguageTrait, PersonalityTrait, SAAccessState, SACategoryID, SAChapterId, SAEntitlementGrant, SAEvidenceBand, SAItemAccess, SAItemKind } from "../enum";
|
|
2
2
|
import { LoveLanguages, Personality } from "./ca.types";
|
|
3
3
|
import type { DQPursuit } from "./dq.types";
|
|
4
4
|
export type SelfAwareness = {
|
|
@@ -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;
|
|
@@ -44,61 +51,28 @@ export type SAEvidence = {
|
|
|
44
51
|
personality: SAPersonalityEvidence;
|
|
45
52
|
loveLanguages?: SALoveLanguageEvidence;
|
|
46
53
|
};
|
|
47
|
-
export type
|
|
48
|
-
export type SAItemId = SACategoryID | SAChapterId | SALetterItemId;
|
|
49
|
-
export type SATraitRef = {
|
|
50
|
-
traitId: string;
|
|
51
|
-
name: string;
|
|
52
|
-
};
|
|
54
|
+
export type SAItemId = SACategoryID | SAChapterId;
|
|
53
55
|
export type SAReadiness = {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
+
ready: boolean;
|
|
57
|
+
answersLeft: number;
|
|
58
|
+
citableTraits: number;
|
|
56
59
|
traitsTotal: number;
|
|
57
|
-
firstReadingReady: boolean;
|
|
58
|
-
fullReady: boolean;
|
|
59
|
-
writtenParagraphs: number;
|
|
60
|
-
nextTrait?: SATraitRef;
|
|
61
|
-
answersToNextParagraph?: number;
|
|
62
60
|
};
|
|
63
|
-
export type
|
|
64
|
-
|
|
65
|
-
traitsAt3: number;
|
|
66
|
-
traitsTotal: number;
|
|
67
|
-
};
|
|
68
|
-
export type SAClaimFeedback = {
|
|
69
|
-
value: SAClaimFeedbackValue;
|
|
70
|
-
note?: string;
|
|
71
|
-
at: string;
|
|
72
|
-
};
|
|
73
|
-
export type SAClaim = {
|
|
74
|
-
id: string;
|
|
61
|
+
export type SAChapterObservation = {
|
|
62
|
+
theme: string;
|
|
75
63
|
text: string;
|
|
76
|
-
basis: string[];
|
|
77
64
|
band: SAEvidenceBand;
|
|
78
|
-
valence: SAClaimValence;
|
|
79
|
-
feedback?: SAClaimFeedback;
|
|
80
|
-
rewrittenAt?: string;
|
|
81
|
-
retired?: boolean;
|
|
82
|
-
};
|
|
83
|
-
export type SAChapterGap = {
|
|
84
|
-
text: string;
|
|
85
|
-
traitId: string;
|
|
86
|
-
answersToClose: number;
|
|
87
65
|
};
|
|
88
66
|
export type SAChapter = {
|
|
89
67
|
chapterId: SAChapterId;
|
|
90
|
-
version: number;
|
|
91
|
-
stage: SAChapterStage;
|
|
92
68
|
generatedAt: string;
|
|
93
|
-
badge: SAChapterBadge;
|
|
94
|
-
framingId: string;
|
|
95
69
|
framing?: string;
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
70
|
+
headline: string;
|
|
71
|
+
observations: SAChapterObservation[];
|
|
72
|
+
scene: string;
|
|
73
|
+
tip: string;
|
|
74
|
+
question: string;
|
|
75
|
+
answers: number;
|
|
102
76
|
};
|
|
103
77
|
export type SAChapters = Partial<Record<SAChapterId, SAChapter>>;
|
|
104
78
|
export type SAEntitlementStamp = {
|
|
@@ -106,7 +80,6 @@ export type SAEntitlementStamp = {
|
|
|
106
80
|
grantedUnder: SAEntitlementGrant;
|
|
107
81
|
};
|
|
108
82
|
export type SAEntitlements = Partial<Record<SAItemId, SAEntitlementStamp>>;
|
|
109
|
-
export type SAArt9OptIn = Partial<Record<SAItemId, boolean>>;
|
|
110
83
|
export type SAItem = {
|
|
111
84
|
itemId: SAItemId;
|
|
112
85
|
kind: SAItemKind;
|
|
@@ -116,34 +89,8 @@ export type SAItem = {
|
|
|
116
89
|
framingId?: string;
|
|
117
90
|
framing?: string;
|
|
118
91
|
readiness?: SAReadiness;
|
|
119
|
-
stage?: SAChapterStage;
|
|
120
92
|
writing?: boolean;
|
|
93
|
+
writeFailed?: boolean;
|
|
121
94
|
stamped?: boolean;
|
|
122
95
|
pursuable?: boolean;
|
|
123
96
|
};
|
|
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
|
-
export type SAClaimFeedbackResponse = {
|
|
135
|
-
claim: SAClaim;
|
|
136
|
-
};
|
|
137
|
-
export type SASetArt9OptInResponse = {
|
|
138
|
-
art9OptIn: SAArt9OptIn;
|
|
139
|
-
};
|
|
140
|
-
export type SAClaimFeedbackRequest = {
|
|
141
|
-
chapterId: SAChapterId;
|
|
142
|
-
claimId: string;
|
|
143
|
-
value: SAClaimFeedbackValue;
|
|
144
|
-
note?: string;
|
|
145
|
-
};
|
|
146
|
-
export type SASetArt9OptInRequest = {
|
|
147
|
-
chapterId: SAChapterId;
|
|
148
|
-
optIn: boolean;
|
|
149
|
-
};
|
package/package.json
CHANGED
package/src/enum/dq.enum.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
export enum DQPursuitPhase {
|
|
2
|
-
FIRST_READING = "first_reading",
|
|
3
|
-
FULL = "full",
|
|
4
|
-
}
|
|
5
|
-
|
|
6
1
|
export enum DQPursuitPausedReason {
|
|
7
2
|
BANK = "bank",
|
|
8
3
|
COMPLETE = "complete",
|
|
@@ -10,12 +5,6 @@ export enum DQPursuitPausedReason {
|
|
|
10
5
|
MEMBERSHIP = "membership",
|
|
11
6
|
}
|
|
12
7
|
|
|
13
|
-
export enum DQReflectionKind {
|
|
14
|
-
LEARNING = "learning",
|
|
15
|
-
DIRECTION = "direction",
|
|
16
|
-
NONE = "none",
|
|
17
|
-
}
|
|
18
|
-
|
|
19
8
|
export enum DQSetPursuitOutcome {
|
|
20
9
|
STARTED = "started",
|
|
21
10
|
CLEARED = "cleared",
|
package/src/enum/sa.enum.ts
CHANGED
|
@@ -31,7 +31,6 @@ export enum SAChapterId {
|
|
|
31
31
|
export enum SAItemKind {
|
|
32
32
|
CATEGORY = "category",
|
|
33
33
|
CHAPTER = "chapter",
|
|
34
|
-
LETTER = "letter",
|
|
35
34
|
}
|
|
36
35
|
|
|
37
36
|
export enum SAItemAccess {
|
|
@@ -53,20 +52,3 @@ export enum SAEntitlementGrant {
|
|
|
53
52
|
PAYONCE = "payonce",
|
|
54
53
|
GRANT = "grant",
|
|
55
54
|
}
|
|
56
|
-
|
|
57
|
-
export enum SAChapterStage {
|
|
58
|
-
FIRST_READING = "first_reading",
|
|
59
|
-
FULL = "full",
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export enum SAClaimValence {
|
|
63
|
-
NEUTRAL = "neutral",
|
|
64
|
-
STRENGTH = "strength",
|
|
65
|
-
COST = "cost",
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export enum SAClaimFeedbackValue {
|
|
69
|
-
YES = "yes",
|
|
70
|
-
PARTIAL = "partial",
|
|
71
|
-
NO = "no",
|
|
72
|
-
}
|
package/src/types/dq.types.ts
CHANGED
|
@@ -8,11 +8,9 @@
|
|
|
8
8
|
import { Locale } from "../enum/localization.enum";
|
|
9
9
|
import {
|
|
10
10
|
DQPursuitPausedReason,
|
|
11
|
-
DQPursuitPhase,
|
|
12
|
-
DQReflectionKind,
|
|
13
11
|
DQSetPursuitOutcome,
|
|
14
12
|
} from "../enum/dq.enum";
|
|
15
|
-
import { SAChapterId
|
|
13
|
+
import { SAChapterId } from "../enum/sa.enum";
|
|
16
14
|
import type { SAReadiness } from "./sa.types";
|
|
17
15
|
|
|
18
16
|
// ========== BASIC TYPES ==========
|
|
@@ -184,23 +182,19 @@ export interface GetQuestionResponse {
|
|
|
184
182
|
|
|
185
183
|
export interface DQPursuit {
|
|
186
184
|
chapterId: SAChapterId;
|
|
187
|
-
phase: DQPursuitPhase;
|
|
188
185
|
startedAt: string;
|
|
189
186
|
pausedReason?: DQPursuitPausedReason;
|
|
190
187
|
readiness?: SAReadiness;
|
|
191
188
|
}
|
|
192
189
|
|
|
193
|
-
export interface
|
|
194
|
-
|
|
195
|
-
text: string;
|
|
196
|
-
traitId?: string;
|
|
197
|
-
traitName?: string;
|
|
198
|
-
answersOnTrait?: number;
|
|
190
|
+
export interface DQChapterEvent {
|
|
191
|
+
chapterId: SAChapterId;
|
|
199
192
|
}
|
|
200
193
|
|
|
201
|
-
export interface
|
|
194
|
+
export interface DQChapterProgress {
|
|
202
195
|
chapterId: SAChapterId;
|
|
203
|
-
|
|
196
|
+
answersLeft: number;
|
|
197
|
+
ready: boolean;
|
|
204
198
|
}
|
|
205
199
|
|
|
206
200
|
export interface DQSubmitAnswerResponse {
|
|
@@ -210,7 +204,7 @@ export interface DQSubmitAnswerResponse {
|
|
|
210
204
|
quotaExhausted: boolean;
|
|
211
205
|
quotaResetsAt?: string;
|
|
212
206
|
pursuit?: DQPursuit;
|
|
213
|
-
|
|
207
|
+
chapterProgress?: DQChapterProgress;
|
|
214
208
|
chapterEvent?: DQChapterEvent;
|
|
215
209
|
}
|
|
216
210
|
|
|
@@ -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
|
|
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
|
|
package/src/types/sa.types.ts
CHANGED
|
@@ -4,9 +4,6 @@ import {
|
|
|
4
4
|
SAAccessState,
|
|
5
5
|
SACategoryID,
|
|
6
6
|
SAChapterId,
|
|
7
|
-
SAChapterStage,
|
|
8
|
-
SAClaimFeedbackValue,
|
|
9
|
-
SAClaimValence,
|
|
10
7
|
SAEntitlementGrant,
|
|
11
8
|
SAEvidenceBand,
|
|
12
9
|
SAItemAccess,
|
|
@@ -21,6 +18,13 @@ export type SelfAwareness = {
|
|
|
21
18
|
created: string;
|
|
22
19
|
personality: Personality;
|
|
23
20
|
loveLanguages: LoveLanguages;
|
|
21
|
+
accessState: SAAccessState;
|
|
22
|
+
items: SAItem[];
|
|
23
|
+
chapters: SAChapters;
|
|
24
|
+
pursuit?: DQPursuit;
|
|
25
|
+
freeChapterId?: SAChapterId;
|
|
26
|
+
freeChapterSwitchUsed: boolean;
|
|
27
|
+
stampedCategories?: SACategory[];
|
|
24
28
|
processing?: boolean;
|
|
25
29
|
readState?: SAReadState;
|
|
26
30
|
evidence?: SAEvidence;
|
|
@@ -68,69 +72,31 @@ export type SAEvidence = {
|
|
|
68
72
|
loveLanguages?: SALoveLanguageEvidence;
|
|
69
73
|
};
|
|
70
74
|
|
|
71
|
-
export type
|
|
72
|
-
|
|
73
|
-
export type SAItemId = SACategoryID | SAChapterId | SALetterItemId;
|
|
74
|
-
|
|
75
|
-
export type SATraitRef = {
|
|
76
|
-
traitId: string;
|
|
77
|
-
name: string;
|
|
78
|
-
};
|
|
75
|
+
export type SAItemId = SACategoryID | SAChapterId;
|
|
79
76
|
|
|
80
77
|
export type SAReadiness = {
|
|
81
|
-
|
|
82
|
-
|
|
78
|
+
ready: boolean;
|
|
79
|
+
answersLeft: number;
|
|
80
|
+
citableTraits: number;
|
|
83
81
|
traitsTotal: number;
|
|
84
|
-
firstReadingReady: boolean;
|
|
85
|
-
fullReady: boolean;
|
|
86
|
-
writtenParagraphs: number;
|
|
87
|
-
nextTrait?: SATraitRef;
|
|
88
|
-
answersToNextParagraph?: number;
|
|
89
82
|
};
|
|
90
83
|
|
|
91
|
-
export type
|
|
92
|
-
|
|
93
|
-
traitsAt3: number;
|
|
94
|
-
traitsTotal: number;
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
export type SAClaimFeedback = {
|
|
98
|
-
value: SAClaimFeedbackValue;
|
|
99
|
-
note?: string;
|
|
100
|
-
at: string;
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
export type SAClaim = {
|
|
104
|
-
id: string;
|
|
84
|
+
export type SAChapterObservation = {
|
|
85
|
+
theme: string;
|
|
105
86
|
text: string;
|
|
106
|
-
basis: string[];
|
|
107
87
|
band: SAEvidenceBand;
|
|
108
|
-
valence: SAClaimValence;
|
|
109
|
-
feedback?: SAClaimFeedback;
|
|
110
|
-
rewrittenAt?: string;
|
|
111
|
-
retired?: boolean;
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
export type SAChapterGap = {
|
|
115
|
-
text: string;
|
|
116
|
-
traitId: string;
|
|
117
|
-
answersToClose: number;
|
|
118
88
|
};
|
|
119
89
|
|
|
120
90
|
export type SAChapter = {
|
|
121
91
|
chapterId: SAChapterId;
|
|
122
|
-
version: number;
|
|
123
|
-
stage: SAChapterStage;
|
|
124
92
|
generatedAt: string;
|
|
125
|
-
badge: SAChapterBadge;
|
|
126
|
-
framingId: string;
|
|
127
93
|
framing?: string;
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
94
|
+
headline: string;
|
|
95
|
+
observations: SAChapterObservation[];
|
|
96
|
+
scene: string;
|
|
97
|
+
tip: string;
|
|
98
|
+
question: string;
|
|
99
|
+
answers: number;
|
|
134
100
|
};
|
|
135
101
|
|
|
136
102
|
export type SAChapters = Partial<Record<SAChapterId, SAChapter>>;
|
|
@@ -142,8 +108,6 @@ export type SAEntitlementStamp = {
|
|
|
142
108
|
|
|
143
109
|
export type SAEntitlements = Partial<Record<SAItemId, SAEntitlementStamp>>;
|
|
144
110
|
|
|
145
|
-
export type SAArt9OptIn = Partial<Record<SAItemId, boolean>>;
|
|
146
|
-
|
|
147
111
|
export type SAItem = {
|
|
148
112
|
itemId: SAItemId;
|
|
149
113
|
kind: SAItemKind;
|
|
@@ -153,39 +117,8 @@ export type SAItem = {
|
|
|
153
117
|
framingId?: string;
|
|
154
118
|
framing?: string;
|
|
155
119
|
readiness?: SAReadiness;
|
|
156
|
-
stage?: SAChapterStage;
|
|
157
120
|
writing?: boolean;
|
|
121
|
+
writeFailed?: boolean;
|
|
158
122
|
stamped?: boolean;
|
|
159
123
|
pursuable?: boolean;
|
|
160
124
|
};
|
|
161
|
-
|
|
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
|
-
export type SAClaimFeedbackResponse = {
|
|
174
|
-
claim: SAClaim;
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
export type SASetArt9OptInResponse = {
|
|
178
|
-
art9OptIn: SAArt9OptIn;
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
export type SAClaimFeedbackRequest = {
|
|
182
|
-
chapterId: SAChapterId;
|
|
183
|
-
claimId: string;
|
|
184
|
-
value: SAClaimFeedbackValue;
|
|
185
|
-
note?: string;
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
export type SASetArt9OptInRequest = {
|
|
189
|
-
chapterId: SAChapterId;
|
|
190
|
-
optIn: boolean;
|
|
191
|
-
};
|