@spotto/contract 1.0.70-alpha.23 → 1.0.70-alpha.25
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/location/request.d.ts +10 -1
- package/dist/events/constants.d.ts +14 -0
- package/dist/events/constants.js +19 -1
- package/dist/events/constants.js.map +1 -1
- package/dist/events/get/query.d.ts +13 -0
- package/dist/readers/get/query.d.ts +12 -0
- package/dist/semantic-queries/shared.d.ts +205 -8
- package/dist/semantic-queries/shared.js +58 -6
- package/dist/semantic-queries/shared.js.map +1 -1
- package/dist/snapshots/[id]/get.d.ts +97 -2
- package/dist/snapshots/[id]/get.js.map +1 -1
- package/dist/snapshots/get/query.d.ts +39 -0
- package/dist/snapshots/get/query.js +23 -1
- package/dist/snapshots/get/query.js.map +1 -1
- package/dist/snapshots/post/request.d.ts +21 -0
- package/dist/snapshots/post/request.js.map +1 -1
- package/package.json +2 -2
|
@@ -6,7 +6,16 @@ export interface UpdateAssetsLocationRequest {
|
|
|
6
6
|
lon?: number;
|
|
7
7
|
readerId?: string;
|
|
8
8
|
timestamp?: number;
|
|
9
|
-
|
|
9
|
+
/** The asset these assets are now "with" (the durable carrier pointer).
|
|
10
|
+
* An explicit `null` clears an existing with-link — sent when an asset
|
|
11
|
+
* leaves its group (regrouping plan §5 layer 1); advisory until Slate
|
|
12
|
+
* honours the clear. */
|
|
13
|
+
withAssetId?: string | null;
|
|
14
|
+
/** Subset of `ids` that were located by inference (kit-subtree expansion)
|
|
15
|
+
* rather than physically read — these should be located WITHOUT bumping
|
|
16
|
+
* `lastSeen` (regrouping plan §5 layer 2). Advisory until Slate honours
|
|
17
|
+
* the distinction. */
|
|
18
|
+
inferredAssetIds?: string[];
|
|
10
19
|
dispatchLocationId?: string;
|
|
11
20
|
dispatchWithAssetId?: string;
|
|
12
21
|
dispatchData?: Record<string, unknown>;
|
|
@@ -8,3 +8,17 @@ export declare type FormEventType = 'FormSubmitted' | 'FormSubmissionVoided';
|
|
|
8
8
|
export declare type SlateEventType = 'ReaderArrived' | 'ReaderExited' | 'Arrived' | 'Moved' | 'Exited' | 'ReaderOnline' | 'ReaderOffline' | 'AssetDispatch';
|
|
9
9
|
export declare type EventType = SlateEventType | AssetCrudEventType | LocationCrudEventType | ReaderCrudEventType | SnapshotCrudEventType | FormEventType | 'UserSearch' | 'WorkflowActionExecuted';
|
|
10
10
|
export declare const EVENT_TYPES: EventType[];
|
|
11
|
+
/**
|
|
12
|
+
* The asset CRUD events as a VALUE — the only events whose `thing` is a full
|
|
13
|
+
* asset document (`IAssetCrudSchema`) rather than a bare reference.
|
|
14
|
+
*
|
|
15
|
+
* Exported because the semantic layer scopes `assetType` on activity to exactly
|
|
16
|
+
* these: every movement event embeds a reduced `thing` with no `typePath`, so
|
|
17
|
+
* "movements of forklifts" would match nothing while "forklifts created"
|
|
18
|
+
* worked — right half the time and silent about which half. Compiler,
|
|
19
|
+
* evaluator, AI preamble and the client's chip all read THIS list; four hand
|
|
20
|
+
* written copies would drift the day a fourth asset CRUD event exists.
|
|
21
|
+
*
|
|
22
|
+
* Typed as `AssetCrudEventType[]` so the list cannot diverge from the union.
|
|
23
|
+
*/
|
|
24
|
+
export declare const ASSET_CRUD_EVENT_TYPES: AssetCrudEventType[];
|
package/dist/events/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EVENT_TYPES = exports.EVENT_COUNT_BREAKDOWN = void 0;
|
|
3
|
+
exports.ASSET_CRUD_EVENT_TYPES = exports.EVENT_TYPES = exports.EVENT_COUNT_BREAKDOWN = void 0;
|
|
4
4
|
exports.EVENT_COUNT_BREAKDOWN = [
|
|
5
5
|
'year',
|
|
6
6
|
'week',
|
|
@@ -33,4 +33,22 @@ exports.EVENT_TYPES = [
|
|
|
33
33
|
'UserSearch',
|
|
34
34
|
'WorkflowActionExecuted',
|
|
35
35
|
];
|
|
36
|
+
/**
|
|
37
|
+
* The asset CRUD events as a VALUE — the only events whose `thing` is a full
|
|
38
|
+
* asset document (`IAssetCrudSchema`) rather than a bare reference.
|
|
39
|
+
*
|
|
40
|
+
* Exported because the semantic layer scopes `assetType` on activity to exactly
|
|
41
|
+
* these: every movement event embeds a reduced `thing` with no `typePath`, so
|
|
42
|
+
* "movements of forklifts" would match nothing while "forklifts created"
|
|
43
|
+
* worked — right half the time and silent about which half. Compiler,
|
|
44
|
+
* evaluator, AI preamble and the client's chip all read THIS list; four hand
|
|
45
|
+
* written copies would drift the day a fourth asset CRUD event exists.
|
|
46
|
+
*
|
|
47
|
+
* Typed as `AssetCrudEventType[]` so the list cannot diverge from the union.
|
|
48
|
+
*/
|
|
49
|
+
exports.ASSET_CRUD_EVENT_TYPES = [
|
|
50
|
+
'AssetCreated',
|
|
51
|
+
'AssetUpdated',
|
|
52
|
+
'AssetDeleted',
|
|
53
|
+
];
|
|
36
54
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/events/constants.ts"],"names":[],"mappings":";;;AACa,QAAA,qBAAqB,GAA0B;IAC1D,MAAM;IACN,MAAM;IACN,OAAO;IACP,KAAK;IACL,MAAM;CACP,CAAA;AAyCY,QAAA,WAAW,GAAgB;IACtC,eAAe;IACf,cAAc;IACd,SAAS;IACT,OAAO;IACP,QAAQ;IACR,cAAc;IACd,eAAe;IACf,eAAe;IACf,cAAc;IACd,cAAc;IACd,cAAc;IACd,iBAAiB;IACjB,iBAAiB;IACjB,iBAAiB;IACjB,eAAe;IACf,eAAe;IACf,eAAe;IACf,iBAAiB;IACjB,iBAAiB;IACjB,eAAe;IACf,sBAAsB;IACtB,YAAY;IACZ,wBAAwB;CACzB,CAAA"}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/events/constants.ts"],"names":[],"mappings":";;;AACa,QAAA,qBAAqB,GAA0B;IAC1D,MAAM;IACN,MAAM;IACN,OAAO;IACP,KAAK;IACL,MAAM;CACP,CAAA;AAyCY,QAAA,WAAW,GAAgB;IACtC,eAAe;IACf,cAAc;IACd,SAAS;IACT,OAAO;IACP,QAAQ;IACR,cAAc;IACd,eAAe;IACf,eAAe;IACf,cAAc;IACd,cAAc;IACd,cAAc;IACd,iBAAiB;IACjB,iBAAiB;IACjB,iBAAiB;IACjB,eAAe;IACf,eAAe;IACf,eAAe;IACf,iBAAiB;IACjB,iBAAiB;IACjB,eAAe;IACf,sBAAsB;IACtB,YAAY;IACZ,wBAAwB;CACzB,CAAA;AAED;;;;;;;;;;;;GAYG;AACU,QAAA,sBAAsB,GAAyB;IAC1D,cAAc;IACd,cAAc;IACd,cAAc;CACf,CAAA"}
|
|
@@ -22,6 +22,19 @@ export interface GetEventsQuery extends EventFilters {
|
|
|
22
22
|
* accepting it and silently ignoring it.
|
|
23
23
|
*/
|
|
24
24
|
semanticQueryId?: string;
|
|
25
|
+
/**
|
|
26
|
+
* A semantic query serialised as JSON, run WITHOUT being stored.
|
|
27
|
+
*
|
|
28
|
+
* Activity is the one entity with no offline corpus, so unlike assets and
|
|
29
|
+
* locations its filters must reach the server. Sending the conditions rather
|
|
30
|
+
* than a reference is what lets an AI answer and a hand-built picker be the
|
|
31
|
+
* same thing: a chip removal edits the query in the URL and re-runs it, with
|
|
32
|
+
* no draft minted per interaction and no link that expires when a 24h draft
|
|
33
|
+
* does.
|
|
34
|
+
*
|
|
35
|
+
* Mutually exclusive with `semanticQueryId` — two queries is not a question.
|
|
36
|
+
*/
|
|
37
|
+
semanticQuery?: string;
|
|
25
38
|
/** IANA zone for the query's relative dates; the record's own wins if set. */
|
|
26
39
|
timezone?: string;
|
|
27
40
|
}
|
|
@@ -21,4 +21,16 @@ export interface GetReadersQuery extends ReaderFilters {
|
|
|
21
21
|
sort?: SearchableSortFields;
|
|
22
22
|
sortOrder?: SortOrders;
|
|
23
23
|
embed?: ReaderEmbedField[];
|
|
24
|
+
/**
|
|
25
|
+
* Run a stored semantic query instead of the filters above. The stored query
|
|
26
|
+
* is the WHOLE filter — combining it with any filter parameter is rejected,
|
|
27
|
+
* never merged.
|
|
28
|
+
*
|
|
29
|
+
* No serialised counterpart, as on snapshots and unlike `GET /events`:
|
|
30
|
+
* readers are cached whole and the list filters them in the browser, so this
|
|
31
|
+
* path serves saved queries and widgets rather than every keystroke.
|
|
32
|
+
*/
|
|
33
|
+
semanticQueryId?: string;
|
|
34
|
+
/** IANA zone for the query's relative dates; the record's own wins if set. */
|
|
35
|
+
timezone?: string;
|
|
24
36
|
}
|
|
@@ -3,6 +3,8 @@ import { AssetSortField } from '../assets/get/query';
|
|
|
3
3
|
import { LocationSortField } from '../locations/get/query';
|
|
4
4
|
import { LocationStatus, LocationType } from '../locations/constants';
|
|
5
5
|
import { EventType } from '../events/constants';
|
|
6
|
+
import { DeviceType, ReaderType } from '../readers/constants';
|
|
7
|
+
import { SnapshotSortField, SnapshotTypeEnum } from '../snapshots/get/query';
|
|
6
8
|
import { FieldDataType } from '../fields/constants';
|
|
7
9
|
/**
|
|
8
10
|
* SEMANTIC QUERIES — the portable query language.
|
|
@@ -31,9 +33,9 @@ import { FieldDataType } from '../fields/constants';
|
|
|
31
33
|
* TECHNICAL_DECISIONS.md) and the semantic-query specification errata.
|
|
32
34
|
*/
|
|
33
35
|
/**
|
|
34
|
-
* What a semantic query targets.
|
|
35
|
-
* the
|
|
36
|
-
* retrofitting
|
|
36
|
+
* What a semantic query targets. All but `manifest` execute; it is recorded so
|
|
37
|
+
* the classifier can name what it is declining, and so a stored query would
|
|
38
|
+
* never need retrofitting if it ever learns to speak.
|
|
37
39
|
*/
|
|
38
40
|
export declare const semanticQueryEntityTypes: readonly ["asset", "location", "event", "reader", "snapshot", "manifest"];
|
|
39
41
|
export declare type SemanticQueryEntityType = (typeof semanticQueryEntityTypes)[number];
|
|
@@ -441,6 +443,31 @@ export interface SemanticEventActionCondition {
|
|
|
441
443
|
type: 'action';
|
|
442
444
|
name: string;
|
|
443
445
|
}
|
|
446
|
+
/**
|
|
447
|
+
* The TYPE of the asset an event was about, by pipe-delimited path.
|
|
448
|
+
*
|
|
449
|
+
* Same word, shape and meaning as the asset vocabulary's `assetType` — hence
|
|
450
|
+
* the alias, exactly as the snapshot vocabulary does it.
|
|
451
|
+
*
|
|
452
|
+
* SCOPED TO THE ASSET CRUD EVENTS, and that is the whole design. It reads
|
|
453
|
+
* `thing.typePath`, which only `IAssetCrudSchema` events carry; every movement
|
|
454
|
+
* event embeds a reduced `thing` with no type at all. So the compiler and the
|
|
455
|
+
* evaluator both AND `ASSET_CRUD_EVENT_TYPES` onto this condition — at the
|
|
456
|
+
* LEAF, not across the query, so an or-group can still ask for movements in
|
|
457
|
+
* its other branch.
|
|
458
|
+
*
|
|
459
|
+
* Two things keep the narrowing honest rather than hidden, which is what kept
|
|
460
|
+
* this word out of the vocabulary until now:
|
|
461
|
+
* - pairing it with an `eventType` that names no CRUD event is REFUSED by
|
|
462
|
+
* validation, because that conjunction can only ever match nothing, and a
|
|
463
|
+
* silent empty feed is the failure this language exists to prevent;
|
|
464
|
+
* - the client states the scope on the chip ("creations, updates & deletions")
|
|
465
|
+
* rather than implying a filter over all activity.
|
|
466
|
+
*
|
|
467
|
+
* The wider version returns if movement events ever embed the type — that is a
|
|
468
|
+
* write-path change plus a backfill, and nothing here blocks it.
|
|
469
|
+
*/
|
|
470
|
+
export declare type SemanticEventAssetTypeCondition = SemanticAssetTypeCondition;
|
|
444
471
|
/**
|
|
445
472
|
* The EVENT vocabulary.
|
|
446
473
|
*
|
|
@@ -452,8 +479,178 @@ export interface SemanticEventActionCondition {
|
|
|
452
479
|
* name, because an event has exactly ONE time and calling it `createdDate`
|
|
453
480
|
* would invite the reading that events have several dates the way assets do.
|
|
454
481
|
*/
|
|
455
|
-
export declare const semanticEventConditionTypes: readonly ["and", "or", "occurred", "eventType", "location", "reader", "user", "action"];
|
|
456
|
-
export declare type SemanticEventCondition = SemanticAndCondition | SemanticOrCondition | SemanticEventOccurredCondition | SemanticEventTypeCondition | SemanticEventLocationCondition | SemanticEventReaderCondition | SemanticEventUserCondition | SemanticEventActionCondition;
|
|
482
|
+
export declare const semanticEventConditionTypes: readonly ["and", "or", "occurred", "eventType", "assetType", "location", "reader", "user", "action"];
|
|
483
|
+
export declare type SemanticEventCondition = SemanticAndCondition | SemanticOrCondition | SemanticEventOccurredCondition | SemanticEventTypeCondition | SemanticEventAssetTypeCondition | SemanticEventLocationCondition | SemanticEventReaderCondition | SemanticEventUserCondition | SemanticEventActionCondition;
|
|
484
|
+
/**
|
|
485
|
+
* WHEN the snapshot happened.
|
|
486
|
+
*
|
|
487
|
+
* Compiles to `submitted`, NOT `created` — and that is a deliberate departure
|
|
488
|
+
* from the prototype, which used `created`. The platform's own time filter
|
|
489
|
+
* (`timeFrom`/`timeTo` on `GET /snapshots`) bounds `submitted`, so compiling
|
|
490
|
+
* to `created` would mean the Date chip and an `occurred` condition disagreed
|
|
491
|
+
* about "snapshots last week" while both looked right.
|
|
492
|
+
*
|
|
493
|
+
* The cost, stated because it is silent: `submitted` is optional, so a
|
|
494
|
+
* snapshot that was never submitted matches NO `occurred` bound. That is
|
|
495
|
+
* exactly how the existing Date chip already behaves — this condition inherits
|
|
496
|
+
* the gap rather than introducing it. Sorting still offers both fields
|
|
497
|
+
* (`snapshotSortFields`), because sorting cannot hide a row.
|
|
498
|
+
*/
|
|
499
|
+
export declare type SemanticSnapshotOccurredCondition = SemanticEventOccurredCondition;
|
|
500
|
+
/**
|
|
501
|
+
* WHICH KIND of field operation.
|
|
502
|
+
*
|
|
503
|
+
* Not a plain equality. `type` was added after the fact, so a legacy snapshot
|
|
504
|
+
* has none and is classified by whether it carries a manifest: no manifest
|
|
505
|
+
* means Stocktake, a manifest means Inventory. Dispatch always carries an
|
|
506
|
+
* explicit type. `snapshots/filters.ts` encodes exactly this, and the compiler
|
|
507
|
+
* reproduces it — matching on `type` alone would return zero legacy rows while
|
|
508
|
+
* the chip beside it returned them.
|
|
509
|
+
*/
|
|
510
|
+
export interface SemanticSnapshotTypeCondition {
|
|
511
|
+
type: 'snapshotType';
|
|
512
|
+
values: SnapshotTypeEnum[];
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* The asset the snapshot was taken AGAINST, by id.
|
|
516
|
+
*
|
|
517
|
+
* Named `asset` rather than reusing `withAsset` because the fact differs: an
|
|
518
|
+
* asset's `withAsset` asks what a kit CONTAINS, while this asks what this
|
|
519
|
+
* operation was ABOUT.
|
|
520
|
+
*
|
|
521
|
+
* Read the field before believing the flat filter's own description. A
|
|
522
|
+
* snapshot embeds a single optional `asset` — its SUBJECT — while its contents
|
|
523
|
+
* live in `detectedAssets` / `sightedAssets` / `undetectedAssets`. The
|
|
524
|
+
* `assetIds` filter is documented as "snapshots containing specific assets"
|
|
525
|
+
* and does nothing of the kind: it matches `asset._id`, the subject. This
|
|
526
|
+
* condition means the subject too, so chip and query agree; asking what a
|
|
527
|
+
* snapshot CONTAINED is a different question that neither can answer yet.
|
|
528
|
+
*
|
|
529
|
+
* An id, not a name — the §B1 refusal. The AI cannot produce one (it never
|
|
530
|
+
* sees ids), so this is a chip-built condition, exactly as `withAsset` is.
|
|
531
|
+
*/
|
|
532
|
+
export interface SemanticSnapshotAssetCondition {
|
|
533
|
+
type: 'asset';
|
|
534
|
+
assetId: string;
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* The TYPE of the snapshot's subject asset, by pipe-delimited path.
|
|
538
|
+
*
|
|
539
|
+
* Same word and same meaning as the asset vocabulary's `assetType`, applied to
|
|
540
|
+
* the subject asset (`asset.typePath`). Carries the subject-not-contents
|
|
541
|
+
* caveat above.
|
|
542
|
+
*/
|
|
543
|
+
export declare type SemanticSnapshotAssetTypeCondition = SemanticAssetTypeCondition;
|
|
544
|
+
/**
|
|
545
|
+
* WHERE the snapshot was taken, by pipe-delimited path.
|
|
546
|
+
*
|
|
547
|
+
* `location.path` is absent on legacy snapshots, so a path condition does not
|
|
548
|
+
* see them. That is the same acceptance already recorded for record scope
|
|
549
|
+
* (usergroups S7: "Legacy snapshots pre-date that field and stay hidden to
|
|
550
|
+
* scoped callers"), so the language matches the platform rather than inventing
|
|
551
|
+
* a second answer. The flat filter softens it only when BOTH `locationIds` and
|
|
552
|
+
* `locationPathBeginsWith` are supplied — a semantic condition carries one
|
|
553
|
+
* path and has no id to pair with it.
|
|
554
|
+
*/
|
|
555
|
+
export declare type SemanticSnapshotLocationCondition = SemanticEventLocationCondition;
|
|
556
|
+
/** The manifest the operation ran against. Ids point; paths match. */
|
|
557
|
+
export declare type SemanticSnapshotManifestCondition = SemanticLocationManifestCondition;
|
|
558
|
+
/** WHO ran it, by name — resolved against the org's users, as events do. */
|
|
559
|
+
export declare type SemanticSnapshotUserCondition = SemanticEventUserCondition;
|
|
560
|
+
/** WHICH READER took it, by name — resolved the same way. */
|
|
561
|
+
export declare type SemanticSnapshotReaderCondition = SemanticEventReaderCondition;
|
|
562
|
+
/**
|
|
563
|
+
* The SNAPSHOT vocabulary.
|
|
564
|
+
*
|
|
565
|
+
* Full parity with the prototype's six words, plus `assetType` and `reader`,
|
|
566
|
+
* which its descriptor lacked and the platform's flat filters already support.
|
|
567
|
+
*
|
|
568
|
+
* Nothing is withheld here, and that is worth contrasting with events. The
|
|
569
|
+
* prototype matched `asset`, `user` and `manifest` by case-insensitive regex
|
|
570
|
+
* over a denormalised name — the failure the asset vocabulary refuses, three
|
|
571
|
+
* times over. It survives translation intact only because this entity stores
|
|
572
|
+
* real ids for all three, so the honest form costs no capability. Where it
|
|
573
|
+
* could not (a name for `user`), the event ladder already solved it.
|
|
574
|
+
*
|
|
575
|
+
* Absent for the standing reason: free text. No `nameContains` — search is a
|
|
576
|
+
* view option platform-wide, never a stored condition.
|
|
577
|
+
*/
|
|
578
|
+
export declare const semanticSnapshotConditionTypes: readonly ["and", "or", "occurred", "snapshotType", "asset", "assetType", "location", "manifest", "user", "reader"];
|
|
579
|
+
export declare type SemanticSnapshotCondition = SemanticAndCondition | SemanticOrCondition | SemanticSnapshotOccurredCondition | SemanticSnapshotTypeCondition | SemanticSnapshotAssetCondition | SemanticSnapshotAssetTypeCondition | SemanticSnapshotLocationCondition | SemanticSnapshotManifestCondition | SemanticSnapshotUserCondition | SemanticSnapshotReaderCondition;
|
|
580
|
+
/** The hardware model. A closed platform set (`DEVICE_TYPES`). */
|
|
581
|
+
export interface SemanticReaderDeviceTypeCondition {
|
|
582
|
+
type: 'deviceType';
|
|
583
|
+
values: DeviceType[];
|
|
584
|
+
}
|
|
585
|
+
/**
|
|
586
|
+
* The reader's BEHAVIOUR — fixed in place, roving, or itself moving
|
|
587
|
+
* (`READER_TYPES`). Named `readerType` rather than `type`, which is the wire
|
|
588
|
+
* key every condition already uses for its own discriminator.
|
|
589
|
+
*/
|
|
590
|
+
export interface SemanticReaderTypeCondition {
|
|
591
|
+
type: 'readerType';
|
|
592
|
+
values: ReaderType[];
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* WHERE the reader is installed, by pipe-delimited path.
|
|
596
|
+
*
|
|
597
|
+
* Compiles against `locationName`, which holds the location's FULL
|
|
598
|
+
* pipe-terminated path (`readers/helpers.ts` copies `location.name`, and a
|
|
599
|
+
* location document's `name` is its path). The flat `locationIds` filter
|
|
600
|
+
* answers a different question — these exact locations — and the two coexist,
|
|
601
|
+
* exactly as they do for assets.
|
|
602
|
+
*/
|
|
603
|
+
export declare type SemanticReaderLocationCondition = SemanticEventLocationCondition;
|
|
604
|
+
/**
|
|
605
|
+
* The asset this reader is attached to, by id.
|
|
606
|
+
*
|
|
607
|
+
* An id, never a name. The prototype matched `assetName` with a
|
|
608
|
+
* case-insensitive regex, which is the failure that makes "BC-A1" also return
|
|
609
|
+
* "BC-A10".
|
|
610
|
+
*/
|
|
611
|
+
export interface SemanticReaderAttachedAssetCondition {
|
|
612
|
+
type: 'attachedAsset';
|
|
613
|
+
assetId: string;
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* Whether the reader is online RIGHT NOW.
|
|
617
|
+
*
|
|
618
|
+
* Split from `hasReported`, and this is where we do better than the prototype
|
|
619
|
+
* rather than merely differently. Its `online` condition folded the two
|
|
620
|
+
* together — its own comment concedes why: "`state` is absent on readers in
|
|
621
|
+
* several dev orgs, so 'offline' must also match readers that have never
|
|
622
|
+
* reported". So asking for offline readers returned the genuinely-offline AND
|
|
623
|
+
* the never-installed, with no way to tell them apart or to ask for either
|
|
624
|
+
* alone. The platform's flat filters have always kept them separate
|
|
625
|
+
* (`isOnline` vs `hasReported`); the language now does too.
|
|
626
|
+
*/
|
|
627
|
+
export interface SemanticReaderOnlineCondition {
|
|
628
|
+
type: 'online';
|
|
629
|
+
value: boolean;
|
|
630
|
+
}
|
|
631
|
+
/** Whether the reader has EVER reported. See `online` for why this is its own word. */
|
|
632
|
+
export interface SemanticReaderHasReportedCondition {
|
|
633
|
+
type: 'hasReported';
|
|
634
|
+
value: boolean;
|
|
635
|
+
}
|
|
636
|
+
/** Whether the reader has reported map coordinates. */
|
|
637
|
+
export interface SemanticReaderHasGeolocationCondition {
|
|
638
|
+
type: 'hasGeolocation';
|
|
639
|
+
value: boolean;
|
|
640
|
+
}
|
|
641
|
+
/**
|
|
642
|
+
* The READER vocabulary.
|
|
643
|
+
*
|
|
644
|
+
* Five of the prototype's six words, plus `hasReported` and `hasGeolocation`
|
|
645
|
+
* that it had no form for. The sixth (`nameContains`) is refused above.
|
|
646
|
+
*
|
|
647
|
+
* Note what is NOT here: readers carry no user-group scope, and this
|
|
648
|
+
* vocabulary does not add one. `usergroups/scope.ts` lists them among the
|
|
649
|
+
* surfaces deliberately unscoped in v1, and filtering a set the caller can
|
|
650
|
+
* already read in full reveals nothing new.
|
|
651
|
+
*/
|
|
652
|
+
export declare const semanticReaderConditionTypes: readonly ["and", "or", "deviceType", "readerType", "location", "attachedAsset", "online", "hasReported", "hasGeolocation"];
|
|
653
|
+
export declare type SemanticReaderCondition = SemanticAndCondition | SemanticOrCondition | SemanticReaderDeviceTypeCondition | SemanticReaderTypeCondition | SemanticReaderLocationCondition | SemanticReaderAttachedAssetCondition | SemanticReaderOnlineCondition | SemanticReaderHasReportedCondition | SemanticReaderHasGeolocationCondition;
|
|
457
654
|
/**
|
|
458
655
|
* WHICH WORDS EACH ENTITY KNOWS — the closed vocabulary, per entity.
|
|
459
656
|
*
|
|
@@ -486,7 +683,7 @@ export declare const semanticConditionTypesByEntity: Record<SemanticQueryEntityT
|
|
|
486
683
|
* validator, which knows the entity and can say "'readiness' is an asset
|
|
487
684
|
* condition" instead of "not allowed".
|
|
488
685
|
*/
|
|
489
|
-
export declare const semanticConditionTypes: readonly ("telemetry" | "readiness" | "path" | "location" | "reader" | "manifest" | "and" | "or" | "assetType" | "homeLocation" | "withAsset" | "customField" | "createdDate" | "lastUpdated" | "lastChanged" | "lastSeen" | "firstSeen" | "geolocation" | "tags" | "kit" | "locationStatus" | "locationType" | "hasReaders" | "geofence" | "occurred" | "eventType" | "user" | "action")[];
|
|
686
|
+
export declare const semanticConditionTypes: readonly ("telemetry" | "readiness" | "path" | "asset" | "location" | "reader" | "manifest" | "and" | "or" | "assetType" | "homeLocation" | "withAsset" | "customField" | "createdDate" | "lastUpdated" | "lastChanged" | "lastSeen" | "firstSeen" | "geolocation" | "tags" | "kit" | "locationStatus" | "locationType" | "hasReaders" | "geofence" | "occurred" | "eventType" | "user" | "action" | "snapshotType" | "deviceType" | "readerType" | "attachedAsset" | "online" | "hasReported" | "hasGeolocation")[];
|
|
490
687
|
export declare type SemanticConditionType = (typeof semanticConditionTypes)[number];
|
|
491
688
|
/**
|
|
492
689
|
* Query size bounds, shared by the boundary schema (which refuses an oversized
|
|
@@ -510,7 +707,7 @@ export declare type SemanticAssetCondition = SemanticAndCondition | SemanticOrCo
|
|
|
510
707
|
* Any condition, whatever the entity. Widens as entities are added; the
|
|
511
708
|
* envelope and everything generic over it stay unchanged when they are.
|
|
512
709
|
*/
|
|
513
|
-
export declare type SemanticQueryCondition = SemanticAssetCondition | SemanticLocationCondition | SemanticEventCondition;
|
|
710
|
+
export declare type SemanticQueryCondition = SemanticAssetCondition | SemanticLocationCondition | SemanticEventCondition | SemanticSnapshotCondition | SemanticReaderCondition;
|
|
514
711
|
/** Current wire version of the condition vocabulary. */
|
|
515
712
|
export declare const SEMANTIC_QUERY_VERSION = 2;
|
|
516
713
|
export interface SemanticQuery {
|
|
@@ -614,7 +811,7 @@ export declare type SemanticQueryViewType = (typeof semanticQueryViewTypes)[numb
|
|
|
614
811
|
* harmless odd ordering would cost a discriminated union on every read path
|
|
615
812
|
* for no safety gained.
|
|
616
813
|
*/
|
|
617
|
-
export declare type SemanticQuerySortField = AssetSortField | LocationSortField;
|
|
814
|
+
export declare type SemanticQuerySortField = AssetSortField | LocationSortField | SnapshotSortField;
|
|
618
815
|
export declare const semanticQuerySortFields: SemanticQuerySortField[];
|
|
619
816
|
export interface SemanticQueryDisplay {
|
|
620
817
|
columnVisibility?: Record<string, boolean>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.semanticQuerySortFields = exports.semanticQueryViewTypes = exports.SEMANTIC_QUERY_VERSION = exports.SEMANTIC_QUERY_LIMITS = exports.semanticConditionTypes = exports.semanticConditionTypesByEntity = exports.semanticEventConditionTypes = exports.semanticLocationConditionTypes = exports.semanticAssetConditionTypes = exports.semanticGroupConditionTypes = exports.semanticReadinessLevels = exports.semanticTelemetryFields = exports.semanticSetOperators = exports.semanticComparisonOperators = exports.semanticTimestampOperators = exports.semanticFieldOperators = exports.semanticRelativeDatePositions = exports.semanticRelativeDateBases = exports.semanticQueryVisibilities = exports.semanticQueryKinds = exports.semanticQueryEntityTypes = void 0;
|
|
3
|
+
exports.semanticQuerySortFields = exports.semanticQueryViewTypes = exports.SEMANTIC_QUERY_VERSION = exports.SEMANTIC_QUERY_LIMITS = exports.semanticConditionTypes = exports.semanticConditionTypesByEntity = exports.semanticReaderConditionTypes = exports.semanticSnapshotConditionTypes = exports.semanticEventConditionTypes = exports.semanticLocationConditionTypes = exports.semanticAssetConditionTypes = exports.semanticGroupConditionTypes = exports.semanticReadinessLevels = exports.semanticTelemetryFields = exports.semanticSetOperators = exports.semanticComparisonOperators = exports.semanticTimestampOperators = exports.semanticFieldOperators = exports.semanticRelativeDatePositions = exports.semanticRelativeDateBases = exports.semanticQueryVisibilities = exports.semanticQueryKinds = exports.semanticQueryEntityTypes = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* SEMANTIC QUERIES — the portable query language.
|
|
6
6
|
*
|
|
@@ -29,9 +29,9 @@ exports.semanticQuerySortFields = exports.semanticQueryViewTypes = exports.SEMAN
|
|
|
29
29
|
*/
|
|
30
30
|
// --- Entity + record kind -------------------------------------------------
|
|
31
31
|
/**
|
|
32
|
-
* What a semantic query targets.
|
|
33
|
-
* the
|
|
34
|
-
* retrofitting
|
|
32
|
+
* What a semantic query targets. All but `manifest` execute; it is recorded so
|
|
33
|
+
* the classifier can name what it is declining, and so a stored query would
|
|
34
|
+
* never need retrofitting if it ever learns to speak.
|
|
35
35
|
*/
|
|
36
36
|
exports.semanticQueryEntityTypes = [
|
|
37
37
|
'asset',
|
|
@@ -175,11 +175,60 @@ exports.semanticEventConditionTypes = [
|
|
|
175
175
|
...exports.semanticGroupConditionTypes,
|
|
176
176
|
'occurred',
|
|
177
177
|
'eventType',
|
|
178
|
+
'assetType',
|
|
178
179
|
'location',
|
|
179
180
|
'reader',
|
|
180
181
|
'user',
|
|
181
182
|
'action',
|
|
182
183
|
];
|
|
184
|
+
/**
|
|
185
|
+
* The SNAPSHOT vocabulary.
|
|
186
|
+
*
|
|
187
|
+
* Full parity with the prototype's six words, plus `assetType` and `reader`,
|
|
188
|
+
* which its descriptor lacked and the platform's flat filters already support.
|
|
189
|
+
*
|
|
190
|
+
* Nothing is withheld here, and that is worth contrasting with events. The
|
|
191
|
+
* prototype matched `asset`, `user` and `manifest` by case-insensitive regex
|
|
192
|
+
* over a denormalised name — the failure the asset vocabulary refuses, three
|
|
193
|
+
* times over. It survives translation intact only because this entity stores
|
|
194
|
+
* real ids for all three, so the honest form costs no capability. Where it
|
|
195
|
+
* could not (a name for `user`), the event ladder already solved it.
|
|
196
|
+
*
|
|
197
|
+
* Absent for the standing reason: free text. No `nameContains` — search is a
|
|
198
|
+
* view option platform-wide, never a stored condition.
|
|
199
|
+
*/
|
|
200
|
+
exports.semanticSnapshotConditionTypes = [
|
|
201
|
+
...exports.semanticGroupConditionTypes,
|
|
202
|
+
'occurred',
|
|
203
|
+
'snapshotType',
|
|
204
|
+
'asset',
|
|
205
|
+
'assetType',
|
|
206
|
+
'location',
|
|
207
|
+
'manifest',
|
|
208
|
+
'user',
|
|
209
|
+
'reader',
|
|
210
|
+
];
|
|
211
|
+
/**
|
|
212
|
+
* The READER vocabulary.
|
|
213
|
+
*
|
|
214
|
+
* Five of the prototype's six words, plus `hasReported` and `hasGeolocation`
|
|
215
|
+
* that it had no form for. The sixth (`nameContains`) is refused above.
|
|
216
|
+
*
|
|
217
|
+
* Note what is NOT here: readers carry no user-group scope, and this
|
|
218
|
+
* vocabulary does not add one. `usergroups/scope.ts` lists them among the
|
|
219
|
+
* surfaces deliberately unscoped in v1, and filtering a set the caller can
|
|
220
|
+
* already read in full reveals nothing new.
|
|
221
|
+
*/
|
|
222
|
+
exports.semanticReaderConditionTypes = [
|
|
223
|
+
...exports.semanticGroupConditionTypes,
|
|
224
|
+
'deviceType',
|
|
225
|
+
'readerType',
|
|
226
|
+
'location',
|
|
227
|
+
'attachedAsset',
|
|
228
|
+
'online',
|
|
229
|
+
'hasReported',
|
|
230
|
+
'hasGeolocation',
|
|
231
|
+
];
|
|
183
232
|
/**
|
|
184
233
|
* WHICH WORDS EACH ENTITY KNOWS — the closed vocabulary, per entity.
|
|
185
234
|
*
|
|
@@ -207,8 +256,8 @@ exports.semanticConditionTypesByEntity = {
|
|
|
207
256
|
asset: exports.semanticAssetConditionTypes,
|
|
208
257
|
location: exports.semanticLocationConditionTypes,
|
|
209
258
|
event: exports.semanticEventConditionTypes,
|
|
210
|
-
|
|
211
|
-
|
|
259
|
+
snapshot: exports.semanticSnapshotConditionTypes,
|
|
260
|
+
reader: exports.semanticReaderConditionTypes,
|
|
212
261
|
manifest: [],
|
|
213
262
|
};
|
|
214
263
|
/**
|
|
@@ -224,6 +273,8 @@ exports.semanticConditionTypes = [
|
|
|
224
273
|
...exports.semanticAssetConditionTypes,
|
|
225
274
|
...exports.semanticLocationConditionTypes,
|
|
226
275
|
...exports.semanticEventConditionTypes,
|
|
276
|
+
...exports.semanticSnapshotConditionTypes,
|
|
277
|
+
...exports.semanticReaderConditionTypes,
|
|
227
278
|
]),
|
|
228
279
|
];
|
|
229
280
|
/**
|
|
@@ -261,6 +312,7 @@ const SEMANTIC_QUERY_SORT_FIELD_SET = {
|
|
|
261
312
|
battery: true,
|
|
262
313
|
ready: true,
|
|
263
314
|
path: true,
|
|
315
|
+
submitted: true,
|
|
264
316
|
};
|
|
265
317
|
exports.semanticQuerySortFields = Object.keys(SEMANTIC_QUERY_SORT_FIELD_SET);
|
|
266
318
|
//# sourceMappingURL=shared.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/semantic-queries/shared.ts"],"names":[],"mappings":";;;
|
|
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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E;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"}
|
|
@@ -22,12 +22,26 @@ export interface ISnapshotType {
|
|
|
22
22
|
typeName?: string;
|
|
23
23
|
typePath: string;
|
|
24
24
|
}
|
|
25
|
+
/** A scan recorded as supporting evidence for an inferred parent kit — the
|
|
26
|
+
* child asset whose tag read proved the kit was present. */
|
|
27
|
+
export interface ISnapshotEvidenceAsset {
|
|
28
|
+
assetId: string;
|
|
29
|
+
assetName?: string;
|
|
30
|
+
tagId?: string;
|
|
31
|
+
}
|
|
25
32
|
export interface ISnapshotDetectedAsset extends ISnapshotType {
|
|
26
33
|
assetId: string;
|
|
27
34
|
assetName?: string;
|
|
28
35
|
section?: string;
|
|
29
36
|
c_additional?: boolean;
|
|
30
37
|
fieldValues?: IFieldValue[];
|
|
38
|
+
/** When this entry is a kit inferred from scans of its members rather than
|
|
39
|
+
* a direct tag read, the member scans that evidenced it. */
|
|
40
|
+
evidenceAssets?: ISnapshotEvidenceAsset[];
|
|
41
|
+
/** The user explicitly confirmed this asset has left its current group — a
|
|
42
|
+
* location or Dispatch check honouring `updateGroupMembership` severs it
|
|
43
|
+
* from its parent kit (it becomes a root asset). */
|
|
44
|
+
unGroup?: boolean;
|
|
31
45
|
}
|
|
32
46
|
export interface ISnapshotUndetectedAsset extends ISnapshotType {
|
|
33
47
|
assetId: string;
|
|
@@ -46,6 +60,20 @@ export interface ISnapshotSightedAsset extends ISnapshotType {
|
|
|
46
60
|
section?: string;
|
|
47
61
|
c_ignored?: boolean;
|
|
48
62
|
fieldValues?: IFieldValue[];
|
|
63
|
+
/**
|
|
64
|
+
* The user explicitly associated this asset with its manifest item (the
|
|
65
|
+
* spec's "otherwise explicitly associated" act) — authorises the
|
|
66
|
+
* kit-membership sync to move it here out of another kit. Without it a
|
|
67
|
+
* manual confirmation adds the asset only when it is ungrouped.
|
|
68
|
+
*/
|
|
69
|
+
selected?: boolean;
|
|
70
|
+
/** When this entry is a kit inferred from scans of its members rather than
|
|
71
|
+
* a direct tag read, the member scans that evidenced it. */
|
|
72
|
+
evidenceAssets?: ISnapshotEvidenceAsset[];
|
|
73
|
+
/** The user explicitly confirmed this asset has left its current group — a
|
|
74
|
+
* location or Dispatch check honouring `updateGroupMembership` severs it
|
|
75
|
+
* from its parent kit (it becomes a root asset). */
|
|
76
|
+
unGroup?: boolean;
|
|
49
77
|
}
|
|
50
78
|
export interface ISnapshotUndetectedAsset extends ISnapshotType {
|
|
51
79
|
assetId: string;
|
|
@@ -76,9 +104,65 @@ export interface ISnapshotComputed {
|
|
|
76
104
|
export interface ISnapshotFields {
|
|
77
105
|
notes?: string;
|
|
78
106
|
}
|
|
107
|
+
/** One asset touched (or deliberately left alone) by the kit-membership sync. */
|
|
108
|
+
export interface ISnapshotMembershipAsset {
|
|
109
|
+
assetId: string;
|
|
110
|
+
assetName?: string;
|
|
111
|
+
/** For retained entries: the manifest type entry the retention satisfied. */
|
|
112
|
+
typeId?: string;
|
|
113
|
+
section?: string;
|
|
114
|
+
/** For added entries: the membership came from a manual confirmation, not a
|
|
115
|
+
* scan — the tag was never read, so it joins the inspection follow-up list. */
|
|
116
|
+
manuallyConfirmed?: boolean;
|
|
117
|
+
/** For severed entries, and added entries that moved in from another kit:
|
|
118
|
+
* ID of the parent kit the asset left. */
|
|
119
|
+
fromKitId?: string;
|
|
120
|
+
/** For severed entries, and added entries that moved in from another kit:
|
|
121
|
+
* name of the parent kit the asset left. */
|
|
122
|
+
fromKitName?: string;
|
|
123
|
+
/** For severed entries: the sever was honoured although an ancestor of the
|
|
124
|
+
* asset was also seen in the check — an explicit `unGroup` outranks the
|
|
125
|
+
* ancestor guard; flagged so the receipt tells the whole story. */
|
|
126
|
+
ancestorPresent?: boolean;
|
|
127
|
+
}
|
|
128
|
+
export declare type SnapshotMembershipSkipReason = 'NOT_INVENTORY' | 'TARGET_NOT_FOUND' | 'TARGET_NOT_KIT' | 'ASSET_NOT_FOUND' | 'ALREADY_NESTED' | 'WOULD_CYCLE' | 'SIGHTED_IN_OTHER_KIT' | 'SIGHTED_UNRESOLVED' | 'ANCESTOR_SEEN';
|
|
129
|
+
export interface ISnapshotMembershipNotApplied {
|
|
130
|
+
reason: SnapshotMembershipSkipReason;
|
|
131
|
+
assetId?: string;
|
|
132
|
+
assetName?: string;
|
|
133
|
+
typeId?: string;
|
|
134
|
+
typePath?: string;
|
|
135
|
+
section?: string;
|
|
136
|
+
/** SIGHTED_UNRESOLVED: how many manually confirmed instances had no member to retain. */
|
|
137
|
+
count?: number;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Result of synchronising the target kit's direct membership with the
|
|
141
|
+
* submitted manifest (present only when the snapshot requested
|
|
142
|
+
* `syncGroupMembership` — the audit record of what the sync did).
|
|
143
|
+
*/
|
|
144
|
+
export interface ISnapshotMembershipSync {
|
|
145
|
+
/** Assets that became direct members (joined or moved in) — by scan, or by
|
|
146
|
+
* manual confirmation of their named line (`manuallyConfirmed: true`). */
|
|
147
|
+
added: ISnapshotMembershipAsset[];
|
|
148
|
+
/** Direct members removed because nothing in the manifest represented them. */
|
|
149
|
+
removed: ISnapshotMembershipAsset[];
|
|
150
|
+
/** Existing members kept without a scan under the manual-confirmation
|
|
151
|
+
* retention rule — the tag-inspection follow-up list. */
|
|
152
|
+
retained: ISnapshotMembershipAsset[];
|
|
153
|
+
/** Membership actions the sync declined, with reasons. */
|
|
154
|
+
notApplied: ISnapshotMembershipNotApplied[];
|
|
155
|
+
/** Assets un-grouped from their previous parent by a location or Dispatch
|
|
156
|
+
* check (`fromKitId`/`fromKitName` record what they left). Absent on
|
|
157
|
+
* snapshots recorded before the generalised sync existed. */
|
|
158
|
+
severed?: ISnapshotMembershipAsset[];
|
|
159
|
+
}
|
|
79
160
|
export interface GetSnapshotResponse {
|
|
80
161
|
id: string;
|
|
81
|
-
user
|
|
162
|
+
/** Submitting user; `type` is the account kind (e.g. `INTERNAL`). */
|
|
163
|
+
user?: IEmbeddedEntity & {
|
|
164
|
+
type?: string;
|
|
165
|
+
};
|
|
82
166
|
reader?: IEmbeddedEntity;
|
|
83
167
|
location?: IEmbeddedEntity & {
|
|
84
168
|
path?: string;
|
|
@@ -94,6 +178,14 @@ export interface GetSnapshotResponse {
|
|
|
94
178
|
submitted?: number;
|
|
95
179
|
created: number;
|
|
96
180
|
meta?: IEntityMeta;
|
|
181
|
+
/** Whether this snapshot asked the server to sync the target kit's direct
|
|
182
|
+
* membership with the manifest result. */
|
|
183
|
+
syncGroupMembership?: boolean;
|
|
184
|
+
/** Whether this snapshot asked the server to update group membership from
|
|
185
|
+
* its evidence (the generalised `updateGroupMembership` flag). */
|
|
186
|
+
updateGroupMembership?: boolean;
|
|
187
|
+
/** What the kit-membership sync did — see `ISnapshotMembershipSync`. */
|
|
188
|
+
membershipSync?: ISnapshotMembershipSync;
|
|
97
189
|
geolocation?: Point;
|
|
98
190
|
timezone?: string;
|
|
99
191
|
types?: Omit<GetTypeResponse & {
|
|
@@ -106,7 +198,10 @@ export interface GetSnapshotResponse {
|
|
|
106
198
|
}
|
|
107
199
|
export interface GetSnapshotsItem {
|
|
108
200
|
id: string;
|
|
109
|
-
user
|
|
201
|
+
/** Submitting user; `type` is the account kind (e.g. `INTERNAL`). */
|
|
202
|
+
user?: IEmbeddedEntity & {
|
|
203
|
+
type?: string;
|
|
204
|
+
};
|
|
110
205
|
reader?: IEmbeddedEntity;
|
|
111
206
|
location?: IEmbeddedEntity & {
|
|
112
207
|
path?: string;
|
|
@@ -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":";;;AAsPA,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"}
|
|
@@ -3,6 +3,33 @@ export declare type SnapshotSortField = 'created' | 'submitted';
|
|
|
3
3
|
export declare const snapshotSortFields: SnapshotSortField[];
|
|
4
4
|
export declare type SnapshotEmbedField = 'meta';
|
|
5
5
|
export declare type SnapshotTypeEnum = 'Inventory' | 'Stocktake' | 'Dispatch';
|
|
6
|
+
export declare const SNAPSHOT_TYPES: SnapshotTypeEnum[];
|
|
7
|
+
/**
|
|
8
|
+
* How each kind is IDENTIFIED on a stored document — including the legacy
|
|
9
|
+
* snapshots that pre-date the `type` field entirely.
|
|
10
|
+
*
|
|
11
|
+
* `type` was added after the fact. A document without one is classified by
|
|
12
|
+
* whether it carries a manifest: none means a Stocktake, one means an
|
|
13
|
+
* Inventory. Dispatch has no legacy form — it never existed before `type` did.
|
|
14
|
+
*
|
|
15
|
+
* Stated ONCE, as data, because three separate places need the same answer:
|
|
16
|
+
* the flat Mongo filter (`snapshots/filters.ts`), the semantic compiler, and
|
|
17
|
+
* the semantic evaluator that runs in the browser. Two of those are supposed
|
|
18
|
+
* to agree exactly; a rule written out three times is a rule with three
|
|
19
|
+
* chances to drift, and the failure would be silent — a chip and a saved query
|
|
20
|
+
* returning different rows for the same question.
|
|
21
|
+
*/
|
|
22
|
+
export interface SnapshotTypeRule {
|
|
23
|
+
/** Matches a document whose `type` is set to this. */
|
|
24
|
+
explicit: SnapshotTypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
* How a LEGACY document (no `type` at all) is recognised as this kind:
|
|
27
|
+
* `true` = it carries a manifest, `false` = it does not. Absent means the
|
|
28
|
+
* kind has no legacy form and only ever matches an explicit `type`.
|
|
29
|
+
*/
|
|
30
|
+
legacyHasManifest?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export declare const SNAPSHOT_TYPE_RULES: Record<SnapshotTypeEnum, SnapshotTypeRule>;
|
|
6
33
|
export interface SnapshotFilters {
|
|
7
34
|
ids?: string[];
|
|
8
35
|
locationIds?: string[];
|
|
@@ -22,4 +49,16 @@ export interface GetSnapshotsQuery extends SnapshotFilters {
|
|
|
22
49
|
sort?: SnapshotSortField;
|
|
23
50
|
sortOrder?: SortOrders;
|
|
24
51
|
embed?: Array<SnapshotEmbedField>;
|
|
52
|
+
/**
|
|
53
|
+
* Run a stored semantic query instead of the filters above. The stored query
|
|
54
|
+
* is the WHOLE filter — combining it with any filter parameter is rejected,
|
|
55
|
+
* never merged.
|
|
56
|
+
*
|
|
57
|
+
* No serialised counterpart here, unlike `GET /events`: snapshots are cached
|
|
58
|
+
* whole and the list filters them in the browser, so the server path exists
|
|
59
|
+
* for saved queries and widgets rather than for every keystroke.
|
|
60
|
+
*/
|
|
61
|
+
semanticQueryId?: string;
|
|
62
|
+
/** IANA zone for the query's relative dates; the record's own wins if set. */
|
|
63
|
+
timezone?: string;
|
|
25
64
|
}
|
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.snapshotSortFields = void 0;
|
|
3
|
+
exports.SNAPSHOT_TYPE_RULES = exports.SNAPSHOT_TYPES = exports.snapshotSortFields = void 0;
|
|
4
4
|
exports.snapshotSortFields = ['created', 'submitted'];
|
|
5
|
+
/**
|
|
6
|
+
* The same three as VALUES, for the boundary schema and the semantic
|
|
7
|
+
* vocabulary.
|
|
8
|
+
*
|
|
9
|
+
* Keyed as a Record so the compiler enforces it BOTH ways: a kind missing here
|
|
10
|
+
* is a build error, and one that is not a real kind is too. Two hand-kept
|
|
11
|
+
* copies of this list already existed — the Joi validator's `.valid(...)` and
|
|
12
|
+
* the chat prototype's `KNOWN_SNAPSHOT_TYPES` — and a hand-kept copy of a type
|
|
13
|
+
* is a copy that drifts. That is not hypothetical here: the identical pattern
|
|
14
|
+
* on sort fields rejected every saved location view the day locations shipped.
|
|
15
|
+
*/
|
|
16
|
+
const SNAPSHOT_TYPE_SET = {
|
|
17
|
+
Inventory: true,
|
|
18
|
+
Stocktake: true,
|
|
19
|
+
Dispatch: true,
|
|
20
|
+
};
|
|
21
|
+
exports.SNAPSHOT_TYPES = Object.keys(SNAPSHOT_TYPE_SET);
|
|
22
|
+
exports.SNAPSHOT_TYPE_RULES = {
|
|
23
|
+
Stocktake: { explicit: 'Stocktake', legacyHasManifest: false },
|
|
24
|
+
Inventory: { explicit: 'Inventory', legacyHasManifest: true },
|
|
25
|
+
Dispatch: { explicit: 'Dispatch' },
|
|
26
|
+
};
|
|
5
27
|
//# sourceMappingURL=query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/snapshots/get/query.ts"],"names":[],"mappings":";;;AAGa,QAAA,kBAAkB,GAAwB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/snapshots/get/query.ts"],"names":[],"mappings":";;;AAGa,QAAA,kBAAkB,GAAwB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAA;AAI/E;;;;;;;;;;GAUG;AACH,MAAM,iBAAiB,GAAmC;IACxD,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,IAAI;CACf,CAAA;AACY,QAAA,cAAc,GAAG,MAAM,CAAC,IAAI,CACvC,iBAAiB,CACI,CAAA;AA4BV,QAAA,mBAAmB,GAA+C;IAC7E,SAAS,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE,iBAAiB,EAAE,KAAK,EAAE;IAC9D,SAAS,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE,iBAAiB,EAAE,IAAI,EAAE;IAC7D,QAAQ,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE;CACnC,CAAA"}
|
|
@@ -26,6 +26,27 @@ export interface PostSnapshotRequest {
|
|
|
26
26
|
};
|
|
27
27
|
}, 'manifest'>[];
|
|
28
28
|
type?: SnapshotTypeEnum;
|
|
29
|
+
/**
|
|
30
|
+
* Ask the server to synchronise the target kit's direct membership with this
|
|
31
|
+
* manifest result: scanned assets join (or stay), unrepresented members are
|
|
32
|
+
* removed, manually confirmed lines retain existing members. Only honoured
|
|
33
|
+
* for `Inventory` snapshots whose target `asset` is a kit — ignored (and
|
|
34
|
+
* annotated in `membershipSync.notApplied`) otherwise.
|
|
35
|
+
*/
|
|
36
|
+
syncGroupMembership?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Ask the server to update group membership from this check's evidence —
|
|
39
|
+
* the generalised successor to `syncGroupMembership`. A kit-asset target
|
|
40
|
+
* reconciles its direct membership with the check result (Inventory and
|
|
41
|
+
* Stocktake). A location target severs entries the user explicitly
|
|
42
|
+
* confirmed removed (`unGroup`), plus kits detected on their own named
|
|
43
|
+
* manifest lines. A Dispatch snapshot severs every departing entry from
|
|
44
|
+
* parents outside the departing set. An asset is never severed while an
|
|
45
|
+
* ancestor of it was also seen in the same check (an explicit `unGroup`
|
|
46
|
+
* outranks that guard). Severed assets become root assets; their own
|
|
47
|
+
* subtree travels with them. Audited in `membershipSync.severed`.
|
|
48
|
+
*/
|
|
49
|
+
updateGroupMembership?: boolean;
|
|
29
50
|
}
|
|
30
51
|
export declare type PostSnapshotsRequest = PostSnapshotRequest[];
|
|
31
52
|
export declare const testPostSnapshotRequest1: PostSnapshotRequest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/snapshots/post/request.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/snapshots/post/request.ts"],"names":[],"mappings":";;;AAyDA,SAAS;AACI,QAAA,wBAAwB,GAAwB;IAC3D,MAAM,EAAE,EAAE,EAAE,EAAE,0BAA0B,EAAE,IAAI,EAAE,UAAU,EAAE;IAC5D,QAAQ,EAAE,EAAE,EAAE,EAAE,0BAA0B,EAAE,IAAI,EAAE,YAAY,EAAE;IAChE,cAAc,EAAE;QACd;YACE,OAAO,EAAE,0BAA0B;YACnC,SAAS,EAAE,8BAA8B;YACzC,MAAM,EAAE,0BAA0B;YAClC,QAAQ,EAAE,uBAAuB;YACjC,QAAQ,EAAE,iBAAiB;SAC5B;QACD;YACE,OAAO,EAAE,0BAA0B;YACnC,SAAS,EAAE,eAAe;YAC1B,MAAM,EAAE,0BAA0B;YAClC,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,iBAAiB;SAC5B;QACD;YACE,OAAO,EAAE,0BAA0B;YACnC,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,0BAA0B;YAClC,QAAQ,EAAE,WAAW;YACrB,QAAQ,EAAE,iBAAiB;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;YACE,OAAO,EAAE,0BAA0B;YACnC,SAAS,EAAE,eAAe;YAC1B,MAAM,EAAE,0BAA0B;YAClC,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,YAAY;YACtB,OAAO,EAAE,gBAAgB;SAC1B;QACD;YACE,OAAO,EAAE,0BAA0B;YACnC,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,0BAA0B;YAClC,QAAQ,EAAE,WAAW;YACrB,QAAQ,EAAE,YAAY;YACtB,OAAO,EAAE,gBAAgB;SAC1B;QACD;YACE,OAAO,EAAE,2BAA2B;YACpC,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,0BAA0B;YAClC,QAAQ,EAAE,WAAW;YACrB,QAAQ,EAAE,YAAY;SACvB;KACF;IACD,aAAa,EAAE;QACb;YACE,OAAO,EAAE,0BAA0B;YACnC,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,0BAA0B;YAClC,QAAQ,EAAE,WAAW;YACrB,QAAQ,EAAE,YAAY;YACtB,OAAO,EAAE,gBAAgB;SAC1B;KACF;IACD,MAAM,EAAE;QACN,KAAK,EAAE,EAAE;KACV;IACD,SAAS,EAAE,aAAa;CACzB,CAAA"}
|
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.25",
|
|
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": "a05801d017b081863f7e9512840e328e234da090"
|
|
22
22
|
}
|