@meowinc/meow-sdk 0.7.1 → 0.7.2

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.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { AccountClient } from "./account";
2
2
  import type { AuthorizationProvider } from "./auth-provider";
3
3
  import { MailClient } from "./mail";
4
+ import { NotificationClient } from "./notification";
4
5
  import { MeowResult, UndefinedString } from "./types";
5
6
  export { AuthorizationProvider } from "./auth-provider";
6
7
  export { UndefinedString };
@@ -13,6 +14,7 @@ export type AuthorizationUpdateHandler = (data: {
13
14
  export declare class MeowSdkClient<T extends AuthorizationProvider> {
14
15
  readonly account: AccountClient;
15
16
  readonly mail: MailClient;
17
+ readonly notification: NotificationClient;
16
18
  private readonly authProvider;
17
19
  protected constructor(authProvider: T);
18
20
  isAuthorizationExist(): boolean;
package/dist/index.js CHANGED
@@ -2,6 +2,7 @@ import { AccountClient } from "./account";
2
2
  import { ErrorToMessage } from "./error";
3
3
  import { updateAuthorization } from "./http-client";
4
4
  import { MailClient } from "./mail";
5
+ import { NotificationClient } from "./notification";
5
6
  import { AccessToken } from "./token";
6
7
  import { MeowResult } from "./types";
7
8
  import { MeowUtils } from "./utils";
@@ -10,11 +11,13 @@ export { MeowUtils } from "./utils";
10
11
  export class MeowSdkClient {
11
12
  account;
12
13
  mail;
14
+ notification;
13
15
  authProvider;
14
16
  constructor(authProvider) {
15
17
  this.authProvider = authProvider;
16
18
  this.account = new AccountClient(authProvider);
17
19
  this.mail = new MailClient(authProvider);
20
+ this.notification = new NotificationClient(authProvider);
18
21
  }
19
22
  isAuthorizationExist() {
20
23
  return this.authProvider.getAccessToken() != undefined || this.authProvider.getRefreshToken() != undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meowinc/meow-sdk",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Meow SDK",
5
5
  "keywords": [
6
6
  "sdk"