@spotto/contract 1.0.9 → 1.0.11

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.
@@ -1,6 +1,7 @@
1
1
  export interface DeletedCounts {
2
2
  assets?: number;
3
3
  locations?: number;
4
+ tags?: number;
4
5
  readers?: number;
5
6
  events?: number;
6
7
  users?: number;
@@ -0,0 +1,9 @@
1
+ import { IEmbeddedEntity } from '../shared';
2
+ export interface ITagConnectedTo extends IEmbeddedEntity {
3
+ type: 'LOCATION' | 'ASSET';
4
+ }
5
+ export interface ConnectedTag {
6
+ tagId: string;
7
+ connectedTo: ITagConnectedTo;
8
+ organisation: IEmbeddedEntity;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/tags/constants.ts"],"names":[],"mappings":""}
@@ -1,13 +1,8 @@
1
- export interface TagsExistConflict {
2
- tagId: string;
3
- type: 'LOCATION' | 'ASSET';
4
- id: string;
5
- name: string;
6
- }
1
+ import { ConnectedTag } from './constants';
7
2
  export interface TagsExistError {
8
3
  type: 'TagsExistError';
9
4
  message: string;
10
- conflicts: TagsExistConflict[];
5
+ conflicts: ConnectedTag[];
11
6
  }
12
7
  export interface TagsDuplicatedConflict {
13
8
  tagId: string;
@@ -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/tags/get/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,6CAA2B"}
@@ -0,0 +1,3 @@
1
+ export interface GetTagsQuery {
2
+ tagIds: string[];
3
+ }
@@ -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/tags/get/query.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { ConnectedTag } from '../constants';
2
+ import { GetTagsQuery } from './query';
3
+ export interface GetTagsResponse {
4
+ query: GetTagsQuery | null;
5
+ total: number;
6
+ items: ConnectedTag[];
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/tags/get/response.ts"],"names":[],"mappings":""}
@@ -1 +1,3 @@
1
1
  export * from './errors';
2
+ export * from './get';
3
+ export * from './constants';
@@ -15,4 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./errors"), exports);
18
+ __exportStar(require("./get"), exports);
19
+ __exportStar(require("./constants"), exports);
18
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tags/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tags/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,wCAAsB;AACtB,8CAA4B"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spotto/contract",
3
3
  "license": "ISC",
4
- "version": "1.0.9",
4
+ "version": "1.0.11",
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": "ffbae879534efcd74fb95e903363a04dda0a432c"
17
+ "gitHead": "d52a781966bbd40b5eca296327f3a4bc62436b7a"
18
18
  }