@spotto/contract 1.0.70-alpha.41 → 1.0.70-alpha.43
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 +7 -1
- package/dist/events/constants.d.ts +2 -1
- package/dist/events/constants.js.map +1 -1
- package/dist/events/get/response.d.ts +4 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/manifests/[id]/delete.d.ts +9 -0
- package/dist/manifests/[id]/delete.js +3 -0
- package/dist/manifests/[id]/delete.js.map +1 -0
- package/dist/manifests/[id]/get.d.ts +22 -0
- package/dist/manifests/[id]/get.js.map +1 -1
- package/dist/manifests/[id]/index.d.ts +1 -0
- package/dist/manifests/[id]/index.js +1 -0
- package/dist/manifests/[id]/index.js.map +1 -1
- package/dist/manifests/[id]/patch/request.d.ts +7 -0
- package/dist/manifests/[id]/patch/request.js.map +1 -1
- package/dist/manifests/formItems.d.ts +62 -0
- package/dist/manifests/formItems.js +3 -0
- package/dist/manifests/formItems.js.map +1 -0
- package/dist/manifests/index.d.ts +2 -0
- package/dist/manifests/index.js +2 -0
- package/dist/manifests/index.js.map +1 -1
- package/dist/manifests/post/request.d.ts +6 -0
- package/dist/manifests/post/request.js.map +1 -1
- package/dist/manifests/rules.d.ts +131 -0
- package/dist/manifests/rules.js +3 -0
- package/dist/manifests/rules.js.map +1 -0
- package/dist/organisations/constants.d.ts +15 -0
- package/dist/organisations/constants.js.map +1 -1
- package/dist/shared/readiness.d.ts +42 -0
- package/dist/snapshots/[id]/get.d.ts +50 -1
- package/dist/snapshots/[id]/get.js.map +1 -1
- package/dist/snapshots/post/request.d.ts +48 -0
- package/dist/snapshots/post/request.js.map +1 -1
- package/dist/snapshots/post/response.d.ts +21 -1
- package/dist/submissions/post/request.d.ts +7 -0
- package/dist/submissions/post/response.d.ts +8 -0
- package/dist/submissions/shared.d.ts +2 -0
- package/dist/tasks/[id]/index.d.ts +39 -0
- package/dist/tasks/[id]/index.js +3 -0
- package/dist/tasks/[id]/index.js.map +1 -0
- package/dist/tasks/access.d.ts +27 -0
- package/dist/tasks/access.js +3 -0
- package/dist/tasks/access.js.map +1 -0
- package/dist/tasks/get.d.ts +39 -0
- package/dist/tasks/get.js +5 -0
- package/dist/tasks/get.js.map +1 -0
- package/dist/tasks/index.d.ts +6 -0
- package/dist/tasks/index.js +23 -0
- package/dist/tasks/index.js.map +1 -0
- package/dist/tasks/post.d.ts +47 -0
- package/dist/tasks/post.js +3 -0
- package/dist/tasks/post.js.map +1 -0
- package/dist/tasks/settlement.d.ts +59 -0
- package/dist/tasks/settlement.js +18 -0
- package/dist/tasks/settlement.js.map +1 -0
- package/dist/tasks/shared.d.ts +219 -0
- package/dist/tasks/shared.js +36 -0
- package/dist/tasks/shared.js.map +1 -0
- package/dist/tasktemplates/index.d.ts +82 -0
- package/dist/tasktemplates/index.js +3 -0
- package/dist/tasktemplates/index.js.map +1 -0
- package/dist/users/current.d.ts +7 -0
- package/dist/workflows/index.d.ts +2 -44
- package/dist/workflows/index.js +16 -0
- package/dist/workflows/index.js.map +1 -1
- package/dist/workflows/legacy.d.ts +60 -0
- package/dist/workflows/legacy.js +3 -0
- package/dist/workflows/legacy.js.map +1 -0
- package/dist/workflows/workflow.d.ts +398 -0
- package/dist/workflows/workflow.js +69 -0
- package/dist/workflows/workflow.js.map +1 -0
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Point } from 'geojson';
|
|
2
2
|
import { IEmbeddedLabel } from '../../labels';
|
|
3
3
|
import { LocationStatus, LocationType } from '../../locations/constants';
|
|
4
|
-
import { IEntityMeta, IEmbeddedEntity, IReadiness } from '../../shared';
|
|
4
|
+
import { IEntityMeta, IEmbeddedEntity, IHeldRuleIssue, IReadiness } from '../../shared';
|
|
5
5
|
import { IAssetTelemetry } from '../../telemetry';
|
|
6
6
|
import { IFieldValue } from '../../types';
|
|
7
7
|
export interface ILastLocation {
|
|
@@ -87,6 +87,12 @@ export interface GetAssetResponse {
|
|
|
87
87
|
*/
|
|
88
88
|
context?: boolean;
|
|
89
89
|
groupSatisfiesManifest?: 0 | 1 | 2;
|
|
90
|
+
/**
|
|
91
|
+
* The READINESS rule failures held from the latest check of each manifest
|
|
92
|
+
* on this asset. `readiness` already renders those of a manifest the asset
|
|
93
|
+
* can be checked against; this is the stored list behind them.
|
|
94
|
+
*/
|
|
95
|
+
heldRuleIssues?: IHeldRuleIssue[];
|
|
90
96
|
readiness?: IReadiness;
|
|
91
97
|
timeSensitive?: boolean;
|
|
92
98
|
}
|
|
@@ -23,7 +23,8 @@ export declare type ReadinessEventType = 'AssetReadinessChanged';
|
|
|
23
23
|
* - `edit`: the asset itself was written — an edit, a form write-back, a
|
|
24
24
|
* stocktake's manifest verdict on a kit.
|
|
25
25
|
* - `rules`: its type's readiness rules or bindings changed and every asset
|
|
26
|
-
* of the type was re-evaluated
|
|
26
|
+
* of the type was re-evaluated; or the rules of a manifest it carries
|
|
27
|
+
* were edited, or a type-level value one of them reads.
|
|
27
28
|
* - `members`: a kit re-rolled because a member changed, joined or left.
|
|
28
29
|
* - `schedule`: the scheduled refresh noticed the date moved.
|
|
29
30
|
*/
|
|
@@ -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;
|
|
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;AA+CY,QAAA,uBAAuB,GAA2B;IAC7D,MAAM;IACN,OAAO;IACP,SAAS;IACT,UAAU;CACX,CAAA;AA0BY,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,aAAa;IACb,aAAa;IACb,aAAa;IACb,uBAAuB;IACvB,eAAe;IACf,sBAAsB;IACtB,YAAY;IACZ,wBAAwB;CACzB,CAAA;AAED,8EAA8E;AACjE,QAAA,qBAAqB,GAAwB;IACxD,aAAa;IACb,aAAa;IACb,aAAa;CACd,CAAA;AAED;;;;;;;;;;;;GAYG;AACU,QAAA,sBAAsB,GAAyB;IAC1D,cAAc;IACd,cAAc;IACd,cAAc;CACf,CAAA;AAED;;;;;;;GAOG;AACU,QAAA,uBAAuB,GAClC,CAAC,GAAG,8BAAsB,EAAE,uBAAuB,CAAC,CAAA"}
|
|
@@ -4,7 +4,7 @@ import { GetEventsQuery } from './query';
|
|
|
4
4
|
import { DeviceType, ReaderType } from '../../readers/constants';
|
|
5
5
|
import { LocationType } from '../../locations/constants';
|
|
6
6
|
import { GetSnapshotResponse } from '../../snapshots';
|
|
7
|
-
import {
|
|
7
|
+
import { LegacyExecutedWorkflow } from '../../workflows';
|
|
8
8
|
import { GetAssetResponse } from '../../assets';
|
|
9
9
|
import { GetTypeResponse } from '../../types/[id]/get';
|
|
10
10
|
import { ISubmissionAssetEmbed, ISubmissionPayload, ISubmissionVoidPayload } from '../../submissions';
|
|
@@ -154,6 +154,8 @@ export interface IAssetReadinessChangedPayload {
|
|
|
154
154
|
snapshotId?: string;
|
|
155
155
|
/** The form submission whose write-back caused the change, when one did. */
|
|
156
156
|
submissionId?: string;
|
|
157
|
+
/** `rules` — the manifest whose rules were edited, when a manifest's were. */
|
|
158
|
+
manifest?: IEmbeddedEntity;
|
|
157
159
|
}
|
|
158
160
|
export interface IAssetReadinessChangedEvent extends IBaseEvent {
|
|
159
161
|
type: ReadinessEventType;
|
|
@@ -172,7 +174,7 @@ export interface IUserSearchEvent extends IBaseEvent {
|
|
|
172
174
|
}
|
|
173
175
|
export interface IWorkflowActionExecutedEvent extends IBaseEvent {
|
|
174
176
|
type: 'WorkflowActionExecuted';
|
|
175
|
-
workflow:
|
|
177
|
+
workflow: LegacyExecutedWorkflow;
|
|
176
178
|
}
|
|
177
179
|
/** Exactly one of `asset`/`location` is present — the run's target (§4.4). */
|
|
178
180
|
export interface IFormSubmittedEvent extends IBaseEvent {
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -43,4 +43,6 @@ __exportStar(require("./forms"), exports);
|
|
|
43
43
|
__exportStar(require("./actions"), exports);
|
|
44
44
|
__exportStar(require("./submissions"), exports);
|
|
45
45
|
__exportStar(require("./usergroups"), exports);
|
|
46
|
+
__exportStar(require("./tasks"), exports);
|
|
47
|
+
__exportStar(require("./tasktemplates"), exports);
|
|
46
48
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,uCAAoB;AACpB,2CAAwB;AACxB,iDAA8B;AAC9B,2CAAwB;AACxB,2CAAwB;AACxB,8CAA2B;AAC3B,6CAA0B;AAC1B,kDAA+B;AAC/B,4CAAyB;AACzB,0CAAuB;AACvB,yCAAsB;AACtB,8CAA2B;AAC3B,0CAAuB;AACvB,8CAA2B;AAC3B,0CAAuB;AACvB,2CAAwB;AACxB,8CAA2B;AAC3B,2CAAwB;AACxB,8CAA2B;AAC3B,2CAAwB;AACxB,4CAAyB;AACzB,wCAAqB;AACrB,0CAAuB;AACvB,qDAAkC;AAClC,0CAAuB;AACvB,4CAAyB;AACzB,gDAA6B;AAC7B,+CAA4B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,uCAAoB;AACpB,2CAAwB;AACxB,iDAA8B;AAC9B,2CAAwB;AACxB,2CAAwB;AACxB,8CAA2B;AAC3B,6CAA0B;AAC1B,kDAA+B;AAC/B,4CAAyB;AACzB,0CAAuB;AACvB,yCAAsB;AACtB,8CAA2B;AAC3B,0CAAuB;AACvB,8CAA2B;AAC3B,0CAAuB;AACvB,2CAAwB;AACxB,8CAA2B;AAC3B,2CAAwB;AACxB,8CAA2B;AAC3B,2CAAwB;AACxB,4CAAyB;AACzB,wCAAqB;AACrB,0CAAuB;AACvB,qDAAkC;AAClC,0CAAuB;AACvB,4CAAyB;AACzB,gDAA6B;AAC7B,+CAA4B;AAC5B,0CAAuB;AACvB,kDAA+B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface DeleteManifestQuery {
|
|
2
|
+
/**
|
|
3
|
+
* Delete the manifest although tasks still owed list it as one a check may
|
|
4
|
+
* be taken against. Each of those tasks loses the manifest, and a task
|
|
5
|
+
* left with no manifest to check is cancelled. Never overrides the refusal
|
|
6
|
+
* for a manifest a task definition names.
|
|
7
|
+
*/
|
|
8
|
+
force?: boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../src/manifests/[id]/delete.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { IEntityMeta } from '../../shared';
|
|
2
2
|
import { IFieldValue } from '../../types';
|
|
3
|
+
import { IManifestFormItem } from '../formItems';
|
|
4
|
+
import { IManifestRule } from '../rules';
|
|
3
5
|
export interface IManifestType {
|
|
4
6
|
typeId: string;
|
|
5
7
|
typeName?: string;
|
|
@@ -29,6 +31,26 @@ export interface GetManifestResponse {
|
|
|
29
31
|
assets?: IManifestAsset[];
|
|
30
32
|
typesCount: number;
|
|
31
33
|
assetsCount: number;
|
|
34
|
+
/**
|
|
35
|
+
* The manifest's form items, in author order: fields to answer, capture
|
|
36
|
+
* blocks and instructions, each placed in a section and optionally after
|
|
37
|
+
* one of its lines. Returned where the lines are (`embed=full` or
|
|
38
|
+
* `partial`). On the copy a snapshot embeds, they are the items the check
|
|
39
|
+
* was asked.
|
|
40
|
+
*/
|
|
41
|
+
formItems?: IManifestFormItem[];
|
|
42
|
+
/** Number of entries in `formItems`. Absent when the manifest has none, so
|
|
43
|
+
* a manifest without form items reads exactly as it always has. */
|
|
44
|
+
formItemsCount?: number;
|
|
45
|
+
/**
|
|
46
|
+
* The manifest's rules, in the order they are evaluated: rules that judge
|
|
47
|
+
* what a check found, where the lines only count it. Returned where the
|
|
48
|
+
* lines are (`embed=full` or `partial`). On the copy a snapshot embeds,
|
|
49
|
+
* they are the rules the check was judged by.
|
|
50
|
+
*/
|
|
51
|
+
rules?: IManifestRule[];
|
|
52
|
+
/** Number of entries in `rules`. Absent when the manifest has none. */
|
|
53
|
+
rulesCount?: number;
|
|
32
54
|
meta?: IEntityMeta;
|
|
33
55
|
test?: string;
|
|
34
56
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/manifests/[id]/get.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/manifests/[id]/get.ts"],"names":[],"mappings":";;;AA4DA,QAAQ;AACK,QAAA,sBAAsB,GAAwB;IACzD,EAAE,EAAE,OAAO;IACX,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,EAAE,WAAW,EAAE,KAAK,CAAC;IAC7C,KAAK,EAAE;QACL;YACE,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,YAAY;YACtB,OAAO,EAAE,SAAS;SACnB;QACD;YACE,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,YAAY;YACtB,KAAK,EAAE,GAAG;YACV,OAAO,EAAE,WAAW;SACrB;QACD;YACE,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,YAAY;YACtB,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE,EAAE;SACZ;QACD;YACE,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,YAAY;YACtB,QAAQ,EAAE,EAAE;YACZ,QAAQ,EAAE,EAAE;YACZ,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,KAAK;SACf;KACF;IACD,UAAU,EAAE,CAAC;IACb,WAAW,EAAE,CAAC;CACf,CAAA"}
|
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./patch"), exports);
|
|
18
18
|
__exportStar(require("./get"), exports);
|
|
19
|
+
__exportStar(require("./delete"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/manifests/[id]/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,wCAAqB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/manifests/[id]/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,wCAAqB;AACrB,2CAAwB"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { IManifestTypePost, IManifestAssetPost } from '../../post/request';
|
|
2
|
+
import { IManifestFormItemInput } from '../../formItems';
|
|
3
|
+
import { IManifestRule } from '../../rules';
|
|
2
4
|
export interface UpdateManifestRequest {
|
|
3
5
|
name?: string;
|
|
4
6
|
types?: IManifestTypePost[];
|
|
5
7
|
assets?: IManifestAssetPost[];
|
|
6
8
|
sections?: string[];
|
|
9
|
+
/** Replaces the stored form items whole when sent; left alone when absent.
|
|
10
|
+
* `[]` removes them all. */
|
|
11
|
+
formItems?: IManifestFormItemInput[];
|
|
12
|
+
/** Replaces the stored rules whole when sent; left alone when absent. */
|
|
13
|
+
rules?: IManifestRule[];
|
|
7
14
|
}
|
|
8
15
|
export declare const testUpdatetManifestRequest: UpdateManifestRequest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../../src/manifests/[id]/patch/request.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../../src/manifests/[id]/patch/request.ts"],"names":[],"mappings":";;;AAgBA,QAAQ;AACK,QAAA,0BAA0B,GAA0B;IAC/D,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE;QACL;YACE,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,EAAE;SACZ;QACD;YACE,MAAM,EAAE,MAAM;YACd,KAAK,EAAE,GAAG;YACV,OAAO,EAAE,EAAE;SACZ;QACD;YACE,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE,EAAE;SACZ;QACD;YACE,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,EAAE;YACZ,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE,EAAE;SACZ;KACF;IACD,MAAM,EAAE;QACN;YACE,OAAO,EAAE,WAAW;YACpB,OAAO,EAAE,EAAE;SACZ;QACD;YACE,OAAO,EAAE,WAAW;YACpB,SAAS,EAAE,YAAY;YACvB,OAAO,EAAE,EAAE;SACZ;QACD;YACE,OAAO,EAAE,WAAW;YACpB,SAAS,EAAE,YAAY;YACvB,OAAO,EAAE,YAAY;SACtB;KACF;CACF,CAAA"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { FormCaptureItem, FormDividerItem, FormFieldItem, FormImageItem, FormLinkItem, FormTextItem, FormVideoItem } from '../forms/shared';
|
|
2
|
+
/**
|
|
3
|
+
* Where a manifest form item sits within its section: after one of the
|
|
4
|
+
* section's lines, named by the line's own key — a `types` line by its
|
|
5
|
+
* `typeId`, an `assets` line by its `assetId`. Exactly one of the two.
|
|
6
|
+
*/
|
|
7
|
+
export interface IManifestFormItemAfter {
|
|
8
|
+
typeId?: string;
|
|
9
|
+
assetId?: string;
|
|
10
|
+
}
|
|
11
|
+
/** Where in its section a form item goes when it follows no line. */
|
|
12
|
+
export declare type ManifestFormItemAt = 'start' | 'end';
|
|
13
|
+
/**
|
|
14
|
+
* How the line a form item follows came out of the check: `satisfied` when
|
|
15
|
+
* the count the check attested meets the line's minimum (`countMin`, 1 when
|
|
16
|
+
* unset; an `assets` line when its asset was found), `short` otherwise.
|
|
17
|
+
*/
|
|
18
|
+
export declare type ManifestWhenLine = 'satisfied' | 'short';
|
|
19
|
+
/**
|
|
20
|
+
* A field item of a manifest as it is read: a form's field item, with the id
|
|
21
|
+
* of the field definition it binds beside the name. A field's name never
|
|
22
|
+
* changes, so the two always agree.
|
|
23
|
+
*/
|
|
24
|
+
export interface ManifestFieldItem extends FormFieldItem {
|
|
25
|
+
fieldId: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A field item of a manifest as it is written: `name` or `fieldId` binds the
|
|
29
|
+
* field definition, and the server fills in the other. Sending both is
|
|
30
|
+
* allowed when they name the same field.
|
|
31
|
+
*/
|
|
32
|
+
export declare type ManifestFieldItemInput = Omit<FormFieldItem, 'name'> & {
|
|
33
|
+
name?: string;
|
|
34
|
+
fieldId?: string;
|
|
35
|
+
};
|
|
36
|
+
declare type ManifestContentItem = FormTextItem | FormImageItem | FormDividerItem | FormLinkItem | FormVideoItem | FormCaptureItem;
|
|
37
|
+
/**
|
|
38
|
+
* What a manifest form item holds: any form item but a `section` (the
|
|
39
|
+
* manifest's own sections are the sections).
|
|
40
|
+
*/
|
|
41
|
+
export declare type ManifestItem = ManifestFieldItem | ManifestContentItem;
|
|
42
|
+
export declare type ManifestItemInput = ManifestFieldItemInput | ManifestContentItem;
|
|
43
|
+
interface IManifestFormItemPlacement {
|
|
44
|
+
/** The section the item is drawn in — one of the manifest's `sections`. */
|
|
45
|
+
section: string;
|
|
46
|
+
/** The line of that section the item follows. Not with `at`. */
|
|
47
|
+
after?: IManifestFormItemAfter;
|
|
48
|
+
/** `start` or `end` (the default) of the section. Not with `after`. */
|
|
49
|
+
at?: ManifestFormItemAt;
|
|
50
|
+
/** Show the item only when the line it follows came out this way. Only
|
|
51
|
+
* with `after`. */
|
|
52
|
+
whenLine?: ManifestWhenLine;
|
|
53
|
+
}
|
|
54
|
+
/** A form item of a manifest, with its placement, as read. */
|
|
55
|
+
export interface IManifestFormItem extends IManifestFormItemPlacement {
|
|
56
|
+
item: ManifestItem;
|
|
57
|
+
}
|
|
58
|
+
/** A form item of a manifest, with its placement, as written. */
|
|
59
|
+
export interface IManifestFormItemInput extends IManifestFormItemPlacement {
|
|
60
|
+
item: ManifestItemInput;
|
|
61
|
+
}
|
|
62
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formItems.js","sourceRoot":"","sources":["../../src/manifests/formItems.ts"],"names":[],"mappings":""}
|
package/dist/manifests/index.js
CHANGED
|
@@ -18,4 +18,6 @@ __exportStar(require("./[id]"), exports);
|
|
|
18
18
|
__exportStar(require("./get"), exports);
|
|
19
19
|
__exportStar(require("./post"), exports);
|
|
20
20
|
__exportStar(require("./suggestions"), exports);
|
|
21
|
+
__exportStar(require("./formItems"), exports);
|
|
22
|
+
__exportStar(require("./rules"), exports);
|
|
21
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/manifests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,wCAAqB;AACrB,yCAAsB;AACtB,gDAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/manifests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,wCAAqB;AACrB,yCAAsB;AACtB,gDAA6B;AAC7B,8CAA2B;AAC3B,0CAAuB"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { IManifestType, IManifestAsset } from '../[id]/get';
|
|
2
|
+
import { IManifestFormItemInput } from '../formItems';
|
|
3
|
+
import { IManifestRule } from '../rules';
|
|
2
4
|
export declare type IManifestTypePost = Omit<IManifestType, 'typePath' | 'manifest'> & {
|
|
3
5
|
typePath?: string;
|
|
4
6
|
};
|
|
@@ -11,6 +13,10 @@ export interface PostManifestRequest {
|
|
|
11
13
|
types?: IManifestTypePost[];
|
|
12
14
|
assets?: IManifestAssetPost[];
|
|
13
15
|
sections?: string[];
|
|
16
|
+
/** Form items asked during a check of this manifest, in author order. */
|
|
17
|
+
formItems?: IManifestFormItemInput[];
|
|
18
|
+
/** Rules that judge what a check found, evaluated in array order. */
|
|
19
|
+
rules?: IManifestRule[];
|
|
14
20
|
}
|
|
15
21
|
export declare type PostManifestsRequest = PostManifestRequest[];
|
|
16
22
|
export declare const testPostManifestRequest: PostManifestRequest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/manifests/post/request.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/manifests/post/request.ts"],"names":[],"mappings":";;;AA0BA,QAAQ;AACK,QAAA,uBAAuB,GAAwB;IAC1D,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE;QACL;YACE,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,OAAO;YACjB,OAAO,EAAE,EAAE;SACZ;QACD;YACE,MAAM,EAAE,MAAM;YACd,KAAK,EAAE,GAAG;YACV,OAAO,EAAE,EAAE;SACZ;QACD;YACE,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE,EAAE;SACZ;QACD;YACE,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE,EAAE;SACZ;QACD;YACE,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,EAAE;YACZ,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE,EAAE;SACZ;KACF;IACD,MAAM,EAAE;QACN;YACE,OAAO,EAAE,WAAW;YACpB,OAAO,EAAE,EAAE;SACZ;QACD;YACE,OAAO,EAAE,WAAW;YACpB,SAAS,EAAE,YAAY;YACvB,OAAO,EAAE,EAAE;SACZ;QACD;YACE,OAAO,EAAE,WAAW;YACpB,SAAS,EAAE,YAAY;YACvB,OAAO,EAAE,YAAY;SACtB;KACF;CACF,CAAA"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Manifest rules (MANIFEST_RULES.md): rules in a manifest that judge what was
|
|
3
|
+
* found, where the lines only count it.
|
|
4
|
+
*
|
|
5
|
+
* - A RELATION rule says what each item found needs alongside it: every
|
|
6
|
+
* Makita drill needs a Makita battery.
|
|
7
|
+
* - A READINESS rule is a readiness rule over the check's answers.
|
|
8
|
+
* - A SUITABILITY rule says what this manifest needs of each item it holds.
|
|
9
|
+
*
|
|
10
|
+
* A failed rule never blocks a check. It is an issue on the kit's readiness,
|
|
11
|
+
* at the rule's level.
|
|
12
|
+
*/
|
|
13
|
+
export declare type ManifestRuleKind = 'RELATION' | 'READINESS' | 'SUITABILITY';
|
|
14
|
+
/** `1` amber or `2` red, as on a readiness rule. */
|
|
15
|
+
export declare type ManifestRuleLevel = 1 | 2;
|
|
16
|
+
/**
|
|
17
|
+
* Which items a rule takes: the found items of `typeId` or of a type beneath
|
|
18
|
+
* it that pass `where`, an expression over each item's own values. An item
|
|
19
|
+
* with no value in a name the filter reads is left out.
|
|
20
|
+
*/
|
|
21
|
+
export interface IManifestRuleSide {
|
|
22
|
+
typeId: string;
|
|
23
|
+
where?: string;
|
|
24
|
+
}
|
|
25
|
+
/** A RELATION rule's `from` side: for every `every` items here (default 1)… */
|
|
26
|
+
export interface IManifestRuleFrom extends IManifestRuleSide {
|
|
27
|
+
every?: number;
|
|
28
|
+
}
|
|
29
|
+
/** …`needs` items on the `to` side (default 1). */
|
|
30
|
+
export interface IManifestRuleTo extends IManifestRuleSide {
|
|
31
|
+
needs?: number;
|
|
32
|
+
}
|
|
33
|
+
interface IManifestRuleBase {
|
|
34
|
+
/** Unique among the manifest's rules. It keys the rule's result. */
|
|
35
|
+
name: string;
|
|
36
|
+
level: ManifestRuleLevel;
|
|
37
|
+
/** The issue's reason, with `{Field}` placeholders. */
|
|
38
|
+
message: string;
|
|
39
|
+
/** The section the rule reports in. Without one it is about the whole
|
|
40
|
+
* check. It never limits which items the rule reads. */
|
|
41
|
+
section?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface IManifestRelationRule extends IManifestRuleBase {
|
|
44
|
+
kind: 'RELATION';
|
|
45
|
+
from: IManifestRuleFrom;
|
|
46
|
+
to: IManifestRuleTo;
|
|
47
|
+
/** Field names: a `to` item must hold the same value as its `from` item in
|
|
48
|
+
* each, compared as stored. */
|
|
49
|
+
match?: string[];
|
|
50
|
+
}
|
|
51
|
+
export interface IManifestReadinessRule extends IManifestRuleBase {
|
|
52
|
+
kind: 'READINESS';
|
|
53
|
+
/** Describes the problem: not ready when it is true. */
|
|
54
|
+
expression: string;
|
|
55
|
+
}
|
|
56
|
+
export interface IManifestSuitabilityRule extends IManifestRuleBase {
|
|
57
|
+
kind: 'SUITABILITY';
|
|
58
|
+
items: IManifestRuleSide;
|
|
59
|
+
/** Describes the problem: an item is not suitable when it is true. */
|
|
60
|
+
expression: string;
|
|
61
|
+
}
|
|
62
|
+
export declare type IManifestRule = IManifestRelationRule | IManifestReadinessRule | IManifestSuitabilityRule;
|
|
63
|
+
/** A value a rule read, kept as evidence: as stored, `null` when there was
|
|
64
|
+
* none. A multi-select is its ticked options. */
|
|
65
|
+
export declare type ManifestRuleValue = string | number | boolean | string[] | null;
|
|
66
|
+
/** One group of a RELATION rule's `from` items, by their `match` values. */
|
|
67
|
+
export interface IManifestRuleGroup {
|
|
68
|
+
/** The values the group matched on, as they were read. */
|
|
69
|
+
key: Record<string, ManifestRuleValue>;
|
|
70
|
+
/** The `from` items of the group, by asset id. */
|
|
71
|
+
from: string[];
|
|
72
|
+
/** How many `to` items the group needs. */
|
|
73
|
+
needed: number;
|
|
74
|
+
/** The `to` items it took, by asset id. */
|
|
75
|
+
taken: string[];
|
|
76
|
+
/** It took fewer than it needs. */
|
|
77
|
+
short?: true;
|
|
78
|
+
}
|
|
79
|
+
/** A `from` item a RELATION rule left without what it needs. */
|
|
80
|
+
export interface IManifestRuleUnmatched {
|
|
81
|
+
assetId: string;
|
|
82
|
+
assetName: string;
|
|
83
|
+
reason: string;
|
|
84
|
+
/** It has no value in a `match` field, so it could not be matched. */
|
|
85
|
+
blank?: true;
|
|
86
|
+
/** The index, in `groups`, of the short group it belongs to. */
|
|
87
|
+
group?: number;
|
|
88
|
+
}
|
|
89
|
+
/** An item a SUITABILITY rule found unsuitable. */
|
|
90
|
+
export interface IManifestRuleUnsuitable {
|
|
91
|
+
assetId: string;
|
|
92
|
+
assetName: string;
|
|
93
|
+
/** The values the expression read, as they were read. */
|
|
94
|
+
values: Record<string, ManifestRuleValue>;
|
|
95
|
+
reason: string;
|
|
96
|
+
/** Names the expression reads that the item has no value for. */
|
|
97
|
+
missingFields?: string[];
|
|
98
|
+
}
|
|
99
|
+
/** What one rule came to, on a check or over a kit's members. */
|
|
100
|
+
export interface IManifestRuleResult {
|
|
101
|
+
name: string;
|
|
102
|
+
kind: ManifestRuleKind;
|
|
103
|
+
section?: string;
|
|
104
|
+
/** `false` on a READINESS rule that was not evaluated: the check carried
|
|
105
|
+
* no answers. `triggered` and `passed` are then absent. */
|
|
106
|
+
evaluated?: false;
|
|
107
|
+
/**
|
|
108
|
+
* On a READINESS rule this check did not evaluate, while a failure of it
|
|
109
|
+
* from an earlier check still stands on the checked asset: that earlier
|
|
110
|
+
* check. `level` and `reason` are then that failure's. A level-2 failure
|
|
111
|
+
* carried this way counts against this check's verdict, since the check
|
|
112
|
+
* did nothing to clear it.
|
|
113
|
+
*/
|
|
114
|
+
carriedFrom?: string;
|
|
115
|
+
/** A RELATION or SUITABILITY rule is triggered when it found items to
|
|
116
|
+
* judge; a READINESS rule when its expression held. */
|
|
117
|
+
triggered?: boolean;
|
|
118
|
+
passed?: boolean;
|
|
119
|
+
/** The rule's level, on a rule that failed. */
|
|
120
|
+
level?: ManifestRuleLevel;
|
|
121
|
+
/** Why a READINESS rule failed, or why a rule could not be applied. */
|
|
122
|
+
reason?: string;
|
|
123
|
+
missingFields?: string[];
|
|
124
|
+
/** RELATION. */
|
|
125
|
+
groups?: IManifestRuleGroup[];
|
|
126
|
+
unmatched?: IManifestRuleUnmatched[];
|
|
127
|
+
/** SUITABILITY: the items judged, by asset id. */
|
|
128
|
+
judged?: string[];
|
|
129
|
+
unsuitable?: IManifestRuleUnsuitable[];
|
|
130
|
+
}
|
|
131
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rules.js","sourceRoot":"","sources":["../../src/manifests/rules.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReaderType, DeviceType } from '../readers';
|
|
2
|
+
import { TaskPreferences } from '../tasks/access';
|
|
2
3
|
/**
|
|
3
4
|
* UI preferences to streamline content and available fields
|
|
4
5
|
* to be only what is relevant for the given organisation
|
|
@@ -20,6 +21,13 @@ export interface SnapshotPreferences {
|
|
|
20
21
|
}
|
|
21
22
|
export interface WorkflowPreferences {
|
|
22
23
|
mainMenuEnabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The organisation's switch for workflows (contract workflows/workflow).
|
|
26
|
+
* Off or absent, none of them runs and their routes refuse; they are
|
|
27
|
+
* kept, and run again when it is switched on. The legacy snapshot email
|
|
28
|
+
* workflows do not depend on it.
|
|
29
|
+
*/
|
|
30
|
+
enabled?: boolean;
|
|
23
31
|
}
|
|
24
32
|
/**
|
|
25
33
|
* Org toggle for the usergroups feature set (field/action visibility +
|
|
@@ -38,6 +46,13 @@ export interface Preferences {
|
|
|
38
46
|
snapshots?: SnapshotPreferences;
|
|
39
47
|
workflows?: WorkflowPreferences;
|
|
40
48
|
usergroups?: UsergroupPreferences;
|
|
49
|
+
/**
|
|
50
|
+
* The organisation's switch for tasks. Off or absent: the task routes
|
|
51
|
+
* refuse, the saves complete nothing, and `GET /users/current` carries no
|
|
52
|
+
* `taskAccess`. Tasks already raised are kept and come back when it is
|
|
53
|
+
* switched on again.
|
|
54
|
+
*/
|
|
55
|
+
tasks?: TaskPreferences;
|
|
41
56
|
mainMenuLinks?: Array<{
|
|
42
57
|
label: string;
|
|
43
58
|
url: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/organisations/constants.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/organisations/constants.ts"],"names":[],"mappings":";;;AAuEA;;;;;;;GAOG;AACU,QAAA,6BAA6B,GAAG,kBAAkB,CAAA"}
|
|
@@ -70,6 +70,48 @@ export interface IReadinessIssue {
|
|
|
70
70
|
* action is still attached to the asset's type — so it can never dangle.
|
|
71
71
|
*/
|
|
72
72
|
action?: IReadinessIssueAction;
|
|
73
|
+
/**
|
|
74
|
+
* A MANIFEST rule's issue (MANIFEST_RULES.md §5.2): the manifest and the
|
|
75
|
+
* rule that raised it. `typeId` is then the asset's own type, since a
|
|
76
|
+
* manifest's rule belongs to no type. Also on the built-in manifest-status
|
|
77
|
+
* issue, where it names the manifest the last check was taken against.
|
|
78
|
+
*/
|
|
79
|
+
manifestId?: string;
|
|
80
|
+
ruleName?: string;
|
|
81
|
+
/**
|
|
82
|
+
* The check behind the issue. On a READINESS rule's issue: the check that
|
|
83
|
+
* raised it. It stands until the next check of that manifest, so this says
|
|
84
|
+
* what will clear it and how old it is. On the built-in manifest-status
|
|
85
|
+
* issue: the check that stamped the verdict.
|
|
86
|
+
*/
|
|
87
|
+
snapshotId?: string;
|
|
88
|
+
/** The item a RELATION or SUITABILITY rule's issue is about. The issue is
|
|
89
|
+
* the kit's, so `assetId` is the kit. */
|
|
90
|
+
itemId?: string;
|
|
91
|
+
itemName?: string;
|
|
92
|
+
/**
|
|
93
|
+
* On the built-in "Kit manifest not satisfied" issue: what the check's
|
|
94
|
+
* verdict rests on beyond its lines, in words: the level-2 rules that were
|
|
95
|
+
* not met. `reason` stays one of the three fixed strings clients know.
|
|
96
|
+
*/
|
|
97
|
+
summary?: string;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* A READINESS rule's failure, held on the asset from the latest check of its
|
|
101
|
+
* manifest (MANIFEST_RULES.md §5.2). Written only by a check, and replaced
|
|
102
|
+
* by the next check of the same manifest. The asset's `readiness` renders
|
|
103
|
+
* each one as an issue while the asset can still be checked against that
|
|
104
|
+
* manifest; they are returned beside it so a client that predicts readiness
|
|
105
|
+
* builds it from what the server does.
|
|
106
|
+
*/
|
|
107
|
+
export interface IHeldRuleIssue {
|
|
108
|
+
manifestId: string;
|
|
109
|
+
ruleName: string;
|
|
110
|
+
/** The check that raised it. */
|
|
111
|
+
snapshotId: string;
|
|
112
|
+
level: ReadinessLevel;
|
|
113
|
+
reason: string;
|
|
114
|
+
missingFields?: string[];
|
|
73
115
|
}
|
|
74
116
|
/** Stored/returned readiness for an asset. */
|
|
75
117
|
export interface IReadiness {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { IEmbeddedEntity, IEntityMeta, IReadiness } from '../../shared';
|
|
2
|
-
import { GetManifestResponse, IManifestAsset, IManifestType } from '../../manifests';
|
|
2
|
+
import { GetManifestResponse, IManifestAsset, IManifestRuleResult, IManifestType } from '../../manifests';
|
|
3
3
|
import { Point } from 'geojson';
|
|
4
4
|
import { GetTypeResponse, IFieldValue } from '../../types';
|
|
5
5
|
import { SnapshotTypeEnum } from '../get';
|
|
6
|
+
import { ISubmissionAttachment, ISubmissionWriteBackAudit } from '../../submissions/shared';
|
|
6
7
|
export interface IManifestTypeExtended extends IManifestType {
|
|
7
8
|
c_detected?: number;
|
|
8
9
|
c_sighted?: number;
|
|
@@ -106,6 +107,9 @@ export interface ISnapshotComputed {
|
|
|
106
107
|
countTypes: number;
|
|
107
108
|
countAssets: number;
|
|
108
109
|
};
|
|
110
|
+
/** How many of the manifest copy's rules failed at this check, at either
|
|
111
|
+
* level. Present only on a check whose copy has rules. */
|
|
112
|
+
rulesFailed?: number;
|
|
109
113
|
}
|
|
110
114
|
export interface ISnapshotFields {
|
|
111
115
|
notes?: string;
|
|
@@ -209,6 +213,43 @@ export interface GetSnapshotResponse {
|
|
|
209
213
|
* stamped not satisfied (2). Frozen history: the asset's live status may
|
|
210
214
|
* later change, this flag never does. Server-owned. */
|
|
211
215
|
c_satisfiesManifest?: boolean;
|
|
216
|
+
/** The ULID the client sent with this snapshot, when it sent one — the key
|
|
217
|
+
* a repeat of the same `POST /snapshots` is recognised by. */
|
|
218
|
+
clientReference?: string;
|
|
219
|
+
/** The task the snapshot was taken for, when it named one. */
|
|
220
|
+
taskId?: string;
|
|
221
|
+
/**
|
|
222
|
+
* The answers the check recorded to the form items of its manifest copy, in
|
|
223
|
+
* the items' order: what the checker entered, and the values the server
|
|
224
|
+
* injected (CONTEXT) or derived (COMPUTED), which carry `computed: true`.
|
|
225
|
+
* An item that was not shown has no entry, and neither has an unanswered
|
|
226
|
+
* optional one.
|
|
227
|
+
*/
|
|
228
|
+
fieldValues?: IFieldValue[];
|
|
229
|
+
/** The files captured for the copy's signature and photo blocks. */
|
|
230
|
+
attachments?: ISubmissionAttachment[];
|
|
231
|
+
/**
|
|
232
|
+
* What the check wrote to the checked asset: one entry per `writeBack`
|
|
233
|
+
* item of the copy, applied with the value written and the value it
|
|
234
|
+
* replaced, or skipped with the reason.
|
|
235
|
+
*/
|
|
236
|
+
writeBack?: ISnapshotWriteBackAudit[];
|
|
237
|
+
/**
|
|
238
|
+
* Present on a check whose manifest has form items. `true`: every required
|
|
239
|
+
* item that was shown has its answer. `false`: the check is recorded
|
|
240
|
+
* without them — it came from a client that predates form items, or lacked
|
|
241
|
+
* a required answer — and it wrote nothing to the asset.
|
|
242
|
+
*/
|
|
243
|
+
answersComplete?: boolean;
|
|
244
|
+
/**
|
|
245
|
+
* What each rule of the manifest copy came to at this check, in the rules'
|
|
246
|
+
* order (MANIFEST_RULES.md §5.1). Worked out by the server from the items
|
|
247
|
+
* the check's lines counted and from its answers; a client's own results
|
|
248
|
+
* are never taken. The values each rule read are kept as evidence, so a
|
|
249
|
+
* recorded check still explains itself after a brand or a capacity is
|
|
250
|
+
* edited. Present only on a check whose copy has rules.
|
|
251
|
+
*/
|
|
252
|
+
ruleResults?: IManifestRuleResult[];
|
|
212
253
|
geolocation?: Point;
|
|
213
254
|
timezone?: string;
|
|
214
255
|
types?: Omit<GetTypeResponse & {
|
|
@@ -219,6 +260,11 @@ export interface GetSnapshotResponse {
|
|
|
219
260
|
}, 'manifest'>[];
|
|
220
261
|
type: SnapshotTypeEnum;
|
|
221
262
|
}
|
|
263
|
+
/** A check's write-back audit: a submission's, with the id of the field the
|
|
264
|
+
* item binds. */
|
|
265
|
+
export interface ISnapshotWriteBackAudit extends ISubmissionWriteBackAudit {
|
|
266
|
+
fieldId?: string;
|
|
267
|
+
}
|
|
222
268
|
export interface GetSnapshotsItem {
|
|
223
269
|
id: string;
|
|
224
270
|
/** Submitting user; `type` is the account kind (e.g. `INTERNAL`). */
|
|
@@ -248,6 +294,9 @@ export interface GetSnapshotsItem {
|
|
|
248
294
|
* `GetSnapshotResponse['c_satisfiesManifest']`. Present on list rows so
|
|
249
295
|
* the snapshot filters can ask it. */
|
|
250
296
|
c_satisfiesManifest?: boolean;
|
|
297
|
+
/** See `GetSnapshotResponse['answersComplete']`. Present on list rows so a
|
|
298
|
+
* list can mark a check that was recorded without its answers. */
|
|
299
|
+
answersComplete?: boolean;
|
|
251
300
|
geolocation?: Point;
|
|
252
301
|
timezone?: string;
|
|
253
302
|
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":";;;AAiVA,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"}
|