@hedia/types 2.3.0-alpha.0 → 2.3.0-alpha.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/dist/v3/index.d.ts +2 -2
- package/dist/v3/index.js +2 -2
- package/dist/v3/index.js.map +1 -1
- package/dist/v3/physicalActivity/physicalActivity.d.ts +31 -0
- package/dist/v3/physicalActivity/{PhysicalActivity.js → physicalActivity.js} +6 -6
- package/dist/v3/physicalActivity/physicalActivity.js.map +1 -0
- package/dist/v3/sync/sync.d.ts +5 -0
- package/dist/v3/treatment/{Treatment.d.ts → treatment.d.ts} +1 -1
- package/dist/v3/treatment/{Treatment.js → treatment.js} +1 -1
- package/dist/v3/treatment/{Treatment.js.map → treatment.js.map} +1 -1
- package/dist/v3/userDetails/userDetails.d.ts +1 -1
- package/package.json +1 -1
- package/dist/v3/physicalActivity/PhysicalActivity.d.ts +0 -34
- package/dist/v3/physicalActivity/PhysicalActivity.js.map +0 -1
package/dist/v3/index.d.ts
CHANGED
|
@@ -8,6 +8,6 @@ export * from "./services/notification";
|
|
|
8
8
|
export * from "./services/forecast";
|
|
9
9
|
export * from "./services/report";
|
|
10
10
|
export * from "./services/user";
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./physicalActivity/PhysicalActivity";
|
|
11
|
+
export * from "./physicalActivity/physicalActivity";
|
|
13
12
|
export * from "./userDetails/userDetails";
|
|
13
|
+
export * from "./treatment/treatment";
|
package/dist/v3/index.js
CHANGED
|
@@ -20,7 +20,7 @@ __exportStar(require("./services/notification"), exports);
|
|
|
20
20
|
__exportStar(require("./services/forecast"), exports);
|
|
21
21
|
__exportStar(require("./services/report"), exports);
|
|
22
22
|
__exportStar(require("./services/user"), exports);
|
|
23
|
-
__exportStar(require("./
|
|
24
|
-
__exportStar(require("./physicalActivity/PhysicalActivity"), exports);
|
|
23
|
+
__exportStar(require("./physicalActivity/physicalActivity"), exports);
|
|
25
24
|
__exportStar(require("./userDetails/userDetails"), exports);
|
|
25
|
+
__exportStar(require("./treatment/treatment"), exports);
|
|
26
26
|
//# sourceMappingURL=index.js.map
|
package/dist/v3/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../v3/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA0B;AAC1B,oDAAkC;AAClC,kDAAgC;AAChC,kDAAgC;AAChC,mDAAiC;AACjC,qDAAmC;AACnC,0DAAwC;AACxC,sDAAoC;AACpC,oDAAkC;AAClC,kDAAgC;AAChC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../v3/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA0B;AAC1B,oDAAkC;AAClC,kDAAgC;AAChC,kDAAgC;AAChC,mDAAiC;AACjC,qDAAmC;AACnC,0DAAwC;AACxC,sDAAoC;AACpC,oDAAkC;AAClC,kDAAgC;AAChC,sEAAoD;AACpD,4DAA0C;AAC1C,wDAAsC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { TreamentModelEnums } from "../treatment/treatment";
|
|
2
|
+
export declare namespace PhysicalActivityModel {
|
|
3
|
+
/** Enum used to indicate the type of physical activity performed by the user. */
|
|
4
|
+
enum ActivityEnum {
|
|
5
|
+
Run = "Run",
|
|
6
|
+
Walk = "Walk",
|
|
7
|
+
Cycling = "Cycling",
|
|
8
|
+
Swim = "Swim",
|
|
9
|
+
Other = "Other"
|
|
10
|
+
}
|
|
11
|
+
interface Timestamps {
|
|
12
|
+
clientTimestamp: Date;
|
|
13
|
+
startTimestamp: string;
|
|
14
|
+
}
|
|
15
|
+
interface Identifiers {
|
|
16
|
+
uuid: string;
|
|
17
|
+
version: number;
|
|
18
|
+
}
|
|
19
|
+
interface PhysicalActivityProperties {
|
|
20
|
+
type: ActivityEnum;
|
|
21
|
+
activityIntensity: TreamentModelEnums.ActivityIntensity;
|
|
22
|
+
durationSeconds: number;
|
|
23
|
+
title: string | null;
|
|
24
|
+
}
|
|
25
|
+
interface PhysicalActivityEntry {
|
|
26
|
+
timestamps: Timestamps;
|
|
27
|
+
identifiers: Identifiers;
|
|
28
|
+
activityProperties: PhysicalActivityProperties;
|
|
29
|
+
isDeleted: boolean;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
(function (
|
|
3
|
+
exports.PhysicalActivityModel = void 0;
|
|
4
|
+
var PhysicalActivityModel;
|
|
5
|
+
(function (PhysicalActivityModel) {
|
|
6
6
|
/** Enum used to indicate the type of physical activity performed by the user. */
|
|
7
7
|
let ActivityEnum;
|
|
8
8
|
(function (ActivityEnum) {
|
|
@@ -11,6 +11,6 @@ var ActivityModel;
|
|
|
11
11
|
ActivityEnum["Cycling"] = "Cycling";
|
|
12
12
|
ActivityEnum["Swim"] = "Swim";
|
|
13
13
|
ActivityEnum["Other"] = "Other";
|
|
14
|
-
})(ActivityEnum =
|
|
15
|
-
})(
|
|
16
|
-
//# sourceMappingURL=
|
|
14
|
+
})(ActivityEnum = PhysicalActivityModel.ActivityEnum || (PhysicalActivityModel.ActivityEnum = {}));
|
|
15
|
+
})(PhysicalActivityModel = exports.PhysicalActivityModel || (exports.PhysicalActivityModel = {}));
|
|
16
|
+
//# sourceMappingURL=physicalActivity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"physicalActivity.js","sourceRoot":"","sources":["../../../v3/physicalActivity/physicalActivity.ts"],"names":[],"mappings":";;;AAEA,IAAiB,qBAAqB,CA+BrC;AA/BD,WAAiB,qBAAqB;IACrC,iFAAiF;IACjF,IAAY,YAMX;IAND,WAAY,YAAY;QACvB,2BAAW,CAAA;QACX,6BAAa,CAAA;QACb,mCAAmB,CAAA;QACnB,6BAAa,CAAA;QACb,+BAAe,CAAA;IAChB,CAAC,EANW,YAAY,GAAZ,kCAAY,KAAZ,kCAAY,QAMvB;AAuBF,CAAC,EA/BgB,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QA+BrC"}
|
package/dist/v3/sync/sync.d.ts
CHANGED
|
@@ -74,4 +74,4 @@ var TreamentModelEnums;
|
|
|
74
74
|
ActivityIntensity["hard"] = "hard";
|
|
75
75
|
})(ActivityIntensity = TreamentModelEnums.ActivityIntensity || (TreamentModelEnums.ActivityIntensity = {}));
|
|
76
76
|
})(TreamentModelEnums = exports.TreamentModelEnums || (exports.TreamentModelEnums = {}));
|
|
77
|
-
//# sourceMappingURL=
|
|
77
|
+
//# sourceMappingURL=treatment.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"treatment.js","sourceRoot":"","sources":["../../../v3/treatment/treatment.ts"],"names":[],"mappings":";;;AAAA,IAAiB,kBAAkB,CA6DlC;AA7DD,WAAiB,kBAAkB;IAClC,IAAK,KAGJ;IAHD,WAAK,KAAK;QACT,0BAAiB,CAAA;QACjB,wBAAe,CAAA;IAChB,CAAC,EAHI,KAAK,KAAL,KAAK,QAGT;IACD,4DAA4D;IAC5D,IAAY,gBAGX;IAHD,WAAY,gBAAgB;QAC3B,qCAAqB,CAAA;QACrB,mCAAmB,CAAA;IACpB,CAAC,EAHW,gBAAgB,GAAhB,mCAAgB,KAAhB,mCAAgB,QAG3B;IACD,2DAA2D;IAC3D,IAAY,gBAGX;IAHD,WAAY,gBAAgB;QAC3B,qCAAqB,CAAA;QACrB,mCAAmB,CAAA;IACpB,CAAC,EAHW,gBAAgB,GAAhB,mCAAgB,KAAhB,mCAAgB,QAG3B;IACD,IAAY,iBAOX;IAPD,WAAY,iBAAiB;QAC5B,4CAAuB,CAAA;QACvB,oCAAe,CAAA;QACf,wCAAmB,CAAA;QACnB,sCAAiB,CAAA;QACjB,oCAAe,CAAA;QACf,kCAAa,CAAA;IACd,CAAC,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
19
19
|
newsletterConsentTimestamp: Date | null;
|
|
20
20
|
}
|
|
21
|
-
interface
|
|
21
|
+
interface UserDetailsEntry {
|
|
22
22
|
identifiers: Identifiers;
|
|
23
23
|
timestamps: Timestamps;
|
|
24
24
|
name: string | null;
|
package/package.json
CHANGED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { TreamentModelEnums } from "../treatment/Treatment";
|
|
2
|
-
export declare namespace ActivityModel {
|
|
3
|
-
/** Enum used to indicate the type of physical activity performed by the user. */
|
|
4
|
-
enum ActivityEnum {
|
|
5
|
-
Run = "Run",
|
|
6
|
-
Walk = "Walk",
|
|
7
|
-
Cycling = "Cycling",
|
|
8
|
-
Swim = "Swim",
|
|
9
|
-
Other = "Other"
|
|
10
|
-
}
|
|
11
|
-
namespace Types {
|
|
12
|
-
interface Timestamps {
|
|
13
|
-
clientTimestamp: Date;
|
|
14
|
-
startTimestamp: string;
|
|
15
|
-
}
|
|
16
|
-
interface Identifiers {
|
|
17
|
-
uuid: string;
|
|
18
|
-
version: number;
|
|
19
|
-
}
|
|
20
|
-
interface ActivityBody {
|
|
21
|
-
type: ActivityEnum;
|
|
22
|
-
activityIntensity: TreamentModelEnums.ActivityIntensity;
|
|
23
|
-
durationSeconds: number;
|
|
24
|
-
title: string | null;
|
|
25
|
-
}
|
|
26
|
-
export interface ActivityEntry {
|
|
27
|
-
timestamps: Timestamps;
|
|
28
|
-
identifiers: Identifiers;
|
|
29
|
-
content: ActivityBody;
|
|
30
|
-
isDeleted: boolean;
|
|
31
|
-
}
|
|
32
|
-
export {};
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PhysicalActivity.js","sourceRoot":"","sources":["../../../v3/physicalActivity/PhysicalActivity.ts"],"names":[],"mappings":";;;AAEA,IAAiB,aAAa,CAiC7B;AAjCD,WAAiB,aAAa;IAC7B,iFAAiF;IACjF,IAAY,YAMX;IAND,WAAY,YAAY;QACvB,2BAAW,CAAA;QACX,6BAAa,CAAA;QACb,mCAAmB,CAAA;QACnB,6BAAa,CAAA;QACb,+BAAe,CAAA;IAChB,CAAC,EANW,YAAY,GAAZ,0BAAY,KAAZ,0BAAY,QAMvB;AAyBF,CAAC,EAjCgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAiC7B"}
|