heartraite 1.0.223 → 1.0.225
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 -0
- package/dist/enum/cloudfunction.enum.js +1 -0
- package/dist/types/cloud-function-types.d.ts +6 -2
- package/dist/types/event-showcase.types.d.ts +17 -0
- package/dist/types/event-showcase.types.js +2 -0
- package/dist/types/event.types.d.ts +2 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/request.types.d.ts +3 -1
- package/dist/types/response.types.d.ts +4 -1
- package/dist/types/ticket.types.d.ts +5 -2
- package/package.json +1 -1
- package/src/enum/cloudfunction.enum.ts +1 -0
- package/src/types/cloud-function-types.ts +6 -0
- package/src/types/event-showcase.types.ts +19 -0
- package/src/types/event.types.ts +2 -0
- package/src/types/index.ts +1 -0
- package/src/types/request.types.ts +3 -1
- package/src/types/response.types.ts +4 -1
- package/src/types/ticket.types.ts +6 -2
|
@@ -21,6 +21,7 @@ export declare enum CloudFunction {
|
|
|
21
21
|
CREATE_CHECKOUT = "ticket/create-checkout",
|
|
22
22
|
CONFIRM_ORDER = "ticket/confirm",
|
|
23
23
|
ABANDON_ORDER = "ticket/abandon",
|
|
24
|
+
GET_EVENT_SHOWCASE = "event/get-event-showcase",
|
|
24
25
|
SUBMIT_CATEGORY_FEEDBACK = "ca/submit-category-feedback",
|
|
25
26
|
CREATE_LIKE = "like/create-like",
|
|
26
27
|
HANDLE_LIKE_SEEN = "like/handle-like-seen",
|
|
@@ -25,6 +25,7 @@ var CloudFunction;
|
|
|
25
25
|
CloudFunction["CREATE_CHECKOUT"] = "ticket/create-checkout";
|
|
26
26
|
CloudFunction["CONFIRM_ORDER"] = "ticket/confirm";
|
|
27
27
|
CloudFunction["ABANDON_ORDER"] = "ticket/abandon";
|
|
28
|
+
CloudFunction["GET_EVENT_SHOWCASE"] = "event/get-event-showcase";
|
|
28
29
|
CloudFunction["SUBMIT_CATEGORY_FEEDBACK"] = "ca/submit-category-feedback";
|
|
29
30
|
CloudFunction["CREATE_LIKE"] = "like/create-like";
|
|
30
31
|
CloudFunction["HANDLE_LIKE_SEEN"] = "like/handle-like-seen";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CloudFunction } from "../enum";
|
|
2
|
-
import { AddImagesRequest, AuthenticateBankIDRequest, CollectBankIDRequest, CreateLikeRequest, CreatePLSInputRequest, CreatePLSSubmissionRequest, CreateReportRequest, DeleteUserRequest, GetCARequest, GetMatchableUserRequest, GetMatchCheckRequest, GetMatchesRequest, GetAdvancedMatchRequest, GetMessagesRequest, GetPLSSubmissionRequest, GetSelfAwarenessRequest, GetUserRequest, HandleLastMessageSeenRequest, HandleLikeSeenRequest, HandleMatchSeenRequest, RegisterOnboardingRequest, RegisterUserRequest, RemoveMatchRequest, SendMessageRequest, SubmitAnswerRequest, SubmitCategoryFeedbackRequest, SubmitPLSCategoryFeedbackRequest, SubmitPLSDemographicsRequest, UpdatePLSAnswerRequest, UpdateQuestionsRequest, UpdateUserRequest, SubmitFeedbackRequest, ExpressConsultationInterestRequest, GetMyConsultationInterestRequest, GetConsultationInterestsRequest, UpdateConsultationInterestRequest, SyncAffiliateRequest, JoinEventRequest, GetEventRequest, GetEventMatchRequest, SendEventFeedbackRequest, GetEventParticipantsRequest, GetPublicEventsRequest, SetEventInterestRequest, CreateCheckoutRequest, ConfirmOrderRequest, AbandonOrderRequest } from "./request.types";
|
|
3
|
-
import { AddImagesResponse, AuthenticateBankIDResponse, CollectBankIDResponse, CreateLikeResponse, CreatePLSInputResponse, CreatePLSSubmissionResponse, CreateReportResponse, DeleteUserResponse, GetCAResponse, GetMatchableUserResponse, GetMatchableUsersResponse, GetMatchCheckResponse, GetMatchesResponse, GetAdvancedMatchResponse, GetMessagesResponse, GetPLSSubmissionResponse, GetSelfAwarenessReponse, GetUserResponse, HandleLastMessageSeenResponse, HandleLikeSeenResponse, HandleMatchSeenResponse, RegisterOnboardingResponse, RegisterUserResponse, RemoveMatchResponse, SendMessageResponse, SubmitAnswerResponse, SubmitCategoryFeedbackResponse, SubmitPLSCategoryFeedbackResponse, SubmitPLSDemographicsResponse, UpdatePLSAnswerResponse, UpdateQuestionsResponse, UpdateUserResponse, SubmitFeedbackResponse, ExpressConsultationInterestResponse, GetMyConsultationInterestResponse, GetConsultationInterestsResponse, UpdateConsultationInterestResponse, SyncAffiliateResponse, GetUserEventsResponse, JoinEventResponse, GetEventResponse, GetEventMatchResponse, SendEventFeedbackResponse, GetEventParticipantsResponse, GetPublicEventsResponse, SetEventInterestResponse, CreateCheckoutResponse, ConfirmOrderResponse, AbandonOrderResponse } from "./response.types";
|
|
2
|
+
import { AddImagesRequest, AuthenticateBankIDRequest, CollectBankIDRequest, CreateLikeRequest, CreatePLSInputRequest, CreatePLSSubmissionRequest, CreateReportRequest, DeleteUserRequest, GetCARequest, GetMatchableUserRequest, GetMatchCheckRequest, GetMatchesRequest, GetAdvancedMatchRequest, GetMessagesRequest, GetPLSSubmissionRequest, GetSelfAwarenessRequest, GetUserRequest, HandleLastMessageSeenRequest, HandleLikeSeenRequest, HandleMatchSeenRequest, RegisterOnboardingRequest, RegisterUserRequest, RemoveMatchRequest, SendMessageRequest, SubmitAnswerRequest, SubmitCategoryFeedbackRequest, SubmitPLSCategoryFeedbackRequest, SubmitPLSDemographicsRequest, UpdatePLSAnswerRequest, UpdateQuestionsRequest, UpdateUserRequest, SubmitFeedbackRequest, ExpressConsultationInterestRequest, GetMyConsultationInterestRequest, GetConsultationInterestsRequest, UpdateConsultationInterestRequest, SyncAffiliateRequest, JoinEventRequest, GetEventRequest, GetEventMatchRequest, SendEventFeedbackRequest, GetEventParticipantsRequest, GetPublicEventsRequest, SetEventInterestRequest, CreateCheckoutRequest, ConfirmOrderRequest, AbandonOrderRequest, GetEventShowcaseRequest } from "./request.types";
|
|
3
|
+
import { AddImagesResponse, AuthenticateBankIDResponse, CollectBankIDResponse, CreateLikeResponse, CreatePLSInputResponse, CreatePLSSubmissionResponse, CreateReportResponse, DeleteUserResponse, GetCAResponse, GetMatchableUserResponse, GetMatchableUsersResponse, GetMatchCheckResponse, GetMatchesResponse, GetAdvancedMatchResponse, GetMessagesResponse, GetPLSSubmissionResponse, GetSelfAwarenessReponse, GetUserResponse, HandleLastMessageSeenResponse, HandleLikeSeenResponse, HandleMatchSeenResponse, RegisterOnboardingResponse, RegisterUserResponse, RemoveMatchResponse, SendMessageResponse, SubmitAnswerResponse, SubmitCategoryFeedbackResponse, SubmitPLSCategoryFeedbackResponse, SubmitPLSDemographicsResponse, UpdatePLSAnswerResponse, UpdateQuestionsResponse, UpdateUserResponse, SubmitFeedbackResponse, ExpressConsultationInterestResponse, GetMyConsultationInterestResponse, GetConsultationInterestsResponse, UpdateConsultationInterestResponse, SyncAffiliateResponse, GetUserEventsResponse, JoinEventResponse, GetEventResponse, GetEventMatchResponse, SendEventFeedbackResponse, GetEventParticipantsResponse, GetPublicEventsResponse, SetEventInterestResponse, CreateCheckoutResponse, ConfirmOrderResponse, AbandonOrderResponse, GetEventShowcaseResponse } from "./response.types";
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated This function is deprecated.
|
|
6
6
|
* Use `CloudFunctionTypes` inside application code instead.
|
|
@@ -79,6 +79,10 @@ export type CloudFunctionTypes = {
|
|
|
79
79
|
payload: AbandonOrderRequest;
|
|
80
80
|
response: AbandonOrderResponse;
|
|
81
81
|
};
|
|
82
|
+
[CloudFunction.GET_EVENT_SHOWCASE]: {
|
|
83
|
+
payload: GetEventShowcaseRequest;
|
|
84
|
+
response: GetEventShowcaseResponse;
|
|
85
|
+
};
|
|
82
86
|
[CloudFunction.SUBMIT_FEEDBACK]: {
|
|
83
87
|
payload: SubmitFeedbackRequest;
|
|
84
88
|
response: SubmitFeedbackResponse;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type EventShowcaseMemberCard = {
|
|
2
|
+
id: string;
|
|
3
|
+
heldOn: string;
|
|
4
|
+
city?: string;
|
|
5
|
+
venueName?: string;
|
|
6
|
+
participantCount: number;
|
|
7
|
+
matchCount?: number;
|
|
8
|
+
};
|
|
9
|
+
export type EventShowcaseTotals = {
|
|
10
|
+
events: number;
|
|
11
|
+
participants: number;
|
|
12
|
+
matches?: number;
|
|
13
|
+
};
|
|
14
|
+
export type EventShowcase = {
|
|
15
|
+
cards: EventShowcaseMemberCard[];
|
|
16
|
+
totals: EventShowcaseTotals;
|
|
17
|
+
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./dq.types";
|
|
|
7
7
|
export * from "./error.types";
|
|
8
8
|
export * from "./event.types";
|
|
9
9
|
export * from "./event-interest.types";
|
|
10
|
+
export * from "./event-showcase.types";
|
|
10
11
|
export * from "./feedback.types";
|
|
11
12
|
export * from "./helper.types";
|
|
12
13
|
export * from "./like.types";
|
package/dist/types/index.js
CHANGED
|
@@ -23,6 +23,7 @@ __exportStar(require("./dq.types"), exports);
|
|
|
23
23
|
__exportStar(require("./error.types"), exports);
|
|
24
24
|
__exportStar(require("./event.types"), exports);
|
|
25
25
|
__exportStar(require("./event-interest.types"), exports);
|
|
26
|
+
__exportStar(require("./event-showcase.types"), exports);
|
|
26
27
|
__exportStar(require("./feedback.types"), exports);
|
|
27
28
|
__exportStar(require("./helper.types"), exports);
|
|
28
29
|
__exportStar(require("./like.types"), exports);
|
|
@@ -64,13 +64,15 @@ export type SetEventInterestRequest = {
|
|
|
64
64
|
};
|
|
65
65
|
export type CreateCheckoutRequest = {
|
|
66
66
|
eventId: string;
|
|
67
|
+
termsVersion: string;
|
|
67
68
|
};
|
|
68
69
|
export type ConfirmOrderRequest = {
|
|
69
|
-
|
|
70
|
+
eventId: string;
|
|
70
71
|
};
|
|
71
72
|
export type AbandonOrderRequest = {
|
|
72
73
|
eventId: string;
|
|
73
74
|
};
|
|
75
|
+
export type GetEventShowcaseRequest = undefined;
|
|
74
76
|
export type SubmitFeedbackRequest = {
|
|
75
77
|
message: string;
|
|
76
78
|
type: FeedbackType;
|
|
@@ -2,6 +2,7 @@ import { ConsultationInterest, ConsultationInterestSummary } from "./consultatio
|
|
|
2
2
|
import { Submission, CategoryEvaluation } from "./submission.types";
|
|
3
3
|
import { Event, EventOffer, FullParticipant, FullParticipantWithCS } from "./event.types";
|
|
4
4
|
import { EventInterestView } from "./event-interest.types";
|
|
5
|
+
import { EventShowcase } from "./event-showcase.types";
|
|
5
6
|
import { EventOrderView } from "./ticket.types";
|
|
6
7
|
import { UserMatch } from "./match.types";
|
|
7
8
|
import { MatchableUser, MatchCheck } from "./matchmaking.types";
|
|
@@ -52,11 +53,13 @@ export type GetPublicEventsResponse = EventOffer[];
|
|
|
52
53
|
export type SetEventInterestResponse = EventInterestView | null;
|
|
53
54
|
export type CreateCheckoutResponse = {
|
|
54
55
|
orderId: string;
|
|
55
|
-
checkoutUrl: string;
|
|
56
56
|
expiresAt: string;
|
|
57
|
+
clientSecret: string;
|
|
58
|
+
publishableKey: string;
|
|
57
59
|
};
|
|
58
60
|
export type ConfirmOrderResponse = EventOrderView;
|
|
59
61
|
export type AbandonOrderResponse = void;
|
|
62
|
+
export type GetEventShowcaseResponse = EventShowcase;
|
|
60
63
|
export type SubmitFeedbackResponse = undefined;
|
|
61
64
|
export type ExpressConsultationInterestResponse = ConsultationInterestSummary;
|
|
62
65
|
export type GetMyConsultationInterestResponse = ConsultationInterestSummary;
|
|
@@ -17,6 +17,10 @@ export type EventOrderBuyerSnapshot = {
|
|
|
17
17
|
firstName: string;
|
|
18
18
|
email: string;
|
|
19
19
|
};
|
|
20
|
+
export type EventOrderTerms = {
|
|
21
|
+
version: string;
|
|
22
|
+
acceptedAt: string;
|
|
23
|
+
};
|
|
20
24
|
export type EventOrder = {
|
|
21
25
|
id: string;
|
|
22
26
|
eventId: string;
|
|
@@ -27,8 +31,6 @@ export type EventOrder = {
|
|
|
27
31
|
amountOre: number;
|
|
28
32
|
currency: EventCurrency;
|
|
29
33
|
priceSnapshotOre: number;
|
|
30
|
-
stripeProductId?: string;
|
|
31
|
-
stripeCheckoutSessionId?: string;
|
|
32
34
|
stripePaymentIntentId?: string;
|
|
33
35
|
createdAt: string;
|
|
34
36
|
expiresAt?: string;
|
|
@@ -37,6 +39,7 @@ export type EventOrder = {
|
|
|
37
39
|
refund?: EventOrderRefund;
|
|
38
40
|
messages?: Record<string, Partial<Record<EventOrderMessageChannel, string>>>;
|
|
39
41
|
buyerSnapshot: EventOrderBuyerSnapshot;
|
|
42
|
+
terms?: EventOrderTerms;
|
|
40
43
|
deletedUser?: boolean;
|
|
41
44
|
};
|
|
42
45
|
export type EventOrderRefundView = Pick<EventOrderRefund, "amountOre" | "status" | "requestedAt">;
|
package/package.json
CHANGED
|
@@ -21,6 +21,7 @@ export enum CloudFunction {
|
|
|
21
21
|
CREATE_CHECKOUT = "ticket/create-checkout",
|
|
22
22
|
CONFIRM_ORDER = "ticket/confirm",
|
|
23
23
|
ABANDON_ORDER = "ticket/abandon",
|
|
24
|
+
GET_EVENT_SHOWCASE = "event/get-event-showcase",
|
|
24
25
|
SUBMIT_CATEGORY_FEEDBACK = "ca/submit-category-feedback",
|
|
25
26
|
CREATE_LIKE = "like/create-like",
|
|
26
27
|
HANDLE_LIKE_SEEN = "like/handle-like-seen",
|
|
@@ -47,6 +47,7 @@ import {
|
|
|
47
47
|
CreateCheckoutRequest,
|
|
48
48
|
ConfirmOrderRequest,
|
|
49
49
|
AbandonOrderRequest,
|
|
50
|
+
GetEventShowcaseRequest,
|
|
50
51
|
} from "./request.types";
|
|
51
52
|
import {
|
|
52
53
|
AddImagesResponse,
|
|
@@ -98,6 +99,7 @@ import {
|
|
|
98
99
|
CreateCheckoutResponse,
|
|
99
100
|
ConfirmOrderResponse,
|
|
100
101
|
AbandonOrderResponse,
|
|
102
|
+
GetEventShowcaseResponse,
|
|
101
103
|
} from "./response.types";
|
|
102
104
|
|
|
103
105
|
/**
|
|
@@ -186,6 +188,10 @@ export type CloudFunctionTypes = {
|
|
|
186
188
|
payload: AbandonOrderRequest;
|
|
187
189
|
response: AbandonOrderResponse;
|
|
188
190
|
};
|
|
191
|
+
[CloudFunction.GET_EVENT_SHOWCASE]: {
|
|
192
|
+
payload: GetEventShowcaseRequest;
|
|
193
|
+
response: GetEventShowcaseResponse;
|
|
194
|
+
};
|
|
189
195
|
|
|
190
196
|
// feedback
|
|
191
197
|
[CloudFunction.SUBMIT_FEEDBACK]: {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type EventShowcaseMemberCard = {
|
|
2
|
+
id: string;
|
|
3
|
+
heldOn: string;
|
|
4
|
+
city?: string;
|
|
5
|
+
venueName?: string;
|
|
6
|
+
participantCount: number;
|
|
7
|
+
matchCount?: number;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export type EventShowcaseTotals = {
|
|
11
|
+
events: number;
|
|
12
|
+
participants: number;
|
|
13
|
+
matches?: number;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type EventShowcase = {
|
|
17
|
+
cards: EventShowcaseMemberCard[];
|
|
18
|
+
totals: EventShowcaseTotals;
|
|
19
|
+
};
|
package/src/types/event.types.ts
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./dq.types";
|
|
|
7
7
|
export * from "./error.types";
|
|
8
8
|
export * from "./event.types";
|
|
9
9
|
export * from "./event-interest.types";
|
|
10
|
+
export * from "./event-showcase.types";
|
|
10
11
|
export * from "./feedback.types";
|
|
11
12
|
export * from "./helper.types";
|
|
12
13
|
export * from "./like.types";
|
|
@@ -90,13 +90,15 @@ export type SetEventInterestRequest = {
|
|
|
90
90
|
};
|
|
91
91
|
export type CreateCheckoutRequest = {
|
|
92
92
|
eventId: string;
|
|
93
|
+
termsVersion: string;
|
|
93
94
|
};
|
|
94
95
|
export type ConfirmOrderRequest = {
|
|
95
|
-
|
|
96
|
+
eventId: string;
|
|
96
97
|
};
|
|
97
98
|
export type AbandonOrderRequest = {
|
|
98
99
|
eventId: string;
|
|
99
100
|
};
|
|
101
|
+
export type GetEventShowcaseRequest = undefined;
|
|
100
102
|
|
|
101
103
|
// feedback
|
|
102
104
|
export type SubmitFeedbackRequest = {
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
FullParticipantWithCS,
|
|
11
11
|
} from "./event.types";
|
|
12
12
|
import { EventInterestView } from "./event-interest.types";
|
|
13
|
+
import { EventShowcase } from "./event-showcase.types";
|
|
13
14
|
import { EventOrderView } from "./ticket.types";
|
|
14
15
|
import { UserMatch } from "./match.types";
|
|
15
16
|
import { MatchableUser, MatchCheck } from "./matchmaking.types";
|
|
@@ -71,11 +72,13 @@ export type GetPublicEventsResponse = EventOffer[];
|
|
|
71
72
|
export type SetEventInterestResponse = EventInterestView | null;
|
|
72
73
|
export type CreateCheckoutResponse = {
|
|
73
74
|
orderId: string;
|
|
74
|
-
checkoutUrl: string;
|
|
75
75
|
expiresAt: string;
|
|
76
|
+
clientSecret: string;
|
|
77
|
+
publishableKey: string;
|
|
76
78
|
};
|
|
77
79
|
export type ConfirmOrderResponse = EventOrderView;
|
|
78
80
|
export type AbandonOrderResponse = void;
|
|
81
|
+
export type GetEventShowcaseResponse = EventShowcase;
|
|
79
82
|
|
|
80
83
|
// feedback
|
|
81
84
|
export type SubmitFeedbackResponse = undefined;
|
|
@@ -38,6 +38,11 @@ export type EventOrderBuyerSnapshot = {
|
|
|
38
38
|
email: string;
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
+
export type EventOrderTerms = {
|
|
42
|
+
version: string;
|
|
43
|
+
acceptedAt: string;
|
|
44
|
+
};
|
|
45
|
+
|
|
41
46
|
export type EventOrder = {
|
|
42
47
|
id: string;
|
|
43
48
|
eventId: string;
|
|
@@ -48,8 +53,6 @@ export type EventOrder = {
|
|
|
48
53
|
amountOre: number;
|
|
49
54
|
currency: EventCurrency;
|
|
50
55
|
priceSnapshotOre: number;
|
|
51
|
-
stripeProductId?: string;
|
|
52
|
-
stripeCheckoutSessionId?: string;
|
|
53
56
|
stripePaymentIntentId?: string;
|
|
54
57
|
createdAt: string;
|
|
55
58
|
expiresAt?: string;
|
|
@@ -58,6 +61,7 @@ export type EventOrder = {
|
|
|
58
61
|
refund?: EventOrderRefund;
|
|
59
62
|
messages?: Record<string, Partial<Record<EventOrderMessageChannel, string>>>;
|
|
60
63
|
buyerSnapshot: EventOrderBuyerSnapshot;
|
|
64
|
+
terms?: EventOrderTerms;
|
|
61
65
|
deletedUser?: boolean;
|
|
62
66
|
};
|
|
63
67
|
|