@spotto/contract 1.0.45-alpha.1 → 1.0.46-alpha.1

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,4 +1,4 @@
1
- declare type SearchEntity = 'assets' | 'locations' | 'readers';
1
+ declare type SearchEntity = 'assets' | 'locations' | 'readers' | 'types';
2
2
  export interface PostSearchEventRequest {
3
3
  term: string;
4
4
  entity: SearchEntity;
@@ -2,3 +2,4 @@ export * from './[id]';
2
2
  export * from './get';
3
3
  export * from './hierarchy';
4
4
  export * from './post';
5
+ export * from './suggestions';
@@ -18,4 +18,5 @@ __exportStar(require("./[id]"), exports);
18
18
  __exportStar(require("./get"), exports);
19
19
  __exportStar(require("./hierarchy"), exports);
20
20
  __exportStar(require("./post"), exports);
21
+ __exportStar(require("./suggestions"), exports);
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,wCAAqB;AACrB,8CAA2B;AAC3B,yCAAsB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,wCAAqB;AACrB,8CAA2B;AAC3B,yCAAsB;AACtB,gDAA6B"}
@@ -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/suggestions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,6CAA0B"}
@@ -0,0 +1,5 @@
1
+ export interface GetTypeSuggestionsQuery {
2
+ search: string;
3
+ maxSuggestions?: number;
4
+ maxMatches?: number;
5
+ }
@@ -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/suggestions/query.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import { GetTypeSuggestionsQuery } from './query';
2
+ import { IEmbeddedEntity } from '../../shared';
3
+ export interface GetTypeSuggestionsResponse {
4
+ query: GetTypeSuggestionsQuery;
5
+ suggestions: {
6
+ suggestion: string;
7
+ name: string;
8
+ matchedProp: string;
9
+ matchedPropValue: string;
10
+ }[];
11
+ matches: (IEmbeddedEntity & {
12
+ matchedProp: string;
13
+ matchedPropValue: string;
14
+ })[];
15
+ }
@@ -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/suggestions/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.45-alpha.1",
4
+ "version": "1.0.46-alpha.1",
5
5
  "description": "Spotto's API Contract type definitions",
6
6
  "main": "./dist/index.js",
7
7
  "files": [
@@ -15,5 +15,5 @@
15
15
  "@types/geojson": "^7946.0.11",
16
16
  "shx": "^0.3.4"
17
17
  },
18
- "gitHead": "e9809b960463b7f745d0cb34641a548a80c55007"
18
+ "gitHead": "b5b5a47a083eea77fb9ff40eb7129646dde75ae5"
19
19
  }