@digital-alchemy/core 0.1.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.
- package/LICENSE +21 -0
- package/README.md +47 -0
- package/dist/automation/automation.module.d.ts +61 -0
- package/dist/automation/automation.module.js +70 -0
- package/dist/automation/automation.module.js.map +1 -0
- package/dist/automation/extensions/aggressive-scenes.extension.d.ts +22 -0
- package/dist/automation/extensions/aggressive-scenes.extension.js +125 -0
- package/dist/automation/extensions/aggressive-scenes.extension.js.map +1 -0
- package/dist/automation/extensions/circadian.extension.d.ts +11 -0
- package/dist/automation/extensions/circadian.extension.js +87 -0
- package/dist/automation/extensions/circadian.extension.js.map +1 -0
- package/dist/automation/extensions/index.d.ts +7 -0
- package/dist/automation/extensions/index.js +11 -0
- package/dist/automation/extensions/index.js.map +1 -0
- package/dist/automation/extensions/light-manager.extension.d.ts +26 -0
- package/dist/automation/extensions/light-manager.extension.js +260 -0
- package/dist/automation/extensions/light-manager.extension.js.map +1 -0
- package/dist/automation/extensions/managed-switch.extension.d.ts +3 -0
- package/dist/automation/extensions/managed-switch.extension.js +73 -0
- package/dist/automation/extensions/managed-switch.extension.js.map +1 -0
- package/dist/automation/extensions/room.extension.d.ts +11 -0
- package/dist/automation/extensions/room.extension.js +179 -0
- package/dist/automation/extensions/room.extension.js.map +1 -0
- package/dist/automation/extensions/sequence-matcher.extension.d.ts +3 -0
- package/dist/automation/extensions/sequence-matcher.extension.js +126 -0
- package/dist/automation/extensions/sequence-matcher.extension.js.map +1 -0
- package/dist/automation/extensions/solar-calc.extension.d.ts +20 -0
- package/dist/automation/extensions/solar-calc.extension.js +105 -0
- package/dist/automation/extensions/solar-calc.extension.js.map +1 -0
- package/dist/automation/helpers/events.helper.d.ts +33 -0
- package/dist/automation/helpers/events.helper.js +14 -0
- package/dist/automation/helpers/events.helper.js.map +1 -0
- package/dist/automation/helpers/index.d.ts +7 -0
- package/dist/automation/helpers/index.js +11 -0
- package/dist/automation/helpers/index.js.map +1 -0
- package/dist/automation/helpers/managed-switch.helper.d.ts +41 -0
- package/dist/automation/helpers/managed-switch.helper.js +3 -0
- package/dist/automation/helpers/managed-switch.helper.js.map +1 -0
- package/dist/automation/helpers/metrics.helper.d.ts +13 -0
- package/dist/automation/helpers/metrics.helper.js +30 -0
- package/dist/automation/helpers/metrics.helper.js.map +1 -0
- package/dist/automation/helpers/reftimes.helper.d.ts +54 -0
- package/dist/automation/helpers/reftimes.helper.js +33 -0
- package/dist/automation/helpers/reftimes.helper.js.map +1 -0
- package/dist/automation/helpers/scene.helper.d.ts +97 -0
- package/dist/automation/helpers/scene.helper.js +5 -0
- package/dist/automation/helpers/scene.helper.js.map +1 -0
- package/dist/automation/helpers/sequence.helper.d.ts +55 -0
- package/dist/automation/helpers/sequence.helper.js +3 -0
- package/dist/automation/helpers/sequence.helper.js.map +1 -0
- package/dist/automation/helpers/solar.helper.d.ts +3 -0
- package/dist/automation/helpers/solar.helper.js +262 -0
- package/dist/automation/helpers/solar.helper.js.map +1 -0
- package/dist/automation/index.d.ts +3 -0
- package/dist/automation/index.js +10 -0
- package/dist/automation/index.js.map +1 -0
- package/dist/boilerplate/extensions/cache.extension.d.ts +24 -0
- package/dist/boilerplate/extensions/cache.extension.js +96 -0
- package/dist/boilerplate/extensions/cache.extension.js.map +1 -0
- package/dist/boilerplate/extensions/configuration.extension.d.ts +23 -0
- package/dist/boilerplate/extensions/configuration.extension.js +98 -0
- package/dist/boilerplate/extensions/configuration.extension.js.map +1 -0
- package/dist/boilerplate/extensions/fetch.extension.d.ts +20 -0
- package/dist/boilerplate/extensions/fetch.extension.js +154 -0
- package/dist/boilerplate/extensions/fetch.extension.js.map +1 -0
- package/dist/boilerplate/extensions/index.d.ts +6 -0
- package/dist/boilerplate/extensions/index.js +10 -0
- package/dist/boilerplate/extensions/index.js.map +1 -0
- package/dist/boilerplate/extensions/logger.extension.d.ts +39 -0
- package/dist/boilerplate/extensions/logger.extension.js +159 -0
- package/dist/boilerplate/extensions/logger.extension.js.map +1 -0
- package/dist/boilerplate/extensions/scheduler.extension.d.ts +21 -0
- package/dist/boilerplate/extensions/scheduler.extension.js +117 -0
- package/dist/boilerplate/extensions/scheduler.extension.js.map +1 -0
- package/dist/boilerplate/extensions/wiring.extension.d.ts +101 -0
- package/dist/boilerplate/extensions/wiring.extension.js +452 -0
- package/dist/boilerplate/extensions/wiring.extension.js.map +1 -0
- package/dist/boilerplate/helpers/cache-memory.helper.d.ts +7 -0
- package/dist/boilerplate/helpers/cache-memory.helper.js +65 -0
- package/dist/boilerplate/helpers/cache-memory.helper.js.map +1 -0
- package/dist/boilerplate/helpers/cache-redis.helper.d.ts +7 -0
- package/dist/boilerplate/helpers/cache-redis.helper.js +69 -0
- package/dist/boilerplate/helpers/cache-redis.helper.js.map +1 -0
- package/dist/boilerplate/helpers/config-environment-loader.helper.d.ts +2 -0
- package/dist/boilerplate/helpers/config-environment-loader.helper.js +56 -0
- package/dist/boilerplate/helpers/config-environment-loader.helper.js.map +1 -0
- package/dist/boilerplate/helpers/config-file-loader.helper.d.ts +4 -0
- package/dist/boilerplate/helpers/config-file-loader.helper.js +87 -0
- package/dist/boilerplate/helpers/config-file-loader.helper.js.map +1 -0
- package/dist/boilerplate/helpers/config.helper.d.ts +102 -0
- package/dist/boilerplate/helpers/config.helper.js +32 -0
- package/dist/boilerplate/helpers/config.helper.js.map +1 -0
- package/dist/boilerplate/helpers/errors.helper.d.ts +39 -0
- package/dist/boilerplate/helpers/errors.helper.js +76 -0
- package/dist/boilerplate/helpers/errors.helper.js.map +1 -0
- package/dist/boilerplate/helpers/events.helper.d.ts +3 -0
- package/dist/boilerplate/helpers/events.helper.js +11 -0
- package/dist/boilerplate/helpers/events.helper.js.map +1 -0
- package/dist/boilerplate/helpers/fetch.helper.d.ts +170 -0
- package/dist/boilerplate/helpers/fetch.helper.js +173 -0
- package/dist/boilerplate/helpers/fetch.helper.js.map +1 -0
- package/dist/boilerplate/helpers/index.d.ts +12 -0
- package/dist/boilerplate/helpers/index.js +16 -0
- package/dist/boilerplate/helpers/index.js.map +1 -0
- package/dist/boilerplate/helpers/lifecycle.helper.d.ts +43 -0
- package/dist/boilerplate/helpers/lifecycle.helper.js +13 -0
- package/dist/boilerplate/helpers/lifecycle.helper.js.map +1 -0
- package/dist/boilerplate/helpers/metrics.helper.d.ts +73 -0
- package/dist/boilerplate/helpers/metrics.helper.js +141 -0
- package/dist/boilerplate/helpers/metrics.helper.js.map +1 -0
- package/dist/boilerplate/helpers/testing.helper.d.ts +13 -0
- package/dist/boilerplate/helpers/testing.helper.js +91 -0
- package/dist/boilerplate/helpers/testing.helper.js.map +1 -0
- package/dist/boilerplate/helpers/wiring.helper.d.ts +155 -0
- package/dist/boilerplate/helpers/wiring.helper.js +5 -0
- package/dist/boilerplate/helpers/wiring.helper.js.map +1 -0
- package/dist/boilerplate/index.d.ts +2 -0
- package/dist/boilerplate/index.js +6 -0
- package/dist/boilerplate/index.js.map +1 -0
- package/dist/gotify/extensions/application.extension.d.ts +13 -0
- package/dist/gotify/extensions/application.extension.js +52 -0
- package/dist/gotify/extensions/application.extension.js.map +1 -0
- package/dist/gotify/extensions/client.extension.d.ts +8 -0
- package/dist/gotify/extensions/client.extension.js +38 -0
- package/dist/gotify/extensions/client.extension.js.map +1 -0
- package/dist/gotify/extensions/fetch.extension.d.ts +2 -0
- package/dist/gotify/extensions/fetch.extension.js +14 -0
- package/dist/gotify/extensions/fetch.extension.js.map +1 -0
- package/dist/gotify/extensions/index.d.ts +4 -0
- package/dist/gotify/extensions/index.js +8 -0
- package/dist/gotify/extensions/index.js.map +1 -0
- package/dist/gotify/extensions/message.extension.d.ts +8 -0
- package/dist/gotify/extensions/message.extension.js +37 -0
- package/dist/gotify/extensions/message.extension.js.map +1 -0
- package/dist/gotify/gotify.module.d.ts +29 -0
- package/dist/gotify/gotify.module.js +33 -0
- package/dist/gotify/gotify.module.js.map +1 -0
- package/dist/gotify/helpers/api.d.ts +346 -0
- package/dist/gotify/helpers/api.js +14 -0
- package/dist/gotify/helpers/api.js.map +1 -0
- package/dist/gotify/helpers/events.helper.d.ts +6 -0
- package/dist/gotify/helpers/events.helper.js +5 -0
- package/dist/gotify/helpers/events.helper.js.map +1 -0
- package/dist/gotify/helpers/index.d.ts +2 -0
- package/dist/gotify/helpers/index.js +6 -0
- package/dist/gotify/helpers/index.js.map +1 -0
- package/dist/gotify/index.d.ts +3 -0
- package/dist/gotify/index.js +7 -0
- package/dist/gotify/index.js.map +1 -0
- package/dist/hass/dynamic.d.ts +1126 -0
- package/dist/hass/dynamic.js +153 -0
- package/dist/hass/dynamic.js.map +1 -0
- package/dist/hass/extensions/call-proxy.extension.d.ts +4 -0
- package/dist/hass/extensions/call-proxy.extension.js +88 -0
- package/dist/hass/extensions/call-proxy.extension.js.map +1 -0
- package/dist/hass/extensions/entity-manager.extension.d.ts +61 -0
- package/dist/hass/extensions/entity-manager.extension.js +214 -0
- package/dist/hass/extensions/entity-manager.extension.js.map +1 -0
- package/dist/hass/extensions/fetch-api.extension.d.ts +26 -0
- package/dist/hass/extensions/fetch-api.extension.js +166 -0
- package/dist/hass/extensions/fetch-api.extension.js.map +1 -0
- package/dist/hass/extensions/index.d.ts +5 -0
- package/dist/hass/extensions/index.js +9 -0
- package/dist/hass/extensions/index.js.map +1 -0
- package/dist/hass/extensions/utilities.extension.d.ts +9 -0
- package/dist/hass/extensions/utilities.extension.js +43 -0
- package/dist/hass/extensions/utilities.extension.js.map +1 -0
- package/dist/hass/extensions/websocket-api.extension.d.ts +39 -0
- package/dist/hass/extensions/websocket-api.extension.js +363 -0
- package/dist/hass/extensions/websocket-api.extension.js.map +1 -0
- package/dist/hass/hass.module.d.ts +53 -0
- package/dist/hass/hass.module.js +59 -0
- package/dist/hass/hass.module.js.map +1 -0
- package/dist/hass/helpers/backup.helper.d.ts +11 -0
- package/dist/hass/helpers/backup.helper.js +3 -0
- package/dist/hass/helpers/backup.helper.js.map +1 -0
- package/dist/hass/helpers/constants.helper.d.ts +54 -0
- package/dist/hass/helpers/constants.helper.js +63 -0
- package/dist/hass/helpers/constants.helper.js.map +1 -0
- package/dist/hass/helpers/entity-state.helper.d.ts +45 -0
- package/dist/hass/helpers/entity-state.helper.js +9 -0
- package/dist/hass/helpers/entity-state.helper.js.map +1 -0
- package/dist/hass/helpers/fetch/calendar.d.ts +54 -0
- package/dist/hass/helpers/fetch/calendar.js +3 -0
- package/dist/hass/helpers/fetch/calendar.js.map +1 -0
- package/dist/hass/helpers/fetch/configuration.d.ts +34 -0
- package/dist/hass/helpers/fetch/configuration.js +3 -0
- package/dist/hass/helpers/fetch/configuration.js.map +1 -0
- package/dist/hass/helpers/fetch/index.d.ts +4 -0
- package/dist/hass/helpers/fetch/index.js +8 -0
- package/dist/hass/helpers/fetch/index.js.map +1 -0
- package/dist/hass/helpers/fetch/server-log.d.ts +10 -0
- package/dist/hass/helpers/fetch/server-log.js +20 -0
- package/dist/hass/helpers/fetch/server-log.js.map +1 -0
- package/dist/hass/helpers/fetch/service-list.d.ts +51 -0
- package/dist/hass/helpers/fetch/service-list.js +3 -0
- package/dist/hass/helpers/fetch/service-list.js.map +1 -0
- package/dist/hass/helpers/index.d.ts +7 -0
- package/dist/hass/helpers/index.js +11 -0
- package/dist/hass/helpers/index.js.map +1 -0
- package/dist/hass/helpers/metrics.helper.d.ts +13 -0
- package/dist/hass/helpers/metrics.helper.js +30 -0
- package/dist/hass/helpers/metrics.helper.js.map +1 -0
- package/dist/hass/helpers/utility.helper.d.ts +57 -0
- package/dist/hass/helpers/utility.helper.js +34 -0
- package/dist/hass/helpers/utility.helper.js.map +1 -0
- package/dist/hass/helpers/websocket.helper.d.ts +129 -0
- package/dist/hass/helpers/websocket.helper.js +3 -0
- package/dist/hass/helpers/websocket.helper.js.map +1 -0
- package/dist/hass/index.d.ts +4 -0
- package/dist/hass/index.js +8 -0
- package/dist/hass/index.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/nexus/entities.extension.d.ts +2 -0
- package/dist/nexus/entities.extension.js +51 -0
- package/dist/nexus/entities.extension.js.map +1 -0
- package/dist/nexus/main.d.ts +9 -0
- package/dist/nexus/main.js +28 -0
- package/dist/nexus/main.js.map +1 -0
- package/dist/synapse/extensions/binary-sensor.extension.d.ts +19 -0
- package/dist/synapse/extensions/binary-sensor.extension.js +84 -0
- package/dist/synapse/extensions/binary-sensor.extension.js.map +1 -0
- package/dist/synapse/extensions/button.extension.d.ts +10 -0
- package/dist/synapse/extensions/button.extension.js +46 -0
- package/dist/synapse/extensions/button.extension.js.map +1 -0
- package/dist/synapse/extensions/index.d.ts +6 -0
- package/dist/synapse/extensions/index.js +10 -0
- package/dist/synapse/extensions/index.js.map +1 -0
- package/dist/synapse/extensions/registry.extension.d.ts +21 -0
- package/dist/synapse/extensions/registry.extension.js +207 -0
- package/dist/synapse/extensions/registry.extension.js.map +1 -0
- package/dist/synapse/extensions/scene.extension.d.ts +9 -0
- package/dist/synapse/extensions/scene.extension.js +37 -0
- package/dist/synapse/extensions/scene.extension.js.map +1 -0
- package/dist/synapse/extensions/sensor.extension.d.ts +25 -0
- package/dist/synapse/extensions/sensor.extension.js +154 -0
- package/dist/synapse/extensions/sensor.extension.js.map +1 -0
- package/dist/synapse/extensions/switch.extension.d.ts +19 -0
- package/dist/synapse/extensions/switch.extension.js +95 -0
- package/dist/synapse/extensions/switch.extension.js.map +1 -0
- package/dist/synapse/helpers/device-class.helper.d.ts +323 -0
- package/dist/synapse/helpers/device-class.helper.js +241 -0
- package/dist/synapse/helpers/device-class.helper.js.map +1 -0
- package/dist/synapse/helpers/index.d.ts +3 -0
- package/dist/synapse/helpers/index.js +7 -0
- package/dist/synapse/helpers/index.js.map +1 -0
- package/dist/synapse/helpers/metrics.helper.d.ts +13 -0
- package/dist/synapse/helpers/metrics.helper.js +30 -0
- package/dist/synapse/helpers/metrics.helper.js.map +1 -0
- package/dist/synapse/helpers/utility.helper.d.ts +1 -0
- package/dist/synapse/helpers/utility.helper.js +3 -0
- package/dist/synapse/helpers/utility.helper.js.map +1 -0
- package/dist/synapse/index.d.ts +3 -0
- package/dist/synapse/index.js +7 -0
- package/dist/synapse/index.js.map +1 -0
- package/dist/synapse/synapse.module.d.ts +29 -0
- package/dist/synapse/synapse.module.js +41 -0
- package/dist/synapse/synapse.module.js.map +1 -0
- package/dist/type-writer/build.extension.d.ts +2 -0
- package/dist/type-writer/build.extension.js +53 -0
- package/dist/type-writer/build.extension.js.map +1 -0
- package/dist/type-writer/main.d.ts +17 -0
- package/dist/type-writer/main.js +36 -0
- package/dist/type-writer/main.js.map +1 -0
- package/dist/type-writer/type-writer.extension.d.ts +2 -0
- package/dist/type-writer/type-writer.extension.js +212 -0
- package/dist/type-writer/type-writer.extension.js.map +1 -0
- package/dist/utilities/extensions/index.d.ts +3 -0
- package/dist/utilities/extensions/index.js +7 -0
- package/dist/utilities/extensions/index.js.map +1 -0
- package/dist/utilities/extensions/is.extension.d.ts +38 -0
- package/dist/utilities/extensions/is.extension.js +104 -0
- package/dist/utilities/extensions/is.extension.js.map +1 -0
- package/dist/utilities/extensions/zcc-testing.extension.d.ts +4 -0
- package/dist/utilities/extensions/zcc-testing.extension.js +9 -0
- package/dist/utilities/extensions/zcc-testing.extension.js.map +1 -0
- package/dist/utilities/extensions/zcc.extension.d.ts +20 -0
- package/dist/utilities/extensions/zcc.extension.js +66 -0
- package/dist/utilities/extensions/zcc.extension.js.map +1 -0
- package/dist/utilities/helpers/async.helper.d.ts +2 -0
- package/dist/utilities/helpers/async.helper.js +26 -0
- package/dist/utilities/helpers/async.helper.js.map +1 -0
- package/dist/utilities/helpers/context.helper.d.ts +7 -0
- package/dist/utilities/helpers/context.helper.js +3 -0
- package/dist/utilities/helpers/context.helper.js.map +1 -0
- package/dist/utilities/helpers/cron.helper.d.ts +87 -0
- package/dist/utilities/helpers/cron.helper.js +92 -0
- package/dist/utilities/helpers/cron.helper.js.map +1 -0
- package/dist/utilities/helpers/extend.helper.d.ts +2 -0
- package/dist/utilities/helpers/extend.helper.js +68 -0
- package/dist/utilities/helpers/extend.helper.js.map +1 -0
- package/dist/utilities/helpers/index.d.ts +5 -0
- package/dist/utilities/helpers/index.js +9 -0
- package/dist/utilities/helpers/index.js.map +1 -0
- package/dist/utilities/helpers/utilities.helper.d.ts +63 -0
- package/dist/utilities/helpers/utilities.helper.js +93 -0
- package/dist/utilities/helpers/utilities.helper.js.map +1 -0
- package/dist/utilities/index.d.ts +2 -0
- package/dist/utilities/index.js +6 -0
- package/dist/utilities/index.js.map +1 -0
- package/package.json +101 -0
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
export declare enum MessagePriority {
|
|
2
|
+
min = 0,
|
|
3
|
+
low = 3,
|
|
4
|
+
normal = 6,
|
|
5
|
+
high = 9
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The Application holds information about an app which can send notifications.
|
|
9
|
+
*/
|
|
10
|
+
export interface Application {
|
|
11
|
+
/**
|
|
12
|
+
* The description of the application.
|
|
13
|
+
* @example Backup server for the interwebs
|
|
14
|
+
*/
|
|
15
|
+
description: string;
|
|
16
|
+
/**
|
|
17
|
+
* The application id.
|
|
18
|
+
* @format int64
|
|
19
|
+
* @example 5
|
|
20
|
+
*/
|
|
21
|
+
id: number;
|
|
22
|
+
/**
|
|
23
|
+
* The image of the application.
|
|
24
|
+
* @example image/image.jpeg
|
|
25
|
+
*/
|
|
26
|
+
image: string;
|
|
27
|
+
/**
|
|
28
|
+
* Whether the application is an internal application. Internal applications should not be deleted.
|
|
29
|
+
* @example false
|
|
30
|
+
*/
|
|
31
|
+
internal: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The application name. This is how the application should be displayed to the user.
|
|
34
|
+
* @example Backup Server
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
* The application token. Can be used as `appToken`. See Authentication.
|
|
39
|
+
* @example AWH0wZ5r0Mac.r
|
|
40
|
+
*/
|
|
41
|
+
token: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Params allowed to create or update Applications
|
|
45
|
+
*/
|
|
46
|
+
export interface ApplicationParameters {
|
|
47
|
+
/**
|
|
48
|
+
* The description of the application.
|
|
49
|
+
* @example Backup server for the interwebs
|
|
50
|
+
*/
|
|
51
|
+
description?: string;
|
|
52
|
+
/**
|
|
53
|
+
* The application name. This is how the application should be displayed to the user.
|
|
54
|
+
* @example Backup Server
|
|
55
|
+
*/
|
|
56
|
+
name: string;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* The Client holds information about a device which can receive notifications (and other stuff).
|
|
60
|
+
*/
|
|
61
|
+
export interface Client {
|
|
62
|
+
/**
|
|
63
|
+
* The client id.
|
|
64
|
+
* @format int64
|
|
65
|
+
* @example 5
|
|
66
|
+
*/
|
|
67
|
+
id: number;
|
|
68
|
+
/**
|
|
69
|
+
* The client name. This is how the client should be displayed to the user.
|
|
70
|
+
* @example Android Phone
|
|
71
|
+
*/
|
|
72
|
+
name: string;
|
|
73
|
+
/**
|
|
74
|
+
* The client token. Can be used as `clientToken`. See Authentication.
|
|
75
|
+
* @example CWH0wZ5r0Mac.r
|
|
76
|
+
*/
|
|
77
|
+
token: string;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The Error contains error relevant information.
|
|
81
|
+
*/
|
|
82
|
+
export interface Error {
|
|
83
|
+
/**
|
|
84
|
+
* The general error message
|
|
85
|
+
* @example Unauthorized
|
|
86
|
+
*/
|
|
87
|
+
error: string;
|
|
88
|
+
/**
|
|
89
|
+
* The http error code.
|
|
90
|
+
* @format int64
|
|
91
|
+
* @example 401
|
|
92
|
+
*/
|
|
93
|
+
errorCode: number;
|
|
94
|
+
/**
|
|
95
|
+
* The http error code.
|
|
96
|
+
* @example you need to provide a valid access token or user credentials to access this api
|
|
97
|
+
*/
|
|
98
|
+
errorDescription: string;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Health represents how healthy the application is.
|
|
102
|
+
*/
|
|
103
|
+
export interface Health {
|
|
104
|
+
/**
|
|
105
|
+
* The health of the database connection.
|
|
106
|
+
* @example green
|
|
107
|
+
*/
|
|
108
|
+
database: string;
|
|
109
|
+
/**
|
|
110
|
+
* The health of the overall application.
|
|
111
|
+
* @example green
|
|
112
|
+
*/
|
|
113
|
+
health: string;
|
|
114
|
+
}
|
|
115
|
+
export interface MessageExtra {
|
|
116
|
+
"android::action"?: {
|
|
117
|
+
onReceive?: {
|
|
118
|
+
intentUrl: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
"client::display"?: {
|
|
122
|
+
contentType: "text/plain" | "text/markdown";
|
|
123
|
+
};
|
|
124
|
+
"client::notification"?: {
|
|
125
|
+
bigImageUrl?: string;
|
|
126
|
+
click?: {
|
|
127
|
+
url: string;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* The MessageExternal holds information about a message which was sent by an Application.
|
|
133
|
+
*/
|
|
134
|
+
export interface Message {
|
|
135
|
+
/**
|
|
136
|
+
* The application id that send this message.
|
|
137
|
+
* @format int64
|
|
138
|
+
* @example 5
|
|
139
|
+
*/
|
|
140
|
+
appid?: number;
|
|
141
|
+
/**
|
|
142
|
+
* The date the message was created.
|
|
143
|
+
* @format date-time
|
|
144
|
+
* @example 2018-02-27T19:36:10.5045044+01:00
|
|
145
|
+
*/
|
|
146
|
+
date?: string;
|
|
147
|
+
/**
|
|
148
|
+
* The extra data sent along the message.
|
|
149
|
+
*
|
|
150
|
+
* The extra fields are stored in a key-value scheme. Only accepted in CreateMessage requests with application/json content-type.
|
|
151
|
+
* The keys should be in the following format: <top-namespace>::[<sub-namespace>::]<action>
|
|
152
|
+
* These namespaces are reserved and might be used in the official clients: gotify android ios web server client. Do not use them for other purposes.
|
|
153
|
+
* @example {"home::appliances::lighting::on":{"brightness":15},"home::appliances::thermostat::change_temperature":{"temperature":23}}
|
|
154
|
+
*/
|
|
155
|
+
extras?: MessageExtra;
|
|
156
|
+
/**
|
|
157
|
+
* The message id.
|
|
158
|
+
* @format int64
|
|
159
|
+
* @example 25
|
|
160
|
+
*/
|
|
161
|
+
id?: number;
|
|
162
|
+
/**
|
|
163
|
+
* The message. Markdown (excluding html) is allowed.
|
|
164
|
+
* @example **Backup** was successfully finished.
|
|
165
|
+
*/
|
|
166
|
+
message: string;
|
|
167
|
+
/**
|
|
168
|
+
* The priority of the message.
|
|
169
|
+
* @format int64
|
|
170
|
+
* @example 2
|
|
171
|
+
*/
|
|
172
|
+
priority?: MessagePriority;
|
|
173
|
+
/**
|
|
174
|
+
* The title of the message.
|
|
175
|
+
* @example Backup
|
|
176
|
+
*/
|
|
177
|
+
title?: string;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Wrapper for the paging and the messages
|
|
181
|
+
*/
|
|
182
|
+
export interface PagedMessages {
|
|
183
|
+
/** The messages. */
|
|
184
|
+
messages: Message[];
|
|
185
|
+
/** The Paging holds information about the limit and making requests to the next page. */
|
|
186
|
+
paging: Paging;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* The Paging holds information about the limit and making requests to the next page.
|
|
190
|
+
*/
|
|
191
|
+
export interface Paging {
|
|
192
|
+
/**
|
|
193
|
+
* The limit of the messages for the current request.
|
|
194
|
+
* @format int64
|
|
195
|
+
* @min 1
|
|
196
|
+
* @max 200
|
|
197
|
+
* @example 123
|
|
198
|
+
*/
|
|
199
|
+
limit: number;
|
|
200
|
+
/**
|
|
201
|
+
* The request url for the next page. Empty/Null when no next page is available.
|
|
202
|
+
* @example http://example.com/message?limit=50&since=123456
|
|
203
|
+
*/
|
|
204
|
+
next?: string;
|
|
205
|
+
/**
|
|
206
|
+
* The ID of the last message returned in the current request. Use this as alternative to the next link.
|
|
207
|
+
* @format int64
|
|
208
|
+
* @min 0
|
|
209
|
+
* @example 5
|
|
210
|
+
*/
|
|
211
|
+
since: number;
|
|
212
|
+
/**
|
|
213
|
+
* The amount of messages that got returned in the current request.
|
|
214
|
+
* @format int64
|
|
215
|
+
* @example 5
|
|
216
|
+
*/
|
|
217
|
+
size: number;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Holds information about a plugin instance for one user.
|
|
221
|
+
*/
|
|
222
|
+
export interface PluginConfig {
|
|
223
|
+
/**
|
|
224
|
+
* The author of the plugin.
|
|
225
|
+
* @example zoe-codez
|
|
226
|
+
*/
|
|
227
|
+
author?: string;
|
|
228
|
+
/**
|
|
229
|
+
* Capabilities the plugin provides
|
|
230
|
+
* @example ["webhook","display"]
|
|
231
|
+
*/
|
|
232
|
+
capabilities: string[];
|
|
233
|
+
/**
|
|
234
|
+
* Whether the plugin instance is enabled.
|
|
235
|
+
* @example true
|
|
236
|
+
*/
|
|
237
|
+
enabled: boolean;
|
|
238
|
+
/**
|
|
239
|
+
* The plugin id.
|
|
240
|
+
* @format int64
|
|
241
|
+
* @example 25
|
|
242
|
+
*/
|
|
243
|
+
id: number;
|
|
244
|
+
/**
|
|
245
|
+
* The license of the plugin.
|
|
246
|
+
* @example MIT
|
|
247
|
+
*/
|
|
248
|
+
license?: string;
|
|
249
|
+
/**
|
|
250
|
+
* The module path of the plugin.
|
|
251
|
+
* @example github.com/gotify/server/plugin/example/echo
|
|
252
|
+
*/
|
|
253
|
+
modulePath: string;
|
|
254
|
+
/**
|
|
255
|
+
* The plugin name.
|
|
256
|
+
* @example RSS poller
|
|
257
|
+
*/
|
|
258
|
+
name: string;
|
|
259
|
+
/**
|
|
260
|
+
* The user name. For login.
|
|
261
|
+
* @example P1234
|
|
262
|
+
*/
|
|
263
|
+
token: string;
|
|
264
|
+
/**
|
|
265
|
+
* The website of the plugin.
|
|
266
|
+
* @example gotify.net
|
|
267
|
+
*/
|
|
268
|
+
website?: string;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* The User holds information about permission and other stuff.
|
|
272
|
+
*/
|
|
273
|
+
export interface User {
|
|
274
|
+
/**
|
|
275
|
+
* If the user is an administrator.
|
|
276
|
+
* @example true
|
|
277
|
+
*/
|
|
278
|
+
admin?: boolean;
|
|
279
|
+
/**
|
|
280
|
+
* The user id.
|
|
281
|
+
* @format int64
|
|
282
|
+
* @example 25
|
|
283
|
+
*/
|
|
284
|
+
id: number;
|
|
285
|
+
/**
|
|
286
|
+
* The user name. For login.
|
|
287
|
+
* @example unicorn
|
|
288
|
+
*/
|
|
289
|
+
name: string;
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* The Password for updating the user.
|
|
293
|
+
*/
|
|
294
|
+
export interface UserPass {
|
|
295
|
+
/**
|
|
296
|
+
* The user password. For login.
|
|
297
|
+
* @example hunter2
|
|
298
|
+
*/
|
|
299
|
+
pass: string;
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* The UserWithPass holds information about the credentials and other stuff.
|
|
303
|
+
*/
|
|
304
|
+
export interface UserWithPass {
|
|
305
|
+
/**
|
|
306
|
+
* If the user is an administrator.
|
|
307
|
+
* @example true
|
|
308
|
+
*/
|
|
309
|
+
admin?: boolean;
|
|
310
|
+
/**
|
|
311
|
+
* The user id.
|
|
312
|
+
* @format int64
|
|
313
|
+
* @example 25
|
|
314
|
+
*/
|
|
315
|
+
id: number;
|
|
316
|
+
/**
|
|
317
|
+
* The user name. For login.
|
|
318
|
+
* @example unicorn
|
|
319
|
+
*/
|
|
320
|
+
name: string;
|
|
321
|
+
/**
|
|
322
|
+
* The user password. For login.
|
|
323
|
+
* @example hunter2
|
|
324
|
+
*/
|
|
325
|
+
pass: string;
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* VersionInfo Model
|
|
329
|
+
*/
|
|
330
|
+
export interface VersionInfo {
|
|
331
|
+
/**
|
|
332
|
+
* The date on which this binary was built.
|
|
333
|
+
* @example 2018-02-27T19:36:10.5045044+01:00
|
|
334
|
+
*/
|
|
335
|
+
buildDate: string;
|
|
336
|
+
/**
|
|
337
|
+
* The git commit hash on which this binary was built.
|
|
338
|
+
* @example ae9512b6b6feea56a110d59a3353ea3b9c293864
|
|
339
|
+
*/
|
|
340
|
+
commit: string;
|
|
341
|
+
/**
|
|
342
|
+
* The current version.
|
|
343
|
+
* @example 5.2.6
|
|
344
|
+
*/
|
|
345
|
+
version: string;
|
|
346
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-magic-numbers */
|
|
3
|
+
/* eslint-disable sonarjs/cognitive-complexity */
|
|
4
|
+
/* eslint-disable @typescript-eslint/member-ordering */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MessagePriority = void 0;
|
|
7
|
+
var MessagePriority;
|
|
8
|
+
(function (MessagePriority) {
|
|
9
|
+
MessagePriority[MessagePriority["min"] = 0] = "min";
|
|
10
|
+
MessagePriority[MessagePriority["low"] = 3] = "low";
|
|
11
|
+
MessagePriority[MessagePriority["normal"] = 6] = "normal";
|
|
12
|
+
MessagePriority[MessagePriority["high"] = 9] = "high";
|
|
13
|
+
})(MessagePriority || (exports.MessagePriority = MessagePriority = {}));
|
|
14
|
+
//# sourceMappingURL=api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/gotify/helpers/api.ts"],"names":[],"mappings":";AAAA,wDAAwD;AACxD,iDAAiD;AACjD,uDAAuD;;;AAEvD,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,mDAAO,CAAA;IACP,mDAAO,CAAA;IACP,yDAAU,CAAA;IACV,qDAAQ,CAAA;AACV,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.helper.js","sourceRoot":"","sources":["../../../src/gotify/helpers/events.helper.ts"],"names":[],"mappings":";;;AAEa,QAAA,wBAAwB,GAAG,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/gotify/helpers/index.ts"],"names":[],"mappings":";;;AAAA,gDAAsB;AACtB,0DAAgC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./extensions"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./gotify.module"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./helpers"), exports);
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/gotify/index.ts"],"names":[],"mappings":";;;AAAA,uDAA6B;AAC7B,0DAAgC;AAChC,oDAA0B"}
|