@krampa/common 0.2.0 → 0.3.1
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/challenge-status.d.ts +11 -0
- package/dist/challenge-status.js +20 -0
- package/dist/goal-types.d.ts +1 -1
- package/dist/goal-types.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/invite-status.d.ts +10 -0
- package/dist/invite-status.js +18 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Challenge status constants
|
|
3
|
+
*/
|
|
4
|
+
export declare const CHALLENGE_STATUSES: {
|
|
5
|
+
readonly PENDING: "PENDING";
|
|
6
|
+
readonly CANCELLED: "CANCELLED";
|
|
7
|
+
readonly ONGOING: "ONGOING";
|
|
8
|
+
readonly FINISHED: "FINISHED";
|
|
9
|
+
};
|
|
10
|
+
export declare const CHALLENGE_STATUS_VALUES: readonly ["PENDING", "CANCELLED", "ONGOING", "FINISHED"];
|
|
11
|
+
export type ChallengeStatus = (typeof CHALLENGE_STATUS_VALUES)[number];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Challenge status constants
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.CHALLENGE_STATUS_VALUES = exports.CHALLENGE_STATUSES = void 0;
|
|
7
|
+
// Challenge status enum values (matches database enum)
|
|
8
|
+
exports.CHALLENGE_STATUSES = {
|
|
9
|
+
PENDING: "PENDING",
|
|
10
|
+
CANCELLED: "CANCELLED",
|
|
11
|
+
ONGOING: "ONGOING",
|
|
12
|
+
FINISHED: "FINISHED",
|
|
13
|
+
};
|
|
14
|
+
// Array of all challenge status values (for database enum)
|
|
15
|
+
exports.CHALLENGE_STATUS_VALUES = [
|
|
16
|
+
exports.CHALLENGE_STATUSES.PENDING,
|
|
17
|
+
exports.CHALLENGE_STATUSES.CANCELLED,
|
|
18
|
+
exports.CHALLENGE_STATUSES.ONGOING,
|
|
19
|
+
exports.CHALLENGE_STATUSES.FINISHED,
|
|
20
|
+
];
|
package/dist/goal-types.d.ts
CHANGED
package/dist/goal-types.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* @krampa/common
|
|
4
|
-
* Shared types and constants
|
|
4
|
+
* Shared types and constants
|
|
5
5
|
*/
|
|
6
6
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
7
|
if (k2 === undefined) k2 = k;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Invite status constants
|
|
3
|
+
*/
|
|
4
|
+
export declare const INVITE_STATUSES: {
|
|
5
|
+
readonly PENDING: "PENDING";
|
|
6
|
+
readonly ACCEPTED: "ACCEPTED";
|
|
7
|
+
readonly DECLINED: "DECLINED";
|
|
8
|
+
};
|
|
9
|
+
export declare const INVITE_STATUS_VALUES: readonly ["PENDING", "ACCEPTED", "DECLINED"];
|
|
10
|
+
export type InviteStatus = (typeof INVITE_STATUS_VALUES)[number];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Invite status constants
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.INVITE_STATUS_VALUES = exports.INVITE_STATUSES = void 0;
|
|
7
|
+
// Invite status enum values (matches database enum)
|
|
8
|
+
exports.INVITE_STATUSES = {
|
|
9
|
+
PENDING: "PENDING",
|
|
10
|
+
ACCEPTED: "ACCEPTED",
|
|
11
|
+
DECLINED: "DECLINED",
|
|
12
|
+
};
|
|
13
|
+
// Array of all invite status values (for database enum)
|
|
14
|
+
exports.INVITE_STATUS_VALUES = [
|
|
15
|
+
exports.INVITE_STATUSES.PENDING,
|
|
16
|
+
exports.INVITE_STATUSES.ACCEPTED,
|
|
17
|
+
exports.INVITE_STATUSES.DECLINED,
|
|
18
|
+
];
|