@spotto/contract 1.0.13-alpha.0 → 1.0.13

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 (43) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.js +1 -0
  3. package/dist/index.js.map +1 -1
  4. package/dist/locations/[id]/get.d.ts +1 -0
  5. package/dist/locations/[id]/patch/request.d.ts +1 -0
  6. package/dist/locations/post/request.d.ts +1 -0
  7. package/dist/manifests/[id]/get.d.ts +15 -0
  8. package/dist/manifests/[id]/get.js +28 -0
  9. package/dist/manifests/[id]/get.js.map +1 -0
  10. package/dist/manifests/[id]/index.d.ts +2 -0
  11. package/dist/manifests/[id]/index.js +19 -0
  12. package/dist/manifests/[id]/index.js.map +1 -0
  13. package/dist/manifests/[id]/patch/index.d.ts +2 -0
  14. package/dist/manifests/[id]/patch/index.js +19 -0
  15. package/dist/manifests/[id]/patch/index.js.map +1 -0
  16. package/dist/manifests/[id]/patch/request.d.ts +6 -0
  17. package/dist/manifests/[id]/patch/request.js +25 -0
  18. package/dist/manifests/[id]/patch/request.js.map +1 -0
  19. package/dist/manifests/[id]/patch/response.d.ts +1 -0
  20. package/dist/manifests/[id]/patch/response.js +3 -0
  21. package/dist/manifests/[id]/patch/response.js.map +1 -0
  22. package/dist/manifests/get/index.d.ts +2 -0
  23. package/dist/manifests/get/index.js +19 -0
  24. package/dist/manifests/get/index.js.map +1 -0
  25. package/dist/manifests/get/query.d.ts +10 -0
  26. package/dist/manifests/get/query.js +3 -0
  27. package/dist/manifests/get/query.js.map +1 -0
  28. package/dist/manifests/get/response.d.ts +7 -0
  29. package/dist/manifests/get/response.js +3 -0
  30. package/dist/manifests/get/response.js.map +1 -0
  31. package/dist/manifests/index.d.ts +3 -0
  32. package/dist/manifests/index.js +20 -0
  33. package/dist/manifests/index.js.map +1 -0
  34. package/dist/manifests/post/index.d.ts +2 -0
  35. package/dist/manifests/post/index.js +19 -0
  36. package/dist/manifests/post/index.js.map +1 -0
  37. package/dist/manifests/post/request.d.ts +7 -0
  38. package/dist/manifests/post/request.js +29 -0
  39. package/dist/manifests/post/request.js.map +1 -0
  40. package/dist/manifests/post/response.d.ts +5 -0
  41. package/dist/manifests/post/response.js +3 -0
  42. package/dist/manifests/post/response.js.map +1 -0
  43. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -11,6 +11,7 @@ export * from './roles';
11
11
  export * from './tags';
12
12
  export * from './telemetry';
13
13
  export * from './types';
14
+ export * from './manifests';
14
15
  export * from './users';
15
16
  export * from './errors';
16
17
  export * from './geo-location';
package/dist/index.js CHANGED
@@ -27,6 +27,7 @@ __exportStar(require("./roles"), exports);
27
27
  __exportStar(require("./tags"), exports);
28
28
  __exportStar(require("./telemetry"), exports);
29
29
  __exportStar(require("./types"), exports);
30
+ __exportStar(require("./manifests"), exports);
30
31
  __exportStar(require("./users"), exports);
31
32
  __exportStar(require("./errors"), exports);
32
33
  __exportStar(require("./geo-location"), exports);
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,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"}
@@ -10,4 +10,5 @@ export interface GetLocationResponse {
10
10
  readers?: IEmbeddedReader[];
11
11
  telemetry?: IAssetTelemetry;
12
12
  meta?: IEntityMeta;
13
+ manifestId?: string;
13
14
  }
@@ -3,4 +3,5 @@ export interface UpdateLocationRequest {
3
3
  tagIds?: string[];
4
4
  address?: string;
5
5
  geoLocation?: GeoJSON.GeoJSON;
6
+ manifestId?: string;
6
7
  }
@@ -3,5 +3,6 @@ export interface PostLocationRequest {
3
3
  tagIds?: string[];
4
4
  address?: string;
5
5
  geoLocation?: GeoJSON.GeoJSON;
6
+ manifestId?: string;
6
7
  }
7
8
  export declare type PostLocationsRequest = PostLocationRequest[];
