squarefi-bff-api-module 1.24.26 → 1.24.27

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.
@@ -53,7 +53,7 @@ export declare const issuing: {
53
53
  getByUuid: (uuid: string) => Promise<API.Issuing.SubAccounts.SubAccount>;
54
54
  create: (wallet_id: string, program_id: string) => Promise<API.Issuing.SubAccounts.SubAccount>;
55
55
  transactions: {
56
- get: (sub_account_id: string, limit?: number, offset?: number) => Promise<API.Issuing.SubAccounts.TransactionList>;
56
+ get: ({ sub_account_id, ...params }: API.Issuing.SubAccounts.TransactionList.Request) => Promise<API.Issuing.SubAccounts.TransactionList.Response>;
57
57
  };
58
58
  };
59
59
  config: {
@@ -130,9 +130,12 @@ exports.issuing = {
130
130
  data: { wallet_id, program_id },
131
131
  }),
132
132
  transactions: {
133
- get: (sub_account_id, limit, offset) => apiClientFactory_1.apiClientV1.getRequest(`/issuing/sub_account/${sub_account_id}/transactions`, {
134
- params: { limit, offset },
135
- }),
133
+ get: (_a) => {
134
+ var { sub_account_id } = _a, params = __rest(_a, ["sub_account_id"]);
135
+ return apiClientFactory_1.apiClientV1.getRequest(`/issuing/sub_account/${sub_account_id}/transactions`, {
136
+ params,
137
+ });
138
+ },
136
139
  },
137
140
  },
138
141
  config: {
@@ -316,6 +316,7 @@ export declare namespace API {
316
316
  wallet_id: string;
317
317
  initial_topup?: number;
318
318
  currency_id?: string;
319
+ user_data_id: string;
319
320
  }
320
321
  type StandAloneRequest = CommonRequest;
321
322
  interface SubAccountRequest extends CommonRequest {
@@ -850,11 +851,22 @@ export declare namespace API {
850
851
  chain_id: number;
851
852
  memo?: string;
852
853
  };
853
- type TransactionList = {
854
- count: number;
855
- data: Transaction[];
856
- has_more: boolean;
857
- };
854
+ namespace TransactionList {
855
+ interface Request {
856
+ sub_account_id: string;
857
+ limit?: number;
858
+ offset?: number;
859
+ card_id?: string;
860
+ from_timestamp?: string;
861
+ to_timestamp?: string;
862
+ status?: string;
863
+ }
864
+ interface Response {
865
+ count: number;
866
+ data: Transaction[];
867
+ has_more: boolean;
868
+ }
869
+ }
858
870
  interface SubAccount {
859
871
  balance: number;
860
872
  cards_count: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.24.26",
3
+ "version": "1.24.27",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -179,15 +179,14 @@ export const issuing = {
179
179
  data: { wallet_id, program_id },
180
180
  }),
181
181
  transactions: {
182
- get: (
183
- sub_account_id: string,
184
- limit?: number,
185
- offset?: number
186
- ): Promise<API.Issuing.SubAccounts.TransactionList> =>
187
- apiClientV1.getRequest<API.Issuing.SubAccounts.TransactionList>(
182
+ get: ({
183
+ sub_account_id,
184
+ ...params
185
+ }: API.Issuing.SubAccounts.TransactionList.Request): Promise<API.Issuing.SubAccounts.TransactionList.Response> =>
186
+ apiClientV1.getRequest<API.Issuing.SubAccounts.TransactionList.Response>(
188
187
  `/issuing/sub_account/${sub_account_id}/transactions`,
189
188
  {
190
- params: { limit, offset },
189
+ params,
191
190
  }
192
191
  ),
193
192
  },
@@ -369,6 +369,7 @@ export namespace API {
369
369
  wallet_id: string;
370
370
  initial_topup?: number;
371
371
  currency_id?: string;
372
+ user_data_id: string;
372
373
  }
373
374
  export type StandAloneRequest = CommonRequest;
374
375
 
@@ -1013,11 +1014,22 @@ export namespace API {
1013
1014
  memo?: string;
1014
1015
  };
1015
1016
 
1016
- export type TransactionList = {
1017
- count: number;
1018
- data: Transaction[];
1019
- has_more: boolean;
1020
- };
1017
+ export namespace TransactionList {
1018
+ export interface Request {
1019
+ sub_account_id: string;
1020
+ limit?: number;
1021
+ offset?: number;
1022
+ card_id?: string;
1023
+ from_timestamp?: string;
1024
+ to_timestamp?: string;
1025
+ status?: string;
1026
+ }
1027
+ export interface Response {
1028
+ count: number;
1029
+ data: Transaction[];
1030
+ has_more: boolean;
1031
+ }
1032
+ }
1021
1033
  export interface SubAccount {
1022
1034
  balance: number;
1023
1035
  cards_count: number;