squarefi-bff-api-module 1.22.5 → 1.22.7

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.
@@ -58,7 +58,7 @@ export declare const issuing: {
58
58
  };
59
59
  config: {
60
60
  programs: {
61
- getAll: () => Promise<API.Issuing.Programs.Response["data"]>;
61
+ getAll: (params: API.Issuing.Programs.Request) => Promise<API.Issuing.Programs.Response>;
62
62
  };
63
63
  };
64
64
  };
@@ -131,7 +131,7 @@ exports.issuing = {
131
131
  },
132
132
  config: {
133
133
  programs: {
134
- getAll: () => apiClientFactory_1.apiClientV1.getRequest('/issuing/config/programs').then(({ data }) => data),
134
+ getAll: (params) => apiClientFactory_1.apiClientV1.getRequest('/issuing/config/programs', { params }),
135
135
  },
136
136
  },
137
137
  };
@@ -763,6 +763,9 @@ export declare namespace API {
763
763
  }
764
764
  namespace Issuing {
765
765
  namespace Programs {
766
+ type Request = {
767
+ wallet_id: string;
768
+ };
766
769
  type Response = {
767
770
  count: number;
768
771
  data: API.Cards.Config.Program[];
@@ -2055,6 +2058,7 @@ export declare namespace API {
2055
2058
  offset: number;
2056
2059
  limit: number;
2057
2060
  pagination?: boolean;
2061
+ wallet_id: string;
2058
2062
  }
2059
2063
  interface Response {
2060
2064
  data: Program[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.22.5",
3
+ "version": "1.22.7",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -175,8 +175,8 @@ export const issuing = {
175
175
  },
176
176
  config: {
177
177
  programs: {
178
- getAll: (): Promise<API.Issuing.Programs.Response['data']> =>
179
- apiClientV1.getRequest<API.Issuing.Programs.Response>('/issuing/config/programs').then(({ data }) => data),
178
+ getAll: (params: API.Issuing.Programs.Request): Promise<API.Issuing.Programs.Response> =>
179
+ apiClientV1.getRequest<API.Issuing.Programs.Response>('/issuing/config/programs', { params }),
180
180
  },
181
181
  },
182
182
  };
@@ -915,6 +915,9 @@ export namespace API {
915
915
 
916
916
  export namespace Issuing {
917
917
  export namespace Programs {
918
+ export type Request = {
919
+ wallet_id: string;
920
+ };
918
921
  export type Response = {
919
922
  count: number;
920
923
  data: API.Cards.Config.Program[];
@@ -2414,6 +2417,7 @@ export namespace API {
2414
2417
  offset: number;
2415
2418
  limit: number;
2416
2419
  pagination?: boolean;
2420
+ wallet_id: string;
2417
2421
  }
2418
2422
  export interface Response {
2419
2423
  data: Program[];