@@ -0,0 +1,15 @@
1
+ export interface IManifestType {
2
+ typeId: string;
3
+ section?: string;
4
+ count?: number;
5
+ countMin?: number;
6
+ countMax?: number;
7
+ untagged?: boolean;
8
+ }
9
+ export interface GetManifestResponse {
10
+ id: string;
11
+ name: string;
12
+ sections?: string[];
13
+ types?: IManifestType[];
14
+ }
15
+ export declare const testGetManifestRequest: GetManifestResponse;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.testGetManifestRequest = void 0;
4
+ exports.testGetManifestRequest = {
5
+ id: '23456',
6
+ name: 'abcd',
7
+ sections: ['dewdede', 'fefverver', '234'],
8
+ types: [
9
+ {
10
+ typeId: '2345',
11
+ },
12
+ {
13
+ typeId: '2345',
14
+ count: 123,
15
+ },
16
+ {
17
+ typeId: '2345',
18
+ countMin: 44,
19
+ },
20
+ {
21
+ typeId: '2345',
22
+ countMin: 12,
23
+ countMax: 34,
24
+ untagged: true,
25
+ },
26
+ ],
27
+ };
28
+ //# sourceMappingURL=get.js.map
@@ -0,0 +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"}
@@ -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/manifests/[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/manifests/[id]/patch/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B"}
@@ -0,0 +1,6 @@
1
+ import { IManifestType } from '../get';
2
+ export interface UpdateManifestRequest {
3
+ name?: string;
4
+ types?: IManifestType[];
5
+ }
6
+ export declare const testUpdatetManifestRequest: UpdateManifestRequest;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.testUpdatetManifestRequest = void 0;
4
+ exports.testUpdatetManifestRequest = {
5
+ name: 'abcd',
6
+ types: [
7
+ {
8
+ typeId: '2345',
9
+ },
10
+ {
11
+ typeId: '2345',
12
+ count: 123,
13
+ },
14
+ {
15
+ typeId: '2345',
16
+ countMin: 44,
17
+ },
18
+ {
19
+ typeId: '2345',
20
+ countMin: 12,
21
+ countMax: 34,
22
+ },
23
+ ],
24
+ };
25
+ //# sourceMappingURL=request.js.map
@@ -0,0 +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"}
@@ -0,0 +1 @@
1
+ export { GetManifestResponse as UpdateManifestResponse } 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/manifests/[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/manifests/get/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,6CAA2B"}
@@ -0,0 +1,10 @@
1
+ import { StandardSortFields, SortOrders } from '../../shared';
2
+ export declare type ManifestSortField = StandardSortFields;
3
+ export declare type ManifestEmbedField = 'meta';
4
+ export interface GetManifestsQuery {
5
+ page?: number;
6
+ limit?: number;
7
+ sort?: ManifestSortField;
8
+ sortOrder?: SortOrders;
9
+ embed?: Array<ManifestEmbedField>;
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/manifests/get/query.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { GetManifestsQuery } from './query';
2
+ import { GetManifestResponse } from '../[id]/get';
3
+ export interface GetManifestsResponse {
4
+ query: GetManifestsQuery | null;
5
+ total: number;
6
+ items: GetManifestResponse[];
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/manifests/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/manifests/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/manifests/post/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B"}
@@ -0,0 +1,7 @@
1
+ import { IManifestType } from '../[id]/get';
2
+ export interface PostManifestRequest {
3
+ name: string;
4
+ types?: IManifestType[];
5
+ }
6
+ export declare type PostManifestsRequest = PostManifestRequest[];
7
+ export declare const testPostManifestRequest: PostManifestRequest;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.testPostManifestRequest = void 0;
4
+ exports.testPostManifestRequest = {
5
+ name: 'abcd',
6
+ types: [
7
+ {
8
+ typeId: '2345',
9
+ },
10
+ {
11
+ typeId: '2345',
12
+ count: 123,
13
+ },
14
+ {
15
+ typeId: '2345',
16
+ countMin: 44,
17
+ },
18
+ {
19
+ typeId: '2345',
20
+ countMax: 45,
21
+ },
22
+ {
23
+ typeId: '2345',
24
+ countMin: 12,
25
+ countMax: 34,
26
+ },
27
+ ],
28
+ };
29
+ //# sourceMappingURL=request.js.map
@@ -0,0 +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"}
@@ -0,0 +1,5 @@
1
+ import { GetManifestResponse } from '../[id]/get';
2
+ export interface PostManifestsResponse {
3
+ inserted: number;
4
+ items: GetManifestResponse[];
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/manifests/post/response.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spotto/contract",
3
3
  "license": "ISC",
4
- "version": "1.0.13-alpha.0",
4
+ "version": "1.0.13",
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": "494e77856ce7d1e1293f041dc3e5b4e386143621"
17
+ "gitHead": "a5ace2e04280c94b228cd32f058f4810d0c7713e"
18
18
  }