@openinc/parse-server-opendash 4.36.0 → 4.38.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 +2 -0
- 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/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 +28 -0
- 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/BDE_QAOrder.d.ts +102 -0
- package/dist/types/BDE_QAOrder.js +189 -0
- package/dist/types/BDE_QAResult.d.ts +67 -0
- package/dist/types/BDE_QAResult.js +117 -0
- package/dist/types/BDE_QAValue.d.ts +53 -0
- package/dist/types/BDE_QAValue.js +93 -0
- package/dist/types/BDE_WorkOrder.d.ts +9 -0
- package/dist/types/BDE_WorkOrder.js +18 -0
- package/dist/types/Service_Equipment.d.ts +3 -0
- package/dist/types/Service_Equipment.js +6 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/index.js +11 -3
- package/package.json +2 -1
- package/schema/BDE_Article.json +9 -0
- package/schema/BDE_DisruptionReason.json +73 -0
- package/schema/BDE_QAOrder.json +45 -0
- package/schema/BDE_QAValue.json +77 -0
- package/schema/BDE_WorkOrder.json +12 -0
- package/schema/Service_Equipment.json +3 -0
|
@@ -0,0 +1,89 @@
|
|
|
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
|
+
const node_1 = __importDefault(require("parse/node"));
|
|
7
|
+
const articleStock_js_1 = require("../features/openservice/articles/articleStock.js");
|
|
8
|
+
const index_js_1 = require("../types/index.js");
|
|
9
|
+
/**
|
|
10
|
+
* One-off backfill for `OD3_BDE_Article.stockAlert`.
|
|
11
|
+
*
|
|
12
|
+
* From here on the article hook keeps the flag in step with `stock` and
|
|
13
|
+
* `minimumStock`, but it only sees writes — an article saved before the flag
|
|
14
|
+
* existed is missing from the "Meldebestand erreicht" filter until someone
|
|
15
|
+
* touches it. This sets the flag where it is wrong or missing.
|
|
16
|
+
*
|
|
17
|
+
* PARSE_URL=… PARSE_APP_ID=… PARSE_MASTER_KEY=… \
|
|
18
|
+
* node dist/scripts/backfill-stock-alert.js [--dry-run]
|
|
19
|
+
*
|
|
20
|
+
* Reads every article, but writes only the ones whose flag differs. The re-save
|
|
21
|
+
* writes no changelog entry (`skipChangelog`) — the flag is derived, not an
|
|
22
|
+
* edit. Safe to re-run.
|
|
23
|
+
*/
|
|
24
|
+
const BATCH_SIZE = 500;
|
|
25
|
+
function requireEnv(name) {
|
|
26
|
+
const value = process.env[name];
|
|
27
|
+
if (!value) {
|
|
28
|
+
console.error(`Missing required environment variable ${name}.`);
|
|
29
|
+
process.exit(1);
|
|
30
|
+
}
|
|
31
|
+
return value;
|
|
32
|
+
}
|
|
33
|
+
/** Iterate the articles in `createdAt` order, page by page. */
|
|
34
|
+
async function* pages() {
|
|
35
|
+
let after;
|
|
36
|
+
for (;;) {
|
|
37
|
+
const query = new node_1.default.Query(index_js_1.BDE_Article)
|
|
38
|
+
.select("stock", "minimumStock", "stockAlert")
|
|
39
|
+
.ascending("createdAt")
|
|
40
|
+
.limit(BATCH_SIZE);
|
|
41
|
+
// `createdAt` is not part of the generic attribute map, hence the cast.
|
|
42
|
+
if (after)
|
|
43
|
+
query.greaterThan("createdAt", after);
|
|
44
|
+
// Archived articles too, so un-archiving brings back a right flag. A query
|
|
45
|
+
// that constrains `isDeleted` gets past `hideSoftDeleted`.
|
|
46
|
+
query.containedIn("isDeleted", [true, false]);
|
|
47
|
+
const results = await query.find({ useMasterKey: true });
|
|
48
|
+
if (results.length === 0)
|
|
49
|
+
return;
|
|
50
|
+
yield results;
|
|
51
|
+
after = results[results.length - 1].createdAt;
|
|
52
|
+
if (results.length < BATCH_SIZE)
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
async function main() {
|
|
57
|
+
const dryRun = process.argv.includes("--dry-run");
|
|
58
|
+
node_1.default.initialize(requireEnv("PARSE_APP_ID"), undefined, requireEnv("PARSE_MASTER_KEY"));
|
|
59
|
+
node_1.default.serverURL =
|
|
60
|
+
process.env.PARSE_URL ?? "http://localhost:1337/parse";
|
|
61
|
+
let scanned = 0;
|
|
62
|
+
let changed = 0;
|
|
63
|
+
let alerts = 0;
|
|
64
|
+
for await (const page of pages()) {
|
|
65
|
+
for (const article of page) {
|
|
66
|
+
scanned++;
|
|
67
|
+
const expected = (0, articleStock_js_1.stockAlertOf)(article.get("stock"), article.get("minimumStock"));
|
|
68
|
+
if (expected)
|
|
69
|
+
alerts++;
|
|
70
|
+
if (article.get("stockAlert") === expected)
|
|
71
|
+
continue;
|
|
72
|
+
changed++;
|
|
73
|
+
if (dryRun)
|
|
74
|
+
continue;
|
|
75
|
+
article.set("stockAlert", expected);
|
|
76
|
+
await article.save(null, {
|
|
77
|
+
useMasterKey: true,
|
|
78
|
+
context: { skipChangelog: true },
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
console.log(`${dryRun ? "[dry run] " : ""}scanned ${scanned} articles, ` +
|
|
83
|
+
`${changed} flag(s) ${dryRun ? "to set" : "set"}, ` +
|
|
84
|
+
`${alerts} at or below the reorder point`);
|
|
85
|
+
}
|
|
86
|
+
main().catch((error) => {
|
|
87
|
+
console.error(error);
|
|
88
|
+
process.exit(1);
|
|
89
|
+
});
|
|
@@ -14,8 +14,12 @@ import type { MigrationConfig } from "./env.js";
|
|
|
14
14
|
* Pass 05 therefore writes those to the columns now, and only what still has no
|
|
15
15
|
* home stays here: v1's `category` — deliberately never given a column, since
|
|
16
16
|
* tags and `type` already classify and a third such field goes stale — v1's
|
|
17
|
-
* `description` (the label column is taken by v1's `name`)
|
|
18
|
-
*
|
|
17
|
+
* `description` (the label column is taken by v1's `name`).
|
|
18
|
+
*
|
|
19
|
+
* **Equipment moved to a column on 2026-11-17.** The links behind
|
|
20
|
+
* `Item.sources` became `OD3_BDE_Article.equipment`, which the material picker
|
|
21
|
+
* and the equipment page read. Pass 05 writes them there and strips the old
|
|
22
|
+
* meta key.
|
|
19
23
|
*
|
|
20
24
|
* ⚠️ The ABAS sync still owns the columns it writes and replaces them on every
|
|
21
25
|
* run. It does not touch the stock-keeping ones today — if that changes, they
|
|
@@ -42,7 +46,7 @@ export declare const ARTICLE_META_CONTEXT: string[];
|
|
|
42
46
|
* once in the article form, once under *Kopfdaten*. Listed here rather than in
|
|
43
47
|
* the pass because it is a statement about this context's history.
|
|
44
48
|
*/
|
|
45
|
-
export declare const META_KEYS_NOW_COLUMNS: readonly ["price", "stock", "stockAlarmAt", "stockUnit", "storageLocation", "supplier", "orderNumber"];
|
|
49
|
+
export declare const META_KEYS_NOW_COLUMNS: readonly ["price", "stock", "stockAlarmAt", "stockUnit", "storageLocation", "supplier", "orderNumber", "equipment"];
|
|
46
50
|
/**
|
|
47
51
|
* The field definitions written to the shared `Meta_Config`.
|
|
48
52
|
*
|
|
@@ -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);
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import Parse from "parse/node";
|
|
2
|
+
import type { BDE_Article } from "./BDE_Article";
|
|
3
|
+
import type { Tenant } from "./Tenant";
|
|
4
|
+
import type { BDE_WorkOrder } from "./BDE_WorkOrder";
|
|
5
|
+
import type { BDE_WorkTime } from "./BDE_WorkTime";
|
|
6
|
+
export interface BDE_QAOrderAttributes {
|
|
7
|
+
id: string;
|
|
8
|
+
objectId: string;
|
|
9
|
+
createdAt: Date;
|
|
10
|
+
updatedAt: Date;
|
|
11
|
+
article?: BDE_Article | undefined;
|
|
12
|
+
articleNumber?: string | undefined;
|
|
13
|
+
completedAt?: Date | undefined;
|
|
14
|
+
completedBy?: string | undefined;
|
|
15
|
+
containerAmount?: number | undefined;
|
|
16
|
+
containerNr?: string | undefined;
|
|
17
|
+
customerArticleNr?: string | undefined;
|
|
18
|
+
customerOrderNr?: string | undefined;
|
|
19
|
+
inspectionFeatures?: any[] | undefined;
|
|
20
|
+
inspectionState?: string | undefined;
|
|
21
|
+
isCompleted: boolean;
|
|
22
|
+
isDeleted: boolean;
|
|
23
|
+
lastValueAt?: Date | undefined;
|
|
24
|
+
lastValueBy?: string | undefined;
|
|
25
|
+
locked: boolean;
|
|
26
|
+
orderNr?: string | undefined;
|
|
27
|
+
parameters?: any[] | undefined;
|
|
28
|
+
qaOrderNr?: string | undefined;
|
|
29
|
+
sentAt?: Date | undefined;
|
|
30
|
+
sentBy?: string | undefined;
|
|
31
|
+
startedAt?: Date | undefined;
|
|
32
|
+
startedBy?: string | undefined;
|
|
33
|
+
tenant?: Tenant | undefined;
|
|
34
|
+
transactionId?: string | undefined;
|
|
35
|
+
workOrder?: BDE_WorkOrder | undefined;
|
|
36
|
+
workOrderAmount?: number | undefined;
|
|
37
|
+
workOrderNr?: string | undefined;
|
|
38
|
+
workTime?: BDE_WorkTime | undefined;
|
|
39
|
+
workTimes?: any[] | undefined;
|
|
40
|
+
}
|
|
41
|
+
export declare class BDE_QAOrder extends Parse.Object<BDE_QAOrderAttributes> {
|
|
42
|
+
static className: string;
|
|
43
|
+
constructor(data?: Partial<BDE_QAOrderAttributes>);
|
|
44
|
+
get article(): BDE_Article | undefined;
|
|
45
|
+
set article(value: BDE_Article | undefined);
|
|
46
|
+
get articleNumber(): string | undefined;
|
|
47
|
+
set articleNumber(value: string | undefined);
|
|
48
|
+
get completedAt(): Date | undefined;
|
|
49
|
+
set completedAt(value: Date | undefined);
|
|
50
|
+
get completedBy(): string | undefined;
|
|
51
|
+
set completedBy(value: string | undefined);
|
|
52
|
+
get containerAmount(): number | undefined;
|
|
53
|
+
set containerAmount(value: number | undefined);
|
|
54
|
+
get containerNr(): string | undefined;
|
|
55
|
+
set containerNr(value: string | undefined);
|
|
56
|
+
get customerArticleNr(): string | undefined;
|
|
57
|
+
set customerArticleNr(value: string | undefined);
|
|
58
|
+
get customerOrderNr(): string | undefined;
|
|
59
|
+
set customerOrderNr(value: string | undefined);
|
|
60
|
+
get inspectionFeatures(): any[] | undefined;
|
|
61
|
+
set inspectionFeatures(value: any[] | undefined);
|
|
62
|
+
get inspectionState(): string | undefined;
|
|
63
|
+
set inspectionState(value: string | undefined);
|
|
64
|
+
get isCompleted(): boolean;
|
|
65
|
+
set isCompleted(value: boolean);
|
|
66
|
+
get isDeleted(): boolean;
|
|
67
|
+
set isDeleted(value: boolean);
|
|
68
|
+
get lastValueAt(): Date | undefined;
|
|
69
|
+
set lastValueAt(value: Date | undefined);
|
|
70
|
+
get lastValueBy(): string | undefined;
|
|
71
|
+
set lastValueBy(value: string | undefined);
|
|
72
|
+
get locked(): boolean;
|
|
73
|
+
set locked(value: boolean);
|
|
74
|
+
get orderNr(): string | undefined;
|
|
75
|
+
set orderNr(value: string | undefined);
|
|
76
|
+
get parameters(): any[] | undefined;
|
|
77
|
+
set parameters(value: any[] | undefined);
|
|
78
|
+
get qaOrderNr(): string | undefined;
|
|
79
|
+
set qaOrderNr(value: string | undefined);
|
|
80
|
+
get sentAt(): Date | undefined;
|
|
81
|
+
set sentAt(value: Date | undefined);
|
|
82
|
+
get sentBy(): string | undefined;
|
|
83
|
+
set sentBy(value: string | undefined);
|
|
84
|
+
get startedAt(): Date | undefined;
|
|
85
|
+
set startedAt(value: Date | undefined);
|
|
86
|
+
get startedBy(): string | undefined;
|
|
87
|
+
set startedBy(value: string | undefined);
|
|
88
|
+
get tenant(): Tenant | undefined;
|
|
89
|
+
set tenant(value: Tenant | undefined);
|
|
90
|
+
get transactionId(): string | undefined;
|
|
91
|
+
set transactionId(value: string | undefined);
|
|
92
|
+
get workOrder(): BDE_WorkOrder | undefined;
|
|
93
|
+
set workOrder(value: BDE_WorkOrder | undefined);
|
|
94
|
+
get workOrderAmount(): number | undefined;
|
|
95
|
+
set workOrderAmount(value: number | undefined);
|
|
96
|
+
get workOrderNr(): string | undefined;
|
|
97
|
+
set workOrderNr(value: string | undefined);
|
|
98
|
+
get workTime(): BDE_WorkTime | undefined;
|
|
99
|
+
set workTime(value: BDE_WorkTime | undefined);
|
|
100
|
+
get workTimes(): any[] | undefined;
|
|
101
|
+
set workTimes(value: any[] | undefined);
|
|
102
|
+
}
|