@spotto/contract 1.0.65-alpha.3 → 1.0.66-alpha.10
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 +10 -0
- package/dist/assets/get/query.d.ts +1 -0
- package/dist/assets/post/request.js +1 -1
- package/dist/events/constants.js +2 -2
- package/dist/fields/constants.js +2 -2
- package/dist/fields/post/request.js +1 -1
- package/dist/locations/constants.js +1 -1
- package/dist/manifests/[id]/get.js +6 -6
- package/dist/manifests/[id]/patch/request.js +10 -10
- package/dist/manifests/post/request.js +11 -11
- package/dist/organisations/constants.d.ts +4 -0
- package/dist/readers/constants/deviceTypes.js +16 -16
- package/dist/readers/constants/types.js +4 -4
- package/dist/shared/sort.js +2 -2
- package/dist/shared/timezone.js +1 -1
- package/dist/snapshots/[id]/get.d.ts +12 -13
- package/dist/snapshots/[id]/get.js +7 -6
- package/dist/snapshots/[id]/get.js.map +1 -1
- package/dist/snapshots/get/query.d.ts +2 -0
- package/dist/snapshots/post/request.d.ts +3 -2
- package/dist/snapshots/post/request.js +40 -40
- package/dist/snapshots/post/request.js.map +1 -1
- package/dist/types/[id]/get.d.ts +1 -0
- package/dist/types/[id]/patch/request.d.ts +1 -0
- package/dist/types/hierarchy/response.js +6 -6
- package/dist/types/post/request.d.ts +1 -0
- package/dist/types/post/request.js +6 -5
- package/dist/types/post/request.js.map +1 -1
- package/dist/workflows/index.d.ts +6 -3
- package/package.json +2 -2
|
@@ -17,6 +17,16 @@ export interface ILastLocation {
|
|
|
17
17
|
geolocation?: Point;
|
|
18
18
|
organisation?: IEmbeddedEntity;
|
|
19
19
|
status: LocationStatus;
|
|
20
|
+
supportsWith?: boolean;
|
|
21
|
+
withAsset?: {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
};
|
|
25
|
+
nearReader?: {
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
type?: LocationType;
|
|
29
|
+
};
|
|
20
30
|
}
|
|
21
31
|
export interface ICandidateLocation extends IEmbeddedEntity {
|
|
22
32
|
type: LocationType;
|
package/dist/events/constants.js
CHANGED
|
@@ -6,7 +6,7 @@ exports.EVENT_COUNT_BREAKDOWN = [
|
|
|
6
6
|
'week',
|
|
7
7
|
'month',
|
|
8
8
|
'day',
|
|
9
|
-
'hour'
|
|
9
|
+
'hour',
|
|
10
10
|
];
|
|
11
11
|
exports.EVENT_TYPES = [
|
|
12
12
|
'ReaderArrived',
|
|
@@ -29,6 +29,6 @@ exports.EVENT_TYPES = [
|
|
|
29
29
|
'SnapshotCreated',
|
|
30
30
|
'SnapshotDeleted',
|
|
31
31
|
'UserSearch',
|
|
32
|
-
'WorkflowActionExecuted'
|
|
32
|
+
'WorkflowActionExecuted',
|
|
33
33
|
];
|
|
34
34
|
//# sourceMappingURL=constants.js.map
|
package/dist/fields/constants.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.FIELD_DATA_TYPES = [
|
|
|
7
7
|
'DECIMAL',
|
|
8
8
|
'BOOLEAN',
|
|
9
9
|
'DATE',
|
|
10
|
-
'DATETIME'
|
|
10
|
+
'DATETIME',
|
|
11
11
|
];
|
|
12
12
|
exports.FIELD_INPUT_TYPES = [
|
|
13
13
|
'SINGLELINE',
|
|
@@ -18,6 +18,6 @@ exports.FIELD_INPUT_TYPES = [
|
|
|
18
18
|
'RADIO',
|
|
19
19
|
'CHECKBOXES',
|
|
20
20
|
'DATE',
|
|
21
|
-
'DATETIME'
|
|
21
|
+
'DATETIME',
|
|
22
22
|
];
|
|
23
23
|
//# sourceMappingURL=constants.js.map
|
|
@@ -9,19 +9,19 @@ exports.testGetManifestRequest = {
|
|
|
9
9
|
{
|
|
10
10
|
typeId: '2345',
|
|
11
11
|
typePath: 'type|path|',
|
|
12
|
-
section: 'dewdede'
|
|
12
|
+
section: 'dewdede',
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
typeId: '2345',
|
|
16
16
|
typePath: 'type|path|',
|
|
17
17
|
count: 123,
|
|
18
|
-
section: 'fefverver'
|
|
18
|
+
section: 'fefverver',
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
typeId: '2345',
|
|
22
22
|
typePath: 'type|path|',
|
|
23
23
|
countMin: 44,
|
|
24
|
-
section: ''
|
|
24
|
+
section: '',
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
typeId: '2345',
|
|
@@ -29,10 +29,10 @@ exports.testGetManifestRequest = {
|
|
|
29
29
|
countMin: 12,
|
|
30
30
|
countMax: 34,
|
|
31
31
|
untagged: true,
|
|
32
|
-
section: '234'
|
|
33
|
-
}
|
|
32
|
+
section: '234',
|
|
33
|
+
},
|
|
34
34
|
],
|
|
35
35
|
typesCount: 4,
|
|
36
|
-
assetsCount: 0
|
|
36
|
+
assetsCount: 0,
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=get.js.map
|
|
@@ -6,40 +6,40 @@ exports.testUpdatetManifestRequest = {
|
|
|
6
6
|
types: [
|
|
7
7
|
{
|
|
8
8
|
typeId: '2345',
|
|
9
|
-
section: ''
|
|
9
|
+
section: '',
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
typeId: '2345',
|
|
13
13
|
count: 123,
|
|
14
|
-
section: ''
|
|
14
|
+
section: '',
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
typeId: '2345',
|
|
18
18
|
countMin: 44,
|
|
19
|
-
section: ''
|
|
19
|
+
section: '',
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
typeId: '2345',
|
|
23
23
|
countMin: 12,
|
|
24
24
|
countMax: 34,
|
|
25
|
-
section: ''
|
|
26
|
-
}
|
|
25
|
+
section: '',
|
|
26
|
+
},
|
|
27
27
|
],
|
|
28
28
|
assets: [
|
|
29
29
|
{
|
|
30
30
|
assetId: '123456789',
|
|
31
|
-
section: ''
|
|
31
|
+
section: '',
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
assetId: '123456789',
|
|
35
35
|
assetName: 'Hammer 1kg',
|
|
36
|
-
section: ''
|
|
36
|
+
section: '',
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
assetId: '123456789',
|
|
40
40
|
assetName: 'Hammer 1kg',
|
|
41
|
-
section: 'Back Shelf'
|
|
42
|
-
}
|
|
43
|
-
]
|
|
41
|
+
section: 'Back Shelf',
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
44
|
};
|
|
45
45
|
//# sourceMappingURL=request.js.map
|
|
@@ -7,45 +7,45 @@ exports.testPostManifestRequest = {
|
|
|
7
7
|
{
|
|
8
8
|
typeId: '2345',
|
|
9
9
|
typePath: 'efefe',
|
|
10
|
-
section: ''
|
|
10
|
+
section: '',
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
typeId: '2345',
|
|
14
14
|
count: 123,
|
|
15
|
-
section: ''
|
|
15
|
+
section: '',
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
typeId: '2345',
|
|
19
19
|
countMin: 44,
|
|
20
|
-
section: ''
|
|
20
|
+
section: '',
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
typeId: '2345',
|
|
24
24
|
countMax: 45,
|
|
25
|
-
section: ''
|
|
25
|
+
section: '',
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
typeId: '2345',
|
|
29
29
|
countMin: 12,
|
|
30
30
|
countMax: 34,
|
|
31
|
-
section: ''
|
|
32
|
-
}
|
|
31
|
+
section: '',
|
|
32
|
+
},
|
|
33
33
|
],
|
|
34
34
|
assets: [
|
|
35
35
|
{
|
|
36
36
|
assetId: '123456789',
|
|
37
|
-
section: ''
|
|
37
|
+
section: '',
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
assetId: '123456789',
|
|
41
41
|
assetName: 'Hammer 1kg',
|
|
42
|
-
section: ''
|
|
42
|
+
section: '',
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
assetId: '123456789',
|
|
46
46
|
assetName: 'Hammer 1kg',
|
|
47
|
-
section: 'Back Shelf'
|
|
48
|
-
}
|
|
49
|
-
]
|
|
47
|
+
section: 'Back Shelf',
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
50
|
};
|
|
51
51
|
//# sourceMappingURL=request.js.map
|
|
@@ -24,5 +24,9 @@ export interface Preferences {
|
|
|
24
24
|
locations: LocationPreferences;
|
|
25
25
|
snapshots?: SnapshotPreferences;
|
|
26
26
|
workflows?: WorkflowPreferences;
|
|
27
|
+
mainMenuLinks?: Array<{
|
|
28
|
+
label: string;
|
|
29
|
+
url: string;
|
|
30
|
+
}>;
|
|
27
31
|
}
|
|
28
32
|
export declare type Tenant = 'g2g' | 'spotto';
|
|
@@ -15,7 +15,7 @@ exports.DEVICE_TYPES = [
|
|
|
15
15
|
'MINEW',
|
|
16
16
|
'FR22',
|
|
17
17
|
'OTHER',
|
|
18
|
-
'APPLICATION'
|
|
18
|
+
'APPLICATION',
|
|
19
19
|
];
|
|
20
20
|
exports.DEVICE_TYPE_DETAILS = [
|
|
21
21
|
{
|
|
@@ -27,7 +27,7 @@ exports.DEVICE_TYPE_DETAILS = [
|
|
|
27
27
|
protocols: ['http'],
|
|
28
28
|
deviceIdFormat: 'mac',
|
|
29
29
|
deviceIdRequired: true,
|
|
30
|
-
visible: true
|
|
30
|
+
visible: true,
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
id: 'A1',
|
|
@@ -38,7 +38,7 @@ exports.DEVICE_TYPE_DETAILS = [
|
|
|
38
38
|
protocols: ['mqtt', 'http'],
|
|
39
39
|
deviceIdFormat: 'mac',
|
|
40
40
|
deviceIdRequired: true,
|
|
41
|
-
visible: true
|
|
41
|
+
visible: true,
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
id: 'RF1A4',
|
|
@@ -48,7 +48,7 @@ exports.DEVICE_TYPE_DETAILS = [
|
|
|
48
48
|
protocols: ['http'],
|
|
49
49
|
deviceIdFormat: 'mac',
|
|
50
50
|
deviceIdRequired: true,
|
|
51
|
-
visible: true
|
|
51
|
+
visible: true,
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
id: 'RF1F',
|
|
@@ -58,7 +58,7 @@ exports.DEVICE_TYPE_DETAILS = [
|
|
|
58
58
|
protocols: ['http'],
|
|
59
59
|
deviceIdFormat: 'mac',
|
|
60
60
|
deviceIdRequired: true,
|
|
61
|
-
visible: true
|
|
61
|
+
visible: true,
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
id: 'HD1',
|
|
@@ -68,7 +68,7 @@ exports.DEVICE_TYPE_DETAILS = [
|
|
|
68
68
|
protocols: ['http'],
|
|
69
69
|
deviceIdFormat: 'mac',
|
|
70
70
|
deviceIdRequired: true,
|
|
71
|
-
visible: true
|
|
71
|
+
visible: true,
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
id: 'ZEBRA',
|
|
@@ -77,7 +77,7 @@ exports.DEVICE_TYPE_DETAILS = [
|
|
|
77
77
|
endpoint: 'zebra/{readerId}',
|
|
78
78
|
manufacturer: 'zebra',
|
|
79
79
|
protocols: ['http'],
|
|
80
|
-
visible: true
|
|
80
|
+
visible: true,
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
id: 'IMPINJ',
|
|
@@ -86,7 +86,7 @@ exports.DEVICE_TYPE_DETAILS = [
|
|
|
86
86
|
endpoint: 'impinj/{readerId}',
|
|
87
87
|
manufacturer: 'impinj',
|
|
88
88
|
protocols: ['http'],
|
|
89
|
-
visible: true
|
|
89
|
+
visible: true,
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
id: 'TURCK',
|
|
@@ -95,7 +95,7 @@ exports.DEVICE_TYPE_DETAILS = [
|
|
|
95
95
|
endpoint: 'turck/{readerId}?timestamp=GMTTIME&epc=EPC',
|
|
96
96
|
manufacturer: 'turck',
|
|
97
97
|
protocols: ['http'],
|
|
98
|
-
visible: true
|
|
98
|
+
visible: true,
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
id: 'DIGITAL_MATTER',
|
|
@@ -106,7 +106,7 @@ exports.DEVICE_TYPE_DETAILS = [
|
|
|
106
106
|
protocols: ['http'],
|
|
107
107
|
deviceIdFormat: 'string',
|
|
108
108
|
deviceIdRequired: true,
|
|
109
|
-
visible: true
|
|
109
|
+
visible: true,
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
id: 'KKM',
|
|
@@ -117,7 +117,7 @@ exports.DEVICE_TYPE_DETAILS = [
|
|
|
117
117
|
manufacturer: 'kkm',
|
|
118
118
|
deviceIdFormat: 'mac',
|
|
119
119
|
deviceIdRequired: true,
|
|
120
|
-
visible: true
|
|
120
|
+
visible: true,
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
id: 'MINEW',
|
|
@@ -128,7 +128,7 @@ exports.DEVICE_TYPE_DETAILS = [
|
|
|
128
128
|
manufacturer: 'minew',
|
|
129
129
|
deviceIdFormat: 'mac',
|
|
130
130
|
deviceIdRequired: true,
|
|
131
|
-
visible: true
|
|
131
|
+
visible: true,
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
id: 'FR22',
|
|
@@ -138,7 +138,7 @@ exports.DEVICE_TYPE_DETAILS = [
|
|
|
138
138
|
protocols: ['mqtt'],
|
|
139
139
|
deviceIdFormat: 'string',
|
|
140
140
|
deviceIdRequired: false,
|
|
141
|
-
visible: true
|
|
141
|
+
visible: true,
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
144
|
id: 'OTHER',
|
|
@@ -148,7 +148,7 @@ exports.DEVICE_TYPE_DETAILS = [
|
|
|
148
148
|
protocols: ['http'],
|
|
149
149
|
deviceIdFormat: 'string',
|
|
150
150
|
deviceIdRequired: false,
|
|
151
|
-
visible: true
|
|
151
|
+
visible: true,
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
id: 'APPLICATION',
|
|
@@ -158,8 +158,8 @@ exports.DEVICE_TYPE_DETAILS = [
|
|
|
158
158
|
protocols: ['http'],
|
|
159
159
|
deviceIdFormat: 'string',
|
|
160
160
|
deviceIdRequired: true,
|
|
161
|
-
visible: false
|
|
162
|
-
}
|
|
161
|
+
visible: false,
|
|
162
|
+
},
|
|
163
163
|
];
|
|
164
164
|
const getDeviceTypeById = (id) => exports.DEVICE_TYPE_DETAILS.find((detail) => detail.id === id);
|
|
165
165
|
exports.getDeviceTypeById = getDeviceTypeById;
|
|
@@ -7,19 +7,19 @@ exports.READER_TYPE_DETAILS = [
|
|
|
7
7
|
id: 'FIXED',
|
|
8
8
|
name: 'Fixed',
|
|
9
9
|
description: 'Plugged in with a location assigned. These readers are fixed in place and do not move unless the location is manually reassigned.',
|
|
10
|
-
visible: true
|
|
10
|
+
visible: true,
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
id: 'ROVING',
|
|
14
14
|
name: 'Handheld',
|
|
15
15
|
description: 'Typically RFID handheld scanners or a BLE phone applications. These readers detect location tags or use GPS to locate assets instead of being linked to a location',
|
|
16
|
-
visible: true
|
|
16
|
+
visible: true,
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
id: 'MOVING',
|
|
20
20
|
name: 'Vehicle',
|
|
21
21
|
description: 'GPS enabled readers attached to a vehicle will detect the location and any assets that are travelling with it',
|
|
22
|
-
visible: true
|
|
23
|
-
}
|
|
22
|
+
visible: true,
|
|
23
|
+
},
|
|
24
24
|
];
|
|
25
25
|
//# sourceMappingURL=types.js.map
|
package/dist/shared/sort.js
CHANGED
|
@@ -4,11 +4,11 @@ exports.sortOrders = exports.searchableSortFields = exports.standardSortFields =
|
|
|
4
4
|
exports.standardSortFields = [
|
|
5
5
|
'name',
|
|
6
6
|
'updated',
|
|
7
|
-
'created'
|
|
7
|
+
'created',
|
|
8
8
|
];
|
|
9
9
|
exports.searchableSortFields = [
|
|
10
10
|
...exports.standardSortFields,
|
|
11
|
-
'relevancy'
|
|
11
|
+
'relevancy',
|
|
12
12
|
];
|
|
13
13
|
exports.sortOrders = ['asc', 'desc'];
|
|
14
14
|
//# sourceMappingURL=sort.js.map
|
package/dist/shared/timezone.js
CHANGED
|
@@ -15,34 +15,31 @@ export interface GetManifestResponseExtended extends OmittedProperties {
|
|
|
15
15
|
types?: IManifestTypeExtended[];
|
|
16
16
|
assets?: IManifestAssetExtended[];
|
|
17
17
|
}
|
|
18
|
-
export interface
|
|
19
|
-
assetId: string;
|
|
20
|
-
assetName?: string;
|
|
18
|
+
export interface ISnapshotType {
|
|
21
19
|
typeId: string;
|
|
22
20
|
typeName?: string;
|
|
23
21
|
typePath: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ISnapshotDetectedAsset extends ISnapshotType {
|
|
24
|
+
assetId: string;
|
|
25
|
+
assetName?: string;
|
|
24
26
|
section?: string;
|
|
25
27
|
c_additional?: boolean;
|
|
26
28
|
}
|
|
27
|
-
export interface ISnapshotSightedType {
|
|
28
|
-
typeId: string;
|
|
29
|
-
typeName?: string;
|
|
30
|
-
typePath: string;
|
|
29
|
+
export interface ISnapshotSightedType extends ISnapshotType {
|
|
31
30
|
section?: string;
|
|
32
31
|
count: number;
|
|
33
32
|
c_ignored?: boolean;
|
|
34
33
|
}
|
|
35
|
-
export interface ISnapshotSightedAsset {
|
|
34
|
+
export interface ISnapshotSightedAsset extends ISnapshotType {
|
|
36
35
|
assetId: string;
|
|
37
36
|
assetName?: string;
|
|
38
|
-
typeId: string;
|
|
39
|
-
typeName?: string;
|
|
40
|
-
typePath: string;
|
|
41
37
|
section?: string;
|
|
42
38
|
c_ignored?: boolean;
|
|
43
39
|
}
|
|
44
40
|
export interface ISnapshotComputed {
|
|
45
41
|
missingTotal: number;
|
|
42
|
+
sightedTotal: number;
|
|
46
43
|
detectedAssets: number;
|
|
47
44
|
manifestTypes?: {
|
|
48
45
|
count: number;
|
|
@@ -67,7 +64,8 @@ export interface GetSnapshotResponse {
|
|
|
67
64
|
id: string;
|
|
68
65
|
user?: IEmbeddedEntity;
|
|
69
66
|
reader?: IEmbeddedEntity;
|
|
70
|
-
location
|
|
67
|
+
location?: IEmbeddedEntity;
|
|
68
|
+
asset?: IEmbeddedEntity & ISnapshotType;
|
|
71
69
|
manifest?: GetManifestResponseExtended;
|
|
72
70
|
detectedAssets?: ISnapshotDetectedAsset[];
|
|
73
71
|
sightedTypes?: ISnapshotSightedType[];
|
|
@@ -84,7 +82,8 @@ export interface GetSnapshotsItem {
|
|
|
84
82
|
id: string;
|
|
85
83
|
user?: IEmbeddedEntity;
|
|
86
84
|
reader?: IEmbeddedEntity;
|
|
87
|
-
location
|
|
85
|
+
location?: IEmbeddedEntity;
|
|
86
|
+
asset?: IEmbeddedEntity & ISnapshotType;
|
|
88
87
|
manifest?: IEmbeddedEntity;
|
|
89
88
|
computed?: ISnapshotComputed;
|
|
90
89
|
fields?: ISnapshotFields;
|
|
@@ -6,26 +6,27 @@ exports.testGetSnapshotRequest = {
|
|
|
6
6
|
created: 123456789,
|
|
7
7
|
location: {
|
|
8
8
|
id: 'locationId',
|
|
9
|
-
name: 'locationName'
|
|
9
|
+
name: 'locationName',
|
|
10
10
|
},
|
|
11
11
|
computed: {
|
|
12
12
|
missingTotal: 0,
|
|
13
13
|
detectedAssets: 2,
|
|
14
|
+
sightedTotal: 0,
|
|
14
15
|
manifestTypes: {
|
|
15
16
|
count: 2,
|
|
16
17
|
countMissingTypes: 1,
|
|
17
18
|
countMissing: 1,
|
|
18
|
-
countSighted: 1
|
|
19
|
+
countSighted: 1,
|
|
19
20
|
},
|
|
20
21
|
manifestAssets: {
|
|
21
22
|
count: 2,
|
|
22
23
|
countMissing: 1,
|
|
23
|
-
countSighted: 1
|
|
24
|
+
countSighted: 1,
|
|
24
25
|
},
|
|
25
26
|
additional: {
|
|
26
27
|
countTypes: 1,
|
|
27
|
-
countAssets: 1
|
|
28
|
-
}
|
|
29
|
-
}
|
|
28
|
+
countAssets: 1,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
30
31
|
};
|
|
31
32
|
//# sourceMappingURL=get.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/snapshots/[id]/get.ts"],"names":[],"mappings":";;;AAqHa,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,aAAa,EAAE;YACb,KAAK,EAAE,CAAC;YACR,iBAAiB,EAAE,CAAC;YACpB,YAAY,EAAE,CAAC;YACf,YAAY,EAAE,CAAC;SAEhB;QACD,cAAc,EAAE;YACd,KAAK,EAAE,CAAC;YACR,YAAY,EAAE,CAAC;YACf,YAAY,EAAE,CAAC;SAChB;QACD,UAAU,EAAE;YACV,UAAU,EAAE,CAAC;YACb,WAAW,EAAE,CAAC;SACf;KACF;CACF,CAAA"}
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/snapshots/[id]/get.ts"],"names":[],"mappings":";;;AAqHa,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;SAEhB;QACD,cAAc,EAAE;YACd,KAAK,EAAE,CAAC;YACR,YAAY,EAAE,CAAC;YACf,YAAY,EAAE,CAAC;SAChB;QACD,UAAU,EAAE;YACV,UAAU,EAAE,CAAC;YACb,WAAW,EAAE,CAAC;SACf;KACF;CACF,CAAA"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Point } from 'geojson';
|
|
2
|
-
import { ISnapshotDetectedAsset, ISnapshotSightedType, ISnapshotSightedAsset, ISnapshotFields } from '../[id]/get';
|
|
2
|
+
import { ISnapshotType, ISnapshotDetectedAsset, ISnapshotSightedType, ISnapshotSightedAsset, ISnapshotFields } from '../[id]/get';
|
|
3
3
|
import { GetManifestResponse } from '../../manifests';
|
|
4
4
|
import { IEmbeddedEntity } from '../../shared/embed';
|
|
5
5
|
export interface PostSnapshotRequest {
|
|
6
6
|
reader?: IEmbeddedEntity;
|
|
7
|
-
location
|
|
7
|
+
location?: IEmbeddedEntity;
|
|
8
|
+
asset?: IEmbeddedEntity & ISnapshotType;
|
|
8
9
|
geolocation?: Point;
|
|
9
10
|
manifest?: GetManifestResponse;
|
|
10
11
|
detectedAssets?: ISnapshotDetectedAsset[];
|
|
@@ -10,33 +10,33 @@ exports.testPostSnapshotRequest1 = {
|
|
|
10
10
|
assetName: '0252 - Chainsaw Fuel - Combo',
|
|
11
11
|
typeId: '638ec11df30be8b845f6cadb',
|
|
12
12
|
typeName: 'Chainsaw Fuel - Combo',
|
|
13
|
-
typePath: 'type|path|here|'
|
|
13
|
+
typePath: 'type|path|here|',
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
assetId: '6440a6ab2db0e52b4971379e',
|
|
17
17
|
assetName: '0252 - Funnel',
|
|
18
18
|
typeId: '638ec11ef30be8b845f6cae2',
|
|
19
19
|
typeName: 'Funnel',
|
|
20
|
-
typePath: 'type|path|here|'
|
|
20
|
+
typePath: 'type|path|here|',
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
assetId: '64409c8faff15f8bae135272',
|
|
24
24
|
assetName: '25mm Hose',
|
|
25
25
|
typeId: '638ec116f30be8b845f6cabc',
|
|
26
26
|
typeName: '25mm Hose',
|
|
27
|
-
typePath: 'type|path|here|'
|
|
27
|
+
typePath: 'type|path|here|',
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
assetId: '64409c12312315f8bae135272',
|
|
31
31
|
assetName: '40mm Hose',
|
|
32
32
|
typeId: '638ec116f30be8b845f6c123',
|
|
33
|
-
typePath: 'type|path|here|'
|
|
34
|
-
}
|
|
33
|
+
typePath: 'type|path|here|',
|
|
34
|
+
},
|
|
35
35
|
],
|
|
36
36
|
fields: {
|
|
37
|
-
notes: ''
|
|
37
|
+
notes: '',
|
|
38
38
|
},
|
|
39
|
-
submitted: 1684479633579
|
|
39
|
+
submitted: 1684479633579,
|
|
40
40
|
};
|
|
41
41
|
exports.testPostSnapshotRequest2 = {
|
|
42
42
|
reader: { id: '6440b0184a9cc5be43584567', name: 'Reader 1' },
|
|
@@ -52,7 +52,7 @@ exports.testPostSnapshotRequest2 = {
|
|
|
52
52
|
typePath: 'Path|here|',
|
|
53
53
|
section: 'Passenger Locker',
|
|
54
54
|
countMin: 1,
|
|
55
|
-
countMax: 1
|
|
55
|
+
countMax: 1,
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
typeId: '638ec114f30be8b845f6cab1',
|
|
@@ -60,7 +60,7 @@ exports.testPostSnapshotRequest2 = {
|
|
|
60
60
|
typePath: 'Path|here|',
|
|
61
61
|
section: 'Top of Tank',
|
|
62
62
|
countMin: 1,
|
|
63
|
-
countMax: 1
|
|
63
|
+
countMax: 1,
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
typeId: '638ec114f30be8b845f6cab2',
|
|
@@ -68,7 +68,7 @@ exports.testPostSnapshotRequest2 = {
|
|
|
68
68
|
typePath: 'Path|here|',
|
|
69
69
|
section: 'Top of Tank',
|
|
70
70
|
countMin: 1,
|
|
71
|
-
countMax: 1
|
|
71
|
+
countMax: 1,
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
typeId: '638ec114f30be8b845f6cab3',
|
|
@@ -76,7 +76,7 @@ exports.testPostSnapshotRequest2 = {
|
|
|
76
76
|
typePath: 'Path|here|',
|
|
77
77
|
section: 'Top of Tank',
|
|
78
78
|
countMin: 1,
|
|
79
|
-
countMax: 1
|
|
79
|
+
countMax: 1,
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
82
|
typeId: '638ec10bf30be8b845f6ca7b',
|
|
@@ -84,7 +84,7 @@ exports.testPostSnapshotRequest2 = {
|
|
|
84
84
|
typePath: 'Path|here|',
|
|
85
85
|
section: 'Top of Tank',
|
|
86
86
|
countMin: 1,
|
|
87
|
-
countMax: 1
|
|
87
|
+
countMax: 1,
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
typeId: '638ec113f30be8b845f6caad',
|
|
@@ -92,7 +92,7 @@ exports.testPostSnapshotRequest2 = {
|
|
|
92
92
|
typePath: 'Path|here|',
|
|
93
93
|
section: 'Top of Tank',
|
|
94
94
|
countMin: 1,
|
|
95
|
-
countMax: 1
|
|
95
|
+
countMax: 1,
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
typeId: '638ec115f30be8b845f6cab4',
|
|
@@ -100,7 +100,7 @@ exports.testPostSnapshotRequest2 = {
|
|
|
100
100
|
typePath: 'Path|here|',
|
|
101
101
|
section: 'Pump Area',
|
|
102
102
|
countMin: 2,
|
|
103
|
-
countMax: 2
|
|
103
|
+
countMax: 2,
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
typeId: '638ec115f30be8b845f6cab5',
|
|
@@ -108,11 +108,11 @@ exports.testPostSnapshotRequest2 = {
|
|
|
108
108
|
typePath: 'Path|here|',
|
|
109
109
|
section: 'Pump Area',
|
|
110
110
|
countMin: 2,
|
|
111
|
-
countMax: 2
|
|
112
|
-
}
|
|
111
|
+
countMax: 2,
|
|
112
|
+
},
|
|
113
113
|
],
|
|
114
114
|
typesCount: 123,
|
|
115
|
-
assetsCount: 111
|
|
115
|
+
assetsCount: 111,
|
|
116
116
|
},
|
|
117
117
|
detectedAssets: [
|
|
118
118
|
{
|
|
@@ -120,53 +120,53 @@ exports.testPostSnapshotRequest2 = {
|
|
|
120
120
|
assetName: '0252 - Chainsaw Fuel - Combo',
|
|
121
121
|
typeId: '638ec11df30be8b845f6cadb',
|
|
122
122
|
typeName: 'Chainsaw Fuel - Combo',
|
|
123
|
-
typePath: 'Path|here|'
|
|
123
|
+
typePath: 'Path|here|',
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
126
|
assetId: '6440a6ab2db0e52b4971379e',
|
|
127
127
|
assetName: '0252 - Funnel',
|
|
128
128
|
typeId: '638ec11ef30be8b845f6cae2',
|
|
129
129
|
typeName: 'Funnel',
|
|
130
|
-
typePath: 'Path|here|'
|
|
130
|
+
typePath: 'Path|here|',
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
assetId: '64409c8faff15f8bae135272',
|
|
134
134
|
assetName: '25mm Hose',
|
|
135
135
|
typeId: '638ec116f30be8b845f6cabc',
|
|
136
136
|
typeName: '25mm Hose',
|
|
137
|
-
typePath: 'Path|here|'
|
|
137
|
+
typePath: 'Path|here|',
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
assetId: '64409c12312315f8bae135272',
|
|
141
141
|
assetName: '40mm Hose',
|
|
142
142
|
typeId: '638ec116f30be8b845f6c123',
|
|
143
|
-
typePath: 'Path|here|'
|
|
144
|
-
}
|
|
143
|
+
typePath: 'Path|here|',
|
|
144
|
+
},
|
|
145
145
|
],
|
|
146
146
|
sightedTypes: [
|
|
147
147
|
{
|
|
148
148
|
typeId: '638ec10af30be8b845f6ca73',
|
|
149
149
|
typePath: 'Path|here|',
|
|
150
150
|
section: 'Passenger Locker',
|
|
151
|
-
count: 1
|
|
151
|
+
count: 1,
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
typeId: '638ec10af30be8b845f6ca76',
|
|
155
155
|
typePath: 'Path|here|',
|
|
156
156
|
section: 'Passenger Locker',
|
|
157
|
-
count: 0
|
|
157
|
+
count: 0,
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
160
|
typeId: '638ec10bf30be8b845f6ca7b',
|
|
161
161
|
typePath: 'Path|here|',
|
|
162
162
|
section: 'Top of Tank',
|
|
163
|
-
count: 1
|
|
164
|
-
}
|
|
163
|
+
count: 1,
|
|
164
|
+
},
|
|
165
165
|
],
|
|
166
166
|
fields: {
|
|
167
|
-
notes: ''
|
|
167
|
+
notes: '',
|
|
168
168
|
},
|
|
169
|
-
submitted: 1684479633579
|
|
169
|
+
submitted: 1684479633579,
|
|
170
170
|
};
|
|
171
171
|
exports.testPostSnapshotRequest3 = {
|
|
172
172
|
reader: { id: '6440b0184a9cc5be43584567', name: 'Reader 1' },
|
|
@@ -182,11 +182,11 @@ exports.testPostSnapshotRequest3 = {
|
|
|
182
182
|
typePath: 'Path|here|',
|
|
183
183
|
typeId: '638ec116f30be8b845f6cabc',
|
|
184
184
|
typeName: '25mm Hose',
|
|
185
|
-
section: 'Drivers Locker'
|
|
186
|
-
}
|
|
185
|
+
section: 'Drivers Locker',
|
|
186
|
+
},
|
|
187
187
|
],
|
|
188
188
|
typesCount: 0,
|
|
189
|
-
assetsCount: 1
|
|
189
|
+
assetsCount: 1,
|
|
190
190
|
},
|
|
191
191
|
detectedAssets: [
|
|
192
192
|
{
|
|
@@ -195,7 +195,7 @@ exports.testPostSnapshotRequest3 = {
|
|
|
195
195
|
typeId: '638ec11df30be8b845f6cadb',
|
|
196
196
|
typeName: 'Chainsaw Fuel - Combo',
|
|
197
197
|
typePath: 'Path|here|',
|
|
198
|
-
section: 'Drivers Locker'
|
|
198
|
+
section: 'Drivers Locker',
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
201
|
assetId: '6440a6ab2db0e52b4971379e',
|
|
@@ -203,7 +203,7 @@ exports.testPostSnapshotRequest3 = {
|
|
|
203
203
|
typeId: '638ec11ef30be8b845f6cae2',
|
|
204
204
|
typeName: 'Funnel',
|
|
205
205
|
typePath: 'Path|here|',
|
|
206
|
-
section: 'Drivers Locker'
|
|
206
|
+
section: 'Drivers Locker',
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
209
|
assetId: '64409c8faff15f8bae135272',
|
|
@@ -211,15 +211,15 @@ exports.testPostSnapshotRequest3 = {
|
|
|
211
211
|
typeId: '638ec116f30be8b845f6cabc',
|
|
212
212
|
typeName: '25mm Hose',
|
|
213
213
|
typePath: 'Path|here|',
|
|
214
|
-
section: 'Drivers Locker'
|
|
214
|
+
section: 'Drivers Locker',
|
|
215
215
|
},
|
|
216
216
|
{
|
|
217
217
|
assetId: '64409c12312315f8bae135272',
|
|
218
218
|
assetName: '40mm Hose',
|
|
219
219
|
typeId: '638ec116f30be8b845f6c123',
|
|
220
220
|
typeName: '40mm Hose',
|
|
221
|
-
typePath: 'Path|here|'
|
|
222
|
-
}
|
|
221
|
+
typePath: 'Path|here|',
|
|
222
|
+
},
|
|
223
223
|
],
|
|
224
224
|
sightedAssets: [
|
|
225
225
|
{
|
|
@@ -228,12 +228,12 @@ exports.testPostSnapshotRequest3 = {
|
|
|
228
228
|
typeId: '638ec116f30be8b845f6c123',
|
|
229
229
|
typeName: '40mm Hose',
|
|
230
230
|
typePath: 'Path|here|',
|
|
231
|
-
section: 'Drivers Locker'
|
|
232
|
-
}
|
|
231
|
+
section: 'Drivers Locker',
|
|
232
|
+
},
|
|
233
233
|
],
|
|
234
234
|
fields: {
|
|
235
|
-
notes: ''
|
|
235
|
+
notes: '',
|
|
236
236
|
},
|
|
237
|
-
submitted: 1684479633579
|
|
237
|
+
submitted: 1684479633579,
|
|
238
238
|
};
|
|
239
239
|
//# sourceMappingURL=request.js.map
|
|
@@ -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":";;;AA4Ba,QAAA,wBAAwB,GAAwB;IAC3D,MAAM,EAAE,EAAE,EAAE,EAAE,0BAA0B,EAAE,IAAI,EAAE,UAAU,EAAE;IAC5D,QAAQ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zB,CAAA"}
|
package/dist/types/[id]/get.d.ts
CHANGED
|
@@ -13,15 +13,15 @@ exports.testITypeWithChildren = {
|
|
|
13
13
|
{
|
|
14
14
|
id: '4444',
|
|
15
15
|
name: 'H1',
|
|
16
|
-
fullName: 'Hammers H1'
|
|
17
|
-
}
|
|
18
|
-
]
|
|
16
|
+
fullName: 'Hammers H1',
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
id: '3333',
|
|
22
22
|
name: 'Equipment',
|
|
23
|
-
fullName: 'Equipment'
|
|
24
|
-
}
|
|
25
|
-
]
|
|
23
|
+
fullName: 'Equipment',
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
26
|
};
|
|
27
27
|
//# sourceMappingURL=response.js.map
|
|
@@ -77,6 +77,7 @@ export interface PostTypeRequest {
|
|
|
77
77
|
typeFields?: IEmbeddedEntityWithIdOrName[];
|
|
78
78
|
typeFieldValues?: IFieldValueWithConstraints[];
|
|
79
79
|
manifestId?: string | null;
|
|
80
|
+
supportsStocktake?: boolean;
|
|
80
81
|
}
|
|
81
82
|
export declare type PostTypesRequest = PostTypeRequest[];
|
|
82
83
|
export declare const testPostTypeRequest: PostTypeRequest;
|
|
@@ -8,14 +8,15 @@ exports.testPostTypeRequest = {
|
|
|
8
8
|
fields: [
|
|
9
9
|
{
|
|
10
10
|
id: '234567',
|
|
11
|
-
name: '123456'
|
|
12
|
-
}
|
|
11
|
+
name: '123456',
|
|
12
|
+
},
|
|
13
13
|
],
|
|
14
14
|
typeFieldValues: [
|
|
15
15
|
{
|
|
16
16
|
name: '123456',
|
|
17
|
-
valueBoolean: true
|
|
18
|
-
}
|
|
19
|
-
]
|
|
17
|
+
valueBoolean: true,
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
supportsStocktake: true,
|
|
20
21
|
};
|
|
21
22
|
//# sourceMappingURL=request.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/types/post/request.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/types/post/request.ts"],"names":[],"mappings":";;;AAwFa,QAAA,mBAAmB,GAAoB;IAClD,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,MAAM;IACZ,gBAAgB,EAAE,OAAO;IACzB,MAAM,EAAE;QACN;YACE,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,eAAe,EAAE;QACf;YAEE,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,IAAI;SAEnB;KACF;IACD,iBAAiB,EAAE,IAAI;CACxB,CAAA"}
|
|
@@ -5,8 +5,11 @@ export declare type WorkflowActionEmail = {
|
|
|
5
5
|
to: string[];
|
|
6
6
|
};
|
|
7
7
|
export declare type WorkflowAction = WorkflowActionEmail;
|
|
8
|
-
export declare type
|
|
9
|
-
type: '
|
|
8
|
+
export declare type WorkflowConditionSnapshotCreatedWithItems = {
|
|
9
|
+
type: 'SNAPSHOT_CREATED_WITH_ITEMS';
|
|
10
|
+
missingItems?: boolean;
|
|
11
|
+
sightedItems?: boolean;
|
|
12
|
+
additionalItems?: boolean;
|
|
10
13
|
};
|
|
11
14
|
export declare type WorkflowConditionSnapshotCreatedWithManifest = {
|
|
12
15
|
type: 'SNAPSHOT_CREATED_WITH_MANIFEST';
|
|
@@ -16,7 +19,7 @@ export declare type WorkflowConditionSnapshotCreatedWithLocation = {
|
|
|
16
19
|
type: 'SNAPSHOT_CREATED_WITH_LOCATION';
|
|
17
20
|
locationIds: string[];
|
|
18
21
|
};
|
|
19
|
-
export declare type WorkflowCondition =
|
|
22
|
+
export declare type WorkflowCondition = WorkflowConditionSnapshotCreatedWithItems | WorkflowConditionSnapshotCreatedWithManifest | WorkflowConditionSnapshotCreatedWithLocation;
|
|
20
23
|
export declare type NewWorkflow = {
|
|
21
24
|
label: string;
|
|
22
25
|
trigger: 'SNAPSHOT_CREATED';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spotto/contract",
|
|
3
3
|
"license": "ISC",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.66-alpha.10",
|
|
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": "7fefe0a62132cf3c803e3b91dc04fd91f03af9c0"
|
|
22
22
|
}
|