@openinc/parse-server-opendash 4.0.9 → 4.0.11

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/README.md CHANGED
@@ -29,5 +29,3 @@ For a full list of options see the file at [CONFIG.md](https://github.com/open-i
29
29
  ## Development
30
30
 
31
31
  See the file at [DEVELOPMENT.md](https://github.com/open-inc/node-parse-server-opendash/blob/master/DEVELOPMENT.md)
32
-
33
- ##
@@ -1,4 +1,37 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
37
  };
@@ -6,7 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
39
  exports.initTranslations = initTranslations;
7
40
  const i18next_1 = __importDefault(require("i18next"));
8
41
  const i18next_fs_backend_1 = __importDefault(require("i18next-fs-backend"));
9
- const path_1 = __importDefault(require("path"));
42
+ const path = __importStar(require("path"));
10
43
  /**
11
44
  * @file Init Translations
12
45
  * @description Initializes the translation service for the application.
@@ -14,9 +47,9 @@ const path_1 = __importDefault(require("path"));
14
47
  async function initTranslations() {
15
48
  try {
16
49
  console.log("[@openinc/parse-server-opendash] Init translations");
17
- const i18npath = path_1.default.join(__dirname, "../../../i18n");
18
- const loadPath = path_1.default.join(i18npath, "{{lng}}/{{ns}}.json");
19
- const addPath = path_1.default.join(i18npath, "{{lng}}/{{ns}}.missing.json");
50
+ const i18npath = path.join(__dirname, "../../../i18n");
51
+ const loadPath = path.join(i18npath, "{{lng}}/{{ns}}.json");
52
+ const addPath = path.join(i18npath, "{{lng}}/{{ns}}.missing.json");
20
53
  // Initialize i18next with backend configuration
21
54
  await i18next_1.default.use(i18next_fs_backend_1.default).init({
22
55
  // Backend configuration
@@ -29,11 +62,11 @@ async function initTranslations() {
29
62
  fallbackLng: "en-US",
30
63
  // Specify available languages to match your directories
31
64
  supportedLngs: ["de-DE", "en-US"],
32
- ns: ["maintenance"],
65
+ ns: ["server", "maintenance"],
33
66
  defaultNS: "server",
34
67
  debug: false,
35
- // Ensure resources are loaded
36
- initImmediate: false,
68
+ // Load resources asynchronously (await init promise)
69
+ initAsync: true,
37
70
  });
38
71
  console.log("[@openinc/parse-server-opendash] Current language:", i18next_1.default.language);
39
72
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@openinc/parse-server-opendash",
3
- "version": "4.0.9",
3
+ "version": "4.0.11",
4
4
  "description": "Parse Server Cloud Code for open.INC Stack.",
5
- "packageManager": "pnpm@10.32.1",
5
+ "packageManager": "pnpm@10.33.0",
6
6
  "keywords": [
7
7
  "parse",
8
8
  "opendash"
@@ -66,19 +66,19 @@
66
66
  "docker:rebuild": "cd ./docker-dev && powershell -NoProfile -ExecutionPolicy Bypass -File rebuild_and_restart.ps1"
67
67
  },
68
68
  "dependencies": {
69
- "@openinc/parse-server-schema": "^4.0.0",
69
+ "@openinc/parse-server-schema": "^4.0.1",
70
70
  "amqplib": "^0.10.9",
71
71
  "cron": "^4.4.0",
72
72
  "dayjs": "^1.11.20",
73
73
  "fast-equals": "^6.0.0",
74
- "i18next": "^25.10.9",
75
- "i18next-fs-backend": "^2.6.1",
74
+ "i18next": "^26.0.3",
75
+ "i18next-fs-backend": "^2.6.3",
76
76
  "jsonwebtoken": "^9.0.3",
77
77
  "jwks-rsa": "^4.0.1",
78
78
  "nodemailer": "^8.0.4",
79
79
  "nunjucks": "^3.2.4",
80
80
  "parse": "^8.5.0",
81
- "parse-server": "9.6.1",
81
+ "parse-server": "9.7.0",
82
82
  "pdf-img-convert": "2.0.0",
83
83
  "rimraf": "^6.1.3",
84
84
  "semantic-release": "^25.0.3",
@@ -5,6 +5,10 @@
5
5
  "required": true,
6
6
  "defaultValue": "VKPI-Label"
7
7
  },
8
+ "liveOffset": {
9
+ "type": "Number",
10
+ "defaultValue": 1000
11
+ },
8
12
  "pipe": {
9
13
  "type": "Object",
10
14
  "required": false,
@@ -21,6 +25,11 @@
21
25
  "type": "Pointer",
22
26
  "targetClass": "{{PREFIX}}Tenant",
23
27
  "required": false
28
+ },
29
+ "user": {
30
+ "type": "Pointer",
31
+ "targetClass": "_User",
32
+ "required": true
24
33
  }
25
34
  },
26
35
  "classLevelPermissions": {