@openinc/parse-server-opendash 3.33.2 → 3.33.3

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.
@@ -104,7 +104,7 @@
104
104
  "OD3_Share": "CORE",
105
105
  "OD3_Source": "CORE",
106
106
  "OD3_SourceMeta": "CORE",
107
- "OD3_Spreadsheet_Workbook": "unknown",
107
+ "OD3_Spreadsheet_Workbook": "MONITORING",
108
108
  "OD3_Tenant": "CORE",
109
109
  "OD3_TenantMeta": "CORE",
110
110
  "OD3_TenantTrustedDomain": "CORE",
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.init = init;
4
- const schema_1 = require("../features/schema");
5
4
  const openservice_1 = require("../features/openservice");
5
+ const schema_1 = require("../features/schema");
6
6
  const openinc_openservice_save_ticket_data_1 = require("../functions/openinc-openservice-save-ticket-data");
7
7
  const catchError_1 = require("../helper/catchError");
8
8
  const types_1 = require("../types");
@@ -67,6 +67,7 @@ async function init() {
67
67
  title: step.get("title"),
68
68
  fields: step.get("fields"),
69
69
  order: step.get("order"),
70
+ step: step,
70
71
  });
71
72
  const mediarelation = executionstep.relation("media");
72
73
  if (media !== undefined) {
@@ -0,0 +1 @@
1
+ export declare function init(): Promise<void>;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.init = init;
4
+ const schema_1 = require("../features/schema");
5
+ const types_1 = require("../types");
6
+ async function init() {
7
+ (0, schema_1.beforeSaveHook)(types_1.Spreadsheet_Workbook, async (request) => {
8
+ const { object, original, user } = request;
9
+ await (0, schema_1.defaultHandler)(request);
10
+ await (0, schema_1.defaultAclHandler)(request, { allowCustomACL: true });
11
+ if (user) {
12
+ object.getACL()?.setWriteAccess(user.id, true);
13
+ object.getACL()?.setReadAccess(user.id, true);
14
+ }
15
+ });
16
+ // afterSaveHook(Spreadsheet_Workbook, async (request) => {
17
+ // const { object, original, user } = request;
18
+ // });
19
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openinc/parse-server-opendash",
3
- "version": "3.33.2",
3
+ "version": "3.33.3",
4
4
  "description": "Parse Server Cloud Code for open.INC Stack.",
5
5
  "packageManager": "pnpm@10.28.0",
6
6
  "keywords": [