@techtulp/choremanji-types 0.1.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 +18 -0
- package/dist/error-type.js +22 -0
- package/dist/frequency.d.ts +7 -0
- package/dist/frequency.js +11 -0
- package/dist/gender.d.ts +4 -0
- package/dist/gender.js +8 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +13 -0
- package/dist/status.d.ts +6 -0
- package/dist/status.js +10 -0
- package/dist/task-section.type.d.ts +13 -0
- package/dist/task-section.type.js +2 -0
- package/dist/user-role.d.ts +5 -0
- package/dist/user-role.js +9 -0
- package/package.json +20 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare enum ErrorType {
|
|
2
|
+
InvalidCredentials = "Invalid email or password",
|
|
3
|
+
NotFound = "Not found",
|
|
4
|
+
EmailAlreadyExists = "Email already exists",
|
|
5
|
+
AccessDenied = "Access denied",
|
|
6
|
+
Unauthorized = "Unauthorized",
|
|
7
|
+
InvalidOTP = "Invalid OTP",
|
|
8
|
+
RefreshingTokenFailed = "Refreshing token failed",
|
|
9
|
+
InvalidToken = "Invalid token",
|
|
10
|
+
NoFamily = "User does not belong to a family",
|
|
11
|
+
InvalidRefreshToken = "Invalid refresh token",
|
|
12
|
+
InvalidBirthDate = "Invalid birth date",
|
|
13
|
+
ChildNotFound = "Child not found",
|
|
14
|
+
UploadFailed = "Upload failed",
|
|
15
|
+
ProfileNotFound = "Profile not found",
|
|
16
|
+
TaskNotFound = "Task not found",
|
|
17
|
+
AssigneeNotFound = "Assignee not found"
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ErrorType = void 0;
|
|
4
|
+
var ErrorType;
|
|
5
|
+
(function (ErrorType) {
|
|
6
|
+
ErrorType["InvalidCredentials"] = "Invalid email or password";
|
|
7
|
+
ErrorType["NotFound"] = "Not found";
|
|
8
|
+
ErrorType["EmailAlreadyExists"] = "Email already exists";
|
|
9
|
+
ErrorType["AccessDenied"] = "Access denied";
|
|
10
|
+
ErrorType["Unauthorized"] = "Unauthorized";
|
|
11
|
+
ErrorType["InvalidOTP"] = "Invalid OTP";
|
|
12
|
+
ErrorType["RefreshingTokenFailed"] = "Refreshing token failed";
|
|
13
|
+
ErrorType["InvalidToken"] = "Invalid token";
|
|
14
|
+
ErrorType["NoFamily"] = "User does not belong to a family";
|
|
15
|
+
ErrorType["InvalidRefreshToken"] = "Invalid refresh token";
|
|
16
|
+
ErrorType["InvalidBirthDate"] = "Invalid birth date";
|
|
17
|
+
ErrorType["ChildNotFound"] = "Child not found";
|
|
18
|
+
ErrorType["UploadFailed"] = "Upload failed";
|
|
19
|
+
ErrorType["ProfileNotFound"] = "Profile not found";
|
|
20
|
+
ErrorType["TaskNotFound"] = "Task not found";
|
|
21
|
+
ErrorType["AssigneeNotFound"] = "Assignee not found";
|
|
22
|
+
})(ErrorType || (exports.ErrorType = ErrorType = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Frequency = void 0;
|
|
4
|
+
var Frequency;
|
|
5
|
+
(function (Frequency) {
|
|
6
|
+
Frequency["DAILY"] = "DAILY";
|
|
7
|
+
Frequency["WEEKLY"] = "WEEKLY";
|
|
8
|
+
Frequency["MONTHLY"] = "MONTHLY";
|
|
9
|
+
Frequency["ONCE"] = "ONCE";
|
|
10
|
+
Frequency["CUSTOM"] = "CUSTOM";
|
|
11
|
+
})(Frequency || (exports.Frequency = Frequency = {}));
|
package/dist/gender.d.ts
ADDED
package/dist/gender.js
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Frequency } from './frequency';
|
|
2
|
+
import { Gender } from './gender';
|
|
3
|
+
import { UserRole } from './user-role';
|
|
4
|
+
import { Status } from './status';
|
|
5
|
+
import { TaskSection } from './task-section.type';
|
|
6
|
+
import { ErrorType } from './error-type';
|
|
7
|
+
export { Frequency, Gender, UserRole, Status, TaskSection, ErrorType };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ErrorType = exports.Status = exports.UserRole = exports.Gender = exports.Frequency = void 0;
|
|
4
|
+
const frequency_1 = require("./frequency");
|
|
5
|
+
Object.defineProperty(exports, "Frequency", { enumerable: true, get: function () { return frequency_1.Frequency; } });
|
|
6
|
+
const gender_1 = require("./gender");
|
|
7
|
+
Object.defineProperty(exports, "Gender", { enumerable: true, get: function () { return gender_1.Gender; } });
|
|
8
|
+
const user_role_1 = require("./user-role");
|
|
9
|
+
Object.defineProperty(exports, "UserRole", { enumerable: true, get: function () { return user_role_1.UserRole; } });
|
|
10
|
+
const status_1 = require("./status");
|
|
11
|
+
Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return status_1.Status; } });
|
|
12
|
+
const error_type_1 = require("./error-type");
|
|
13
|
+
Object.defineProperty(exports, "ErrorType", { enumerable: true, get: function () { return error_type_1.ErrorType; } });
|
package/dist/status.d.ts
ADDED
package/dist/status.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Status = void 0;
|
|
4
|
+
var Status;
|
|
5
|
+
(function (Status) {
|
|
6
|
+
Status["TODO"] = "TODO";
|
|
7
|
+
Status["DONE"] = "DONE";
|
|
8
|
+
Status["EXCUSED"] = "EXCUSED";
|
|
9
|
+
Status["CONFIRMED"] = "CONFIRMED";
|
|
10
|
+
})(Status || (exports.Status = Status = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserRole = void 0;
|
|
4
|
+
var UserRole;
|
|
5
|
+
(function (UserRole) {
|
|
6
|
+
UserRole["ADMIN"] = "ADMIN";
|
|
7
|
+
UserRole["PARENT"] = "PARENT";
|
|
8
|
+
UserRole["CHILD"] = "CHILD";
|
|
9
|
+
})(UserRole || (exports.UserRole = UserRole = {}));
|
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@techtulp/choremanji-types",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"files": ["dist"],
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc",
|
|
9
|
+
"prepublishOnly": "npm run build"
|
|
10
|
+
},
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"author": "Alireza Nasseh",
|
|
15
|
+
"description": "Shared types for Choremanji projects",
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@types/node": "^22.10.2",
|
|
18
|
+
"typescript": "^5.7.2"
|
|
19
|
+
}
|
|
20
|
+
}
|