squarefi-bff-api-module 1.17.21 → 1.17.23
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 +32 -0
- package/dist/api/issuing.d.ts +3 -3
- package/dist/api/issuing.js +3 -3
- package/dist/api/types.d.ts +17 -3
- package/package.json +1 -1
- package/src/api/issuing.ts +10 -7
- package/src/api/types.ts +17 -3
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,38 @@ 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.23] - 2025-05-12
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Updated response types for issuing sub-accounts to include pagination support
|
|
13
|
+
- Enhanced data retrieval capabilities
|
|
14
|
+
- Improved handling of large datasets
|
|
15
|
+
|
|
16
|
+
## [1.17.22] - 2025-05-07
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- Updated order_types_id type in IssuingProgramOrderType to support both OrderType and string values
|
|
21
|
+
- Improved type flexibility
|
|
22
|
+
- Better backward compatibility
|
|
23
|
+
|
|
24
|
+
## [1.17.21] - 2025-05-07
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
|
|
28
|
+
- Introduced IssuingProgramOrderType for enhanced order types definition in Cards
|
|
29
|
+
- Better type safety for card operations
|
|
30
|
+
- Improved order type management
|
|
31
|
+
|
|
32
|
+
## [1.17.20] - 2025-05-07
|
|
33
|
+
|
|
34
|
+
### Fixed
|
|
35
|
+
|
|
36
|
+
- Corrected order_types type definition in IssuingPrograms
|
|
37
|
+
- Fixed type inconsistencies
|
|
38
|
+
- Improved type safety
|
|
39
|
+
|
|
8
40
|
## [1.17.19] - 2025-05-07
|
|
9
41
|
|
|
10
42
|
### Added
|
package/dist/api/issuing.d.ts
CHANGED
|
@@ -40,11 +40,11 @@ export declare const issuing: {
|
|
|
40
40
|
sub_accounts: {
|
|
41
41
|
list: {
|
|
42
42
|
withCards: {
|
|
43
|
-
getSinglecards: (wallet_uuid: string, limit: number, offset: number) => Promise<API.Issuing.SubAccounts.
|
|
44
|
-
getAll: (wallet_uuid: string, limit: number, offset: number) => Promise<API.Issuing.SubAccounts.
|
|
43
|
+
getSinglecards: (wallet_uuid: string, limit: number, offset: number) => Promise<API.Issuing.SubAccounts.WithCards.Response>;
|
|
44
|
+
getAll: (wallet_uuid: string, limit: number, offset: number) => Promise<API.Issuing.SubAccounts.WithCards.Response>;
|
|
45
45
|
};
|
|
46
46
|
withoutCards: {
|
|
47
|
-
getAll: (wallet_uuid: string, limit: number, offset: number) => Promise<API.Issuing.SubAccounts.
|
|
47
|
+
getAll: (wallet_uuid: string, limit: number, offset: number) => Promise<API.Issuing.SubAccounts.WithoutCards.Response>;
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
50
|
getByUuid: (uuid: string) => Promise<API.Issuing.SubAccounts.SubAccount>;
|
package/dist/api/issuing.js
CHANGED
|
@@ -85,15 +85,15 @@ exports.issuing = {
|
|
|
85
85
|
list: {
|
|
86
86
|
withCards: {
|
|
87
87
|
getSinglecards: (wallet_uuid, limit, offset) => apiClientFactory_1.apiClientV1.getRequest(`/issuing/sub_account/list/${wallet_uuid}`, {
|
|
88
|
-
params: { limit, offset, lt_cards_limit: 2, gt_cards_limit: 0, show_cards: true },
|
|
88
|
+
params: { limit, offset, lt_cards_limit: 2, gt_cards_limit: 0, show_cards: true, pagination: true },
|
|
89
89
|
}),
|
|
90
90
|
getAll: (wallet_uuid, limit, offset) => apiClientFactory_1.apiClientV1.getRequest(`/issuing/sub_account/list/${wallet_uuid}`, {
|
|
91
|
-
params: { limit, offset, show_cards: true },
|
|
91
|
+
params: { limit, offset, show_cards: true, pagination: true },
|
|
92
92
|
}),
|
|
93
93
|
},
|
|
94
94
|
withoutCards: {
|
|
95
95
|
getAll: (wallet_uuid, limit, offset) => apiClientFactory_1.apiClientV1.getRequest(`/issuing/sub_account/list/${wallet_uuid}`, {
|
|
96
|
-
params: { limit, offset },
|
|
96
|
+
params: { limit, offset, pagination: true },
|
|
97
97
|
}),
|
|
98
98
|
},
|
|
99
99
|
},
|
package/dist/api/types.d.ts
CHANGED
|
@@ -99,7 +99,7 @@ export declare namespace API {
|
|
|
99
99
|
namespace Config {
|
|
100
100
|
type IssuingProgramOrderType = {
|
|
101
101
|
id: string;
|
|
102
|
-
order_types_id: string;
|
|
102
|
+
order_types_id: OrderType | string;
|
|
103
103
|
issuing_programs_id: string;
|
|
104
104
|
};
|
|
105
105
|
interface Program {
|
|
@@ -814,8 +814,22 @@ export declare namespace API {
|
|
|
814
814
|
account_details?: SubAccountDetails;
|
|
815
815
|
crypto_details?: SubAccountCryptoDetails[];
|
|
816
816
|
}
|
|
817
|
-
|
|
818
|
-
|
|
817
|
+
namespace WithCards {
|
|
818
|
+
interface SubAccountWithCards extends SubAccount {
|
|
819
|
+
cards: API.Cards.IssuingCardListItem[];
|
|
820
|
+
}
|
|
821
|
+
interface Response {
|
|
822
|
+
count: number;
|
|
823
|
+
data: SubAccountWithCards[];
|
|
824
|
+
has_more: boolean;
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
namespace WithoutCards {
|
|
828
|
+
interface Response {
|
|
829
|
+
count: number;
|
|
830
|
+
data: SubAccount[];
|
|
831
|
+
has_more: boolean;
|
|
832
|
+
}
|
|
819
833
|
}
|
|
820
834
|
}
|
|
821
835
|
}
|
package/package.json
CHANGED
package/src/api/issuing.ts
CHANGED
|
@@ -95,25 +95,28 @@ export const issuing = {
|
|
|
95
95
|
list: {
|
|
96
96
|
withCards: {
|
|
97
97
|
getSinglecards: (wallet_uuid: string, limit: number, offset: number) =>
|
|
98
|
-
apiClientV1.getRequest<API.Issuing.SubAccounts.
|
|
98
|
+
apiClientV1.getRequest<API.Issuing.SubAccounts.WithCards.Response>(
|
|
99
99
|
`/issuing/sub_account/list/${wallet_uuid}`,
|
|
100
100
|
{
|
|
101
|
-
params: { limit, offset, lt_cards_limit: 2, gt_cards_limit: 0, show_cards: true },
|
|
101
|
+
params: { limit, offset, lt_cards_limit: 2, gt_cards_limit: 0, show_cards: true, pagination: true },
|
|
102
102
|
}
|
|
103
103
|
),
|
|
104
104
|
getAll: (wallet_uuid: string, limit: number, offset: number) =>
|
|
105
|
-
apiClientV1.getRequest<API.Issuing.SubAccounts.
|
|
105
|
+
apiClientV1.getRequest<API.Issuing.SubAccounts.WithCards.Response>(
|
|
106
106
|
`/issuing/sub_account/list/${wallet_uuid}`,
|
|
107
107
|
{
|
|
108
|
-
params: { limit, offset, show_cards: true },
|
|
108
|
+
params: { limit, offset, show_cards: true, pagination: true },
|
|
109
109
|
}
|
|
110
110
|
),
|
|
111
111
|
},
|
|
112
112
|
withoutCards: {
|
|
113
113
|
getAll: (wallet_uuid: string, limit: number, offset: number) =>
|
|
114
|
-
apiClientV1.getRequest<API.Issuing.SubAccounts.
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
apiClientV1.getRequest<API.Issuing.SubAccounts.WithoutCards.Response>(
|
|
115
|
+
`/issuing/sub_account/list/${wallet_uuid}`,
|
|
116
|
+
{
|
|
117
|
+
params: { limit, offset, pagination: true },
|
|
118
|
+
}
|
|
119
|
+
),
|
|
117
120
|
},
|
|
118
121
|
},
|
|
119
122
|
|
package/src/api/types.ts
CHANGED
|
@@ -128,7 +128,7 @@ export namespace API {
|
|
|
128
128
|
export namespace Config {
|
|
129
129
|
export type IssuingProgramOrderType = {
|
|
130
130
|
id: string;
|
|
131
|
-
order_types_id: string;
|
|
131
|
+
order_types_id: OrderType | string;
|
|
132
132
|
issuing_programs_id: string;
|
|
133
133
|
};
|
|
134
134
|
export interface Program {
|
|
@@ -970,8 +970,22 @@ export namespace API {
|
|
|
970
970
|
crypto_details?: SubAccountCryptoDetails[];
|
|
971
971
|
}
|
|
972
972
|
|
|
973
|
-
export
|
|
974
|
-
|
|
973
|
+
export namespace WithCards {
|
|
974
|
+
export interface SubAccountWithCards extends SubAccount {
|
|
975
|
+
cards: API.Cards.IssuingCardListItem[];
|
|
976
|
+
}
|
|
977
|
+
export interface Response {
|
|
978
|
+
count: number;
|
|
979
|
+
data: SubAccountWithCards[];
|
|
980
|
+
has_more: boolean;
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
export namespace WithoutCards {
|
|
984
|
+
export interface Response {
|
|
985
|
+
count: number;
|
|
986
|
+
data: SubAccount[];
|
|
987
|
+
has_more: boolean;
|
|
988
|
+
}
|
|
975
989
|
}
|
|
976
990
|
}
|
|
977
991
|
}
|