@wenex/sdk 0.1.3 → 0.1.5

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.
@@ -22,7 +22,7 @@
22
22
  /// <reference types="mongoose/types/validation" />
23
23
  /// <reference types="mongoose/types/virtuals" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
- import type { FilterQuery, PopulateOptions, ProjectionFields, SortOrder } from 'mongoose';
25
+ import type { FilterQuery, PopulateOptions, ProjectionType, SortOrder } from 'mongoose';
26
26
  import { Core } from './core.interface';
27
27
  export type QueryID = {
28
28
  id: string;
@@ -30,7 +30,7 @@ export type QueryID = {
30
30
  };
31
31
  export type Query<T = Core> = FilterQuery<T>;
32
32
  export type Populate = PopulateOptions[];
33
- export type Projection<T = Core> = ProjectionFields<T>;
33
+ export type Projection<T = Core> = ProjectionType<T>;
34
34
  export type Pagination<T = Core> = {
35
35
  limit?: number;
36
36
  skip?: number;
@@ -43,7 +43,6 @@ export interface Client extends Core {
43
43
  state: State;
44
44
  status: Status;
45
45
  client_id: string;
46
- client_secret: string;
47
46
  expiration_date: Date;
48
47
  access_token_ttl: number;
49
48
  refresh_token_ttl: number;
@@ -31,11 +31,9 @@ export interface User extends Core {
31
31
  mfa?: UserMFA;
32
32
  i18n: string;
33
33
  oauth?: UserOAuth[];
34
- secret?: string;
35
34
  email?: string;
36
35
  phone?: string;
37
36
  username?: string;
38
- password?: string;
39
37
  subjects: string[];
40
38
  }
41
39
  export type UserDoc = User & Document;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenex/sdk",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Wenex SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",