@openinc/parse-server-opendash 4.35.0 → 4.37.0
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/dist/featuremap.json +1 -0
- package/dist/features/openservice/alarms/ensureAlarmActionRow.d.ts +32 -0
- package/dist/features/openservice/alarms/ensureAlarmActionRow.js +67 -0
- package/dist/features/openservice/alarms/ensureOpenwareWebhook.d.ts +22 -0
- package/dist/features/openservice/alarms/ensureOpenwareWebhook.js +81 -0
- package/dist/features/openservice/alarms/index.d.ts +9 -1
- package/dist/features/openservice/alarms/index.js +17 -2
- package/dist/features/openservice/alarms/openwareAlarm.d.ts +76 -0
- package/dist/features/openservice/alarms/openwareAlarm.js +96 -0
- package/dist/features/openservice/alarms/readAlarmCall.d.ts +26 -0
- package/dist/features/openservice/alarms/readAlarmCall.js +67 -0
- package/dist/features/openservice/alarms/resolveAlarmUser.d.ts +16 -0
- package/dist/features/openservice/alarms/resolveAlarmUser.js +35 -0
- package/dist/features/openservice/alarms/schedule/createAlarmSchedule.js +2 -8
- package/dist/features/openservice/alarms/schedule/ensureAlarmScheduleAction.d.ts +3 -36
- package/dist/features/openservice/alarms/schedule/ensureAlarmScheduleAction.js +12 -140
- package/dist/features/openservice/alarms/ticket/createAlarmTicket.js +6 -0
- package/dist/features/openservice/alarms/ticket/ensureAlarmTicketAction.d.ts +3 -19
- package/dist/features/openservice/alarms/ticket/ensureAlarmTicketAction.js +12 -70
- package/dist/features/openservice/articles/articleEquipment.d.ts +19 -0
- package/dist/features/openservice/articles/articleEquipment.js +53 -0
- package/dist/features/openservice/articles/articleStock.d.ts +19 -0
- package/dist/features/openservice/articles/articleStock.js +31 -0
- package/dist/features/openservice/equipment/criticality.d.ts +29 -0
- package/dist/features/openservice/equipment/criticality.js +85 -0
- package/dist/features/openservice/init.js +11 -3
- package/dist/features/openservice/tickets/ticketPriority.d.ts +18 -11
- package/dist/features/openservice/tickets/ticketPriority.js +54 -20
- package/dist/features/openservice/tickets/ticketRules.js +1 -1
- package/dist/features/schema/indexes.js +9 -0
- package/dist/functions/openinc-openservice-alarm-create-schedule.d.ts +7 -9
- package/dist/functions/openinc-openservice-alarm-create-schedule.js +11 -31
- package/dist/functions/openinc-openservice-alarm-create-ticket.d.ts +7 -9
- package/dist/functions/openinc-openservice-alarm-create-ticket.js +11 -31
- package/dist/hooks/BDE_Article.js +5 -1
- package/dist/hooks/BDE_DisruptionReason.d.ts +1 -0
- package/dist/hooks/BDE_DisruptionReason.js +70 -0
- package/dist/hooks/Service_Equipment.js +3 -0
- package/dist/scripts/backfill-stock-alert.d.ts +1 -0
- package/dist/scripts/backfill-stock-alert.js +89 -0
- package/dist/scripts/migration/lib/articleMeta.d.ts +7 -3
- package/dist/scripts/migration/lib/articleMeta.js +8 -10
- package/dist/scripts/migration/passes/05-articles.d.ts +8 -4
- package/dist/scripts/migration/passes/05-articles.js +29 -12
- package/dist/types/BDE_Article.d.ts +6 -0
- package/dist/types/BDE_Article.js +12 -0
- package/dist/types/BDE_DisruptionReason.d.ts +43 -0
- package/dist/types/BDE_DisruptionReason.js +72 -0
- package/dist/types/Service_Equipment.d.ts +3 -0
- package/dist/types/Service_Equipment.js +6 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +5 -3
- package/package.json +2 -1
- package/schema/BDE_Article.json +9 -0
- package/schema/BDE_DisruptionReason.json +73 -0
- package/schema/Service_Equipment.json +3 -0
|
@@ -27,8 +27,12 @@ const pass_js_1 = require("./pass.js");
|
|
|
27
27
|
* Pass 05 therefore writes those to the columns now, and only what still has no
|
|
28
28
|
* home stays here: v1's `category` — deliberately never given a column, since
|
|
29
29
|
* tags and `type` already classify and a third such field goes stale — v1's
|
|
30
|
-
* `description` (the label column is taken by v1's `name`)
|
|
31
|
-
*
|
|
30
|
+
* `description` (the label column is taken by v1's `name`).
|
|
31
|
+
*
|
|
32
|
+
* **Equipment moved to a column on 2026-11-17.** The links behind
|
|
33
|
+
* `Item.sources` became `OD3_BDE_Article.equipment`, which the material picker
|
|
34
|
+
* and the equipment page read. Pass 05 writes them there and strips the old
|
|
35
|
+
* meta key.
|
|
32
36
|
*
|
|
33
37
|
* ⚠️ The ABAS sync still owns the columns it writes and replaces them on every
|
|
34
38
|
* run. It does not touch the stock-keeping ones today — if that changes, they
|
|
@@ -63,6 +67,8 @@ exports.META_KEYS_NOW_COLUMNS = [
|
|
|
63
67
|
"storageLocation",
|
|
64
68
|
"supplier",
|
|
65
69
|
"orderNumber",
|
|
70
|
+
// Since 2026-11-17 (`OD3_BDE_Article.equipment`).
|
|
71
|
+
"equipment",
|
|
66
72
|
];
|
|
67
73
|
/**
|
|
68
74
|
* The field definitions written to the shared `Meta_Config`.
|
|
@@ -75,14 +81,6 @@ exports.META_KEYS_NOW_COLUMNS = [
|
|
|
75
81
|
exports.ARTICLE_META_FIELDS = [
|
|
76
82
|
{ type: "string", name: "category", label: "Kategorie" },
|
|
77
83
|
{ type: "string", name: "notes", label: "Beschreibung (v1)" },
|
|
78
|
-
{
|
|
79
|
-
type: "select_parse",
|
|
80
|
-
name: "equipment",
|
|
81
|
-
label: "Equipment",
|
|
82
|
-
className: "OD3_Service_Equipment",
|
|
83
|
-
display: "label",
|
|
84
|
-
multiple: true,
|
|
85
|
-
},
|
|
86
84
|
];
|
|
87
85
|
/**
|
|
88
86
|
* v1 stores `price` as a String, and these are German-language instances.
|
|
@@ -16,10 +16,14 @@ import { type Pass } from "../lib/pass.js";
|
|
|
16
16
|
*
|
|
17
17
|
* **What still has no column stays meta** under `["service","article","meta"]`:
|
|
18
18
|
* v1's `category` — deliberately never given a column, since tags and `type`
|
|
19
|
-
* already classify and a third such field goes stale — v1's `description`,
|
|
20
|
-
* which the label column is taken by v1's `name
|
|
21
|
-
* `
|
|
22
|
-
*
|
|
19
|
+
* already classify and a third such field goes stale — and v1's `description`,
|
|
20
|
+
* for which the label column is taken by v1's `name`. Nothing is dropped. See
|
|
21
|
+
* `lib/articleMeta.ts` for why that context and not the ABAS one.
|
|
22
|
+
*
|
|
23
|
+
* **The equipment links behind `Item.sources` go to `equipment`** since
|
|
24
|
+
* 2026-11-17, the column the material picker and the equipment page read. An
|
|
25
|
+
* entry from an earlier run loses its meta `equipment` key the same way as the
|
|
26
|
+
* stock-keeping ones.
|
|
23
27
|
*
|
|
24
28
|
* Two naming traps, both inherited from BDE: the label column is `description`,
|
|
25
29
|
* not `name`; and the soft-delete flag is `isDeleted`, not `deleted`.
|
|
@@ -8,6 +8,7 @@ const node_1 = __importDefault(require("parse/node"));
|
|
|
8
8
|
const index_js_1 = require("../../../types/index.js");
|
|
9
9
|
const acl_js_1 = require("../lib/acl.js");
|
|
10
10
|
const articleMeta_js_1 = require("../lib/articleMeta.js");
|
|
11
|
+
const articleStock_js_1 = require("../../../features/openservice/articles/articleStock.js");
|
|
11
12
|
const latest_js_1 = require("../lib/latest.js");
|
|
12
13
|
const map_js_1 = require("../lib/map.js");
|
|
13
14
|
const ptr_js_1 = require("../lib/ptr.js");
|
|
@@ -38,10 +39,14 @@ const ARTICLE_TYPE_SPARE_PART = "spare_part";
|
|
|
38
39
|
*
|
|
39
40
|
* **What still has no column stays meta** under `["service","article","meta"]`:
|
|
40
41
|
* v1's `category` — deliberately never given a column, since tags and `type`
|
|
41
|
-
* already classify and a third such field goes stale — v1's `description`,
|
|
42
|
-
* which the label column is taken by v1's `name
|
|
43
|
-
* `
|
|
44
|
-
*
|
|
42
|
+
* already classify and a third such field goes stale — and v1's `description`,
|
|
43
|
+
* for which the label column is taken by v1's `name`. Nothing is dropped. See
|
|
44
|
+
* `lib/articleMeta.ts` for why that context and not the ABAS one.
|
|
45
|
+
*
|
|
46
|
+
* **The equipment links behind `Item.sources` go to `equipment`** since
|
|
47
|
+
* 2026-11-17, the column the material picker and the equipment page read. An
|
|
48
|
+
* entry from an earlier run loses its meta `equipment` key the same way as the
|
|
49
|
+
* stock-keeping ones.
|
|
45
50
|
*
|
|
46
51
|
* Two naming traps, both inherited from BDE: the label column is `description`,
|
|
47
52
|
* not `name`; and the soft-delete flag is `isDeleted`, not `deleted`.
|
|
@@ -110,6 +115,13 @@ exports.pass05 = {
|
|
|
110
115
|
if (typeof value === "number")
|
|
111
116
|
target.set(to, value);
|
|
112
117
|
}
|
|
118
|
+
// The reorder flag, set here as well as in the article hook: the
|
|
119
|
+
// migration's saves are not guaranteed to run it. Only where v1 had a
|
|
120
|
+
// reorder point — otherwise a re-run would clear a flag set since.
|
|
121
|
+
const reorderPoint = item.get("stockAlarmAt");
|
|
122
|
+
if (typeof reorderPoint === "number") {
|
|
123
|
+
target.set("stockAlert", (0, articleStock_js_1.stockAlertOf)(item.get("stock"), reorderPoint));
|
|
124
|
+
}
|
|
113
125
|
// v1 stored price as a free-form string; keep the number, report the rest
|
|
114
126
|
// rather than silently discarding it.
|
|
115
127
|
//
|
|
@@ -154,8 +166,12 @@ exports.pass05 = {
|
|
|
154
166
|
`Equipment (not referenced by a ticket? see D3)`);
|
|
155
167
|
}
|
|
156
168
|
}
|
|
169
|
+
// A column since 2026-11-17. Set on every run, so a re-run also clears
|
|
170
|
+
// links that are gone in v1.
|
|
157
171
|
if (equipmentIds.length)
|
|
158
|
-
|
|
172
|
+
target.set("equipment", equipmentIds);
|
|
173
|
+
else if (existingId)
|
|
174
|
+
target.unset("equipment");
|
|
159
175
|
if (!existingId) {
|
|
160
176
|
target.setACL((0, acl_js_1.migrationAcl)({ tenantId, allowTenantUserWrite: true }));
|
|
161
177
|
}
|
|
@@ -186,8 +202,9 @@ exports.pass05 = {
|
|
|
186
202
|
// Meta last: it needs the article id, and an entry with no values is
|
|
187
203
|
// not worth a row.
|
|
188
204
|
const existingMeta = metaByArticle.get(newId);
|
|
189
|
-
// An entry
|
|
190
|
-
//
|
|
205
|
+
// An entry from an earlier run still carries values that are columns
|
|
206
|
+
// now (stock keeping since 2026-09-25, equipment since 2026-11-17).
|
|
207
|
+
// Keep whatever else it holds, drop those.
|
|
191
208
|
const carried = {
|
|
192
209
|
...(existingMeta?.get("values") ?? {}),
|
|
193
210
|
};
|
|
@@ -253,13 +270,13 @@ exports.pass05 = {
|
|
|
253
270
|
}
|
|
254
271
|
}
|
|
255
272
|
if (withMeta > 0) {
|
|
256
|
-
report.info(entry, `${withMeta} article(s) carry category
|
|
257
|
-
`
|
|
258
|
-
`on the article itself`);
|
|
273
|
+
report.info(entry, `${withMeta} article(s) carry category or v1 description as meta ` +
|
|
274
|
+
`under ["service","article","meta"] — stock keeping and equipment ` +
|
|
275
|
+
`are on the article itself`);
|
|
259
276
|
}
|
|
260
277
|
if (legacyStripped > 0) {
|
|
261
|
-
report.info(entry, `${legacyStripped} meta entr(ies) from
|
|
262
|
-
`
|
|
278
|
+
report.info(entry, `${legacyStripped} meta entr(ies) from an earlier run had their ` +
|
|
279
|
+
`stock-keeping or equipment values stripped — those are columns now; ` +
|
|
263
280
|
`${legacyRemoved} entr(ies) held nothing else and were removed`);
|
|
264
281
|
}
|
|
265
282
|
if (unparseablePrices > 0) {
|
|
@@ -7,6 +7,7 @@ export interface BDE_ArticleAttributes {
|
|
|
7
7
|
updatedAt: Date;
|
|
8
8
|
articleNumber?: string | undefined;
|
|
9
9
|
description?: string | undefined;
|
|
10
|
+
equipment?: string[] | undefined;
|
|
10
11
|
isDeleted: boolean;
|
|
11
12
|
minimumStock: number;
|
|
12
13
|
orderNumber?: string | undefined;
|
|
@@ -14,6 +15,7 @@ export interface BDE_ArticleAttributes {
|
|
|
14
15
|
price: number;
|
|
15
16
|
priceCurrency?: string | undefined;
|
|
16
17
|
stock: number;
|
|
18
|
+
stockAlert: boolean;
|
|
17
19
|
storageLocation?: string | undefined;
|
|
18
20
|
supplier?: string | undefined;
|
|
19
21
|
targettime: number;
|
|
@@ -28,6 +30,8 @@ export declare class BDE_Article extends Parse.Object<BDE_ArticleAttributes> {
|
|
|
28
30
|
set articleNumber(value: string | undefined);
|
|
29
31
|
get description(): string | undefined;
|
|
30
32
|
set description(value: string | undefined);
|
|
33
|
+
get equipment(): string[] | undefined;
|
|
34
|
+
set equipment(value: string[] | undefined);
|
|
31
35
|
get isDeleted(): boolean;
|
|
32
36
|
set isDeleted(value: boolean);
|
|
33
37
|
get minimumStock(): number;
|
|
@@ -42,6 +46,8 @@ export declare class BDE_Article extends Parse.Object<BDE_ArticleAttributes> {
|
|
|
42
46
|
set priceCurrency(value: string | undefined);
|
|
43
47
|
get stock(): number;
|
|
44
48
|
set stock(value: number);
|
|
49
|
+
get stockAlert(): boolean;
|
|
50
|
+
set stockAlert(value: boolean);
|
|
45
51
|
get storageLocation(): string | undefined;
|
|
46
52
|
set storageLocation(value: string | undefined);
|
|
47
53
|
get supplier(): string | undefined;
|
|
@@ -22,6 +22,12 @@ class BDE_Article extends node_1.default.Object {
|
|
|
22
22
|
set description(value) {
|
|
23
23
|
super.set("description", value);
|
|
24
24
|
}
|
|
25
|
+
get equipment() {
|
|
26
|
+
return super.get("equipment");
|
|
27
|
+
}
|
|
28
|
+
set equipment(value) {
|
|
29
|
+
super.set("equipment", value);
|
|
30
|
+
}
|
|
25
31
|
get isDeleted() {
|
|
26
32
|
return super.get("isDeleted");
|
|
27
33
|
}
|
|
@@ -64,6 +70,12 @@ class BDE_Article extends node_1.default.Object {
|
|
|
64
70
|
set stock(value) {
|
|
65
71
|
super.set("stock", value);
|
|
66
72
|
}
|
|
73
|
+
get stockAlert() {
|
|
74
|
+
return super.get("stockAlert");
|
|
75
|
+
}
|
|
76
|
+
set stockAlert(value) {
|
|
77
|
+
super.set("stockAlert", value);
|
|
78
|
+
}
|
|
67
79
|
get storageLocation() {
|
|
68
80
|
return super.get("storageLocation");
|
|
69
81
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import Parse from "parse/node";
|
|
2
|
+
import type { Source } from "./Source";
|
|
3
|
+
import type { Tenant } from "./Tenant";
|
|
4
|
+
import type { _User } from "./_User";
|
|
5
|
+
export interface BDE_DisruptionReasonAttributes {
|
|
6
|
+
id: string;
|
|
7
|
+
objectId: string;
|
|
8
|
+
createdAt: Date;
|
|
9
|
+
updatedAt: Date;
|
|
10
|
+
active: boolean;
|
|
11
|
+
externalCode?: string | undefined;
|
|
12
|
+
key: string;
|
|
13
|
+
label: string;
|
|
14
|
+
order: number;
|
|
15
|
+
planned: boolean;
|
|
16
|
+
sources: Parse.Relation<BDE_DisruptionReason, Source>;
|
|
17
|
+
suggestTicket: boolean;
|
|
18
|
+
tenant?: Tenant | undefined;
|
|
19
|
+
user?: _User | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare class BDE_DisruptionReason extends Parse.Object<BDE_DisruptionReasonAttributes> {
|
|
22
|
+
static className: string;
|
|
23
|
+
constructor(data?: Partial<BDE_DisruptionReasonAttributes>);
|
|
24
|
+
get active(): boolean;
|
|
25
|
+
set active(value: boolean);
|
|
26
|
+
get externalCode(): string | undefined;
|
|
27
|
+
set externalCode(value: string | undefined);
|
|
28
|
+
get key(): string;
|
|
29
|
+
set key(value: string);
|
|
30
|
+
get label(): string;
|
|
31
|
+
set label(value: string);
|
|
32
|
+
get order(): number;
|
|
33
|
+
set order(value: number);
|
|
34
|
+
get planned(): boolean;
|
|
35
|
+
set planned(value: boolean);
|
|
36
|
+
get sources(): Parse.Relation<BDE_DisruptionReason, Source>;
|
|
37
|
+
get suggestTicket(): boolean;
|
|
38
|
+
set suggestTicket(value: boolean);
|
|
39
|
+
get tenant(): Tenant | undefined;
|
|
40
|
+
set tenant(value: Tenant | undefined);
|
|
41
|
+
get user(): _User | undefined;
|
|
42
|
+
set user(value: _User | undefined);
|
|
43
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.BDE_DisruptionReason = void 0;
|
|
7
|
+
const node_1 = __importDefault(require("parse/node"));
|
|
8
|
+
class BDE_DisruptionReason extends node_1.default.Object {
|
|
9
|
+
static className = "OD3_BDE_DisruptionReason";
|
|
10
|
+
constructor(data) {
|
|
11
|
+
super("OD3_BDE_DisruptionReason", data);
|
|
12
|
+
}
|
|
13
|
+
get active() {
|
|
14
|
+
return super.get("active");
|
|
15
|
+
}
|
|
16
|
+
set active(value) {
|
|
17
|
+
super.set("active", value);
|
|
18
|
+
}
|
|
19
|
+
get externalCode() {
|
|
20
|
+
return super.get("externalCode");
|
|
21
|
+
}
|
|
22
|
+
set externalCode(value) {
|
|
23
|
+
super.set("externalCode", value);
|
|
24
|
+
}
|
|
25
|
+
get key() {
|
|
26
|
+
return super.get("key");
|
|
27
|
+
}
|
|
28
|
+
set key(value) {
|
|
29
|
+
super.set("key", value);
|
|
30
|
+
}
|
|
31
|
+
get label() {
|
|
32
|
+
return super.get("label");
|
|
33
|
+
}
|
|
34
|
+
set label(value) {
|
|
35
|
+
super.set("label", value);
|
|
36
|
+
}
|
|
37
|
+
get order() {
|
|
38
|
+
return super.get("order");
|
|
39
|
+
}
|
|
40
|
+
set order(value) {
|
|
41
|
+
super.set("order", value);
|
|
42
|
+
}
|
|
43
|
+
get planned() {
|
|
44
|
+
return super.get("planned");
|
|
45
|
+
}
|
|
46
|
+
set planned(value) {
|
|
47
|
+
super.set("planned", value);
|
|
48
|
+
}
|
|
49
|
+
get sources() {
|
|
50
|
+
return super.relation("sources");
|
|
51
|
+
}
|
|
52
|
+
get suggestTicket() {
|
|
53
|
+
return super.get("suggestTicket");
|
|
54
|
+
}
|
|
55
|
+
set suggestTicket(value) {
|
|
56
|
+
super.set("suggestTicket", value);
|
|
57
|
+
}
|
|
58
|
+
get tenant() {
|
|
59
|
+
return super.get("tenant");
|
|
60
|
+
}
|
|
61
|
+
set tenant(value) {
|
|
62
|
+
super.set("tenant", value);
|
|
63
|
+
}
|
|
64
|
+
get user() {
|
|
65
|
+
return super.get("user");
|
|
66
|
+
}
|
|
67
|
+
set user(value) {
|
|
68
|
+
super.set("user", value);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.BDE_DisruptionReason = BDE_DisruptionReason;
|
|
72
|
+
node_1.default.Object.registerSubclass("OD3_BDE_DisruptionReason", BDE_DisruptionReason);
|
|
@@ -5,6 +5,7 @@ export interface Service_EquipmentAttributes {
|
|
|
5
5
|
objectId: string;
|
|
6
6
|
createdAt: Date;
|
|
7
7
|
updatedAt: Date;
|
|
8
|
+
criticality?: string | undefined;
|
|
8
9
|
deleted: boolean;
|
|
9
10
|
label: string;
|
|
10
11
|
parent?: Service_Equipment | undefined;
|
|
@@ -16,6 +17,8 @@ export interface Service_EquipmentAttributes {
|
|
|
16
17
|
export declare class Service_Equipment extends Parse.Object<Service_EquipmentAttributes> {
|
|
17
18
|
static className: string;
|
|
18
19
|
constructor(data?: Partial<Service_EquipmentAttributes>);
|
|
20
|
+
get criticality(): string | undefined;
|
|
21
|
+
set criticality(value: string | undefined);
|
|
19
22
|
get deleted(): boolean;
|
|
20
23
|
set deleted(value: boolean);
|
|
21
24
|
get label(): string;
|
|
@@ -10,6 +10,12 @@ class Service_Equipment extends node_1.default.Object {
|
|
|
10
10
|
constructor(data) {
|
|
11
11
|
super("OD3_Service_Equipment", data);
|
|
12
12
|
}
|
|
13
|
+
get criticality() {
|
|
14
|
+
return super.get("criticality");
|
|
15
|
+
}
|
|
16
|
+
set criticality(value) {
|
|
17
|
+
super.set("criticality", value);
|
|
18
|
+
}
|
|
13
19
|
get deleted() {
|
|
14
20
|
return super.get("deleted");
|
|
15
21
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ export { Attachment } from "./Attachment";
|
|
|
10
10
|
export type { AttachmentAttributes } from "./Attachment";
|
|
11
11
|
export { BDE_Article } from "./BDE_Article";
|
|
12
12
|
export type { BDE_ArticleAttributes } from "./BDE_Article";
|
|
13
|
+
export { BDE_DisruptionReason } from "./BDE_DisruptionReason";
|
|
14
|
+
export type { BDE_DisruptionReasonAttributes } from "./BDE_DisruptionReason";
|
|
13
15
|
export { BDE_Form } from "./BDE_Form";
|
|
14
16
|
export type { BDE_FormAttributes } from "./BDE_Form";
|
|
15
17
|
export { BDE_List } from "./BDE_List";
|
package/dist/types/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.WidgetPreset = exports.Widget = exports.WebPush = exports.VirtualKPI = exports.User_Setting = exports.UserData = exports.TenantTrustedDomain = exports.TenantMeta = exports.Tenant = exports.Spreadsheet_Workbook = exports.SourceMeta = exports.Source = exports.Share = exports.Service_TicketCounter = exports.Service_Ticket = exports.Service_Tag = exports.Service_Status = exports.Service_Schedule_Template = exports.Service_Schedule_Execution = exports.Service_Schedule = exports.Service_Project = exports.Service_Occurrence = exports.Service_MigrationMap = exports.Service_KpiDefinition = exports.Service_FormConfig = exports.Service_Equipment = exports.Report = exports.RAG_Request = exports.RAG_Questions = exports.RAG_Prompts = exports.RAG_Meta = exports.RAG_Interview = exports.RAG_Data = exports.Push = exports.Permission = exports.OWPlcItem = exports.OWPlcDevice = exports.Notification_Setting = exports.Notification = void 0;
|
|
3
|
+
exports.Knowledge_Video = exports.Knowledge_DocumentPage = exports.Knowledge_Document = exports.Knowledge_ChatMessage = exports.Knowledge_Chat = exports.Knowledge_Category = exports.Knowledge_Article = 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.EMS_ChargePoint = exports.Documentation_Document = exports.Documentation_Config = exports.Documentation_Category = exports.Dashboard = exports.Core_Token = exports.Core_RequestTemplate = exports.Core_Email = exports.Contact = exports.Config = exports.Company = exports.Chat_Message = exports.Changelog = exports.BDE_WorkTime = exports.BDE_WorkOrder = exports.BDE_Unit = exports.BDE_ShiftModel = exports.BDE_ShiftException = exports.BDE_Result = exports.BDE_Page = exports.BDE_ListEntry = exports.BDE_List = exports.BDE_Form = exports.BDE_DisruptionReason = exports.BDE_Article = exports.Attachment = exports.Assets = exports.AlarmWebhook = exports.AlarmAction = exports.Alarm = void 0;
|
|
4
|
+
exports.NavigationGroup = exports.Monitoring_Slideshow = exports.Monitoring_ReportImage = exports.Monitoring_ParseTableSensor = exports.Monitoring_Jobs = exports.Monitoring_DataHierachies = exports.Meta_Entry = exports.Meta_Context = exports.Meta_Config = exports.Maintenance_Ticket_Title = exports.Maintenance_Ticket_Source = exports.Maintenance_Ticket_QR_Code = exports.Maintenance_Ticket_Project = exports.Maintenance_Ticket_Material = exports.Maintenance_Ticket_Kanban_State_Current = exports.Maintenance_Ticket_Kanban_State = exports.Maintenance_Ticket_Issuecategory = exports.Maintenance_Ticket_FormConfig = exports.Maintenance_Ticket_Data = 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_Schedule = exports.Maintenance_Restriction = exports.Maintenance_Project = exports.Maintenance_Priority = exports.Maintenance_Order = exports.Maintenance_Message = exports.Maintenance_Media = exports.Maintenance_Kanban_State = exports.Maintenance_Item = exports.Maintenance_Issuecategory = exports.Maintenance_Frequency = exports.Maintenance_Duedate = exports.Maintenance_Downtime = exports.Mail_Groups = exports.MailTemplate = exports.ML_DataSelection = exports.MIAAS_MDSEndpoint = exports.MES_RessourceOverview = exports.MES_OrderPlan = exports.MES_Order = exports.MES_Article = exports.Log = exports.Language = void 0;
|
|
5
|
+
exports.WidgetPreset = exports.Widget = exports.WebPush = exports.VirtualKPI = exports.User_Setting = exports.UserData = exports.TenantTrustedDomain = exports.TenantMeta = exports.Tenant = exports.Spreadsheet_Workbook = exports.SourceMeta = exports.Source = exports.Share = exports.Service_TicketCounter = exports.Service_Ticket = exports.Service_Tag = exports.Service_Status = exports.Service_Schedule_Template = exports.Service_Schedule_Execution = exports.Service_Schedule = exports.Service_Project = exports.Service_Occurrence = exports.Service_MigrationMap = exports.Service_KpiDefinition = exports.Service_FormConfig = exports.Service_Equipment = exports.Report = exports.RAG_Request = exports.RAG_Questions = exports.RAG_Prompts = exports.RAG_Meta = exports.RAG_Interview = exports.RAG_Data = exports.Push = exports.Permission = exports.OWPlcItem = exports.OWPlcDevice = exports.Notification_Setting = exports.Notification = exports.NavigationItem = void 0;
|
|
6
6
|
var Alarm_1 = require("./Alarm");
|
|
7
7
|
Object.defineProperty(exports, "Alarm", { enumerable: true, get: function () { return Alarm_1.Alarm; } });
|
|
8
8
|
var AlarmAction_1 = require("./AlarmAction");
|
|
@@ -15,6 +15,8 @@ var Attachment_1 = require("./Attachment");
|
|
|
15
15
|
Object.defineProperty(exports, "Attachment", { enumerable: true, get: function () { return Attachment_1.Attachment; } });
|
|
16
16
|
var BDE_Article_1 = require("./BDE_Article");
|
|
17
17
|
Object.defineProperty(exports, "BDE_Article", { enumerable: true, get: function () { return BDE_Article_1.BDE_Article; } });
|
|
18
|
+
var BDE_DisruptionReason_1 = require("./BDE_DisruptionReason");
|
|
19
|
+
Object.defineProperty(exports, "BDE_DisruptionReason", { enumerable: true, get: function () { return BDE_DisruptionReason_1.BDE_DisruptionReason; } });
|
|
18
20
|
var BDE_Form_1 = require("./BDE_Form");
|
|
19
21
|
Object.defineProperty(exports, "BDE_Form", { enumerable: true, get: function () { return BDE_Form_1.BDE_Form; } });
|
|
20
22
|
var BDE_List_1 = require("./BDE_List");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openinc/parse-server-opendash",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.37.0",
|
|
4
4
|
"description": "Parse Server Cloud Code for open.INC Stack.",
|
|
5
5
|
"packageManager": "pnpm@12.16.1",
|
|
6
6
|
"keywords": [
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
"migrate:verify": "node dist/scripts/migration/verify.js",
|
|
69
69
|
"backfill:meta-contexts": "node dist/scripts/backfill-meta-contexts.js",
|
|
70
70
|
"backfill:changelog-search": "node dist/scripts/backfill-changelog-search.js",
|
|
71
|
+
"backfill:stock-alert": "node dist/scripts/backfill-stock-alert.js",
|
|
71
72
|
"repair:ticket-acl": "node dist/scripts/repair-ticket-acl.js",
|
|
72
73
|
"test:integration": "node --test --test-concurrency=1 \"test/integration/**/*.test.mjs\"",
|
|
73
74
|
"test:unit": "node --test \"test/unit/**/*.test.mjs\"",
|
package/schema/BDE_Article.json
CHANGED
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
"type": "String",
|
|
9
9
|
"required": false
|
|
10
10
|
},
|
|
11
|
+
"equipment": {
|
|
12
|
+
"type": "Array",
|
|
13
|
+
"required": false
|
|
14
|
+
},
|
|
11
15
|
"isDeleted": {
|
|
12
16
|
"type": "Boolean",
|
|
13
17
|
"required": false,
|
|
@@ -40,6 +44,11 @@
|
|
|
40
44
|
"required": false,
|
|
41
45
|
"defaultValue": 0
|
|
42
46
|
},
|
|
47
|
+
"stockAlert": {
|
|
48
|
+
"type": "Boolean",
|
|
49
|
+
"required": false,
|
|
50
|
+
"defaultValue": false
|
|
51
|
+
},
|
|
43
52
|
"storageLocation": {
|
|
44
53
|
"type": "String",
|
|
45
54
|
"required": false
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fields": {
|
|
3
|
+
"key": {
|
|
4
|
+
"type": "String",
|
|
5
|
+
"required": true
|
|
6
|
+
},
|
|
7
|
+
"label": {
|
|
8
|
+
"type": "String",
|
|
9
|
+
"required": true
|
|
10
|
+
},
|
|
11
|
+
"externalCode": {
|
|
12
|
+
"type": "String",
|
|
13
|
+
"required": false
|
|
14
|
+
},
|
|
15
|
+
"planned": {
|
|
16
|
+
"type": "Boolean",
|
|
17
|
+
"required": false,
|
|
18
|
+
"defaultValue": false
|
|
19
|
+
},
|
|
20
|
+
"suggestTicket": {
|
|
21
|
+
"type": "Boolean",
|
|
22
|
+
"required": false,
|
|
23
|
+
"defaultValue": false
|
|
24
|
+
},
|
|
25
|
+
"sources": {
|
|
26
|
+
"type": "Relation",
|
|
27
|
+
"targetClass": "{{PREFIX}}Source",
|
|
28
|
+
"required": false
|
|
29
|
+
},
|
|
30
|
+
"order": {
|
|
31
|
+
"type": "Number",
|
|
32
|
+
"required": false,
|
|
33
|
+
"defaultValue": 0
|
|
34
|
+
},
|
|
35
|
+
"active": {
|
|
36
|
+
"type": "Boolean",
|
|
37
|
+
"required": false,
|
|
38
|
+
"defaultValue": true
|
|
39
|
+
},
|
|
40
|
+
"tenant": {
|
|
41
|
+
"type": "Pointer",
|
|
42
|
+
"targetClass": "{{PREFIX}}Tenant",
|
|
43
|
+
"required": false
|
|
44
|
+
},
|
|
45
|
+
"user": {
|
|
46
|
+
"type": "Pointer",
|
|
47
|
+
"targetClass": "_User",
|
|
48
|
+
"required": false
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"classLevelPermissions": {
|
|
52
|
+
"find": {
|
|
53
|
+
"requiresAuthentication": true
|
|
54
|
+
},
|
|
55
|
+
"count": {
|
|
56
|
+
"requiresAuthentication": true
|
|
57
|
+
},
|
|
58
|
+
"get": {
|
|
59
|
+
"requiresAuthentication": true
|
|
60
|
+
},
|
|
61
|
+
"create": {
|
|
62
|
+
"requiresAuthentication": true
|
|
63
|
+
},
|
|
64
|
+
"update": {
|
|
65
|
+
"requiresAuthentication": true
|
|
66
|
+
},
|
|
67
|
+
"delete": {
|
|
68
|
+
"requiresAuthentication": true
|
|
69
|
+
},
|
|
70
|
+
"addField": {},
|
|
71
|
+
"protectedFields": {}
|
|
72
|
+
}
|
|
73
|
+
}
|