@openinc/parse-server-opendash 2.4.46 → 2.4.48
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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openinc/parse-server-opendash
|
|
1
|
+
# @openinc/parse-server-opendash
|
|
2
2
|
|
|
3
3
|
Parse Server Cloud Code for open.DASH/open.WARE
|
|
4
4
|
|
|
@@ -16,7 +16,7 @@ const { init } = require("@openinc/parse-server-opendash");
|
|
|
16
16
|
init();
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
For a full list of exports see the file at [EXPORTS.md](
|
|
19
|
+
For a full list of exports see the file at [EXPORTS.md](https://github.com/open-inc/node-parse-server-opendash/blob/master/EXPORTS.md)
|
|
20
20
|
|
|
21
21
|
## Configuration
|
|
22
22
|
|
|
@@ -24,8 +24,8 @@ The configuration of this cloud code is done using environment variables.
|
|
|
24
24
|
|
|
25
25
|
By default no classes will be created. To create classes from the schema definition, you need to enable the feature flags according your needs.
|
|
26
26
|
|
|
27
|
-
For a full list of options see the file at [CONFIG.md](
|
|
27
|
+
For a full list of options see the file at [CONFIG.md](https://github.com/open-inc/node-parse-server-opendash/blob/master/CONFIG.md)
|
|
28
28
|
|
|
29
29
|
## Development
|
|
30
30
|
|
|
31
|
-
See the file at [DEVELOPMENT.md](
|
|
31
|
+
See the file at [DEVELOPMENT.md](https://github.com/open-inc/node-parse-server-opendash/blob/master/DEVELOPMENT.md)
|
|
@@ -19,6 +19,7 @@ async function init() {
|
|
|
19
19
|
* If the ticket has no state, initialize it with the inbox state.
|
|
20
20
|
*/
|
|
21
21
|
async function initCurrentTicketStates() {
|
|
22
|
+
console.log("Initializing current ticket states table");
|
|
22
23
|
// Getting the tickets that have no entry in the current ticket states table (OD3_Maintenance_Ticket_Kanban_State_Current)
|
|
23
24
|
const ticketsWithoutEntry = await new Parse.Query(types_1.Maintenance_Ticket)
|
|
24
25
|
.doesNotMatchKeyInQuery("objectId",
|
|
@@ -43,7 +44,7 @@ async function initCurrentTicketStates() {
|
|
|
43
44
|
const newTicketState = new types_1.Maintenance_Ticket_Kanban_State_Current({
|
|
44
45
|
ticket: ticket,
|
|
45
46
|
ticketState: currentTicketState,
|
|
46
|
-
state: currentTicketState
|
|
47
|
+
state: currentTicketState.get("state"),
|
|
47
48
|
tenant: tenant,
|
|
48
49
|
});
|
|
49
50
|
const acl = new Parse.ACL();
|
|
@@ -81,4 +82,5 @@ async function initCurrentTicketStates() {
|
|
|
81
82
|
await newkanbanstate.save();
|
|
82
83
|
}
|
|
83
84
|
}
|
|
85
|
+
console.log("Current ticket states table initialized");
|
|
84
86
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openinc/parse-server-opendash",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.48",
|
|
4
4
|
"description": "Parse Server Cloud Code for open.DASH",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"parse",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"devstart": "parse-server ./config.js"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@openinc/parse-server-schema": "^1.7.
|
|
27
|
+
"@openinc/parse-server-schema": "^1.7.7",
|
|
28
28
|
"fast-equals": "^5.0.1",
|
|
29
29
|
"jsonwebtoken": "^9.0.2",
|
|
30
30
|
"node-fetch": "^2.7.0",
|
|
31
31
|
"nodemailer": "^6.9.15",
|
|
32
32
|
"nunjucks": "^3.2.4",
|
|
33
|
-
"parse-server": "^6.5.
|
|
33
|
+
"parse-server": "^6.5.9",
|
|
34
34
|
"pdf-img-convert": "1.0.6",
|
|
35
35
|
"web-push": "^3.6.7"
|
|
36
36
|
},
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"@types/nunjucks": "^3.2.6",
|
|
43
43
|
"@types/parse": "^3.0.9",
|
|
44
44
|
"@types/web-push": "^3.6.3",
|
|
45
|
-
"typedoc": "^0.26.
|
|
46
|
-
"typedoc-plugin-markdown": "^4.2.
|
|
45
|
+
"typedoc": "^0.26.8",
|
|
46
|
+
"typedoc-plugin-markdown": "^4.2.9",
|
|
47
47
|
"typescript": "^5.6.2"
|
|
48
48
|
}
|
|
49
49
|
}
|