@demind-inc/core 1.0.0 → 1.0.1

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/README.md CHANGED
@@ -11,14 +11,12 @@ Make sure to push new changes of `dist` folder generted by building to the githu
11
11
 
12
12
  ## How to use the `Core` library
13
13
 
14
- Make sure you're the member of the organization `demind-inc` and the target repo you want to install the lib is inside the org.
15
-
16
14
  ```
17
- yarn add demind-inc/lifestack-core
15
+ yarn add @demind-inc/core
18
16
  ```
19
17
 
20
18
  or
21
19
 
22
20
  ```
23
- npm install demind-inc/lifestack-core
21
+ npm install @demind-inc/core
24
22
  ```
@@ -1,5 +1,5 @@
1
- export type CalendarType = 'google' | 'outlook' | 'apple';
2
- export type CalendarEventStatus = 'confirmed' | 'tentative' | 'cancelled';
1
+ export type CalendarType = "google" | "outlook" | "apple";
2
+ export type CalendarEventStatus = "confirmed" | "tentative" | "cancelled";
3
3
  export interface Calendar {
4
4
  calendarId: string;
5
5
  internalGCalendarId?: string;
@@ -7,6 +7,7 @@ export interface Calendar {
7
7
  calendarType?: CalendarType;
8
8
  scope?: string;
9
9
  events?: CalendarEvent[];
10
+ metrics?: CalendarEventMetrics;
10
11
  }
11
12
  export interface CalendarEvent {
12
13
  eventId: string;
@@ -25,3 +26,6 @@ export interface CalendarEvent {
25
26
  updatedDate: string;
26
27
  createdDate: string;
27
28
  }
29
+ export interface CalendarEventMetrics {
30
+ stress?: number;
31
+ }
@@ -0,0 +1,11 @@
1
+ export interface Metrics {
2
+ metricId: string;
3
+ stress: {
4
+ average: AverageMetricScore[];
5
+ };
6
+ }
7
+ export interface AverageMetricScore {
8
+ score: number;
9
+ startWeek: string;
10
+ endWeek: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,3 @@
1
- export * from './Calendar';
2
- export * from './User';
1
+ export * from "./Calendar";
2
+ export * from "./User";
3
+ export * from "./Metrics";
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Calendar"), exports);
18
18
  __exportStar(require("./User"), exports);
19
+ __exportStar(require("./Metrics"), exports);
@@ -1,7 +1,7 @@
1
- import { Timestamp } from '@google-cloud/firestore';
1
+ import { Timestamp } from "@google-cloud/firestore";
2
2
 
3
- export type CalendarType = 'google' | 'outlook' | 'apple';
4
- export type CalendarEventStatus = 'confirmed' | 'tentative' | 'cancelled';
3
+ export type CalendarType = "google" | "outlook" | "apple";
4
+ export type CalendarEventStatus = "confirmed" | "tentative" | "cancelled";
5
5
 
6
6
  export interface Calendar {
7
7
  calendarId: string;
@@ -10,6 +10,7 @@ export interface Calendar {
10
10
  calendarType?: CalendarType;
11
11
  scope?: string;
12
12
  events?: CalendarEvent[];
13
+ metrics?: CalendarEventMetrics;
13
14
  }
14
15
 
15
16
  export interface CalendarEvent {
@@ -29,3 +30,7 @@ export interface CalendarEvent {
29
30
  updatedDate: string;
30
31
  createdDate: string;
31
32
  }
33
+
34
+ export interface CalendarEventMetrics {
35
+ stress?: number;
36
+ }
@@ -0,0 +1,12 @@
1
+ export interface Metrics {
2
+ metricId: string;
3
+ stress: {
4
+ average: AverageMetricScore[];
5
+ };
6
+ }
7
+
8
+ export interface AverageMetricScore {
9
+ score: number;
10
+ startWeek: string;
11
+ endWeek: string;
12
+ }
@@ -1,2 +1,3 @@
1
- export * from './Calendar'
2
- export * from './User'
1
+ export * from "./Calendar";
2
+ export * from "./User";
3
+ export * from "./Metrics";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {