@spotto/contract 1.0.14-alpha.0 → 1.0.15-alpha.0

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.
Files changed (56) hide show
  1. package/dist/assets/[id]/get.d.ts +1 -0
  2. package/dist/events/get/response.d.ts +3 -0
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.js +1 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/manifests/[id]/get.d.ts +11 -0
  7. package/dist/manifests/[id]/get.js.map +1 -1
  8. package/dist/manifests/[id]/patch/request.d.ts +2 -1
  9. package/dist/manifests/[id]/patch/request.js +14 -0
  10. package/dist/manifests/[id]/patch/request.js.map +1 -1
  11. package/dist/manifests/post/request.d.ts +2 -1
  12. package/dist/manifests/post/request.js +14 -0
  13. package/dist/manifests/post/request.js.map +1 -1
  14. package/dist/organisations/[id]/delete/response.d.ts +1 -0
  15. package/dist/organisations/constants.d.ts +14 -0
  16. package/dist/snapshots/[id]/get.d.ts +75 -0
  17. package/dist/snapshots/[id]/get.js +27 -0
  18. package/dist/snapshots/[id]/get.js.map +1 -0
  19. package/dist/snapshots/[id]/index.d.ts +2 -0
  20. package/dist/snapshots/[id]/index.js +19 -0
  21. package/dist/snapshots/[id]/index.js.map +1 -0
  22. package/dist/snapshots/[id]/patch/index.d.ts +2 -0
  23. package/dist/snapshots/[id]/patch/index.js +19 -0
  24. package/dist/snapshots/[id]/patch/index.js.map +1 -0
  25. package/dist/snapshots/[id]/patch/request.d.ts +5 -0
  26. package/dist/snapshots/[id]/patch/request.js +9 -0
  27. package/dist/snapshots/[id]/patch/request.js.map +1 -0
  28. package/dist/snapshots/[id]/patch/response.d.ts +1 -0
  29. package/dist/snapshots/[id]/patch/response.js +3 -0
  30. package/dist/snapshots/[id]/patch/response.js.map +1 -0
  31. package/dist/snapshots/get/index.d.ts +2 -0
  32. package/dist/snapshots/get/index.js +19 -0
  33. package/dist/snapshots/get/index.js.map +1 -0
  34. package/dist/snapshots/get/query.d.ts +10 -0
  35. package/dist/snapshots/get/query.js +3 -0
  36. package/dist/snapshots/get/query.js.map +1 -0
  37. package/dist/snapshots/get/response.d.ts +7 -0
  38. package/dist/snapshots/get/response.js +3 -0
  39. package/dist/snapshots/get/response.js.map +1 -0
  40. package/dist/snapshots/index.d.ts +3 -0
  41. package/dist/snapshots/index.js +20 -0
  42. package/dist/snapshots/index.js.map +1 -0
  43. package/dist/snapshots/post/index.d.ts +2 -0
  44. package/dist/snapshots/post/index.js +19 -0
  45. package/dist/snapshots/post/index.js.map +1 -0
  46. package/dist/snapshots/post/request.d.ts +17 -0
  47. package/dist/snapshots/post/request.js +210 -0
  48. package/dist/snapshots/post/request.js.map +1 -0
  49. package/dist/snapshots/post/response.d.ts +5 -0
  50. package/dist/snapshots/post/response.js +3 -0
  51. package/dist/snapshots/post/response.js.map +1 -0
  52. package/dist/types/[id]/get.d.ts +1 -0
  53. package/dist/types/[id]/patch/request.d.ts +1 -0
  54. package/dist/types/post/request.d.ts +1 -0
  55. package/dist/types/post/request.js.map +1 -1
  56. package/package.json +2 -2
@@ -21,6 +21,7 @@ export interface GetAssetResponse {
21
21
  tagIds?: string[];
22
22
  typeId?: string;
23
23
  typeName?: string;
24
+ typePath?: string;
24
25
  score?: number;
25
26
  meta?: IEntityMeta;
26
27
  telemetry?: IAssetTelemetry;
@@ -21,6 +21,9 @@ export interface GetEventResponse {
21
21
  network?: string;
22
22
  deviceId?: string;
23
23
  location?: IEmbeddedEntity;
24
+ typeId?: string;
25
+ nameSuffix?: string;
26
+ manifestId?: string;
24
27
  };
25
28
  }
26
29
  export interface GetEventsResponse {
package/dist/index.d.ts CHANGED
@@ -15,3 +15,4 @@ export * from './manifests';
15
15
  export * from './users';
16
16
  export * from './errors';
17
17
  export * from './geo-location';
18
+ export * from './snapshots';
package/dist/index.js CHANGED
@@ -31,4 +31,5 @@ __exportStar(require("./manifests"), exports);
31
31
  __exportStar(require("./users"), exports);
32
32
  __exportStar(require("./errors"), exports);
33
33
  __exportStar(require("./geo-location"), exports);
34
+ __exportStar(require("./snapshots"), exports);
34
35
  //# 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,2CAAyB;AACzB,2CAAyB;AACzB,iDAA+B;AAC/B,2CAAyB;AACzB,2CAAyB;AACzB,8CAA4B;AAC5B,6CAA2B;AAC3B,kDAAgC;AAChC,4CAA0B;AAC1B,0CAAwB;AACxB,yCAAuB;AACvB,8CAA4B;AAC5B,0CAAwB;AACxB,8CAA4B;AAC5B,0CAAwB;AACxB,2CAAyB;AACzB,iDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,2CAAyB;AACzB,iDAA+B;AAC/B,2CAAyB;AACzB,2CAAyB;AACzB,8CAA4B;AAC5B,6CAA2B;AAC3B,kDAAgC;AAChC,4CAA0B;AAC1B,0CAAwB;AACxB,yCAAuB;AACvB,8CAA4B;AAC5B,0CAAwB;AACxB,8CAA4B;AAC5B,0CAAwB;AACxB,2CAAyB;AACzB,iDAA+B;AAC/B,8CAA4B"}
@@ -1,15 +1,26 @@
1
1
  export interface IManifestType {
2
2
  typeId: string;
3
+ typeName?: string;
4
+ typePath?: string;
3
5
  section?: string;
4
6
  count?: number;
5
7
  countMin?: number;
6
8
  countMax?: number;
7
9
  untagged?: boolean;
8
10
  }
11
+ export interface IManifestAsset {
12
+ assetId: string;
13
+ assetName?: string;
14
+ typeId?: string;
15
+ typeName?: string;
16
+ typePath?: string;
17
+ section?: string;
18
+ }
9
19
  export interface GetManifestResponse {
10
20
  id: string;
11
21
  name: string;
12
22
  sections?: string[];
13
23
  types?: IManifestType[];
24
+ assets?: IManifestAsset[];
14
25
  }
15
26
  export declare const testGetManifestRequest: GetManifestResponse;
@@ -1 +1 @@
1
- {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/manifests/[id]/get.ts"],"names":[],"mappings":";;;AAiBa,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;SACf;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;YACZ,QAAQ,EAAE,EAAE;YACZ,QAAQ,EAAE,IAAI;SACf;KACF;CACF,CAAC"}
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;SACf;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;YACZ,QAAQ,EAAE,EAAE;YACZ,QAAQ,EAAE,IAAI;SACf;KACF;CACF,CAAC"}
@@ -1,6 +1,7 @@
1
- import { IManifestType } from '../get';
1
+ import { IManifestType, IManifestAsset } from '../get';
2
2
  export interface UpdateManifestRequest {
3
3
  name?: string;
4
4
  types?: IManifestType[];
5
+ assets?: IManifestAsset[];
5
6
  }
6
7
  export declare const testUpdatetManifestRequest: UpdateManifestRequest;
@@ -21,5 +21,19 @@ exports.testUpdatetManifestRequest = {
21
21
  countMax: 34,
22
22
  },
23
23
  ],
24
+ assets: [
25
+ {
26
+ assetId: '123456789',
27
+ },
28
+ {
29
+ assetId: '123456789',
30
+ assetName: 'Hammer 1kg',
31
+ },
32
+ {
33
+ assetId: '123456789',
34
+ assetName: 'Hammer 1kg',
35
+ section: 'Back Shelf',
36
+ },
37
+ ],
24
38
  };
