@spotto/semantic-query 1.0.70-alpha.32 → 1.0.70-alpha.34
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/dates.d.ts +32 -32
- package/dist/dates.js +104 -104
- package/dist/evaluate.d.ts +28 -28
- package/dist/evaluate.js +545 -545
- package/dist/fixtures.d.ts +277 -277
- package/dist/fixtures.js +175 -175
- package/dist/index.d.ts +32 -32
- package/dist/index.js +48 -48
- package/dist/resolve-name.d.ts +9 -9
- package/dist/resolve-name.js +90 -90
- package/dist/suggest.d.ts +12 -12
- package/dist/suggest.js +69 -69
- package/dist/types.d.ts +111 -111
- package/dist/types.js +23 -23
- package/dist/validate.d.ts +33 -33
- package/dist/validate.js +795 -795
- package/package.json +3 -3
package/dist/fixtures.d.ts
CHANGED
|
@@ -1,277 +1,277 @@
|
|
|
1
|
-
import { SemanticAccountSchema } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* The conformance corpus.
|
|
4
|
-
*
|
|
5
|
-
* Shipped as part of the package, on its own entry point
|
|
6
|
-
* (`@spotto/semantic-query/dist/fixtures`), because it is not test scaffolding
|
|
7
|
-
* — it is the shared statement of the awkward cases every back-end must
|
|
8
|
-
* classify identically. The server's Mongo compiler runs against it, and so
|
|
9
|
-
* does anything else that ever claims to execute this language.
|
|
10
|
-
*
|
|
11
|
-
* Deliberately small and hand-readable. Each document exists for a reason
|
|
12
|
-
* stated beside it; a corpus nobody can hold in their head stops being
|
|
13
|
-
* evidence and starts being decoration.
|
|
14
|
-
*/
|
|
15
|
-
export declare const FIXTURE_FIELDS: {
|
|
16
|
-
readonly SERIAL: "aaaaaaaaaaaaaaaaaaaaaa01";
|
|
17
|
-
readonly MANUFACTURER: "aaaaaaaaaaaaaaaaaaaaaa02";
|
|
18
|
-
readonly OWNERSHIP: "aaaaaaaaaaaaaaaaaaaaaa03";
|
|
19
|
-
readonly PURCHASE_DATE: "aaaaaaaaaaaaaaaaaaaaaa04";
|
|
20
|
-
readonly DECOMMISSIONED: "aaaaaaaaaaaaaaaaaaaaaa05";
|
|
21
|
-
readonly CALIBRATED_AT: "aaaaaaaaaaaaaaaaaaaaaa06";
|
|
22
|
-
};
|
|
23
|
-
export declare const FIXTURE_TYPES: {
|
|
24
|
-
readonly EPOC: "bbbbbbbbbbbbbbbbbbbbbb01";
|
|
25
|
-
readonly FRIDGE: "bbbbbbbbbbbbbbbbbbbbbb02";
|
|
26
|
-
readonly AMBULANCE: "bbbbbbbbbbbbbbbbbbbbbb03";
|
|
27
|
-
};
|
|
28
|
-
export declare const FIXTURE_MANIFEST = "cccccccccccccccccccccc01";
|
|
29
|
-
export declare const FIXTURE_KIT_PARENT = "dddddddddddddddddddddd01";
|
|
30
|
-
/**
|
|
31
|
-
* One organisation's catalogue: every supported data type, a dropdown with
|
|
32
|
-
* options, a type-level value (Manufacturer, which no asset carries directly),
|
|
33
|
-
* and a DATETIME field that must be refused rather than matched.
|
|
34
|
-
*/
|
|
35
|
-
export declare const FIXTURE_SCHEMA: SemanticAccountSchema;
|
|
36
|
-
/** Carries a value for everything; its Manufacturer comes from its TYPE, not itself. */
|
|
37
|
-
export declare const FIXTURE_EPOC: {
|
|
38
|
-
_id: string;
|
|
39
|
-
name: string;
|
|
40
|
-
typeId: "bbbbbbbbbbbbbbbbbbbbbb01";
|
|
41
|
-
typePath: string;
|
|
42
|
-
fieldValues: ({
|
|
43
|
-
_id: "aaaaaaaaaaaaaaaaaaaaaa01";
|
|
44
|
-
name: string;
|
|
45
|
-
valueString: string;
|
|
46
|
-
valueDate?: undefined;
|
|
47
|
-
} | {
|
|
48
|
-
_id: "aaaaaaaaaaaaaaaaaaaaaa03";
|
|
49
|
-
name: string;
|
|
50
|
-
valueString: string;
|
|
51
|
-
valueDate?: undefined;
|
|
52
|
-
} | {
|
|
53
|
-
_id: "aaaaaaaaaaaaaaaaaaaaaa04";
|
|
54
|
-
name: string;
|
|
55
|
-
valueDate: number;
|
|
56
|
-
valueString?: undefined;
|
|
57
|
-
})[];
|
|
58
|
-
state: {
|
|
59
|
-
locationName: string;
|
|
60
|
-
locationStatus: string;
|
|
61
|
-
lastSeen: number;
|
|
62
|
-
supportsWith: boolean;
|
|
63
|
-
locationWithId: string;
|
|
64
|
-
};
|
|
65
|
-
readiness: {
|
|
66
|
-
ready: number;
|
|
67
|
-
readyIssues: {
|
|
68
|
-
reason: string;
|
|
69
|
-
}[];
|
|
70
|
-
};
|
|
71
|
-
tagIds: string[];
|
|
72
|
-
labels: {
|
|
73
|
-
name: string;
|
|
74
|
-
}[];
|
|
75
|
-
manifestIds: string[];
|
|
76
|
-
hasManifest: boolean;
|
|
77
|
-
lastUpdated: number;
|
|
78
|
-
lastChanged: number;
|
|
79
|
-
groupMember: boolean;
|
|
80
|
-
};
|
|
81
|
-
/** The sparse asset: no state, no readiness, no tags, never updated. */
|
|
82
|
-
export declare const FIXTURE_FRIDGE: {
|
|
83
|
-
_id: string;
|
|
84
|
-
name: string;
|
|
85
|
-
typeId: "bbbbbbbbbbbbbbbbbbbbbb02";
|
|
86
|
-
typePath: string;
|
|
87
|
-
fieldValues: never[];
|
|
88
|
-
tagIds: never[];
|
|
89
|
-
};
|
|
90
|
-
/** A kit, dispatched, whose members fall short of its type's template. */
|
|
91
|
-
export declare const FIXTURE_AMBULANCE: {
|
|
92
|
-
_id: string;
|
|
93
|
-
name: string;
|
|
94
|
-
typeId: "bbbbbbbbbbbbbbbbbbbbbb03";
|
|
95
|
-
typePath: string;
|
|
96
|
-
fieldValues: ({
|
|
97
|
-
_id: "aaaaaaaaaaaaaaaaaaaaaa03";
|
|
98
|
-
name: string;
|
|
99
|
-
valueString: string;
|
|
100
|
-
valueBoolean?: undefined;
|
|
101
|
-
} | {
|
|
102
|
-
_id: "aaaaaaaaaaaaaaaaaaaaaa05";
|
|
103
|
-
name: string;
|
|
104
|
-
valueBoolean: boolean;
|
|
105
|
-
valueString?: undefined;
|
|
106
|
-
})[];
|
|
107
|
-
state: {
|
|
108
|
-
locationName: string;
|
|
109
|
-
locationStatus: string;
|
|
110
|
-
};
|
|
111
|
-
readiness: {
|
|
112
|
-
ready: number;
|
|
113
|
-
readyIssues: never[];
|
|
114
|
-
};
|
|
115
|
-
tagIds: never[];
|
|
116
|
-
lastUpdated: number;
|
|
117
|
-
typeKit: boolean;
|
|
118
|
-
hasManifest: boolean;
|
|
119
|
-
groupSatisfiesManifest: number;
|
|
120
|
-
};
|
|
121
|
-
/**
|
|
122
|
-
* The detached kit: a stored manifest verdict but no manifest any more
|
|
123
|
-
* (`hasManifest` absent). The stored 2 is inert history — its UI shows no
|
|
124
|
-
* pill and no readiness issue — so NO manifest condition may match it, in
|
|
125
|
-
* either back-end. This is the document that proves the `hasManifest` gate.
|
|
126
|
-
*/
|
|
127
|
-
export declare const FIXTURE_DETACHED_KIT: {
|
|
128
|
-
_id: string;
|
|
129
|
-
name: string;
|
|
130
|
-
typeId: "bbbbbbbbbbbbbbbbbbbbbb03";
|
|
131
|
-
typePath: string;
|
|
132
|
-
fieldValues: never[];
|
|
133
|
-
tagIds: never[];
|
|
134
|
-
typeKit: boolean;
|
|
135
|
-
groupSatisfiesManifest: number;
|
|
136
|
-
};
|
|
137
|
-
/**
|
|
138
|
-
* The null-slot document. Every field it carries is present-but-null, which is
|
|
139
|
-
* a different shape from absent — and the axis where two back-ends most easily
|
|
140
|
-
* disagree (a database's "does this key exist" versus a language's "is this
|
|
141
|
-
* empty"). Every condition family must classify it identically on both sides.
|
|
142
|
-
*/
|
|
143
|
-
export declare const FIXTURE_NULLS: {
|
|
144
|
-
_id: string;
|
|
145
|
-
name: string;
|
|
146
|
-
typeId: "bbbbbbbbbbbbbbbbbbbbbb03";
|
|
147
|
-
typePath: string;
|
|
148
|
-
fieldValues: {
|
|
149
|
-
_id: "aaaaaaaaaaaaaaaaaaaaaa03";
|
|
150
|
-
name: string;
|
|
151
|
-
valueString: null;
|
|
152
|
-
}[];
|
|
153
|
-
state: {
|
|
154
|
-
locationWithId: null;
|
|
155
|
-
locationName: string;
|
|
156
|
-
};
|
|
157
|
-
tagIds: null;
|
|
158
|
-
lastUpdated: null;
|
|
159
|
-
telemetry: {
|
|
160
|
-
battery: null;
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
export declare const FIXTURE_CORPUS: ({
|
|
164
|
-
_id: string;
|
|
165
|
-
name: string;
|
|
166
|
-
typeId: "bbbbbbbbbbbbbbbbbbbbbb01";
|
|
167
|
-
typePath: string;
|
|
168
|
-
fieldValues: ({
|
|
169
|
-
_id: "aaaaaaaaaaaaaaaaaaaaaa01";
|
|
170
|
-
name: string;
|
|
171
|
-
valueString: string;
|
|
172
|
-
valueDate?: undefined;
|
|
173
|
-
} | {
|
|
174
|
-
_id: "aaaaaaaaaaaaaaaaaaaaaa03";
|
|
175
|
-
name: string;
|
|
176
|
-
valueString: string;
|
|
177
|
-
valueDate?: undefined;
|
|
178
|
-
} | {
|
|
179
|
-
_id: "aaaaaaaaaaaaaaaaaaaaaa04";
|
|
180
|
-
name: string;
|
|
181
|
-
valueDate: number;
|
|
182
|
-
valueString?: undefined;
|
|
183
|
-
})[];
|
|
184
|
-
state: {
|
|
185
|
-
locationName: string;
|
|
186
|
-
locationStatus: string;
|
|
187
|
-
lastSeen: number;
|
|
188
|
-
supportsWith: boolean;
|
|
189
|
-
locationWithId: string;
|
|
190
|
-
};
|
|
191
|
-
readiness: {
|
|
192
|
-
ready: number;
|
|
193
|
-
readyIssues: {
|
|
194
|
-
reason: string;
|
|
195
|
-
}[];
|
|
196
|
-
};
|
|
197
|
-
tagIds: string[];
|
|
198
|
-
labels: {
|
|
199
|
-
name: string;
|
|
200
|
-
}[];
|
|
201
|
-
manifestIds: string[];
|
|
202
|
-
hasManifest: boolean;
|
|
203
|
-
lastUpdated: number;
|
|
204
|
-
lastChanged: number;
|
|
205
|
-
groupMember: boolean;
|
|
206
|
-
} | {
|
|
207
|
-
_id: string;
|
|
208
|
-
name: string;
|
|
209
|
-
typeId: "bbbbbbbbbbbbbbbbbbbbbb02";
|
|
210
|
-
typePath: string;
|
|
211
|
-
fieldValues: never[];
|
|
212
|
-
tagIds: never[];
|
|
213
|
-
} | {
|
|
214
|
-
_id: string;
|
|
215
|
-
name: string;
|
|
216
|
-
typeId: "bbbbbbbbbbbbbbbbbbbbbb03";
|
|
217
|
-
typePath: string;
|
|
218
|
-
fieldValues: ({
|
|
219
|
-
_id: "aaaaaaaaaaaaaaaaaaaaaa03";
|
|
220
|
-
name: string;
|
|
221
|
-
valueString: string;
|
|
222
|
-
valueBoolean?: undefined;
|
|
223
|
-
} | {
|
|
224
|
-
_id: "aaaaaaaaaaaaaaaaaaaaaa05";
|
|
225
|
-
name: string;
|
|
226
|
-
valueBoolean: boolean;
|
|
227
|
-
valueString?: undefined;
|
|
228
|
-
})[];
|
|
229
|
-
state: {
|
|
230
|
-
locationName: string;
|
|
231
|
-
locationStatus: string;
|
|
232
|
-
};
|
|
233
|
-
readiness: {
|
|
234
|
-
ready: number;
|
|
235
|
-
readyIssues: never[];
|
|
236
|
-
};
|
|
237
|
-
tagIds: never[];
|
|
238
|
-
lastUpdated: number;
|
|
239
|
-
typeKit: boolean;
|
|
240
|
-
hasManifest: boolean;
|
|
241
|
-
groupSatisfiesManifest: number;
|
|
242
|
-
} | {
|
|
243
|
-
_id: string;
|
|
244
|
-
name: string;
|
|
245
|
-
typeId: "bbbbbbbbbbbbbbbbbbbbbb03";
|
|
246
|
-
typePath: string;
|
|
247
|
-
fieldValues: never[];
|
|
248
|
-
tagIds: never[];
|
|
249
|
-
typeKit: boolean;
|
|
250
|
-
groupSatisfiesManifest: number;
|
|
251
|
-
} | {
|
|
252
|
-
_id: string;
|
|
253
|
-
name: string;
|
|
254
|
-
typeId: "bbbbbbbbbbbbbbbbbbbbbb03";
|
|
255
|
-
typePath: string;
|
|
256
|
-
fieldValues: {
|
|
257
|
-
_id: "aaaaaaaaaaaaaaaaaaaaaa03";
|
|
258
|
-
name: string;
|
|
259
|
-
valueString: null;
|
|
260
|
-
}[];
|
|
261
|
-
state: {
|
|
262
|
-
locationWithId: null;
|
|
263
|
-
locationName: string;
|
|
264
|
-
};
|
|
265
|
-
tagIds: null;
|
|
266
|
-
lastUpdated: null;
|
|
267
|
-
telemetry: {
|
|
268
|
-
battery: null;
|
|
269
|
-
};
|
|
270
|
-
})[];
|
|
271
|
-
/** Frozen clock for the corpus — 2026-07-27 09:00 in Brisbane. */
|
|
272
|
-
export declare const FIXTURE_NOW: Date;
|
|
273
|
-
export declare const FIXTURE_TZ = "Australia/Brisbane";
|
|
274
|
-
export declare const FIXTURE_OPTS: {
|
|
275
|
-
now: Date;
|
|
276
|
-
timeZone: string;
|
|
277
|
-
};
|
|
1
|
+
import { SemanticAccountSchema } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* The conformance corpus.
|
|
4
|
+
*
|
|
5
|
+
* Shipped as part of the package, on its own entry point
|
|
6
|
+
* (`@spotto/semantic-query/dist/fixtures`), because it is not test scaffolding
|
|
7
|
+
* — it is the shared statement of the awkward cases every back-end must
|
|
8
|
+
* classify identically. The server's Mongo compiler runs against it, and so
|
|
9
|
+
* does anything else that ever claims to execute this language.
|
|
10
|
+
*
|
|
11
|
+
* Deliberately small and hand-readable. Each document exists for a reason
|
|
12
|
+
* stated beside it; a corpus nobody can hold in their head stops being
|
|
13
|
+
* evidence and starts being decoration.
|
|
14
|
+
*/
|
|
15
|
+
export declare const FIXTURE_FIELDS: {
|
|
16
|
+
readonly SERIAL: "aaaaaaaaaaaaaaaaaaaaaa01";
|
|
17
|
+
readonly MANUFACTURER: "aaaaaaaaaaaaaaaaaaaaaa02";
|
|
18
|
+
readonly OWNERSHIP: "aaaaaaaaaaaaaaaaaaaaaa03";
|
|
19
|
+
readonly PURCHASE_DATE: "aaaaaaaaaaaaaaaaaaaaaa04";
|
|
20
|
+
readonly DECOMMISSIONED: "aaaaaaaaaaaaaaaaaaaaaa05";
|
|
21
|
+
readonly CALIBRATED_AT: "aaaaaaaaaaaaaaaaaaaaaa06";
|
|
22
|
+
};
|
|
23
|
+
export declare const FIXTURE_TYPES: {
|
|
24
|
+
readonly EPOC: "bbbbbbbbbbbbbbbbbbbbbb01";
|
|
25
|
+
readonly FRIDGE: "bbbbbbbbbbbbbbbbbbbbbb02";
|
|
26
|
+
readonly AMBULANCE: "bbbbbbbbbbbbbbbbbbbbbb03";
|
|
27
|
+
};
|
|
28
|
+
export declare const FIXTURE_MANIFEST = "cccccccccccccccccccccc01";
|
|
29
|
+
export declare const FIXTURE_KIT_PARENT = "dddddddddddddddddddddd01";
|
|
30
|
+
/**
|
|
31
|
+
* One organisation's catalogue: every supported data type, a dropdown with
|
|
32
|
+
* options, a type-level value (Manufacturer, which no asset carries directly),
|
|
33
|
+
* and a DATETIME field that must be refused rather than matched.
|
|
34
|
+
*/
|
|
35
|
+
export declare const FIXTURE_SCHEMA: SemanticAccountSchema;
|
|
36
|
+
/** Carries a value for everything; its Manufacturer comes from its TYPE, not itself. */
|
|
37
|
+
export declare const FIXTURE_EPOC: {
|
|
38
|
+
_id: string;
|
|
39
|
+
name: string;
|
|
40
|
+
typeId: "bbbbbbbbbbbbbbbbbbbbbb01";
|
|
41
|
+
typePath: string;
|
|
42
|
+
fieldValues: ({
|
|
43
|
+
_id: "aaaaaaaaaaaaaaaaaaaaaa01";
|
|
44
|
+
name: string;
|
|
45
|
+
valueString: string;
|
|
46
|
+
valueDate?: undefined;
|
|
47
|
+
} | {
|
|
48
|
+
_id: "aaaaaaaaaaaaaaaaaaaaaa03";
|
|
49
|
+
name: string;
|
|
50
|
+
valueString: string;
|
|
51
|
+
valueDate?: undefined;
|
|
52
|
+
} | {
|
|
53
|
+
_id: "aaaaaaaaaaaaaaaaaaaaaa04";
|
|
54
|
+
name: string;
|
|
55
|
+
valueDate: number;
|
|
56
|
+
valueString?: undefined;
|
|
57
|
+
})[];
|
|
58
|
+
state: {
|
|
59
|
+
locationName: string;
|
|
60
|
+
locationStatus: string;
|
|
61
|
+
lastSeen: number;
|
|
62
|
+
supportsWith: boolean;
|
|
63
|
+
locationWithId: string;
|
|
64
|
+
};
|
|
65
|
+
readiness: {
|
|
66
|
+
ready: number;
|
|
67
|
+
readyIssues: {
|
|
68
|
+
reason: string;
|
|
69
|
+
}[];
|
|
70
|
+
};
|
|
71
|
+
tagIds: string[];
|
|
72
|
+
labels: {
|
|
73
|
+
name: string;
|
|
74
|
+
}[];
|
|
75
|
+
manifestIds: string[];
|
|
76
|
+
hasManifest: boolean;
|
|
77
|
+
lastUpdated: number;
|
|
78
|
+
lastChanged: number;
|
|
79
|
+
groupMember: boolean;
|
|
80
|
+
};
|
|
81
|
+
/** The sparse asset: no state, no readiness, no tags, never updated. */
|
|
82
|
+
export declare const FIXTURE_FRIDGE: {
|
|
83
|
+
_id: string;
|
|
84
|
+
name: string;
|
|
85
|
+
typeId: "bbbbbbbbbbbbbbbbbbbbbb02";
|
|
86
|
+
typePath: string;
|
|
87
|
+
fieldValues: never[];
|
|
88
|
+
tagIds: never[];
|
|
89
|
+
};
|
|
90
|
+
/** A kit, dispatched, whose members fall short of its type's template. */
|
|
91
|
+
export declare const FIXTURE_AMBULANCE: {
|
|
92
|
+
_id: string;
|
|
93
|
+
name: string;
|
|
94
|
+
typeId: "bbbbbbbbbbbbbbbbbbbbbb03";
|
|
95
|
+
typePath: string;
|
|
96
|
+
fieldValues: ({
|
|
97
|
+
_id: "aaaaaaaaaaaaaaaaaaaaaa03";
|
|
98
|
+
name: string;
|
|
99
|
+
valueString: string;
|
|
100
|
+
valueBoolean?: undefined;
|
|
101
|
+
} | {
|
|
102
|
+
_id: "aaaaaaaaaaaaaaaaaaaaaa05";
|
|
103
|
+
name: string;
|
|
104
|
+
valueBoolean: boolean;
|
|
105
|
+
valueString?: undefined;
|
|
106
|
+
})[];
|
|
107
|
+
state: {
|
|
108
|
+
locationName: string;
|
|
109
|
+
locationStatus: string;
|
|
110
|
+
};
|
|
111
|
+
readiness: {
|
|
112
|
+
ready: number;
|
|
113
|
+
readyIssues: never[];
|
|
114
|
+
};
|
|
115
|
+
tagIds: never[];
|
|
116
|
+
lastUpdated: number;
|
|
117
|
+
typeKit: boolean;
|
|
118
|
+
hasManifest: boolean;
|
|
119
|
+
groupSatisfiesManifest: number;
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* The detached kit: a stored manifest verdict but no manifest any more
|
|
123
|
+
* (`hasManifest` absent). The stored 2 is inert history — its UI shows no
|
|
124
|
+
* pill and no readiness issue — so NO manifest condition may match it, in
|
|
125
|
+
* either back-end. This is the document that proves the `hasManifest` gate.
|
|
126
|
+
*/
|
|
127
|
+
export declare const FIXTURE_DETACHED_KIT: {
|
|
128
|
+
_id: string;
|
|
129
|
+
name: string;
|
|
130
|
+
typeId: "bbbbbbbbbbbbbbbbbbbbbb03";
|
|
131
|
+
typePath: string;
|
|
132
|
+
fieldValues: never[];
|
|
133
|
+
tagIds: never[];
|
|
134
|
+
typeKit: boolean;
|
|
135
|
+
groupSatisfiesManifest: number;
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* The null-slot document. Every field it carries is present-but-null, which is
|
|
139
|
+
* a different shape from absent — and the axis where two back-ends most easily
|
|
140
|
+
* disagree (a database's "does this key exist" versus a language's "is this
|
|
141
|
+
* empty"). Every condition family must classify it identically on both sides.
|
|
142
|
+
*/
|
|
143
|
+
export declare const FIXTURE_NULLS: {
|
|
144
|
+
_id: string;
|
|
145
|
+
name: string;
|
|
146
|
+
typeId: "bbbbbbbbbbbbbbbbbbbbbb03";
|
|
147
|
+
typePath: string;
|
|
148
|
+
fieldValues: {
|
|
149
|
+
_id: "aaaaaaaaaaaaaaaaaaaaaa03";
|
|
150
|
+
name: string;
|
|
151
|
+
valueString: null;
|
|
152
|
+
}[];
|
|
153
|
+
state: {
|
|
154
|
+
locationWithId: null;
|
|
155
|
+
locationName: string;
|
|
156
|
+
};
|
|
157
|
+
tagIds: null;
|
|
158
|
+
lastUpdated: null;
|
|
159
|
+
telemetry: {
|
|
160
|
+
battery: null;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
export declare const FIXTURE_CORPUS: ({
|
|
164
|
+
_id: string;
|
|
165
|
+
name: string;
|
|
166
|
+
typeId: "bbbbbbbbbbbbbbbbbbbbbb01";
|
|
167
|
+
typePath: string;
|
|
168
|
+
fieldValues: ({
|
|
169
|
+
_id: "aaaaaaaaaaaaaaaaaaaaaa01";
|
|
170
|
+
name: string;
|
|
171
|
+
valueString: string;
|
|
172
|
+
valueDate?: undefined;
|
|
173
|
+
} | {
|
|
174
|
+
_id: "aaaaaaaaaaaaaaaaaaaaaa03";
|
|
175
|
+
name: string;
|
|
176
|
+
valueString: string;
|
|
177
|
+
valueDate?: undefined;
|
|
178
|
+
} | {
|
|
179
|
+
_id: "aaaaaaaaaaaaaaaaaaaaaa04";
|
|
180
|
+
name: string;
|
|
181
|
+
valueDate: number;
|
|
182
|
+
valueString?: undefined;
|
|
183
|
+
})[];
|
|
184
|
+
state: {
|
|
185
|
+
locationName: string;
|
|
186
|
+
locationStatus: string;
|
|
187
|
+
lastSeen: number;
|
|
188
|
+
supportsWith: boolean;
|
|
189
|
+
locationWithId: string;
|
|
190
|
+
};
|
|
191
|
+
readiness: {
|
|
192
|
+
ready: number;
|
|
193
|
+
readyIssues: {
|
|
194
|
+
reason: string;
|
|
195
|
+
}[];
|
|
196
|
+
};
|
|
197
|
+
tagIds: string[];
|
|
198
|
+
labels: {
|
|
199
|
+
name: string;
|
|
200
|
+
}[];
|
|
201
|
+
manifestIds: string[];
|
|
202
|
+
hasManifest: boolean;
|
|
203
|
+
lastUpdated: number;
|
|
204
|
+
lastChanged: number;
|
|
205
|
+
groupMember: boolean;
|
|
206
|
+
} | {
|
|
207
|
+
_id: string;
|
|
208
|
+
name: string;
|
|
209
|
+
typeId: "bbbbbbbbbbbbbbbbbbbbbb02";
|
|
210
|
+
typePath: string;
|
|
211
|
+
fieldValues: never[];
|
|
212
|
+
tagIds: never[];
|
|
213
|
+
} | {
|
|
214
|
+
_id: string;
|
|
215
|
+
name: string;
|
|
216
|
+
typeId: "bbbbbbbbbbbbbbbbbbbbbb03";
|
|
217
|
+
typePath: string;
|
|
218
|
+
fieldValues: ({
|
|
219
|
+
_id: "aaaaaaaaaaaaaaaaaaaaaa03";
|
|
220
|
+
name: string;
|
|
221
|
+
valueString: string;
|
|
222
|
+
valueBoolean?: undefined;
|
|
223
|
+
} | {
|
|
224
|
+
_id: "aaaaaaaaaaaaaaaaaaaaaa05";
|
|
225
|
+
name: string;
|
|
226
|
+
valueBoolean: boolean;
|
|
227
|
+
valueString?: undefined;
|
|
228
|
+
})[];
|
|
229
|
+
state: {
|
|
230
|
+
locationName: string;
|
|
231
|
+
locationStatus: string;
|
|
232
|
+
};
|
|
233
|
+
readiness: {
|
|
234
|
+
ready: number;
|
|
235
|
+
readyIssues: never[];
|
|
236
|
+
};
|
|
237
|
+
tagIds: never[];
|
|
238
|
+
lastUpdated: number;
|
|
239
|
+
typeKit: boolean;
|
|
240
|
+
hasManifest: boolean;
|
|
241
|
+
groupSatisfiesManifest: number;
|
|
242
|
+
} | {
|
|
243
|
+
_id: string;
|
|
244
|
+
name: string;
|
|
245
|
+
typeId: "bbbbbbbbbbbbbbbbbbbbbb03";
|
|
246
|
+
typePath: string;
|
|
247
|
+
fieldValues: never[];
|
|
248
|
+
tagIds: never[];
|
|
249
|
+
typeKit: boolean;
|
|
250
|
+
groupSatisfiesManifest: number;
|
|
251
|
+
} | {
|
|
252
|
+
_id: string;
|
|
253
|
+
name: string;
|
|
254
|
+
typeId: "bbbbbbbbbbbbbbbbbbbbbb03";
|
|
255
|
+
typePath: string;
|
|
256
|
+
fieldValues: {
|
|
257
|
+
_id: "aaaaaaaaaaaaaaaaaaaaaa03";
|
|
258
|
+
name: string;
|
|
259
|
+
valueString: null;
|
|
260
|
+
}[];
|
|
261
|
+
state: {
|
|
262
|
+
locationWithId: null;
|
|
263
|
+
locationName: string;
|
|
264
|
+
};
|
|
265
|
+
tagIds: null;
|
|
266
|
+
lastUpdated: null;
|
|
267
|
+
telemetry: {
|
|
268
|
+
battery: null;
|
|
269
|
+
};
|
|
270
|
+
})[];
|
|
271
|
+
/** Frozen clock for the corpus — 2026-07-27 09:00 in Brisbane. */
|
|
272
|
+
export declare const FIXTURE_NOW: Date;
|
|
273
|
+
export declare const FIXTURE_TZ = "Australia/Brisbane";
|
|
274
|
+
export declare const FIXTURE_OPTS: {
|
|
275
|
+
now: Date;
|
|
276
|
+
timeZone: string;
|
|
277
|
+
};
|