@spotto/contract 1.0.17-alpha.0 → 1.0.17

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,5 +1,6 @@
1
- import { StandardSortFields, SortOrders } from '../../shared';
2
- export declare type SnapshotSortField = StandardSortFields;
1
+ import { SortOrders } from '../../shared';
2
+ export declare type SnapshotSortField = 'created' | 'submitted';
3
+ export declare const snapshotSortFields: SnapshotSortField[];
3
4
  export declare type SnapshotEmbedField = 'meta';
4
5
  export interface GetSnapshotsQuery {
5
6
  page?: number;
@@ -1,3 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.snapshotSortFields = void 0;
4
+ exports.snapshotSortFields = ['created', 'submitted'];
3
5
  //# sourceMappingURL=query.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/snapshots/get/query.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/snapshots/get/query.ts"],"names":[],"mappings":";;;AAIa,QAAA,kBAAkB,GAAwB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC"}
@@ -8,7 +8,7 @@ export interface EmbeddedOrganisation extends IEmbeddedEntity {
8
8
  }
9
9
  export interface CurrentUserResponse {
10
10
  id: string;
11
- email: string;
11
+ email?: string;
12
12
  name: string;
13
13
  role: EmbeddedRole;
14
14
  organisation: EmbeddedOrganisation;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spotto/contract",
3
3
  "license": "ISC",
4
- "version": "1.0.17-alpha.0",
4
+ "version": "1.0.17",
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": "e033d0a1eb506809b2823471ebc8ba863a98dee4"
17
+ "gitHead": "9cbd972c75f8ec2824e8e966350947c0d8fa6d57"
18
18
  }