squarefi-bff-api-module 1.17.3 → 1.17.5
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/CHANGELOG.md +12 -0
- package/dist/api/issuing.d.ts +2 -2
- package/dist/api/issuing.js +2 -4
- package/package.json +1 -1
- package/src/api/issuing.ts +4 -6
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.17.5] - 2025-04-18
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Refined transaction retrieval endpoints for sub accounts
|
|
13
|
+
|
|
14
|
+
## [1.17.4] - 2025-04-18
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- Updated transaction retrieval to use sub_account_id and correct endpoint
|
|
19
|
+
|
|
8
20
|
## [1.17.3] - 2025-04-18
|
|
9
21
|
|
|
10
22
|
### Added
|
package/dist/api/issuing.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export declare const issuing: {
|
|
|
34
34
|
getBySubAccountId: (fiat_account_id: string, limit?: number, offset?: number) => Promise<API.Cards.TransactionsList>;
|
|
35
35
|
csv: {
|
|
36
36
|
getByCardId: (card_id: string) => Promise<string>;
|
|
37
|
-
getBySubAccountId: (
|
|
37
|
+
getBySubAccountId: (sub_account_id: string) => Promise<string>;
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
sub_accounts: {
|
|
@@ -50,7 +50,7 @@ export declare const issuing: {
|
|
|
50
50
|
getByUuid: (uuid: string) => Promise<API.Issuing.SubAccounts.SubAccount>;
|
|
51
51
|
create: (wallet_id: string, program_id: string) => Promise<API.Issuing.SubAccounts.SubAccount>;
|
|
52
52
|
transactions: {
|
|
53
|
-
get: (
|
|
53
|
+
get: (sub_account_id: string, limit?: number, offset?: number) => Promise<API.Issuing.SubAccounts.TransactionList>;
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
config: {
|
package/dist/api/issuing.js
CHANGED
|
@@ -78,9 +78,7 @@ exports.issuing = {
|
|
|
78
78
|
getByCardId: (card_id) => apiClientFactory_1.apiClientV1.getRequest(`/issuing/transactions/csv`, {
|
|
79
79
|
params: { card_id },
|
|
80
80
|
}),
|
|
81
|
-
getBySubAccountId: (
|
|
82
|
-
params: { fiat_account_id },
|
|
83
|
-
}),
|
|
81
|
+
getBySubAccountId: (sub_account_id) => apiClientFactory_1.apiClientV1.getRequest(`/issuing/sub_account/${sub_account_id}/transactions/csv`),
|
|
84
82
|
},
|
|
85
83
|
},
|
|
86
84
|
sub_accounts: {
|
|
@@ -104,7 +102,7 @@ exports.issuing = {
|
|
|
104
102
|
data: { wallet_id, program_id },
|
|
105
103
|
}),
|
|
106
104
|
transactions: {
|
|
107
|
-
get: (
|
|
105
|
+
get: (sub_account_id, limit, offset) => apiClientFactory_1.apiClientV1.getRequest(`/issuing/sub_account/${sub_account_id}/transactions`, {
|
|
108
106
|
params: { limit, offset },
|
|
109
107
|
}),
|
|
110
108
|
},
|
package/package.json
CHANGED
package/src/api/issuing.ts
CHANGED
|
@@ -87,10 +87,8 @@ export const issuing = {
|
|
|
87
87
|
apiClientV1.getRequest<string>(`/issuing/transactions/csv`, {
|
|
88
88
|
params: { card_id },
|
|
89
89
|
}),
|
|
90
|
-
getBySubAccountId: (
|
|
91
|
-
apiClientV1.getRequest<string>(`/issuing/transactions/csv
|
|
92
|
-
params: { fiat_account_id },
|
|
93
|
-
}),
|
|
90
|
+
getBySubAccountId: (sub_account_id: string) =>
|
|
91
|
+
apiClientV1.getRequest<string>(`/issuing/sub_account/${sub_account_id}/transactions/csv`),
|
|
94
92
|
},
|
|
95
93
|
},
|
|
96
94
|
sub_accounts: {
|
|
@@ -126,9 +124,9 @@ export const issuing = {
|
|
|
126
124
|
data: { wallet_id, program_id },
|
|
127
125
|
}),
|
|
128
126
|
transactions: {
|
|
129
|
-
get: (
|
|
127
|
+
get: (sub_account_id: string, limit?: number, offset?: number) =>
|
|
130
128
|
apiClientV1.getRequest<API.Issuing.SubAccounts.TransactionList>(
|
|
131
|
-
`/issuing/sub_account/${
|
|
129
|
+
`/issuing/sub_account/${sub_account_id}/transactions`,
|
|
132
130
|
{
|
|
133
131
|
params: { limit, offset },
|
|
134
132
|
}
|