@spotto/contract 1.0.12 → 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 (88) hide show
  1. package/dist/assets/[id]/get.d.ts +1 -0
  2. package/dist/assets/[id]/patch/request.d.ts +1 -0
  3. package/dist/assets/post/request.d.ts +1 -0
  4. package/dist/index.d.ts +2 -0
  5. package/dist/index.js +2 -0
  6. package/dist/index.js.map +1 -1
  7. package/dist/locations/[id]/get.d.ts +1 -0
  8. package/dist/locations/[id]/patch/request.d.ts +1 -0
  9. package/dist/locations/post/request.d.ts +1 -0
  10. package/dist/manifests/[id]/get.d.ts +15 -0
  11. package/dist/manifests/[id]/get.js +28 -0
  12. package/dist/manifests/[id]/get.js.map +1 -0
  13. package/dist/manifests/[id]/index.d.ts +2 -0
  14. package/dist/manifests/[id]/index.js +19 -0
  15. package/dist/manifests/[id]/index.js.map +1 -0
  16. package/dist/manifests/[id]/patch/index.d.ts +2 -0
  17. package/dist/manifests/[id]/patch/index.js +19 -0
  18. package/dist/manifests/[id]/patch/index.js.map +1 -0
  19. package/dist/manifests/[id]/patch/request.d.ts +6 -0
  20. package/dist/manifests/[id]/patch/request.js +25 -0
  21. package/dist/manifests/[id]/patch/request.js.map +1 -0
  22. package/dist/manifests/[id]/patch/response.d.ts +1 -0
  23. package/dist/manifests/[id]/patch/response.js +3 -0
  24. package/dist/manifests/[id]/patch/response.js.map +1 -0
  25. package/dist/manifests/get/index.d.ts +2 -0
  26. package/dist/manifests/get/index.js +19 -0
  27. package/dist/manifests/get/index.js.map +1 -0
  28. package/dist/manifests/get/query.d.ts +10 -0
  29. package/dist/manifests/get/query.js +3 -0
  30. package/dist/manifests/get/query.js.map +1 -0
  31. package/dist/manifests/get/response.d.ts +7 -0
  32. package/dist/manifests/get/response.js +3 -0
  33. package/dist/manifests/get/response.js.map +1 -0
  34. package/dist/manifests/index.d.ts +3 -0
  35. package/dist/manifests/index.js +20 -0
  36. package/dist/manifests/index.js.map +1 -0
  37. package/dist/manifests/post/index.d.ts +2 -0
  38. package/dist/manifests/post/index.js +19 -0
  39. package/dist/manifests/post/index.js.map +1 -0
  40. package/dist/manifests/post/request.d.ts +7 -0
  41. package/dist/manifests/post/request.js +29 -0
  42. package/dist/manifests/post/request.js.map +1 -0
  43. package/dist/manifests/post/response.d.ts +5 -0
  44. package/dist/manifests/post/response.js +3 -0
  45. package/dist/manifests/post/response.js.map +1 -0
  46. package/dist/types/[id]/get.d.ts +8 -0
  47. package/dist/types/[id]/get.js +3 -0
  48. package/dist/types/[id]/get.js.map +1 -0
  49. package/dist/types/[id]/index.d.ts +2 -0
  50. package/dist/types/[id]/index.js +19 -0
  51. package/dist/types/[id]/index.js.map +1 -0
  52. package/dist/types/[id]/patch/index.d.ts +2 -0
  53. package/dist/types/[id]/patch/index.js +19 -0
  54. package/dist/types/[id]/patch/index.js.map +1 -0
  55. package/dist/types/[id]/patch/request.d.ts +6 -0
  56. package/dist/types/[id]/patch/request.js +3 -0
  57. package/dist/types/[id]/patch/request.js.map +1 -0
  58. package/dist/types/[id]/patch/response.d.ts +1 -0
  59. package/dist/types/[id]/patch/response.js +3 -0
  60. package/dist/types/[id]/patch/response.js.map +1 -0
  61. package/dist/types/get/index.d.ts +2 -0
  62. package/dist/types/get/index.js +19 -0
  63. package/dist/types/get/index.js.map +1 -0
  64. package/dist/types/get/query.d.ts +10 -0
  65. package/dist/types/get/query.js +3 -0
  66. package/dist/types/get/query.js.map +1 -0
  67. package/dist/types/get/response.d.ts +7 -0
  68. package/dist/types/get/response.js +3 -0
  69. package/dist/types/get/response.js.map +1 -0
  70. package/dist/types/hierarchy/index.d.ts +1 -0
  71. package/dist/types/hierarchy/index.js +18 -0
  72. package/dist/types/hierarchy/index.js.map +1 -0
  73. package/dist/types/hierarchy/response.d.ts +8 -0
  74. package/dist/types/hierarchy/response.js +27 -0
  75. package/dist/types/hierarchy/response.js.map +1 -0
  76. package/dist/types/index.d.ts +4 -0
  77. package/dist/types/index.js +21 -0
  78. package/dist/types/index.js.map +1 -0
  79. package/dist/types/post/index.d.ts +2 -0
  80. package/dist/types/post/index.js +19 -0
  81. package/dist/types/post/index.js.map +1 -0
  82. package/dist/types/post/request.d.ts +8 -0
  83. package/dist/types/post/request.js +9 -0
  84. package/dist/types/post/request.js.map +1 -0
  85. package/dist/types/post/response.d.ts +5 -0
  86. package/dist/types/post/response.js +3 -0
  87. package/dist/types/post/response.js.map +1 -0
  88. package/package.json +2 -2
