heartraite 1.0.113 → 1.0.115

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.
@@ -7,7 +7,8 @@ export declare enum UserClaim {
7
7
  CA_STATUS = "ca_status",
8
8
  BANKID_VERIFIED = "bankid_verified",
9
9
  ONBOARDING_COMPLETED = "onboarding_completed",
10
- SA_UNLOCKED = "sa_unlocked"
10
+ SA_UNLOCKED = "sa_unlocked",
11
+ PARTNER_PERMISSIONS = "partner_permissions"
11
12
  }
12
13
  export declare enum UserPlan {
13
14
  BASIC = "basic",
@@ -13,6 +13,7 @@ var UserClaim;
13
13
  UserClaim["BANKID_VERIFIED"] = "bankid_verified";
14
14
  UserClaim["ONBOARDING_COMPLETED"] = "onboarding_completed";
15
15
  UserClaim["SA_UNLOCKED"] = "sa_unlocked";
16
+ UserClaim["PARTNER_PERMISSIONS"] = "partner_permissions";
16
17
  })(UserClaim || (exports.UserClaim = UserClaim = {}));
17
18
  var UserPlan;
18
19
  (function (UserPlan) {
@@ -0,0 +1,18 @@
1
+ export declare enum EventAccess {
2
+ PUBLIC = "public",
3
+ INVITE_ONLY = "invite_only"
4
+ }
5
+ export type Event = {
6
+ id: string;
7
+ title: string;
8
+ description?: string;
9
+ createdBy: string;
10
+ createdByRole: "operator" | "partner";
11
+ eventDateTime: string;
12
+ location?: string;
13
+ isCancelled?: boolean;
14
+ maxParticipants?: number;
15
+ created: string;
16
+ lastUpdated: string;
17
+ access: EventAccess;
18
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EventAccess = void 0;
4
+ var EventAccess;
5
+ (function (EventAccess) {
6
+ EventAccess["PUBLIC"] = "public";
7
+ EventAccess["INVITE_ONLY"] = "invite_only";
8
+ })(EventAccess || (exports.EventAccess = EventAccess = {}));
@@ -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 "./event.types";
6
7
  export * from "./feedback.types";
7
8
  export * from "./helper.types";
8
9
  export * from "./like.types";
@@ -12,6 +13,7 @@ export * from "./message.types";
12
13
  export * from "./request.types";
13
14
  export * from "./report.types";
14
15
  export * from "./response.types";
16
+ export * from "./partner.types";
15
17
  export * from "./pls.types";
16
18
  export * from "./stripe.types";
17
19
  export * from "./submission.types";
@@ -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("./event.types"), exports);
22
23
  __exportStar(require("./feedback.types"), exports);
23
24
  __exportStar(require("./helper.types"), exports);
24
25
  __exportStar(require("./like.types"), exports);
@@ -28,6 +29,7 @@ __exportStar(require("./message.types"), exports);
28
29
  __exportStar(require("./request.types"), exports);
29
30
  __exportStar(require("./report.types"), exports);
30
31
  __exportStar(require("./response.types"), exports);
32
+ __exportStar(require("./partner.types"), exports);
31
33
  __exportStar(require("./pls.types"), exports);
32
34
  __exportStar(require("./stripe.types"), exports);
33
35
  __exportStar(require("./submission.types"), exports);
@@ -0,0 +1,13 @@
1
+ export type Partner = {
2
+ id: string;
3
+ email: string;
4
+ name: string;
5
+ companyName: string;
6
+ phone?: string;
7
+ active: boolean;
8
+ lastUpdated: string;
9
+ role: string;
10
+ created: string;
11
+ permissions: string[];
12
+ createdBy: string;
13
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.113",
3
+ "version": "1.0.115",
4
4
  "description": "Heartraite npm package for common functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -9,6 +9,7 @@ export enum UserClaim {
9
9
  BANKID_VERIFIED = "bankid_verified",
10
10
  ONBOARDING_COMPLETED = "onboarding_completed",
11
11
  SA_UNLOCKED = "sa_unlocked",
12
+ PARTNER_PERMISSIONS = "partner_permissions",
12
13
  }
13
14
 
14
15
  export enum UserPlan {
@@ -0,0 +1,19 @@
1
+ export enum EventAccess {
2
+ PUBLIC = "public",
3
+ INVITE_ONLY = "invite_only",
4
+ }
5
+
6
+ export type Event = {
7
+ id: string;
8
+ title: string;
9
+ description?: string;
10
+ createdBy: string;
11
+ createdByRole: "operator" | "partner";
12
+ eventDateTime: string;
13
+ location?: string;
14
+ isCancelled?: boolean;
15
+ maxParticipants?: number;
16
+ created: string;
17
+ lastUpdated: string;
18
+ access: EventAccess;
19
+ };
@@ -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 "./event.types";
6
7
  export * from "./feedback.types";
7
8
  export * from "./helper.types";
8
9
  export * from "./like.types";
@@ -12,6 +13,7 @@ export * from "./message.types";
12
13
  export * from "./request.types";
13
14
  export * from "./report.types";
14
15
  export * from "./response.types";
16
+ export * from "./partner.types";
15
17
  export * from "./pls.types";
16
18
  export * from "./stripe.types";
17
19
  export * from "./submission.types";
@@ -0,0 +1,13 @@
1
+ export type Partner = {
2
+ id: string;
3
+ email: string;
4
+ name: string;
5
+ companyName: string;
6
+ phone?: string;
7
+ active: boolean;
8
+ lastUpdated: string;
9
+ role: string;
10
+ created: string;
11
+ permissions: string[];
12
+ createdBy: string;
13
+ };