shred-api-client 1.0.21 → 1.0.23

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,4 +1,5 @@
1
1
  import Context from "./Context";
2
+ import { Subscription } from "./Subscription.schema";
2
3
  import { Tenant } from "./Tenant.schema";
3
4
  interface UserAPISchema {
4
5
  getUserInfo: (context: Context) => Promise<User>;
@@ -28,6 +29,7 @@ type User = {
28
29
  fcmToken?: string;
29
30
  photoUrl?: string;
30
31
  preferences?: Preferences;
32
+ subscription?: Subscription;
31
33
  invitationCode?: string;
32
34
  tenant?: Tenant;
33
35
  };
@@ -1,5 +1,7 @@
1
1
  import { Product as TProduct, Subscription as TSubscription } from "./model/Subscription.schema";
2
+ import { User as TUser } from "./model/User.schema";
2
3
  export declare namespace Shred {
3
4
  type Product = TProduct;
4
5
  type Subscription = TSubscription;
6
+ type User = TUser;
5
7
  }
@@ -10,7 +10,7 @@ const HOSTS = {
10
10
  };
11
11
  const OLD_HOSTS = {
12
12
  prod: "https://api.shredmedia.co",
13
- staging: "https://api.staging.shredmedia.co",
13
+ staging: "https://api-staging.shredmedia.co",
14
14
  };
15
15
  class HTTPClient {
16
16
  async makeRequest(uri, method, data, context, useLegacyApi) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shred-api-client",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "API Client for Shred",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",