@demind-inc/core 1.0.9 → 1.0.11

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.
@@ -1,3 +1,4 @@
1
+ import { SupportedTerraProvidersType } from "./types";
1
2
  export declare const DB_COLLECTION: {
2
3
  USERS: string;
3
4
  CALENDARS: string;
@@ -5,3 +6,4 @@ export declare const DB_COLLECTION: {
5
6
  METRICS: string;
6
7
  RECOMMENDED_TASKS: string;
7
8
  };
9
+ export declare const SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[];
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DB_COLLECTION = void 0;
3
+ exports.SUPPORTED_TERRA_PROVIDERS = exports.DB_COLLECTION = void 0;
4
4
  exports.DB_COLLECTION = {
5
5
  USERS: "users",
6
6
  CALENDARS: "calendars",
@@ -8,3 +8,8 @@ exports.DB_COLLECTION = {
8
8
  METRICS: "metrics",
9
9
  RECOMMENDED_TASKS: "recommendedTasks",
10
10
  };
11
+ exports.SUPPORTED_TERRA_PROVIDERS = [
12
+ "FITBIT",
13
+ "OURA",
14
+ "GARMIN",
15
+ ];
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './models';
2
2
  export * from './constants';
3
+ export * from './types';
package/dist/index.js CHANGED
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./models"), exports);
18
18
  __exportStar(require("./constants"), exports);
19
+ __exportStar(require("./types"), exports);
@@ -12,3 +12,4 @@ export interface DailyMetricScore {
12
12
  date: string;
13
13
  updatedAt: string;
14
14
  }
15
+ export type MetricType = "stress" | "heartRate";
@@ -0,0 +1 @@
1
+ export type SupportedTerraProvidersType = "FITBIT" | "OURA" | "GARMIN";
package/dist/types.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/lib/constants.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { SupportedTerraProvidersType } from "./types";
2
+
1
3
  export const DB_COLLECTION = {
2
4
  USERS: "users",
3
5
  CALENDARS: "calendars",
@@ -5,3 +7,9 @@ export const DB_COLLECTION = {
5
7
  METRICS: "metrics",
6
8
  RECOMMENDED_TASKS: "recommendedTasks",
7
9
  };
10
+
11
+ export const SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[] = [
12
+ "FITBIT",
13
+ "OURA",
14
+ "GARMIN",
15
+ ];
package/lib/index.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './models';
2
2
  export * from './constants'
3
+ export * from './types'
@@ -1,5 +1,3 @@
1
- import { Timestamp } from "@google-cloud/firestore";
2
-
3
1
  export type CalendarType = "google" | "outlook" | "apple";
4
2
  export type CalendarEventStatus = "confirmed" | "tentative" | "cancelled";
5
3
 
@@ -13,3 +13,5 @@ export interface DailyMetricScore {
13
13
  date: string;
14
14
  updatedAt: string;
15
15
  }
16
+
17
+ export type MetricType = "stress" | "heartRate";
package/lib/types.ts ADDED
@@ -0,0 +1 @@
1
+ export type SupportedTerraProvidersType = "FITBIT" | "OURA" | "GARMIN";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {