@spotto/contract 1.0.69-alpha.1 → 1.0.69-alpha.12
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/README.md +33 -33
- package/dist/assets/get/query.d.ts +9 -3
- package/dist/events/get/response.d.ts +11 -11
- package/dist/fields/constants.d.ts +1 -1
- package/dist/fields/constants.js +24 -19
- package/dist/fields/constants.js.map +1 -1
- package/dist/organisations/constants.d.ts +0 -1
- package/dist/snapshots/[id]/get.d.ts +17 -1
- package/dist/snapshots/[id]/get.js +1 -0
- package/dist/snapshots/[id]/get.js.map +1 -1
- package/dist/snapshots/get/query.d.ts +2 -2
- package/dist/snapshots/post/request.d.ts +10 -2
- package/dist/snapshots/post/request.js.map +1 -1
- package/dist/types/[id]/get.d.ts +0 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
# README
|
|
2
|
-
|
|
3
|
-
This repository is a source of truth / documentation for the spotto-api.
|
|
4
|
-
|
|
5
|
-
The repository consists of a series of typescript classes that document the API contract
|
|
6
|
-
between the spotto API and its clients
|
|
7
|
-
|
|
8
|
-
### How do I get set up?
|
|
9
|
-
|
|
10
|
-
1. Clone this repository
|
|
11
|
-
1. yarn install
|
|
12
|
-
1. run 'yarn start' to start a documentation server
|
|
13
|
-
|
|
14
|
-
### Contribution guidelines
|
|
15
|
-
|
|
16
|
-
When adding endpoints create a new folder / file for your endpoint.
|
|
17
|
-
Fill out file using others as a guide.
|
|
18
|
-
|
|
19
|
-
Any response and request shapes should be specified in the /types folder. The documentation server
|
|
20
|
-
is sometimes unable to understand more complicated interfaces. In these scenarios please create two
|
|
21
|
-
types files, one with a logical working type that can be used by other repositories. The other will
|
|
22
|
-
be simply for filling the response server.
|
|
23
|
-
|
|
24
|
-
Any documentation specific types files should have the suffix 'Docs' within the same folder. e.g.
|
|
25
|
-
|
|
26
|
-
- types
|
|
27
|
-
- objects
|
|
28
|
-
- objectTypes.ts
|
|
29
|
-
- objectTypesDocs.ts
|
|
30
|
-
|
|
31
|
-
### Who do I talk to?
|
|
32
|
-
|
|
33
|
-
- Repo owner or admin
|
|
1
|
+
# README
|
|
2
|
+
|
|
3
|
+
This repository is a source of truth / documentation for the spotto-api.
|
|
4
|
+
|
|
5
|
+
The repository consists of a series of typescript classes that document the API contract
|
|
6
|
+
between the spotto API and its clients
|
|
7
|
+
|
|
8
|
+
### How do I get set up?
|
|
9
|
+
|
|
10
|
+
1. Clone this repository
|
|
11
|
+
1. yarn install
|
|
12
|
+
1. run 'yarn start' to start a documentation server
|
|
13
|
+
|
|
14
|
+
### Contribution guidelines
|
|
15
|
+
|
|
16
|
+
When adding endpoints create a new folder / file for your endpoint.
|
|
17
|
+
Fill out file using others as a guide.
|
|
18
|
+
|
|
19
|
+
Any response and request shapes should be specified in the /types folder. The documentation server
|
|
20
|
+
is sometimes unable to understand more complicated interfaces. In these scenarios please create two
|
|
21
|
+
types files, one with a logical working type that can be used by other repositories. The other will
|
|
22
|
+
be simply for filling the response server.
|
|
23
|
+
|
|
24
|
+
Any documentation specific types files should have the suffix 'Docs' within the same folder. e.g.
|
|
25
|
+
|
|
26
|
+
- types
|
|
27
|
+
- objects
|
|
28
|
+
- objectTypes.ts
|
|
29
|
+
- objectTypesDocs.ts
|
|
30
|
+
|
|
31
|
+
### Who do I talk to?
|
|
32
|
+
|
|
33
|
+
- Repo owner or admin
|
|
@@ -7,16 +7,22 @@ export declare type AssetLocationStatus = 'NEVERSEEN' | 'UNKNOWN' | 'HOME' | 'AW
|
|
|
7
7
|
declare type _CustomFieldsAssetFilterBase = {
|
|
8
8
|
id: string;
|
|
9
9
|
};
|
|
10
|
-
declare type CustomFieldsAssetFilterValue = _CustomFieldsAssetFilterBase & {
|
|
10
|
+
export declare type CustomFieldsAssetFilterValue = _CustomFieldsAssetFilterBase & {
|
|
11
11
|
values: any[];
|
|
12
12
|
};
|
|
13
|
-
declare type CustomFieldsAssetFilterDateRange = _CustomFieldsAssetFilterBase & {
|
|
13
|
+
export declare type CustomFieldsAssetFilterDateRange = _CustomFieldsAssetFilterBase & {
|
|
14
14
|
from: string;
|
|
15
15
|
to: string;
|
|
16
16
|
};
|
|
17
|
-
export declare type
|
|
17
|
+
export declare type CustomFieldsAssetFilterNumberRange = _CustomFieldsAssetFilterBase & {
|
|
18
|
+
from: number;
|
|
19
|
+
to: number;
|
|
20
|
+
};
|
|
21
|
+
export declare type CustomFieldsAssetFilter = CustomFieldsAssetFilterValue | CustomFieldsAssetFilterDateRange | CustomFieldsAssetFilterNumberRange;
|
|
18
22
|
export declare type CustomFieldValues = {
|
|
19
23
|
values?: Array<CustomFieldsAssetFilterValue>;
|
|
24
|
+
integerRanges?: Array<CustomFieldsAssetFilterNumberRange>;
|
|
25
|
+
decimalRanges?: Array<CustomFieldsAssetFilterNumberRange>;
|
|
20
26
|
dateRanges?: Array<CustomFieldsAssetFilterDateRange>;
|
|
21
27
|
dateTimeRanges?: Array<CustomFieldsAssetFilterDateRange>;
|
|
22
28
|
};
|
|
@@ -6,19 +6,19 @@ import { LocationType } from '../../locations/constants';
|
|
|
6
6
|
import { GetSnapshotResponse } from '../../snapshots';
|
|
7
7
|
import { ExecutedWorkflow } from '../../workflows';
|
|
8
8
|
import { GetAssetResponse } from '../../assets';
|
|
9
|
-
export interface EventLocation
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export interface AssetEventLocation extends Partial<IEmbeddedEntity> {
|
|
14
|
-
type: LocationType;
|
|
9
|
+
export interface EventLocation {
|
|
10
|
+
id?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
type?: LocationType;
|
|
15
13
|
organisation?: IEmbeddedEntity;
|
|
16
|
-
withAsset?: IEmbeddedEntity;
|
|
17
14
|
locationGPS?: {
|
|
18
15
|
type: 'Point';
|
|
19
16
|
coordinates: [number, number];
|
|
20
17
|
};
|
|
21
18
|
}
|
|
19
|
+
export interface AssetEventLocation extends EventLocation {
|
|
20
|
+
withAsset?: IEmbeddedEntity;
|
|
21
|
+
}
|
|
22
22
|
export interface IBaseEvent {
|
|
23
23
|
id: string;
|
|
24
24
|
timestamp: number;
|
|
@@ -43,9 +43,9 @@ export interface IReaderEventPayload {
|
|
|
43
43
|
deviceType?: DeviceType;
|
|
44
44
|
network?: string;
|
|
45
45
|
deviceId?: string;
|
|
46
|
-
location?:
|
|
46
|
+
location?: EventLocation;
|
|
47
47
|
}
|
|
48
|
-
export declare type ISnapshotEventPayload = Pick<GetSnapshotResponse, 'reader' | 'manifest' | 'detectedAssets' | 'sightedTypes' | 'sightedAssets' | 'computed' | 'fields' | 'submitted' | 'created' | 'geolocation'>;
|
|
48
|
+
export declare type ISnapshotEventPayload = Pick<GetSnapshotResponse, 'reader' | 'manifest' | 'detectedAssets' | 'undetectedAssets' | 'sightedTypes' | 'sightedAssets' | 'computed' | 'fields' | 'submitted' | 'created' | 'geolocation' | 'types' | 'type'>;
|
|
49
49
|
export interface IAssetCrudEvent extends IBaseEvent {
|
|
50
50
|
type: AssetCrudEventType;
|
|
51
51
|
asset: GetAssetResponse | IEmbeddedEntity;
|
|
@@ -99,12 +99,12 @@ export interface IExitedEvent extends IBaseEvent {
|
|
|
99
99
|
}
|
|
100
100
|
export interface IReaderArrivedEvent extends IBaseEvent {
|
|
101
101
|
type: 'ReaderArrived';
|
|
102
|
-
location
|
|
102
|
+
location?: EventLocation;
|
|
103
103
|
reader: IEmbeddedEntity;
|
|
104
104
|
}
|
|
105
105
|
export interface IReaderExitedEvent extends IBaseEvent {
|
|
106
106
|
type: 'ReaderExited';
|
|
107
|
-
location
|
|
107
|
+
location?: EventLocation;
|
|
108
108
|
reader: IEmbeddedEntity;
|
|
109
109
|
}
|
|
110
110
|
export interface IMovedEvent extends IBaseEvent {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare type FieldDataType = 'STRING' | 'INTEGER' | 'DECIMAL' | 'BOOLEAN' | 'DATE' | 'DATETIME';
|
|
2
2
|
export declare const FIELD_DATA_TYPES: FieldDataType[];
|
|
3
|
-
export declare type FieldInputType = 'SINGLELINE' | 'MULTILINE' | 'LINK' | 'RICHTEXT' | 'DROPDOWN' | 'RADIO' | 'CHECKBOXES' | 'DATE' | 'DATETIME';
|
|
3
|
+
export declare type FieldInputType = 'SINGLELINE' | 'MULTILINE' | 'LINK' | 'RICHTEXT' | 'DROPDOWN' | 'RADIO' | 'CHECKBOXES' | 'DATE' | 'DATETIME' | 'INTEGER' | 'DECIMAL' | 'SWITCH';
|
|
4
4
|
export declare const FIELD_INPUT_TYPES: FieldInputType[];
|
package/dist/fields/constants.js
CHANGED
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FIELD_INPUT_TYPES = exports.FIELD_DATA_TYPES = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
exports.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
4
|
+
const dataTypes = {
|
|
5
|
+
STRING: null,
|
|
6
|
+
INTEGER: null,
|
|
7
|
+
DECIMAL: null,
|
|
8
|
+
BOOLEAN: null,
|
|
9
|
+
DATE: null,
|
|
10
|
+
DATETIME: null,
|
|
11
|
+
};
|
|
12
|
+
exports.FIELD_DATA_TYPES = Object.keys(dataTypes);
|
|
13
|
+
const inputTypes = {
|
|
14
|
+
SINGLELINE: null,
|
|
15
|
+
MULTILINE: null,
|
|
16
|
+
LINK: null,
|
|
17
|
+
RICHTEXT: null,
|
|
18
|
+
DROPDOWN: null,
|
|
19
|
+
RADIO: null,
|
|
20
|
+
CHECKBOXES: null,
|
|
21
|
+
DATE: null,
|
|
22
|
+
DATETIME: null,
|
|
23
|
+
INTEGER: null,
|
|
24
|
+
DECIMAL: null,
|
|
25
|
+
SWITCH: null,
|
|
26
|
+
};
|
|
27
|
+
exports.FIELD_INPUT_TYPES = Object.keys(inputTypes);
|
|
23
28
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/fields/constants.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/fields/constants.ts"],"names":[],"mappings":";;;AAQA,MAAM,SAAS,GAAqC;IAClD,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI;IACb,IAAI,EAAE,IAAI;IACV,QAAQ,EAAE,IAAI;CACf,CAAA;AAEY,QAAA,gBAAgB,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,CAAoB,CAAA;AAgBzE,MAAM,UAAU,GAAsC;IACpD,UAAU,EAAE,IAAI;IAChB,SAAS,EAAE,IAAI;IACf,IAAI,EAAE,IAAI;IACV,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,IAAI;IAChB,IAAI,EAAE,IAAI;IACV,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI;IACb,MAAM,EAAE,IAAI;CACb,CAAA;AAEY,QAAA,iBAAiB,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAqB,CAAA"}
|
|
@@ -2,6 +2,7 @@ import { IEmbeddedEntity, IEntityMeta } from '../../shared';
|
|
|
2
2
|
import { GetManifestResponse, IManifestAsset, IManifestType } from '../../manifests';
|
|
3
3
|
import { Point } from 'geojson';
|
|
4
4
|
import { GetTypeResponse, IFieldValue } from '../../types';
|
|
5
|
+
import { SnapshotTypeEnum } from '../get';
|
|
5
6
|
export interface IManifestTypeExtended extends IManifestType {
|
|
6
7
|
c_detected?: number;
|
|
7
8
|
c_sighted?: number;
|
|
@@ -28,6 +29,12 @@ export interface ISnapshotDetectedAsset extends ISnapshotType {
|
|
|
28
29
|
c_additional?: boolean;
|
|
29
30
|
fieldValues?: IFieldValue[];
|
|
30
31
|
}
|
|
32
|
+
export interface ISnapshotUndetectedAsset extends ISnapshotType {
|
|
33
|
+
assetId: string;
|
|
34
|
+
assetName?: string;
|
|
35
|
+
section?: string;
|
|
36
|
+
fieldValues?: IFieldValue[];
|
|
37
|
+
}
|
|
31
38
|
export interface ISnapshotSightedType extends ISnapshotType {
|
|
32
39
|
section?: string;
|
|
33
40
|
count: number;
|
|
@@ -40,6 +47,12 @@ export interface ISnapshotSightedAsset extends ISnapshotType {
|
|
|
40
47
|
c_ignored?: boolean;
|
|
41
48
|
fieldValues?: IFieldValue[];
|
|
42
49
|
}
|
|
50
|
+
export interface ISnapshotUndetectedAsset extends ISnapshotType {
|
|
51
|
+
assetId: string;
|
|
52
|
+
assetName?: string;
|
|
53
|
+
section?: string;
|
|
54
|
+
fieldValues?: IFieldValue[];
|
|
55
|
+
}
|
|
43
56
|
export interface ISnapshotComputed {
|
|
44
57
|
missingTotal: number;
|
|
45
58
|
sightedTotal: number;
|
|
@@ -73,6 +86,7 @@ export interface GetSnapshotResponse {
|
|
|
73
86
|
asset?: IEmbeddedEntity & ISnapshotType;
|
|
74
87
|
manifest?: GetManifestResponseExtended;
|
|
75
88
|
detectedAssets?: ISnapshotDetectedAsset[];
|
|
89
|
+
undetectedAssets?: ISnapshotUndetectedAsset[];
|
|
76
90
|
sightedTypes?: ISnapshotSightedType[];
|
|
77
91
|
sightedAssets?: ISnapshotSightedAsset[];
|
|
78
92
|
computed?: ISnapshotComputed;
|
|
@@ -82,12 +96,13 @@ export interface GetSnapshotResponse {
|
|
|
82
96
|
meta?: IEntityMeta;
|
|
83
97
|
geolocation?: Point;
|
|
84
98
|
timezone?: string;
|
|
85
|
-
types?: Omit<GetTypeResponse
|
|
99
|
+
types?: Omit<GetTypeResponse & {
|
|
86
100
|
meta?: {
|
|
87
101
|
created: number;
|
|
88
102
|
updated: number;
|
|
89
103
|
};
|
|
90
104
|
}, 'manifest'>[];
|
|
105
|
+
type: SnapshotTypeEnum;
|
|
91
106
|
}
|
|
92
107
|
export interface GetSnapshotsItem {
|
|
93
108
|
id: string;
|
|
@@ -104,6 +119,7 @@ export interface GetSnapshotsItem {
|
|
|
104
119
|
created: number;
|
|
105
120
|
geolocation?: Point;
|
|
106
121
|
timezone?: string;
|
|
122
|
+
type: SnapshotTypeEnum;
|
|
107
123
|
}
|
|
108
124
|
export declare const testGetSnapshotRequest: GetSnapshotResponse;
|
|
109
125
|
export {};
|
|
@@ -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":";;;AA6IA,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"}
|
|
@@ -2,7 +2,7 @@ import { SortOrders } from '../../shared';
|
|
|
2
2
|
export declare type SnapshotSortField = 'created' | 'submitted';
|
|
3
3
|
export declare const snapshotSortFields: SnapshotSortField[];
|
|
4
4
|
export declare type SnapshotEmbedField = 'meta';
|
|
5
|
-
export declare type
|
|
5
|
+
export declare type SnapshotTypeEnum = 'Inventory' | 'Stocktake' | 'Dispatch';
|
|
6
6
|
export interface SnapshotFilters {
|
|
7
7
|
ids?: string[];
|
|
8
8
|
locationIds?: string[];
|
|
@@ -12,7 +12,7 @@ export interface SnapshotFilters {
|
|
|
12
12
|
readerIds?: string[];
|
|
13
13
|
timeFrom?: number;
|
|
14
14
|
timeTo?: number;
|
|
15
|
-
snapshotType?:
|
|
15
|
+
snapshotType?: SnapshotTypeEnum[];
|
|
16
16
|
locationPathBeginsWith?: string[];
|
|
17
17
|
typePathBeginsWith?: string[];
|
|
18
18
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Point } from 'geojson';
|
|
2
|
-
import { ISnapshotType, ISnapshotDetectedAsset, ISnapshotSightedType, ISnapshotSightedAsset, ISnapshotFields } from '../[id]/get';
|
|
2
|
+
import { ISnapshotType, ISnapshotDetectedAsset, ISnapshotSightedType, ISnapshotSightedAsset, ISnapshotFields, ISnapshotUndetectedAsset } from '../[id]/get';
|
|
3
3
|
import { GetManifestResponse } from '../../manifests';
|
|
4
4
|
import { IEmbeddedEntity } from '../../shared/embed';
|
|
5
5
|
import { GetTypeResponse } from '../../types';
|
|
6
|
+
import { SnapshotTypeEnum } from '../get';
|
|
6
7
|
export interface PostSnapshotRequest {
|
|
7
8
|
reader?: IEmbeddedEntity;
|
|
8
9
|
location?: IEmbeddedEntity & {
|
|
@@ -12,12 +13,19 @@ export interface PostSnapshotRequest {
|
|
|
12
13
|
geolocation?: Point;
|
|
13
14
|
manifest?: GetManifestResponse;
|
|
14
15
|
detectedAssets?: ISnapshotDetectedAsset[];
|
|
16
|
+
undetectedAssets?: ISnapshotUndetectedAsset[];
|
|
15
17
|
sightedTypes?: ISnapshotSightedType[];
|
|
16
18
|
sightedAssets?: ISnapshotSightedAsset[];
|
|
17
19
|
fields?: ISnapshotFields;
|
|
18
20
|
submitted?: number;
|
|
19
21
|
timezone?: string;
|
|
20
|
-
types?: Omit<GetTypeResponse
|
|
22
|
+
types?: Omit<GetTypeResponse & {
|
|
23
|
+
meta?: {
|
|
24
|
+
created: number;
|
|
25
|
+
updated: number;
|
|
26
|
+
};
|
|
27
|
+
}, 'manifest'>[];
|
|
28
|
+
type?: SnapshotTypeEnum;
|
|
21
29
|
}
|
|
22
30
|
export declare type PostSnapshotsRequest = PostSnapshotRequest[];
|
|
23
31
|
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":";;;AAoCA,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,M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,uBAAuB;YACjC,QAAQ,EAAE,YAAY;YACtB,OAAO,EAAE,gBAAgB;SAC1B;QACD;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/dist/types/[id]/get.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { GetFieldResponse } from '../../fields/[id]/get';
|
|
2
|
-
import { GetManifestResponse } from '../../manifests';
|
|
3
2
|
import { IEmbeddedEntity } from '../../shared';
|
|
4
3
|
export interface IFieldValue {
|
|
5
4
|
id: string;
|
|
@@ -36,6 +35,5 @@ export interface GetTypeResponse {
|
|
|
36
35
|
*/
|
|
37
36
|
manifestId?: string;
|
|
38
37
|
manifestIds?: string[];
|
|
39
|
-
manifest?: GetManifestResponse;
|
|
40
38
|
supportsStocktake?: boolean;
|
|
41
39
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spotto/contract",
|
|
3
3
|
"license": "ISC",
|
|
4
|
-
"version": "1.0.69-alpha.
|
|
4
|
+
"version": "1.0.69-alpha.12",
|
|
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": "f120b4dd5677fd5eae73743761a274e0df05bc94"
|
|
22
22
|
}
|