@openinc/parse-server-opendash 2.3.13 → 2.3.14
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/config.d.ts +2 -2
- package/dist/config.js +455 -455
- package/dist/featuremap.json +75 -75
- package/dist/functions/_init.d.ts +1 -1
- package/dist/functions/_init.js +20 -20
- package/dist/functions/getAdminConfig.d.ts +1 -1
- package/dist/functions/getAdminConfig.js +63 -63
- package/dist/functions/getSchemaForAdmin.d.ts +1 -1
- package/dist/functions/getSchemaForAdmin.js +14 -14
- package/dist/functions/opendash-geo-features.d.ts +1 -1
- package/dist/functions/opendash-geo-features.js +19 -19
- package/dist/functions/openinc-auth-change-password.d.ts +1 -1
- package/dist/functions/openinc-auth-change-password.js +30 -30
- package/dist/functions/openinc-auth-confirm-email.d.ts +1 -1
- package/dist/functions/openinc-auth-confirm-email.js +18 -18
- package/dist/functions/openinc-auth-email-confirmation-request.d.ts +1 -1
- package/dist/functions/openinc-auth-email-confirmation-request.js +42 -42
- package/dist/functions/openinc-auth-email-confirmation.d.ts +1 -1
- package/dist/functions/openinc-auth-email-confirmation.js +23 -23
- package/dist/functions/openinc-auth-login-admin.d.ts +1 -1
- package/dist/functions/openinc-auth-login-admin.js +69 -69
- package/dist/functions/openinc-auth-login-passwordless.d.ts +1 -1
- package/dist/functions/openinc-auth-login-passwordless.js +50 -50
- package/dist/functions/openinc-auth-login.d.ts +1 -1
- package/dist/functions/openinc-auth-login.js +45 -45
- package/dist/functions/openinc-auth-password-reset-request.d.ts +1 -1
- package/dist/functions/openinc-auth-password-reset-request.js +42 -42
- package/dist/functions/openinc-auth-password-reset.d.ts +1 -1
- package/dist/functions/openinc-auth-password-reset.js +28 -28
- package/dist/functions/openinc-auth-signup.d.ts +1 -1
- package/dist/functions/openinc-auth-signup.js +88 -88
- package/dist/functions/openinc-auth-validate-token.d.ts +1 -1
- package/dist/functions/openinc-auth-validate-token.js +37 -37
- package/dist/functions/openinc-auth.common.d.ts +15 -15
- package/dist/functions/openinc-auth.common.js +67 -67
- package/dist/functions/openinc-config.d.ts +1 -1
- package/dist/functions/openinc-config.js +92 -92
- package/dist/functions/openinc-geo-google-autocomplete.d.ts +1 -1
- package/dist/functions/openinc-geo-google-autocomplete.js +58 -58
- package/dist/functions/openinc-geo-google.common.d.ts +2 -2
- package/dist/functions/openinc-geo-google.common.js +34 -34
- package/dist/functions/openinc-geo-graphhopper-geocode-reverse-raw.d.ts +1 -1
- package/dist/functions/openinc-geo-graphhopper-geocode-reverse-raw.js +24 -24
- package/dist/functions/openinc-geo-graphhopper-geocode-reverse.d.ts +1 -1
- package/dist/functions/openinc-geo-graphhopper-geocode-reverse.js +24 -24
- package/dist/functions/openinc-geo-graphhopper-geocode.d.ts +1 -1
- package/dist/functions/openinc-geo-graphhopper-geocode.js +24 -24
- package/dist/functions/openinc-geo-graphhopper-route-simple.d.ts +1 -1
- package/dist/functions/openinc-geo-graphhopper-route-simple.js +33 -33
- package/dist/functions/openinc-geo-graphhopper.common.d.ts +2 -2
- package/dist/functions/openinc-geo-graphhopper.common.js +60 -60
- package/dist/helper/Config.d.ts +33 -33
- package/dist/helper/Config.js +156 -156
- package/dist/helper/pdf2img.d.ts +12 -12
- package/dist/helper/pdf2img.js +111 -111
- package/dist/hooks/Alarm.d.ts +1 -1
- package/dist/hooks/Alarm.js +40 -40
- package/dist/hooks/AlarmAction.d.ts +1 -1
- package/dist/hooks/AlarmAction.js +15 -15
- package/dist/hooks/AlarmWebhook.d.ts +1 -1
- package/dist/hooks/AlarmWebhook.js +16 -16
- package/dist/hooks/Attachment.d.ts +1 -1
- package/dist/hooks/Attachment.js +18 -18
- package/dist/hooks/BDE_Form.d.ts +1 -1
- package/dist/hooks/BDE_Form.js +53 -53
- package/dist/hooks/BDE_List.d.ts +1 -1
- package/dist/hooks/BDE_List.js +17 -17
- package/dist/hooks/BDE_ListEntry.d.ts +1 -1
- package/dist/hooks/BDE_ListEntry.js +17 -17
- package/dist/hooks/BDE_Page.d.ts +1 -1
- package/dist/hooks/BDE_Page.js +44 -44
- package/dist/hooks/BDE_Result.d.ts +1 -1
- package/dist/hooks/BDE_Result.js +128 -128
- package/dist/hooks/BDE_Unit.d.ts +1 -1
- package/dist/hooks/BDE_Unit.js +17 -17
- package/dist/hooks/Config.d.ts +1 -1
- package/dist/hooks/Config.js +16 -16
- package/dist/hooks/Core_Email.d.ts +11 -11
- package/dist/hooks/Core_Email.js +111 -111
- package/dist/hooks/Core_Token.d.ts +1 -1
- package/dist/hooks/Core_Token.js +11 -11
- package/dist/hooks/Dashboard.d.ts +1 -1
- package/dist/hooks/Dashboard.js +33 -33
- package/dist/hooks/GTFS_Agency.d.ts +1 -1
- package/dist/hooks/GTFS_Agency.js +18 -18
- package/dist/hooks/GTFS_Bikes_Allowed.d.ts +1 -1
- package/dist/hooks/GTFS_Bikes_Allowed.js +18 -18
- package/dist/hooks/GTFS_Calendar.d.ts +1 -1
- package/dist/hooks/GTFS_Calendar.js +18 -18
- package/dist/hooks/GTFS_Direction.d.ts +1 -1
- package/dist/hooks/GTFS_Direction.js +18 -18
- package/dist/hooks/GTFS_Level.d.ts +1 -1
- package/dist/hooks/GTFS_Level.js +18 -18
- package/dist/hooks/GTFS_Location_Type.d.ts +1 -1
- package/dist/hooks/GTFS_Location_Type.js +18 -18
- package/dist/hooks/GTFS_Route.d.ts +1 -1
- package/dist/hooks/GTFS_Route.js +18 -18
- package/dist/hooks/GTFS_Route_Type.d.ts +1 -1
- package/dist/hooks/GTFS_Route_Type.js +18 -18
- package/dist/hooks/GTFS_Stop.d.ts +1 -1
- package/dist/hooks/GTFS_Stop.js +18 -18
- package/dist/hooks/GTFS_Stop_Times.d.ts +1 -1
- package/dist/hooks/GTFS_Stop_Times.js +18 -18
- package/dist/hooks/GTFS_Trip.d.ts +1 -1
- package/dist/hooks/GTFS_Trip.js +18 -18
- package/dist/hooks/GTFS_Wheelchair_Accessible.d.ts +1 -1
- package/dist/hooks/GTFS_Wheelchair_Accessible.js +18 -18
- package/dist/hooks/GTFS_Wheelchair_Boarding.d.ts +1 -1
- package/dist/hooks/GTFS_Wheelchair_Boarding.js +18 -18
- package/dist/hooks/Group.d.ts +1 -1
- package/dist/hooks/Group.js +56 -56
- package/dist/hooks/Knowledge_Article.d.ts +1 -1
- package/dist/hooks/Knowledge_Article.js +18 -18
- package/dist/hooks/Knowledge_Category.d.ts +1 -1
- package/dist/hooks/Knowledge_Category.js +18 -18
- package/dist/hooks/Knowledge_Document.d.ts +1 -1
- package/dist/hooks/Knowledge_Document.js +60 -60
- package/dist/hooks/Knowledge_DocumentPage.d.ts +1 -1
- package/dist/hooks/Knowledge_DocumentPage.js +22 -22
- package/dist/hooks/Knowledge_Video.d.ts +1 -1
- package/dist/hooks/Knowledge_Video.js +18 -18
- package/dist/hooks/Language.d.ts +1 -1
- package/dist/hooks/Language.js +18 -18
- package/dist/hooks/Log.d.ts +1 -1
- package/dist/hooks/Log.js +18 -18
- package/dist/hooks/MIAAS_MDSEndpoint.d.ts +1 -1
- package/dist/hooks/MIAAS_MDSEndpoint.js +18 -18
- package/dist/hooks/Maintenance_Article.d.ts +1 -1
- package/dist/hooks/Maintenance_Article.js +18 -18
- package/dist/hooks/Maintenance_Downtime.d.ts +1 -1
- package/dist/hooks/Maintenance_Downtime.js +18 -18
- package/dist/hooks/Maintenance_Duedate.d.ts +1 -1
- package/dist/hooks/Maintenance_Duedate.js +18 -18
- package/dist/hooks/Maintenance_Frequency.d.ts +1 -1
- package/dist/hooks/Maintenance_Frequency.js +18 -18
- package/dist/hooks/Maintenance_Issuecategory.d.ts +1 -1
- package/dist/hooks/Maintenance_Issuecategory.js +21 -21
- package/dist/hooks/Maintenance_Item.d.ts +1 -1
- package/dist/hooks/Maintenance_Item.js +18 -18
- package/dist/hooks/Maintenance_Kanban_State.d.ts +1 -1
- package/dist/hooks/Maintenance_Kanban_State.js +18 -18
- package/dist/hooks/Maintenance_Media.d.ts +1 -1
- package/dist/hooks/Maintenance_Media.js +18 -18
- package/dist/hooks/Maintenance_Message.d.ts +1 -1
- package/dist/hooks/Maintenance_Message.js +18 -18
- package/dist/hooks/Maintenance_Message_Body.d.ts +1 -1
- package/dist/hooks/Maintenance_Message_Body.js +18 -18
- package/dist/hooks/Maintenance_Order.d.ts +1 -1
- package/dist/hooks/Maintenance_Order.js +18 -18
- package/dist/hooks/Maintenance_Priority.d.ts +1 -1
- package/dist/hooks/Maintenance_Priority.js +18 -18
- package/dist/hooks/Maintenance_Restriction.d.ts +1 -1
- package/dist/hooks/Maintenance_Restriction.js +18 -18
- package/dist/hooks/Maintenance_Schedule.d.ts +1 -1
- package/dist/hooks/Maintenance_Schedule.js +18 -18
- package/dist/hooks/Maintenance_Schedule_Execution.d.ts +1 -1
- package/dist/hooks/Maintenance_Schedule_Execution.js +18 -18
- package/dist/hooks/Maintenance_Schedule_Execution_Step.d.ts +1 -1
- package/dist/hooks/Maintenance_Schedule_Execution_Step.js +18 -18
- package/dist/hooks/Maintenance_Schedule_Step.d.ts +1 -1
- package/dist/hooks/Maintenance_Schedule_Step.js +18 -18
- package/dist/hooks/Maintenance_SourceMeta.d.ts +1 -1
- package/dist/hooks/Maintenance_SourceMeta.js +18 -18
- package/dist/hooks/Maintenance_Ticket.d.ts +1 -1
- package/dist/hooks/Maintenance_Ticket.js +18 -18
- package/dist/hooks/Maintenance_Ticket_Issuecategory.d.ts +1 -1
- package/dist/hooks/Maintenance_Ticket_Issuecategory.js +18 -18
- package/dist/hooks/Maintenance_Ticket_Kanban_State.d.ts +1 -1
- package/dist/hooks/Maintenance_Ticket_Kanban_State.js +23 -23
- package/dist/hooks/Maintenance_Ticket_Source.d.ts +1 -1
- package/dist/hooks/Maintenance_Ticket_Source.js +18 -18
- package/dist/hooks/Monitoring_Slideshow.d.ts +1 -1
- package/dist/hooks/Monitoring_Slideshow.js +17 -17
- package/dist/hooks/NavigationGroup.d.ts +1 -1
- package/dist/hooks/NavigationGroup.js +15 -15
- package/dist/hooks/NavigationItem.d.ts +1 -1
- package/dist/hooks/NavigationItem.js +16 -16
- package/dist/hooks/Notification.d.ts +1 -1
- package/dist/hooks/Notification.js +73 -73
- package/dist/hooks/Permission.d.ts +1 -1
- package/dist/hooks/Permission.js +19 -19
- package/dist/hooks/Push.d.ts +1 -1
- package/dist/hooks/Push.js +30 -30
- package/dist/hooks/Report.d.ts +1 -1
- package/dist/hooks/Report.js +16 -16
- package/dist/hooks/Share.d.ts +1 -1
- package/dist/hooks/Share.js +16 -16
- package/dist/hooks/Source.d.ts +1 -1
- package/dist/hooks/Source.js +91 -91
- package/dist/hooks/Tenant.d.ts +1 -1
- package/dist/hooks/Tenant.js +75 -75
- package/dist/hooks/TenantTrustedDomain.d.ts +1 -1
- package/dist/hooks/TenantTrustedDomain.js +12 -12
- package/dist/hooks/UserData.d.ts +1 -1
- package/dist/hooks/UserData.js +16 -16
- package/dist/hooks/VirtualKPI.d.ts +1 -1
- package/dist/hooks/VirtualKPI.js +18 -18
- package/dist/hooks/Widget.d.ts +1 -1
- package/dist/hooks/Widget.js +16 -16
- package/dist/hooks/WidgetPreset.d.ts +1 -1
- package/dist/hooks/WidgetPreset.js +18 -18
- package/dist/hooks/_User.d.ts +1 -1
- package/dist/hooks/_User.js +108 -108
- package/dist/hooks/_beforeLogin.d.ts +1 -1
- package/dist/hooks/_beforeLogin.js +22 -22
- package/dist/hooks/_init.d.ts +1 -1
- package/dist/hooks/_init.js +23 -23
- package/dist/index.d.ts +65 -65
- package/dist/index.js +399 -399
- package/dist/ow.d.ts +20 -20
- package/dist/ow.js +88 -91
- package/dist/types/Alarm.d.ts +36 -36
- package/dist/types/Alarm.js +59 -59
- package/dist/types/AlarmAction.d.ts +42 -42
- package/dist/types/AlarmAction.js +71 -71
- package/dist/types/AlarmWebhook.d.ts +40 -40
- package/dist/types/AlarmWebhook.js +65 -65
- package/dist/types/Attachment.d.ts +21 -21
- package/dist/types/Attachment.js +29 -29
- package/dist/types/BDE_Form.d.ts +26 -26
- package/dist/types/BDE_Form.js +41 -41
- package/dist/types/BDE_List.d.ts +14 -14
- package/dist/types/BDE_List.js +17 -17
- package/dist/types/BDE_ListEntry.d.ts +21 -21
- package/dist/types/BDE_ListEntry.js +29 -29
- package/dist/types/BDE_Page.d.ts +17 -17
- package/dist/types/BDE_Page.js +23 -23
- package/dist/types/BDE_Result.d.ts +20 -20
- package/dist/types/BDE_Result.js +29 -29
- package/dist/types/BDE_Unit.d.ts +23 -23
- package/dist/types/BDE_Unit.js +32 -32
- package/dist/types/Config.d.ts +24 -24
- package/dist/types/Config.js +35 -35
- package/dist/types/Core_Email.d.ts +26 -26
- package/dist/types/Core_Email.js +41 -41
- package/dist/types/Core_Token.d.ts +23 -23
- package/dist/types/Core_Token.js +35 -35
- package/dist/types/Dashboard.d.ts +34 -34
- package/dist/types/Dashboard.js +53 -53
- package/dist/types/GTFS_Agency.d.ts +39 -39
- package/dist/types/GTFS_Agency.js +65 -65
- package/dist/types/GTFS_Bikes_Allowed.d.ts +21 -21
- package/dist/types/GTFS_Bikes_Allowed.js +29 -29
- package/dist/types/GTFS_Calendar.d.ts +42 -42
- package/dist/types/GTFS_Calendar.js +71 -71
- package/dist/types/GTFS_Direction.d.ts +21 -21
- package/dist/types/GTFS_Direction.js +29 -29
- package/dist/types/GTFS_Level.d.ts +21 -21
- package/dist/types/GTFS_Level.js +29 -29
- package/dist/types/GTFS_Location_Type.d.ts +24 -24
- package/dist/types/GTFS_Location_Type.js +35 -35
- package/dist/types/GTFS_Route.d.ts +46 -46
- package/dist/types/GTFS_Route.js +77 -77
- package/dist/types/GTFS_Route_Type.d.ts +24 -24
- package/dist/types/GTFS_Route_Type.js +35 -35
- package/dist/types/GTFS_Stop.d.ts +60 -60
- package/dist/types/GTFS_Stop.js +101 -101
- package/dist/types/GTFS_Stop_Times.d.ts +32 -32
- package/dist/types/GTFS_Stop_Times.js +47 -47
- package/dist/types/GTFS_Trip.d.ts +41 -41
- package/dist/types/GTFS_Trip.js +59 -59
- package/dist/types/GTFS_Wheelchair_Accessible.d.ts +21 -21
- package/dist/types/GTFS_Wheelchair_Accessible.js +29 -29
- package/dist/types/GTFS_Wheelchair_Boarding.d.ts +24 -24
- package/dist/types/GTFS_Wheelchair_Boarding.js +35 -35
- package/dist/types/Group.d.ts +32 -32
- package/dist/types/Group.js +47 -47
- package/dist/types/Knowledge_Article.d.ts +29 -29
- package/dist/types/Knowledge_Article.js +41 -41
- package/dist/types/Knowledge_Category.d.ts +25 -25
- package/dist/types/Knowledge_Category.js +35 -35
- package/dist/types/Knowledge_Document.d.ts +29 -29
- package/dist/types/Knowledge_Document.js +41 -41
- package/dist/types/Knowledge_DocumentPage.d.ts +31 -31
- package/dist/types/Knowledge_DocumentPage.js +47 -47
- package/dist/types/Knowledge_Video.d.ts +35 -35
- package/dist/types/Knowledge_Video.js +53 -53
- package/dist/types/Language.d.ts +14 -14
- package/dist/types/Language.js +17 -17
- package/dist/types/Log.d.ts +17 -17
- package/dist/types/Log.js +23 -23
- package/dist/types/MIAAS_MDSEndpoint.d.ts +29 -29
- package/dist/types/MIAAS_MDSEndpoint.js +47 -47
- package/dist/types/Maintenance_Article.d.ts +32 -32
- package/dist/types/Maintenance_Article.js +44 -44
- package/dist/types/Maintenance_Downtime.d.ts +26 -26
- package/dist/types/Maintenance_Downtime.js +35 -35
- package/dist/types/Maintenance_Duedate.d.ts +35 -35
- package/dist/types/Maintenance_Duedate.js +53 -53
- package/dist/types/Maintenance_Frequency.d.ts +26 -26
- package/dist/types/Maintenance_Frequency.js +35 -35
- package/dist/types/Maintenance_Issuecategory.d.ts +36 -36
- package/dist/types/Maintenance_Issuecategory.js +56 -56
- package/dist/types/Maintenance_Item.d.ts +21 -21
- package/dist/types/Maintenance_Item.js +29 -29
- package/dist/types/Maintenance_Kanban_State.d.ts +33 -33
- package/dist/types/Maintenance_Kanban_State.js +53 -53
- package/dist/types/Maintenance_Media.d.ts +21 -21
- package/dist/types/Maintenance_Media.js +29 -29
- package/dist/types/Maintenance_Message.d.ts +27 -27
- package/dist/types/Maintenance_Message.js +41 -41
- package/dist/types/Maintenance_Message_Body.d.ts +22 -22
- package/dist/types/Maintenance_Message_Body.js +29 -29
- package/dist/types/Maintenance_Order.d.ts +24 -24
- package/dist/types/Maintenance_Order.js +32 -32
- package/dist/types/Maintenance_Priority.d.ts +26 -26
- package/dist/types/Maintenance_Priority.js +35 -35
- package/dist/types/Maintenance_Restriction.d.ts +26 -26
- package/dist/types/Maintenance_Restriction.js +35 -35
- package/dist/types/Maintenance_Schedule.d.ts +37 -37
- package/dist/types/Maintenance_Schedule.js +56 -56
- package/dist/types/Maintenance_Schedule_Execution.d.ts +39 -39
- package/dist/types/Maintenance_Schedule_Execution.js +56 -56
- package/dist/types/Maintenance_Schedule_Execution_Step.d.ts +44 -44
- package/dist/types/Maintenance_Schedule_Execution_Step.js +71 -71
- package/dist/types/Maintenance_Schedule_Step.d.ts +38 -38
- package/dist/types/Maintenance_Schedule_Step.js +59 -59
- package/dist/types/Maintenance_SourceMeta.d.ts +23 -23
- package/dist/types/Maintenance_SourceMeta.js +29 -29
- package/dist/types/Maintenance_Ticket.d.ts +30 -30
- package/dist/types/Maintenance_Ticket.js +41 -41
- package/dist/types/Maintenance_Ticket_Issuecategory.d.ts +27 -27
- package/dist/types/Maintenance_Ticket_Issuecategory.js +35 -35
- package/dist/types/Maintenance_Ticket_Kanban_State.d.ts +27 -27
- package/dist/types/Maintenance_Ticket_Kanban_State.js +35 -35
- package/dist/types/Maintenance_Ticket_Source.d.ts +27 -27
- package/dist/types/Maintenance_Ticket_Source.js +35 -35
- package/dist/types/Monitoring_Slideshow.d.ts +20 -20
- package/dist/types/Monitoring_Slideshow.js +26 -26
- package/dist/types/NavigationGroup.d.ts +24 -24
- package/dist/types/NavigationGroup.js +35 -35
- package/dist/types/NavigationItem.d.ts +48 -48
- package/dist/types/NavigationItem.js +83 -83
- package/dist/types/Notification.d.ts +30 -30
- package/dist/types/Notification.js +47 -47
- package/dist/types/Permission.d.ts +18 -18
- package/dist/types/Permission.js +23 -23
- package/dist/types/Push.d.ts +27 -27
- package/dist/types/Push.js +41 -41
- package/dist/types/Report.d.ts +39 -39
- package/dist/types/Report.js +65 -65
- package/dist/types/Share.d.ts +34 -34
- package/dist/types/Share.js +53 -53
- package/dist/types/Source.d.ts +26 -26
- package/dist/types/Source.js +38 -38
- package/dist/types/Tenant.d.ts +45 -45
- package/dist/types/Tenant.js +77 -77
- package/dist/types/TenantTrustedDomain.d.ts +18 -18
- package/dist/types/TenantTrustedDomain.js +23 -23
- package/dist/types/UserData.d.ts +21 -21
- package/dist/types/UserData.js +29 -29
- package/dist/types/VirtualKPI.d.ts +21 -21
- package/dist/types/VirtualKPI.js +29 -29
- package/dist/types/Widget.d.ts +24 -24
- package/dist/types/Widget.js +35 -35
- package/dist/types/WidgetPreset.d.ts +40 -40
- package/dist/types/WidgetPreset.js +65 -65
- package/dist/types/_Role.d.ts +13 -13
- package/dist/types/_Role.js +2 -2
- package/dist/types/_Session.d.ts +15 -15
- package/dist/types/_Session.js +2 -2
- package/dist/types/_User.d.ts +28 -28
- package/dist/types/_User.js +2 -2
- package/dist/types/index.d.ts +152 -152
- package/dist/types/index.js +150 -150
- package/package.json +1 -1
package/dist/ow.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export interface DataItemInterface {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
reference?: string;
|
|
5
|
-
user: string;
|
|
6
|
-
meta: Record<string, any>;
|
|
7
|
-
valueTypes: DataItemValueTypeInterface[];
|
|
8
|
-
values: DataItemValueInterface[];
|
|
9
|
-
}
|
|
10
|
-
export interface DataItemValueTypeInterface {
|
|
11
|
-
unit: string;
|
|
12
|
-
name: string;
|
|
13
|
-
type: "Number" | "String" | "Boolean" | "Geo" | "Object";
|
|
14
|
-
}
|
|
15
|
-
export interface DataItemValueInterface {
|
|
16
|
-
date: number;
|
|
17
|
-
value: any[];
|
|
18
|
-
}
|
|
19
|
-
export declare function getToken(usermail?: string): Promise<string | null>;
|
|
20
|
-
export declare function publishDataItem(dataItem: DataItemInterface, usermail?: string): Promise<void>;
|
|
1
|
+
export interface DataItemInterface {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
reference?: string;
|
|
5
|
+
user: string;
|
|
6
|
+
meta: Record<string, any>;
|
|
7
|
+
valueTypes: DataItemValueTypeInterface[];
|
|
8
|
+
values: DataItemValueInterface[];
|
|
9
|
+
}
|
|
10
|
+
export interface DataItemValueTypeInterface {
|
|
11
|
+
unit: string;
|
|
12
|
+
name: string;
|
|
13
|
+
type: "Number" | "String" | "Boolean" | "Geo" | "Object";
|
|
14
|
+
}
|
|
15
|
+
export interface DataItemValueInterface {
|
|
16
|
+
date: number;
|
|
17
|
+
value: any[];
|
|
18
|
+
}
|
|
19
|
+
export declare function getToken(usermail?: string): Promise<string | null>;
|
|
20
|
+
export declare function publishDataItem(dataItem: DataItemInterface, usermail?: string): Promise<void>;
|
package/dist/ow.js
CHANGED
|
@@ -1,91 +1,88 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.publishDataItem = exports.getToken = void 0;
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const config_1 = require("./config");
|
|
10
|
-
const LOG_PREFIX = "[@openinc/parse-server-opendash][open.WARE] ";
|
|
11
|
-
async function getToken(usermail) {
|
|
12
|
-
const JWT_EMAIL = usermail || config_1.config.get("OPENWARE_JWT_ADMIN_EMAIL");
|
|
13
|
-
const JWT_SECRET = config_1.config.get("OPENWARE_JWT_SECRET");
|
|
14
|
-
const JWT_ISS = config_1.config.get("OPENWARE_JWT_ISS");
|
|
15
|
-
const JWT_TOKEN = config_1.config.get("OPENWARE_JWT_TOKEN");
|
|
16
|
-
if (JWT_EMAIL && JWT_SECRET && JWT_ISS) {
|
|
17
|
-
return jsonwebtoken_1.default.sign({ usermail: JWT_EMAIL }, JWT_SECRET, {
|
|
18
|
-
algorithm: "HS256",
|
|
19
|
-
issuer: JWT_ISS,
|
|
20
|
-
noTimestamp: true,
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
if (JWT_TOKEN) {
|
|
24
|
-
return JWT_TOKEN;
|
|
25
|
-
}
|
|
26
|
-
return null;
|
|
27
|
-
}
|
|
28
|
-
exports.getToken = getToken;
|
|
29
|
-
async function publishDataItem(dataItem, usermail) {
|
|
30
|
-
const active = config_1.config.getBoolean("OPENWARE");
|
|
31
|
-
if (!active) {
|
|
32
|
-
return console.log(LOG_PREFIX +
|
|
33
|
-
"OPENWARE = false => Sending Data to open.WARE is not available.");
|
|
34
|
-
}
|
|
35
|
-
const token = await getToken(usermail);
|
|
36
|
-
if (!token) {
|
|
37
|
-
return console.log(LOG_PREFIX +
|
|
38
|
-
"OPENWARE_JWT_TOKEN OR _JWT_SECERT/_ADMIN_EMAIL/_ISS = undefined => Sending Data to open.WARE is not available.");
|
|
39
|
-
}
|
|
40
|
-
const baseurl = config_1.config.get("OPENWARE_BASEURL");
|
|
41
|
-
if (!baseurl) {
|
|
42
|
-
return console.log(LOG_PREFIX +
|
|
43
|
-
"OPENWARE_BASEURL = undefined => Sending Data to open.WARE is not available.");
|
|
44
|
-
}
|
|
45
|
-
const url = baseurl + "/api/data/push";
|
|
46
|
-
const headers = {
|
|
47
|
-
Authorization: "Bearer " + token,
|
|
48
|
-
};
|
|
49
|
-
const response = await (0, node_fetch_1.default)(url, {
|
|
50
|
-
method: "POST",
|
|
51
|
-
headers,
|
|
52
|
-
body: JSON.stringify(dataItem),
|
|
53
|
-
});
|
|
54
|
-
// console.log(
|
|
55
|
-
// LOG_PREFIX +
|
|
56
|
-
// "PUBLISH DEBUG: \n" +
|
|
57
|
-
// `STATUS=${response.status}\n` +
|
|
58
|
-
// `URL=${url}\n` +
|
|
59
|
-
// `TOKEN=${token}\n` +
|
|
60
|
-
// "PAYLOAD = " +
|
|
61
|
-
// JSON.stringify(dataItem, null, 2) +
|
|
62
|
-
// "\n" +
|
|
63
|
-
// (await response.text())
|
|
64
|
-
// );
|
|
65
|
-
if (!response.ok) {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
"
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
console.log(LOG_PREFIX + "PUBLISH SUCCESS " + (await response.text()));
|
|
90
|
-
}
|
|
91
|
-
exports.publishDataItem = publishDataItem;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.publishDataItem = exports.getToken = void 0;
|
|
7
|
+
const jsonwebtoken_1 = __importDefault(require("jsonwebtoken"));
|
|
8
|
+
const node_fetch_1 = __importDefault(require("node-fetch"));
|
|
9
|
+
const config_1 = require("./config");
|
|
10
|
+
const LOG_PREFIX = "[@openinc/parse-server-opendash][open.WARE] ";
|
|
11
|
+
async function getToken(usermail) {
|
|
12
|
+
const JWT_EMAIL = usermail || config_1.config.get("OPENWARE_JWT_ADMIN_EMAIL");
|
|
13
|
+
const JWT_SECRET = config_1.config.get("OPENWARE_JWT_SECRET");
|
|
14
|
+
const JWT_ISS = config_1.config.get("OPENWARE_JWT_ISS");
|
|
15
|
+
const JWT_TOKEN = config_1.config.get("OPENWARE_JWT_TOKEN");
|
|
16
|
+
if (JWT_EMAIL && JWT_SECRET && JWT_ISS) {
|
|
17
|
+
return jsonwebtoken_1.default.sign({ usermail: JWT_EMAIL }, JWT_SECRET, {
|
|
18
|
+
algorithm: "HS256",
|
|
19
|
+
issuer: JWT_ISS,
|
|
20
|
+
noTimestamp: true,
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
if (JWT_TOKEN) {
|
|
24
|
+
return JWT_TOKEN;
|
|
25
|
+
}
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
exports.getToken = getToken;
|
|
29
|
+
async function publishDataItem(dataItem, usermail) {
|
|
30
|
+
const active = config_1.config.getBoolean("OPENWARE");
|
|
31
|
+
if (!active) {
|
|
32
|
+
return console.log(LOG_PREFIX +
|
|
33
|
+
"OPENWARE = false => Sending Data to open.WARE is not available.");
|
|
34
|
+
}
|
|
35
|
+
const token = await getToken(usermail);
|
|
36
|
+
if (!token) {
|
|
37
|
+
return console.log(LOG_PREFIX +
|
|
38
|
+
"OPENWARE_JWT_TOKEN OR _JWT_SECERT/_ADMIN_EMAIL/_ISS = undefined => Sending Data to open.WARE is not available.");
|
|
39
|
+
}
|
|
40
|
+
const baseurl = config_1.config.get("OPENWARE_BASEURL");
|
|
41
|
+
if (!baseurl) {
|
|
42
|
+
return console.log(LOG_PREFIX +
|
|
43
|
+
"OPENWARE_BASEURL = undefined => Sending Data to open.WARE is not available.");
|
|
44
|
+
}
|
|
45
|
+
const url = baseurl + "/api/data/push";
|
|
46
|
+
const headers = {
|
|
47
|
+
Authorization: "Bearer " + token,
|
|
48
|
+
};
|
|
49
|
+
const response = await (0, node_fetch_1.default)(url, {
|
|
50
|
+
method: "POST",
|
|
51
|
+
headers,
|
|
52
|
+
body: JSON.stringify(dataItem),
|
|
53
|
+
});
|
|
54
|
+
// console.log(
|
|
55
|
+
// LOG_PREFIX +
|
|
56
|
+
// "PUBLISH DEBUG: \n" +
|
|
57
|
+
// `STATUS=${response.status}\n` +
|
|
58
|
+
// `URL=${url}\n` +
|
|
59
|
+
// `TOKEN=${token}\n` +
|
|
60
|
+
// "PAYLOAD = " +
|
|
61
|
+
// JSON.stringify(dataItem, null, 2) +
|
|
62
|
+
// "\n" +
|
|
63
|
+
// (await response.text())
|
|
64
|
+
// );
|
|
65
|
+
if (!response.ok) {
|
|
66
|
+
const text = await response.text();
|
|
67
|
+
console.log(LOG_PREFIX +
|
|
68
|
+
"PUBLISH ERROR Bad Status Code: " +
|
|
69
|
+
response.status +
|
|
70
|
+
"\n" +
|
|
71
|
+
text);
|
|
72
|
+
console.log(LOG_PREFIX +
|
|
73
|
+
"PUBLISH ERROR DEBUG: \n" +
|
|
74
|
+
"URL = " +
|
|
75
|
+
url +
|
|
76
|
+
"\n" +
|
|
77
|
+
"TOKEN = " +
|
|
78
|
+
token +
|
|
79
|
+
"\n" +
|
|
80
|
+
"PAYLOAD = " +
|
|
81
|
+
JSON.stringify(dataItem, null, 2) +
|
|
82
|
+
"\n" +
|
|
83
|
+
text);
|
|
84
|
+
throw new Error(LOG_PREFIX + "Bad Status Code: " + response.status + "\n" + text);
|
|
85
|
+
}
|
|
86
|
+
console.log(LOG_PREFIX + "PUBLISH SUCCESS " + (await response.text()));
|
|
87
|
+
}
|
|
88
|
+
exports.publishDataItem = publishDataItem;
|
package/dist/types/Alarm.d.ts
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
/// <reference types="parse" />
|
|
2
|
-
import type { _User } from "./_User";
|
|
3
|
-
export interface AlarmAttributes {
|
|
4
|
-
id: string;
|
|
5
|
-
objectId: string;
|
|
6
|
-
createdAt: Date;
|
|
7
|
-
updatedAt: Date;
|
|
8
|
-
action?: any;
|
|
9
|
-
condition?: any;
|
|
10
|
-
item_dimension?: number;
|
|
11
|
-
item_id?: string;
|
|
12
|
-
item_source?: string;
|
|
13
|
-
name?: string;
|
|
14
|
-
trigger?: any;
|
|
15
|
-
user: _User;
|
|
16
|
-
}
|
|
17
|
-
export declare class Alarm extends Parse.Object<AlarmAttributes> {
|
|
18
|
-
static className: string;
|
|
19
|
-
constructor(data?: Partial<AlarmAttributes>);
|
|
20
|
-
get action(): any | undefined;
|
|
21
|
-
set action(value: any | undefined);
|
|
22
|
-
get condition(): any | undefined;
|
|
23
|
-
set condition(value: any | undefined);
|
|
24
|
-
get item_dimension(): number | undefined;
|
|
25
|
-
set item_dimension(value: number | undefined);
|
|
26
|
-
get item_id(): string | undefined;
|
|
27
|
-
set item_id(value: string | undefined);
|
|
28
|
-
get item_source(): string | undefined;
|
|
29
|
-
set item_source(value: string | undefined);
|
|
30
|
-
get name(): string | undefined;
|
|
31
|
-
set name(value: string | undefined);
|
|
32
|
-
get trigger(): any | undefined;
|
|
33
|
-
set trigger(value: any | undefined);
|
|
34
|
-
get user(): _User;
|
|
35
|
-
set user(value: _User);
|
|
36
|
-
}
|
|
1
|
+
/// <reference types="parse" />
|
|
2
|
+
import type { _User } from "./_User";
|
|
3
|
+
export interface AlarmAttributes {
|
|
4
|
+
id: string;
|
|
5
|
+
objectId: string;
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
updatedAt: Date;
|
|
8
|
+
action?: any;
|
|
9
|
+
condition?: any;
|
|
10
|
+
item_dimension?: number;
|
|
11
|
+
item_id?: string;
|
|
12
|
+
item_source?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
trigger?: any;
|
|
15
|
+
user: _User;
|
|
16
|
+
}
|
|
17
|
+
export declare class Alarm extends Parse.Object<AlarmAttributes> {
|
|
18
|
+
static className: string;
|
|
19
|
+
constructor(data?: Partial<AlarmAttributes>);
|
|
20
|
+
get action(): any | undefined;
|
|
21
|
+
set action(value: any | undefined);
|
|
22
|
+
get condition(): any | undefined;
|
|
23
|
+
set condition(value: any | undefined);
|
|
24
|
+
get item_dimension(): number | undefined;
|
|
25
|
+
set item_dimension(value: number | undefined);
|
|
26
|
+
get item_id(): string | undefined;
|
|
27
|
+
set item_id(value: string | undefined);
|
|
28
|
+
get item_source(): string | undefined;
|
|
29
|
+
set item_source(value: string | undefined);
|
|
30
|
+
get name(): string | undefined;
|
|
31
|
+
set name(value: string | undefined);
|
|
32
|
+
get trigger(): any | undefined;
|
|
33
|
+
set trigger(value: any | undefined);
|
|
34
|
+
get user(): _User;
|
|
35
|
+
set user(value: _User);
|
|
36
|
+
}
|
package/dist/types/Alarm.js
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Alarm = void 0;
|
|
4
|
-
class Alarm extends Parse.Object {
|
|
5
|
-
constructor(data) {
|
|
6
|
-
super("OD3_Alarm", data);
|
|
7
|
-
}
|
|
8
|
-
get action() {
|
|
9
|
-
return super.get("action");
|
|
10
|
-
}
|
|
11
|
-
set action(value) {
|
|
12
|
-
super.set("action", value);
|
|
13
|
-
}
|
|
14
|
-
get condition() {
|
|
15
|
-
return super.get("condition");
|
|
16
|
-
}
|
|
17
|
-
set condition(value) {
|
|
18
|
-
super.set("condition", value);
|
|
19
|
-
}
|
|
20
|
-
get item_dimension() {
|
|
21
|
-
return super.get("item_dimension");
|
|
22
|
-
}
|
|
23
|
-
set item_dimension(value) {
|
|
24
|
-
super.set("item_dimension", value);
|
|
25
|
-
}
|
|
26
|
-
get item_id() {
|
|
27
|
-
return super.get("item_id");
|
|
28
|
-
}
|
|
29
|
-
set item_id(value) {
|
|
30
|
-
super.set("item_id", value);
|
|
31
|
-
}
|
|
32
|
-
get item_source() {
|
|
33
|
-
return super.get("item_source");
|
|
34
|
-
}
|
|
35
|
-
set item_source(value) {
|
|
36
|
-
super.set("item_source", value);
|
|
37
|
-
}
|
|
38
|
-
get name() {
|
|
39
|
-
return super.get("name");
|
|
40
|
-
}
|
|
41
|
-
set name(value) {
|
|
42
|
-
super.set("name", value);
|
|
43
|
-
}
|
|
44
|
-
get trigger() {
|
|
45
|
-
return super.get("trigger");
|
|
46
|
-
}
|
|
47
|
-
set trigger(value) {
|
|
48
|
-
super.set("trigger", value);
|
|
49
|
-
}
|
|
50
|
-
get user() {
|
|
51
|
-
return super.get("user");
|
|
52
|
-
}
|
|
53
|
-
set user(value) {
|
|
54
|
-
super.set("user", value);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
Alarm
|
|
59
|
-
Parse.Object.registerSubclass("OD3_Alarm", Alarm);
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Alarm = void 0;
|
|
4
|
+
class Alarm extends Parse.Object {
|
|
5
|
+
constructor(data) {
|
|
6
|
+
super("OD3_Alarm", data);
|
|
7
|
+
}
|
|
8
|
+
get action() {
|
|
9
|
+
return super.get("action");
|
|
10
|
+
}
|
|
11
|
+
set action(value) {
|
|
12
|
+
super.set("action", value);
|
|
13
|
+
}
|
|
14
|
+
get condition() {
|
|
15
|
+
return super.get("condition");
|
|
16
|
+
}
|
|
17
|
+
set condition(value) {
|
|
18
|
+
super.set("condition", value);
|
|
19
|
+
}
|
|
20
|
+
get item_dimension() {
|
|
21
|
+
return super.get("item_dimension");
|
|
22
|
+
}
|
|
23
|
+
set item_dimension(value) {
|
|
24
|
+
super.set("item_dimension", value);
|
|
25
|
+
}
|
|
26
|
+
get item_id() {
|
|
27
|
+
return super.get("item_id");
|
|
28
|
+
}
|
|
29
|
+
set item_id(value) {
|
|
30
|
+
super.set("item_id", value);
|
|
31
|
+
}
|
|
32
|
+
get item_source() {
|
|
33
|
+
return super.get("item_source");
|
|
34
|
+
}
|
|
35
|
+
set item_source(value) {
|
|
36
|
+
super.set("item_source", value);
|
|
37
|
+
}
|
|
38
|
+
get name() {
|
|
39
|
+
return super.get("name");
|
|
40
|
+
}
|
|
41
|
+
set name(value) {
|
|
42
|
+
super.set("name", value);
|
|
43
|
+
}
|
|
44
|
+
get trigger() {
|
|
45
|
+
return super.get("trigger");
|
|
46
|
+
}
|
|
47
|
+
set trigger(value) {
|
|
48
|
+
super.set("trigger", value);
|
|
49
|
+
}
|
|
50
|
+
get user() {
|
|
51
|
+
return super.get("user");
|
|
52
|
+
}
|
|
53
|
+
set user(value) {
|
|
54
|
+
super.set("user", value);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
Alarm.className = "OD3_Alarm";
|
|
58
|
+
exports.Alarm = Alarm;
|
|
59
|
+
Parse.Object.registerSubclass("OD3_Alarm", Alarm);
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
/// <reference types="parse" />
|
|
2
|
-
import type { Tenant } from "./Tenant";
|
|
3
|
-
export interface AlarmActionAttributes {
|
|
4
|
-
id: string;
|
|
5
|
-
objectId: string;
|
|
6
|
-
createdAt: Date;
|
|
7
|
-
updatedAt: Date;
|
|
8
|
-
extra: any;
|
|
9
|
-
formFields: any[];
|
|
10
|
-
label: string;
|
|
11
|
-
payload: string;
|
|
12
|
-
supportedTypes: any[];
|
|
13
|
-
target?: string;
|
|
14
|
-
templateType: string;
|
|
15
|
-
tenant?: Tenant;
|
|
16
|
-
topic: string;
|
|
17
|
-
type: string;
|
|
18
|
-
}
|
|
19
|
-
export declare class AlarmAction extends Parse.Object<AlarmActionAttributes> {
|
|
20
|
-
static className: string;
|
|
21
|
-
constructor(data?: Partial<AlarmActionAttributes>);
|
|
22
|
-
get extra(): any;
|
|
23
|
-
set extra(value: any);
|
|
24
|
-
get formFields(): any[];
|
|
25
|
-
set formFields(value: any[]);
|
|
26
|
-
get label(): string;
|
|
27
|
-
set label(value: string);
|
|
28
|
-
get payload(): string;
|
|
29
|
-
set payload(value: string);
|
|
30
|
-
get supportedTypes(): any[];
|
|
31
|
-
set supportedTypes(value: any[]);
|
|
32
|
-
get target(): string | undefined;
|
|
33
|
-
set target(value: string | undefined);
|
|
34
|
-
get templateType(): string;
|
|
35
|
-
set templateType(value: string);
|
|
36
|
-
get tenant(): Tenant | undefined;
|
|
37
|
-
set tenant(value: Tenant | undefined);
|
|
38
|
-
get topic(): string;
|
|
39
|
-
set topic(value: string);
|
|
40
|
-
get type(): string;
|
|
41
|
-
set type(value: string);
|
|
42
|
-
}
|
|
1
|
+
/// <reference types="parse" />
|
|
2
|
+
import type { Tenant } from "./Tenant";
|
|
3
|
+
export interface AlarmActionAttributes {
|
|
4
|
+
id: string;
|
|
5
|
+
objectId: string;
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
updatedAt: Date;
|
|
8
|
+
extra: any;
|
|
9
|
+
formFields: any[];
|
|
10
|
+
label: string;
|
|
11
|
+
payload: string;
|
|
12
|
+
supportedTypes: any[];
|
|
13
|
+
target?: string;
|
|
14
|
+
templateType: string;
|
|
15
|
+
tenant?: Tenant;
|
|
16
|
+
topic: string;
|
|
17
|
+
type: string;
|
|
18
|
+
}
|
|
19
|
+
export declare class AlarmAction extends Parse.Object<AlarmActionAttributes> {
|
|
20
|
+
static className: string;
|
|
21
|
+
constructor(data?: Partial<AlarmActionAttributes>);
|
|
22
|
+
get extra(): any;
|
|
23
|
+
set extra(value: any);
|
|
24
|
+
get formFields(): any[];
|
|
25
|
+
set formFields(value: any[]);
|
|
26
|
+
get label(): string;
|
|
27
|
+
set label(value: string);
|
|
28
|
+
get payload(): string;
|
|
29
|
+
set payload(value: string);
|
|
30
|
+
get supportedTypes(): any[];
|
|
31
|
+
set supportedTypes(value: any[]);
|
|
32
|
+
get target(): string | undefined;
|
|
33
|
+
set target(value: string | undefined);
|
|
34
|
+
get templateType(): string;
|
|
35
|
+
set templateType(value: string);
|
|
36
|
+
get tenant(): Tenant | undefined;
|
|
37
|
+
set tenant(value: Tenant | undefined);
|
|
38
|
+
get topic(): string;
|
|
39
|
+
set topic(value: string);
|
|
40
|
+
get type(): string;
|
|
41
|
+
set type(value: string);
|
|
42
|
+
}
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AlarmAction = void 0;
|
|
4
|
-
class AlarmAction extends Parse.Object {
|
|
5
|
-
constructor(data) {
|
|
6
|
-
super("OD3_AlarmAction", data);
|
|
7
|
-
}
|
|
8
|
-
get extra() {
|
|
9
|
-
return super.get("extra");
|
|
10
|
-
}
|
|
11
|
-
set extra(value) {
|
|
12
|
-
super.set("extra", value);
|
|
13
|
-
}
|
|
14
|
-
get formFields() {
|
|
15
|
-
return super.get("formFields");
|
|
16
|
-
}
|
|
17
|
-
set formFields(value) {
|
|
18
|
-
super.set("formFields", value);
|
|
19
|
-
}
|
|
20
|
-
get label() {
|
|
21
|
-
return super.get("label");
|
|
22
|
-
}
|
|
23
|
-
set label(value) {
|
|
24
|
-
super.set("label", value);
|
|
25
|
-
}
|
|
26
|
-
get payload() {
|
|
27
|
-
return super.get("payload");
|
|
28
|
-
}
|
|
29
|
-
set payload(value) {
|
|
30
|
-
super.set("payload", value);
|
|
31
|
-
}
|
|
32
|
-
get supportedTypes() {
|
|
33
|
-
return super.get("supportedTypes");
|
|
34
|
-
}
|
|
35
|
-
set supportedTypes(value) {
|
|
36
|
-
super.set("supportedTypes", value);
|
|
37
|
-
}
|
|
38
|
-
get target() {
|
|
39
|
-
return super.get("target");
|
|
40
|
-
}
|
|
41
|
-
set target(value) {
|
|
42
|
-
super.set("target", value);
|
|
43
|
-
}
|
|
44
|
-
get templateType() {
|
|
45
|
-
return super.get("templateType");
|
|
46
|
-
}
|
|
47
|
-
set templateType(value) {
|
|
48
|
-
super.set("templateType", value);
|
|
49
|
-
}
|
|
50
|
-
get tenant() {
|
|
51
|
-
return super.get("tenant");
|
|
52
|
-
}
|
|
53
|
-
set tenant(value) {
|
|
54
|
-
super.set("tenant", value);
|
|
55
|
-
}
|
|
56
|
-
get topic() {
|
|
57
|
-
return super.get("topic");
|
|
58
|
-
}
|
|
59
|
-
set topic(value) {
|
|
60
|
-
super.set("topic", value);
|
|
61
|
-
}
|
|
62
|
-
get type() {
|
|
63
|
-
return super.get("type");
|
|
64
|
-
}
|
|
65
|
-
set type(value) {
|
|
66
|
-
super.set("type", value);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
AlarmAction
|
|
71
|
-
Parse.Object.registerSubclass("OD3_AlarmAction", AlarmAction);
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AlarmAction = void 0;
|
|
4
|
+
class AlarmAction extends Parse.Object {
|
|
5
|
+
constructor(data) {
|
|
6
|
+
super("OD3_AlarmAction", data);
|
|
7
|
+
}
|
|
8
|
+
get extra() {
|
|
9
|
+
return super.get("extra");
|
|
10
|
+
}
|
|
11
|
+
set extra(value) {
|
|
12
|
+
super.set("extra", value);
|
|
13
|
+
}
|
|
14
|
+
get formFields() {
|
|
15
|
+
return super.get("formFields");
|
|
16
|
+
}
|
|
17
|
+
set formFields(value) {
|
|
18
|
+
super.set("formFields", value);
|
|
19
|
+
}
|
|
20
|
+
get label() {
|
|
21
|
+
return super.get("label");
|
|
22
|
+
}
|
|
23
|
+
set label(value) {
|
|
24
|
+
super.set("label", value);
|
|
25
|
+
}
|
|
26
|
+
get payload() {
|
|
27
|
+
return super.get("payload");
|
|
28
|
+
}
|
|
29
|
+
set payload(value) {
|
|
30
|
+
super.set("payload", value);
|
|
31
|
+
}
|
|
32
|
+
get supportedTypes() {
|
|
33
|
+
return super.get("supportedTypes");
|
|
34
|
+
}
|
|
35
|
+
set supportedTypes(value) {
|
|
36
|
+
super.set("supportedTypes", value);
|
|
37
|
+
}
|
|
38
|
+
get target() {
|
|
39
|
+
return super.get("target");
|
|
40
|
+
}
|
|
41
|
+
set target(value) {
|
|
42
|
+
super.set("target", value);
|
|
43
|
+
}
|
|
44
|
+
get templateType() {
|
|
45
|
+
return super.get("templateType");
|
|
46
|
+
}
|
|
47
|
+
set templateType(value) {
|
|
48
|
+
super.set("templateType", value);
|
|
49
|
+
}
|
|
50
|
+
get tenant() {
|
|
51
|
+
return super.get("tenant");
|
|
52
|
+
}
|
|
53
|
+
set tenant(value) {
|
|
54
|
+
super.set("tenant", value);
|
|
55
|
+
}
|
|
56
|
+
get topic() {
|
|
57
|
+
return super.get("topic");
|
|
58
|
+
}
|
|
59
|
+
set topic(value) {
|
|
60
|
+
super.set("topic", value);
|
|
61
|
+
}
|
|
62
|
+
get type() {
|
|
63
|
+
return super.get("type");
|
|
64
|
+
}
|
|
65
|
+
set type(value) {
|
|
66
|
+
super.set("type", value);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
AlarmAction.className = "OD3_AlarmAction";
|
|
70
|
+
exports.AlarmAction = AlarmAction;
|
|
71
|
+
Parse.Object.registerSubclass("OD3_AlarmAction", AlarmAction);
|