heartraite 1.0.52 → 1.0.54

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.
@@ -0,0 +1,28 @@
1
+ export declare enum FirestoreCollection {
2
+ BANK_ID_ORDERS = "bankid_orders",
3
+ CONVERSATIONS = "conversations",
4
+ CA_SUBMISSIONS = "ca_submissions",
5
+ CA_SCORES = "ca_scores",
6
+ MESSAGES = "messages",
7
+ USERS = "users",
8
+ RATING = "ratings",
9
+ STRIPE_SUBSCRIPTIONS = "stripe_subscriptions",
10
+ REPORTS = "reports",
11
+ MATCHES = "matches",
12
+ REFERRALS = "referrals",
13
+ SUBMISSIONS = "submissions",
14
+ PLS_INPUTS = "pls_inputs",
15
+ PLS_ASSESSMENTS = "pls_assessments",
16
+ PLS_SCORES = "pls_scores",
17
+ PENDING_USERS = "pending_users"
18
+ }
19
+ export declare enum ConversationCollection {
20
+ MESSAGES = "messages"
21
+ }
22
+ export declare enum UserCollection {
23
+ CONVERSATIONS = "conversations",
24
+ MESSAGES = "messages",
25
+ MATCHES = "matches",
26
+ OUTGOING_LIKES = "outgoing_likes",
27
+ INCOMING_LIKES = "incoming_likes"
28
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserCollection = exports.ConversationCollection = exports.FirestoreCollection = void 0;
4
+ var FirestoreCollection;
5
+ (function (FirestoreCollection) {
6
+ FirestoreCollection["BANK_ID_ORDERS"] = "bankid_orders";
7
+ FirestoreCollection["CONVERSATIONS"] = "conversations";
8
+ FirestoreCollection["CA_SUBMISSIONS"] = "ca_submissions";
9
+ FirestoreCollection["CA_SCORES"] = "ca_scores";
10
+ FirestoreCollection["MESSAGES"] = "messages";
11
+ FirestoreCollection["USERS"] = "users";
12
+ FirestoreCollection["RATING"] = "ratings";
13
+ FirestoreCollection["STRIPE_SUBSCRIPTIONS"] = "stripe_subscriptions";
14
+ FirestoreCollection["REPORTS"] = "reports";
15
+ FirestoreCollection["MATCHES"] = "matches";
16
+ FirestoreCollection["REFERRALS"] = "referrals";
17
+ FirestoreCollection["SUBMISSIONS"] = "submissions";
18
+ FirestoreCollection["PLS_INPUTS"] = "pls_inputs";
19
+ FirestoreCollection["PLS_ASSESSMENTS"] = "pls_assessments";
20
+ FirestoreCollection["PLS_SCORES"] = "pls_scores";
21
+ FirestoreCollection["PENDING_USERS"] = "pending_users";
22
+ })(FirestoreCollection || (exports.FirestoreCollection = FirestoreCollection = {}));
23
+ var ConversationCollection;
24
+ (function (ConversationCollection) {
25
+ ConversationCollection["MESSAGES"] = "messages";
26
+ })(ConversationCollection || (exports.ConversationCollection = ConversationCollection = {}));
27
+ var UserCollection;
28
+ (function (UserCollection) {
29
+ UserCollection["CONVERSATIONS"] = "conversations";
30
+ UserCollection["MESSAGES"] = "messages";
31
+ UserCollection["MATCHES"] = "matches";
32
+ UserCollection["OUTGOING_LIKES"] = "outgoing_likes";
33
+ UserCollection["INCOMING_LIKES"] = "incoming_likes";
34
+ })(UserCollection || (exports.UserCollection = UserCollection = {}));
@@ -2,6 +2,7 @@ export * from "./app-route.enum";
2
2
  export * from "./ca.enum";
3
3
  export * from "./cloudfunction.enum";
4
4
  export * from "./evaluation.enum";
5
+ export * from "./firestore.enum";
5
6
  export * from "./like.enum";
6
7
  export * from "./match.enum";
7
8
  export * from "./report.enum";
@@ -18,6 +18,7 @@ __exportStar(require("./app-route.enum"), exports);
18
18
  __exportStar(require("./ca.enum"), exports);
19
19
  __exportStar(require("./cloudfunction.enum"), exports);
20
20
  __exportStar(require("./evaluation.enum"), exports);
21
+ __exportStar(require("./firestore.enum"), exports);
21
22
  __exportStar(require("./like.enum"), exports);
22
23
  __exportStar(require("./match.enum"), exports);
23
24
  __exportStar(require("./report.enum"), exports);
@@ -30,16 +30,13 @@ export type SubmitCategoryFeedbackResponse = CategoryEvaluation;
30
30
  export type HandleLastMessageSeenResponse = undefined;
31
31
  export type SendMessageResponse = Message;
32
32
  export type GetMessagesResponse = Message[];
33
- export type HandleLikeResponse = boolean;
34
33
  export type RemoveMatchResponse = void;
35
34
  export type GetMatchResponse = Match;
36
35
  export type HandleMatchSeenResponse = void;
37
36
  export type GetMatchesResponse = UserMatch[];
38
37
  export type GetMatchableUserResponse = MatchableUser;
39
38
  export type GetMatchableUsersResponse = MatchableUser[];
40
- export type CreateLikeResponse = {
41
- isMatch: boolean;
42
- };
39
+ export type CreateLikeResponse = void;
43
40
  export type GetLikesResponse = Like[];
44
41
  export type HandleLikeSeenResponse = void;
45
42
  export type SubmitPLSDemographicsResponse = void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.52",
3
+ "version": "1.0.54",
4
4
  "description": "Heartraite npm package for common functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,30 @@
1
+ export enum FirestoreCollection {
2
+ BANK_ID_ORDERS = "bankid_orders",
3
+ CONVERSATIONS = "conversations",
4
+ CA_SUBMISSIONS = "ca_submissions",
5
+ CA_SCORES = "ca_scores",
6
+ MESSAGES = "messages",
7
+ USERS = "users",
8
+ RATING = "ratings",
9
+ STRIPE_SUBSCRIPTIONS = "stripe_subscriptions",
10
+ REPORTS = "reports",
11
+ MATCHES = "matches",
12
+ REFERRALS = "referrals",
13
+ SUBMISSIONS = "submissions",
14
+ PLS_INPUTS = "pls_inputs",
15
+ PLS_ASSESSMENTS = "pls_assessments",
16
+ PLS_SCORES = "pls_scores",
17
+ PENDING_USERS = "pending_users",
18
+ }
19
+
20
+ export enum ConversationCollection {
21
+ MESSAGES = "messages",
22
+ }
23
+
24
+ export enum UserCollection {
25
+ CONVERSATIONS = "conversations",
26
+ MESSAGES = "messages",
27
+ MATCHES = "matches",
28
+ OUTGOING_LIKES = "outgoing_likes",
29
+ INCOMING_LIKES = "incoming_likes",
30
+ }
package/src/enum/index.ts CHANGED
@@ -2,6 +2,7 @@ export * from "./app-route.enum";
2
2
  export * from "./ca.enum";
3
3
  export * from "./cloudfunction.enum";
4
4
  export * from "./evaluation.enum";
5
+ export * from "./firestore.enum";
5
6
  export * from "./like.enum";
6
7
  export * from "./match.enum";
7
8
  export * from "./report.enum";
@@ -41,7 +41,6 @@ export type SendMessageResponse = Message;
41
41
  export type GetMessagesResponse = Message[];
42
42
 
43
43
  // match
44
- export type HandleLikeResponse = boolean;
45
44
  export type RemoveMatchResponse = void;
46
45
  export type GetMatchResponse = Match;
47
46
  export type HandleMatchSeenResponse = void;
@@ -50,7 +49,7 @@ export type GetMatchableUserResponse = MatchableUser;
50
49
  export type GetMatchableUsersResponse = MatchableUser[];
51
50
 
52
51
  // like
53
- export type CreateLikeResponse = { isMatch: boolean };
52
+ export type CreateLikeResponse = void;
54
53
  export type GetLikesResponse = Like[];
55
54
  export type HandleLikeSeenResponse = void;
56
55