@techtulp/choremanji-types 1.4.2 → 1.4.5

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.
@@ -0,0 +1,68 @@
1
+ export declare enum DataExportStatus {
2
+ PENDING = "PENDING",
3
+ PROCESSING = "PROCESSING",
4
+ COMPLETED = "COMPLETED",
5
+ FAILED = "FAILED",
6
+ EXPIRED = "EXPIRED"
7
+ }
8
+ export interface DataExport {
9
+ id: string;
10
+ userId: string;
11
+ status: DataExportStatus;
12
+ requestedAt: string;
13
+ completedAt: string | null;
14
+ expiresAt: string | null;
15
+ downloadCount: number;
16
+ }
17
+ export interface DataExportRequestDto {
18
+ }
19
+ export interface DataExportResponse {
20
+ exportId: string;
21
+ status: DataExportStatus;
22
+ message: string;
23
+ }
24
+ export interface DataExportStatusResponse {
25
+ exportId: string;
26
+ status: DataExportStatus;
27
+ requestedAt: string;
28
+ completedAt: string | null;
29
+ expiresAt: string | null;
30
+ downloadCount: number;
31
+ }
32
+ export interface UserDataExport {
33
+ exportedAt: string;
34
+ user: {
35
+ id: string;
36
+ name: string;
37
+ email: string;
38
+ username: string;
39
+ role: string;
40
+ timezone: string;
41
+ createdAt: string;
42
+ };
43
+ profile: {
44
+ birthDate: string | null;
45
+ gender: string | null;
46
+ points: number;
47
+ avatarUrl: string | null;
48
+ } | null;
49
+ family: {
50
+ id: string;
51
+ members: {
52
+ id: string;
53
+ name: string;
54
+ role: string;
55
+ }[];
56
+ } | null;
57
+ tasksCreated: unknown[];
58
+ tasksAssigned: unknown[];
59
+ taskTracks: unknown[];
60
+ rewardsCreated: unknown[];
61
+ rewardsAssigned: unknown[];
62
+ rewardRedemptions: unknown[];
63
+ pointHistory: unknown[];
64
+ deviceTokens: {
65
+ platform: string;
66
+ createdAt: string;
67
+ }[];
68
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DataExportStatus = void 0;
4
+ var DataExportStatus;
5
+ (function (DataExportStatus) {
6
+ DataExportStatus["PENDING"] = "PENDING";
7
+ DataExportStatus["PROCESSING"] = "PROCESSING";
8
+ DataExportStatus["COMPLETED"] = "COMPLETED";
9
+ DataExportStatus["FAILED"] = "FAILED";
10
+ DataExportStatus["EXPIRED"] = "EXPIRED";
11
+ })(DataExportStatus || (exports.DataExportStatus = DataExportStatus = {}));
@@ -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
  }
@@ -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
@@ -17,3 +17,4 @@ export * from './redemption.type';
17
17
  export * from './dashboard-data.type';
18
18
  export * from './app-home-data.type';
19
19
  export * from './account-deletion.types';
20
+ export * from './data-export.types';
package/dist/index.js CHANGED
@@ -33,3 +33,4 @@ __exportStar(require("./redemption.type"), exports);
33
33
  __exportStar(require("./dashboard-data.type"), exports);
34
34
  __exportStar(require("./app-home-data.type"), exports);
35
35
  __exportStar(require("./account-deletion.types"), exports);
36
+ __exportStar(require("./data-export.types"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@techtulp/choremanji-types",
3
- "version": "1.4.2",
3
+ "version": "1.4.5",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": ["dist"],