pennly-types 1.0.0 → 1.0.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/package.json +5 -2
- package/src/index.ts +0 -93
- package/tsconfig.json +0 -18
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pennly-types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Shared TypeScript definitions for Pennly",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
7
10
|
"scripts": {
|
|
8
11
|
"build": "tsc",
|
|
9
12
|
"dev": "tsc -w"
|
|
@@ -11,4 +14,4 @@
|
|
|
11
14
|
"devDependencies": {
|
|
12
15
|
"typescript": "^5.9.3"
|
|
13
16
|
}
|
|
14
|
-
}
|
|
17
|
+
}
|
package/src/index.ts
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared Type Definitions for Pennly
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
export enum TransactionType {
|
|
6
|
-
INCOME = 'INCOME',
|
|
7
|
-
EXPENSE = 'EXPENSE',
|
|
8
|
-
TRANSFER = 'TRANSFER',
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface User {
|
|
12
|
-
id: string;
|
|
13
|
-
email: string;
|
|
14
|
-
name?: string;
|
|
15
|
-
createdAt: Date | string;
|
|
16
|
-
updatedAt: Date | string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface Wallet {
|
|
20
|
-
id: string;
|
|
21
|
-
name: string;
|
|
22
|
-
balance: number;
|
|
23
|
-
currency: string;
|
|
24
|
-
userId: string;
|
|
25
|
-
createdAt: Date | string;
|
|
26
|
-
updatedAt: Date | string;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface Category {
|
|
30
|
-
id: string;
|
|
31
|
-
name: string;
|
|
32
|
-
icon?: string;
|
|
33
|
-
color?: string;
|
|
34
|
-
type: TransactionType;
|
|
35
|
-
userId?: string; // Optional if global category
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface Transaction {
|
|
39
|
-
id: string;
|
|
40
|
-
amount: number;
|
|
41
|
-
type: TransactionType;
|
|
42
|
-
description?: string;
|
|
43
|
-
date: Date | string;
|
|
44
|
-
categoryId: string;
|
|
45
|
-
walletId: string;
|
|
46
|
-
userId: string;
|
|
47
|
-
createdAt: Date | string;
|
|
48
|
-
updatedAt: Date | string;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface Budget {
|
|
52
|
-
id: string;
|
|
53
|
-
amount: number;
|
|
54
|
-
categoryId: string;
|
|
55
|
-
userId: string;
|
|
56
|
-
startDate: Date | string;
|
|
57
|
-
endDate: Date | string;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export interface RecurringTransaction {
|
|
61
|
-
id: string;
|
|
62
|
-
amount: number;
|
|
63
|
-
type: TransactionType;
|
|
64
|
-
frequency: 'DAILY' | 'WEEKLY' | 'MONTHLY' | 'YEARLY';
|
|
65
|
-
startDate: Date | string;
|
|
66
|
-
categoryId: string;
|
|
67
|
-
walletId: string;
|
|
68
|
-
userId: string;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export interface NotificationSettings {
|
|
72
|
-
id: string;
|
|
73
|
-
userId: string;
|
|
74
|
-
pauseAll: boolean;
|
|
75
|
-
accountActivity: boolean;
|
|
76
|
-
vaultAndFlow: boolean;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export interface RemoteConfig {
|
|
80
|
-
auth: {
|
|
81
|
-
google: boolean;
|
|
82
|
-
email: boolean;
|
|
83
|
-
guest: boolean;
|
|
84
|
-
};
|
|
85
|
-
navigation: {
|
|
86
|
-
home: boolean;
|
|
87
|
-
accounts: boolean;
|
|
88
|
-
history: boolean;
|
|
89
|
-
insights: boolean;
|
|
90
|
-
goals: boolean;
|
|
91
|
-
profile: boolean;
|
|
92
|
-
};
|
|
93
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2022",
|
|
4
|
-
"module": "CommonJS",
|
|
5
|
-
"moduleResolution": "node",
|
|
6
|
-
"declaration": true,
|
|
7
|
-
"declarationMap": true,
|
|
8
|
-
"sourceMap": true,
|
|
9
|
-
"outDir": "dist",
|
|
10
|
-
"rootDir": "src",
|
|
11
|
-
"strict": true,
|
|
12
|
-
"esModuleInterop": true,
|
|
13
|
-
"skipLibCheck": true,
|
|
14
|
-
"forceConsistentCasingInFileNames": true
|
|
15
|
-
},
|
|
16
|
-
"include": ["src/**/*"],
|
|
17
|
-
"exclude": ["node_modules", "dist"]
|
|
18
|
-
}
|