@krampa/common 0.14.0 → 0.16.0

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.
@@ -2,10 +2,10 @@
2
2
  * Invite status constants
3
3
  */
4
4
  export declare const INVITE_STATUSES: {
5
- readonly PENDING: "PENDING";
6
- readonly ACCEPTED: "ACCEPTED";
7
- readonly READY: "READY";
5
+ readonly INVITED: "INVITED";
6
+ readonly SETTING_UP: "SETTING_UP";
7
+ readonly ACTIVE: "ACTIVE";
8
8
  readonly DECLINED: "DECLINED";
9
9
  };
10
- export declare const INVITE_STATUS_VALUES: readonly ["PENDING", "ACCEPTED", "READY", "DECLINED"];
10
+ export declare const INVITE_STATUS_VALUES: readonly ["INVITED", "SETTING_UP", "ACTIVE", "DECLINED"];
11
11
  export type InviteStatus = (typeof INVITE_STATUS_VALUES)[number];
@@ -6,15 +6,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.INVITE_STATUS_VALUES = exports.INVITE_STATUSES = void 0;
7
7
  // Invite status enum values (matches database enum)
8
8
  exports.INVITE_STATUSES = {
9
- PENDING: "PENDING",
10
- ACCEPTED: "ACCEPTED",
11
- READY: "READY",
9
+ INVITED: "INVITED",
10
+ SETTING_UP: "SETTING_UP",
11
+ ACTIVE: "ACTIVE",
12
12
  DECLINED: "DECLINED",
13
13
  };
14
14
  // Array of all invite status values (for database enum)
15
15
  exports.INVITE_STATUS_VALUES = [
16
- exports.INVITE_STATUSES.PENDING,
17
- exports.INVITE_STATUSES.ACCEPTED,
18
- exports.INVITE_STATUSES.READY,
16
+ exports.INVITE_STATUSES.INVITED,
17
+ exports.INVITE_STATUSES.SETTING_UP,
18
+ exports.INVITE_STATUSES.ACTIVE,
19
19
  exports.INVITE_STATUSES.DECLINED,
20
20
  ];
@@ -1,4 +1,4 @@
1
- import { GoalType } from './goal-types';
1
+ import { GoalType } from "./goal-types";
2
2
  /**
3
3
  * Notification types for FCM push notifications
4
4
  */
@@ -12,7 +12,9 @@ export declare enum NotificationType {
12
12
  NEW_LOG_ENTRY = "new_log_entry",
13
13
  GOAL_ACHIEVED = "goal_achieved",
14
14
  GOALS_SUBMITTED = "goals_submitted",
15
- CHEER = "cheer"
15
+ CHEER = "cheer",
16
+ CHALLENGE_START_DELAYED = "challenge_start_delayed",
17
+ CHALLENGE_CANCELLED = "challenge_cancelled"
16
18
  }
17
19
  /**
18
20
  * Notification payload sent to FCM
@@ -16,4 +16,6 @@ var NotificationType;
16
16
  NotificationType["GOAL_ACHIEVED"] = "goal_achieved";
17
17
  NotificationType["GOALS_SUBMITTED"] = "goals_submitted";
18
18
  NotificationType["CHEER"] = "cheer";
19
+ NotificationType["CHALLENGE_START_DELAYED"] = "challenge_start_delayed";
20
+ NotificationType["CHALLENGE_CANCELLED"] = "challenge_cancelled";
19
21
  })(NotificationType || (exports.NotificationType = NotificationType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krampa/common",
3
- "version": "0.14.0",
3
+ "version": "0.16.0",
4
4
  "description": "Shared types and constants for Krampa fitness challenge app",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",