25
39
  //# sourceMappingURL=request.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../../src/manifests/[id]/patch/request.ts"],"names":[],"mappings":";;;AAQa,QAAA,0BAA0B,GAA0B;IAC/D,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE;QACL;YACE,MAAM,EAAE,MAAM;SACf;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;YACZ,QAAQ,EAAE,EAAE;SACb;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../../src/manifests/[id]/patch/request.ts"],"names":[],"mappings":";;;AASa,QAAA,0BAA0B,GAA0B;IAC/D,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE;QACL;YACE,MAAM,EAAE,MAAM;SACf;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;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,7 +1,8 @@
1
- import { IManifestType } from '../[id]/get';
1
+ import { IManifestType, IManifestAsset } from '../[id]/get';
2
2
  export interface PostManifestRequest {
3
3
  name: string;
4
4
  types?: IManifestType[];
5
+ assets?: IManifestAsset[];
5
6
  }
6
7
  export declare type PostManifestsRequest = PostManifestRequest[];
7
8
  export declare const testPostManifestRequest: PostManifestRequest;
@@ -25,5 +25,19 @@ exports.testPostManifestRequest = {
25
25
  countMax: 34,
26
26
  },
27
27
  ],
28
+ assets: [
29
+ {
30
+ assetId: '123456789',
31
+ },
32
+ {
33
+ assetId: '123456789',
34
+ assetName: 'Hammer 1kg',
35
+ },
36
+ {
37
+ assetId: '123456789',
38
+ assetName: 'Hammer 1kg',
39
+ section: 'Back Shelf',
40
+ },
41
+ ],
28
42
  };
29
43
  //# sourceMappingURL=request.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/manifests/post/request.ts"],"names":[],"mappings":";;;AAUa,QAAA,uBAAuB,GAAwB;IAC1D,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE;QACL;YACE,MAAM,EAAE,MAAM;SACf;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;CACF,CAAC"}
