heartraite 1.0.103 → 1.0.105
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/constants/sa.constants.d.ts +1 -1
- package/dist/constants/sa.constants.js +2 -2
- package/dist/enum/cloudfunction.enum.d.ts +1 -0
- package/dist/enum/cloudfunction.enum.js +1 -0
- package/dist/enum/feedback.enum.d.ts +8 -0
- package/dist/enum/feedback.enum.js +12 -0
- package/dist/enum/index.d.ts +1 -0
- package/dist/enum/index.js +1 -0
- package/dist/types/cloud-function-types.d.ts +6 -2
- package/dist/types/feedback.types.d.ts +10 -0
- package/dist/types/feedback.types.js +2 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/request.types.d.ts +6 -1
- package/dist/types/response.types.d.ts +1 -0
- package/package.json +1 -1
- package/src/constants/sa.constants.ts +1 -1
- package/src/enum/cloudfunction.enum.ts +1 -0
- package/src/enum/feedback.enum.ts +8 -0
- package/src/enum/index.ts +1 -0
- package/src/types/cloud-function-types.ts +8 -0
- package/src/types/feedback.types.ts +11 -0
- package/src/types/index.ts +1 -0
- package/src/types/request.types.ts +8 -0
- package/src/types/response.types.ts +3 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SA_TRIAL_SECTIONS = exports.SA_TRIAL_CATEGORIES = void 0;
|
|
4
4
|
const enum_1 = require("../enum");
|
|
5
5
|
exports.SA_TRIAL_CATEGORIES = [enum_1.SACategoryID.PERSONALITY];
|
|
6
|
-
exports.
|
|
6
|
+
exports.SA_TRIAL_SECTIONS = [
|
|
7
7
|
enum_1.PersonalityTrait.OPENNESS,
|
|
8
8
|
enum_1.PersonalityTrait.CONSCIENTIOUSNESS,
|
|
9
9
|
];
|
|
@@ -2,6 +2,7 @@ export declare enum CloudFunction {
|
|
|
2
2
|
REGISTER_USER = "auth/register-user",
|
|
3
3
|
AUTHENTICATE_BANKID = "bankid/authenticate",
|
|
4
4
|
COLLECT_BANKID = "bankid/collect",
|
|
5
|
+
SUBMIT_FEEDBACK = "feedback/submit-feedback",
|
|
5
6
|
GET_CA = "ca/get-ca",
|
|
6
7
|
SUBMIT_ANSWER = "ca/submit-answer",
|
|
7
8
|
SUBMIT_CATEGORY_FEEDBACK = "ca/submit-category-feedback",
|
|
@@ -6,6 +6,7 @@ var CloudFunction;
|
|
|
6
6
|
CloudFunction["REGISTER_USER"] = "auth/register-user";
|
|
7
7
|
CloudFunction["AUTHENTICATE_BANKID"] = "bankid/authenticate";
|
|
8
8
|
CloudFunction["COLLECT_BANKID"] = "bankid/collect";
|
|
9
|
+
CloudFunction["SUBMIT_FEEDBACK"] = "feedback/submit-feedback";
|
|
9
10
|
CloudFunction["GET_CA"] = "ca/get-ca";
|
|
10
11
|
CloudFunction["SUBMIT_ANSWER"] = "ca/submit-answer";
|
|
11
12
|
CloudFunction["SUBMIT_CATEGORY_FEEDBACK"] = "ca/submit-category-feedback";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FeedbackType = void 0;
|
|
4
|
+
var FeedbackType;
|
|
5
|
+
(function (FeedbackType) {
|
|
6
|
+
FeedbackType["BUG"] = "bug";
|
|
7
|
+
FeedbackType["SUGGESTION"] = "suggestion";
|
|
8
|
+
FeedbackType["COMPLAINT"] = "complaint";
|
|
9
|
+
FeedbackType["PRAISE"] = "praise";
|
|
10
|
+
FeedbackType["QUESTION"] = "question";
|
|
11
|
+
FeedbackType["OTHER"] = "other";
|
|
12
|
+
})(FeedbackType || (exports.FeedbackType = FeedbackType = {}));
|
package/dist/enum/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from "./ca.enum";
|
|
|
3
3
|
export * from "./cloudfunction.enum";
|
|
4
4
|
export * from "./evaluation.enum";
|
|
5
5
|
export * from "./environment.enum";
|
|
6
|
+
export * from "./feedback.enum";
|
|
6
7
|
export * from "./firestore.enum";
|
|
7
8
|
export * from "./general.enum";
|
|
8
9
|
export * from "./iap.enum";
|
package/dist/enum/index.js
CHANGED
|
@@ -19,6 +19,7 @@ __exportStar(require("./ca.enum"), exports);
|
|
|
19
19
|
__exportStar(require("./cloudfunction.enum"), exports);
|
|
20
20
|
__exportStar(require("./evaluation.enum"), exports);
|
|
21
21
|
__exportStar(require("./environment.enum"), exports);
|
|
22
|
+
__exportStar(require("./feedback.enum"), exports);
|
|
22
23
|
__exportStar(require("./firestore.enum"), exports);
|
|
23
24
|
__exportStar(require("./general.enum"), exports);
|
|
24
25
|
__exportStar(require("./iap.enum"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CloudFunction } from "../enum";
|
|
2
|
-
import { AddImagesRequest, AuthenticateBankIDRequest, CollectBankIDRequest, CreateBillingPortalRequest, CreateCheckoutSessionRequest, CreateLikeRequest, CreatePLSInputRequest, CreatePLSSubmissionRequest, CreateReportRequest, DeleteUserRequest, GetCARequest, GetLikesRequest, GetMatchableUserRequest, GetMatchCheckRequest, GetMatchesRequest, GetAdvancedMatchRequest, GetMessagesRequest, GetPLSSubmissionRequest, GetProductsRequest, GetSelfAwarenessRequest, GetUserRequest, HandleLastMessageSeenRequest, HandleLikeSeenRequest, HandleMatchSeenRequest, RegisterOnboardingRequest, RegisterUserRequest, RemoveMatchRequest, SendMessageRequest, SubmitAnswerRequest, SubmitCategoryFeedbackRequest, SubmitPLSCategoryFeedbackRequest, SubmitPLSDemographicsRequest, UpdatePLSAnswerRequest, UpdateQuestionsRequest, UpdateUserRequest } from "./request.types";
|
|
3
|
-
import { AddImagesResponse, AuthenticateBankIDResponse, CollectBankIDResponse, CreateBillingPortalResponse, CreateCheckoutSessionResponse, CreateLikeResponse, CreatePLSInputResponse, CreatePLSSubmissionResponse, CreateReportResponse, DeleteUserResponse, GetCAResponse, GetLikesResponse, GetMatchableUserResponse, GetMatchableUsersResponse, GetMatchCheckResponse, GetMatchesResponse, GetAdvancedMatchResponse, GetMessagesResponse, GetPLSSubmissionResponse, GetProductsResponse, GetSelfAwarenessReponse, GetUserResponse, HandleLastMessageSeenResponse, HandleLikeSeenResponse, HandleMatchSeenResponse, RegisterOnboardingResponse, RegisterUserResponse, RemoveMatchResponse, SendMessageResponse, SubmitAnswerResponse, SubmitCategoryFeedbackResponse, SubmitPLSCategoryFeedbackResponse, SubmitPLSDemographicsResponse, UpdatePLSAnswerResponse, UpdateQuestionsResponse, UpdateUserResponse } from "./response.types";
|
|
2
|
+
import { AddImagesRequest, AuthenticateBankIDRequest, CollectBankIDRequest, CreateBillingPortalRequest, CreateCheckoutSessionRequest, CreateLikeRequest, CreatePLSInputRequest, CreatePLSSubmissionRequest, CreateReportRequest, DeleteUserRequest, GetCARequest, GetLikesRequest, GetMatchableUserRequest, GetMatchCheckRequest, GetMatchesRequest, GetAdvancedMatchRequest, GetMessagesRequest, GetPLSSubmissionRequest, GetProductsRequest, GetSelfAwarenessRequest, GetUserRequest, HandleLastMessageSeenRequest, HandleLikeSeenRequest, HandleMatchSeenRequest, RegisterOnboardingRequest, RegisterUserRequest, RemoveMatchRequest, SendMessageRequest, SubmitAnswerRequest, SubmitCategoryFeedbackRequest, SubmitPLSCategoryFeedbackRequest, SubmitPLSDemographicsRequest, UpdatePLSAnswerRequest, UpdateQuestionsRequest, UpdateUserRequest, SubmitFeedbackRequest } from "./request.types";
|
|
3
|
+
import { AddImagesResponse, AuthenticateBankIDResponse, CollectBankIDResponse, CreateBillingPortalResponse, CreateCheckoutSessionResponse, CreateLikeResponse, CreatePLSInputResponse, CreatePLSSubmissionResponse, CreateReportResponse, DeleteUserResponse, GetCAResponse, GetLikesResponse, GetMatchableUserResponse, GetMatchableUsersResponse, GetMatchCheckResponse, GetMatchesResponse, GetAdvancedMatchResponse, GetMessagesResponse, GetPLSSubmissionResponse, GetProductsResponse, GetSelfAwarenessReponse, GetUserResponse, HandleLastMessageSeenResponse, HandleLikeSeenResponse, HandleMatchSeenResponse, RegisterOnboardingResponse, RegisterUserResponse, RemoveMatchResponse, SendMessageResponse, SubmitAnswerResponse, SubmitCategoryFeedbackResponse, SubmitPLSCategoryFeedbackResponse, SubmitPLSDemographicsResponse, UpdatePLSAnswerResponse, UpdateQuestionsResponse, UpdateUserResponse, SubmitFeedbackResponse } from "./response.types";
|
|
4
4
|
export type CloudFunctionTypes = {
|
|
5
5
|
[CloudFunction.REGISTER_USER]: {
|
|
6
6
|
payload: RegisterUserRequest;
|
|
@@ -26,6 +26,10 @@ export type CloudFunctionTypes = {
|
|
|
26
26
|
payload: SubmitCategoryFeedbackRequest;
|
|
27
27
|
response: SubmitCategoryFeedbackResponse;
|
|
28
28
|
};
|
|
29
|
+
[CloudFunction.SUBMIT_FEEDBACK]: {
|
|
30
|
+
payload: SubmitFeedbackRequest;
|
|
31
|
+
response: SubmitFeedbackResponse;
|
|
32
|
+
};
|
|
29
33
|
[CloudFunction.CREATE_LIKE]: {
|
|
30
34
|
payload: CreateLikeRequest;
|
|
31
35
|
response: CreateLikeResponse;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from "./assessment.types";
|
|
|
3
3
|
export * from "./ca.types";
|
|
4
4
|
export * from "./cloud-function-types";
|
|
5
5
|
export * from "./error.types";
|
|
6
|
+
export * from "./feedback.types";
|
|
6
7
|
export * from "./helper.types";
|
|
7
8
|
export * from "./like.types";
|
|
8
9
|
export * from "./match.types";
|
package/dist/types/index.js
CHANGED
|
@@ -19,6 +19,7 @@ __exportStar(require("./assessment.types"), exports);
|
|
|
19
19
|
__exportStar(require("./ca.types"), exports);
|
|
20
20
|
__exportStar(require("./cloud-function-types"), exports);
|
|
21
21
|
__exportStar(require("./error.types"), exports);
|
|
22
|
+
__exportStar(require("./feedback.types"), exports);
|
|
22
23
|
__exportStar(require("./helper.types"), exports);
|
|
23
24
|
__exportStar(require("./like.types"), exports);
|
|
24
25
|
__exportStar(require("./match.types"), exports);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FeedbackAgreement, Gender, LikeType, ProviderType, ReportReason, UserDeletionReason } from "../enum";
|
|
1
|
+
import { FeedbackAgreement, FeedbackType, Gender, LikeType, ProviderType, ReportReason, UserDeletionReason } from "../enum";
|
|
2
2
|
import { DeepPartial } from "./helper.types";
|
|
3
3
|
import { Answer, Demographics } from "./submission.types";
|
|
4
4
|
import { DatingPreferences, UserConsents, UserNotifications, UserProfile, UserSettings } from "./user.types";
|
|
@@ -24,6 +24,11 @@ export type AuthenticateBankIDRequest = undefined;
|
|
|
24
24
|
export type CollectBankIDRequest = {
|
|
25
25
|
orderRef: string;
|
|
26
26
|
};
|
|
27
|
+
export type SubmitFeedbackRequest = {
|
|
28
|
+
message: string;
|
|
29
|
+
type: FeedbackType;
|
|
30
|
+
context?: string;
|
|
31
|
+
};
|
|
27
32
|
export type HandleLastMessageSeenRequest = {
|
|
28
33
|
conversationId: string;
|
|
29
34
|
};
|
|
@@ -30,6 +30,7 @@ export type SubmitAnswerResponse = {
|
|
|
30
30
|
categoryEvaluation?: CategoryEvaluation;
|
|
31
31
|
};
|
|
32
32
|
export type SubmitCategoryFeedbackResponse = CategoryEvaluation;
|
|
33
|
+
export type SubmitFeedbackResponse = undefined;
|
|
33
34
|
export type HandleLastMessageSeenResponse = undefined;
|
|
34
35
|
export type SendMessageResponse = Message;
|
|
35
36
|
export type GetMessagesResponse = Message[];
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import { PersonalityTrait, SACategoryID } from "../enum";
|
|
|
2
2
|
|
|
3
3
|
export const SA_TRIAL_CATEGORIES = [SACategoryID.PERSONALITY];
|
|
4
4
|
|
|
5
|
-
export const
|
|
5
|
+
export const SA_TRIAL_SECTIONS = [
|
|
6
6
|
PersonalityTrait.OPENNESS,
|
|
7
7
|
PersonalityTrait.CONSCIENTIOUSNESS,
|
|
8
8
|
];
|
|
@@ -2,6 +2,7 @@ export enum CloudFunction {
|
|
|
2
2
|
REGISTER_USER = "auth/register-user",
|
|
3
3
|
AUTHENTICATE_BANKID = "bankid/authenticate",
|
|
4
4
|
COLLECT_BANKID = "bankid/collect",
|
|
5
|
+
SUBMIT_FEEDBACK = "feedback/submit-feedback",
|
|
5
6
|
GET_CA = "ca/get-ca",
|
|
6
7
|
SUBMIT_ANSWER = "ca/submit-answer",
|
|
7
8
|
SUBMIT_CATEGORY_FEEDBACK = "ca/submit-category-feedback",
|
package/src/enum/index.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from "./ca.enum";
|
|
|
3
3
|
export * from "./cloudfunction.enum";
|
|
4
4
|
export * from "./evaluation.enum";
|
|
5
5
|
export * from "./environment.enum";
|
|
6
|
+
export * from "./feedback.enum";
|
|
6
7
|
export * from "./firestore.enum";
|
|
7
8
|
export * from "./general.enum";
|
|
8
9
|
export * from "./iap.enum";
|
|
@@ -35,6 +35,7 @@ import {
|
|
|
35
35
|
UpdatePLSAnswerRequest,
|
|
36
36
|
UpdateQuestionsRequest,
|
|
37
37
|
UpdateUserRequest,
|
|
38
|
+
SubmitFeedbackRequest,
|
|
38
39
|
} from "./request.types";
|
|
39
40
|
import {
|
|
40
41
|
AddImagesResponse,
|
|
@@ -73,6 +74,7 @@ import {
|
|
|
73
74
|
UpdatePLSAnswerResponse,
|
|
74
75
|
UpdateQuestionsResponse,
|
|
75
76
|
UpdateUserResponse,
|
|
77
|
+
SubmitFeedbackResponse,
|
|
76
78
|
} from "./response.types";
|
|
77
79
|
|
|
78
80
|
// Define a mapping of Cloud Functions to payload and response types
|
|
@@ -107,6 +109,12 @@ export type CloudFunctionTypes = {
|
|
|
107
109
|
response: SubmitCategoryFeedbackResponse;
|
|
108
110
|
};
|
|
109
111
|
|
|
112
|
+
// feedback
|
|
113
|
+
[CloudFunction.SUBMIT_FEEDBACK]: {
|
|
114
|
+
payload: SubmitFeedbackRequest;
|
|
115
|
+
response: SubmitFeedbackResponse;
|
|
116
|
+
};
|
|
117
|
+
|
|
110
118
|
// like
|
|
111
119
|
[CloudFunction.CREATE_LIKE]: {
|
|
112
120
|
payload: CreateLikeRequest;
|
package/src/types/index.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from "./assessment.types";
|
|
|
3
3
|
export * from "./ca.types";
|
|
4
4
|
export * from "./cloud-function-types";
|
|
5
5
|
export * from "./error.types";
|
|
6
|
+
export * from "./feedback.types";
|
|
6
7
|
export * from "./helper.types";
|
|
7
8
|
export * from "./like.types";
|
|
8
9
|
export * from "./match.types";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FeedbackAgreement,
|
|
3
|
+
FeedbackType,
|
|
3
4
|
Gender,
|
|
4
5
|
LikeType,
|
|
5
6
|
ProviderType,
|
|
@@ -41,6 +42,13 @@ export type CollectBankIDRequest = {
|
|
|
41
42
|
orderRef: string;
|
|
42
43
|
};
|
|
43
44
|
|
|
45
|
+
// feedback
|
|
46
|
+
export type SubmitFeedbackRequest = {
|
|
47
|
+
message: string;
|
|
48
|
+
type: FeedbackType;
|
|
49
|
+
context?: string;
|
|
50
|
+
};
|
|
51
|
+
|
|
44
52
|
// message
|
|
45
53
|
export type HandleLastMessageSeenRequest = {
|
|
46
54
|
conversationId: string;
|
|
@@ -38,6 +38,9 @@ export type SubmitAnswerResponse = {
|
|
|
38
38
|
};
|
|
39
39
|
export type SubmitCategoryFeedbackResponse = CategoryEvaluation;
|
|
40
40
|
|
|
41
|
+
// feedback
|
|
42
|
+
export type SubmitFeedbackResponse = undefined;
|
|
43
|
+
|
|
41
44
|
// message
|
|
42
45
|
export type HandleLastMessageSeenResponse = undefined;
|
|
43
46
|
export type SendMessageResponse = Message;
|