heartraite 1.0.2 → 1.0.3
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/cloudfunction.enum.d.ts +1 -1
- package/dist/enum/cloudfunction.enum.js +1 -1
- package/dist/enum/index.d.ts +1 -0
- package/dist/enum/index.js +1 -0
- package/dist/enum/provider.enum.d.ts +5 -0
- package/dist/enum/provider.enum.js +9 -0
- package/dist/types/cloud-function-types.d.ts +4 -4
- package/dist/types/request.types.d.ts +0 -2
- package/dist/types/user.types.d.ts +0 -11
- package/dist/types/user.types.js +0 -14
- package/package.json +1 -1
- package/src/enum/cloudfunction.enum.ts +1 -1
- package/src/enum/index.ts +1 -0
- package/src/enum/provider.enum.ts +5 -0
- package/src/types/cloud-function-types.ts +5 -4
- package/src/types/request.types.ts +0 -2
- package/src/types/user.types.ts +0 -27
|
@@ -6,6 +6,7 @@ export declare enum CloudFunction {
|
|
|
6
6
|
GET_SUBMISSION = "assessment/get-submission",
|
|
7
7
|
UPDATE_ANSWER = "assessment/update-answer",
|
|
8
8
|
SUBMIT_CATEGORY_FEEDBACK = "assessment/submit-category-feedback",
|
|
9
|
+
REGISTER_USER = "auth/register-user",
|
|
9
10
|
AUTHENTICATE_BANKID = "bankid/authenticate",
|
|
10
11
|
COLLECT_BANKID = "bankid/collect",
|
|
11
12
|
CREATE_LIKE = "like/create-like",
|
|
@@ -28,7 +29,6 @@ export declare enum CloudFunction {
|
|
|
28
29
|
STRIPE_WEBWOOK = "stripe/webhook",
|
|
29
30
|
CREATE_BILLING_PORTAL = "stripe/create-billing-portal",
|
|
30
31
|
CREATE_CHECKOUT_SESSION = "stripe/create-checkout-session",
|
|
31
|
-
REGISTER_USER = "user/register-user",
|
|
32
32
|
UPDATE_USER = "user/update-user",
|
|
33
33
|
GET_CURRENT_USER = "user/get-current-user"
|
|
34
34
|
}
|
|
@@ -10,6 +10,7 @@ var CloudFunction;
|
|
|
10
10
|
CloudFunction["GET_SUBMISSION"] = "assessment/get-submission";
|
|
11
11
|
CloudFunction["UPDATE_ANSWER"] = "assessment/update-answer";
|
|
12
12
|
CloudFunction["SUBMIT_CATEGORY_FEEDBACK"] = "assessment/submit-category-feedback";
|
|
13
|
+
CloudFunction["REGISTER_USER"] = "auth/register-user";
|
|
13
14
|
CloudFunction["AUTHENTICATE_BANKID"] = "bankid/authenticate";
|
|
14
15
|
CloudFunction["COLLECT_BANKID"] = "bankid/collect";
|
|
15
16
|
CloudFunction["CREATE_LIKE"] = "like/create-like";
|
|
@@ -32,7 +33,6 @@ var CloudFunction;
|
|
|
32
33
|
CloudFunction["STRIPE_WEBWOOK"] = "stripe/webhook";
|
|
33
34
|
CloudFunction["CREATE_BILLING_PORTAL"] = "stripe/create-billing-portal";
|
|
34
35
|
CloudFunction["CREATE_CHECKOUT_SESSION"] = "stripe/create-checkout-session";
|
|
35
|
-
CloudFunction["REGISTER_USER"] = "user/register-user";
|
|
36
36
|
CloudFunction["UPDATE_USER"] = "user/update-user";
|
|
37
37
|
CloudFunction["GET_CURRENT_USER"] = "user/get-current-user";
|
|
38
38
|
})(CloudFunction || (exports.CloudFunction = CloudFunction = {}));
|
package/dist/enum/index.d.ts
CHANGED
package/dist/enum/index.js
CHANGED
|
@@ -22,3 +22,4 @@ __exportStar(require("./ai-verification-status.enum"), exports);
|
|
|
22
22
|
__exportStar(require("./evaluation.enum"), exports);
|
|
23
23
|
__exportStar(require("./report.enum"), exports);
|
|
24
24
|
__exportStar(require("./gender.enum"), exports);
|
|
25
|
+
__exportStar(require("./provider.enum"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProviderType = void 0;
|
|
4
|
+
var ProviderType;
|
|
5
|
+
(function (ProviderType) {
|
|
6
|
+
ProviderType["PASSWORD"] = "password";
|
|
7
|
+
ProviderType["GOOGLE"] = "google.com";
|
|
8
|
+
ProviderType["FACEBOOK"] = "facebook.com";
|
|
9
|
+
})(ProviderType || (exports.ProviderType = ProviderType = {}));
|
|
@@ -14,6 +14,10 @@ export type CloudFunctionTypes = {
|
|
|
14
14
|
payload?: undefined;
|
|
15
15
|
response: GetAssessmentsResponse;
|
|
16
16
|
};
|
|
17
|
+
[CloudFunction.REGISTER_USER]: {
|
|
18
|
+
payload: RegisterUserRequest;
|
|
19
|
+
response: RegisterUserResponse;
|
|
20
|
+
};
|
|
17
21
|
[CloudFunction.CREATE_SUBMISSION]: {
|
|
18
22
|
payload: CreateSubmissionRequest;
|
|
19
23
|
response: CreateSubmissionResponse;
|
|
@@ -114,10 +118,6 @@ export type CloudFunctionTypes = {
|
|
|
114
118
|
payload: CreateCheckoutSessionRequest;
|
|
115
119
|
response: CreateCheckoutSessionResponse;
|
|
116
120
|
};
|
|
117
|
-
[CloudFunction.REGISTER_USER]: {
|
|
118
|
-
payload: RegisterUserRequest;
|
|
119
|
-
response: RegisterUserResponse;
|
|
120
|
-
};
|
|
121
121
|
[CloudFunction.UPDATE_USER]: {
|
|
122
122
|
payload: UpdateUserRequest;
|
|
123
123
|
response: UpdateUserResponse;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FeedbackAgreement, LikeType, ReportReason } from "../enum";
|
|
2
2
|
import { Answer } from "./submission.types";
|
|
3
|
-
import { RegistrationData } from "./user.types";
|
|
4
3
|
export type CreateAssessmentRequest = {
|
|
5
4
|
intimateTopics: boolean;
|
|
6
5
|
};
|
|
@@ -92,7 +91,6 @@ export type RegisterUserRequest = {
|
|
|
92
91
|
email: string;
|
|
93
92
|
password: string;
|
|
94
93
|
referrerId?: string;
|
|
95
|
-
data: RegistrationData;
|
|
96
94
|
};
|
|
97
95
|
export type GetUserRequest = undefined;
|
|
98
96
|
export type UpdateUserRequest = Partial<any>;
|
|
@@ -40,14 +40,3 @@ export type DatingPreferences = {
|
|
|
40
40
|
interestedIn: Gender[];
|
|
41
41
|
distanceRadius: number;
|
|
42
42
|
};
|
|
43
|
-
export type RegistrationData = {
|
|
44
|
-
firstName: string;
|
|
45
|
-
lat: number;
|
|
46
|
-
lng: number;
|
|
47
|
-
birth: Date;
|
|
48
|
-
gender: Gender;
|
|
49
|
-
interestedIn: Gender[];
|
|
50
|
-
minAge: number;
|
|
51
|
-
maxAge: number;
|
|
52
|
-
distanceRadius: number;
|
|
53
|
-
};
|
package/dist/types/user.types.js
CHANGED
|
@@ -27,20 +27,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
27
27
|
// pushNotificationSettings: NotificationSettings;
|
|
28
28
|
// registrationReferralAllowed: boolean;
|
|
29
29
|
// };
|
|
30
|
-
// export type UserRegistrationData = {
|
|
31
|
-
// firstName: string;
|
|
32
|
-
// state: string;
|
|
33
|
-
// birth: string;
|
|
34
|
-
// gender: string;
|
|
35
|
-
// images: string[];
|
|
36
|
-
// intro: string;
|
|
37
|
-
// interestedIn: string;
|
|
38
|
-
// lat?: number;
|
|
39
|
-
// lng?: number;
|
|
40
|
-
// radius?: number;
|
|
41
|
-
// minAge?: number;
|
|
42
|
-
// maxAge?: number;
|
|
43
|
-
// };
|
|
44
30
|
// export type UpdateUserData = {
|
|
45
31
|
// intro: string;
|
|
46
32
|
// firstName: string;
|
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ export enum CloudFunction {
|
|
|
6
6
|
GET_SUBMISSION = "assessment/get-submission",
|
|
7
7
|
UPDATE_ANSWER = "assessment/update-answer",
|
|
8
8
|
SUBMIT_CATEGORY_FEEDBACK = "assessment/submit-category-feedback",
|
|
9
|
+
REGISTER_USER = "auth/register-user",
|
|
9
10
|
AUTHENTICATE_BANKID = "bankid/authenticate",
|
|
10
11
|
COLLECT_BANKID = "bankid/collect",
|
|
11
12
|
CREATE_LIKE = "like/create-like",
|
|
@@ -28,7 +29,6 @@ export enum CloudFunction {
|
|
|
28
29
|
STRIPE_WEBWOOK = "stripe/webhook",
|
|
29
30
|
CREATE_BILLING_PORTAL = "stripe/create-billing-portal",
|
|
30
31
|
CREATE_CHECKOUT_SESSION = "stripe/create-checkout-session",
|
|
31
|
-
REGISTER_USER = "user/register-user",
|
|
32
32
|
UPDATE_USER = "user/update-user",
|
|
33
33
|
GET_CURRENT_USER = "user/get-current-user",
|
|
34
34
|
}
|
package/src/enum/index.ts
CHANGED
|
@@ -77,6 +77,11 @@ export type CloudFunctionTypes = {
|
|
|
77
77
|
payload?: undefined;
|
|
78
78
|
response: GetAssessmentsResponse;
|
|
79
79
|
};
|
|
80
|
+
// Auth
|
|
81
|
+
[CloudFunction.REGISTER_USER]: {
|
|
82
|
+
payload: RegisterUserRequest;
|
|
83
|
+
response: RegisterUserResponse;
|
|
84
|
+
};
|
|
80
85
|
// Submission
|
|
81
86
|
[CloudFunction.CREATE_SUBMISSION]: {
|
|
82
87
|
payload: CreateSubmissionRequest;
|
|
@@ -188,10 +193,6 @@ export type CloudFunctionTypes = {
|
|
|
188
193
|
response: CreateCheckoutSessionResponse;
|
|
189
194
|
};
|
|
190
195
|
// User
|
|
191
|
-
[CloudFunction.REGISTER_USER]: {
|
|
192
|
-
payload: RegisterUserRequest;
|
|
193
|
-
response: RegisterUserResponse;
|
|
194
|
-
};
|
|
195
196
|
[CloudFunction.UPDATE_USER]: {
|
|
196
197
|
payload: UpdateUserRequest;
|
|
197
198
|
response: UpdateUserResponse;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FeedbackAgreement, LikeType, ReportReason } from "../enum";
|
|
2
2
|
import { Answer } from "./submission.types";
|
|
3
|
-
import { RegistrationData } from "./user.types";
|
|
4
3
|
|
|
5
4
|
// assessment
|
|
6
5
|
export type CreateAssessmentRequest = { intimateTopics: boolean };
|
|
@@ -88,7 +87,6 @@ export type RegisterUserRequest = {
|
|
|
88
87
|
email: string;
|
|
89
88
|
password: string;
|
|
90
89
|
referrerId?: string;
|
|
91
|
-
data: RegistrationData;
|
|
92
90
|
};
|
|
93
91
|
export type GetUserRequest = undefined;
|
|
94
92
|
export type UpdateUserRequest = Partial<any>; // TODO; fix typing
|
package/src/types/user.types.ts
CHANGED
|
@@ -46,18 +46,6 @@ export type DatingPreferences = {
|
|
|
46
46
|
distanceRadius: number;
|
|
47
47
|
};
|
|
48
48
|
|
|
49
|
-
export type RegistrationData = {
|
|
50
|
-
firstName: string;
|
|
51
|
-
lat: number;
|
|
52
|
-
lng: number;
|
|
53
|
-
birth: Date;
|
|
54
|
-
gender: Gender;
|
|
55
|
-
interestedIn: Gender[];
|
|
56
|
-
minAge: number;
|
|
57
|
-
maxAge: number;
|
|
58
|
-
distanceRadius: number;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
49
|
// export type User = {
|
|
62
50
|
// id: string;
|
|
63
51
|
// intro: string;
|
|
@@ -86,21 +74,6 @@ export type RegistrationData = {
|
|
|
86
74
|
// registrationReferralAllowed: boolean;
|
|
87
75
|
// };
|
|
88
76
|
|
|
89
|
-
// export type UserRegistrationData = {
|
|
90
|
-
// firstName: string;
|
|
91
|
-
// state: string;
|
|
92
|
-
// birth: string;
|
|
93
|
-
// gender: string;
|
|
94
|
-
// images: string[];
|
|
95
|
-
// intro: string;
|
|
96
|
-
// interestedIn: string;
|
|
97
|
-
// lat?: number;
|
|
98
|
-
// lng?: number;
|
|
99
|
-
// radius?: number;
|
|
100
|
-
// minAge?: number;
|
|
101
|
-
// maxAge?: number;
|
|
102
|
-
// };
|
|
103
|
-
|
|
104
77
|
// export type UpdateUserData = {
|
|
105
78
|
// intro: string;
|
|
106
79
|
// firstName: string;
|