@composable-os/pack-equipment 0.0.0-stage → 0.1.0-beta.16
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/LICENSE +109 -0
- package/dist/index.d.ts +566 -0
- package/dist/index.js +366 -0
- package/dist/tools.d.ts +216 -0
- package/dist/tools.js +767 -0
- package/package.json +31 -4
- package/README.md +0 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# Functional Source License, Version 1.1, ALv2 Future License
|
|
2
|
+
|
|
3
|
+
> This licence covers the repository except the directories listed in NOTICE. In particular, the
|
|
4
|
+
> assistant packages `packages/agent-*` (agent-core, agent-a2ui, agent-voice, agent-plugins) are
|
|
5
|
+
> licensed under the MIT License; see the LICENSE file in each of those directories (ADR 0350).
|
|
6
|
+
|
|
7
|
+
## Abbreviation
|
|
8
|
+
|
|
9
|
+
FSL-1.1-ALv2
|
|
10
|
+
|
|
11
|
+
## Notice
|
|
12
|
+
|
|
13
|
+
Copyright 2026 Tim O'Connell
|
|
14
|
+
|
|
15
|
+
## Terms and Conditions
|
|
16
|
+
|
|
17
|
+
### Licensor ("We")
|
|
18
|
+
|
|
19
|
+
The party offering the Software under these Terms and Conditions.
|
|
20
|
+
|
|
21
|
+
### The Software
|
|
22
|
+
|
|
23
|
+
The "Software" is each version of the software that we make available under
|
|
24
|
+
these Terms and Conditions, as indicated by our inclusion of these Terms and
|
|
25
|
+
Conditions with the Software.
|
|
26
|
+
|
|
27
|
+
### License Grant
|
|
28
|
+
|
|
29
|
+
Subject to your compliance with this License Grant and the Patents,
|
|
30
|
+
Redistribution and Trademark clauses below, we hereby grant you the right to
|
|
31
|
+
use, copy, modify, create derivative works, publicly perform, publicly display
|
|
32
|
+
and redistribute the Software for any Permitted Purpose identified below.
|
|
33
|
+
|
|
34
|
+
### Permitted Purpose
|
|
35
|
+
|
|
36
|
+
A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
|
|
37
|
+
means making the Software available to others in a commercial product or
|
|
38
|
+
service that:
|
|
39
|
+
|
|
40
|
+
1. substitutes for the Software;
|
|
41
|
+
|
|
42
|
+
2. substitutes for any other product or service we offer using the Software
|
|
43
|
+
that exists as of the date we make the Software available; or
|
|
44
|
+
|
|
45
|
+
3. offers the same or substantially similar functionality as the Software.
|
|
46
|
+
|
|
47
|
+
Permitted Purposes specifically include using the Software:
|
|
48
|
+
|
|
49
|
+
1. for your internal use and access;
|
|
50
|
+
|
|
51
|
+
2. for non-commercial education;
|
|
52
|
+
|
|
53
|
+
3. for non-commercial research; and
|
|
54
|
+
|
|
55
|
+
4. in connection with professional services that you provide to a licensee
|
|
56
|
+
using the Software in accordance with these Terms and Conditions.
|
|
57
|
+
|
|
58
|
+
### Patents
|
|
59
|
+
|
|
60
|
+
To the extent your use for a Permitted Purpose would necessarily infringe our
|
|
61
|
+
patents, the license grant above includes a license under our patents. If you
|
|
62
|
+
make a claim against any party that the Software infringes or contributes to
|
|
63
|
+
the infringement of any patent, then your patent license to the Software ends
|
|
64
|
+
immediately.
|
|
65
|
+
|
|
66
|
+
### Redistribution
|
|
67
|
+
|
|
68
|
+
The Terms and Conditions apply to all copies, modifications and derivatives of
|
|
69
|
+
the Software.
|
|
70
|
+
|
|
71
|
+
If you redistribute any copies, modifications or derivatives of the Software,
|
|
72
|
+
you must include a copy of or a link to these Terms and Conditions and not
|
|
73
|
+
remove any copyright notices provided in or with the Software.
|
|
74
|
+
|
|
75
|
+
### Disclaimer
|
|
76
|
+
|
|
77
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
|
|
78
|
+
IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
|
|
79
|
+
PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
|
|
80
|
+
|
|
81
|
+
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
|
|
82
|
+
SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
|
|
83
|
+
EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
|
|
84
|
+
|
|
85
|
+
### Trademarks
|
|
86
|
+
|
|
87
|
+
Except for displaying the License Details and identifying us as the origin of
|
|
88
|
+
the Software, you have no right under these Terms and Conditions to use our
|
|
89
|
+
trademarks, trade names, service marks or product names.
|
|
90
|
+
|
|
91
|
+
## Grant of Future License
|
|
92
|
+
|
|
93
|
+
We hereby irrevocably grant you an additional license to use the Software under
|
|
94
|
+
the Apache License, Version 2.0 that is effective on the second anniversary of
|
|
95
|
+
the date we make the Software available. On or after that date, you may use the
|
|
96
|
+
Software under the Apache License, Version 2.0, in which case the following
|
|
97
|
+
will apply:
|
|
98
|
+
|
|
99
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
100
|
+
this file except in compliance with the License.
|
|
101
|
+
|
|
102
|
+
You may obtain a copy of the License at
|
|
103
|
+
|
|
104
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
105
|
+
|
|
106
|
+
Unless required by applicable law or agreed to in writing, software distributed
|
|
107
|
+
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
108
|
+
CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
|
109
|
+
specific language governing permissions and limitations under the License.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,566 @@
|
|
|
1
|
+
declare const _default: import("@composable-os/sdk").Extension<{
|
|
2
|
+
readonly id: "equipment";
|
|
3
|
+
readonly version: "0.1.0";
|
|
4
|
+
readonly contractVersion: 1;
|
|
5
|
+
readonly label: "Equipment";
|
|
6
|
+
readonly description: string;
|
|
7
|
+
readonly permissions: {
|
|
8
|
+
readonly read: ["organisation"];
|
|
9
|
+
readonly operations: ["query.sql"];
|
|
10
|
+
readonly modules: ["ops"];
|
|
11
|
+
};
|
|
12
|
+
readonly grantable: readonly ["equipment:report", "equipment:manage"];
|
|
13
|
+
readonly restricted: readonly ["equipment:manage"];
|
|
14
|
+
readonly grantableLabels: {
|
|
15
|
+
readonly "equipment:report": string;
|
|
16
|
+
readonly "equipment:manage": string;
|
|
17
|
+
};
|
|
18
|
+
readonly objects: {
|
|
19
|
+
readonly item: {
|
|
20
|
+
readonly label: "Item";
|
|
21
|
+
readonly plural: "Equipment";
|
|
22
|
+
readonly icon: "wrench";
|
|
23
|
+
readonly titleField: "name";
|
|
24
|
+
readonly owner: "keeper";
|
|
25
|
+
readonly description: string;
|
|
26
|
+
readonly navigation: "main";
|
|
27
|
+
readonly navigationOrder: 70;
|
|
28
|
+
readonly fields: {
|
|
29
|
+
readonly name: {
|
|
30
|
+
readonly type: "text";
|
|
31
|
+
readonly label: "Name";
|
|
32
|
+
readonly required: true;
|
|
33
|
+
};
|
|
34
|
+
readonly category: {
|
|
35
|
+
readonly type: "select";
|
|
36
|
+
readonly label: "Category";
|
|
37
|
+
readonly editableOptions: true;
|
|
38
|
+
readonly options: {
|
|
39
|
+
value: string;
|
|
40
|
+
label: string;
|
|
41
|
+
}[];
|
|
42
|
+
};
|
|
43
|
+
readonly place: {
|
|
44
|
+
readonly type: "text";
|
|
45
|
+
readonly label: "Place";
|
|
46
|
+
readonly description: "Where it is: a room, an area of the floor, a van.";
|
|
47
|
+
};
|
|
48
|
+
readonly tag: {
|
|
49
|
+
readonly type: "text";
|
|
50
|
+
readonly label: "Tag";
|
|
51
|
+
readonly description: string;
|
|
52
|
+
readonly lockedIn: readonly ["in_service", "out_of_service", "retired"];
|
|
53
|
+
};
|
|
54
|
+
readonly make: {
|
|
55
|
+
readonly type: "text";
|
|
56
|
+
readonly label: "Make";
|
|
57
|
+
};
|
|
58
|
+
readonly model: {
|
|
59
|
+
readonly type: "text";
|
|
60
|
+
readonly label: "Model";
|
|
61
|
+
};
|
|
62
|
+
readonly serial: {
|
|
63
|
+
readonly type: "text";
|
|
64
|
+
readonly label: "Serial number";
|
|
65
|
+
};
|
|
66
|
+
readonly boughtOn: {
|
|
67
|
+
readonly type: "date";
|
|
68
|
+
readonly label: "Bought on";
|
|
69
|
+
};
|
|
70
|
+
readonly cost: {
|
|
71
|
+
readonly type: "currency";
|
|
72
|
+
readonly label: "Cost";
|
|
73
|
+
readonly min: 0;
|
|
74
|
+
readonly description: "What it cost to buy, in the base currency. Seen by every staff member.";
|
|
75
|
+
};
|
|
76
|
+
readonly supplier: {
|
|
77
|
+
readonly type: "relation";
|
|
78
|
+
readonly label: "Supplier";
|
|
79
|
+
readonly to: "organisation";
|
|
80
|
+
readonly description: "Who supplied it, and who services it under warranty.";
|
|
81
|
+
};
|
|
82
|
+
readonly warrantyUntil: {
|
|
83
|
+
readonly type: "date";
|
|
84
|
+
readonly label: "Warranty until";
|
|
85
|
+
};
|
|
86
|
+
readonly warrantyNotes: {
|
|
87
|
+
readonly type: "longText";
|
|
88
|
+
readonly label: "Warranty notes";
|
|
89
|
+
};
|
|
90
|
+
readonly photo: {
|
|
91
|
+
readonly type: "image";
|
|
92
|
+
readonly label: "Photo";
|
|
93
|
+
};
|
|
94
|
+
readonly keeper: {
|
|
95
|
+
readonly type: "user";
|
|
96
|
+
readonly label: "Keeper";
|
|
97
|
+
readonly description: "Who looks after it. Empty: the managers.";
|
|
98
|
+
};
|
|
99
|
+
readonly issuedTo: {
|
|
100
|
+
readonly type: "user";
|
|
101
|
+
readonly label: "Who has it";
|
|
102
|
+
readonly description: "Who has it now (a tool or a van out with someone).";
|
|
103
|
+
};
|
|
104
|
+
readonly renewalDue: {
|
|
105
|
+
readonly type: "date";
|
|
106
|
+
readonly label: "Renewal due";
|
|
107
|
+
readonly description: "A date it must be renewed by (a van's registration).";
|
|
108
|
+
};
|
|
109
|
+
readonly listForMembers: {
|
|
110
|
+
readonly type: "select";
|
|
111
|
+
readonly label: "Listed for members";
|
|
112
|
+
readonly default: "not_listed";
|
|
113
|
+
readonly options: readonly [{
|
|
114
|
+
readonly value: "listed";
|
|
115
|
+
readonly label: "Listed";
|
|
116
|
+
}, {
|
|
117
|
+
readonly value: "not_listed";
|
|
118
|
+
readonly label: "Not listed";
|
|
119
|
+
}];
|
|
120
|
+
readonly description: string;
|
|
121
|
+
};
|
|
122
|
+
readonly state: {
|
|
123
|
+
readonly type: "select";
|
|
124
|
+
readonly label: "State";
|
|
125
|
+
readonly default: "in_service";
|
|
126
|
+
readonly track: "timeline";
|
|
127
|
+
readonly options: readonly [{
|
|
128
|
+
readonly value: "in_service";
|
|
129
|
+
readonly label: "In service";
|
|
130
|
+
readonly color: "green";
|
|
131
|
+
}, {
|
|
132
|
+
readonly value: "out_of_service";
|
|
133
|
+
readonly label: "Out of service";
|
|
134
|
+
readonly color: "red";
|
|
135
|
+
}, {
|
|
136
|
+
readonly value: "retired";
|
|
137
|
+
readonly label: "Retired";
|
|
138
|
+
readonly color: "gray";
|
|
139
|
+
}];
|
|
140
|
+
};
|
|
141
|
+
readonly outSince: {
|
|
142
|
+
readonly type: "datetime";
|
|
143
|
+
readonly label: "Out of service since";
|
|
144
|
+
readonly readOnly: true;
|
|
145
|
+
readonly description: "When it was taken out of service. Set when it is taken out, cleared when put back.";
|
|
146
|
+
};
|
|
147
|
+
readonly outReason: {
|
|
148
|
+
readonly type: "text";
|
|
149
|
+
readonly label: "Why out of service";
|
|
150
|
+
readonly readOnly: true;
|
|
151
|
+
readonly description: string;
|
|
152
|
+
};
|
|
153
|
+
readonly notes: {
|
|
154
|
+
readonly type: "longText";
|
|
155
|
+
readonly label: "Notes";
|
|
156
|
+
};
|
|
157
|
+
readonly retiredFlag: {
|
|
158
|
+
readonly type: "formula";
|
|
159
|
+
readonly label: "Retired";
|
|
160
|
+
readonly description: "True once retired: no fault is reported on it any more.";
|
|
161
|
+
readonly expression: "coalesce(state, \"in_service\") == \"retired\"";
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
readonly indexes: readonly [readonly ["state", "category"], readonly ["category"], readonly ["keeper"], readonly ["warrantyUntil"]];
|
|
165
|
+
readonly unique: readonly [{
|
|
166
|
+
readonly fields: readonly ["tag"];
|
|
167
|
+
readonly states: readonly ["in_service", "out_of_service"];
|
|
168
|
+
readonly fold: true;
|
|
169
|
+
}];
|
|
170
|
+
readonly states: {
|
|
171
|
+
readonly field: "state";
|
|
172
|
+
readonly initial: "in_service";
|
|
173
|
+
readonly moves: readonly [{
|
|
174
|
+
readonly from: "in_service";
|
|
175
|
+
readonly to: "out_of_service";
|
|
176
|
+
readonly by: readonly ["host"];
|
|
177
|
+
readonly tools: readonly ["takeOut", "reportFault"];
|
|
178
|
+
readonly requires: readonly ["outReason"];
|
|
179
|
+
}, {
|
|
180
|
+
readonly from: "out_of_service";
|
|
181
|
+
readonly to: "in_service";
|
|
182
|
+
readonly by: readonly ["host"];
|
|
183
|
+
readonly tools: readonly ["putBack"];
|
|
184
|
+
}, {
|
|
185
|
+
readonly from: readonly ["in_service", "out_of_service"];
|
|
186
|
+
readonly to: "retired";
|
|
187
|
+
readonly by: readonly ["host"];
|
|
188
|
+
readonly tools: readonly ["retire"];
|
|
189
|
+
readonly requires: readonly ["notes"];
|
|
190
|
+
readonly final: true;
|
|
191
|
+
}];
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
readonly fault: {
|
|
195
|
+
readonly label: "Fault";
|
|
196
|
+
readonly plural: "Faults";
|
|
197
|
+
readonly icon: "triangle-alert";
|
|
198
|
+
readonly titleField: "title";
|
|
199
|
+
readonly titleDefault: {
|
|
200
|
+
readonly from: readonly ["item"];
|
|
201
|
+
readonly suffix: "fault";
|
|
202
|
+
};
|
|
203
|
+
readonly description: string;
|
|
204
|
+
readonly navigation: "main";
|
|
205
|
+
readonly navigationOrder: 71;
|
|
206
|
+
readonly fields: {
|
|
207
|
+
readonly title: {
|
|
208
|
+
readonly type: "text";
|
|
209
|
+
readonly label: "Title";
|
|
210
|
+
};
|
|
211
|
+
readonly item: {
|
|
212
|
+
readonly type: "relation";
|
|
213
|
+
readonly label: "Item";
|
|
214
|
+
readonly to: "equipment.item";
|
|
215
|
+
readonly readOnly: true;
|
|
216
|
+
};
|
|
217
|
+
readonly description: {
|
|
218
|
+
readonly type: "longText";
|
|
219
|
+
readonly label: "What is wrong";
|
|
220
|
+
readonly readOnly: true;
|
|
221
|
+
readonly description: "What is wrong with it. Do not describe an injury here.";
|
|
222
|
+
};
|
|
223
|
+
readonly severity: {
|
|
224
|
+
readonly type: "select";
|
|
225
|
+
readonly label: "How bad";
|
|
226
|
+
readonly default: "not_working";
|
|
227
|
+
readonly readOnly: true;
|
|
228
|
+
readonly options: readonly [{
|
|
229
|
+
readonly value: "safety_risk";
|
|
230
|
+
readonly label: "Safety risk";
|
|
231
|
+
readonly color: "red";
|
|
232
|
+
}, {
|
|
233
|
+
readonly value: "not_working";
|
|
234
|
+
readonly label: "Not working";
|
|
235
|
+
readonly color: "orange";
|
|
236
|
+
}, {
|
|
237
|
+
readonly value: "worn";
|
|
238
|
+
readonly label: "Worn or cosmetic";
|
|
239
|
+
readonly color: "gray";
|
|
240
|
+
}];
|
|
241
|
+
};
|
|
242
|
+
readonly photo: {
|
|
243
|
+
readonly type: "image";
|
|
244
|
+
readonly label: "Photo";
|
|
245
|
+
};
|
|
246
|
+
readonly reportedBy: {
|
|
247
|
+
readonly type: "user";
|
|
248
|
+
readonly label: "Reported by";
|
|
249
|
+
readonly readOnly: true;
|
|
250
|
+
readonly description: "The staff member who reported it, set by the report.";
|
|
251
|
+
};
|
|
252
|
+
readonly reportedByName: {
|
|
253
|
+
readonly type: "text";
|
|
254
|
+
readonly label: "Reported by (name)";
|
|
255
|
+
readonly readOnly: true;
|
|
256
|
+
};
|
|
257
|
+
readonly reportKey: {
|
|
258
|
+
readonly type: "text";
|
|
259
|
+
readonly label: "Report key";
|
|
260
|
+
readonly readOnly: true;
|
|
261
|
+
readonly description: "Set by the report: the same report again, or a retry, finds this fault while it is open.";
|
|
262
|
+
};
|
|
263
|
+
readonly state: {
|
|
264
|
+
readonly type: "select";
|
|
265
|
+
readonly label: "State";
|
|
266
|
+
readonly default: "reported";
|
|
267
|
+
readonly track: "timeline";
|
|
268
|
+
readonly options: readonly [{
|
|
269
|
+
readonly value: "reported";
|
|
270
|
+
readonly label: "Reported";
|
|
271
|
+
readonly color: "orange";
|
|
272
|
+
}, {
|
|
273
|
+
readonly value: "acknowledged";
|
|
274
|
+
readonly label: "Acknowledged";
|
|
275
|
+
readonly color: "blue";
|
|
276
|
+
}, {
|
|
277
|
+
readonly value: "fixed";
|
|
278
|
+
readonly label: "Fixed";
|
|
279
|
+
readonly color: "green";
|
|
280
|
+
}, {
|
|
281
|
+
readonly value: "not_a_fault";
|
|
282
|
+
readonly label: "Not a fault";
|
|
283
|
+
readonly color: "gray";
|
|
284
|
+
}, {
|
|
285
|
+
readonly value: "duplicate";
|
|
286
|
+
readonly label: "Duplicate";
|
|
287
|
+
readonly color: "gray";
|
|
288
|
+
}];
|
|
289
|
+
};
|
|
290
|
+
readonly closedWhy: {
|
|
291
|
+
readonly type: "text";
|
|
292
|
+
readonly label: "Closed because";
|
|
293
|
+
readonly description: "Why it was closed: what fixed it, or why it is not a fault.";
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
readonly indexes: readonly [readonly ["item", "state"], readonly ["state", "severity"]];
|
|
297
|
+
readonly unique: readonly [{
|
|
298
|
+
readonly fields: readonly ["reportKey"];
|
|
299
|
+
readonly states: string[];
|
|
300
|
+
}];
|
|
301
|
+
readonly states: {
|
|
302
|
+
readonly field: "state";
|
|
303
|
+
readonly initial: "reported";
|
|
304
|
+
readonly create: {
|
|
305
|
+
readonly closed: "item.retiredFlag";
|
|
306
|
+
readonly requires: readonly ["item"];
|
|
307
|
+
};
|
|
308
|
+
readonly holds: "item";
|
|
309
|
+
readonly moves: readonly [{
|
|
310
|
+
readonly from: "reported";
|
|
311
|
+
readonly to: "acknowledged";
|
|
312
|
+
readonly by: readonly ["host"];
|
|
313
|
+
readonly tools: readonly ["triage"];
|
|
314
|
+
}, {
|
|
315
|
+
readonly from: string[];
|
|
316
|
+
readonly to: "fixed";
|
|
317
|
+
readonly by: readonly ["host"];
|
|
318
|
+
readonly tools: readonly ["triage"];
|
|
319
|
+
readonly requires: readonly ["closedWhy"];
|
|
320
|
+
readonly final: true;
|
|
321
|
+
}, {
|
|
322
|
+
readonly from: string[];
|
|
323
|
+
readonly to: "not_a_fault";
|
|
324
|
+
readonly by: readonly ["host"];
|
|
325
|
+
readonly tools: readonly ["triage"];
|
|
326
|
+
readonly requires: readonly ["closedWhy"];
|
|
327
|
+
readonly final: true;
|
|
328
|
+
}, {
|
|
329
|
+
readonly from: string[];
|
|
330
|
+
readonly to: "duplicate";
|
|
331
|
+
readonly by: readonly ["host"];
|
|
332
|
+
readonly tools: readonly ["triage"];
|
|
333
|
+
readonly requires: readonly ["closedWhy"];
|
|
334
|
+
readonly final: true;
|
|
335
|
+
}];
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
readonly recordTabs: {
|
|
340
|
+
readonly itemFaults: {
|
|
341
|
+
readonly label: "Faults";
|
|
342
|
+
readonly on: "equipment.item";
|
|
343
|
+
readonly view: {
|
|
344
|
+
readonly type: "table";
|
|
345
|
+
readonly object: "equipment.fault";
|
|
346
|
+
readonly relation: "item";
|
|
347
|
+
readonly columns: ["title", "severity", "state", "reportedByName", "createdAt"];
|
|
348
|
+
readonly sort: {
|
|
349
|
+
readonly field: "createdAt";
|
|
350
|
+
readonly direction: "desc";
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
readonly order: 10;
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
readonly tools: {
|
|
357
|
+
readonly register: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
358
|
+
state: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
359
|
+
in_service: "in_service";
|
|
360
|
+
out_of_service: "out_of_service";
|
|
361
|
+
retired: "retired";
|
|
362
|
+
}>>;
|
|
363
|
+
category: import("zod").ZodOptional<import("zod").ZodString>;
|
|
364
|
+
place: import("zod").ZodOptional<import("zod").ZodString>;
|
|
365
|
+
q: import("zod").ZodOptional<import("zod").ZodString>;
|
|
366
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
367
|
+
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
368
|
+
id: import("zod").ZodString;
|
|
369
|
+
name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
370
|
+
tag: import("zod").ZodNullable<import("zod").ZodString>;
|
|
371
|
+
category: import("zod").ZodNullable<import("zod").ZodString>;
|
|
372
|
+
place: import("zod").ZodNullable<import("zod").ZodString>;
|
|
373
|
+
state: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
374
|
+
in_service: "in_service";
|
|
375
|
+
out_of_service: "out_of_service";
|
|
376
|
+
retired: "retired";
|
|
377
|
+
}>>;
|
|
378
|
+
outSince: import("zod").ZodNullable<import("zod").ZodString>;
|
|
379
|
+
outReason: import("zod").ZodNullable<import("zod").ZodString>;
|
|
380
|
+
keeper: import("zod").ZodNullable<import("zod").ZodString>;
|
|
381
|
+
issuedTo: import("zod").ZodNullable<import("zod").ZodString>;
|
|
382
|
+
supplier: import("zod").ZodNullable<import("zod").ZodString>;
|
|
383
|
+
warrantyUntil: import("zod").ZodNullable<import("zod").ZodString>;
|
|
384
|
+
openFaults: import("zod").ZodNumber;
|
|
385
|
+
safetyRisks: import("zod").ZodNumber;
|
|
386
|
+
}, import("zod/v4/core").$strip>>;
|
|
387
|
+
truncated: import("zod").ZodBoolean;
|
|
388
|
+
}, import("zod/v4/core").$strip>>;
|
|
389
|
+
readonly item: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
390
|
+
itemId: import("zod").ZodString;
|
|
391
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
392
|
+
id: import("zod").ZodString;
|
|
393
|
+
name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
394
|
+
tag: import("zod").ZodNullable<import("zod").ZodString>;
|
|
395
|
+
category: import("zod").ZodNullable<import("zod").ZodString>;
|
|
396
|
+
place: import("zod").ZodNullable<import("zod").ZodString>;
|
|
397
|
+
make: import("zod").ZodNullable<import("zod").ZodString>;
|
|
398
|
+
model: import("zod").ZodNullable<import("zod").ZodString>;
|
|
399
|
+
serial: import("zod").ZodNullable<import("zod").ZodString>;
|
|
400
|
+
state: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
401
|
+
in_service: "in_service";
|
|
402
|
+
out_of_service: "out_of_service";
|
|
403
|
+
retired: "retired";
|
|
404
|
+
}>>;
|
|
405
|
+
outSince: import("zod").ZodNullable<import("zod").ZodString>;
|
|
406
|
+
outReason: import("zod").ZodNullable<import("zod").ZodString>;
|
|
407
|
+
keeper: import("zod").ZodNullable<import("zod").ZodString>;
|
|
408
|
+
issuedTo: import("zod").ZodNullable<import("zod").ZodString>;
|
|
409
|
+
supplierId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
410
|
+
supplier: import("zod").ZodNullable<import("zod").ZodString>;
|
|
411
|
+
boughtOn: import("zod").ZodNullable<import("zod").ZodString>;
|
|
412
|
+
warrantyUntil: import("zod").ZodNullable<import("zod").ZodString>;
|
|
413
|
+
warrantyNotes: import("zod").ZodNullable<import("zod").ZodString>;
|
|
414
|
+
renewalDue: import("zod").ZodNullable<import("zod").ZodString>;
|
|
415
|
+
listForMembers: import("zod").ZodNullable<import("zod").ZodString>;
|
|
416
|
+
notes: import("zod").ZodNullable<import("zod").ZodString>;
|
|
417
|
+
costs: import("zod").ZodObject<{
|
|
418
|
+
purchase: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
419
|
+
}, import("zod/v4/core").$strip>;
|
|
420
|
+
faults: import("zod").ZodArray<import("zod").ZodObject<{
|
|
421
|
+
id: import("zod").ZodString;
|
|
422
|
+
title: import("zod").ZodNullable<import("zod").ZodString>;
|
|
423
|
+
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
424
|
+
severity: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
425
|
+
safety_risk: "safety_risk";
|
|
426
|
+
not_working: "not_working";
|
|
427
|
+
worn: "worn";
|
|
428
|
+
}>>;
|
|
429
|
+
state: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
430
|
+
fixed: "fixed";
|
|
431
|
+
reported: "reported";
|
|
432
|
+
acknowledged: "acknowledged";
|
|
433
|
+
not_a_fault: "not_a_fault";
|
|
434
|
+
duplicate: "duplicate";
|
|
435
|
+
}>>;
|
|
436
|
+
reportedBy: import("zod").ZodNullable<import("zod").ZodString>;
|
|
437
|
+
reportedByName: import("zod").ZodNullable<import("zod").ZodString>;
|
|
438
|
+
closedWhy: import("zod").ZodNullable<import("zod").ZodString>;
|
|
439
|
+
reportedAt: import("zod").ZodNullable<import("zod").ZodString>;
|
|
440
|
+
underWarranty: import("zod").ZodBoolean;
|
|
441
|
+
}, import("zod/v4/core").$strip>>;
|
|
442
|
+
moreFaults: import("zod").ZodBoolean;
|
|
443
|
+
}, import("zod/v4/core").$strip>>;
|
|
444
|
+
readonly reportFault: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
445
|
+
takeOut: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
446
|
+
reason: import("zod").ZodString;
|
|
447
|
+
}, import("zod/v4/core").$strip>>;
|
|
448
|
+
itemId: import("zod").ZodString;
|
|
449
|
+
description: import("zod").ZodString;
|
|
450
|
+
severity: import("zod").ZodEnum<{
|
|
451
|
+
safety_risk: "safety_risk";
|
|
452
|
+
not_working: "not_working";
|
|
453
|
+
worn: "worn";
|
|
454
|
+
}>;
|
|
455
|
+
requestId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
456
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
457
|
+
faultId: import("zod").ZodString;
|
|
458
|
+
itemId: import("zod").ZodString;
|
|
459
|
+
alreadyReported: import("zod").ZodBoolean;
|
|
460
|
+
takenOut: import("zod").ZodBoolean;
|
|
461
|
+
takeOutFailed: import("zod").ZodNullable<import("zod").ZodString>;
|
|
462
|
+
itemState: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
463
|
+
in_service: "in_service";
|
|
464
|
+
out_of_service: "out_of_service";
|
|
465
|
+
retired: "retired";
|
|
466
|
+
}>>;
|
|
467
|
+
underWarranty: import("zod").ZodBoolean;
|
|
468
|
+
message: import("zod").ZodString;
|
|
469
|
+
}, import("zod/v4/core").$strip>>;
|
|
470
|
+
readonly reportFaultOnly: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
471
|
+
itemId: import("zod").ZodString;
|
|
472
|
+
description: import("zod").ZodString;
|
|
473
|
+
severity: import("zod").ZodEnum<{
|
|
474
|
+
safety_risk: "safety_risk";
|
|
475
|
+
not_working: "not_working";
|
|
476
|
+
worn: "worn";
|
|
477
|
+
}>;
|
|
478
|
+
requestId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
479
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
480
|
+
faultId: import("zod").ZodString;
|
|
481
|
+
itemId: import("zod").ZodString;
|
|
482
|
+
alreadyReported: import("zod").ZodBoolean;
|
|
483
|
+
takenOut: import("zod").ZodBoolean;
|
|
484
|
+
takeOutFailed: import("zod").ZodNullable<import("zod").ZodString>;
|
|
485
|
+
itemState: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
486
|
+
in_service: "in_service";
|
|
487
|
+
out_of_service: "out_of_service";
|
|
488
|
+
retired: "retired";
|
|
489
|
+
}>>;
|
|
490
|
+
underWarranty: import("zod").ZodBoolean;
|
|
491
|
+
message: import("zod").ZodString;
|
|
492
|
+
}, import("zod/v4/core").$strip>>;
|
|
493
|
+
readonly takeOut: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
494
|
+
itemId: import("zod").ZodString;
|
|
495
|
+
reason: import("zod").ZodString;
|
|
496
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
497
|
+
itemId: import("zod").ZodString;
|
|
498
|
+
state: import("zod").ZodLiteral<"out_of_service">;
|
|
499
|
+
outSince: import("zod").ZodString;
|
|
500
|
+
}, import("zod/v4/core").$strip>>;
|
|
501
|
+
readonly putBack: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
502
|
+
itemId: import("zod").ZodString;
|
|
503
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
504
|
+
itemId: import("zod").ZodString;
|
|
505
|
+
state: import("zod").ZodLiteral<"in_service">;
|
|
506
|
+
}, import("zod/v4/core").$strip>>;
|
|
507
|
+
readonly retire: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
508
|
+
itemId: import("zod").ZodString;
|
|
509
|
+
reason: import("zod").ZodString;
|
|
510
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
511
|
+
itemId: import("zod").ZodString;
|
|
512
|
+
state: import("zod").ZodLiteral<"retired">;
|
|
513
|
+
}, import("zod/v4/core").$strip>>;
|
|
514
|
+
readonly triage: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
515
|
+
faultId: import("zod").ZodString;
|
|
516
|
+
action: import("zod").ZodEnum<{
|
|
517
|
+
fixed: "fixed";
|
|
518
|
+
not_a_fault: "not_a_fault";
|
|
519
|
+
duplicate: "duplicate";
|
|
520
|
+
acknowledge: "acknowledge";
|
|
521
|
+
}>;
|
|
522
|
+
why: import("zod").ZodOptional<import("zod").ZodString>;
|
|
523
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
524
|
+
faultId: import("zod").ZodString;
|
|
525
|
+
state: import("zod").ZodEnum<{
|
|
526
|
+
fixed: "fixed";
|
|
527
|
+
reported: "reported";
|
|
528
|
+
acknowledged: "acknowledged";
|
|
529
|
+
not_a_fault: "not_a_fault";
|
|
530
|
+
duplicate: "duplicate";
|
|
531
|
+
}>;
|
|
532
|
+
}, import("zod/v4/core").$strip>>;
|
|
533
|
+
readonly correctFault: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
534
|
+
faultId: import("zod").ZodString;
|
|
535
|
+
severity: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
536
|
+
safety_risk: "safety_risk";
|
|
537
|
+
not_working: "not_working";
|
|
538
|
+
worn: "worn";
|
|
539
|
+
}>>;
|
|
540
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
541
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
542
|
+
faultId: import("zod").ZodString;
|
|
543
|
+
severity: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
544
|
+
safety_risk: "safety_risk";
|
|
545
|
+
not_working: "not_working";
|
|
546
|
+
worn: "worn";
|
|
547
|
+
}>>;
|
|
548
|
+
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
549
|
+
}, import("zod/v4/core").$strip>>;
|
|
550
|
+
readonly correctOutReason: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
551
|
+
itemId: import("zod").ZodString;
|
|
552
|
+
reason: import("zod").ZodString;
|
|
553
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
554
|
+
itemId: import("zod").ZodString;
|
|
555
|
+
outReason: import("zod").ZodNullable<import("zod").ZodString>;
|
|
556
|
+
}, import("zod/v4/core").$strip>>;
|
|
557
|
+
readonly correctTag: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
558
|
+
itemId: import("zod").ZodString;
|
|
559
|
+
tag: import("zod").ZodString;
|
|
560
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
561
|
+
itemId: import("zod").ZodString;
|
|
562
|
+
tag: import("zod").ZodNullable<import("zod").ZodString>;
|
|
563
|
+
}, import("zod/v4/core").$strip>>;
|
|
564
|
+
};
|
|
565
|
+
}>;
|
|
566
|
+
export default _default;
|