heartraite 1.0.183 → 1.0.184
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/types/ca.types.d.ts
CHANGED
|
@@ -34,4 +34,52 @@ export type LoveLanguages = {
|
|
|
34
34
|
[LoveLanguageTrait.ACTS_OF_SERVICE]: number;
|
|
35
35
|
[LoveLanguageTrait.PHYSICAL_TOUCH]: number;
|
|
36
36
|
};
|
|
37
|
+
export interface CASelectionItem {
|
|
38
|
+
id: string;
|
|
39
|
+
selectionId: string;
|
|
40
|
+
title: string;
|
|
41
|
+
}
|
|
42
|
+
export interface CAScaleInputType {
|
|
43
|
+
__typename: "ScaleRecord";
|
|
44
|
+
id: string;
|
|
45
|
+
lowestDescription: string;
|
|
46
|
+
highestDescription: string;
|
|
47
|
+
}
|
|
48
|
+
export interface CASelectionInputType {
|
|
49
|
+
__typename: "CaSelectionRecord";
|
|
50
|
+
id: string;
|
|
51
|
+
multipleSelections: boolean;
|
|
52
|
+
items: CASelectionItem[];
|
|
53
|
+
}
|
|
54
|
+
export interface CATextfieldInputType {
|
|
55
|
+
__typename: "CaTextfieldRecord";
|
|
56
|
+
id: string;
|
|
57
|
+
placeholder: string;
|
|
58
|
+
}
|
|
59
|
+
export interface CADraggableInputType {
|
|
60
|
+
__typename: "DraggableSelectionRecord";
|
|
61
|
+
id: string;
|
|
62
|
+
items: CASelectionItem[];
|
|
63
|
+
}
|
|
64
|
+
export type CAInputType = CAScaleInputType | CASelectionInputType | CATextfieldInputType | CADraggableInputType;
|
|
65
|
+
export interface CAQuestion {
|
|
66
|
+
id: string;
|
|
67
|
+
questionId: string;
|
|
68
|
+
title: string;
|
|
69
|
+
description: string;
|
|
70
|
+
allowElaboration: boolean;
|
|
71
|
+
disableAiScore: boolean;
|
|
72
|
+
similarity: boolean;
|
|
73
|
+
inputType: CAInputType;
|
|
74
|
+
}
|
|
75
|
+
export interface CACategory {
|
|
76
|
+
id: string;
|
|
77
|
+
categoryId: string;
|
|
78
|
+
title: string;
|
|
79
|
+
questions: CAQuestion[];
|
|
80
|
+
}
|
|
81
|
+
export interface CAQuestionsResponse {
|
|
82
|
+
id: string;
|
|
83
|
+
categories: CACategory[];
|
|
84
|
+
}
|
|
37
85
|
export {};
|
package/package.json
CHANGED
package/src/types/ca.types.ts
CHANGED
|
@@ -40,3 +40,66 @@ export type LoveLanguages = {
|
|
|
40
40
|
[LoveLanguageTrait.ACTS_OF_SERVICE]: number;
|
|
41
41
|
[LoveLanguageTrait.PHYSICAL_TOUCH]: number;
|
|
42
42
|
};
|
|
43
|
+
|
|
44
|
+
// CA Question Response Types (shared between backend, backoffice, and app)
|
|
45
|
+
|
|
46
|
+
export interface CASelectionItem {
|
|
47
|
+
id: string;
|
|
48
|
+
selectionId: string;
|
|
49
|
+
title: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface CAScaleInputType {
|
|
53
|
+
__typename: "ScaleRecord";
|
|
54
|
+
id: string;
|
|
55
|
+
lowestDescription: string;
|
|
56
|
+
highestDescription: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface CASelectionInputType {
|
|
60
|
+
__typename: "CaSelectionRecord";
|
|
61
|
+
id: string;
|
|
62
|
+
multipleSelections: boolean;
|
|
63
|
+
items: CASelectionItem[];
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface CATextfieldInputType {
|
|
67
|
+
__typename: "CaTextfieldRecord";
|
|
68
|
+
id: string;
|
|
69
|
+
placeholder: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface CADraggableInputType {
|
|
73
|
+
__typename: "DraggableSelectionRecord";
|
|
74
|
+
id: string;
|
|
75
|
+
items: CASelectionItem[];
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type CAInputType =
|
|
79
|
+
| CAScaleInputType
|
|
80
|
+
| CASelectionInputType
|
|
81
|
+
| CATextfieldInputType
|
|
82
|
+
| CADraggableInputType;
|
|
83
|
+
|
|
84
|
+
export interface CAQuestion {
|
|
85
|
+
id: string;
|
|
86
|
+
questionId: string;
|
|
87
|
+
title: string;
|
|
88
|
+
description: string;
|
|
89
|
+
allowElaboration: boolean;
|
|
90
|
+
disableAiScore: boolean;
|
|
91
|
+
similarity: boolean;
|
|
92
|
+
inputType: CAInputType;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export interface CACategory {
|
|
96
|
+
id: string;
|
|
97
|
+
categoryId: string;
|
|
98
|
+
title: string;
|
|
99
|
+
questions: CAQuestion[];
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface CAQuestionsResponse {
|
|
103
|
+
id: string;
|
|
104
|
+
categories: CACategory[];
|
|
105
|
+
}
|