@wenex/sdk 0.1.2 → 0.1.4

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.
@@ -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/index.d.ts CHANGED
@@ -3,13 +3,13 @@ import { GraphqlService } from './common/classes';
3
3
  import { AuthClient, ConfigClient, DomainClient, IdentityClient } from './services';
4
4
  export * from './services';
5
5
  export declare class PlatformClient {
6
- protected client: AxiosInstance;
6
+ protected axios: AxiosInstance;
7
7
  private $graphql;
8
8
  private $auth;
9
9
  private $config;
10
10
  private $domain;
11
11
  private $identity;
12
- constructor(client: AxiosInstance);
12
+ constructor(axios: AxiosInstance);
13
13
  get graphql(): GraphqlService;
14
14
  get auth(): AuthClient;
15
15
  get domain(): DomainClient;
package/index.js CHANGED
@@ -19,28 +19,28 @@ const classes_1 = require("./common/classes");
19
19
  const services_1 = require("./services");
20
20
  __exportStar(require("./services"), exports);
21
21
  class PlatformClient {
22
- constructor(client) {
23
- this.client = client;
22
+ constructor(axios) {
23
+ this.axios = axios;
24
24
  }
25
25
  get graphql() {
26
26
  var _a;
27
- return (this.$graphql = (_a = this.$graphql) !== null && _a !== void 0 ? _a : new classes_1.GraphqlService(this.client));
27
+ return (this.$graphql = (_a = this.$graphql) !== null && _a !== void 0 ? _a : new classes_1.GraphqlService(this.axios));
28
28
  }
29
29
  get auth() {
30
30
  var _a;
31
- return (this.$auth = (_a = this.$auth) !== null && _a !== void 0 ? _a : new services_1.AuthClient(this.client));
31
+ return (this.$auth = (_a = this.$auth) !== null && _a !== void 0 ? _a : new services_1.AuthClient(this.axios));
32
32
  }
33
33
  get domain() {
34
34
  var _a;
35
- return (this.$domain = (_a = this.$domain) !== null && _a !== void 0 ? _a : new services_1.DomainClient(this.client));
35
+ return (this.$domain = (_a = this.$domain) !== null && _a !== void 0 ? _a : new services_1.DomainClient(this.axios));
36
36
  }
37
37
  get config() {
38
38
  var _a;
39
- return (this.$config = (_a = this.$config) !== null && _a !== void 0 ? _a : new services_1.ConfigClient(this.client));
39
+ return (this.$config = (_a = this.$config) !== null && _a !== void 0 ? _a : new services_1.ConfigClient(this.axios));
40
40
  }
41
41
  get identity() {
42
42
  var _a;
43
- return (this.$identity = (_a = this.$identity) !== null && _a !== void 0 ? _a : new services_1.IdentityClient(this.client));
43
+ return (this.$identity = (_a = this.$identity) !== null && _a !== void 0 ? _a : new services_1.IdentityClient(this.axios));
44
44
  }
45
45
  }
46
46
  exports.PlatformClient = PlatformClient;
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,8CAAkD;AAClD,yCAAoF;AAEpF,6CAA2B;AAE3B,MAAa,cAAc;IAQzB,YAAsB,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAE/C,IAAI,OAAO;;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,MAAA,IAAI,CAAC,QAAQ,mCAAI,IAAI,wBAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5E,CAAC;IAED,IAAI,IAAI;;QACN,OAAO,CAAC,IAAI,CAAC,KAAK,GAAG,MAAA,IAAI,CAAC,KAAK,mCAAI,IAAI,qBAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IAClE,CAAC;IAED,IAAI,MAAM;;QACR,OAAO,CAAC,IAAI,CA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AAI,uBAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACvE,CAAC;IAED,IAAI,QAAQ;;QACV,OAAO,CAAC,IAAI,CAAC,SAAS,GAAG,MAAA,IAAI,CAAC,SAAS,mCAAI,IAAI,yBAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC7E,CAAC;CACF;AA7BD,wCA6BC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenex/sdk",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Wenex SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",