@hedia/types 2.2.10-alpha.3 → 2.3.0-alpha.0

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.
@@ -8,3 +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 "./sync/sync";
12
+ export * from "./physicalActivity/PhysicalActivity";
13
+ export * from "./userDetails/userDetails";
package/dist/v3/index.js CHANGED
@@ -20,4 +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("./sync/sync"), exports);
24
+ __exportStar(require("./physicalActivity/PhysicalActivity"), exports);
25
+ __exportStar(require("./userDetails/userDetails"), exports);
23
26
  //# sourceMappingURL=index.js.map
@@ -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"}
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,8CAA4B;AAC5B,sEAAoD;AACpD,4DAA0C"}
@@ -0,0 +1,34 @@
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
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ActivityModel = void 0;
4
+ var ActivityModel;
5
+ (function (ActivityModel) {
6
+ /** Enum used to indicate the type of physical activity performed by the user. */
7
+ let ActivityEnum;
8
+ (function (ActivityEnum) {
9
+ ActivityEnum["Run"] = "Run";
10
+ ActivityEnum["Walk"] = "Walk";
11
+ ActivityEnum["Cycling"] = "Cycling";
12
+ ActivityEnum["Swim"] = "Swim";
13
+ ActivityEnum["Other"] = "Other";
14
+ })(ActivityEnum = ActivityModel.ActivityEnum || (ActivityModel.ActivityEnum = {}));
15
+ })(ActivityModel = exports.ActivityModel || (exports.ActivityModel = {}));
16
+ //# sourceMappingURL=PhysicalActivity.js.map
@@ -0,0 +1 @@
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"}
@@ -1,7 +1,6 @@
1
1
  export declare namespace ForecastService {
2
2
  namespace Types {
3
3
  interface IForecastPacket {
4
- userId: string;
5
4
  inputDataTimestamp: string;
6
5
  calculationTimestamp: string;
7
6
  validPredictionTimestamp: string;
@@ -11,7 +10,6 @@ export declare namespace ForecastService {
11
10
  worstParkeBox: number;
12
11
  }
13
12
  interface IForecast {
14
- userId: string;
15
13
  inputDataTimestamp: Date;
16
14
  calculationTimestamp: Date;
17
15
  validPredictionTimestamp: Date;
@@ -22,16 +20,5 @@ export declare namespace ForecastService {
22
20
  glucoseForecastUpperDev: number;
23
21
  worstParkeBox: number;
24
22
  }
25
- interface IDevicePacketRequest {
26
- registrationToken: string;
27
- deviceId: string;
28
- timeOffset: number;
29
- }
30
- interface IDevicePacketResponse {
31
- id: string;
32
- registrationToken: string;
33
- deviceId: string;
34
- timeOffset: number;
35
- }
36
23
  }
37
24
  }
@@ -1,46 +1,5 @@
1
1
  import { LogbookModel } from "../logbook/logbook";
2
2
  export declare namespace LogbookService {
3
- namespace RPC {
4
- namespace Post {
5
- interface Request {
6
- logbook: Array<LogbookModel.LogbookEntry>;
7
- }
8
- interface Response {
9
- logbook: LogbookModel.LogbookEntry;
10
- }
11
- }
12
- namespace Delete {
13
- interface Request {
14
- uuid: string;
15
- }
16
- interface Response {
17
- uuid: string;
18
- }
19
- }
20
- namespace List {
21
- interface Cursor {
22
- uuid: string;
23
- version: number;
24
- }
25
- interface Request {
26
- deviceID: string;
27
- cursor?: Cursor;
28
- }
29
- interface Response {
30
- logbooks: Array<LogbookModel.LogbookEntry>;
31
- cursor?: Cursor;
32
- }
33
- }
34
- namespace Range {
35
- interface Request {
36
- to: Date;
37
- from?: Date;
38
- }
39
- interface Response {
40
- logbooks: Array<LogbookModel.LogbookEntry>;
41
- }
42
- }
43
- }
44
3
  namespace Events {
45
4
  interface CreateLogbook {
46
5
  logbook: LogbookModel.LogbookEntry;
@@ -0,0 +1,43 @@
1
+ export declare namespace Sync {
2
+ namespace RPC {
3
+ interface Cursor {
4
+ uuid: string;
5
+ version: number;
6
+ }
7
+ namespace Post {
8
+ interface Request<T> {
9
+ data: Array<T>;
10
+ }
11
+ interface Response<T> {
12
+ data: T;
13
+ }
14
+ }
15
+ namespace Delete {
16
+ interface Request {
17
+ uuid: string;
18
+ }
19
+ interface Response {
20
+ uuid: string;
21
+ }
22
+ }
23
+ namespace List {
24
+ interface Request {
25
+ deviceID: string;
26
+ cursor?: Cursor;
27
+ }
28
+ interface Response<T> {
29
+ data: Array<T>;
30
+ cursor?: Cursor;
31
+ }
32
+ }
33
+ namespace Range {
34
+ interface Request {
35
+ to: Date;
36
+ from?: Date;
37
+ }
38
+ interface Response<T> {
39
+ data: Array<T>;
40
+ }
41
+ }
42
+ }
43
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=sync.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sync.js","sourceRoot":"","sources":["../../../v3/sync/sync.ts"],"names":[],"mappings":""}
@@ -0,0 +1,161 @@
1
+ export declare namespace TreamentModelEnums {
2
+ /** Represents a unit for measuring blood glucose levels. */
3
+ enum BloodGlucoseUnit {
4
+ MMOL_L = "mmol/l",
5
+ MG_DL = "mg/dl"
6
+ }
7
+ /** Represents a unit for measuring blood ketone levels. */
8
+ enum BloodKetonesUnit {
9
+ MMOL_L = "mmol/l",
10
+ MG_DL = "mg/dl"
11
+ }
12
+ enum FastActingInsulin {
13
+ Novorapid = "Novorapid",
14
+ Fiasp = "Fiasp",
15
+ Humalog = "Humalog",
16
+ Apidra = "Apidra",
17
+ Other = "Other",
18
+ None = "None"
19
+ }
20
+ enum LongActingInsulin {
21
+ Lantus = "Lantus",
22
+ Basaglar = "Basaglar",
23
+ Tuojeo = "Tuojeo",
24
+ Levemir = "Levemir",
25
+ Tresiba = "Tresiba",
26
+ Other = "Other",
27
+ None = "None"
28
+ }
29
+ enum DiabetesType {
30
+ Type1 = 1,
31
+ Type2 = 2
32
+ }
33
+ enum Gender {
34
+ Male = "Male",
35
+ Female = "Female"
36
+ }
37
+ /**
38
+ * String enum for differentiating between different methods by which someone can inject insulin into the body.
39
+ * Mainly used to determine how insulin amounts should be rounded.
40
+ */
41
+ enum InjectionMethod {
42
+ PenHalf = "Pen-half",
43
+ PenWhole = "Pen-whole",
44
+ Pump = "Pump"
45
+ }
46
+ /** Enum that represents a set of insulin reduction fraction settings that can vary by the duration of the activity */
47
+ enum ActivityReductionIntervals {
48
+ fromZero = "fromZero",
49
+ fromThirty = "fromThirty",
50
+ fromFortysix = "fromFortysix"
51
+ }
52
+ /** Enum used to indicate the category or intensity of a physical activity. */
53
+ enum ActivityIntensity {
54
+ light = "light",
55
+ moderate = "moderate",
56
+ hard = "hard"
57
+ }
58
+ }
59
+ export declare namespace TreatmentModel {
60
+ export interface Timestamps {
61
+ clientTimestamp: Date;
62
+ }
63
+ export interface Identifiers {
64
+ deviceID: string;
65
+ uuid: string;
66
+ version: number;
67
+ clientVersion: string;
68
+ deviceOS: string;
69
+ }
70
+ export interface ICalculationParameter<T> {
71
+ daily: Array<T>;
72
+ overall: T;
73
+ isOverallUsed: boolean;
74
+ }
75
+ export interface BGLInterval {
76
+ low: number;
77
+ target: number;
78
+ high: number;
79
+ startTime: string;
80
+ }
81
+ export interface InsulinSettingsInterval {
82
+ insulinSensitivity: number;
83
+ carbohydrateRatio: number;
84
+ startTime: string;
85
+ }
86
+ export interface Insulin {
87
+ injectionMethod: TreamentModelEnums.InjectionMethod;
88
+ insulinSettings: ICalculationParameter<InsulinSettingsInterval>;
89
+ }
90
+ export interface BloodGlucose {
91
+ bloodGlucoseUnit: TreamentModelEnums.BloodGlucoseUnit;
92
+ bloodGlucoseTargets: ICalculationParameter<BGLInterval>;
93
+ }
94
+ export interface BloodKetone {
95
+ bloodKetoneUnit: TreamentModelEnums.BloodKetonesUnit;
96
+ }
97
+ export interface Notifications {
98
+ medicineNotification: IMedicineNotification;
99
+ remeasurementNotification: IRemeasurementNotification;
100
+ deviceIdentifiers: Array<INotificationDeviceIdentifier> | null;
101
+ }
102
+ export interface IMedicineNotification {
103
+ toggle: boolean;
104
+ dailyReminderTime: string;
105
+ }
106
+ export interface IRemeasurementNotification {
107
+ toggle: boolean;
108
+ remeasurement: number;
109
+ }
110
+ export interface INotificationDeviceIdentifier {
111
+ token: string;
112
+ timestamp: number;
113
+ }
114
+ /** Type that represents the user’s settings related to physical activity. */
115
+ export type ActivitySettings = ActivityReductionSettings & ActivityTarget;
116
+ /** Represents a set of insulin reduction fraction settings that can vary by the duration of the activity. */
117
+ export type ActivityReductionIntervals = ActivityReductionSettings[keyof ActivityReductionSettings];
118
+ /**
119
+ * Represents whether the reduction fraction is a number or it is null.
120
+ * Only for the settings of hard physical activities over 45 minutes the value is null.
121
+ * A null value represents that it is not supported by HDA.
122
+ */
123
+ export type ReductionType = ActivityReductionIntervals[keyof ActivityReductionIntervals];
124
+ type ActivityIntensityKeys = keyof typeof TreamentModelEnums.ActivityIntensity;
125
+ type ActivityReductionKeys = keyof typeof TreamentModelEnums.ActivityReductionIntervals;
126
+ type ActivityReductionSettings = ActivityPostReduction & {
127
+ [key in ActivityIntensityKeys]: ActivityReductionSettingsIntervals<key, "hard", "fromFortysix">;
128
+ };
129
+ interface ActivityPostReduction {
130
+ post: {
131
+ [key in ActivityReductionKeys]: number;
132
+ };
133
+ }
134
+ interface ActivityTarget {
135
+ target: number;
136
+ }
137
+ type ActivityReductionSettingsIntervals<K extends ActivityIntensityKeys, T extends ActivityIntensityKeys, U extends ActivityReductionKeys> = {
138
+ [key in ActivityReductionKeys]: K extends T ? (key extends U ? null | number : number) : number;
139
+ };
140
+ export interface PersonalInfo {
141
+ diabetesType: TreamentModelEnums.DiabetesType;
142
+ insulinDependent: boolean;
143
+ fastActingInsulin: TreamentModelEnums.FastActingInsulin;
144
+ longActingInsulin: TreamentModelEnums.LongActingInsulin;
145
+ gender: TreamentModelEnums.Gender;
146
+ height: number;
147
+ weight: number;
148
+ birthday: string;
149
+ }
150
+ export interface Treatment {
151
+ timestamps: Timestamps;
152
+ identifiers: Identifiers;
153
+ insulin: Insulin;
154
+ bloodGlucose: BloodGlucose;
155
+ bloodKetone: BloodKetone;
156
+ physicalActivities: ActivitySettings;
157
+ notifications: Notifications;
158
+ personalInfo: PersonalInfo;
159
+ }
160
+ export {};
161
+ }
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TreamentModelEnums = void 0;
4
+ var TreamentModelEnums;
5
+ (function (TreamentModelEnums) {
6
+ let Units;
7
+ (function (Units) {
8
+ Units["MMOL_L"] = "mmol/l";
9
+ Units["MG_DL"] = "mg/dl";
10
+ })(Units || (Units = {}));
11
+ /** Represents a unit for measuring blood glucose levels. */
12
+ let BloodGlucoseUnit;
13
+ (function (BloodGlucoseUnit) {
14
+ BloodGlucoseUnit["MMOL_L"] = "mmol/l";
15
+ BloodGlucoseUnit["MG_DL"] = "mg/dl";
16
+ })(BloodGlucoseUnit = TreamentModelEnums.BloodGlucoseUnit || (TreamentModelEnums.BloodGlucoseUnit = {}));
17
+ /** Represents a unit for measuring blood ketone levels. */
18
+ let BloodKetonesUnit;
19
+ (function (BloodKetonesUnit) {
20
+ BloodKetonesUnit["MMOL_L"] = "mmol/l";
21
+ BloodKetonesUnit["MG_DL"] = "mg/dl";
22
+ })(BloodKetonesUnit = TreamentModelEnums.BloodKetonesUnit || (TreamentModelEnums.BloodKetonesUnit = {}));
23
+ let FastActingInsulin;
24
+ (function (FastActingInsulin) {
25
+ FastActingInsulin["Novorapid"] = "Novorapid";
26
+ FastActingInsulin["Fiasp"] = "Fiasp";
27
+ FastActingInsulin["Humalog"] = "Humalog";
28
+ FastActingInsulin["Apidra"] = "Apidra";
29
+ FastActingInsulin["Other"] = "Other";
30
+ FastActingInsulin["None"] = "None";
31
+ })(FastActingInsulin = TreamentModelEnums.FastActingInsulin || (TreamentModelEnums.FastActingInsulin = {}));
32
+ let LongActingInsulin;
33
+ (function (LongActingInsulin) {
34
+ LongActingInsulin["Lantus"] = "Lantus";
35
+ LongActingInsulin["Basaglar"] = "Basaglar";
36
+ LongActingInsulin["Tuojeo"] = "Tuojeo";
37
+ LongActingInsulin["Levemir"] = "Levemir";
38
+ LongActingInsulin["Tresiba"] = "Tresiba";
39
+ LongActingInsulin["Other"] = "Other";
40
+ LongActingInsulin["None"] = "None";
41
+ })(LongActingInsulin = TreamentModelEnums.LongActingInsulin || (TreamentModelEnums.LongActingInsulin = {}));
42
+ let DiabetesType;
43
+ (function (DiabetesType) {
44
+ DiabetesType[DiabetesType["Type1"] = 1] = "Type1";
45
+ DiabetesType[DiabetesType["Type2"] = 2] = "Type2";
46
+ })(DiabetesType = TreamentModelEnums.DiabetesType || (TreamentModelEnums.DiabetesType = {}));
47
+ let Gender;
48
+ (function (Gender) {
49
+ Gender["Male"] = "Male";
50
+ Gender["Female"] = "Female";
51
+ })(Gender = TreamentModelEnums.Gender || (TreamentModelEnums.Gender = {}));
52
+ /**
53
+ * String enum for differentiating between different methods by which someone can inject insulin into the body.
54
+ * Mainly used to determine how insulin amounts should be rounded.
55
+ */
56
+ let InjectionMethod;
57
+ (function (InjectionMethod) {
58
+ InjectionMethod["PenHalf"] = "Pen-half";
59
+ InjectionMethod["PenWhole"] = "Pen-whole";
60
+ InjectionMethod["Pump"] = "Pump";
61
+ })(InjectionMethod = TreamentModelEnums.InjectionMethod || (TreamentModelEnums.InjectionMethod = {}));
62
+ /** Enum that represents a set of insulin reduction fraction settings that can vary by the duration of the activity */
63
+ let ActivityReductionIntervals;
64
+ (function (ActivityReductionIntervals) {
65
+ ActivityReductionIntervals["fromZero"] = "fromZero";
66
+ ActivityReductionIntervals["fromThirty"] = "fromThirty";
67
+ ActivityReductionIntervals["fromFortysix"] = "fromFortysix";
68
+ })(ActivityReductionIntervals = TreamentModelEnums.ActivityReductionIntervals || (TreamentModelEnums.ActivityReductionIntervals = {}));
69
+ /** Enum used to indicate the category or intensity of a physical activity. */
70
+ let ActivityIntensity;
71
+ (function (ActivityIntensity) {
72
+ ActivityIntensity["light"] = "light";
73
+ ActivityIntensity["moderate"] = "moderate";
74
+ ActivityIntensity["hard"] = "hard";
75
+ })(ActivityIntensity = TreamentModelEnums.ActivityIntensity || (TreamentModelEnums.ActivityIntensity = {}));
76
+ })(TreamentModelEnums = exports.TreamentModelEnums || (exports.TreamentModelEnums = {}));
77
+ //# sourceMappingURL=Treatment.js.map
@@ -0,0 +1 @@
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,EAPW,iBAAiB,GAAjB,oCAAiB,KAAjB,oCAAiB,QAO5B;IACD,IAAY,iBAQX;IARD,WAAY,iBAAiB;QAC5B,sCAAiB,CAAA;QACjB,0CAAqB,CAAA;QACrB,sCAAiB,CAAA;QACjB,wCAAmB,CAAA;QACnB,wCAAmB,CAAA;QACnB,oCAAe,CAAA;QACf,kCAAa,CAAA;IACd,CAAC,EARW,iBAAiB,GAAjB,oCAAiB,KAAjB,oCAAiB,QAQ5B;IACD,IAAY,YAGX;IAHD,WAAY,YAAY;QACvB,iDAAS,CAAA;QACT,iDAAS,CAAA;IACV,CAAC,EAHW,YAAY,GAAZ,+BAAY,KAAZ,+BAAY,QAGvB;IACD,IAAY,MAGX;IAHD,WAAY,MAAM;QACjB,uBAAa,CAAA;QACb,2BAAiB,CAAA;IAClB,CAAC,EAHW,MAAM,GAAN,yBAAM,KAAN,yBAAM,QAGjB;IACD;;;OAGG;IACH,IAAY,eAIX;IAJD,WAAY,eAAe;QAC1B,uCAAoB,CAAA;QACpB,yCAAsB,CAAA;QACtB,gCAAa,CAAA;IACd,CAAC,EAJW,eAAe,GAAf,kCAAe,KAAf,kCAAe,QAI1B;IACD,sHAAsH;IACtH,IAAY,0BAIX;IAJD,WAAY,0BAA0B;QACrC,mDAAqB,CAAA;QACrB,uDAAyB,CAAA;QACzB,2DAA6B,CAAA;IAC9B,CAAC,EAJW,0BAA0B,GAA1B,6CAA0B,KAA1B,6CAA0B,QAIrC;IACD,8EAA8E;IAC9E,IAAY,iBAIX;IAJD,WAAY,iBAAiB;QAC5B,oCAAe,CAAA;QACf,0CAAqB,CAAA;QACrB,kCAAa,CAAA;IACd,CAAC,EAJW,iBAAiB,GAAjB,oCAAiB,KAAjB,oCAAiB,QAI5B;AACF,CAAC,EA7DgB,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QA6DlC"}
@@ -0,0 +1,28 @@
1
+ export declare namespace UserDetailsModel {
2
+ /** Represents a language that the app can be displayed in. */
3
+ enum Languages {
4
+ da = "Dansk",
5
+ en = "English",
6
+ de = "Deutsch",
7
+ es = "Espa\u00F1ol",
8
+ fr = "Fran\u00E7ais",
9
+ it = "Italiano"
10
+ }
11
+ interface Identifiers {
12
+ deviceID: string;
13
+ uuid: string;
14
+ version: number;
15
+ }
16
+ interface Timestamps {
17
+ clientTimestamp: Date;
18
+ researchConsentTimestamp: Date | null;
19
+ newsletterConsentTimestamp: Date | null;
20
+ }
21
+ interface UserDetails {
22
+ identifiers: Identifiers;
23
+ timestamps: Timestamps;
24
+ name: string | null;
25
+ email: string;
26
+ language: keyof typeof Languages;
27
+ }
28
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserDetailsModel = void 0;
4
+ var UserDetailsModel;
5
+ (function (UserDetailsModel) {
6
+ /** Represents a language that the app can be displayed in. */
7
+ let Languages;
8
+ (function (Languages) {
9
+ Languages["da"] = "Dansk";
10
+ Languages["en"] = "English";
11
+ Languages["de"] = "Deutsch";
12
+ Languages["es"] = "Espa\u00F1ol";
13
+ Languages["fr"] = "Fran\u00E7ais";
14
+ Languages["it"] = "Italiano";
15
+ })(Languages = UserDetailsModel.Languages || (UserDetailsModel.Languages = {}));
16
+ })(UserDetailsModel = exports.UserDetailsModel || (exports.UserDetailsModel = {}));
17
+ //# sourceMappingURL=userDetails.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userDetails.js","sourceRoot":"","sources":["../../../v3/userDetails/userDetails.ts"],"names":[],"mappings":";;;AAAA,IAAiB,gBAAgB,CA6BhC;AA7BD,WAAiB,gBAAgB;IAChC,8DAA8D;IAC9D,IAAY,SAOX;IAPD,WAAY,SAAS;QACpB,yBAAY,CAAA;QACZ,2BAAc,CAAA;QACd,2BAAc,CAAA;QACd,gCAAc,CAAA;QACd,iCAAe,CAAA;QACf,4BAAe,CAAA;IAChB,CAAC,EAPW,SAAS,GAAT,0BAAS,KAAT,0BAAS,QAOpB;AAoBF,CAAC,EA7BgB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QA6BhC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedia/types",
3
- "version": "2.2.10-alpha.3",
3
+ "version": "2.3.0-alpha.0",
4
4
  "description": "Enums, interfaces, and other common types for use in Hedia's software.",
5
5
  "main": "./dist/index.js",
6
6
  "repository": {