heartraite 1.0.183 → 1.0.185

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.
@@ -1,4 +1,7 @@
1
1
  export declare enum Locale {
2
2
  SV_SE = "sv_SE",
3
- DA_DK = "da_DK"
3
+ EN_US = "en_US",
4
+ DA_DK = "da_DK",
5
+ NO_NO = "no_NO",
6
+ FI_FI = "fi_FI"
4
7
  }
@@ -4,5 +4,8 @@ exports.Locale = void 0;
4
4
  var Locale;
5
5
  (function (Locale) {
6
6
  Locale["SV_SE"] = "sv_SE";
7
+ Locale["EN_US"] = "en_US";
7
8
  Locale["DA_DK"] = "da_DK";
9
+ Locale["NO_NO"] = "no_NO";
10
+ Locale["FI_FI"] = "fi_FI";
8
11
  })(Locale || (exports.Locale = Locale = {}));
@@ -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 {};
@@ -19,6 +19,7 @@ export type Event = {
19
19
  location?: string;
20
20
  isCancelled?: boolean;
21
21
  maxParticipants?: number;
22
+ matchCount: number;
22
23
  participants: number;
23
24
  created: string;
24
25
  lastUpdated: string;
@@ -34,6 +34,7 @@ export type SubmitAnswerResponse = {
34
34
  export type SubmitCategoryFeedbackResponse = CategoryEvaluation;
35
35
  export type SendEventFeedbackResponse = void;
36
36
  export type GetEventMatchResponse = FullParticipantWithCS;
37
+ export type GetEventMatchesResponse = FullParticipantWithCS[];
37
38
  export type GetUserEventsResponse = Event[];
38
39
  export type JoinEventResponse = Event;
39
40
  export type GetEventResponse = Event;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.183",
3
+ "version": "1.0.185",
4
4
  "description": "Heartraite npm package for common functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,4 +1,7 @@
1
1
  export enum Locale {
2
2
  SV_SE = "sv_SE",
3
+ EN_US = "en_US",
3
4
  DA_DK = "da_DK",
5
+ NO_NO = "no_NO",
6
+ FI_FI = "fi_FI",
4
7
  }
@@ -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
+ }
@@ -22,6 +22,7 @@ export type Event = {
22
22
  location?: string;
23
23
  isCancelled?: boolean;
24
24
  maxParticipants?: number;
25
+ matchCount: number;
25
26
  participants: number;
26
27
  created: string;
27
28
  lastUpdated: string;
@@ -45,6 +45,7 @@ export type SubmitCategoryFeedbackResponse = CategoryEvaluation;
45
45
  // event
46
46
  export type SendEventFeedbackResponse = void;
47
47
  export type GetEventMatchResponse = FullParticipantWithCS;
48
+ export type GetEventMatchesResponse = FullParticipantWithCS[];
48
49
  export type GetUserEventsResponse = Event[];
49
50
  export type JoinEventResponse = Event;
50
51
  export type GetEventResponse = Event;