@hy-capital/api-habit-tracker-types 1.0.75 → 1.0.78

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,12 @@
1
+ export type EventName = 'sign_in_clicked' | 'onboarding_next_year_next_clicked' | 'onboarding_year_flow_next_clicked' | 'onboarding_potential_into_reality_next_clicked' | 'onboarding_quiz_start_clicked' | 'onboarding_quiz_slider_dragged' | 'onboarding_quiz_slider_next_clicked' | 'onboarding_quiz_1_answered' | 'onboarding_quiz_2_answered' | 'onboarding_quiz_3_answered' | 'onboarding_quiz_4_answered' | 'onboarding_quiz_5_answered' | 'onboarding_quiz_recap_got_it_clicked' | 'onboarding_choose_another_program_clicked' | 'onboarding_choose_another_program_option_clicked' | 'onboarding_program_continue_clicked' | 'onboarding_see_your_potential_clicked' | 'onboarding_transform_my_life_clicked' | 'onboarding_checkbox_clicked' | 'onboarding_lets_do_this_clicked' | 'onboarding_allow_notifications_clicked' | 'onboarding_dont_allow_notifications_clicked' | 'onboarding_become_a_lifefixer_clicked' | 'onboarding_payment_wall_closed' | 'onboarding_restore_purchases_clicked' | 'onboarding_payment_wall_monthly_clicked' | 'onboarding_payment_wall_yearly_clicked' | 'onboarding_payment_wall_start_my_journey_clicked' | 'onboarding_one_time_offer_closed' | 'onboarding_one_time_offer_claimed' | 'tutorial_skipped' | 'tutorial_1_next_clicked' | 'tutorial_2_next_clicked' | 'tutorial_3_next_clicked' | 'tutorial_4_got_it_clicked' | 'daily_pledge_skip_clicked' | 'daily_pledge_begin_now_clicked' | 'daily_pledge_another_rep_clicked' | 'daily_pledge_proceed_clicked' | 'daily_pledge_i_pledge_to_dominate_clicked';
2
+ export declare const eventsWithPayload: EventName[];
3
+ export declare const NOT_LOGGED_IN_APPLE_ID = "NOT_LOGGED_IN_APPLE_ID";
4
+ export interface BaseAnalytics {
5
+ apple_id: string;
6
+ event_name: EventName;
7
+ payload?: string;
8
+ }
9
+ export interface DbAnalytics extends BaseAnalytics {
10
+ id: number;
11
+ created_at: string;
12
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NOT_LOGGED_IN_APPLE_ID = exports.eventsWithPayload = void 0;
4
+ exports.eventsWithPayload = [
5
+ 'onboarding_quiz_slider_dragged',
6
+ 'onboarding_quiz_1_answered',
7
+ 'onboarding_quiz_2_answered',
8
+ 'onboarding_quiz_3_answered',
9
+ 'onboarding_quiz_4_answered',
10
+ 'onboarding_quiz_5_answered',
11
+ 'onboarding_choose_another_program_option_clicked'
12
+ ];
13
+ exports.NOT_LOGGED_IN_APPLE_ID = 'NOT_LOGGED_IN_APPLE_ID';
package/dist/habit.js CHANGED
@@ -199,12 +199,12 @@ exports.habitTypesByTopicType = {
199
199
  possibleNotificationDescriptions: [
200
200
  'LATE again?... You’re a walking DISASTER. ⏰',
201
201
  'NO BEDTIME yet?... Tomorrow’s already TRASHED. 💔',
202
- 'Your brain’s BEGGING for routine... Hit the sack NOW. 🛏️',
202
+ 'Your brain’s BEGGING for routine... Start winding down NOW. 🛏️',
203
203
  'Tomorrow’s edge starts TONIGHT... Bedtime’s calling. 💤',
204
204
  'Stat: 30% focus boost from 7+ hours of sleep... FACT. ⏰',
205
205
  'Stat: 40% less fatigue with consistent bedtime... Lock it in. 💤',
206
206
  'Challenge: Set a bedtime alarm for 10 PM. You’re DISCIPLINED. 🏆',
207
- 'Challenge: Sleep 7 hours for 3 nights straight. Future you’s UNSTOPPABLE. 💤'
207
+ 'Challenge: Sleep more than 7 hours for 3 nights straight. Future you’s UNSTOPPABLE. 💤'
208
208
  ]
209
209
  },
210
210
  {
package/dist/index.d.ts CHANGED
@@ -7,3 +7,4 @@ export * from './user-daily-pledge';
7
7
  export * from './user-match-rate';
8
8
  export * from './user-topic';
9
9
  export * from './user-xp';
10
+ export * from './analytics';
package/dist/index.js CHANGED
@@ -23,3 +23,4 @@ __exportStar(require("./user-daily-pledge"), exports);
23
23
  __exportStar(require("./user-match-rate"), exports);
24
24
  __exportStar(require("./user-topic"), exports);
25
25
  __exportStar(require("./user-xp"), exports);
26
+ __exportStar(require("./analytics"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hy-capital/api-habit-tracker-types",
3
- "version": "1.0.75",
3
+ "version": "1.0.78",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,66 @@
1
+ import {IdAndTimeStamps} from './common';
2
+
3
+ export type EventName =
4
+ 'sign_in_clicked'
5
+ | 'onboarding_next_year_next_clicked'
6
+ | 'onboarding_year_flow_next_clicked'
7
+ | 'onboarding_potential_into_reality_next_clicked'
8
+ | 'onboarding_quiz_start_clicked'
9
+ | 'onboarding_quiz_slider_dragged'
10
+ | 'onboarding_quiz_slider_next_clicked'
11
+ | 'onboarding_quiz_1_answered'
12
+ | 'onboarding_quiz_2_answered'
13
+ | 'onboarding_quiz_3_answered'
14
+ | 'onboarding_quiz_4_answered'
15
+ | 'onboarding_quiz_5_answered'
16
+ | 'onboarding_quiz_recap_got_it_clicked'
17
+ | 'onboarding_choose_another_program_clicked'
18
+ | 'onboarding_choose_another_program_option_clicked'
19
+ | 'onboarding_program_continue_clicked'
20
+ | 'onboarding_see_your_potential_clicked'
21
+ | 'onboarding_transform_my_life_clicked'
22
+ | 'onboarding_checkbox_clicked'
23
+ | 'onboarding_lets_do_this_clicked'
24
+ | 'onboarding_allow_notifications_clicked'
25
+ | 'onboarding_dont_allow_notifications_clicked'
26
+ | 'onboarding_become_a_lifefixer_clicked'
27
+ | 'onboarding_payment_wall_closed'
28
+ | 'onboarding_restore_purchases_clicked'
29
+ | 'onboarding_payment_wall_monthly_clicked'
30
+ | 'onboarding_payment_wall_yearly_clicked'
31
+ | 'onboarding_payment_wall_start_my_journey_clicked'
32
+ | 'onboarding_one_time_offer_closed'
33
+ | 'onboarding_one_time_offer_claimed'
34
+ | 'tutorial_skipped'
35
+ | 'tutorial_1_next_clicked'
36
+ | 'tutorial_2_next_clicked'
37
+ | 'tutorial_3_next_clicked'
38
+ | 'tutorial_4_got_it_clicked'
39
+ | 'daily_pledge_skip_clicked'
40
+ | 'daily_pledge_begin_now_clicked'
41
+ | 'daily_pledge_another_rep_clicked'
42
+ | 'daily_pledge_proceed_clicked'
43
+ | 'daily_pledge_i_pledge_to_dominate_clicked'
44
+
45
+ export const eventsWithPayload: EventName[] = [
46
+ 'onboarding_quiz_slider_dragged',
47
+ 'onboarding_quiz_1_answered',
48
+ 'onboarding_quiz_2_answered',
49
+ 'onboarding_quiz_3_answered',
50
+ 'onboarding_quiz_4_answered',
51
+ 'onboarding_quiz_5_answered',
52
+ 'onboarding_choose_another_program_option_clicked'
53
+ ];
54
+
55
+ export const NOT_LOGGED_IN_APPLE_ID = 'NOT_LOGGED_IN_APPLE_ID';
56
+
57
+ export interface BaseAnalytics {
58
+ apple_id: string;
59
+ event_name: EventName;
60
+ payload?: string;
61
+ }
62
+
63
+ export interface DbAnalytics extends BaseAnalytics {
64
+ id: number;
65
+ created_at: string
66
+ }
package/src/habit.ts CHANGED
@@ -296,12 +296,12 @@ export const habitTypesByTopicType: Record<TopicType, HabitType[]> = {
296
296
  possibleNotificationDescriptions: [
297
297
  'LATE again?... You’re a walking DISASTER. ⏰',
298
298
  'NO BEDTIME yet?... Tomorrow’s already TRASHED. 💔',
299
- 'Your brain’s BEGGING for routine... Hit the sack NOW. 🛏️',
299
+ 'Your brain’s BEGGING for routine... Start winding down NOW. 🛏️',
300
300
  'Tomorrow’s edge starts TONIGHT... Bedtime’s calling. 💤',
301
301
  'Stat: 30% focus boost from 7+ hours of sleep... FACT. ⏰',
302
302
  'Stat: 40% less fatigue with consistent bedtime... Lock it in. 💤',
303
303
  'Challenge: Set a bedtime alarm for 10 PM. You’re DISCIPLINED. 🏆',
304
- 'Challenge: Sleep 7 hours for 3 nights straight. Future you’s UNSTOPPABLE. 💤'
304
+ 'Challenge: Sleep more than 7 hours for 3 nights straight. Future you’s UNSTOPPABLE. 💤'
305
305
  ]
306
306
  },
307
307
  {
package/src/index.ts CHANGED
@@ -7,3 +7,4 @@ export * from './user-daily-pledge';
7
7
  export * from './user-match-rate';
8
8
  export * from './user-topic';
9
9
  export * from './user-xp';
10
+ export * from './analytics';