@hy-capital/api-habit-tracker-types 1.0.63 → 1.0.65

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.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',
package/dist/quote.d.ts CHANGED
@@ -1,6 +1,9 @@
1
+ import { TopicType } from './user-topic';
1
2
  export interface BaseQuote {
2
3
  text: string;
3
4
  author: string;
5
+ avatar_url: string | null;
6
+ topic_type: TopicType;
4
7
  }
5
8
  export interface DbQuote extends BaseQuote {
6
9
  id: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hy-capital/api-habit-tracker-types",
3
- "version": "1.0.63",
3
+ "version": "1.0.65",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "types": "dist/index.d.ts",
package/src/habit.ts CHANGED
@@ -122,20 +122,20 @@ export interface DbHabit extends BaseHabit {
122
122
  }
123
123
 
124
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;
125
+ mostMasteredHabit: {
126
+ habit: DbHabit | null,
127
+ count: number
128
+ };
129
+ longestStreak: {
130
+ habit: DbHabit | null,
131
+ streak: number
132
+ };
133
+ totalHabitsCompleted: number;
134
134
  }
135
135
 
136
136
  export interface HabitsResponse {
137
- habits: DbHabit[];
138
- stats: HabitStats;
137
+ habits: DbHabit[];
138
+ stats: HabitStats;
139
139
  }
140
140
 
141
141
  export const habitTimeToClockTime: Record<HabitTime, { hour: number, minute: number }> = {
@@ -467,7 +467,7 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
467
467
  'Side Hustle': [
468
468
  {
469
469
  id: 16,
470
- name: 'Dedicate 2 hours to hustle',
470
+ name: 'Dedicate 2h to hustle',
471
471
  description: '2 focused hours on your hustle. No distractions, no excuses.',
472
472
  difficulty: 3,
473
473
  topicType: 'Side Hustle',
package/src/quote.ts CHANGED
@@ -1,6 +1,10 @@
1
+ import {TopicType} from './user-topic';
2
+
1
3
  export interface BaseQuote {
2
4
  text: string;
3
5
  author: string;
6
+ avatar_url: string | null;
7
+ topic_type: TopicType;
4
8
  }
5
9
 
6
10
  export interface DbQuote extends BaseQuote {