-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
95 lines (92 loc) · 4.19 KB
/
index.ts
File metadata and controls
95 lines (92 loc) · 4.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
import { localizeText } from './localizeText.ts';
import * as settings from './settings.ts';
import { pryv, cmc } from './patchedPryv.ts';
import { HDSModel } from './HDSModel/HDSModel.ts';
import * as appTemplates from './appTemplates/appTemplates.ts';
import * as logger from './logger.ts';
import { HDSService } from './HDSService.ts';
import * as HDSModelInitAndSingleton from './HDSModel/HDSModelInitAndSingleton.ts';
import * as toolkit from './toolkit/index.ts';
import { durationToSeconds, durationToLabel } from './utils/duration.ts';
import { computeReminders } from './HDSModel/reminders.ts';
import { eventToShortText, formatEventDate } from './HDSModel/eventToShortText.ts';
import { MonitorScope } from './MonitorScope.ts';
import { HDSSettings, SETTING_TYPES } from './settings/HDSSettings.ts';
import { HDSProfile, PROFILE_FIELDS } from './settings/HDSProfile.ts';
import { HDSModelConversions } from './HDSModel/HDSModel-Conversions.ts';
import { HDSModelConverters } from './HDSModel/HDSModel-Converters.ts';
import { HDSModelPreferred, getPreferredInput, getPreferredDisplay } from './HDSModel/HDSModel-Preferred.ts';
import { HDSModelAppStreams } from './HDSModel/HDSModel-AppStreams.ts';
import { EuclidianDistanceEngine } from './converters/EuclidianDistanceEngine.ts';
import { HDSLibError } from './errors.ts';
import { extractOverloadAsDefinitions } from './HDSModel/overloadExtract.ts';
import * as cmcFormSpec from './cmc/formSpec.ts';
import * as cmcAppScope from './cmc/appScope.ts';
import * as cmcConstants from './cmc/constants.ts';
export type { MonitorScopeConfig, MonitorScopeCallbacks } from './MonitorScope.ts';
export type { ReminderConfig } from './HDSModel/HDSItemDef.ts';
export type { ReminderSource, ReminderStatus } from './HDSModel/reminders.ts';
export type { SettingKey, SettingsValues, DateFormat, UnitSystem, Theme } from './settings/HDSSettings.ts';
export type { ProfileKey, ProfileValues } from './settings/HDSProfile.ts';
export type { ConverterPack, ConversionResult as ConverterConversionResult, ObservationVector, SourceBlock } from './converters/types.ts';
export type { PreferredConfig } from './HDSModel/HDSModel-Preferred.ts';
export type { AppStreamDef } from './HDSModel/HDSModel-AppStreams.ts';
export type { HDSModelOverload } from './HDSModel/HDSModel-Overload.ts';
export type { InitHDSModelOptions } from './HDSModel/HDSModelInitAndSingleton.ts';
export const getHDSModel = HDSModelInitAndSingleton.getModel;
export const initHDSModel = HDSModelInitAndSingleton.initHDSModel;
export { pryv, cmc, settings, HDSService, HDSModel, appTemplates, localizeText, localizeText as l, toolkit, logger, durationToSeconds, durationToLabel, computeReminders, eventToShortText, formatEventDate, MonitorScope, HDSSettings, SETTING_TYPES, HDSProfile, PROFILE_FIELDS, HDSModelConversions, HDSModelConverters, HDSModelPreferred, getPreferredInput, getPreferredDisplay, HDSModelAppStreams, EuclidianDistanceEngine, HDSLibError, extractOverloadAsDefinitions, cmcFormSpec, cmcAppScope, cmcConstants };
export type { FormSpec, FormSpecRecord } from './cmc/formSpec.ts';
// Plan 45 — top-level type re-exports so consumers can `import type { CustomFieldDeclaration } from 'hds-lib'`.
export type {
CustomFieldEventType,
EmptyDef,
HDSCustomFieldDef,
HDSCustomField
} from './appTemplates/customFieldTypes.ts';
export type {
StreamPermission,
ExistingStreamRef,
CustomFieldDeclaration,
AppTemplateSection,
AppTemplate
} from './appTemplates/templateTypes.ts';
export type {
CustomFieldResolution,
ResolutionKind,
VirtualItemDef,
VirtualItemFieldType
} from './appTemplates/resolveStream.ts';
// also exporting default for typescript to capture HDSLib.. there is surely a nicer way to do
const HDSLib = {
getHDSModel,
initHDSModel,
pryv,
cmc,
settings,
HDSService,
HDSModel,
appTemplates,
localizeText,
l: localizeText,
toolkit,
logger,
durationToSeconds,
durationToLabel,
computeReminders,
eventToShortText,
formatEventDate,
MonitorScope,
HDSSettings,
SETTING_TYPES,
HDSProfile,
PROFILE_FIELDS,
HDSModelConversions,
HDSModelConverters,
EuclidianDistanceEngine,
extractOverloadAsDefinitions,
cmcFormSpec,
cmcAppScope,
cmcConstants
};
export default HDSLib;