@hy-capital/api-habit-tracker-types 1.0.41 → 1.0.44
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/config.d.ts +1 -0
- package/dist/config.js +4 -0
- package/dist/habit.js +7 -7
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/user.d.ts +2 -6
- package/dist/user.js +2 -0
- package/package.json +1 -1
- package/src/config.ts +1 -0
- package/src/habit.ts +7 -7
- package/src/index.ts +2 -1
- package/src/user.ts +4 -8
package/dist/config.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export declare const appName = "Liora";
|
package/dist/config.js
ADDED
package/dist/habit.js
CHANGED
@@ -4,13 +4,13 @@ exports.numberToHabitDayMappings = exports.habitDayToNumberMappings = exports.ha
|
|
4
4
|
exports.allHabitDays = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'];
|
5
5
|
exports.habitDateFormat = 'DD-MM-YYYY';
|
6
6
|
exports.habitDayToNumberMappings = {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
7
|
+
Monday: 1,
|
8
|
+
Tuesday: 2,
|
9
|
+
Wednesday: 3,
|
10
|
+
Thursday: 4,
|
11
|
+
Friday: 5,
|
12
|
+
Saturday: 6,
|
13
|
+
Sunday: 0
|
14
14
|
};
|
15
15
|
exports.numberToHabitDayMappings = {
|
16
16
|
1: 'Monday',
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/user.d.ts
CHANGED
@@ -10,12 +10,7 @@ export interface DbUser {
|
|
10
10
|
created_at: string;
|
11
11
|
updated_at: string;
|
12
12
|
}
|
13
|
-
export type InputUser = Omit<DbUser, 'id' | 'name' | 'is_onboarding_done' | 'expo_push_token' | '
|
14
|
-
export interface CreateUserRequest {
|
15
|
-
email: string;
|
16
|
-
clerk_id: string;
|
17
|
-
timezone: string;
|
18
|
-
}
|
13
|
+
export type InputUser = Omit<DbUser, 'id' | 'name' | 'is_onboarding_done' | 'expo_push_token' | 'created_at' | 'updated_at'>;
|
19
14
|
export interface UpsertUserRequest {
|
20
15
|
email: string;
|
21
16
|
clerk_id: string;
|
@@ -28,3 +23,4 @@ export interface UpdateUserRequest {
|
|
28
23
|
expo_push_token?: string;
|
29
24
|
daily_progress_notification?: string;
|
30
25
|
}
|
26
|
+
export declare const defaultDailyProgressNotificationTime = "20:10";
|
package/dist/user.js
CHANGED
package/package.json
CHANGED
package/src/config.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export const appName = 'Liora';
|
package/src/habit.ts
CHANGED
@@ -9,13 +9,13 @@ export const allHabitDays: HabitDay[] = ['Monday', 'Tuesday', 'Wednesday', 'Thur
|
|
9
9
|
export const habitDateFormat = 'DD-MM-YYYY';
|
10
10
|
|
11
11
|
export const habitDayToNumberMappings: Record<HabitDay, number> = {
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
12
|
+
Monday: 1,
|
13
|
+
Tuesday: 2,
|
14
|
+
Wednesday: 3,
|
15
|
+
Thursday: 4,
|
16
|
+
Friday: 5,
|
17
|
+
Saturday: 6,
|
18
|
+
Sunday: 0
|
19
19
|
};
|
20
20
|
|
21
21
|
export const numberToHabitDayMappings: Record<number, HabitDay> = {
|
package/src/index.ts
CHANGED
package/src/user.ts
CHANGED
@@ -11,13 +11,7 @@ export interface DbUser {
|
|
11
11
|
updated_at: string;
|
12
12
|
}
|
13
13
|
|
14
|
-
export type InputUser = Omit<DbUser, 'id' | 'name' | 'is_onboarding_done' | 'expo_push_token' | '
|
15
|
-
|
16
|
-
export interface CreateUserRequest {
|
17
|
-
email: string;
|
18
|
-
clerk_id: string;
|
19
|
-
timezone: string;
|
20
|
-
}
|
14
|
+
export type InputUser = Omit<DbUser, 'id' | 'name' | 'is_onboarding_done' | 'expo_push_token' | 'created_at' | 'updated_at'>;
|
21
15
|
|
22
16
|
export interface UpsertUserRequest {
|
23
17
|
email: string;
|
@@ -31,4 +25,6 @@ export interface UpdateUserRequest {
|
|
31
25
|
is_onboarding_done?: boolean;
|
32
26
|
expo_push_token?: string;
|
33
27
|
daily_progress_notification?: string;
|
34
|
-
}
|
28
|
+
}
|
29
|
+
|
30
|
+
export const defaultDailyProgressNotificationTime = '20:10';
|