@techtulp/choremanji-types 1.4.4 → 1.4.6
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/error.type.d.ts +3 -1
- package/dist/error.type.js +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/theme.types.d.ts +30 -0
- package/dist/theme.types.js +2 -0
- package/package.json +4 -2
package/dist/error.type.d.ts
CHANGED
|
@@ -28,5 +28,7 @@ export declare enum ErrorType {
|
|
|
28
28
|
AssigneeNotFound = "Assignee not found",
|
|
29
29
|
RewardNotFound = "Reward not found",
|
|
30
30
|
InsufficientPoints = "Insufficient points",
|
|
31
|
-
EmailSendFailed = "Failed to send email"
|
|
31
|
+
EmailSendFailed = "Failed to send email",
|
|
32
|
+
InvalidPassword = "Current password is incorrect",
|
|
33
|
+
CurrentPasswordRequired = "Current password is required to set a new password"
|
|
32
34
|
}
|
package/dist/error.type.js
CHANGED
|
@@ -33,4 +33,6 @@ var ErrorType;
|
|
|
33
33
|
ErrorType["RewardNotFound"] = "Reward not found";
|
|
34
34
|
ErrorType["InsufficientPoints"] = "Insufficient points";
|
|
35
35
|
ErrorType["EmailSendFailed"] = "Failed to send email";
|
|
36
|
+
ErrorType["InvalidPassword"] = "Current password is incorrect";
|
|
37
|
+
ErrorType["CurrentPasswordRequired"] = "Current password is required to set a new password";
|
|
36
38
|
})(ErrorType || (exports.ErrorType = ErrorType = {}));
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -34,3 +34,4 @@ __exportStar(require("./dashboard-data.type"), exports);
|
|
|
34
34
|
__exportStar(require("./app-home-data.type"), exports);
|
|
35
35
|
__exportStar(require("./account-deletion.types"), exports);
|
|
36
36
|
__exportStar(require("./data-export.types"), exports);
|
|
37
|
+
__exportStar(require("./theme.types"), exports);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface ThemeType {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
thumbnail_url: string;
|
|
6
|
+
version: string;
|
|
7
|
+
is_deprecated: boolean;
|
|
8
|
+
is_free: boolean;
|
|
9
|
+
asset_size_mb: number;
|
|
10
|
+
created_at: Date;
|
|
11
|
+
}
|
|
12
|
+
export interface ThemeOwnershipType {
|
|
13
|
+
id: string;
|
|
14
|
+
theme_id: string;
|
|
15
|
+
acquired_version: string;
|
|
16
|
+
created_at: Date;
|
|
17
|
+
theme?: ThemeType;
|
|
18
|
+
}
|
|
19
|
+
export interface ThemeAssignmentType {
|
|
20
|
+
id: string;
|
|
21
|
+
theme_id: string;
|
|
22
|
+
is_active: boolean;
|
|
23
|
+
created_at: Date;
|
|
24
|
+
theme?: ThemeType;
|
|
25
|
+
}
|
|
26
|
+
export interface ThemeWithOwnershipType extends ThemeType {
|
|
27
|
+
is_owned: boolean;
|
|
28
|
+
is_assigned?: boolean;
|
|
29
|
+
assigned_children?: string[];
|
|
30
|
+
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@techtulp/choremanji-types",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.6",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
|
-
"files": [
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
7
9
|
"scripts": {
|
|
8
10
|
"build": "tsc",
|
|
9
11
|
"prepublishOnly": "npm run build"
|