@hy-capital/api-habit-tracker-types 1.0.62 → 1.0.64

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/habit.d.ts CHANGED
@@ -68,21 +68,6 @@ export interface DbHabit extends BaseHabit {
68
68
  created_at: string;
69
69
  updated_at: string;
70
70
  }
71
- export interface HabitStats {
72
- mostMasteredHabit: {
73
- habit: DbHabit | null;
74
- count: number;
75
- };
76
- longestStreak: {
77
- habit: DbHabit | null;
78
- streak: number;
79
- };
80
- totalHabitsCompleted: number;
81
- }
82
- export interface HabitsResponse {
83
- habits: DbHabit[];
84
- stats: HabitStats;
85
- }
86
71
  export declare const habitTimeToClockTime: Record<HabitTime, {
87
72
  hour: number;
88
73
  minute: number;
package/dist/habit.js CHANGED
@@ -373,7 +373,7 @@ exports.habitTypesByTopicType = {
373
373
  'Side Hustle': [
374
374
  {
375
375
  id: 16,
376
- name: 'Dedicate 2 hours to hustle',
376
+ name: 'Dedicate 2h to hustle',
377
377
  description: '2 focused hours on your hustle. No distractions, no excuses.',
378
378
  difficulty: 3,
379
379
  topicType: 'Side Hustle',
@@ -0,0 +1,12 @@
1
+ import { TopicType } from './user-topic';
2
+ export interface BaseQuote {
3
+ text: string;
4
+ author: string;
5
+ avatar_url: string | null;
6
+ topic_type: TopicType;
7
+ }
8
+ export interface DbQuote extends BaseQuote {
9
+ id: number;
10
+ created_at: string;
11
+ updated_at: string;
12
+ }
package/dist/quote.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hy-capital/api-habit-tracker-types",
3
- "version": "1.0.62",
3
+ "version": "1.0.64",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "types": "dist/index.d.ts",
package/src/habit.ts CHANGED
@@ -121,23 +121,6 @@ export interface DbHabit extends BaseHabit {
121
121
  updated_at: string
122
122
  }
123
123
 
124
- export interface HabitStats {
125
- mostMasteredHabit: {
126
- habit: DbHabit | null,
127
- count: number
128
- };
129
- longestStreak: {
130
- habit: DbHabit | null,
131
- streak: number
132
- };
133
- totalHabitsCompleted: number;
134
- }
135
-
136
- export interface HabitsResponse {
137
- habits: DbHabit[];
138
- stats: HabitStats;
139
- }
140
-
141
124
  export const habitTimeToClockTime: Record<HabitTime, { hour: number, minute: number }> = {
142
125
  Morning: {
143
126
  hour: 9,
@@ -467,7 +450,7 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
467
450
  'Side Hustle': [
468
451
  {
469
452
  id: 16,
470
- name: 'Dedicate 2 hours to hustle',
453
+ name: 'Dedicate 2h to hustle',
471
454
  description: '2 focused hours on your hustle. No distractions, no excuses.',
472
455
  difficulty: 3,
473
456
  topicType: 'Side Hustle',
package/src/quote.ts ADDED
@@ -0,0 +1,14 @@
1
+ import {TopicType} from './user-topic';
2
+
3
+ export interface BaseQuote {
4
+ text: string;
5
+ author: string;
6
+ avatar_url: string | null;
7
+ topic_type: TopicType;
8
+ }
9
+
10
+ export interface DbQuote extends BaseQuote {
11
+ id: number;
12
+ created_at: string
13
+ updated_at: string
14
+ }