@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.
Files changed (57) hide show
  1. package/dist/config.js +9 -0
  2. package/dist/featuremap.json +3 -2
  3. package/dist/helper/catchError.d.ts +7 -0
  4. package/dist/helper/catchError.js +24 -0
  5. package/dist/hooks/Company.js +1 -0
  6. package/dist/hooks/Contact.js +1 -0
  7. package/dist/hooks/{Maintenance_File.js → Documentation_Category.js} +2 -2
  8. package/dist/hooks/{Monitoring_Jobs.js → Documentation_Document.js} +2 -2
  9. package/dist/hooks/Maintenance_Schedule_Execution.js +48 -2
  10. package/dist/hooks/{Monitoring_DataHierachies.js → Maintenance_Schedule_Template.js} +2 -2
  11. package/dist/hooks/Notification.js +1 -0
  12. package/dist/index.js +1 -0
  13. package/dist/types/Contact.d.ts +0 -3
  14. package/dist/types/Contact.js +0 -6
  15. package/dist/types/Documentation_Category.d.ts +16 -0
  16. package/dist/types/Documentation_Category.js +23 -0
  17. package/dist/types/Documentation_Document.d.ts +30 -0
  18. package/dist/types/Documentation_Document.js +47 -0
  19. package/dist/types/Maintenance_Media.d.ts +3 -3
  20. package/dist/types/Maintenance_Media.js +4 -4
  21. package/dist/types/Maintenance_Schedule_Execution.d.ts +7 -4
  22. package/dist/types/Maintenance_Schedule_Execution.js +6 -0
  23. package/dist/types/Maintenance_Schedule_Execution_Step.d.ts +20 -24
  24. package/dist/types/Maintenance_Schedule_Execution_Step.js +16 -28
  25. package/dist/types/Maintenance_Schedule_Step.d.ts +11 -19
  26. package/dist/types/Maintenance_Schedule_Step.js +14 -32
  27. package/dist/types/Maintenance_Schedule_Template.d.ts +32 -0
  28. package/dist/types/Maintenance_Schedule_Template.js +47 -0
  29. package/dist/types/Maintenance_Source_File.d.ts +3 -3
  30. package/dist/types/Notification.d.ts +3 -0
  31. package/dist/types/Notification.js +6 -0
  32. package/dist/types/Report.d.ts +9 -0
  33. package/dist/types/Report.js +18 -0
  34. package/dist/types/index.d.ts +6 -4
  35. package/dist/types/index.js +8 -6
  36. package/package.json +11 -11
  37. package/schema/Contact.json +0 -4
  38. package/schema/Documentation_Category.json +40 -0
  39. package/schema/Documentation_Document.json +57 -0
  40. package/schema/Maintenance_Media.json +2 -2
  41. package/schema/Maintenance_Schedule_Execution.json +5 -1
  42. package/schema/Maintenance_Schedule_Execution_Step.json +24 -23
  43. package/schema/Maintenance_Schedule_Step.json +9 -17
  44. package/schema/{Maintenance_Schedule.json → Maintenance_Schedule_Template.json} +19 -21
  45. package/schema/Maintenance_Source_File.json +1 -1
  46. package/schema/Notification.json +5 -0
  47. package/schema/Report.json +13 -0
  48. package/dist/hooks/Maintenance_Schedule.js +0 -17
  49. package/dist/hooks/Monitoring_Jobs.d.ts +0 -1
  50. package/dist/types/Maintenance_File.d.ts +0 -24
  51. package/dist/types/Maintenance_File.js +0 -35
  52. package/dist/types/Maintenance_Schedule.d.ts +0 -36
  53. package/dist/types/Maintenance_Schedule.js +0 -56
  54. package/schema/Maintenance_File.json +0 -46
  55. /package/dist/hooks/{Maintenance_File.d.ts → Documentation_Category.d.ts} +0 -0
  56. /package/dist/hooks/{Maintenance_Schedule.d.ts → Documentation_Document.d.ts} +0 -0
  57. /package/dist/hooks/{Monitoring_DataHierachies.d.ts → Maintenance_Schedule_Template.d.ts} +0 -0
