@spotto/contract 1.0.70-alpha.26 → 1.0.70-alpha.28
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/assets/[id]/get.d.ts +2 -1
- package/dist/semantic-queries/shared.d.ts +33 -3
- package/dist/semantic-queries/shared.js.map +1 -1
- package/dist/snapshots/[id]/get.d.ts +37 -9
- package/dist/snapshots/[id]/get.js.map +1 -1
- package/dist/users/home-layout/shared.d.ts +31 -8
- package/package.json +2 -2
|
@@ -74,12 +74,13 @@ export interface GetAssetResponse {
|
|
|
74
74
|
homeLocationPath?: string;
|
|
75
75
|
readers?: IEmbeddedEntity[];
|
|
76
76
|
manifestIds?: string[];
|
|
77
|
+
hasManifest?: boolean;
|
|
77
78
|
typeKit?: boolean;
|
|
78
79
|
groupParentId?: string;
|
|
79
80
|
groupAncestors?: string[];
|
|
80
81
|
groupMember?: boolean;
|
|
81
82
|
groupChildCount?: number;
|
|
82
|
-
|
|
83
|
+
groupSatisfiesManifest?: 0 | 1 | 2;
|
|
83
84
|
readiness?: IReadiness;
|
|
84
85
|
timeSensitive?: boolean;
|
|
85
86
|
}
|
|
@@ -239,14 +239,28 @@ export interface SemanticReadinessCondition {
|
|
|
239
239
|
* `parentAssetId` shares the withAsset producer gap above — parked the same
|
|
240
240
|
* way; the AI declines "members of kit <name>" until the incoming solution.
|
|
241
241
|
*/
|
|
242
|
+
/** The four manifest-check states a kit can be in (`groupSatisfiesManifest`):
|
|
243
|
+
* satisfied (0) — the most recent manifest check passed; needsRecheck (1) — a
|
|
244
|
+
* later membership change invalidated that pass; notSatisfied (2) — the most
|
|
245
|
+
* recent check failed; neverChecked (absent) — no check has ever stamped the
|
|
246
|
+
* kit. */
|
|
247
|
+
export declare type SemanticManifestState = 'satisfied' | 'needsRecheck' | 'notSatisfied' | 'neverChecked';
|
|
242
248
|
export interface SemanticKitCondition {
|
|
243
249
|
type: 'kit';
|
|
244
250
|
/** The asset is itself a kit. */
|
|
245
251
|
isKit?: boolean;
|
|
246
252
|
/** The asset belongs to a kit. */
|
|
247
253
|
isMember?: boolean;
|
|
248
|
-
/**
|
|
254
|
+
/**
|
|
255
|
+
* LEGACY two-state form of `manifest`, kept compiling forever for saved
|
|
256
|
+
* queries: true → manifest satisfied (0), false → manifest not satisfied
|
|
257
|
+
* (2). New queries use `manifest`, which can also say needsRecheck and
|
|
258
|
+
* neverChecked.
|
|
259
|
+
*/
|
|
249
260
|
satisfied?: boolean;
|
|
261
|
+
/** The kit's manifest-check status (see `SemanticManifestState`).
|
|
262
|
+
* `neverChecked` self-scopes to kits — it never matches ordinary assets. */
|
|
263
|
+
manifest?: SemanticManifestState;
|
|
250
264
|
/** Members of one specific kit. */
|
|
251
265
|
parentAssetId?: string;
|
|
252
266
|
}
|
|
@@ -553,8 +567,24 @@ export declare type SemanticSnapshotAssetTypeCondition = SemanticAssetTypeCondit
|
|
|
553
567
|
* path and has no id to pair with it.
|
|
554
568
|
*/
|
|
555
569
|
export declare type SemanticSnapshotLocationCondition = SemanticEventLocationCondition;
|
|
556
|
-
/**
|
|
557
|
-
|
|
570
|
+
/**
|
|
571
|
+
* The manifest the operation ran against, and/or how the check came out.
|
|
572
|
+
* Forked from the location alias the day it grew `satisfied` — extending the
|
|
573
|
+
* alias in place would have leaked the property into the location vocabulary.
|
|
574
|
+
*
|
|
575
|
+
* `satisfied` reads the snapshot's frozen `c_satisfiesManifest` annotation by
|
|
576
|
+
* exact match: `true` = the check stamped satisfied, `false` = it stamped not
|
|
577
|
+
* satisfied. Snapshots that never stamped a verdict (stocktakes, location
|
|
578
|
+
* checks, records predating the annotation) carry no flag and match NEITHER
|
|
579
|
+
* polarity — never `$ne`. At least one of the two keys must be present.
|
|
580
|
+
*/
|
|
581
|
+
export interface SemanticSnapshotManifestCondition {
|
|
582
|
+
type: 'manifest';
|
|
583
|
+
/** Ids point; paths match. Optional since `satisfied` can stand alone. */
|
|
584
|
+
manifestId?: string;
|
|
585
|
+
/** Exact-match against the frozen check verdict. */
|
|
586
|
+
satisfied?: boolean;
|
|
587
|
+
}
|
|
558
588
|
/** WHO ran it, by name — resolved against the org's users, as events do. */
|
|
559
589
|
export declare type SemanticSnapshotUserCondition = SemanticEventUserCondition;
|
|
560
590
|
/** WHICH READER took it, by name — resolved the same way. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/semantic-queries/shared.ts"],"names":[],"mappings":";;;AASA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,6EAA6E;AAE7E;;;;GAIG;AACU,QAAA,wBAAwB,GAAG;IACtC,OAAO;IACP,UAAU;IACV,OAAO;IACP,QAAQ;IACR,UAAU;IACV,UAAU;CACF,CAAA;AAGV;;;;;;GAMG;AACU,QAAA,kBAAkB,GAAG,CAAC,OAAO,EAAE,WAAW,CAAU,CAAA;AAGpD,QAAA,yBAAyB,GAAG,CAAC,SAAS,EAAE,cAAc,CAAU,CAAA;AAG7E,6EAA6E;AAEhE,QAAA,yBAAyB,GAAG;IACvC,KAAK;IACL,MAAM;IACN,OAAO;IACP,SAAS;IACT,MAAM;CACE,CAAA;AAGG,QAAA,6BAA6B,GAAG,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,CAAU,CAAA;AAwC9E,6EAA6E;AAEhE,QAAA,sBAAsB,GAAG;IACpC,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,KAAK;IACL,UAAU;IACV,QAAQ;IACR,WAAW;CACH,CAAA;AAGG,QAAA,0BAA0B,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAU,CAAA;AAIhE,QAAA,2BAA2B,GAAG;IACzC,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,KAAK;CACG,CAAA;AAIG,QAAA,oBAAoB,GAAG,CAAC,KAAK,EAAE,KAAK,CAAU,CAAA;AA+H9C,QAA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IAClC,QAAQ,EAAE,sCAA8B;IACxC,KAAK,EAAE,mCAA2B;IAClC,QAAQ,EAAE,sCAA8B;IACxC,MAAM,EAAE,oCAA4B;IACpC,QAAQ,EAAE,EAAE;CACb,CAAA;AAED;;;;;;;GAOG;AACU,QAAA,sBAAsB,GAAG;IACpC,GAAG,IAAI,GAAG,CAAS;QACjB,GAAG,mCAA2B;QAC9B,GAAG,sCAA8B;QACjC,GAAG,mCAA2B;QAC9B,GAAG,sCAA8B;QACjC,GAAG,oCAA4B;KAChC,CAAC;CAOH,CAAA;AAGD;;;;;;GAMG;AACU,QAAA,qBAAqB,GAAG;IACnC,aAAa,EAAE,EAAE;IACjB,QAAQ,EAAE,CAAC;CACH,CAAA;AAkCV,6EAA6E;AAE7E,wDAAwD;AAC3C,QAAA,sBAAsB,GAAG,CAAC,CAAA;AAyDvC,6EAA6E;AAE7E,gEAAgE;AACnD,QAAA,sBAAsB,GAAG,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,CAAU,CAAA;AAyCvE;;;;;;;;;GASG;AACH,MAAM,6BAA6B,GAAyC;IAC1E,IAAI,EAAE,IAAI;IACV,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,IAAI;IACf,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,IAAI;IACX,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,IAAI;CAChB,CAAA;AACY,QAAA,uBAAuB,GAAG,MAAM,CAAC,IAAI,CAChD,6BAA6B,CACF,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IEmbeddedEntity, IEntityMeta } from '../../shared';
|
|
1
|
+
import { IEmbeddedEntity, IEntityMeta, IReadiness } from '../../shared';
|
|
2
2
|
import { GetManifestResponse, IManifestAsset, IManifestType } from '../../manifests';
|
|
3
3
|
import { Point } from 'geojson';
|
|
4
4
|
import { GetTypeResponse, IFieldValue } from '../../types';
|
|
@@ -42,12 +42,20 @@ export interface ISnapshotDetectedAsset extends ISnapshotType {
|
|
|
42
42
|
* location or Dispatch check honouring `updateGroupMembership` severs it
|
|
43
43
|
* from its parent kit (it becomes a root asset). */
|
|
44
44
|
unGroup?: boolean;
|
|
45
|
+
/** The asset's readiness as it stood on the device at check time — frozen
|
|
46
|
+
* testimony from the submitting client. Absent on snapshots recorded
|
|
47
|
+
* before clients embedded readiness. */
|
|
48
|
+
readiness?: IReadiness;
|
|
45
49
|
}
|
|
46
50
|
export interface ISnapshotUndetectedAsset extends ISnapshotType {
|
|
47
51
|
assetId: string;
|
|
48
52
|
assetName?: string;
|
|
49
53
|
section?: string;
|
|
50
54
|
fieldValues?: IFieldValue[];
|
|
55
|
+
/** The asset's readiness as it stood on the device at check time — frozen
|
|
56
|
+
* testimony from the submitting client. Absent on snapshots recorded
|
|
57
|
+
* before clients embedded readiness. */
|
|
58
|
+
readiness?: IReadiness;
|
|
51
59
|
}
|
|
52
60
|
export interface ISnapshotSightedType extends ISnapshotType {
|
|
53
61
|
section?: string;
|
|
@@ -74,12 +82,10 @@ export interface ISnapshotSightedAsset extends ISnapshotType {
|
|
|
74
82
|
* location or Dispatch check honouring `updateGroupMembership` severs it
|
|
75
83
|
* from its parent kit (it becomes a root asset). */
|
|
76
84
|
unGroup?: boolean;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
section?: string;
|
|
82
|
-
fieldValues?: IFieldValue[];
|
|
85
|
+
/** The asset's readiness as it stood on the device at check time — frozen
|
|
86
|
+
* testimony from the submitting client. Absent on snapshots recorded
|
|
87
|
+
* before clients embedded readiness. */
|
|
88
|
+
readiness?: IReadiness;
|
|
83
89
|
}
|
|
84
90
|
export interface ISnapshotComputed {
|
|
85
91
|
missingTotal: number;
|
|
@@ -172,7 +178,13 @@ export interface GetSnapshotResponse {
|
|
|
172
178
|
location?: IEmbeddedEntity & {
|
|
173
179
|
path?: string;
|
|
174
180
|
};
|
|
175
|
-
asset?: IEmbeddedEntity & ISnapshotType
|
|
181
|
+
asset?: IEmbeddedEntity & ISnapshotType & {
|
|
182
|
+
/** The target asset's readiness as the server computed it AFTER
|
|
183
|
+
* processing this snapshot (post membership-sync and manifest-status
|
|
184
|
+
* recompute) — a frozen server annotation, never accepted from
|
|
185
|
+
* clients. */
|
|
186
|
+
c_readiness?: IReadiness;
|
|
187
|
+
};
|
|
176
188
|
manifest?: GetManifestResponseExtended;
|
|
177
189
|
detectedAssets?: ISnapshotDetectedAsset[];
|
|
178
190
|
undetectedAssets?: ISnapshotUndetectedAsset[];
|
|
@@ -191,6 +203,12 @@ export interface GetSnapshotResponse {
|
|
|
191
203
|
updateGroupMembership?: boolean;
|
|
192
204
|
/** What the kit-membership sync did — see `ISnapshotMembershipSync`. */
|
|
193
205
|
membershipSync?: ISnapshotMembershipSync;
|
|
206
|
+
/** The manifest-check verdict this snapshot stamped — three-state: absent
|
|
207
|
+
* means this snapshot never stamped a verdict (it was not a qualifying
|
|
208
|
+
* manifest check); true means it stamped satisfied (0); false means it
|
|
209
|
+
* stamped not satisfied (2). Frozen history: the asset's live status may
|
|
210
|
+
* later change, this flag never does. Server-owned. */
|
|
211
|
+
c_satisfiesManifest?: boolean;
|
|
194
212
|
geolocation?: Point;
|
|
195
213
|
timezone?: string;
|
|
196
214
|
types?: Omit<GetTypeResponse & {
|
|
@@ -211,12 +229,22 @@ export interface GetSnapshotsItem {
|
|
|
211
229
|
location?: IEmbeddedEntity & {
|
|
212
230
|
path?: string;
|
|
213
231
|
};
|
|
214
|
-
asset?: IEmbeddedEntity & ISnapshotType
|
|
232
|
+
asset?: IEmbeddedEntity & ISnapshotType & {
|
|
233
|
+
/** The target asset's readiness as the server computed it AFTER
|
|
234
|
+
* processing this snapshot — see `GetSnapshotResponse['asset']`.
|
|
235
|
+
* Stored on every annotated snapshot; list rows omit it (detail
|
|
236
|
+
* carries it). */
|
|
237
|
+
c_readiness?: IReadiness;
|
|
238
|
+
};
|
|
215
239
|
manifest?: IEmbeddedEntity;
|
|
216
240
|
computed?: ISnapshotComputed;
|
|
217
241
|
fields?: ISnapshotFields;
|
|
218
242
|
submitted?: number;
|
|
219
243
|
created: number;
|
|
244
|
+
/** The manifest-check verdict this snapshot stamped — three-state, see
|
|
245
|
+
* `GetSnapshotResponse['c_satisfiesManifest']`. Present on list rows so
|
|
246
|
+
* the snapshot filters can ask it. */
|
|
247
|
+
c_satisfiesManifest?: boolean;
|
|
220
248
|
geolocation?: Point;
|
|
221
249
|
timezone?: string;
|
|
222
250
|
type: SnapshotTypeEnum;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/snapshots/[id]/get.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/snapshots/[id]/get.ts"],"names":[],"mappings":";;;AAwRA,QAAQ;AACK,QAAA,sBAAsB,GAAwB;IACzD,EAAE,EAAE,OAAO;IACX,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE;QACR,EAAE,EAAE,YAAY;QAChB,IAAI,EAAE,cAAc;KACrB;IACD,QAAQ,EAAE;QACR,YAAY,EAAE,CAAC;QACf,cAAc,EAAE,CAAC;QACjB,YAAY,EAAE,CAAC;QACf,aAAa,EAAE;YACb,KAAK,EAAE,CAAC;YACR,iBAAiB,EAAE,CAAC;YACpB,YAAY,EAAE,CAAC;YACf,YAAY,EAAE,CAAC,EAAE,+EAA+E;YAChG,4GAA4G;SAC7G;QACD,cAAc,EAAE;YACd,KAAK,EAAE,CAAC;YACR,YAAY,EAAE,CAAC;YACf,YAAY,EAAE,CAAC,EAAE,+EAA+E;SACjG;QACD,UAAU,EAAE;YACV,UAAU,EAAE,CAAC;YACb,WAAW,EAAE,CAAC,EAAE,+DAA+D;SAChF;KACF;IACD,IAAI,EAAE,WAAW;CAClB,CAAA"}
|
|
@@ -24,12 +24,15 @@
|
|
|
24
24
|
* - `recent-assets` / `recent-locations` — most-recently-updated entities.
|
|
25
25
|
* - `needs-attention` — assets flagged not-ready / partially-ready.
|
|
26
26
|
* - `kit-spotlight` — kit readiness summary.
|
|
27
|
-
* - `hero` — the fleet-readiness hero (overview + inline needs-attention legend)
|
|
27
|
+
* - `hero` — the fleet-readiness hero (overview + inline needs-attention legend),
|
|
28
|
+
* carrying its own mark and label so several can share a Home.
|
|
28
29
|
* - `heading` — a text heading to label a run of widgets (heading text lives in `config`).
|
|
29
30
|
*
|
|
30
|
-
* `
|
|
31
|
-
*
|
|
32
|
-
*
|
|
31
|
+
* `heading` is a full-width structural widget: the client renders it spanning the
|
|
32
|
+
* whole row at every breakpoint. `hero` was one too until it learned to render at
|
|
33
|
+
* a quarter, a half or a full row; its width is now the user's, like any other
|
|
34
|
+
* widget's. As with all widgets, width is expressed through `gridPos.w`, not
|
|
35
|
+
* enforced by the API.
|
|
33
36
|
*/
|
|
34
37
|
export declare type HomeWidgetType = 'tile-link' | 'summary-list' | 'recent-activity' | 'recent-assets' | 'recent-locations' | 'needs-attention' | 'kit-spotlight' | 'hero' | 'heading';
|
|
35
38
|
/**
|
|
@@ -56,14 +59,34 @@ export interface SummaryListWidgetConfig {
|
|
|
56
59
|
export interface HeadingWidgetConfig {
|
|
57
60
|
text: string;
|
|
58
61
|
}
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
|
|
62
|
+
/**
|
|
63
|
+
* How a hero card presents itself. Both keys are optional: with neither, the
|
|
64
|
+
* client renders its default mark and derives the label from the data source
|
|
65
|
+
* (the saved view's name, or the whole account). They exist because several
|
|
66
|
+
* heroes now share one Home — over different saved views, at different widths —
|
|
67
|
+
* and identical cards would be indistinguishable at a glance.
|
|
68
|
+
*/
|
|
69
|
+
export interface HeroWidgetPresentation {
|
|
70
|
+
/**
|
|
71
|
+
* Icon NAME from the client's curated set (kebab-case, e.g. `ambulance`) —
|
|
72
|
+
* never a URL or markup. The client resolves the name to a component and
|
|
73
|
+
* falls back to its default mark on one it doesn't recognise, which is why
|
|
74
|
+
* the API bounds the string rather than enumerating the set: adding an icon
|
|
75
|
+
* is then a client release, not an API deploy.
|
|
76
|
+
*/
|
|
77
|
+
icon?: string;
|
|
78
|
+
/** Label override. Empty or absent means the client derives it. */
|
|
79
|
+
title?: string;
|
|
80
|
+
}
|
|
81
|
+
/** The `hero`'s data source — the whole account's assets, or one saved view's
|
|
82
|
+
* matches — plus how the card presents itself. The source is always present on
|
|
83
|
+
* a stored hero (the kind shipped with it); the presentation keys are not. */
|
|
84
|
+
export declare type HeroWidgetConfig = HeroWidgetPresentation & ({
|
|
62
85
|
source: 'account';
|
|
63
86
|
} | {
|
|
64
87
|
source: 'view';
|
|
65
88
|
viewId: string;
|
|
66
|
-
};
|
|
89
|
+
});
|
|
67
90
|
/**
|
|
68
91
|
* A widget's cell on the Home grid: top-left position (`x`/`y`) and size
|
|
69
92
|
* (`w`/`h`), in grid units. The grid is 4 columns wide, so `x + w <= 4`, and
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spotto/contract",
|
|
3
3
|
"license": "ISC",
|
|
4
|
-
"version": "1.0.70-alpha.
|
|
4
|
+
"version": "1.0.70-alpha.28",
|
|
5
5
|
"description": "Spotto's API Contract type definitions",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"files": [
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"@types/geojson": "^7946.0.11",
|
|
19
19
|
"shx": "^0.3.4"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "9f79dcb2458b97771f2f53590dd2469bb3317c31"
|
|
22
22
|
}
|