@spotto/contract 1.0.15-alpha.0 → 1.0.16
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/manifests/[id]/get.d.ts +3 -3
- package/dist/manifests/[id]/get.js +4 -0
- package/dist/manifests/[id]/get.js.map +1 -1
- package/dist/manifests/[id]/patch/request.d.ts +3 -3
- package/dist/manifests/post/request.d.ts +9 -2
- package/dist/manifests/post/request.js +1 -0
- package/dist/manifests/post/request.js.map +1 -1
- package/dist/snapshots/[id]/get.d.ts +28 -12
- package/dist/snapshots/[id]/get.js +5 -1
- package/dist/snapshots/[id]/get.js.map +1 -1
- package/dist/snapshots/[id]/index.d.ts +0 -1
- package/dist/snapshots/[id]/index.js +0 -1
- package/dist/snapshots/[id]/index.js.map +1 -1
- package/dist/snapshots/post/request.d.ts +1 -1
- package/dist/snapshots/post/request.js +25 -0
- package/dist/snapshots/post/request.js.map +1 -1
- package/package.json +2 -2
- package/dist/snapshots/[id]/patch/index.d.ts +0 -2
- package/dist/snapshots/[id]/patch/index.js +0 -19
- package/dist/snapshots/[id]/patch/index.js.map +0 -1
- package/dist/snapshots/[id]/patch/request.d.ts +0 -5
- package/dist/snapshots/[id]/patch/request.js +0 -9
- package/dist/snapshots/[id]/patch/request.js.map +0 -1
- package/dist/snapshots/[id]/patch/response.d.ts +0 -1
- package/dist/snapshots/[id]/patch/response.js +0 -3
- package/dist/snapshots/[id]/patch/response.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface IManifestType {
|
|
2
2
|
typeId: string;
|
|
3
3
|
typeName?: string;
|
|
4
|
-
typePath
|
|
4
|
+
typePath: string;
|
|
5
5
|
section?: string;
|
|
6
6
|
count?: number;
|
|
7
7
|
countMin?: number;
|
|
@@ -11,9 +11,9 @@ export interface IManifestType {
|
|
|
11
11
|
export interface IManifestAsset {
|
|
12
12
|
assetId: string;
|
|
13
13
|
assetName?: string;
|
|
14
|
-
typeId
|
|
14
|
+
typeId: string;
|
|
15
15
|
typeName?: string;
|
|
16
|
-
typePath
|
|
16
|
+
typePath: string;
|
|
17
17
|
section?: string;
|
|
18
18
|
}
|
|
19
19
|
export interface GetManifestResponse {
|
|
@@ -8,17 +8,21 @@ exports.testGetManifestRequest = {
|
|
|
8
8
|
types: [
|
|
9
9
|
{
|
|
10
10
|
typeId: '2345',
|
|
11
|
+
typePath: 'type|path|',
|
|
11
12
|
},
|
|
12
13
|
{
|
|
13
14
|
typeId: '2345',
|
|
15
|
+
typePath: 'type|path|',
|
|
14
16
|
count: 123,
|
|
15
17
|
},
|
|
16
18
|
{
|
|
17
19
|
typeId: '2345',
|
|
20
|
+
typePath: 'type|path|',
|
|
18
21
|
countMin: 44,
|
|
19
22
|
},
|
|
20
23
|
{
|
|
21
24
|
typeId: '2345',
|
|
25
|
+
typePath: 'type|path|',
|
|
22
26
|
countMin: 12,
|
|
23
27
|
countMax: 34,
|
|
24
28
|
untagged: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/manifests/[id]/get.ts"],"names":[],"mappings":";;;AA6Ba,QAAA,sBAAsB,GAAwB;IACzD,EAAE,EAAE,OAAO;IACX,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,CAAC;IACzC,KAAK,EAAE;QACL;YACE,MAAM,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/manifests/[id]/get.ts"],"names":[],"mappings":";;;AA6Ba,QAAA,sBAAsB,GAAwB;IACzD,EAAE,EAAE,OAAO;IACX,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,CAAC;IACzC,KAAK,EAAE;QACL;YACE,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,YAAY;SACvB;QACD;YACE,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,YAAY;YACtB,KAAK,EAAE,GAAG;SACX;QACD;YACE,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,YAAY;YACtB,QAAQ,EAAE,EAAE;SACb;QACD;YACE,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,YAAY;YACtB,QAAQ,EAAE,EAAE;YACZ,QAAQ,EAAE,EAAE;YACZ,QAAQ,EAAE,IAAI;SACf;KACF;CACF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IManifestTypePost, IManifestAssetPost } from '../../post/request';
|
|
2
2
|
export interface UpdateManifestRequest {
|
|
3
3
|
name?: string;
|
|
4
|
-
types?:
|
|
5
|
-
assets?:
|
|
4
|
+
types?: IManifestTypePost[];
|
|
5
|
+
assets?: IManifestAssetPost[];
|
|
6
6
|
}
|
|
7
7
|
export declare const testUpdatetManifestRequest: UpdateManifestRequest;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { IManifestType, IManifestAsset } from '../[id]/get';
|
|
2
|
+
export declare type IManifestTypePost = Omit<IManifestType, 'typePath'> & {
|
|
3
|
+
typePath?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare type IManifestAssetPost = Omit<IManifestAsset, 'typeId' | 'typePath'> & {
|
|
6
|
+
typeId?: string;
|
|
7
|
+
typePath?: string;
|
|
8
|
+
};
|
|
2
9
|
export interface PostManifestRequest {
|
|
3
10
|
name: string;
|
|
4
|
-
types?:
|
|
5
|
-
assets?:
|
|
11
|
+
types?: IManifestTypePost[];
|
|
12
|
+
assets?: IManifestAssetPost[];
|
|
6
13
|
}
|
|
7
14
|
export declare type PostManifestsRequest = PostManifestRequest[];
|
|
8
15
|
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":";;;AAoBa,QAAA,uBAAuB,GAAwB;IAC1D,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE;QACL;YACE,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,OAAO;SAClB;QACD;YACE,MAAM,EAAE,MAAM;YACd,KAAK,EAAE,GAAG;SACX;QACD;YACE,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,EAAE;SACb;QACD;YACE,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,EAAE;SACb;QACD;YACE,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,EAAE;YACZ,QAAQ,EAAE,EAAE;SACb;KACF;IACD,MAAM,EAAE;QACN;YACE,OAAO,EAAE,WAAW;SACrB;QACD;YACE,OAAO,EAAE,WAAW;YACpB,SAAS,EAAE,YAAY;SACxB;QACD;YACE,OAAO,EAAE,WAAW;YACpB,SAAS,EAAE,YAAY;YACvB,OAAO,EAAE,YAAY;SACtB;KACF;CACF,CAAC"}
|
|
@@ -1,30 +1,48 @@
|
|
|
1
1
|
import { IEmbeddedEntity } from '../../shared';
|
|
2
|
-
import {
|
|
2
|
+
import { IManifestAsset, IManifestType } from '../../manifests';
|
|
3
|
+
export interface IManifestTypeExtended extends IManifestType {
|
|
4
|
+
c_detected?: number;
|
|
5
|
+
c_sighted?: number;
|
|
6
|
+
c_count?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface IManifestAssetExtended extends IManifestAsset {
|
|
9
|
+
c_count?: number;
|
|
10
|
+
}
|
|
11
|
+
export interface GetManifestResponseExtended {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
sections?: string[];
|
|
15
|
+
types?: IManifestTypeExtended[];
|
|
16
|
+
assets?: IManifestAssetExtended[];
|
|
17
|
+
}
|
|
3
18
|
export interface ISnapshotDetectedAsset {
|
|
4
19
|
assetId: string;
|
|
5
20
|
assetName?: string;
|
|
6
|
-
typeId
|
|
21
|
+
typeId: string;
|
|
7
22
|
typeName?: string;
|
|
8
|
-
typePath
|
|
23
|
+
typePath: string;
|
|
9
24
|
section?: string;
|
|
25
|
+
c_additional?: boolean;
|
|
10
26
|
}
|
|
11
27
|
export interface ISnapshotSightedType {
|
|
12
28
|
typeId: string;
|
|
13
29
|
typeName?: string;
|
|
14
|
-
typePath
|
|
30
|
+
typePath: string;
|
|
15
31
|
section?: string;
|
|
16
32
|
count: number;
|
|
33
|
+
c_ignored?: boolean;
|
|
17
34
|
}
|
|
18
35
|
export interface ISnapshotSightedAsset {
|
|
19
36
|
assetId: string;
|
|
20
37
|
assetName?: string;
|
|
21
|
-
typeId
|
|
38
|
+
typeId: string;
|
|
22
39
|
typeName?: string;
|
|
23
|
-
typePath
|
|
40
|
+
typePath: string;
|
|
24
41
|
section?: string;
|
|
42
|
+
c_ignored?: boolean;
|
|
25
43
|
}
|
|
26
44
|
export interface ISnapshotComputed {
|
|
27
|
-
|
|
45
|
+
missingTotal: number;
|
|
28
46
|
detectedAssets: number;
|
|
29
47
|
manifestTypes?: {
|
|
30
48
|
count: number;
|
|
@@ -49,8 +67,8 @@ export interface GetSnapshotResponse {
|
|
|
49
67
|
id: string;
|
|
50
68
|
user?: IEmbeddedEntity;
|
|
51
69
|
reader?: IEmbeddedEntity;
|
|
52
|
-
location
|
|
53
|
-
manifest?:
|
|
70
|
+
location: IEmbeddedEntity;
|
|
71
|
+
manifest?: GetManifestResponseExtended;
|
|
54
72
|
detectedAssets?: ISnapshotDetectedAsset[];
|
|
55
73
|
sightedTypes?: ISnapshotSightedType[];
|
|
56
74
|
sightedAssets?: ISnapshotSightedAsset[];
|
|
@@ -58,18 +76,16 @@ export interface GetSnapshotResponse {
|
|
|
58
76
|
fields?: ISnapshotFields;
|
|
59
77
|
submitted?: number;
|
|
60
78
|
created: number;
|
|
61
|
-
updated?: number;
|
|
62
79
|
}
|
|
63
80
|
export interface GetSnapshotsItem {
|
|
64
81
|
id: string;
|
|
65
82
|
user?: IEmbeddedEntity;
|
|
66
83
|
reader?: IEmbeddedEntity;
|
|
67
|
-
location
|
|
84
|
+
location: IEmbeddedEntity;
|
|
68
85
|
manifest?: IEmbeddedEntity;
|
|
69
86
|
computed?: ISnapshotComputed;
|
|
70
87
|
fields?: ISnapshotFields;
|
|
71
88
|
submitted?: number;
|
|
72
89
|
created: number;
|
|
73
|
-
updated?: number;
|
|
74
90
|
}
|
|
75
91
|
export declare const testGetSnapshotRequest: GetSnapshotResponse;
|
|
@@ -4,8 +4,12 @@ exports.testGetSnapshotRequest = void 0;
|
|
|
4
4
|
exports.testGetSnapshotRequest = {
|
|
5
5
|
id: '23456',
|
|
6
6
|
created: 123456789,
|
|
7
|
+
location: {
|
|
8
|
+
id: 'locationId',
|
|
9
|
+
name: 'locationName',
|
|
10
|
+
},
|
|
7
11
|
computed: {
|
|
8
|
-
|
|
12
|
+
missingTotal: 0,
|
|
9
13
|
detectedAssets: 2,
|
|
10
14
|
manifestTypes: {
|
|
11
15
|
count: 2,
|
|
@@ -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":";;;AA2Ga,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,CAAC"}
|
|
@@ -14,6 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./patch"), exports);
|
|
18
17
|
__exportStar(require("./get"), exports);
|
|
19
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/snapshots/[id]/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/snapshots/[id]/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB"}
|
|
@@ -2,7 +2,7 @@ import { ISnapshotDetectedAsset, ISnapshotSightedType, ISnapshotSightedAsset, IS
|
|
|
2
2
|
import { GetManifestResponse } from '../../manifests';
|
|
3
3
|
import { IEmbeddedEntity } from '../../shared/embed';
|
|
4
4
|
export interface PostSnapshotRequest {
|
|
5
|
-
reader
|
|
5
|
+
reader?: IEmbeddedEntity;
|
|
6
6
|
location: IEmbeddedEntity;
|
|
7
7
|
manifest?: GetManifestResponse;
|
|
8
8
|
detectedAssets?: ISnapshotDetectedAsset[];
|
|
@@ -10,23 +10,27 @@ 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
14
|
},
|
|
14
15
|
{
|
|
15
16
|
assetId: '6440a6ab2db0e52b4971379e',
|
|
16
17
|
assetName: '0252 - Funnel',
|
|
17
18
|
typeId: '638ec11ef30be8b845f6cae2',
|
|
18
19
|
typeName: 'Funnel',
|
|
20
|
+
typePath: 'type|path|here|',
|
|
19
21
|
},
|
|
20
22
|
{
|
|
21
23
|
assetId: '64409c8faff15f8bae135272',
|
|
22
24
|
assetName: '25mm Hose',
|
|
23
25
|
typeId: '638ec116f30be8b845f6cabc',
|
|
24
26
|
typeName: '25mm Hose',
|
|
27
|
+
typePath: 'type|path|here|',
|
|
25
28
|
},
|
|
26
29
|
{
|
|
27
30
|
assetId: '64409c12312315f8bae135272',
|
|
28
31
|
assetName: '40mm Hose',
|
|
29
32
|
typeId: '638ec116f30be8b845f6c123',
|
|
33
|
+
typePath: 'type|path|here|',
|
|
30
34
|
},
|
|
31
35
|
],
|
|
32
36
|
fields: {
|
|
@@ -45,6 +49,7 @@ exports.testPostSnapshotRequest2 = {
|
|
|
45
49
|
{
|
|
46
50
|
typeId: '638ec10af30be8b845f6ca73',
|
|
47
51
|
typeName: 'Blower - Handheld',
|
|
52
|
+
typePath: 'Path|here|',
|
|
48
53
|
section: 'Passenger Locker',
|
|
49
54
|
countMin: 1,
|
|
50
55
|
countMax: 1,
|
|
@@ -52,6 +57,7 @@ exports.testPostSnapshotRequest2 = {
|
|
|
52
57
|
{
|
|
53
58
|
typeId: '638ec114f30be8b845f6cab1',
|
|
54
59
|
typeName: 'Blower - Backpack',
|
|
60
|
+
typePath: 'Path|here|',
|
|
55
61
|
section: 'Top of Tank',
|
|
56
62
|
countMin: 1,
|
|
57
63
|
countMax: 1,
|
|
@@ -59,6 +65,7 @@ exports.testPostSnapshotRequest2 = {
|
|
|
59
65
|
{
|
|
60
66
|
typeId: '638ec114f30be8b845f6cab2',
|
|
61
67
|
typeName: 'Small Plant Blower',
|
|
68
|
+
typePath: 'Path|here|',
|
|
62
69
|
section: 'Top of Tank',
|
|
63
70
|
countMin: 1,
|
|
64
71
|
countMax: 1,
|
|
@@ -66,6 +73,7 @@ exports.testPostSnapshotRequest2 = {
|
|
|
66
73
|
{
|
|
67
74
|
typeId: '638ec114f30be8b845f6cab3',
|
|
68
75
|
typeName: 'Brush cutter',
|
|
76
|
+
typePath: 'Path|here|',
|
|
69
77
|
section: 'Top of Tank',
|
|
70
78
|
countMin: 1,
|
|
71
79
|
countMax: 1,
|
|
@@ -73,6 +81,7 @@ exports.testPostSnapshotRequest2 = {
|
|
|
73
81
|
{
|
|
74
82
|
typeId: '638ec10bf30be8b845f6ca7b',
|
|
75
83
|
typeName: 'Chainsaw - Electric',
|
|
84
|
+
typePath: 'Path|here|',
|
|
76
85
|
section: 'Top of Tank',
|
|
77
86
|
countMin: 1,
|
|
78
87
|
countMax: 1,
|
|
@@ -80,6 +89,7 @@ exports.testPostSnapshotRequest2 = {
|
|
|
80
89
|
{
|
|
81
90
|
typeId: '638ec113f30be8b845f6caad',
|
|
82
91
|
typeName: 'Fire Chainsaw - Petrol',
|
|
92
|
+
typePath: 'Path|here|',
|
|
83
93
|
section: 'Top of Tank',
|
|
84
94
|
countMin: 1,
|
|
85
95
|
countMax: 1,
|
|
@@ -87,6 +97,7 @@ exports.testPostSnapshotRequest2 = {
|
|
|
87
97
|
{
|
|
88
98
|
typeId: '638ec115f30be8b845f6cab4',
|
|
89
99
|
typeName: 'Fuel & Oils Chainsaw Oil',
|
|
100
|
+
typePath: 'Path|here|',
|
|
90
101
|
section: 'Pump Area',
|
|
91
102
|
countMin: 2,
|
|
92
103
|
countMax: 2,
|
|
@@ -94,6 +105,7 @@ exports.testPostSnapshotRequest2 = {
|
|
|
94
105
|
{
|
|
95
106
|
typeId: '638ec115f30be8b845f6cab5',
|
|
96
107
|
typeName: 'Drip Torch Fuel',
|
|
108
|
+
typePath: 'Path|here|',
|
|
97
109
|
section: 'Pump Area',
|
|
98
110
|
countMin: 2,
|
|
99
111
|
countMax: 2,
|
|
@@ -106,38 +118,45 @@ exports.testPostSnapshotRequest2 = {
|
|
|
106
118
|
assetName: '0252 - Chainsaw Fuel - Combo',
|
|
107
119
|
typeId: '638ec11df30be8b845f6cadb',
|
|
108
120
|
typeName: 'Chainsaw Fuel - Combo',
|
|
121
|
+
typePath: 'Path|here|',
|
|
109
122
|
},
|
|
110
123
|
{
|
|
111
124
|
assetId: '6440a6ab2db0e52b4971379e',
|
|
112
125
|
assetName: '0252 - Funnel',
|
|
113
126
|
typeId: '638ec11ef30be8b845f6cae2',
|
|
114
127
|
typeName: 'Funnel',
|
|
128
|
+
typePath: 'Path|here|',
|
|
115
129
|
},
|
|
116
130
|
{
|
|
117
131
|
assetId: '64409c8faff15f8bae135272',
|
|
118
132
|
assetName: '25mm Hose',
|
|
119
133
|
typeId: '638ec116f30be8b845f6cabc',
|
|
120
134
|
typeName: '25mm Hose',
|
|
135
|
+
typePath: 'Path|here|',
|
|
121
136
|
},
|
|
122
137
|
{
|
|
123
138
|
assetId: '64409c12312315f8bae135272',
|
|
124
139
|
assetName: '40mm Hose',
|
|
125
140
|
typeId: '638ec116f30be8b845f6c123',
|
|
141
|
+
typePath: 'Path|here|',
|
|
126
142
|
},
|
|
127
143
|
],
|
|
128
144
|
sightedTypes: [
|
|
129
145
|
{
|
|
130
146
|
typeId: '638ec10af30be8b845f6ca73',
|
|
147
|
+
typePath: 'Path|here|',
|
|
131
148
|
section: 'Passenger Locker',
|
|
132
149
|
count: 1,
|
|
133
150
|
},
|
|
134
151
|
{
|
|
135
152
|
typeId: '638ec10af30be8b845f6ca76',
|
|
153
|
+
typePath: 'Path|here|',
|
|
136
154
|
section: 'Passenger Locker',
|
|
137
155
|
count: 0,
|
|
138
156
|
},
|
|
139
157
|
{
|
|
140
158
|
typeId: '638ec10bf30be8b845f6ca7b',
|
|
159
|
+
typePath: 'Path|here|',
|
|
141
160
|
section: 'Top of Tank',
|
|
142
161
|
count: 1,
|
|
143
162
|
},
|
|
@@ -158,6 +177,7 @@ exports.testPostSnapshotRequest3 = {
|
|
|
158
177
|
{
|
|
159
178
|
assetId: '64409c8faff15f8bae135272',
|
|
160
179
|
assetName: '25mm Hose',
|
|
180
|
+
typePath: 'Path|here|',
|
|
161
181
|
typeId: '638ec116f30be8b845f6cabc',
|
|
162
182
|
typeName: '25mm Hose',
|
|
163
183
|
section: 'Drivers Locker',
|
|
@@ -170,6 +190,7 @@ exports.testPostSnapshotRequest3 = {
|
|
|
170
190
|
assetName: '0252 - Chainsaw Fuel - Combo',
|
|
171
191
|
typeId: '638ec11df30be8b845f6cadb',
|
|
172
192
|
typeName: 'Chainsaw Fuel - Combo',
|
|
193
|
+
typePath: 'Path|here|',
|
|
173
194
|
section: 'Drivers Locker',
|
|
174
195
|
},
|
|
175
196
|
{
|
|
@@ -177,6 +198,7 @@ exports.testPostSnapshotRequest3 = {
|
|
|
177
198
|
assetName: '0252 - Funnel',
|
|
178
199
|
typeId: '638ec11ef30be8b845f6cae2',
|
|
179
200
|
typeName: 'Funnel',
|
|
201
|
+
typePath: 'Path|here|',
|
|
180
202
|
section: 'Drivers Locker',
|
|
181
203
|
},
|
|
182
204
|
{
|
|
@@ -184,6 +206,7 @@ exports.testPostSnapshotRequest3 = {
|
|
|
184
206
|
assetName: '25mm Hose',
|
|
185
207
|
typeId: '638ec116f30be8b845f6cabc',
|
|
186
208
|
typeName: '25mm Hose',
|
|
209
|
+
typePath: 'Path|here|',
|
|
187
210
|
section: 'Drivers Locker',
|
|
188
211
|
},
|
|
189
212
|
{
|
|
@@ -191,6 +214,7 @@ exports.testPostSnapshotRequest3 = {
|
|
|
191
214
|
assetName: '40mm Hose',
|
|
192
215
|
typeId: '638ec116f30be8b845f6c123',
|
|
193
216
|
typeName: '40mm Hose',
|
|
217
|
+
typePath: 'Path|here|',
|
|
194
218
|
},
|
|
195
219
|
],
|
|
196
220
|
sightedAssets: [
|
|
@@ -199,6 +223,7 @@ exports.testPostSnapshotRequest3 = {
|
|
|
199
223
|
assetName: '40mm Hose',
|
|
200
224
|
typeId: '638ec116f30be8b845f6c123',
|
|
201
225
|
typeName: '40mm Hose',
|
|
226
|
+
typePath: 'Path|here|',
|
|
202
227
|
section: 'Drivers Locker',
|
|
203
228
|
},
|
|
204
229
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/snapshots/post/request.ts"],"names":[],"mappings":";;;AAuBa,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;
|
|
1
|
+
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/snapshots/post/request.ts"],"names":[],"mappings":";;;AAuBa,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;SAC5B;QACD;YACE,OAAO,EAAE,2BAA2B;YACpC,SAAS,EAAE,WAAW;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B;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,CAAC"}
|
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.16",
|
|
5
5
|
"description": "Spotto's API Contract type definitions",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"files": [
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@types/geojson": "^7946.0.8"
|
|
16
16
|
},
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "71b1a9e0aed0d704869505be04fa5038291861a5"
|
|
18
18
|
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./request"), exports);
|
|
18
|
-
__exportStar(require("./response"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/snapshots/[id]/patch/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../../src/snapshots/[id]/patch/request.ts"],"names":[],"mappings":";;;AAOa,QAAA,0BAA0B,GAA0B;IAC/D,MAAM,EAAE;QACN,KAAK,EAAE,eAAe;KACvB;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { GetSnapshotResponse as UpdateSnapshotResponse } from '../get';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"response.js","sourceRoot":"","sources":["../../../../src/snapshots/[id]/patch/response.ts"],"names":[],"mappings":""}
|