@meowinc/meow-sdk 0.4.1 → 0.4.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.
@@ -4,4 +4,6 @@ export interface Response {
4
4
  name: string;
5
5
  }[];
6
6
  }
7
- export declare function request(): Promise<import("@meowinc/result").Result<Response, string>>;
7
+ export declare function request(filter?: {
8
+ ownerId?: number;
9
+ }): Promise<import("@meowinc/result").Result<Response, string>>;
@@ -1,10 +1,11 @@
1
1
  import { ACCOUNT_API } from "..";
2
2
  import { ErrorToMessage } from "../../error";
3
3
  import { HttpClient } from "../../http-client";
4
- export async function request() {
4
+ export async function request(filter) {
5
5
  return await new HttpClient()
6
6
  .withUrl(`${ACCOUNT_API}/v1/app`)
7
7
  .withMethodGet()
8
+ .withParam("ownerId", filter?.ownerId)
8
9
  .send()
9
10
  .then((r) => r.mapError(ErrorToMessage));
10
11
  }
@@ -3,6 +3,8 @@ 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("@meowinc/result").Result<import("./get-app-list").Response, string>>;
6
+ getAppList(filter?: {
7
+ ownerId: number;
8
+ }): Promise<import("@meowinc/result").Result<import("./get-app-list").Response, string>>;
7
9
  getByDisplayId(displayId: string): Promise<import("../../types").MeowResult<import("./get-by-display-id").Response>>;
8
10
  }
@@ -13,8 +13,8 @@ export class AppRequests {
13
13
  type,
14
14
  }, this.authProvider);
15
15
  }
16
- async getAppList() {
17
- return await getAppList();
16
+ async getAppList(filter) {
17
+ return await getAppList(filter);
18
18
  }
19
19
  async getByDisplayId(displayId) {
20
20
  return await getByDisplayId(displayId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meowinc/meow-sdk",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Meow SDK",
5
5
  "keywords": [
6
6
  "sdk"