1
+ {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/manifests/post/request.ts"],"names":[],"mappings":";;;AAWa,QAAA,uBAAuB,GAAwB;IAC1D,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE;QACL;YACE,MAAM,EAAE,MAAM;SACf;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"}
@@ -4,6 +4,7 @@ export interface DeletedCounts {
4
4
  tags?: number;
5
5
  readers?: number;
6
6
  events?: number;
7
+ types?: number;
7
8
  users?: number;
8
9
  }
9
10
  export interface DeleteOrganisationResponse {
@@ -3,6 +3,20 @@ export interface ReaderPreferences {
3
3
  types: ReaderType[];
4
4
  deviceTypes: DeviceType[];
5
5
  }
6
+ export interface AssetPreferences {
7
+ typesEnabled: boolean;
8
+ typesRequired: boolean;
9
+ typesLeafNodesOnly: boolean;
10
+ }
11
+ export interface LocationPreferences {
12
+ manifestsEnabled: boolean;
13
+ }
14
+ export interface SnapshotPreferences {
15
+ mainMenuEnabled?: boolean;
16
+ }
6
17
  export interface Preferences {
7
18
  readers: ReaderPreferences;
19
+ assets: AssetPreferences;
20
+ locations: LocationPreferences;
21
+ snapshots?: SnapshotPreferences;
8
22
  }
@@ -0,0 +1,75 @@
1
+ import { IEmbeddedEntity } from '../../shared';
2
+ import { GetManifestResponse } from '../../manifests';
3
+ export interface ISnapshotDetectedAsset {
4
+ assetId: string;
5
+ assetName?: string;
6
+ typeId?: string;
7
+ typeName?: string;
8
+ typePath?: string;
9
+ section?: string;
10
+ }
11
+ export interface ISnapshotSightedType {
12
+ typeId: string;
13
+ typeName?: string;
14
+ typePath?: string;
15
+ section?: string;
16
+ count: number;
17
+ }
18
+ export interface ISnapshotSightedAsset {
19
+ assetId: string;
20
+ assetName?: string;
21
+ typeId?: string;
22
+ typeName?: string;
23
+ typePath?: string;
24
+ section?: string;
25
+ }
26
+ export interface ISnapshotComputed {
27
+ missingAssets: number;
28
+ detectedAssets: number;
29
+ manifestTypes?: {
30
+ count: number;
31
+ countMissingTypes: number;
32
+ countMissing: number;
33
+ countSighted: number;
34
+ };
35
+ manifestAssets?: {
36
+ count: number;
37
+ countMissing: number;
38
+ countSighted: number;
39
+ };
40
+ additional?: {
41
+ countTypes: number;
42
+ countAssets: number;
43
+ };
44
+ }
45
+ export interface ISnapshotFields {
46
+ notes?: string;
47
+ }
48
+ export interface GetSnapshotResponse {
49
+ id: string;
50
+ user?: IEmbeddedEntity;
51
+ reader?: IEmbeddedEntity;
52
+ location?: IEmbeddedEntity;
53
+ manifest?: GetManifestResponse;
54
+ detectedAssets?: ISnapshotDetectedAsset[];
55
+ sightedTypes?: ISnapshotSightedType[];
56
+ sightedAssets?: ISnapshotSightedAsset[];
57
+ computed?: ISnapshotComputed;
58
+ fields?: ISnapshotFields;
59
+ submitted?: number;
60
+ created: number;
61
+ updated?: number;
62
+ }
63
+ export interface GetSnapshotsItem {
64
+ id: string;
65
+ user?: IEmbeddedEntity;
66
+ reader?: IEmbeddedEntity;
67
+ location?: IEmbeddedEntity;
68
+ manifest?: IEmbeddedEntity;
69
+ computed?: ISnapshotComputed;
70
+ fields?: ISnapshotFields;
71
+ submitted?: number;
72
+ created: number;
73
+ updated?: number;
74
+ }
75
+ export declare const testGetSnapshotRequest: GetSnapshotResponse;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.testGetSnapshotRequest = void 0;
4
+ exports.testGetSnapshotRequest = {
5
+ id: '23456',
6
+ created: 123456789,
7
+ computed: {
8
+ missingAssets: 0,
9
+ detectedAssets: 2,
10
+ manifestTypes: {
11
+ count: 2,
12
+ countMissingTypes: 1,
13
+ countMissing: 1,
14
+ countSighted: 1,
15
+ },
16
+ manifestAssets: {
17
+ count: 2,
18
+ countMissing: 1,
19
+ countSighted: 1,
20
+ },
21
+ additional: {
22
+ countTypes: 1,
23
+ countAssets: 1,
24
+ },
25
+ },
26
+ };
27
+ //# sourceMappingURL=get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/snapshots/[id]/get.ts"],"names":[],"mappings":";;;AAqFa,QAAA,sBAAsB,GAAwB;IACzD,EAAE,EAAE,OAAO;IACX,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE;QACR,aAAa,EAAE,CAAC;QAChB,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"}
@@ -0,0 +1,2 @@
1
+ export * from './patch';
2
+ export * from './get';
@@ -0,0 +1,19 @@
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("./patch"), exports);
18
+ __exportStar(require("./get"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/snapshots/[id]/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,wCAAsB"}
@@ -0,0 +1,2 @@
1
+ export * from './request';
2
+ export * from './response';
@@ -0,0 +1,19 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/snapshots/[id]/patch/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B"}
@@ -0,0 +1,5 @@
1
+ import { ISnapshotFields } from '../get';
2
+ export interface UpdateSnapshotRequest {
3
+ fields?: ISnapshotFields;
4
+ }
5
+ export declare const testUpdatetSnapshotRequest: UpdateSnapshotRequest;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.testUpdatetSnapshotRequest = void 0;
4
+ exports.testUpdatetSnapshotRequest = {
5
+ fields: {
6
+ notes: 'Updated notes',
7
+ },
8
+ };
9
+ //# sourceMappingURL=request.js.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1 @@
1
+ export { GetSnapshotResponse as UpdateSnapshotResponse } from '../get';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.js","sourceRoot":"","sources":["../../../../src/snapshots/[id]/patch/response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './query';
2
+ export * from './response';
@@ -0,0 +1,19 @@
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("./query"), exports);
18
+ __exportStar(require("./response"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/snapshots/get/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,6CAA2B"}
@@ -0,0 +1,10 @@
1
+ import { StandardSortFields, SortOrders } from '../../shared';
2
+ export declare type SnapshotSortField = StandardSortFields;
3
+ export declare type SnapshotEmbedField = 'meta';
4
+ export interface GetSnapshotsQuery {
5
+ page?: number;
6
+ limit?: number;
7
+ sort?: SnapshotSortField;
8
+ sortOrder?: SortOrders;
9
+ embed?: Array<SnapshotEmbedField>;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/snapshots/get/query.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { GetSnapshotsQuery } from './query';
2
+ import { GetSnapshotsItem } from '../[id]/get';
3
+ export interface GetSnapshotsResponse {
4
+ query: GetSnapshotsQuery | null;
5
+ total: number;
6
+ items: GetSnapshotsItem[];
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/snapshots/get/response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export * from './[id]';
2
+ export * from './get';
3
+ export * from './post';
@@ -0,0 +1,20 @@
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("./[id]"), exports);
18
+ __exportStar(require("./get"), exports);
19
+ __exportStar(require("./post"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/snapshots/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,wCAAsB;AACtB,yCAAuB"}
@@ -0,0 +1,2 @@
1
+ export * from './request';
2
+ export * from './response';
@@ -0,0 +1,19 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/snapshots/post/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B"}
@@ -0,0 +1,17 @@
1
+ import { ISnapshotDetectedAsset, ISnapshotSightedType, ISnapshotSightedAsset, ISnapshotFields } from '../[id]/get';
2
+ import { GetManifestResponse } from '../../manifests';
3
+ import { IEmbeddedEntity } from '../../shared/embed';
4
+ export interface PostSnapshotRequest {
5
+ reader: IEmbeddedEntity;
6
+ location: IEmbeddedEntity;
7
+ manifest?: GetManifestResponse;
8
+ detectedAssets?: ISnapshotDetectedAsset[];
9
+ sightedTypes?: ISnapshotSightedType[];
10
+ sightedAssets?: ISnapshotSightedAsset[];
11
+ fields?: ISnapshotFields;
12
+ submitted?: number;
13
+ }
14
+ export declare type PostSnapshotsRequest = PostSnapshotRequest[];
15
+ export declare const testPostSnapshotRequest1: PostSnapshotRequest;
16
+ export declare const testPostSnapshotRequest2: PostSnapshotRequest;
17
+ export declare const testPostSnapshotRequest3: PostSnapshotRequest;
@@ -0,0 +1,210 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.testPostSnapshotRequest3 = exports.testPostSnapshotRequest2 = exports.testPostSnapshotRequest1 = void 0;
4
+ exports.testPostSnapshotRequest1 = {
5
+ reader: { id: '6440b0184a9cc5be43584567', name: 'Reader 1' },
6
+ location: { id: '64408a8f6d41763ffc8b9e9d', name: 'Location 1' },
7
+ detectedAssets: [
8
+ {
9
+ assetId: '6440a38088c6d2daa70fdd7b',
10
+ assetName: '0252 - Chainsaw Fuel - Combo',
11
+ typeId: '638ec11df30be8b845f6cadb',
12
+ typeName: 'Chainsaw Fuel - Combo',
13
+ },
14
+ {
15
+ assetId: '6440a6ab2db0e52b4971379e',
16
+ assetName: '0252 - Funnel',
17
+ typeId: '638ec11ef30be8b845f6cae2',
18
+ typeName: 'Funnel',
19
+ },
20
+ {
21
+ assetId: '64409c8faff15f8bae135272',
22
+ assetName: '25mm Hose',
23
+ typeId: '638ec116f30be8b845f6cabc',
24
+ typeName: '25mm Hose',
25
+ },
26
+ {
27
+ assetId: '64409c12312315f8bae135272',
28
+ assetName: '40mm Hose',
29
+ typeId: '638ec116f30be8b845f6c123',
30
+ },
31
+ ],
32
+ fields: {
33
+ notes: '',
34
+ },
35
+ submitted: 1684479633579,
36
+ };
37
+ exports.testPostSnapshotRequest2 = {
38
+ reader: { id: '6440b0184a9cc5be43584567', name: 'Reader 1' },
39
+ location: { id: '64408a8f6d41763ffc8b9e9d', name: 'Location 1' },
40
+ manifest: {
41
+ id: '63929c115c1e4dfbc7fb8f6f',
42
+ name: '4561TEU',
43
+ sections: ['Passenger Locker', 'Top of Tank', 'Pump Area'],
44
+ types: [
45
+ {
46
+ typeId: '638ec10af30be8b845f6ca73',
47
+ typeName: 'Blower - Handheld',
48
+ section: 'Passenger Locker',
49
+ countMin: 1,
50
+ countMax: 1,
51
+ },
52
+ {
53
+ typeId: '638ec114f30be8b845f6cab1',
54
+ typeName: 'Blower - Backpack',
55
+ section: 'Top of Tank',
56
+ countMin: 1,
57
+ countMax: 1,
58
+ },
59
+ {
60
+ typeId: '638ec114f30be8b845f6cab2',
61
+ typeName: 'Small Plant Blower',
62
+ section: 'Top of Tank',
63
+ countMin: 1,
64
+ countMax: 1,
65
+ },
66
+ {
67
+ typeId: '638ec114f30be8b845f6cab3',
68
+ typeName: 'Brush cutter',
69
+ section: 'Top of Tank',
70
+ countMin: 1,
71
+ countMax: 1,
72
+ },
73
+ {
74
+ typeId: '638ec10bf30be8b845f6ca7b',
75
+ typeName: 'Chainsaw - Electric',
76
+ section: 'Top of Tank',
77
+ countMin: 1,
78
+ countMax: 1,
79
+ },
80
+ {
81
+ typeId: '638ec113f30be8b845f6caad',
82
+ typeName: 'Fire Chainsaw - Petrol',
83
+ section: 'Top of Tank',
84
+ countMin: 1,
85
+ countMax: 1,
86
+ },
87
+ {
88
+ typeId: '638ec115f30be8b845f6cab4',
89
+ typeName: 'Fuel & Oils Chainsaw Oil',
90
+ section: 'Pump Area',
91
+ countMin: 2,
92
+ countMax: 2,
93
+ },
94
+ {
95
+ typeId: '638ec115f30be8b845f6cab5',
96
+ typeName: 'Drip Torch Fuel',
97
+ section: 'Pump Area',
98
+ countMin: 2,
99
+ countMax: 2,
100
+ },
101
+ ],
102
+ },
103
+ detectedAssets: [
104
+ {
105
+ assetId: '6440a38088c6d2daa70fdd7b',
106
+ assetName: '0252 - Chainsaw Fuel - Combo',
107
+ typeId: '638ec11df30be8b845f6cadb',
108
+ typeName: 'Chainsaw Fuel - Combo',
109
+ },
110
+ {
111
+ assetId: '6440a6ab2db0e52b4971379e',
112
+ assetName: '0252 - Funnel',
113
+ typeId: '638ec11ef30be8b845f6cae2',
114
+ typeName: 'Funnel',
115
+ },
116
+ {
117
+ assetId: '64409c8faff15f8bae135272',
118
+ assetName: '25mm Hose',
119
+ typeId: '638ec116f30be8b845f6cabc',
120
+ typeName: '25mm Hose',
121
+ },
122
+ {
123
+ assetId: '64409c12312315f8bae135272',
124
+ assetName: '40mm Hose',
125
+ typeId: '638ec116f30be8b845f6c123',
126
+ },
127
+ ],
128
+ sightedTypes: [
129
+ {
130
+ typeId: '638ec10af30be8b845f6ca73',
131
+ section: 'Passenger Locker',
132
+ count: 1,
133
+ },
134
+ {
135
+ typeId: '638ec10af30be8b845f6ca76',
136
+ section: 'Passenger Locker',
137
+ count: 0,
138
+ },
139
+ {
140
+ typeId: '638ec10bf30be8b845f6ca7b',
141
+ section: 'Top of Tank',
142
+ count: 1,
143
+ },
144
+ ],
145
+ fields: {
146
+ notes: '',
147
+ },
148
+ submitted: 1684479633579,
149
+ };
150
+ exports.testPostSnapshotRequest3 = {
151
+ reader: { id: '6440b0184a9cc5be43584567', name: 'Reader 1' },
152
+ location: { id: '64408a8f6d41763ffc8b9e9d', name: 'Location 1' },
153
+ manifest: {
154
+ id: '63929c115c1e4dfbc7fb8f6f',
155
+ name: '4561TEU',
156
+ sections: ['Passenger Locker', 'Top of Tank', 'Pump Area'],
157
+ assets: [
158
+ {
159
+ assetId: '64409c8faff15f8bae135272',
160
+ assetName: '25mm Hose',
161
+ typeId: '638ec116f30be8b845f6cabc',
162
+ typeName: '25mm Hose',
163
+ section: 'Drivers Locker',
164
+ },
165
+ ],
166
+ },
167
+ detectedAssets: [
168
+ {
169
+ assetId: '6440a38088c6d2daa70fdd7b',
170
+ assetName: '0252 - Chainsaw Fuel - Combo',
171
+ typeId: '638ec11df30be8b845f6cadb',
172
+ typeName: 'Chainsaw Fuel - Combo',
173
+ section: 'Drivers Locker',
174
+ },
175
+ {
176
+ assetId: '6440a6ab2db0e52b4971379e',
177
+ assetName: '0252 - Funnel',
178
+ typeId: '638ec11ef30be8b845f6cae2',
179
+ typeName: 'Funnel',
180
+ section: 'Drivers Locker',
181
+ },
182
+ {
183
+ assetId: '64409c8faff15f8bae135272',
184
+ assetName: '25mm Hose',
185
+ typeId: '638ec116f30be8b845f6cabc',
186
+ typeName: '25mm Hose',
187
+ section: 'Drivers Locker',
188
+ },
189
+ {
190
+ assetId: '64409c12312315f8bae135272',
191
+ assetName: '40mm Hose',
192
+ typeId: '638ec116f30be8b845f6c123',
193
+ typeName: '40mm Hose',
194
+ },
195
+ ],
196
+ sightedAssets: [
197
+ {
198
+ assetId: '64409c8faff15f8bae135272',
199
+ assetName: '40mm Hose',
200
+ typeId: '638ec116f30be8b845f6c123',
201
+ typeName: '40mm Hose',
202
+ section: 'Drivers Locker',
203
+ },
204
+ ],
205
+ fields: {
206
+ notes: '',
207
+ },
208
+ submitted: 1684479633579,
209
+ };
210
+ //# sourceMappingURL=request.js.map
@@ -0,0 +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,uBA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YACtB,MAAM,EAAE,0BAA0B;YAClC,QAAQ,EAAE,WAAW;SACtB;KACF;IACD,aAAa,EAAE;QACb;YACE,OAAO,EAAE,0BAA0B;YACnC,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,0BAA0B;YAClC,QAAQ,EAAE,WAAW;YACrB,OAAO,EAAE,gBAAgB;SAC1B;KACF;IACD,MAAM,EAAE;QACN,KAAK,EAAE,EAAE;KACV;IACD,SAAS,EAAE,aAAa;CACzB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { GetSnapshotResponse } from '../[id]/get';
2
+ export interface PostSnapshotsResponse {
3
+ inserted: number;
4
+ items: GetSnapshotResponse[];
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/snapshots/post/response.ts"],"names":[],"mappings":""}
@@ -5,4 +5,5 @@ export interface GetTypeResponse {
5
5
  parent?: string;
6
6
  fullNameTemplate?: string;
7
7
  description?: string;
8
+ path?: string;
8
9
  }
@@ -3,4 +3,5 @@ export interface UpdateTypeRequest {
3
3
  parent?: string;
4
4
  fullNameTemplate?: string;
5
5
  description?: string;
6
+ path?: string;
6
7
  }
@@ -3,6 +3,7 @@ export interface PostTypeRequest {
3
3
  parent?: string;
4
4
  fullNameTemplate?: string;
5
5
  description?: string;
6
+ path?: string;
6
7
  }
7
8
  export declare type PostTypesRequest = PostTypeRequest[];
8
9
  export declare const testPostTypeRequest: PostTypeRequest;
@@ -1 +1 @@
1
- {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/types/post/request.ts"],"names":[],"mappings":";;;AAUa,QAAA,mBAAmB,GAAoB;IAClD,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,MAAM;IACZ,gBAAgB,EAAE,OAAO;CAC1B,CAAC"}
1
+ {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/types/post/request.ts"],"names":[],"mappings":";;;AAWa,QAAA,mBAAmB,GAAoB;IAClD,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,MAAM;IACZ,gBAAgB,EAAE,OAAO;CAC1B,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spotto/contract",
3
3
  "license": "ISC",
4
- "version": "1.0.14-alpha.0",
4
+ "version": "1.0.15-alpha.0",
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": "56c10fe53ee2c9dd909a63f2cf100686b4e01c0d"
17
+ "gitHead": "b9c8b47532c985ef043db4ffa384805ea85d3642"
18
18
  }