altair-graphql-core 5.0.13 → 5.0.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.
@@ -11,5 +11,9 @@ export interface BaseOwnableDocument extends BaseDocument {
11
11
  type TypedOmit<T, K extends keyof T> = Omit<T, K>;
12
12
  export type CreateDTO<T extends BaseDocument | BaseOwnableDocument> = T extends BaseOwnableDocument ? TypedOmit<T, keyof BaseOwnableDocument> : TypedOmit<T, keyof BaseDocument>;
13
13
  export type UpdateDTO<T extends BaseDocument | BaseOwnableDocument> = CreateDTO<T> & Pick<T, 'id'>;
14
+ type Impossible<K extends keyof any> = {
15
+ [P in K]: never;
16
+ };
17
+ export type NoExtraProperties<T, U extends T = T> = U extends Array<infer V> ? NoExtraProperties<V>[] : U & Impossible<Exclude<keyof U, keyof T>>;
14
18
  export {};
15
19
  //# sourceMappingURL=shared.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ValueObject } from '../../utils/value-object';
2
- import { BaseOwnableDocument } from '../shared';
3
- export interface Team extends BaseOwnableDocument {
2
+ export interface Team {
3
+ id: string;
4
4
  name: string;
5
5
  description?: string;
6
6
  }
@@ -3,7 +3,7 @@ import { PostrequestState } from './postrequest.interfaces';
3
3
  import { PrerequestState } from './prerequest.interfaces';
4
4
  import { ExportWindowState } from './window.interfaces';
5
5
  export type SortByOptions = 'a-z' | 'z-a' | 'newest' | 'oldest' | 'none';
6
- export type EntityStorageType = 'local' | 'firestore';
6
+ export type EntityStorageType = 'local' | 'firestore' | 'api' | 'remote';
7
7
  export interface CollectionState {
8
8
  list: IQueryCollection[];
9
9
  activeCollection?: IQueryCollection;
@@ -11,5 +11,9 @@ export interface BaseOwnableDocument extends BaseDocument {
11
11
  type TypedOmit<T, K extends keyof T> = Omit<T, K>;
12
12
  export type CreateDTO<T extends BaseDocument | BaseOwnableDocument> = T extends BaseOwnableDocument ? TypedOmit<T, keyof BaseOwnableDocument> : TypedOmit<T, keyof BaseDocument>;
13
13
  export type UpdateDTO<T extends BaseDocument | BaseOwnableDocument> = CreateDTO<T> & Pick<T, 'id'>;
14
+ type Impossible<K extends keyof any> = {
15
+ [P in K]: never;
16
+ };
17
+ export type NoExtraProperties<T, U extends T = T> = U extends Array<infer V> ? NoExtraProperties<V>[] : U & Impossible<Exclude<keyof U, keyof T>>;
14
18
  export {};
15
19
  //# sourceMappingURL=shared.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ValueObject } from '../../utils/value-object';
2
- import { BaseOwnableDocument } from '../shared';
3
- export interface Team extends BaseOwnableDocument {
2
+ export interface Team {
3
+ id: string;
4
4
  name: string;
5
5
  description?: string;
6
6
  }
@@ -3,7 +3,7 @@ import { PostrequestState } from './postrequest.interfaces';
3
3
  import { PrerequestState } from './prerequest.interfaces';
4
4
  import { ExportWindowState } from './window.interfaces';
5
5
  export type SortByOptions = 'a-z' | 'z-a' | 'newest' | 'oldest' | 'none';
6
- export type EntityStorageType = 'local' | 'firestore';
6
+ export type EntityStorageType = 'local' | 'firestore' | 'api' | 'remote';
7
7
  export interface CollectionState {
8
8
  list: IQueryCollection[];
9
9
  activeCollection?: IQueryCollection;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "altair-graphql-core",
3
- "version": "5.0.13",
3
+ "version": "5.0.15",
4
4
  "description": "Several of the core logic for altair graphql client",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -61,5 +61,5 @@
61
61
  "util": "0.12.4",
62
62
  "uuid": "8.3.2"
63
63
  },
64
- "gitHead": "9d8f164aba79e7b4888695e4db6e523ae1547e27"
64
+ "gitHead": "a460a8fcb8c3573ae4989769565f354ffdb92102"
65
65
  }