@openinc/parse-server-opendash 2.4.55 → 2.4.63
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.js +9 -0
- package/dist/featuremap.json +3 -2
- package/dist/helper/catchError.d.ts +7 -0
- package/dist/helper/catchError.js +24 -0
- package/dist/hooks/Company.js +1 -0
- package/dist/hooks/Contact.js +1 -0
- package/dist/hooks/{Maintenance_File.js → Documentation_Category.js} +2 -2
- package/dist/hooks/{Monitoring_Jobs.js → Documentation_Document.js} +2 -2
- package/dist/hooks/Maintenance_Schedule_Execution.js +48 -2
- package/dist/hooks/{Monitoring_DataHierachies.js → Maintenance_Schedule_Template.js} +2 -2
- package/dist/hooks/Notification.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/Contact.d.ts +0 -3
- package/dist/types/Contact.js +0 -6
- package/dist/types/Documentation_Category.d.ts +16 -0
- package/dist/types/Documentation_Category.js +23 -0
- package/dist/types/Documentation_Document.d.ts +30 -0
- package/dist/types/Documentation_Document.js +47 -0
- package/dist/types/Maintenance_Media.d.ts +3 -3
- package/dist/types/Maintenance_Media.js +4 -4
- package/dist/types/Maintenance_Schedule_Execution.d.ts +7 -4
- package/dist/types/Maintenance_Schedule_Execution.js +6 -0
- package/dist/types/Maintenance_Schedule_Execution_Step.d.ts +20 -24
- package/dist/types/Maintenance_Schedule_Execution_Step.js +16 -28
- package/dist/types/Maintenance_Schedule_Step.d.ts +11 -19
- package/dist/types/Maintenance_Schedule_Step.js +14 -32
- package/dist/types/Maintenance_Schedule_Template.d.ts +32 -0
- package/dist/types/Maintenance_Schedule_Template.js +47 -0
- package/dist/types/Maintenance_Source_File.d.ts +3 -3
- package/dist/types/Notification.d.ts +3 -0
- package/dist/types/Notification.js +6 -0
- package/dist/types/Report.d.ts +9 -0
- package/dist/types/Report.js +18 -0
- package/dist/types/index.d.ts +6 -4
- package/dist/types/index.js +8 -6
- package/package.json +11 -11
- package/schema/Contact.json +0 -4
- package/schema/Documentation_Category.json +40 -0
- package/schema/Documentation_Document.json +57 -0
- package/schema/Maintenance_Media.json +2 -2
- package/schema/Maintenance_Schedule_Execution.json +5 -1
- package/schema/Maintenance_Schedule_Execution_Step.json +24 -23
- package/schema/Maintenance_Schedule_Step.json +9 -17
- package/schema/{Maintenance_Schedule.json → Maintenance_Schedule_Template.json} +19 -21
- package/schema/Maintenance_Source_File.json +1 -1
- package/schema/Notification.json +5 -0
- package/schema/Report.json +13 -0
- package/dist/hooks/Maintenance_Schedule.js +0 -17
- package/dist/hooks/Monitoring_Jobs.d.ts +0 -1
- package/dist/types/Maintenance_File.d.ts +0 -24
- package/dist/types/Maintenance_File.js +0 -35
- package/dist/types/Maintenance_Schedule.d.ts +0 -36
- package/dist/types/Maintenance_Schedule.js +0 -56
- package/schema/Maintenance_File.json +0 -46
- /package/dist/hooks/{Maintenance_File.d.ts → Documentation_Category.d.ts} +0 -0
- /package/dist/hooks/{Maintenance_Schedule.d.ts → Documentation_Document.d.ts} +0 -0
- /package/dist/hooks/{Monitoring_DataHierachies.d.ts → Maintenance_Schedule_Template.d.ts} +0 -0
package/dist/config.js
CHANGED
|
@@ -242,6 +242,15 @@ const options = {
|
|
|
242
242
|
default: "false",
|
|
243
243
|
description: "This will force the schema to be updated on startup including removing fields and classes, which is a destructive operation and can result in data loss.",
|
|
244
244
|
},
|
|
245
|
+
FORCE_DELETE_CLASS: {
|
|
246
|
+
env: "OPENINC_PARSE_FORCE_DELETE_CLASS",
|
|
247
|
+
type: "boolean",
|
|
248
|
+
required: false,
|
|
249
|
+
secret: false,
|
|
250
|
+
public: false,
|
|
251
|
+
default: "false",
|
|
252
|
+
description: "This will work as FORCE_SCHEMA and will also delete entries in non-empty classes. Just a safety hook.",
|
|
253
|
+
},
|
|
245
254
|
EMAIL_TEMPLATE_DIR: {
|
|
246
255
|
env: "OPENINC_PARSE_EMAIL_TEMPLATE_DIR",
|
|
247
256
|
type: "string",
|
package/dist/featuremap.json
CHANGED
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
"OD3_Core_Email": "CORE",
|
|
16
16
|
"OD3_Core_Token": "CORE",
|
|
17
17
|
"OD3_Dashboard": "MONITORING",
|
|
18
|
+
"OD3_Documentation_Category": "DOCUMENTATION",
|
|
19
|
+
"OD3_Documentation_Document": "DOCUMENTATION",
|
|
18
20
|
"OD3_Group": "CORE",
|
|
19
21
|
"OD3_GTFS_Agency": "GTFS",
|
|
20
22
|
"OD3_GTFS_Bikes_Allowed": "GTFS",
|
|
@@ -42,7 +44,6 @@
|
|
|
42
44
|
"OD3_Maintenance_DailySchedule": "MAINTENANCE",
|
|
43
45
|
"OD3_Maintenance_Downtime": "MAINTENANCE",
|
|
44
46
|
"OD3_Maintenance_Duedate": "MAINTENANCE",
|
|
45
|
-
"OD3_Maintenance_File": "MAINTENANCE",
|
|
46
47
|
"OD3_Maintenance_Frequency": "MAINTENANCE",
|
|
47
48
|
"OD3_Maintenance_Issuecategory": "MAINTENANCE",
|
|
48
49
|
"OD3_Maintenance_Item": "MAINTENANCE",
|
|
@@ -53,10 +54,10 @@
|
|
|
53
54
|
"OD3_Maintenance_Order": "MAINTENANCE",
|
|
54
55
|
"OD3_Maintenance_Priority": "MAINTENANCE",
|
|
55
56
|
"OD3_Maintenance_Restriction": "MAINTENANCE",
|
|
56
|
-
"OD3_Maintenance_Schedule": "MAINTENANCE",
|
|
57
57
|
"OD3_Maintenance_Schedule_Execution": "MAINTENANCE",
|
|
58
58
|
"OD3_Maintenance_Schedule_Execution_Step": "MAINTENANCE",
|
|
59
59
|
"OD3_Maintenance_Schedule_Step": "MAINTENANCE",
|
|
60
|
+
"OD3_Maintenance_Schedule_Template": "MAINTENANCE",
|
|
60
61
|
"OD3_Maintenance_SourceMeta": "MAINTENANCE",
|
|
61
62
|
"OD3_Maintenance_Source_File": "MAINTENANCE",
|
|
62
63
|
"OD3_Maintenance_Ticket": "MAINTENANCE",
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Catch errors from a promise and return them as an array or the result
|
|
3
|
+
* @param promise A promise to catch errors from
|
|
4
|
+
* @param errorsToCatch An array of error classes to catch. If not provided, all errors will be caught.
|
|
5
|
+
* @returns The promise result or an array with the error
|
|
6
|
+
*/
|
|
7
|
+
export declare function catchError<T, E extends new (Message?: string) => Error>(promise: Promise<T>, errorsToCatch?: E[]): Promise<[undefined, T] | [InstanceType<E>]>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.catchError = catchError;
|
|
4
|
+
/**
|
|
5
|
+
* Catch errors from a promise and return them as an array or the result
|
|
6
|
+
* @param promise A promise to catch errors from
|
|
7
|
+
* @param errorsToCatch An array of error classes to catch. If not provided, all errors will be caught.
|
|
8
|
+
* @returns The promise result or an array with the error
|
|
9
|
+
*/
|
|
10
|
+
async function catchError(promise, errorsToCatch) {
|
|
11
|
+
try {
|
|
12
|
+
const data = await promise;
|
|
13
|
+
return [undefined, data];
|
|
14
|
+
}
|
|
15
|
+
catch (error) {
|
|
16
|
+
if (errorsToCatch === undefined) {
|
|
17
|
+
return [error];
|
|
18
|
+
}
|
|
19
|
+
if (errorsToCatch.some((e) => error instanceof e)) {
|
|
20
|
+
return [error];
|
|
21
|
+
}
|
|
22
|
+
throw error;
|
|
23
|
+
}
|
|
24
|
+
}
|
package/dist/hooks/Company.js
CHANGED
|
@@ -7,6 +7,7 @@ async function init() {
|
|
|
7
7
|
(0, __1.beforeSaveHook)(types_1.Company, async (request) => {
|
|
8
8
|
const { object, original, user } = request;
|
|
9
9
|
await (0, __1.defaultHandler)(request);
|
|
10
|
+
await (0, __1.defaultAclHandler)(request);
|
|
10
11
|
// TODO
|
|
11
12
|
});
|
|
12
13
|
(0, __1.afterSaveHook)(types_1.Company, async ({ object, original, user }) => {
|
package/dist/hooks/Contact.js
CHANGED
|
@@ -7,6 +7,7 @@ async function init() {
|
|
|
7
7
|
(0, __1.beforeSaveHook)(types_1.Contact, async (request) => {
|
|
8
8
|
const { object, original, user } = request;
|
|
9
9
|
await (0, __1.defaultHandler)(request);
|
|
10
|
+
await (0, __1.defaultAclHandler)(request);
|
|
10
11
|
// TODO
|
|
11
12
|
});
|
|
12
13
|
(0, __1.afterSaveHook)(types_1.Contact, async ({ object, original, user }) => {
|
|
@@ -4,13 +4,13 @@ exports.init = init;
|
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const types_1 = require("../types");
|
|
6
6
|
async function init() {
|
|
7
|
-
(0, __1.beforeSaveHook)(types_1.
|
|
7
|
+
(0, __1.beforeSaveHook)(types_1.Documentation_Category, async (request) => {
|
|
8
8
|
const { object, original, user } = request;
|
|
9
9
|
await (0, __1.defaultHandler)(request);
|
|
10
10
|
await (0, __1.defaultAclHandler)(request);
|
|
11
11
|
// TODO
|
|
12
12
|
});
|
|
13
|
-
(0, __1.afterSaveHook)(types_1.
|
|
13
|
+
(0, __1.afterSaveHook)(types_1.Documentation_Category, async (request) => {
|
|
14
14
|
const { object, original, user } = request;
|
|
15
15
|
// TODO
|
|
16
16
|
});
|
|
@@ -4,13 +4,13 @@ exports.init = init;
|
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const types_1 = require("../types");
|
|
6
6
|
async function init() {
|
|
7
|
-
(0, __1.beforeSaveHook)(types_1.
|
|
7
|
+
(0, __1.beforeSaveHook)(types_1.Documentation_Document, async (request) => {
|
|
8
8
|
const { object, original, user } = request;
|
|
9
9
|
await (0, __1.defaultHandler)(request);
|
|
10
10
|
await (0, __1.defaultAclHandler)(request);
|
|
11
11
|
// TODO
|
|
12
12
|
});
|
|
13
|
-
(0, __1.afterSaveHook)(types_1.
|
|
13
|
+
(0, __1.afterSaveHook)(types_1.Documentation_Document, async (request) => {
|
|
14
14
|
const { object, original, user } = request;
|
|
15
15
|
// TODO
|
|
16
16
|
});
|
|
@@ -2,16 +2,62 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.init = init;
|
|
4
4
|
const __1 = require("..");
|
|
5
|
+
const catchError_1 = require("../helper/catchError");
|
|
5
6
|
const types_1 = require("../types");
|
|
6
7
|
async function init() {
|
|
7
8
|
(0, __1.beforeSaveHook)(types_1.Maintenance_Schedule_Execution, async (request) => {
|
|
8
9
|
const { object, original, user } = request;
|
|
9
10
|
await (0, __1.defaultHandler)(request);
|
|
10
11
|
await (0, __1.defaultAclHandler)(request);
|
|
11
|
-
// TODO
|
|
12
12
|
});
|
|
13
13
|
(0, __1.afterSaveHook)(types_1.Maintenance_Schedule_Execution, async (request) => {
|
|
14
14
|
const { object, original, user } = request;
|
|
15
|
-
|
|
15
|
+
const tenant = object.get("tenant")
|
|
16
|
+
? object.get("tenant")
|
|
17
|
+
: Parse.User.current()
|
|
18
|
+
? Parse.User.current().get("tenant")
|
|
19
|
+
: undefined;
|
|
20
|
+
if (typeof object.origin === "undefined" || typeof tenant === "undefined") {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
const [fetchedOriginError, fetchedOrigin] = await (0, catchError_1.catchError)(new Parse.Query(types_1.Maintenance_Schedule_Template)
|
|
24
|
+
.includeAll()
|
|
25
|
+
.get(object.origin.id, {
|
|
26
|
+
useMasterKey: true,
|
|
27
|
+
}));
|
|
28
|
+
if (typeof fetchedOrigin === "undefined") {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
const [stepserror, steps] = await (0, catchError_1.catchError)(fetchedOrigin
|
|
32
|
+
.get("steps")
|
|
33
|
+
.query()
|
|
34
|
+
.includeAll()
|
|
35
|
+
.find({ useMasterKey: true }));
|
|
36
|
+
if (stepserror) {
|
|
37
|
+
throw stepserror;
|
|
38
|
+
}
|
|
39
|
+
//For every step create a new step object and save as Maintenance_Schedule_Execution_Step
|
|
40
|
+
for await (const step of steps) {
|
|
41
|
+
const [roleserror, roles] = await (0, catchError_1.catchError)(step.relation("roles").query().find({ useMasterKey: true }));
|
|
42
|
+
const [mediaerror, media] = await (0, catchError_1.catchError)(step.relation("media").query().find({ useMasterKey: true }));
|
|
43
|
+
const executionstep = new types_1.Maintenance_Schedule_Execution_Step({
|
|
44
|
+
done: false,
|
|
45
|
+
comment: "",
|
|
46
|
+
scheduleexecution: object,
|
|
47
|
+
tenant: tenant,
|
|
48
|
+
description: step.get("description"),
|
|
49
|
+
title: step.get("title"),
|
|
50
|
+
fields: step.get("data"),
|
|
51
|
+
});
|
|
52
|
+
const mediarelation = executionstep.relation("media");
|
|
53
|
+
if (typeof media !== "undefined") {
|
|
54
|
+
mediarelation.add(media);
|
|
55
|
+
}
|
|
56
|
+
const rolesrelation = executionstep.relation("roles");
|
|
57
|
+
if (typeof roles !== "undefined") {
|
|
58
|
+
rolesrelation.add(roles);
|
|
59
|
+
}
|
|
60
|
+
const [stepsaveerror, stepsaveobject] = await (0, catchError_1.catchError)(executionstep.save(null, { useMasterKey: true }));
|
|
61
|
+
}
|
|
16
62
|
});
|
|
17
63
|
}
|
|
@@ -4,13 +4,13 @@ exports.init = init;
|
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const types_1 = require("../types");
|
|
6
6
|
async function init() {
|
|
7
|
-
(0, __1.beforeSaveHook)(types_1.
|
|
7
|
+
(0, __1.beforeSaveHook)(types_1.Maintenance_Schedule_Template, async (request) => {
|
|
8
8
|
const { object, original, user } = request;
|
|
9
9
|
await (0, __1.defaultHandler)(request);
|
|
10
10
|
await (0, __1.defaultAclHandler)(request);
|
|
11
11
|
// TODO
|
|
12
12
|
});
|
|
13
|
-
(0, __1.afterSaveHook)(types_1.
|
|
13
|
+
(0, __1.afterSaveHook)(types_1.Maintenance_Schedule_Template, async (request) => {
|
|
14
14
|
const { object, original, user } = request;
|
|
15
15
|
// TODO
|
|
16
16
|
});
|
|
@@ -12,6 +12,7 @@ async function init() {
|
|
|
12
12
|
(0, __1.beforeSaveHook)(types_1.Notification, async (request) => {
|
|
13
13
|
const { object, original, user } = request;
|
|
14
14
|
await (0, __1.defaultHandler)(request);
|
|
15
|
+
await (0, __1.defaultAclHandler)(request);
|
|
15
16
|
});
|
|
16
17
|
(0, __1.afterSaveHook)(types_1.Notification, async ({ object, original, user }) => {
|
|
17
18
|
if (!object.get("isSent")) {
|
package/dist/index.js
CHANGED
|
@@ -81,6 +81,7 @@ async function initSchema() {
|
|
|
81
81
|
prefix: PREFIX,
|
|
82
82
|
deleteClasses: config_1.config.getBoolean("FORCE_SCHEMA"),
|
|
83
83
|
deleteFields: config_1.config.getBoolean("FORCE_SCHEMA"),
|
|
84
|
+
deleteNonEmptyClass: config_1.config.getBoolean("FORCE_DELETE_CLASS"),
|
|
84
85
|
filter: (className) => isClassEnabled(className),
|
|
85
86
|
});
|
|
86
87
|
schema = Object.fromEntries((await Parse.Schema.all()).map((schema) => [
|
package/dist/types/Contact.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export interface ContactAttributes {
|
|
|
6
6
|
createdAt: Date;
|
|
7
7
|
updatedAt: Date;
|
|
8
8
|
city?: string;
|
|
9
|
-
company?: string;
|
|
10
9
|
department?: string;
|
|
11
10
|
description?: string;
|
|
12
11
|
email?: string;
|
|
@@ -25,8 +24,6 @@ export declare class Contact extends Parse.Object<ContactAttributes> {
|
|
|
25
24
|
constructor(data?: Partial<ContactAttributes>);
|
|
26
25
|
get city(): string | undefined;
|
|
27
26
|
set city(value: string | undefined);
|
|
28
|
-
get company(): string | undefined;
|
|
29
|
-
set company(value: string | undefined);
|
|
30
27
|
get department(): string | undefined;
|
|
31
28
|
set department(value: string | undefined);
|
|
32
29
|
get description(): string | undefined;
|
package/dist/types/Contact.js
CHANGED
|
@@ -11,12 +11,6 @@ class Contact extends Parse.Object {
|
|
|
11
11
|
set city(value) {
|
|
12
12
|
super.set("city", value);
|
|
13
13
|
}
|
|
14
|
-
get company() {
|
|
15
|
-
return super.get("company");
|
|
16
|
-
}
|
|
17
|
-
set company(value) {
|
|
18
|
-
super.set("company", value);
|
|
19
|
-
}
|
|
20
14
|
get department() {
|
|
21
15
|
return super.get("department");
|
|
22
16
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface Documentation_CategoryAttributes {
|
|
2
|
+
id: string;
|
|
3
|
+
objectId: string;
|
|
4
|
+
createdAt: Date;
|
|
5
|
+
updatedAt: Date;
|
|
6
|
+
name: string;
|
|
7
|
+
parent?: Documentation_Category;
|
|
8
|
+
}
|
|
9
|
+
export declare class Documentation_Category extends Parse.Object<Documentation_CategoryAttributes> {
|
|
10
|
+
static className: string;
|
|
11
|
+
constructor(data?: Partial<Documentation_CategoryAttributes>);
|
|
12
|
+
get name(): string;
|
|
13
|
+
set name(value: string);
|
|
14
|
+
get parent(): Documentation_Category | undefined;
|
|
15
|
+
set parent(value: Documentation_Category | undefined);
|
|
16
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Documentation_Category = void 0;
|
|
4
|
+
class Documentation_Category extends Parse.Object {
|
|
5
|
+
constructor(data) {
|
|
6
|
+
super("OD3_Documentation_Category", data);
|
|
7
|
+
}
|
|
8
|
+
get name() {
|
|
9
|
+
return super.get("name");
|
|
10
|
+
}
|
|
11
|
+
set name(value) {
|
|
12
|
+
super.set("name", value);
|
|
13
|
+
}
|
|
14
|
+
get parent() {
|
|
15
|
+
return super.get("parent");
|
|
16
|
+
}
|
|
17
|
+
set parent(value) {
|
|
18
|
+
super.set("parent", value);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.Documentation_Category = Documentation_Category;
|
|
22
|
+
Documentation_Category.className = "OD3_Documentation_Category";
|
|
23
|
+
Parse.Object.registerSubclass("OD3_Documentation_Category", Documentation_Category);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Documentation_Category } from "./Documentation_Category";
|
|
2
|
+
import type { _User } from "./_User";
|
|
3
|
+
export interface Documentation_DocumentAttributes {
|
|
4
|
+
id: string;
|
|
5
|
+
objectId: string;
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
updatedAt: Date;
|
|
8
|
+
category: Documentation_Category;
|
|
9
|
+
content: string;
|
|
10
|
+
createdBy: _User;
|
|
11
|
+
tags: any[];
|
|
12
|
+
title: string;
|
|
13
|
+
updatedBy: _User;
|
|
14
|
+
}
|
|
15
|
+
export declare class Documentation_Document extends Parse.Object<Documentation_DocumentAttributes> {
|
|
16
|
+
static className: string;
|
|
17
|
+
constructor(data?: Partial<Documentation_DocumentAttributes>);
|
|
18
|
+
get category(): Documentation_Category;
|
|
19
|
+
set category(value: Documentation_Category);
|
|
20
|
+
get content(): string;
|
|
21
|
+
set content(value: string);
|
|
22
|
+
get createdBy(): _User;
|
|
23
|
+
set createdBy(value: _User);
|
|
24
|
+
get tags(): any[];
|
|
25
|
+
set tags(value: any[]);
|
|
26
|
+
get title(): string;
|
|
27
|
+
set title(value: string);
|
|
28
|
+
get updatedBy(): _User;
|
|
29
|
+
set updatedBy(value: _User);
|
|
30
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Documentation_Document = void 0;
|
|
4
|
+
class Documentation_Document extends Parse.Object {
|
|
5
|
+
constructor(data) {
|
|
6
|
+
super("OD3_Documentation_Document", data);
|
|
7
|
+
}
|
|
8
|
+
get category() {
|
|
9
|
+
return super.get("category");
|
|
10
|
+
}
|
|
11
|
+
set category(value) {
|
|
12
|
+
super.set("category", value);
|
|
13
|
+
}
|
|
14
|
+
get content() {
|
|
15
|
+
return super.get("content");
|
|
16
|
+
}
|
|
17
|
+
set content(value) {
|
|
18
|
+
super.set("content", value);
|
|
19
|
+
}
|
|
20
|
+
get createdBy() {
|
|
21
|
+
return super.get("createdBy");
|
|
22
|
+
}
|
|
23
|
+
set createdBy(value) {
|
|
24
|
+
super.set("createdBy", value);
|
|
25
|
+
}
|
|
26
|
+
get tags() {
|
|
27
|
+
return super.get("tags");
|
|
28
|
+
}
|
|
29
|
+
set tags(value) {
|
|
30
|
+
super.set("tags", value);
|
|
31
|
+
}
|
|
32
|
+
get title() {
|
|
33
|
+
return super.get("title");
|
|
34
|
+
}
|
|
35
|
+
set title(value) {
|
|
36
|
+
super.set("title", value);
|
|
37
|
+
}
|
|
38
|
+
get updatedBy() {
|
|
39
|
+
return super.get("updatedBy");
|
|
40
|
+
}
|
|
41
|
+
set updatedBy(value) {
|
|
42
|
+
super.set("updatedBy", value);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.Documentation_Document = Documentation_Document;
|
|
46
|
+
Documentation_Document.className = "OD3_Documentation_Document";
|
|
47
|
+
Parse.Object.registerSubclass("OD3_Documentation_Document", Documentation_Document);
|
|
@@ -4,15 +4,15 @@ export interface Maintenance_MediaAttributes {
|
|
|
4
4
|
objectId: string;
|
|
5
5
|
createdAt: Date;
|
|
6
6
|
updatedAt: Date;
|
|
7
|
-
|
|
7
|
+
description?: string;
|
|
8
8
|
media: Parse.File;
|
|
9
9
|
tenant?: Tenant;
|
|
10
10
|
}
|
|
11
11
|
export declare class Maintenance_Media extends Parse.Object<Maintenance_MediaAttributes> {
|
|
12
12
|
static className: string;
|
|
13
13
|
constructor(data?: Partial<Maintenance_MediaAttributes>);
|
|
14
|
-
get
|
|
15
|
-
set
|
|
14
|
+
get description(): string | undefined;
|
|
15
|
+
set description(value: string | undefined);
|
|
16
16
|
get media(): Parse.File;
|
|
17
17
|
set media(value: Parse.File);
|
|
18
18
|
get tenant(): Tenant | undefined;
|
|
@@ -5,11 +5,11 @@ class Maintenance_Media extends Parse.Object {
|
|
|
5
5
|
constructor(data) {
|
|
6
6
|
super("OD3_Maintenance_Media", data);
|
|
7
7
|
}
|
|
8
|
-
get
|
|
9
|
-
return super.get("
|
|
8
|
+
get description() {
|
|
9
|
+
return super.get("description");
|
|
10
10
|
}
|
|
11
|
-
set
|
|
12
|
-
super.set("
|
|
11
|
+
set description(value) {
|
|
12
|
+
super.set("description", value);
|
|
13
13
|
}
|
|
14
14
|
get media() {
|
|
15
15
|
return super.get("media");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Maintenance_Media } from "./Maintenance_Media";
|
|
2
|
-
import type {
|
|
2
|
+
import type { Maintenance_Schedule_Template } from "./Maintenance_Schedule_Template";
|
|
3
3
|
import type { Source } from "./Source";
|
|
4
4
|
import type { Tenant } from "./Tenant";
|
|
5
5
|
import type { _User } from "./_User";
|
|
@@ -10,8 +10,9 @@ export interface Maintenance_Schedule_ExecutionAttributes {
|
|
|
10
10
|
updatedAt: Date;
|
|
11
11
|
description?: string;
|
|
12
12
|
finishedAt?: Date;
|
|
13
|
+
material?: any[];
|
|
13
14
|
media: Parse.Relation<Maintenance_Schedule_Execution, Maintenance_Media>;
|
|
14
|
-
origin?:
|
|
15
|
+
origin?: Maintenance_Schedule_Template;
|
|
15
16
|
source?: Source;
|
|
16
17
|
tenant?: Tenant;
|
|
17
18
|
title?: string;
|
|
@@ -24,9 +25,11 @@ export declare class Maintenance_Schedule_Execution extends Parse.Object<Mainten
|
|
|
24
25
|
set description(value: string | undefined);
|
|
25
26
|
get finishedAt(): Date | undefined;
|
|
26
27
|
set finishedAt(value: Date | undefined);
|
|
28
|
+
get material(): any[] | undefined;
|
|
29
|
+
set material(value: any[] | undefined);
|
|
27
30
|
get media(): Parse.Relation<Maintenance_Schedule_Execution, Maintenance_Media>;
|
|
28
|
-
get origin():
|
|
29
|
-
set origin(value:
|
|
31
|
+
get origin(): Maintenance_Schedule_Template | undefined;
|
|
32
|
+
set origin(value: Maintenance_Schedule_Template | undefined);
|
|
30
33
|
get source(): Source | undefined;
|
|
31
34
|
set source(value: Source | undefined);
|
|
32
35
|
get tenant(): Tenant | undefined;
|
|
@@ -17,6 +17,12 @@ class Maintenance_Schedule_Execution extends Parse.Object {
|
|
|
17
17
|
set finishedAt(value) {
|
|
18
18
|
super.set("finishedAt", value);
|
|
19
19
|
}
|
|
20
|
+
get material() {
|
|
21
|
+
return super.get("material");
|
|
22
|
+
}
|
|
23
|
+
set material(value) {
|
|
24
|
+
super.set("material", value);
|
|
25
|
+
}
|
|
20
26
|
get media() {
|
|
21
27
|
return super.relation("media");
|
|
22
28
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Maintenance_Media } from "./Maintenance_Media";
|
|
1
2
|
import type { Maintenance_Schedule_Execution } from "./Maintenance_Schedule_Execution";
|
|
2
3
|
import type { Tenant } from "./Tenant";
|
|
3
4
|
import type { _Role } from "./_Role";
|
|
@@ -8,14 +9,13 @@ export interface Maintenance_Schedule_Execution_StepAttributes {
|
|
|
8
9
|
updatedAt: Date;
|
|
9
10
|
comment?: string;
|
|
10
11
|
description?: string;
|
|
11
|
-
done
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
tenant
|
|
17
|
-
|
|
18
|
-
usedmaterial?: string;
|
|
12
|
+
done: boolean;
|
|
13
|
+
fields: any[];
|
|
14
|
+
media: Parse.Relation<Maintenance_Schedule_Execution_Step, Maintenance_Media>;
|
|
15
|
+
roles: Parse.Relation<Maintenance_Schedule_Execution_Step, _Role>;
|
|
16
|
+
scheduleexecution?: Maintenance_Schedule_Execution;
|
|
17
|
+
tenant: Tenant;
|
|
18
|
+
title?: string;
|
|
19
19
|
}
|
|
20
20
|
export declare class Maintenance_Schedule_Execution_Step extends Parse.Object<Maintenance_Schedule_Execution_StepAttributes> {
|
|
21
21
|
static className: string;
|
|
@@ -24,20 +24,16 @@ export declare class Maintenance_Schedule_Execution_Step extends Parse.Object<Ma
|
|
|
24
24
|
set comment(value: string | undefined);
|
|
25
25
|
get description(): string | undefined;
|
|
26
26
|
set description(value: string | undefined);
|
|
27
|
-
get done(): boolean
|
|
28
|
-
set done(value: boolean
|
|
29
|
-
get
|
|
30
|
-
set
|
|
31
|
-
get
|
|
32
|
-
|
|
33
|
-
get
|
|
34
|
-
set
|
|
35
|
-
get
|
|
36
|
-
set
|
|
37
|
-
get
|
|
38
|
-
set
|
|
39
|
-
get type(): string | undefined;
|
|
40
|
-
set type(value: string | undefined);
|
|
41
|
-
get usedmaterial(): string | undefined;
|
|
42
|
-
set usedmaterial(value: string | undefined);
|
|
27
|
+
get done(): boolean;
|
|
28
|
+
set done(value: boolean);
|
|
29
|
+
get fields(): any[];
|
|
30
|
+
set fields(value: any[]);
|
|
31
|
+
get media(): Parse.Relation<Maintenance_Schedule_Execution_Step, Maintenance_Media>;
|
|
32
|
+
get roles(): Parse.Relation<Maintenance_Schedule_Execution_Step, _Role>;
|
|
33
|
+
get scheduleexecution(): Maintenance_Schedule_Execution | undefined;
|
|
34
|
+
set scheduleexecution(value: Maintenance_Schedule_Execution | undefined);
|
|
35
|
+
get tenant(): Tenant;
|
|
36
|
+
set tenant(value: Tenant);
|
|
37
|
+
get title(): string | undefined;
|
|
38
|
+
set title(value: string | undefined);
|
|
43
39
|
}
|
|
@@ -23,29 +23,23 @@ class Maintenance_Schedule_Execution_Step extends Parse.Object {
|
|
|
23
23
|
set done(value) {
|
|
24
24
|
super.set("done", value);
|
|
25
25
|
}
|
|
26
|
-
get
|
|
27
|
-
return super.get("
|
|
26
|
+
get fields() {
|
|
27
|
+
return super.get("fields");
|
|
28
28
|
}
|
|
29
|
-
set
|
|
30
|
-
super.set("
|
|
29
|
+
set fields(value) {
|
|
30
|
+
super.set("fields", value);
|
|
31
31
|
}
|
|
32
|
-
get
|
|
33
|
-
return super.
|
|
32
|
+
get media() {
|
|
33
|
+
return super.relation("media");
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
super.
|
|
35
|
+
get roles() {
|
|
36
|
+
return super.relation("roles");
|
|
37
37
|
}
|
|
38
|
-
get
|
|
39
|
-
return super.get("
|
|
38
|
+
get scheduleexecution() {
|
|
39
|
+
return super.get("scheduleexecution");
|
|
40
40
|
}
|
|
41
|
-
set
|
|
42
|
-
super.set("
|
|
43
|
-
}
|
|
44
|
-
get schedule() {
|
|
45
|
-
return super.get("schedule");
|
|
46
|
-
}
|
|
47
|
-
set schedule(value) {
|
|
48
|
-
super.set("schedule", value);
|
|
41
|
+
set scheduleexecution(value) {
|
|
42
|
+
super.set("scheduleexecution", value);
|
|
49
43
|
}
|
|
50
44
|
get tenant() {
|
|
51
45
|
return super.get("tenant");
|
|
@@ -53,17 +47,11 @@ class Maintenance_Schedule_Execution_Step extends Parse.Object {
|
|
|
53
47
|
set tenant(value) {
|
|
54
48
|
super.set("tenant", value);
|
|
55
49
|
}
|
|
56
|
-
get
|
|
57
|
-
return super.get("
|
|
58
|
-
}
|
|
59
|
-
set type(value) {
|
|
60
|
-
super.set("type", value);
|
|
61
|
-
}
|
|
62
|
-
get usedmaterial() {
|
|
63
|
-
return super.get("usedmaterial");
|
|
50
|
+
get title() {
|
|
51
|
+
return super.get("title");
|
|
64
52
|
}
|
|
65
|
-
set
|
|
66
|
-
super.set("
|
|
53
|
+
set title(value) {
|
|
54
|
+
super.set("title", value);
|
|
67
55
|
}
|
|
68
56
|
}
|
|
69
57
|
exports.Maintenance_Schedule_Execution_Step = Maintenance_Schedule_Execution_Step;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Maintenance_Media } from "./Maintenance_Media";
|
|
2
2
|
import type { Tenant } from "./Tenant";
|
|
3
3
|
import type { _Role } from "./_Role";
|
|
4
4
|
export interface Maintenance_Schedule_StepAttributes {
|
|
@@ -6,32 +6,24 @@ export interface Maintenance_Schedule_StepAttributes {
|
|
|
6
6
|
objectId: string;
|
|
7
7
|
createdAt: Date;
|
|
8
8
|
updatedAt: Date;
|
|
9
|
+
data?: any;
|
|
9
10
|
description?: string;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
role?: _Role;
|
|
13
|
-
schedule: Maintenance_Schedule;
|
|
11
|
+
media: Parse.Relation<Maintenance_Schedule_Step, Maintenance_Media>;
|
|
12
|
+
roles: Parse.Relation<Maintenance_Schedule_Step, _Role>;
|
|
14
13
|
tenant?: Tenant;
|
|
15
|
-
|
|
16
|
-
usedmaterial?: string;
|
|
14
|
+
title?: string;
|
|
17
15
|
}
|
|
18
16
|
export declare class Maintenance_Schedule_Step extends Parse.Object<Maintenance_Schedule_StepAttributes> {
|
|
19
17
|
static className: string;
|
|
20
18
|
constructor(data?: Partial<Maintenance_Schedule_StepAttributes>);
|
|
19
|
+
get data(): any | undefined;
|
|
20
|
+
set data(value: any | undefined);
|
|
21
21
|
get description(): string | undefined;
|
|
22
22
|
set description(value: string | undefined);
|
|
23
|
-
get
|
|
24
|
-
|
|
25
|
-
get protectivegear(): string | undefined;
|
|
26
|
-
set protectivegear(value: string | undefined);
|
|
27
|
-
get role(): _Role | undefined;
|
|
28
|
-
set role(value: _Role | undefined);
|
|
29
|
-
get schedule(): Maintenance_Schedule;
|
|
30
|
-
set schedule(value: Maintenance_Schedule);
|
|
23
|
+
get media(): Parse.Relation<Maintenance_Schedule_Step, Maintenance_Media>;
|
|
24
|
+
get roles(): Parse.Relation<Maintenance_Schedule_Step, _Role>;
|
|
31
25
|
get tenant(): Tenant | undefined;
|
|
32
26
|
set tenant(value: Tenant | undefined);
|
|
33
|
-
get
|
|
34
|
-
set
|
|
35
|
-
get usedmaterial(): string | undefined;
|
|
36
|
-
set usedmaterial(value: string | undefined);
|
|
27
|
+
get title(): string | undefined;
|
|
28
|
+
set title(value: string | undefined);
|
|
37
29
|
}
|