heartraite 1.0.203 → 1.0.204
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 +3 -1
- package/dist/enum/cloudfunction.enum.js +2 -0
- package/dist/enum/firestore.enum.d.ts +2 -1
- package/dist/enum/firestore.enum.js +1 -0
- package/dist/enum/index.d.ts +1 -0
- package/dist/enum/index.js +1 -0
- package/dist/enum/system-message.enum.d.ts +5 -0
- package/dist/enum/system-message.enum.js +9 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/request.types.d.ts +7 -0
- package/dist/types/response.types.d.ts +3 -0
- package/dist/types/system-message.types.d.ts +16 -0
- package/dist/types/system-message.types.js +2 -0
- package/package.json +1 -1
- package/src/enum/cloudfunction.enum.ts +2 -0
- package/src/enum/firestore.enum.ts +1 -0
- package/src/enum/index.ts +1 -0
- package/src/enum/system-message.enum.ts +5 -0
- package/src/types/index.ts +1 -0
- package/src/types/request.types.ts +4 -0
- package/src/types/response.types.ts +5 -0
- package/src/types/system-message.types.ts +14 -0
|
@@ -56,5 +56,7 @@ export declare enum CloudFunction {
|
|
|
56
56
|
DELETE_USER = "user/delete-user",
|
|
57
57
|
SUBMIT_MATCH_FEEDBACK = "match-outcome/submit-feedback",
|
|
58
58
|
GENERATE_CODE = "ps/generate-code",
|
|
59
|
-
RESOLVE_CODE = "ps/resolve-code"
|
|
59
|
+
RESOLVE_CODE = "ps/resolve-code",
|
|
60
|
+
GET_SYSTEM_MESSAGES = "system-message/get-messages",
|
|
61
|
+
HANDLE_SYSTEM_MESSAGE_SEEN = "system-message/handle-seen"
|
|
60
62
|
}
|
|
@@ -61,4 +61,6 @@ var CloudFunction;
|
|
|
61
61
|
CloudFunction["SUBMIT_MATCH_FEEDBACK"] = "match-outcome/submit-feedback";
|
|
62
62
|
CloudFunction["GENERATE_CODE"] = "ps/generate-code";
|
|
63
63
|
CloudFunction["RESOLVE_CODE"] = "ps/resolve-code";
|
|
64
|
+
CloudFunction["GET_SYSTEM_MESSAGES"] = "system-message/get-messages";
|
|
65
|
+
CloudFunction["HANDLE_SYSTEM_MESSAGE_SEEN"] = "system-message/handle-seen";
|
|
64
66
|
})(CloudFunction || (exports.CloudFunction = CloudFunction = {}));
|
|
@@ -34,4 +34,5 @@ var FirestoreUserCollection;
|
|
|
34
34
|
FirestoreUserCollection["NOTIFICATIONS"] = "user_notifications";
|
|
35
35
|
FirestoreUserCollection["EVENTS"] = "user_events";
|
|
36
36
|
FirestoreUserCollection["SURVEYS"] = "user_surveys";
|
|
37
|
+
FirestoreUserCollection["SYSTEM_MESSAGES"] = "system_messages";
|
|
37
38
|
})(FirestoreUserCollection || (exports.FirestoreUserCollection = FirestoreUserCollection = {}));
|
package/dist/enum/index.d.ts
CHANGED
package/dist/enum/index.js
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SystemMessageCategory = void 0;
|
|
4
|
+
var SystemMessageCategory;
|
|
5
|
+
(function (SystemMessageCategory) {
|
|
6
|
+
SystemMessageCategory["MATCHMAKING_STATUS"] = "matchmaking_status";
|
|
7
|
+
SystemMessageCategory["SUPPORT_REPLY"] = "support_reply";
|
|
8
|
+
SystemMessageCategory["GENERAL"] = "general";
|
|
9
|
+
})(SystemMessageCategory || (exports.SystemMessageCategory = SystemMessageCategory = {}));
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -112,6 +112,13 @@ export type GetLikesRequest = {
|
|
|
112
112
|
export type HandleLikeSeenRequest = {
|
|
113
113
|
userId: string;
|
|
114
114
|
};
|
|
115
|
+
export type GetSystemMessagesRequest = {
|
|
116
|
+
limit: number;
|
|
117
|
+
offset: string;
|
|
118
|
+
};
|
|
119
|
+
export type HandleSystemMessageSeenRequest = {
|
|
120
|
+
messageId: string;
|
|
121
|
+
};
|
|
115
122
|
export type RemoveMatchRequest = {
|
|
116
123
|
matchId: string;
|
|
117
124
|
};
|
|
@@ -11,6 +11,7 @@ import { CA } from "./ca.types";
|
|
|
11
11
|
import { SelfAwareness } from "./sa.types";
|
|
12
12
|
import { PLSScore } from "./pls.types";
|
|
13
13
|
import { AdvancedMatch } from "./am.types";
|
|
14
|
+
import { SystemMessage } from "./system-message.types";
|
|
14
15
|
export type SyncAffiliateResponse = void;
|
|
15
16
|
export type RegisterUserResponse = {
|
|
16
17
|
success: boolean;
|
|
@@ -64,6 +65,8 @@ export type CreateLikeResponse = void;
|
|
|
64
65
|
export type GetLikesResponse = IncomingLike[];
|
|
65
66
|
export type GetOutgoingLikesResponse = OutgoingLike[];
|
|
66
67
|
export type HandleLikeSeenResponse = void;
|
|
68
|
+
export type GetSystemMessagesResponse = SystemMessage[];
|
|
69
|
+
export type HandleSystemMessageSeenResponse = void;
|
|
67
70
|
export type SubmitPLSDemographicsResponse = void;
|
|
68
71
|
export type CreatePLSInputResponse = void;
|
|
69
72
|
export type CreatePLSSubmissionResponse = Submission;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AppRoute, SystemMessageCategory } from "../enum";
|
|
2
|
+
export interface SystemMessage {
|
|
3
|
+
id: string;
|
|
4
|
+
category: SystemMessageCategory;
|
|
5
|
+
title: string;
|
|
6
|
+
body: string;
|
|
7
|
+
route?: AppRoute;
|
|
8
|
+
created: string;
|
|
9
|
+
seen: boolean;
|
|
10
|
+
seenAt?: string;
|
|
11
|
+
relatedFeedbackId?: string;
|
|
12
|
+
sentBy: {
|
|
13
|
+
source: "admin" | "system";
|
|
14
|
+
id: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
package/package.json
CHANGED
|
@@ -57,4 +57,6 @@ export enum CloudFunction {
|
|
|
57
57
|
SUBMIT_MATCH_FEEDBACK = "match-outcome/submit-feedback",
|
|
58
58
|
GENERATE_CODE = "ps/generate-code",
|
|
59
59
|
RESOLVE_CODE = "ps/resolve-code",
|
|
60
|
+
GET_SYSTEM_MESSAGES = "system-message/get-messages",
|
|
61
|
+
HANDLE_SYSTEM_MESSAGE_SEEN = "system-message/handle-seen",
|
|
60
62
|
}
|
package/src/enum/index.ts
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -154,6 +154,10 @@ export type CreateLikeRequest = {
|
|
|
154
154
|
export type GetLikesRequest = { limit: number; offset: string };
|
|
155
155
|
export type HandleLikeSeenRequest = { userId: string };
|
|
156
156
|
|
|
157
|
+
// system-message
|
|
158
|
+
export type GetSystemMessagesRequest = { limit: number; offset: string };
|
|
159
|
+
export type HandleSystemMessageSeenRequest = { messageId: string };
|
|
160
|
+
|
|
157
161
|
// match
|
|
158
162
|
export type RemoveMatchRequest = { matchId: string };
|
|
159
163
|
export type GetAdvancedMatchRequest = { matchId: string };
|
|
@@ -14,6 +14,7 @@ import { CA } from "./ca.types";
|
|
|
14
14
|
import { SelfAwareness } from "./sa.types";
|
|
15
15
|
import { PLSScore } from "./pls.types";
|
|
16
16
|
import { AdvancedMatch } from "./am.types";
|
|
17
|
+
import { SystemMessage } from "./system-message.types";
|
|
17
18
|
|
|
18
19
|
// affiliate
|
|
19
20
|
export type SyncAffiliateResponse = void;
|
|
@@ -95,6 +96,10 @@ export type GetLikesResponse = IncomingLike[];
|
|
|
95
96
|
export type GetOutgoingLikesResponse = OutgoingLike[];
|
|
96
97
|
export type HandleLikeSeenResponse = void;
|
|
97
98
|
|
|
99
|
+
// system-message
|
|
100
|
+
export type GetSystemMessagesResponse = SystemMessage[];
|
|
101
|
+
export type HandleSystemMessageSeenResponse = void;
|
|
102
|
+
|
|
98
103
|
// pls
|
|
99
104
|
export type SubmitPLSDemographicsResponse = void;
|
|
100
105
|
export type CreatePLSInputResponse = void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AppRoute, SystemMessageCategory } from "../enum";
|
|
2
|
+
|
|
3
|
+
export interface SystemMessage {
|
|
4
|
+
id: string;
|
|
5
|
+
category: SystemMessageCategory;
|
|
6
|
+
title: string;
|
|
7
|
+
body: string;
|
|
8
|
+
route?: AppRoute;
|
|
9
|
+
created: string;
|
|
10
|
+
seen: boolean;
|
|
11
|
+
seenAt?: string;
|
|
12
|
+
relatedFeedbackId?: string;
|
|
13
|
+
sentBy: { source: "admin" | "system"; id: string };
|
|
14
|
+
}
|