@meowinc/meow-sdk 0.2.1 → 0.3.0

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.
@@ -4,4 +4,4 @@ export interface Response {
4
4
  name: string;
5
5
  }[];
6
6
  }
7
- export declare function request(): Promise<import("ts-result-meow").Result<Response, string>>;
7
+ export declare function request(): Promise<import("@meowinc/result").Result<Response, string>>;
@@ -3,6 +3,6 @@ export declare class AppRequests {
3
3
  private readonly authProvider;
4
4
  constructor(authProvider: AuthorizationProvider);
5
5
  create(displayId: string, name: string, type: "web" | "mobile"): Promise<import("../../types").MeowResult<void>>;
6
- getAppList(): Promise<import("ts-result-meow").Result<import("./get-app-list").Response, string>>;
6
+ getAppList(): Promise<import("@meowinc/result").Result<import("./get-app-list").Response, string>>;
7
7
  getByDisplayId(displayId: string): Promise<import("../../types").MeowResult<import("./get-by-display-id").Response>>;
8
8
  }
@@ -7,5 +7,5 @@ export interface Response {
7
7
  status: string;
8
8
  registrationDate: Date;
9
9
  }
10
- export declare function request(login: string): Promise<import("ts-result-meow").Result<Response, string>>;
10
+ export declare function request(login: string): Promise<import("@meowinc/result").Result<Response, string>>;
11
11
  export {};
@@ -2,5 +2,5 @@ import { AuthorizationProvider } from "../../auth-provider";
2
2
  export declare class UserRequests {
3
3
  private readonly authProvider;
4
4
  constructor(authProvider: AuthorizationProvider);
5
- getUserByLogin(login: string): Promise<import("ts-result-meow").Result<import("./get-user-by-login").Response, string>>;
5
+ getUserByLogin(login: string): Promise<import("@meowinc/result").Result<import("./get-user-by-login").Response, string>>;
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import type { AuthorizationProvider } from "./auth-provider";
2
- import { Result } from "ts-result-meow";
3
2
  import { HttpError, type AppError } from "./error";
3
+ import { Result } from "@meowinc/result";
4
4
  export declare class HttpClient {
5
5
  private url;
6
6
  private headers;
@@ -1,7 +1,7 @@
1
- import { Result } from "ts-result-meow";
2
1
  import { HttpError } from "./error";
3
2
  import { AccessToken } from "./token";
4
3
  import { ACCOUNT_API } from "./account";
4
+ import { Result } from "@meowinc/result";
5
5
  export class HttpClient {
6
6
  url = "";
7
7
  headers = {};
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Result } from "ts-result-meow";
1
+ import { Result } from "@meowinc/result";
2
2
  export type UndefinedString = string | undefined;
3
3
  export type UserRole = "root" | "admin" | "user" | "inactive";
4
4
  type MeowError = string;
package/dist/types.js CHANGED
@@ -1,3 +1,3 @@
1
- import { Result } from "ts-result-meow";
1
+ import { Result } from "@meowinc/result";
2
2
  export class MeowResult extends Result {
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meowinc/meow-sdk",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "Meow SDK",
5
5
  "keywords": [
6
6
  "sdk"
@@ -23,7 +23,7 @@
23
23
  "prettier": "prettier ./src --write"
24
24
  },
25
25
  "dependencies": {
26
- "ts-result-meow": ">=0.0.13",
26
+ "@meowinc/result": ">=0.0.13",
27
27
  "jwt-decode": ">=4"
28
28
  },
29
29
  "devDependencies": {