@openinc/parse-server-opendash 3.33.1 → 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",
@@ -336,6 +336,14 @@ exports.customoptions = {
336
336
  default: "false",
337
337
  description: "E-Mail from/sender E-Mail",
338
338
  },
339
+ SMTP_REPLY_TO: {
340
+ env: "OPENINC_PARSE_SMTP_REPLY_TO",
341
+ type: "string",
342
+ required: false,
343
+ secret: false,
344
+ public: false,
345
+ description: "E-Mail reply-to address",
346
+ },
339
347
  WEB_PUSH_ENABLED: {
340
348
  env: "OPENINC_PARSE_WEB_PUSH_ENABLED",
341
349
  type: "boolean",
@@ -19,6 +19,7 @@ async function initEmailTransport() {
19
19
  port: config_1.ConfigInstance.getInstance().getNumber("SMTP_PORT"),
20
20
  secure: config_1.ConfigInstance.getInstance().getBoolean("SMTP_SECURE"),
21
21
  ignoreTLS: config_1.ConfigInstance.getInstance().getBoolean("SMTP_IGNORE_TLS"),
22
+ replyTo: config_1.ConfigInstance.getInstance().get("SMTP_REPLY_TO"),
22
23
  };
23
24
  if (config_1.ConfigInstance.getInstance().get("SMTP_USER") &&
24
25
  config_1.ConfigInstance.getInstance().get("SMTP_PASS")) {
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.init = init;
4
4
  async function init(name) {
5
5
  Parse.Cloud.define(name, async (request) => {
6
- console.log(request);
7
6
  if (!request.user) {
8
7
  return { message: "Unauthorized" };
9
8
  }
@@ -23,6 +22,7 @@ async function init(name) {
23
22
  pass: "*",
24
23
  },
25
24
  from: process.env.OPENINC_PARSE_SMTP_FROM,
25
+ replyTo: process.env.OPENINC_PARSE_SMTP_REPLY_TO,
26
26
  };
27
27
  }
28
28
  return { message: "Mail server not configured or disabled." };
@@ -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.1",
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": [