@composable-os/pack-equipment 0.1.0-beta.17 → 0.1.0-beta.19
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/index.d.ts +12 -5
- package/dist/index.js +10 -5
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -23,8 +23,10 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
23
23
|
readonly titleField: "name";
|
|
24
24
|
readonly owner: "keeper";
|
|
25
25
|
readonly description: string;
|
|
26
|
-
readonly
|
|
27
|
-
|
|
26
|
+
readonly place: {
|
|
27
|
+
readonly key: "equipment";
|
|
28
|
+
readonly order: 70;
|
|
29
|
+
};
|
|
28
30
|
readonly fields: {
|
|
29
31
|
readonly name: {
|
|
30
32
|
readonly type: "text";
|
|
@@ -201,8 +203,10 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
201
203
|
readonly suffix: "fault";
|
|
202
204
|
};
|
|
203
205
|
readonly description: string;
|
|
204
|
-
readonly
|
|
205
|
-
|
|
206
|
+
readonly place: {
|
|
207
|
+
readonly key: "equipment";
|
|
208
|
+
readonly order: 71;
|
|
209
|
+
};
|
|
206
210
|
readonly fields: {
|
|
207
211
|
readonly title: {
|
|
208
212
|
readonly type: "text";
|
|
@@ -251,13 +255,15 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
251
255
|
};
|
|
252
256
|
readonly reportedByName: {
|
|
253
257
|
readonly type: "text";
|
|
254
|
-
readonly label: "Reported by
|
|
258
|
+
readonly label: "Reported by";
|
|
259
|
+
readonly snapshotOf: "reportedBy";
|
|
255
260
|
readonly readOnly: true;
|
|
256
261
|
};
|
|
257
262
|
readonly reportKey: {
|
|
258
263
|
readonly type: "text";
|
|
259
264
|
readonly label: "Report key";
|
|
260
265
|
readonly readOnly: true;
|
|
266
|
+
readonly internal: true;
|
|
261
267
|
readonly description: "Set by the report: the same report again, or a retry, finds this fault while it is open.";
|
|
262
268
|
};
|
|
263
269
|
readonly state: {
|
|
@@ -340,6 +346,7 @@ declare const _default: import("@composable-os/sdk").Extension<{
|
|
|
340
346
|
readonly itemFaults: {
|
|
341
347
|
readonly label: "Faults";
|
|
342
348
|
readonly on: "equipment.item";
|
|
349
|
+
readonly tab: "faults";
|
|
343
350
|
readonly view: {
|
|
344
351
|
readonly type: "table";
|
|
345
352
|
readonly object: "equipment.fault";
|
package/dist/index.js
CHANGED
|
@@ -81,8 +81,7 @@ export default defineExtension({
|
|
|
81
81
|
description: "One thing the business owns and looks after: a machine, a rack, a tool, a van. In " +
|
|
82
82
|
"service, out of service (why, since when) or retired. Its tag is the code on its " +
|
|
83
83
|
"sticker, unique in the register.",
|
|
84
|
-
|
|
85
|
-
navigationOrder: 70,
|
|
84
|
+
place: { key: "equipment", order: 70 },
|
|
86
85
|
fields: {
|
|
87
86
|
name: { type: "text", label: "Name", required: true },
|
|
88
87
|
category: {
|
|
@@ -225,8 +224,7 @@ export default defineExtension({
|
|
|
225
224
|
titleDefault: { from: ["item"], suffix: "fault" },
|
|
226
225
|
description: "A report that something is wrong with an item: what is wrong and how bad. Reported by " +
|
|
227
226
|
"staff, then acknowledged and closed as fixed, not a fault or a duplicate by a manager.",
|
|
228
|
-
|
|
229
|
-
navigationOrder: 71,
|
|
227
|
+
place: { key: "equipment", order: 71 },
|
|
230
228
|
fields: {
|
|
231
229
|
title: { type: "text", label: "Title" },
|
|
232
230
|
// The item the report is about: set by the report tools, never re-pointed (a safety risk
|
|
@@ -263,11 +261,17 @@ export default defineExtension({
|
|
|
263
261
|
readOnly: true,
|
|
264
262
|
description: "The staff member who reported it, set by the report.",
|
|
265
263
|
},
|
|
266
|
-
reportedByName: {
|
|
264
|
+
reportedByName: {
|
|
265
|
+
type: "text",
|
|
266
|
+
label: "Reported by",
|
|
267
|
+
snapshotOf: "reportedBy",
|
|
268
|
+
readOnly: true,
|
|
269
|
+
},
|
|
267
270
|
reportKey: {
|
|
268
271
|
type: "text",
|
|
269
272
|
label: "Report key",
|
|
270
273
|
readOnly: true,
|
|
274
|
+
internal: true,
|
|
271
275
|
description: "Set by the report: the same report again, or a retry, finds this fault while it is open.",
|
|
272
276
|
},
|
|
273
277
|
state: {
|
|
@@ -340,6 +344,7 @@ export default defineExtension({
|
|
|
340
344
|
itemFaults: {
|
|
341
345
|
label: "Faults",
|
|
342
346
|
on: ITEM,
|
|
347
|
+
tab: "faults",
|
|
343
348
|
view: {
|
|
344
349
|
type: "table",
|
|
345
350
|
object: FAULT,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@composable-os/pack-equipment",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.19",
|
|
4
4
|
"license": "FSL-1.1-ALv2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -28,6 +28,6 @@
|
|
|
28
28
|
"description": "A register of your equipment, with tags, suppliers, costs and warranties, faults reported from the floor, and machines taken out of service in one tap and put back by a manager."
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@composable-os/sdk": "0.1.0-beta.
|
|
31
|
+
"@composable-os/sdk": "0.1.0-beta.19"
|
|
32
32
|
}
|
|
33
33
|
}
|