@@ -5,35 +5,23 @@ class Maintenance_Schedule_Step extends Parse.Object {
5
5
  constructor(data) {
6
6
  super("OD3_Maintenance_Schedule_Step", data);
7
7
  }
8
+ get data() {
9
+ return super.get("data");
10
+ }
11
+ set data(value) {
12
+ super.set("data", value);
13
+ }
8
14
  get description() {
9
15
  return super.get("description");
10
16
  }
11
17
  set description(value) {
12
18
  super.set("description", value);
13
19
  }
14
- get location() {
15
- return super.get("location");
16
- }
17
- set location(value) {
18
- super.set("location", value);
19
- }
20
- get protectivegear() {
21
- return super.get("protectivegear");
22
- }
23
- set protectivegear(value) {
24
- super.set("protectivegear", value);
20
+ get media() {
21
+ return super.relation("media");
25
22
  }
26
- get role() {
27
- return super.get("role");
28
- }
29
- set role(value) {
30
- super.set("role", value);
31
- }
32
- get schedule() {
33
- return super.get("schedule");
34
- }
35
- set schedule(value) {
36
- super.set("schedule", value);
23
+ get roles() {
24
+ return super.relation("roles");
37
25
  }
38
26
  get tenant() {
39
27
  return super.get("tenant");
@@ -41,17 +29,11 @@ class Maintenance_Schedule_Step extends Parse.Object {
41
29
  set tenant(value) {
42
30
  super.set("tenant", value);
43
31
  }
44
- get type() {
45
- return super.get("type");
46
- }
47
- set type(value) {
48
- super.set("type", value);
49
- }
50
- get usedmaterial() {
51
- return super.get("usedmaterial");
32
+ get title() {
33
+ return super.get("title");
52
34
  }
53
- set usedmaterial(value) {
54
- super.set("usedmaterial", value);
35
+ set title(value) {
36
+ super.set("title", value);
55
37
  }
56
38
  }
57
39
  exports.Maintenance_Schedule_Step = Maintenance_Schedule_Step;
@@ -0,0 +1,32 @@
1
+ import type { Maintenance_Schedule_Step } from "./Maintenance_Schedule_Step";
2
+ import type { Source } from "./Source";
3
+ import type { Tenant } from "./Tenant";
4
+ export interface Maintenance_Schedule_TemplateAttributes {
5
+ id: string;
6
+ objectId: string;
7
+ createdAt: Date;
8
+ updatedAt: Date;
9
+ cron?: any;
10
+ description?: string;
11
+ enabled: boolean;
12
+ sources: Parse.Relation<Maintenance_Schedule_Template, Source>;
13
+ steps: Parse.Relation<Maintenance_Schedule_Template, Maintenance_Schedule_Step>;
14
+ tenant?: Tenant;
15
+ title?: string;
16
+ }
17
+ export declare class Maintenance_Schedule_Template extends Parse.Object<Maintenance_Schedule_TemplateAttributes> {
18
+ static className: string;
19
+ constructor(data?: Partial<Maintenance_Schedule_TemplateAttributes>);
20
+ get cron(): any | undefined;
21
+ set cron(value: any | undefined);
22
+ get description(): string | undefined;
23
+ set description(value: string | undefined);
24
+ get enabled(): boolean;
25
+ set enabled(value: boolean);
26
+ get sources(): Parse.Relation<Maintenance_Schedule_Template, Source>;
27
+ get steps(): Parse.Relation<Maintenance_Schedule_Template, Maintenance_Schedule_Step>;
28
+ get tenant(): Tenant | undefined;
29
+ set tenant(value: Tenant | undefined);
30
+ get title(): string | undefined;
31
+ set title(value: string | undefined);
32
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Maintenance_Schedule_Template = void 0;
4
+ class Maintenance_Schedule_Template extends Parse.Object {
5
+ constructor(data) {
6
+ super("OD3_Maintenance_Schedule_Template", data);
7
+ }
8
+ get cron() {
9
+ return super.get("cron");
10
+ }
11
+ set cron(value) {
12
+ super.set("cron", value);
13
+ }
14
+ get description() {
15
+ return super.get("description");
16
+ }
17
+ set description(value) {
18
+ super.set("description", value);
19
+ }
20
+ get enabled() {
21
+ return super.get("enabled");
22
+ }
23
+ set enabled(value) {
24
+ super.set("enabled", value);
25
+ }
26
+ get sources() {
27
+ return super.relation("sources");
28
+ }
29
+ get steps() {
30
+ return super.relation("steps");
31
+ }
32
+ get tenant() {
33
+ return super.get("tenant");
34
+ }
35
+ set tenant(value) {
36
+ super.set("tenant", value);
37
+ }
38
+ get title() {
39
+ return super.get("title");
40
+ }
41
+ set title(value) {
42
+ super.set("title", value);
43
+ }
44
+ }
45
+ exports.Maintenance_Schedule_Template = Maintenance_Schedule_Template;
46
+ Maintenance_Schedule_Template.className = "OD3_Maintenance_Schedule_Template";
47
+ Parse.Object.registerSubclass("OD3_Maintenance_Schedule_Template", Maintenance_Schedule_Template);
@@ -1,4 +1,4 @@
1
- import type { Maintenance_File } from "./Maintenance_File";
1
+ import type { Maintenance_Media } from "./Maintenance_Media";
2
2
  import type { Source } from "./Source";
3
3
  import type { Tenant } from "./Tenant";
4
4
  import type { _User } from "./_User";
@@ -7,7 +7,7 @@ export interface Maintenance_Source_FileAttributes {
7
7
  objectId: string;
8
8
  createdAt: Date;
9
9
  updatedAt: Date;
10
- files: Parse.Relation<Maintenance_Source_File, Maintenance_File>;
10
+ files: Parse.Relation<Maintenance_Source_File, Maintenance_Media>;
11
11
  source?: Source;
12
12
  tenant?: Tenant;
13
13
  user?: _User;
@@ -15,7 +15,7 @@ export interface Maintenance_Source_FileAttributes {
15
15
  export declare class Maintenance_Source_File extends Parse.Object<Maintenance_Source_FileAttributes> {
16
16
  static className: string;
17
17
  constructor(data?: Partial<Maintenance_Source_FileAttributes>);
18
- get files(): Parse.Relation<Maintenance_Source_File, Maintenance_File>;
18
+ get files(): Parse.Relation<Maintenance_Source_File, Maintenance_Media>;
19
19
  get source(): Source | undefined;
20
20
  set source(value: Source | undefined);
21
21
  get tenant(): Tenant | undefined;
@@ -8,6 +8,7 @@ export interface NotificationAttributes {
8
8
  description?: string;
9
9
  iconPath?: string;
10
10
  isSent: boolean;
11
+ read: boolean;
11
12
  title: string;
12
13
  user: _User;
13
14
  }
@@ -22,6 +23,8 @@ export declare class Notification extends Parse.Object<NotificationAttributes> {
22
23
  set iconPath(value: string | undefined);
23
24
  get isSent(): boolean;
24
25
  set isSent(value: boolean);
26
+ get read(): boolean;
27
+ set read(value: boolean);
25
28
  get title(): string;
26
29
  set title(value: string);
27
30
  get user(): _User;
@@ -29,6 +29,12 @@ class Notification extends Parse.Object {
29
29
  set isSent(value) {
30
30
  super.set("isSent", value);
31
31
  }
32
+ get read() {
33
+ return super.get("read");
34
+ }
35
+ set read(value) {
36
+ super.set("read", value);
37
+ }
32
38
  get title() {
33
39
  return super.get("title");
34
40
  }
@@ -5,8 +5,11 @@ export interface ReportAttributes {
5
5
  createdAt: Date;
6
6
  updatedAt: Date;
7
7
  description?: string;
8
+ icon?: string;
9
+ iconColor: string;
8
10
  images: any[];
9
11
  items: any[];
12
+ language?: string;
10
13
  masterData: any;
11
14
  name?: string;
12
15
  options: any;
@@ -20,10 +23,16 @@ export declare class Report extends Parse.Object<ReportAttributes> {
20
23
  constructor(data?: Partial<ReportAttributes>);
21
24
  get description(): string | undefined;
22
25
  set description(value: string | undefined);
26
+ get icon(): string | undefined;
27
+ set icon(value: string | undefined);
28
+ get iconColor(): string;
29
+ set iconColor(value: string);
23
30
  get images(): any[];
24
31
  set images(value: any[]);
25
32
  get items(): any[];
26
33
  set items(value: any[]);
34
+ get language(): string | undefined;
35
+ set language(value: string | undefined);
27
36
  get masterData(): any;
28
37
  set masterData(value: any);
29
38
  get name(): string | undefined;
@@ -11,6 +11,18 @@ class Report extends Parse.Object {
11
11
  set description(value) {
12
12
  super.set("description", value);
13
13
  }
14
+ get icon() {
15
+ return super.get("icon");
16
+ }
17
+ set icon(value) {
18
+ super.set("icon", value);
19
+ }
20
+ get iconColor() {
21
+ return super.get("iconColor");
22
+ }
23
+ set iconColor(value) {
24
+ super.set("iconColor", value);
25
+ }
14
26
  get images() {
15
27
  return super.get("images");
16
28
  }
@@ -23,6 +35,12 @@ class Report extends Parse.Object {
23
35
  set items(value) {
24
36
  super.set("items", value);
25
37
  }
38
+ get language() {
39
+ return super.get("language");
40
+ }
41
+ set language(value) {
42
+ super.set("language", value);
43
+ }
26
44
  get masterData() {
27
45
  return super.get("masterData");
28
46
  }
@@ -30,6 +30,10 @@ export { Core_Token } from "./Core_Token";
30
30
  export type { Core_TokenAttributes } from "./Core_Token";
31
31
  export { Dashboard } from "./Dashboard";
32
32
  export type { DashboardAttributes } from "./Dashboard";
33
+ export { Documentation_Category } from "./Documentation_Category";
34
+ export type { Documentation_CategoryAttributes } from "./Documentation_Category";
35
+ export { Documentation_Document } from "./Documentation_Document";
36
+ export type { Documentation_DocumentAttributes } from "./Documentation_Document";
33
37
  export { GTFS_Agency } from "./GTFS_Agency";
34
38
  export type { GTFS_AgencyAttributes } from "./GTFS_Agency";
35
39
  export { GTFS_Bikes_Allowed } from "./GTFS_Bikes_Allowed";
@@ -86,8 +90,6 @@ export { Maintenance_Downtime } from "./Maintenance_Downtime";
86
90
  export type { Maintenance_DowntimeAttributes } from "./Maintenance_Downtime";
87
91
  export { Maintenance_Duedate } from "./Maintenance_Duedate";
88
92
  export type { Maintenance_DuedateAttributes } from "./Maintenance_Duedate";
89
- export { Maintenance_File } from "./Maintenance_File";
90
- export type { Maintenance_FileAttributes } from "./Maintenance_File";
91
93
  export { Maintenance_Frequency } from "./Maintenance_Frequency";
92
94
  export type { Maintenance_FrequencyAttributes } from "./Maintenance_Frequency";
93
95
  export { Maintenance_Issuecategory } from "./Maintenance_Issuecategory";
@@ -108,14 +110,14 @@ export { Maintenance_Priority } from "./Maintenance_Priority";
108
110
  export type { Maintenance_PriorityAttributes } from "./Maintenance_Priority";
109
111
  export { Maintenance_Restriction } from "./Maintenance_Restriction";
110
112
  export type { Maintenance_RestrictionAttributes } from "./Maintenance_Restriction";
111
- export { Maintenance_Schedule } from "./Maintenance_Schedule";
112
- export type { Maintenance_ScheduleAttributes } from "./Maintenance_Schedule";
113
113
  export { Maintenance_Schedule_Execution } from "./Maintenance_Schedule_Execution";
114
114
  export type { Maintenance_Schedule_ExecutionAttributes } from "./Maintenance_Schedule_Execution";
115
115
  export { Maintenance_Schedule_Execution_Step } from "./Maintenance_Schedule_Execution_Step";
116
116
  export type { Maintenance_Schedule_Execution_StepAttributes } from "./Maintenance_Schedule_Execution_Step";
117
117
  export { Maintenance_Schedule_Step } from "./Maintenance_Schedule_Step";
118
118
  export type { Maintenance_Schedule_StepAttributes } from "./Maintenance_Schedule_Step";
119
+ export { Maintenance_Schedule_Template } from "./Maintenance_Schedule_Template";
120
+ export type { Maintenance_Schedule_TemplateAttributes } from "./Maintenance_Schedule_Template";
119
121
  export { Maintenance_SourceMeta } from "./Maintenance_SourceMeta";
120
122
  export type { Maintenance_SourceMetaAttributes } from "./Maintenance_SourceMeta";
121
123
  export { Maintenance_Source_File } from "./Maintenance_Source_File";
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Maintenance_Media = exports.Maintenance_Kanban_State = exports.Maintenance_Item = exports.Maintenance_Issuecategory = exports.Maintenance_Frequency = exports.Maintenance_File = exports.Maintenance_Duedate = exports.Maintenance_Downtime = exports.Maintenance_DailySchedule = exports.MailTemplate = exports.MIAAS_MDSEndpoint = 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.Group = 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.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.AlarmWebhook = exports.AlarmAction = exports.Alarm = void 0;
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_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_Step = exports.Maintenance_Schedule_Execution_Step = exports.Maintenance_Schedule_Execution = exports.Maintenance_Schedule = exports.Maintenance_Restriction = exports.Maintenance_Priority = exports.Maintenance_Order = exports.Maintenance_Message_Body = exports.Maintenance_Message = void 0;
3
+ exports.Maintenance_Kanban_State = exports.Maintenance_Item = exports.Maintenance_Issuecategory = exports.Maintenance_Frequency = exports.Maintenance_Duedate = exports.Maintenance_Downtime = exports.Maintenance_DailySchedule = exports.MailTemplate = exports.MIAAS_MDSEndpoint = 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.Group = 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.AlarmWebhook = exports.AlarmAction = exports.Alarm = void 0;
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_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 = 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");
@@ -34,6 +34,10 @@ var Core_Token_1 = require("./Core_Token");
34
34
  Object.defineProperty(exports, "Core_Token", { enumerable: true, get: function () { return Core_Token_1.Core_Token; } });
35
35
  var Dashboard_1 = require("./Dashboard");
36
36
  Object.defineProperty(exports, "Dashboard", { enumerable: true, get: function () { return Dashboard_1.Dashboard; } });
37
+ var Documentation_Category_1 = require("./Documentation_Category");
38
+ Object.defineProperty(exports, "Documentation_Category", { enumerable: true, get: function () { return Documentation_Category_1.Documentation_Category; } });
39
+ var Documentation_Document_1 = require("./Documentation_Document");
40
+ Object.defineProperty(exports, "Documentation_Document", { enumerable: true, get: function () { return Documentation_Document_1.Documentation_Document; } });
37
41
  var GTFS_Agency_1 = require("./GTFS_Agency");
38
42
  Object.defineProperty(exports, "GTFS_Agency", { enumerable: true, get: function () { return GTFS_Agency_1.GTFS_Agency; } });
39
43
  var GTFS_Bikes_Allowed_1 = require("./GTFS_Bikes_Allowed");
@@ -90,8 +94,6 @@ var Maintenance_Downtime_1 = require("./Maintenance_Downtime");
90
94
  Object.defineProperty(exports, "Maintenance_Downtime", { enumerable: true, get: function () { return Maintenance_Downtime_1.Maintenance_Downtime; } });
91
95
  var Maintenance_Duedate_1 = require("./Maintenance_Duedate");
92
96
  Object.defineProperty(exports, "Maintenance_Duedate", { enumerable: true, get: function () { return Maintenance_Duedate_1.Maintenance_Duedate; } });
93
- var Maintenance_File_1 = require("./Maintenance_File");
94
- Object.defineProperty(exports, "Maintenance_File", { enumerable: true, get: function () { return Maintenance_File_1.Maintenance_File; } });
95
97
  var Maintenance_Frequency_1 = require("./Maintenance_Frequency");
96
98
  Object.defineProperty(exports, "Maintenance_Frequency", { enumerable: true, get: function () { return Maintenance_Frequency_1.Maintenance_Frequency; } });
97
99
  var Maintenance_Issuecategory_1 = require("./Maintenance_Issuecategory");
@@ -112,14 +114,14 @@ var Maintenance_Priority_1 = require("./Maintenance_Priority");
112
114
  Object.defineProperty(exports, "Maintenance_Priority", { enumerable: true, get: function () { return Maintenance_Priority_1.Maintenance_Priority; } });
113
115
  var Maintenance_Restriction_1 = require("./Maintenance_Restriction");
114
116
  Object.defineProperty(exports, "Maintenance_Restriction", { enumerable: true, get: function () { return Maintenance_Restriction_1.Maintenance_Restriction; } });
115
- var Maintenance_Schedule_1 = require("./Maintenance_Schedule");
116
- Object.defineProperty(exports, "Maintenance_Schedule", { enumerable: true, get: function () { return Maintenance_Schedule_1.Maintenance_Schedule; } });
117
117
  var Maintenance_Schedule_Execution_1 = require("./Maintenance_Schedule_Execution");
118
118
  Object.defineProperty(exports, "Maintenance_Schedule_Execution", { enumerable: true, get: function () { return Maintenance_Schedule_Execution_1.Maintenance_Schedule_Execution; } });
119
119
  var Maintenance_Schedule_Execution_Step_1 = require("./Maintenance_Schedule_Execution_Step");
120
120
  Object.defineProperty(exports, "Maintenance_Schedule_Execution_Step", { enumerable: true, get: function () { return Maintenance_Schedule_Execution_Step_1.Maintenance_Schedule_Execution_Step; } });
121
121
  var Maintenance_Schedule_Step_1 = require("./Maintenance_Schedule_Step");
122
122
  Object.defineProperty(exports, "Maintenance_Schedule_Step", { enumerable: true, get: function () { return Maintenance_Schedule_Step_1.Maintenance_Schedule_Step; } });
123
+ var Maintenance_Schedule_Template_1 = require("./Maintenance_Schedule_Template");
124
+ Object.defineProperty(exports, "Maintenance_Schedule_Template", { enumerable: true, get: function () { return Maintenance_Schedule_Template_1.Maintenance_Schedule_Template; } });
123
125
  var Maintenance_SourceMeta_1 = require("./Maintenance_SourceMeta");
124
126
  Object.defineProperty(exports, "Maintenance_SourceMeta", { enumerable: true, get: function () { return Maintenance_SourceMeta_1.Maintenance_SourceMeta; } });
125
127
  var Maintenance_Source_File_1 = require("./Maintenance_Source_File");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openinc/parse-server-opendash",
3
- "version": "2.4.55",
3
+ "version": "2.4.63",
4
4
  "description": "Parse Server Cloud Code for open.DASH",
5
5
  "keywords": [
6
6
  "parse",
@@ -26,26 +26,26 @@
26
26
  "hooks": "node ./scripts/create-hooks.js"
27
27
  },
28
28
  "dependencies": {
29
- "@openinc/parse-server-schema": "^1.7.7",
29
+ "@openinc/parse-server-schema": "^1.7.8",
30
30
  "fast-equals": "^5.0.1",
31
31
  "jsonwebtoken": "^9.0.2",
32
32
  "node-fetch": "^2.7.0",
33
- "nodemailer": "^6.9.15",
33
+ "nodemailer": "^6.9.16",
34
34
  "nunjucks": "^3.2.4",
35
- "parse-server": "^6.5.9",
35
+ "parse-server": "^6.5.11",
36
36
  "pdf-img-convert": "1.0.6",
37
37
  "web-push": "^3.6.7"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/jsonwebtoken": "^9.0.7",
41
- "@types/node": "^18.19.54",
42
- "@types/node-fetch": "^2.6.11",
43
- "@types/nodemailer": "^6.4.16",
41
+ "@types/node": "^18.19.67",
42
+ "@types/node-fetch": "^2.6.12",
43
+ "@types/nodemailer": "^6.4.17",
44
44
  "@types/nunjucks": "^3.2.6",
45
45
  "@types/parse": "^3.0.9",
46
- "@types/web-push": "^3.6.3",
47
- "typedoc": "^0.26.8",
48
- "typedoc-plugin-markdown": "^4.2.9",
49
- "typescript": "^5.6.2"
46
+ "@types/web-push": "^3.6.4",
47
+ "typedoc": "^0.26.11",
48
+ "typedoc-plugin-markdown": "^4.3.0",
49
+ "typescript": "^5.7.2"
50
50
  }
51
51
  }
@@ -4,10 +4,6 @@
4
4
  "type": "String",
5
5
  "required": false
6
6
  },
7
- "company": {
8
- "type": "String",
9
- "required": false
10
- },
11
7
  "department": {
12
8
  "type": "String",
13
9
  "required": false
@@ -0,0 +1,40 @@
1
+ {
2
+ "fields": {
3
+ "name": {
4
+ "type": "String",
5
+ "required": true,
6
+ "defaultValue": ""
7
+ },
8
+ "parent": {
9
+ "type": "Pointer",
10
+ "targetClass": "{{PREFIX}}Documentation_Category",
11
+ "required": false
12
+ }
13
+ },
14
+ "classLevelPermissions": {
15
+ "find": {
16
+ "*": true
17
+ },
18
+ "count": {
19
+ "*": true
20
+ },
21
+ "get": {
22
+ "*": true
23
+ },
24
+ "create": {
25
+ "*": true
26
+ },
27
+ "update": {
28
+ "*": true
29
+ },
30
+ "delete": {
31
+ "*": true
32
+ },
33
+ "addField": {
34
+ "*": true
35
+ },
36
+ "protectedFields": {
37
+ "*": []
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,57 @@
1
+ {
2
+ "fields": {
3
+ "category": {
4
+ "type": "Pointer",
5
+ "targetClass": "{{PREFIX}}Documentation_Category",
6
+ "required": true
7
+ },
8
+ "content": {
9
+ "type": "String",
10
+ "required": true
11
+ },
12
+ "createdBy": {
13
+ "type": "Pointer",
14
+ "targetClass": "_User",
15
+ "required": true
16
+ },
17
+ "tags": {
18
+ "type": "Array",
19
+ "required": true
20
+ },
21
+ "title": {
22
+ "type": "String",
23
+ "required": true
24
+ },
25
+ "updatedBy": {
26
+ "type": "Pointer",
27
+ "targetClass": "_User",
28
+ "required": true
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
+ }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "fields": {
3
- "filename": {
3
+ "description": {
4
4
  "type": "String",
5
- "required": true
5
+ "required": false
6
6
  },
7
7
  "media": {
8
8
  "type": "File",
@@ -8,6 +8,10 @@
8
8
  "type": "Date",
9
9
  "required": false
10
10
  },
11
+ "material": {
12
+ "type": "Array",
13
+ "required": false
14
+ },
11
15
  "media": {
12
16
  "type": "Relation",
13
17
  "targetClass": "{{PREFIX}}Maintenance_Media",
@@ -15,7 +19,7 @@
15
19
  },
16
20
  "origin": {
17
21
  "type": "Pointer",
18
- "targetClass": "{{PREFIX}}Maintenance_Schedule",
22
+ "targetClass": "{{PREFIX}}Maintenance_Schedule_Template",
19
23
  "required": false
20
24
  },
21
25
  "source": {
@@ -10,60 +10,61 @@
10
10
  },
11
11
  "done": {
12
12
  "type": "Boolean",
13
- "required": false
13
+ "required": false,
14
+ "defaultValue": false
14
15
  },
15
- "location": {
16
- "type": "String",
17
- "required": false
16
+ "fields": {
17
+ "type": "Array",
18
+ "required": false,
19
+ "defaultValue": []
18
20
  },
19
- "protectivegear": {
20
- "type": "String",
21
+ "media": {
22
+ "type": "Relation",
23
+ "targetClass": "{{PREFIX}}Maintenance_Media",
21
24
  "required": false
22
25
  },
23
- "role": {
24
- "type": "Pointer",
26
+ "roles": {
27
+ "type": "Relation",
25
28
  "targetClass": "_Role",
26
29
  "required": false
27
30
  },
28
- "schedule": {
31
+ "scheduleexecution": {
29
32
  "type": "Pointer",
30
33
  "targetClass": "{{PREFIX}}Maintenance_Schedule_Execution",
31
- "required": true
34
+ "required": false
32
35
  },
33
36
  "tenant": {
34
37
  "type": "Pointer",
35
38
  "targetClass": "{{PREFIX}}Tenant",
36
- "required": false
37
- },
38
- "type": {
39
- "type": "String",
40
- "required": false
39
+ "required": true
41
40
  },
42
- "usedmaterial": {
41
+ "title": {
43
42
  "type": "String",
44
43
  "required": false
45
44
  }
46
45
  },
47
46
  "classLevelPermissions": {
48
47
  "find": {
49
- "requiresAuthentication": true
48
+ "*": true
50
49
  },
51
50
  "count": {
52
- "requiresAuthentication": true
51
+ "*": true
53
52
  },
54
53
  "get": {
55
- "requiresAuthentication": true
54
+ "*": true
56
55
  },
57
56
  "create": {
58
- "requiresAuthentication": true
57
+ "*": true
59
58
  },
60
59
  "update": {
61
- "requiresAuthentication": true
60
+ "*": true
62
61
  },
63
62
  "delete": {
64
- "requiresAuthentication": true
63
+ "*": true
64
+ },
65
+ "addField": {
66
+ "*": true
65
67
  },
66
- "addField": {},
67
68
  "protectedFields": {
68
69
  "*": []
69
70
  }