@@ -17,6 +17,7 @@ export interface GetAssetResponse {
17
17
  labels: IEmbeddedLabel[];
18
18
  organisation?: IEmbeddedEntity;
19
19
  tagIds?: string[];
20
+ typeId?: string;
20
21
  score?: number;
21
22
  meta?: IEntityMeta;
22
23
  telemetry?: IAssetTelemetry;
@@ -2,4 +2,5 @@ export interface UpdateAssetRequest {
2
2
  name?: string;
3
3
  tagIds?: string[];
4
4
  labels?: string[];
5
+ typeId?: string;
5
6
  }
@@ -2,5 +2,6 @@ export interface PostAssetRequest {
2
2
  name: string;
3
3
  tagIds?: string[];
4
4
  labels?: string[];
5
+ typeId?: string;
5
6
  }
6
7
  export declare type PostAssetsRequest = PostAssetRequest[];
package/dist/index.d.ts CHANGED
@@ -10,6 +10,8 @@ export * from './readers';
10
10
  export * from './roles';
11
11
  export * from './tags';
12
12
  export * from './telemetry';
13
+ export * from './types';
14
+ export * from './manifests';
13
15
  export * from './users';
14
16
  export * from './errors';
15
17
  export * from './geo-location';
package/dist/index.js CHANGED
@@ -26,6 +26,8 @@ __exportStar(require("./readers"), exports);
26
26
  __exportStar(require("./roles"), exports);
27
27
  __exportStar(require("./tags"), exports);
28
28
  __exportStar(require("./telemetry"), exports);
29
+ __exportStar(require("./types"), exports);
30
+ __exportStar(require("./manifests"), exports);
29
31
  __exportStar(require("./users"), exports);
30
32
  __exportStar(require("./errors"), exports);
31
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,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":""}
@@ -0,0 +1,8 @@
1
+ export interface GetTypeResponse {
2
+ id: string;
3
+ name: string;
4
+ fullName?: string;
5
+ parent?: string;
6
+ fullNameTemplate?: string;
7
+ description?: string;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/types/[id]/get.ts"],"names":[],"mappings":""}
@@ -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/types/[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/types/[id]/patch/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B"}
@@ -0,0 +1,6 @@
1
+ export interface UpdateTypeRequest {
2
+ name?: string;
3
+ parent?: string;
4
+ fullNameTemplate?: string;
5
+ description?: string;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../../src/types/[id]/patch/request.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export { GetTypeResponse as UpdateTypeResponse } 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/types/[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/types/get/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,6CAA2B"}
@@ -0,0 +1,10 @@
1
+ import { StandardSortFields, SortOrders } from '../../shared';
2
+ export declare type TypeSortField = StandardSortFields;
3
+ export declare type TypeEmbedField = 'meta';
4
+ export interface GetTypesQuery {
5
+ page?: number;
6
+ limit?: number;
7
+ sort?: TypeSortField;
8
+ sortOrder?: SortOrders;
9
+ embed?: Array<TypeEmbedField>;
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/types/get/query.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { GetTypesQuery } from './query';
2
+ import { GetTypeResponse } from '../[id]/get';
3
+ export interface GetTypesResponse {
4
+ query: GetTypesQuery | null;
5
+ total: number;
6
+ items: GetTypeResponse[];
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/types/get/response.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from './response';
@@ -0,0 +1,18 @@
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("./response"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/hierarchy/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
@@ -0,0 +1,8 @@
1
+ export interface ITypeWithChildren {
2
+ id: string;
3
+ name: string;
4
+ fullName?: string;
5
+ children?: ITypeWithChildren[];
6
+ }
7
+ export declare type GetTypesHierarchyResponse = ITypeWithChildren;
8
+ export declare const testITypeWithChildren: ITypeWithChildren;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.testITypeWithChildren = void 0;
4
+ exports.testITypeWithChildren = {
5
+ id: '1111',
6
+ name: '',
7
+ children: [
8
+ {
9
+ id: '2222',
10
+ name: 'Hammers',
11
+ fullName: 'Hammers',
12
+ children: [
13
+ {
14
+ id: '4444',
15
+ name: 'H1',
16
+ fullName: 'Hammers H1',
17
+ },
18
+ ],
19
+ },
20
+ {
21
+ id: '3333',
22
+ name: 'Equipment',
23
+ fullName: 'Equipment',
24
+ },
25
+ ],
26
+ };
27
+ //# sourceMappingURL=response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/types/hierarchy/response.ts"],"names":[],"mappings":";;;AAUa,QAAA,qBAAqB,GAAsB;IACtD,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE;QACR;YACE,EAAE,EAAE,MAAM;YACV,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,SAAS;YACnB,QAAQ,EAAE;gBACR;oBACE,EAAE,EAAE,MAAM;oBACV,IAAI,EAAE,IAAI;oBACV,QAAQ,EAAE,YAAY;iBACvB;aACF;SACF;QACD;YACE,EAAE,EAAE,MAAM;YACV,IAAI,EAAE,WAAW;YACjB,QAAQ,EAAE,WAAW;SACtB;KACF;CACF,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './[id]';
2
+ export * from './get';
3
+ export * from './hierarchy';
4
+ export * from './post';
@@ -0,0 +1,21 @@
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("./hierarchy"), exports);
20
+ __exportStar(require("./post"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,wCAAsB;AACtB,8CAA4B;AAC5B,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/types/post/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B"}
@@ -0,0 +1,8 @@
1
+ export interface PostTypeRequest {
2
+ name: string;
3
+ parent?: string;
4
+ fullNameTemplate?: string;
5
+ description?: string;
6
+ }
7
+ export declare type PostTypesRequest = PostTypeRequest[];
8
+ export declare const testPostTypeRequest: PostTypeRequest;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.testPostTypeRequest = void 0;
4
+ exports.testPostTypeRequest = {
5
+ parent: 'abcd',
6
+ name: '1 kg',
7
+ fullNameTemplate: '@name',
8
+ };
9
+ //# sourceMappingURL=request.js.map
@@ -0,0 +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"}
@@ -0,0 +1,5 @@
1
+ import { GetTypeResponse } from '../[id]/get';
2
+ export interface PostTypesResponse {
3
+ inserted: number;
4
+ items: GetTypeResponse[];
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/types/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.12",
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": "bf2668abe23be6b3d5c349aa3e43eb3bbfb91d03"
17
+ "gitHead": "a5ace2e04280c94b228cd32f058f4810d0c7713e"
18
18
  }