@spotto/contract 1.0.69-alpha.13 → 1.0.69-alpha.15

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,7 +1,8 @@
1
- import { StandardSortFields, SortOrders } from '../../shared';
2
- export declare type ManifestSortField = StandardSortFields;
1
+ import { SearchableSortFields, SortOrders } from '../../shared';
2
+ export declare type ManifestSortField = SearchableSortFields;
3
3
  export declare type ManifestEmbedField = 'meta' | 'full' | 'partial';
4
4
  export interface GetManifestsQuery {
5
+ search?: string;
5
6
  page?: number;
6
7
  limit?: number;
7
8
  sort?: ManifestSortField;
@@ -1,3 +1,4 @@
1
1
  export * from './[id]';
2
2
  export * from './get';
3
3
  export * from './post';
4
+ export * from './suggestions';
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./[id]"), exports);
18
18
  __exportStar(require("./get"), exports);
19
19
  __exportStar(require("./post"), exports);
20
+ __exportStar(require("./suggestions"), exports);
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/manifests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,wCAAqB;AACrB,yCAAsB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/manifests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,wCAAqB;AACrB,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/manifests/suggestions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,6CAA0B"}
@@ -0,0 +1,5 @@
1
+ export interface GetManifestSuggestionsQuery {
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/manifests/suggestions/query.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import { GetManifestSuggestionsQuery } from './query';
2
+ import { IEmbeddedEntity } from '../../shared';
3
+ export interface GetManifestSuggestionsResponse {
4
+ query: GetManifestSuggestionsQuery;
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/manifests/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.69-alpha.13",
4
+ "version": "1.0.69-alpha.15",
5
5
  "description": "Spotto's API Contract type definitions",
6
6
  "main": "./dist/index.js",
7
7
  "files": [
@@ -18,5 +18,5 @@
18
18
  "@types/geojson": "^7946.0.11",
19
19
  "shx": "^0.3.4"
20
20
  },
21
- "gitHead": "1547269a2029008c7156c30c04feb08f63581136"
21
+ "gitHead": "a39c0d47aaed97f9279b4ddb7729ee34255012a7"
22
22
  }