@techtulp/choremanji-types 1.4.6 → 1.5.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.
- package/dist/error.type.d.ts +8 -1
- package/dist/error.type.js +7 -0
- package/dist/theme.types.d.ts +3 -1
- package/package.json +1 -1
package/dist/error.type.d.ts
CHANGED
|
@@ -30,5 +30,12 @@ export declare enum ErrorType {
|
|
|
30
30
|
InsufficientPoints = "Insufficient points",
|
|
31
31
|
EmailSendFailed = "Failed to send email",
|
|
32
32
|
InvalidPassword = "Current password is incorrect",
|
|
33
|
-
CurrentPasswordRequired = "Current password is required to set a new password"
|
|
33
|
+
CurrentPasswordRequired = "Current password is required to set a new password",
|
|
34
|
+
ThemeNotFound = "Theme not found",
|
|
35
|
+
ThemeNotAvailable = "Theme not found or not available",
|
|
36
|
+
FamilyAlreadyOwnsTheme = "Family already owns this theme",
|
|
37
|
+
ThemeOwnershipNotFound = "Theme ownership not found",
|
|
38
|
+
ThemeAssignmentNotFound = "Theme assignment not found",
|
|
39
|
+
ThemeAlreadyAssigned = "Theme already assigned to this child",
|
|
40
|
+
FamilyDoesNotOwnTheme = "Family does not own this theme"
|
|
34
41
|
}
|
package/dist/error.type.js
CHANGED
|
@@ -35,4 +35,11 @@ var ErrorType;
|
|
|
35
35
|
ErrorType["EmailSendFailed"] = "Failed to send email";
|
|
36
36
|
ErrorType["InvalidPassword"] = "Current password is incorrect";
|
|
37
37
|
ErrorType["CurrentPasswordRequired"] = "Current password is required to set a new password";
|
|
38
|
+
ErrorType["ThemeNotFound"] = "Theme not found";
|
|
39
|
+
ErrorType["ThemeNotAvailable"] = "Theme not found or not available";
|
|
40
|
+
ErrorType["FamilyAlreadyOwnsTheme"] = "Family already owns this theme";
|
|
41
|
+
ErrorType["ThemeOwnershipNotFound"] = "Theme ownership not found";
|
|
42
|
+
ErrorType["ThemeAssignmentNotFound"] = "Theme assignment not found";
|
|
43
|
+
ErrorType["ThemeAlreadyAssigned"] = "Theme already assigned to this child";
|
|
44
|
+
ErrorType["FamilyDoesNotOwnTheme"] = "Family does not own this theme";
|
|
38
45
|
})(ErrorType || (exports.ErrorType = ErrorType = {}));
|
package/dist/theme.types.d.ts
CHANGED
|
@@ -2,12 +2,14 @@ export interface ThemeType {
|
|
|
2
2
|
id: string;
|
|
3
3
|
name: string;
|
|
4
4
|
description: string;
|
|
5
|
-
|
|
5
|
+
slug: string;
|
|
6
6
|
version: string;
|
|
7
7
|
is_deprecated: boolean;
|
|
8
8
|
is_free: boolean;
|
|
9
9
|
asset_size_mb: number;
|
|
10
10
|
created_at: Date;
|
|
11
|
+
thumbnail_url?: string;
|
|
12
|
+
maji_main_url?: string;
|
|
11
13
|
}
|
|
12
14
|
export interface ThemeOwnershipType {
|
|
13
15
|
id: string;
|