@openinc/parse-server-opendash 2.4.90 → 2.4.91
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/app_types/ConfigKeys.d.ts +9 -0
- package/dist/app_types/ConfigKeys.js +14 -0
- package/dist/app_types/Notifications.d.ts +10 -0
- package/dist/app_types/Notifications.js +16 -0
- package/dist/app_types/Permissions.d.ts +42 -0
- package/dist/app_types/Permissions.js +61 -0
- package/dist/app_types/index.d.ts +3 -0
- package/dist/app_types/index.js +9 -0
- package/dist/featuremap.json +7 -5
- package/dist/functions/openinc-deregister-permission.js +2 -2
- package/dist/functions/openinc-openservice-save-ticket-data.d.ts +40 -0
- package/dist/functions/openinc-openservice-save-ticket-data.js +328 -0
- package/dist/functions/openinc-openservice-ticket-data.js +16 -32
- package/dist/functions/openinc-register-permission.js +1 -1
- package/dist/functions/openinc-user-roles.js +1 -1
- package/dist/helper/TicketData.d.ts +15 -0
- package/dist/helper/TicketData.js +2 -0
- package/dist/helper/pdf2img.d.ts +4 -1
- package/dist/helper/pdf2img.js +151 -104
- package/dist/helper/registerNotification.d.ts +25 -0
- package/dist/helper/registerNotification.js +61 -0
- package/dist/helper/registerPermissions.d.ts +0 -42
- package/dist/helper/registerPermissions.js +5 -62
- package/dist/hooks/Assets.js +17 -0
- package/dist/hooks/Documentation_Category.d.ts +1 -0
- package/dist/hooks/Documentation_Category.js +17 -0
- package/dist/hooks/Documentation_Document.d.ts +1 -0
- package/dist/hooks/Documentation_Document.js +17 -0
- package/dist/hooks/Knowledge_Document.js +35 -2
- package/dist/hooks/Maintenance_Schedule_Execution.js +4 -4
- package/dist/hooks/Maintenance_Schedule_Template.js +19 -8
- package/dist/hooks/Maintenance_Ticket.js +1 -4
- package/dist/hooks/Maintenance_Ticket_Kanban_State_Current.js +1 -1
- package/dist/hooks/Notification_Setting.d.ts +1 -0
- package/dist/hooks/Notification_Setting.js +55 -0
- package/dist/hooks/User_Setting.d.ts +1 -0
- package/dist/hooks/User_Setting.js +17 -0
- package/dist/hooks/_User.js +0 -12
- package/dist/index.js +12 -0
- package/dist/jobs/open_service_notifyOnSchedule.js +125 -20
- package/dist/types/Assets.d.ts +27 -0
- package/dist/types/Assets.js +41 -0
- package/dist/types/Documentation_Document.d.ts +0 -6
- package/dist/types/Documentation_Document.js +0 -12
- package/dist/types/Knowledge_Document.d.ts +3 -0
- package/dist/types/Knowledge_Document.js +6 -0
- package/dist/types/Maintenance_Message.d.ts +6 -0
- package/dist/types/Maintenance_Message.js +9 -0
- package/dist/types/Notification_Setting.d.ts +29 -0
- package/dist/types/Notification_Setting.js +41 -0
- package/dist/types/User_Setting.d.ts +13 -0
- package/dist/types/User_Setting.js +17 -0
- package/dist/types/_User.d.ts +2 -0
- package/dist/types/index.d.ts +6 -2
- package/dist/types/index.js +8 -4
- package/package.json +4 -4
- package/schema/Assets.json +52 -0
- package/schema/Documentation_Document.json +0 -10
- package/schema/Knowledge_Document.json +5 -0
- package/schema/Maintenance_Message.json +9 -0
- package/schema/Notification_Setting.json +57 -0
- package/schema/User_Setting.json +35 -0
- package/dist/hooks/Group.js +0 -55
- package/dist/types/Group.d.ts +0 -31
- package/dist/types/Group.js +0 -47
- package/schema/Group.json +0 -62
- /package/dist/hooks/{Group.d.ts → Assets.d.ts} +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Tenant } from "./Tenant";
|
|
2
|
+
import type { _User } from "./_User";
|
|
3
|
+
export interface AssetsAttributes {
|
|
4
|
+
id: string;
|
|
5
|
+
objectId: string;
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
updatedAt: Date;
|
|
8
|
+
description: string;
|
|
9
|
+
file: Parse.File;
|
|
10
|
+
meta?: any;
|
|
11
|
+
tenant?: Tenant;
|
|
12
|
+
user: _User;
|
|
13
|
+
}
|
|
14
|
+
export declare class Assets extends Parse.Object<AssetsAttributes> {
|
|
15
|
+
static className: string;
|
|
16
|
+
constructor(data?: Partial<AssetsAttributes>);
|
|
17
|
+
get description(): string;
|
|
18
|
+
set description(value: string);
|
|
19
|
+
get file(): Parse.File;
|
|
20
|
+
set file(value: Parse.File);
|
|
21
|
+
get meta(): any | undefined;
|
|
22
|
+
set meta(value: any | undefined);
|
|
23
|
+
get tenant(): Tenant | undefined;
|
|
24
|
+
set tenant(value: Tenant | undefined);
|
|
25
|
+
get user(): _User;
|
|
26
|
+
set user(value: _User);
|
|
27
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Assets = void 0;
|
|
4
|
+
class Assets extends Parse.Object {
|
|
5
|
+
constructor(data) {
|
|
6
|
+
super("OD3_Assets", data);
|
|
7
|
+
}
|
|
8
|
+
get description() {
|
|
9
|
+
return super.get("description");
|
|
10
|
+
}
|
|
11
|
+
set description(value) {
|
|
12
|
+
super.set("description", value);
|
|
13
|
+
}
|
|
14
|
+
get file() {
|
|
15
|
+
return super.get("file");
|
|
16
|
+
}
|
|
17
|
+
set file(value) {
|
|
18
|
+
super.set("file", value);
|
|
19
|
+
}
|
|
20
|
+
get meta() {
|
|
21
|
+
return super.get("meta");
|
|
22
|
+
}
|
|
23
|
+
set meta(value) {
|
|
24
|
+
super.set("meta", value);
|
|
25
|
+
}
|
|
26
|
+
get tenant() {
|
|
27
|
+
return super.get("tenant");
|
|
28
|
+
}
|
|
29
|
+
set tenant(value) {
|
|
30
|
+
super.set("tenant", value);
|
|
31
|
+
}
|
|
32
|
+
get user() {
|
|
33
|
+
return super.get("user");
|
|
34
|
+
}
|
|
35
|
+
set user(value) {
|
|
36
|
+
super.set("user", value);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.Assets = Assets;
|
|
40
|
+
Assets.className = "OD3_Assets";
|
|
41
|
+
Parse.Object.registerSubclass("OD3_Assets", Assets);
|
|
@@ -8,12 +8,10 @@ export interface Documentation_DocumentAttributes {
|
|
|
8
8
|
updatedAt: Date;
|
|
9
9
|
category: Documentation_Category;
|
|
10
10
|
content: string;
|
|
11
|
-
createdBy: _User;
|
|
12
11
|
icon?: string;
|
|
13
12
|
order: number;
|
|
14
13
|
tenant?: Tenant;
|
|
15
14
|
title: string;
|
|
16
|
-
updatedBy: _User;
|
|
17
15
|
user?: _User;
|
|
18
16
|
}
|
|
19
17
|
export declare class Documentation_Document extends Parse.Object<Documentation_DocumentAttributes> {
|
|
@@ -23,8 +21,6 @@ export declare class Documentation_Document extends Parse.Object<Documentation_D
|
|
|
23
21
|
set category(value: Documentation_Category);
|
|
24
22
|
get content(): string;
|
|
25
23
|
set content(value: string);
|
|
26
|
-
get createdBy(): _User;
|
|
27
|
-
set createdBy(value: _User);
|
|
28
24
|
get icon(): string | undefined;
|
|
29
25
|
set icon(value: string | undefined);
|
|
30
26
|
get order(): number;
|
|
@@ -33,8 +29,6 @@ export declare class Documentation_Document extends Parse.Object<Documentation_D
|
|
|
33
29
|
set tenant(value: Tenant | undefined);
|
|
34
30
|
get title(): string;
|
|
35
31
|
set title(value: string);
|
|
36
|
-
get updatedBy(): _User;
|
|
37
|
-
set updatedBy(value: _User);
|
|
38
32
|
get user(): _User | undefined;
|
|
39
33
|
set user(value: _User | undefined);
|
|
40
34
|
}
|
|
@@ -17,12 +17,6 @@ class Documentation_Document extends Parse.Object {
|
|
|
17
17
|
set content(value) {
|
|
18
18
|
super.set("content", value);
|
|
19
19
|
}
|
|
20
|
-
get createdBy() {
|
|
21
|
-
return super.get("createdBy");
|
|
22
|
-
}
|
|
23
|
-
set createdBy(value) {
|
|
24
|
-
super.set("createdBy", value);
|
|
25
|
-
}
|
|
26
20
|
get icon() {
|
|
27
21
|
return super.get("icon");
|
|
28
22
|
}
|
|
@@ -47,12 +41,6 @@ class Documentation_Document extends Parse.Object {
|
|
|
47
41
|
set title(value) {
|
|
48
42
|
super.set("title", value);
|
|
49
43
|
}
|
|
50
|
-
get updatedBy() {
|
|
51
|
-
return super.get("updatedBy");
|
|
52
|
-
}
|
|
53
|
-
set updatedBy(value) {
|
|
54
|
-
super.set("updatedBy", value);
|
|
55
|
-
}
|
|
56
44
|
get user() {
|
|
57
45
|
return super.get("user");
|
|
58
46
|
}
|
|
@@ -6,6 +6,7 @@ export interface Knowledge_DocumentAttributes {
|
|
|
6
6
|
objectId: string;
|
|
7
7
|
createdAt: Date;
|
|
8
8
|
updatedAt: Date;
|
|
9
|
+
annotations: any[];
|
|
9
10
|
category: Knowledge_Category;
|
|
10
11
|
document: Parse.File;
|
|
11
12
|
label: string;
|
|
@@ -15,6 +16,8 @@ export interface Knowledge_DocumentAttributes {
|
|
|
15
16
|
export declare class Knowledge_Document extends Parse.Object<Knowledge_DocumentAttributes> {
|
|
16
17
|
static className: string;
|
|
17
18
|
constructor(data?: Partial<Knowledge_DocumentAttributes>);
|
|
19
|
+
get annotations(): any[];
|
|
20
|
+
set annotations(value: any[]);
|
|
18
21
|
get category(): Knowledge_Category;
|
|
19
22
|
set category(value: Knowledge_Category);
|
|
20
23
|
get document(): Parse.File;
|
|
@@ -5,6 +5,12 @@ class Knowledge_Document extends Parse.Object {
|
|
|
5
5
|
constructor(data) {
|
|
6
6
|
super("OD3_Knowledge_Document", data);
|
|
7
7
|
}
|
|
8
|
+
get annotations() {
|
|
9
|
+
return super.get("annotations");
|
|
10
|
+
}
|
|
11
|
+
set annotations(value) {
|
|
12
|
+
super.set("annotations", value);
|
|
13
|
+
}
|
|
8
14
|
get category() {
|
|
9
15
|
return super.get("category");
|
|
10
16
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Maintenance_Media } from "./Maintenance_Media";
|
|
1
2
|
import type { Tenant } from "./Tenant";
|
|
2
3
|
import type { _User } from "./_User";
|
|
3
4
|
export interface Maintenance_MessageAttributes {
|
|
@@ -6,8 +7,10 @@ export interface Maintenance_MessageAttributes {
|
|
|
6
7
|
createdAt: Date;
|
|
7
8
|
updatedAt: Date;
|
|
8
9
|
classname: string;
|
|
10
|
+
content?: string;
|
|
9
11
|
data?: any;
|
|
10
12
|
displayAt?: Date;
|
|
13
|
+
media: Parse.Relation<Maintenance_Message, Maintenance_Media>;
|
|
11
14
|
referencedObjectId: string;
|
|
12
15
|
tenant?: Tenant;
|
|
13
16
|
title?: string;
|
|
@@ -18,10 +21,13 @@ export declare class Maintenance_Message extends Parse.Object<Maintenance_Messag
|
|
|
18
21
|
constructor(data?: Partial<Maintenance_MessageAttributes>);
|
|
19
22
|
get classname(): string;
|
|
20
23
|
set classname(value: string);
|
|
24
|
+
get content(): string | undefined;
|
|
25
|
+
set content(value: string | undefined);
|
|
21
26
|
get data(): any | undefined;
|
|
22
27
|
set data(value: any | undefined);
|
|
23
28
|
get displayAt(): Date | undefined;
|
|
24
29
|
set displayAt(value: Date | undefined);
|
|
30
|
+
get media(): Parse.Relation<Maintenance_Message, Maintenance_Media>;
|
|
25
31
|
get referencedObjectId(): string;
|
|
26
32
|
set referencedObjectId(value: string);
|
|
27
33
|
get tenant(): Tenant | undefined;
|
|
@@ -11,6 +11,12 @@ class Maintenance_Message extends Parse.Object {
|
|
|
11
11
|
set classname(value) {
|
|
12
12
|
super.set("classname", value);
|
|
13
13
|
}
|
|
14
|
+
get content() {
|
|
15
|
+
return super.get("content");
|
|
16
|
+
}
|
|
17
|
+
set content(value) {
|
|
18
|
+
super.set("content", value);
|
|
19
|
+
}
|
|
14
20
|
get data() {
|
|
15
21
|
return super.get("data");
|
|
16
22
|
}
|
|
@@ -23,6 +29,9 @@ class Maintenance_Message extends Parse.Object {
|
|
|
23
29
|
set displayAt(value) {
|
|
24
30
|
super.set("displayAt", value);
|
|
25
31
|
}
|
|
32
|
+
get media() {
|
|
33
|
+
return super.relation("media");
|
|
34
|
+
}
|
|
26
35
|
get referencedObjectId() {
|
|
27
36
|
return super.get("referencedObjectId");
|
|
28
37
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Tenant } from "./Tenant";
|
|
2
|
+
import type { _Role } from "./_Role";
|
|
3
|
+
import type { _User } from "./_User";
|
|
4
|
+
export interface Notification_SettingAttributes {
|
|
5
|
+
id: string;
|
|
6
|
+
objectId: string;
|
|
7
|
+
createdAt: Date;
|
|
8
|
+
updatedAt: Date;
|
|
9
|
+
description?: string;
|
|
10
|
+
key: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
roles: Parse.Relation<Notification_Setting, _Role>;
|
|
13
|
+
tenant?: Tenant;
|
|
14
|
+
users: Parse.Relation<Notification_Setting, _User>;
|
|
15
|
+
}
|
|
16
|
+
export declare class Notification_Setting extends Parse.Object<Notification_SettingAttributes> {
|
|
17
|
+
static className: string;
|
|
18
|
+
constructor(data?: Partial<Notification_SettingAttributes>);
|
|
19
|
+
get description(): string | undefined;
|
|
20
|
+
set description(value: string | undefined);
|
|
21
|
+
get key(): string;
|
|
22
|
+
set key(value: string);
|
|
23
|
+
get label(): string | undefined;
|
|
24
|
+
set label(value: string | undefined);
|
|
25
|
+
get roles(): Parse.Relation<Notification_Setting, _Role>;
|
|
26
|
+
get tenant(): Tenant | undefined;
|
|
27
|
+
set tenant(value: Tenant | undefined);
|
|
28
|
+
get users(): Parse.Relation<Notification_Setting, _User>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Notification_Setting = void 0;
|
|
4
|
+
class Notification_Setting extends Parse.Object {
|
|
5
|
+
constructor(data) {
|
|
6
|
+
super("OD3_Notification_Setting", data);
|
|
7
|
+
}
|
|
8
|
+
get description() {
|
|
9
|
+
return super.get("description");
|
|
10
|
+
}
|
|
11
|
+
set description(value) {
|
|
12
|
+
super.set("description", value);
|
|
13
|
+
}
|
|
14
|
+
get key() {
|
|
15
|
+
return super.get("key");
|
|
16
|
+
}
|
|
17
|
+
set key(value) {
|
|
18
|
+
super.set("key", value);
|
|
19
|
+
}
|
|
20
|
+
get label() {
|
|
21
|
+
return super.get("label");
|
|
22
|
+
}
|
|
23
|
+
set label(value) {
|
|
24
|
+
super.set("label", value);
|
|
25
|
+
}
|
|
26
|
+
get roles() {
|
|
27
|
+
return super.relation("roles");
|
|
28
|
+
}
|
|
29
|
+
get tenant() {
|
|
30
|
+
return super.get("tenant");
|
|
31
|
+
}
|
|
32
|
+
set tenant(value) {
|
|
33
|
+
super.set("tenant", value);
|
|
34
|
+
}
|
|
35
|
+
get users() {
|
|
36
|
+
return super.relation("users");
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.Notification_Setting = Notification_Setting;
|
|
40
|
+
Notification_Setting.className = "OD3_Notification_Setting";
|
|
41
|
+
Parse.Object.registerSubclass("OD3_Notification_Setting", Notification_Setting);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface User_SettingAttributes {
|
|
2
|
+
id: string;
|
|
3
|
+
objectId: string;
|
|
4
|
+
createdAt: Date;
|
|
5
|
+
updatedAt: Date;
|
|
6
|
+
preferred_language: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class User_Setting extends Parse.Object<User_SettingAttributes> {
|
|
9
|
+
static className: string;
|
|
10
|
+
constructor(data?: Partial<User_SettingAttributes>);
|
|
11
|
+
get preferred_language(): string;
|
|
12
|
+
set preferred_language(value: string);
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.User_Setting = void 0;
|
|
4
|
+
class User_Setting extends Parse.Object {
|
|
5
|
+
constructor(data) {
|
|
6
|
+
super("OD3_User_Setting", data);
|
|
7
|
+
}
|
|
8
|
+
get preferred_language() {
|
|
9
|
+
return super.get("preferred_language");
|
|
10
|
+
}
|
|
11
|
+
set preferred_language(value) {
|
|
12
|
+
super.set("preferred_language", value);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.User_Setting = User_Setting;
|
|
16
|
+
User_Setting.className = "OD3_User_Setting";
|
|
17
|
+
Parse.Object.registerSubclass("OD3_User_Setting", User_Setting);
|
package/dist/types/_User.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Tenant } from "./Tenant";
|
|
2
|
+
import type { User_Setting } from "./User_Setting";
|
|
2
3
|
export interface _UserAttributes {
|
|
3
4
|
id: string;
|
|
4
5
|
objectId: string;
|
|
@@ -16,6 +17,7 @@ export interface _UserAttributes {
|
|
|
16
17
|
miaasUserScope?: string;
|
|
17
18
|
name?: string;
|
|
18
19
|
password?: string;
|
|
20
|
+
settings?: User_Setting;
|
|
19
21
|
tenant?: Tenant;
|
|
20
22
|
tenantAdmin: boolean;
|
|
21
23
|
tenantBanned?: boolean;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export { AlarmAction } from "./AlarmAction";
|
|
|
4
4
|
export type { AlarmActionAttributes } from "./AlarmAction";
|
|
5
5
|
export { AlarmWebhook } from "./AlarmWebhook";
|
|
6
6
|
export type { AlarmWebhookAttributes } from "./AlarmWebhook";
|
|
7
|
+
export { Assets } from "./Assets";
|
|
8
|
+
export type { AssetsAttributes } from "./Assets";
|
|
7
9
|
export { Attachment } from "./Attachment";
|
|
8
10
|
export type { AttachmentAttributes } from "./Attachment";
|
|
9
11
|
export { BDE_Form } from "./BDE_Form";
|
|
@@ -60,8 +62,6 @@ export { GTFS_Wheelchair_Accessible } from "./GTFS_Wheelchair_Accessible";
|
|
|
60
62
|
export type { GTFS_Wheelchair_AccessibleAttributes } from "./GTFS_Wheelchair_Accessible";
|
|
61
63
|
export { GTFS_Wheelchair_Boarding } from "./GTFS_Wheelchair_Boarding";
|
|
62
64
|
export type { GTFS_Wheelchair_BoardingAttributes } from "./GTFS_Wheelchair_Boarding";
|
|
63
|
-
export { Group } from "./Group";
|
|
64
|
-
export type { GroupAttributes } from "./Group";
|
|
65
65
|
export { Knowledge_Article } from "./Knowledge_Article";
|
|
66
66
|
export type { Knowledge_ArticleAttributes } from "./Knowledge_Article";
|
|
67
67
|
export { Knowledge_Category } from "./Knowledge_Category";
|
|
@@ -158,6 +158,8 @@ export { NavigationItem } from "./NavigationItem";
|
|
|
158
158
|
export type { NavigationItemAttributes } from "./NavigationItem";
|
|
159
159
|
export { Notification } from "./Notification";
|
|
160
160
|
export type { NotificationAttributes } from "./Notification";
|
|
161
|
+
export { Notification_Setting } from "./Notification_Setting";
|
|
162
|
+
export type { Notification_SettingAttributes } from "./Notification_Setting";
|
|
161
163
|
export { Permission } from "./Permission";
|
|
162
164
|
export type { PermissionAttributes } from "./Permission";
|
|
163
165
|
export { Push } from "./Push";
|
|
@@ -178,6 +180,8 @@ export { TenantTrustedDomain } from "./TenantTrustedDomain";
|
|
|
178
180
|
export type { TenantTrustedDomainAttributes } from "./TenantTrustedDomain";
|
|
179
181
|
export { UserData } from "./UserData";
|
|
180
182
|
export type { UserDataAttributes } from "./UserData";
|
|
183
|
+
export { User_Setting } from "./User_Setting";
|
|
184
|
+
export type { User_SettingAttributes } from "./User_Setting";
|
|
181
185
|
export { VirtualKPI } from "./VirtualKPI";
|
|
182
186
|
export type { VirtualKPIAttributes } from "./VirtualKPI";
|
|
183
187
|
export { WebPush } from "./WebPush";
|
package/dist/types/index.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Maintenance_Frequency = exports.Maintenance_Duedate = exports.Maintenance_Downtime = exports.Maintenance_DailySchedule = exports.MailTemplate = exports.MIAAS_MDSEndpoint = exports.MES_OrderPlan = exports.MES_Order = exports.MES_Article = exports.Log = exports.Language = exports.Knowledge_Video = exports.Knowledge_DocumentPage = exports.Knowledge_Document = exports.Knowledge_ChatMessage = exports.Knowledge_Chat = exports.Knowledge_Category = exports.Knowledge_Article = exports.
|
|
4
|
-
exports.WidgetPreset = exports.Widget = exports.WebPush = exports.VirtualKPI = exports.UserData = exports.TenantTrustedDomain = exports.TenantMeta = exports.Tenant = exports.SourceMeta = exports.Source = exports.Share = exports.Report = exports.Push = exports.Permission = exports.Notification = exports.NavigationItem = exports.NavigationGroup = exports.Monitoring_Slideshow = exports.Monitoring_ReportImage = exports.Monitoring_ParseTableSensor = exports.Monitoring_Jobs = exports.Monitoring_DataHierachies = exports.Maintenance_Ticket_Title = exports.Maintenance_Ticket_Source = exports.Maintenance_Ticket_Kanban_State_Current = exports.Maintenance_Ticket_Kanban_State = exports.Maintenance_Ticket_Issuecategory = exports.Maintenance_Ticket_Assignment = exports.Maintenance_Ticket = exports.Maintenance_Source_File = exports.Maintenance_SourceMeta = exports.Maintenance_Schedule_Template = exports.Maintenance_Schedule_Step = exports.Maintenance_Schedule_Execution_Step = exports.Maintenance_Schedule_Execution = exports.Maintenance_Restriction = exports.Maintenance_Priority = exports.Maintenance_Order = exports.Maintenance_Message_Body = exports.Maintenance_Message = exports.Maintenance_Media = exports.Maintenance_Kanban_State = exports.Maintenance_Item = exports.Maintenance_Issuecategory = void 0;
|
|
3
|
+
exports.Maintenance_Frequency = exports.Maintenance_Duedate = exports.Maintenance_Downtime = exports.Maintenance_DailySchedule = exports.MailTemplate = exports.MIAAS_MDSEndpoint = exports.MES_OrderPlan = exports.MES_Order = exports.MES_Article = exports.Log = exports.Language = exports.Knowledge_Video = exports.Knowledge_DocumentPage = exports.Knowledge_Document = exports.Knowledge_ChatMessage = exports.Knowledge_Chat = exports.Knowledge_Category = exports.Knowledge_Article = exports.GTFS_Wheelchair_Boarding = exports.GTFS_Wheelchair_Accessible = exports.GTFS_Trip = exports.GTFS_Stop_Times = exports.GTFS_Stop = exports.GTFS_Route_Type = exports.GTFS_Route = exports.GTFS_Location_Type = exports.GTFS_Level = exports.GTFS_Direction = exports.GTFS_Calendar = exports.GTFS_Bikes_Allowed = exports.GTFS_Agency = exports.Documentation_Document = exports.Documentation_Category = exports.Dashboard = exports.Core_Token = exports.Core_Email = exports.Contact = exports.Config = exports.Company = exports.BDE_Unit = exports.BDE_Result = exports.BDE_Page = exports.BDE_ListEntry = exports.BDE_List = exports.BDE_Form = exports.Attachment = exports.Assets = exports.AlarmWebhook = exports.AlarmAction = exports.Alarm = void 0;
|
|
4
|
+
exports.WidgetPreset = exports.Widget = exports.WebPush = exports.VirtualKPI = exports.User_Setting = exports.UserData = exports.TenantTrustedDomain = exports.TenantMeta = exports.Tenant = exports.SourceMeta = exports.Source = exports.Share = exports.Report = exports.Push = exports.Permission = exports.Notification_Setting = exports.Notification = exports.NavigationItem = exports.NavigationGroup = exports.Monitoring_Slideshow = exports.Monitoring_ReportImage = exports.Monitoring_ParseTableSensor = exports.Monitoring_Jobs = exports.Monitoring_DataHierachies = exports.Maintenance_Ticket_Title = exports.Maintenance_Ticket_Source = exports.Maintenance_Ticket_Kanban_State_Current = exports.Maintenance_Ticket_Kanban_State = exports.Maintenance_Ticket_Issuecategory = exports.Maintenance_Ticket_Assignment = exports.Maintenance_Ticket = exports.Maintenance_Source_File = exports.Maintenance_SourceMeta = exports.Maintenance_Schedule_Template = exports.Maintenance_Schedule_Step = exports.Maintenance_Schedule_Execution_Step = exports.Maintenance_Schedule_Execution = exports.Maintenance_Restriction = exports.Maintenance_Priority = exports.Maintenance_Order = exports.Maintenance_Message_Body = exports.Maintenance_Message = exports.Maintenance_Media = exports.Maintenance_Kanban_State = exports.Maintenance_Item = exports.Maintenance_Issuecategory = void 0;
|
|
5
5
|
var Alarm_1 = require("./Alarm");
|
|
6
6
|
Object.defineProperty(exports, "Alarm", { enumerable: true, get: function () { return Alarm_1.Alarm; } });
|
|
7
7
|
var AlarmAction_1 = require("./AlarmAction");
|
|
8
8
|
Object.defineProperty(exports, "AlarmAction", { enumerable: true, get: function () { return AlarmAction_1.AlarmAction; } });
|
|
9
9
|
var AlarmWebhook_1 = require("./AlarmWebhook");
|
|
10
10
|
Object.defineProperty(exports, "AlarmWebhook", { enumerable: true, get: function () { return AlarmWebhook_1.AlarmWebhook; } });
|
|
11
|
+
var Assets_1 = require("./Assets");
|
|
12
|
+
Object.defineProperty(exports, "Assets", { enumerable: true, get: function () { return Assets_1.Assets; } });
|
|
11
13
|
var Attachment_1 = require("./Attachment");
|
|
12
14
|
Object.defineProperty(exports, "Attachment", { enumerable: true, get: function () { return Attachment_1.Attachment; } });
|
|
13
15
|
var BDE_Form_1 = require("./BDE_Form");
|
|
@@ -64,8 +66,6 @@ var GTFS_Wheelchair_Accessible_1 = require("./GTFS_Wheelchair_Accessible");
|
|
|
64
66
|
Object.defineProperty(exports, "GTFS_Wheelchair_Accessible", { enumerable: true, get: function () { return GTFS_Wheelchair_Accessible_1.GTFS_Wheelchair_Accessible; } });
|
|
65
67
|
var GTFS_Wheelchair_Boarding_1 = require("./GTFS_Wheelchair_Boarding");
|
|
66
68
|
Object.defineProperty(exports, "GTFS_Wheelchair_Boarding", { enumerable: true, get: function () { return GTFS_Wheelchair_Boarding_1.GTFS_Wheelchair_Boarding; } });
|
|
67
|
-
var Group_1 = require("./Group");
|
|
68
|
-
Object.defineProperty(exports, "Group", { enumerable: true, get: function () { return Group_1.Group; } });
|
|
69
69
|
var Knowledge_Article_1 = require("./Knowledge_Article");
|
|
70
70
|
Object.defineProperty(exports, "Knowledge_Article", { enumerable: true, get: function () { return Knowledge_Article_1.Knowledge_Article; } });
|
|
71
71
|
var Knowledge_Category_1 = require("./Knowledge_Category");
|
|
@@ -162,6 +162,8 @@ var NavigationItem_1 = require("./NavigationItem");
|
|
|
162
162
|
Object.defineProperty(exports, "NavigationItem", { enumerable: true, get: function () { return NavigationItem_1.NavigationItem; } });
|
|
163
163
|
var Notification_1 = require("./Notification");
|
|
164
164
|
Object.defineProperty(exports, "Notification", { enumerable: true, get: function () { return Notification_1.Notification; } });
|
|
165
|
+
var Notification_Setting_1 = require("./Notification_Setting");
|
|
166
|
+
Object.defineProperty(exports, "Notification_Setting", { enumerable: true, get: function () { return Notification_Setting_1.Notification_Setting; } });
|
|
165
167
|
var Permission_1 = require("./Permission");
|
|
166
168
|
Object.defineProperty(exports, "Permission", { enumerable: true, get: function () { return Permission_1.Permission; } });
|
|
167
169
|
var Push_1 = require("./Push");
|
|
@@ -182,6 +184,8 @@ var TenantTrustedDomain_1 = require("./TenantTrustedDomain");
|
|
|
182
184
|
Object.defineProperty(exports, "TenantTrustedDomain", { enumerable: true, get: function () { return TenantTrustedDomain_1.TenantTrustedDomain; } });
|
|
183
185
|
var UserData_1 = require("./UserData");
|
|
184
186
|
Object.defineProperty(exports, "UserData", { enumerable: true, get: function () { return UserData_1.UserData; } });
|
|
187
|
+
var User_Setting_1 = require("./User_Setting");
|
|
188
|
+
Object.defineProperty(exports, "User_Setting", { enumerable: true, get: function () { return User_Setting_1.User_Setting; } });
|
|
185
189
|
var VirtualKPI_1 = require("./VirtualKPI");
|
|
186
190
|
Object.defineProperty(exports, "VirtualKPI", { enumerable: true, get: function () { return VirtualKPI_1.VirtualKPI; } });
|
|
187
191
|
var WebPush_1 = require("./WebPush");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openinc/parse-server-opendash",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.91",
|
|
4
4
|
"description": "Parse Server Cloud Code for open.DASH",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"parse",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"nodemailer": "^6.9.16",
|
|
39
39
|
"nunjucks": "^3.2.4",
|
|
40
40
|
"parse-server": "^6.5.11",
|
|
41
|
-
"pdf-img-convert": "
|
|
41
|
+
"pdf-img-convert": "2.0.0",
|
|
42
42
|
"web-push": "^3.6.7"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"@types/parse": "^3.0.9",
|
|
51
51
|
"@types/safe-timers": "^1.1.2",
|
|
52
52
|
"@types/web-push": "^3.6.4",
|
|
53
|
-
"typedoc": "^0.
|
|
54
|
-
"typedoc-plugin-markdown": "^4.
|
|
53
|
+
"typedoc": "^0.27.6",
|
|
54
|
+
"typedoc-plugin-markdown": "^4.4.1",
|
|
55
55
|
"typescript": "^5.7.2"
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fields": {
|
|
3
|
+
"description": {
|
|
4
|
+
"type": "String",
|
|
5
|
+
"required": true
|
|
6
|
+
},
|
|
7
|
+
"file": {
|
|
8
|
+
"type": "File",
|
|
9
|
+
"required": true
|
|
10
|
+
},
|
|
11
|
+
"meta": {
|
|
12
|
+
"type": "Object",
|
|
13
|
+
"required": false
|
|
14
|
+
},
|
|
15
|
+
"tenant": {
|
|
16
|
+
"type": "Pointer",
|
|
17
|
+
"targetClass": "{{PREFIX}}Tenant",
|
|
18
|
+
"required": false
|
|
19
|
+
},
|
|
20
|
+
"user": {
|
|
21
|
+
"type": "Pointer",
|
|
22
|
+
"targetClass": "_User",
|
|
23
|
+
"required": true
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"classLevelPermissions": {
|
|
27
|
+
"find": {
|
|
28
|
+
"*": true
|
|
29
|
+
},
|
|
30
|
+
"count": {
|
|
31
|
+
"*": true
|
|
32
|
+
},
|
|
33
|
+
"get": {
|
|
34
|
+
"*": true
|
|
35
|
+
},
|
|
36
|
+
"create": {
|
|
37
|
+
"*": true
|
|
38
|
+
},
|
|
39
|
+
"update": {
|
|
40
|
+
"*": true
|
|
41
|
+
},
|
|
42
|
+
"delete": {
|
|
43
|
+
"*": true
|
|
44
|
+
},
|
|
45
|
+
"addField": {
|
|
46
|
+
"*": true
|
|
47
|
+
},
|
|
48
|
+
"protectedFields": {
|
|
49
|
+
"*": []
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -9,11 +9,6 @@
|
|
|
9
9
|
"type": "String",
|
|
10
10
|
"required": true
|
|
11
11
|
},
|
|
12
|
-
"createdBy": {
|
|
13
|
-
"type": "Pointer",
|
|
14
|
-
"targetClass": "_User",
|
|
15
|
-
"required": true
|
|
16
|
-
},
|
|
17
12
|
"icon": {
|
|
18
13
|
"type": "String",
|
|
19
14
|
"required": false
|
|
@@ -32,11 +27,6 @@
|
|
|
32
27
|
"type": "String",
|
|
33
28
|
"required": true
|
|
34
29
|
},
|
|
35
|
-
"updatedBy": {
|
|
36
|
-
"type": "Pointer",
|
|
37
|
-
"targetClass": "_User",
|
|
38
|
-
"required": true
|
|
39
|
-
},
|
|
40
30
|
"user": {
|
|
41
31
|
"type": "Pointer",
|
|
42
32
|
"targetClass": "_User",
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
"type": "String",
|
|
5
5
|
"required": true
|
|
6
6
|
},
|
|
7
|
+
"content": {
|
|
8
|
+
"type": "String",
|
|
9
|
+
"required": false
|
|
10
|
+
},
|
|
7
11
|
"data": {
|
|
8
12
|
"type": "Object",
|
|
9
13
|
"required": false
|
|
@@ -12,6 +16,11 @@
|
|
|
12
16
|
"type": "Date",
|
|
13
17
|
"required": false
|
|
14
18
|
},
|
|
19
|
+
"media": {
|
|
20
|
+
"type": "Relation",
|
|
21
|
+
"targetClass": "{{PREFIX}}Maintenance_Media",
|
|
22
|
+
"required": false
|
|
23
|
+
},
|
|
15
24
|
"referencedObjectId": {
|
|
16
25
|
"type": "String",
|
|
17
26
|
"required": true
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fields": {
|
|
3
|
+
"description": {
|
|
4
|
+
"type": "String",
|
|
5
|
+
"required": false
|
|
6
|
+
},
|
|
7
|
+
"key": {
|
|
8
|
+
"type": "String",
|
|
9
|
+
"required": true
|
|
10
|
+
},
|
|
11
|
+
"label": {
|
|
12
|
+
"type": "String",
|
|
13
|
+
"required": false
|
|
14
|
+
},
|
|
15
|
+
"roles": {
|
|
16
|
+
"type": "Relation",
|
|
17
|
+
"targetClass": "_Role",
|
|
18
|
+
"required": false
|
|
19
|
+
},
|
|
20
|
+
"tenant": {
|
|
21
|
+
"type": "Pointer",
|
|
22
|
+
"targetClass": "{{PREFIX}}Tenant",
|
|
23
|
+
"required": false
|
|
24
|
+
},
|
|
25
|
+
"users": {
|
|
26
|
+
"type": "Relation",
|
|
27
|
+
"targetClass": "_User",
|
|
28
|
+
"required": false
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"classLevelPermissions": {
|
|
32
|
+
"find": {
|
|
33
|
+
"*": true
|
|
34
|
+
},
|
|
35
|
+
"count": {
|
|
36
|
+
"*": true
|
|
37
|
+
},
|
|
38
|
+
"get": {
|
|
39
|
+
"*": true
|
|
40
|
+
},
|
|
41
|
+
"create": {
|
|
42
|
+
"*": true
|
|
43
|
+
},
|
|
44
|
+
"update": {
|
|
45
|
+
"*": true
|
|
46
|
+
},
|
|
47
|
+
"delete": {
|
|
48
|
+
"*": true
|
|
49
|
+
},
|
|
50
|
+
"addField": {
|
|
51
|
+
"*": true
|
|
52
|
+
},
|
|
53
|
+
"protectedFields": {
|
|
54
|
+
"*": []
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fields": {
|
|
3
|
+
"preferred_language": {
|
|
4
|
+
"type": "String",
|
|
5
|
+
"required": false,
|
|
6
|
+
"defaultValue": "deu"
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
"classLevelPermissions": {
|
|
10
|
+
"find": {
|
|
11
|
+
"*": true
|
|
12
|
+
},
|
|
13
|
+
"count": {
|
|
14
|
+
"*": true
|
|
15
|
+
},
|
|
16
|
+
"get": {
|
|
17
|
+
"*": true
|
|
18
|
+
},
|
|
19
|
+
"create": {
|
|
20
|
+
"*": true
|
|
21
|
+
},
|
|
22
|
+
"update": {
|
|
23
|
+
"*": true
|
|
24
|
+
},
|
|
25
|
+
"delete": {
|
|
26
|
+
"*": true
|
|
27
|
+
},
|
|
28
|
+
"addField": {
|
|
29
|
+
"*": true
|
|
30
|
+
},
|
|
31
|
+
"protectedFields": {
|
|
32
|
+
"*": []
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|