squarefi-bff-api-module 1.35.3 → 1.36.1
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/dist/api/issuing.d.ts +5 -5
- package/dist/api/issuing.js +10 -10
- package/dist/api/types/autogen/apiV1External.types.d.ts +95 -3
- package/dist/api/types/autogen/apiV1Frontend.types.d.ts +245 -8
- package/dist/api/types/autogen/apiV1Legacy.types.d.ts +82 -110
- package/dist/api/types/autogen/apiV1Tenant.types.d.ts +71 -2
- package/dist/api/types/autogen/apiV2.types.d.ts +139 -341
- package/dist/api/types/types.d.ts +30 -9
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { APIKeyRole, CardFormFactor, CardTransactionType, CardType, CurrencyType, IssuingProgramStatus, OrderType, SortingDirection, SubAccountType } from '../../constants';
|
|
2
2
|
import { components, operations, paths } from './autogen/apiV2.types';
|
|
3
3
|
import { components as componentsV1Frontend, paths as pathsV1Frontend } from './autogen/apiV1Frontend.types';
|
|
4
|
+
import { paths as pathsV1Legacy } from './autogen/apiV1Legacy.types';
|
|
4
5
|
export declare namespace API {
|
|
5
6
|
namespace Auth {
|
|
6
7
|
namespace RefreshToken {
|
|
@@ -221,16 +222,11 @@ export declare namespace API {
|
|
|
221
222
|
}
|
|
222
223
|
namespace CardsList {
|
|
223
224
|
namespace Request {
|
|
224
|
-
type
|
|
225
|
-
type
|
|
226
|
-
type CardsListRequestCommonParams = API.Common.Pagination.Request & API.Common.Sorting.Request<CardsListSortingFields> & API.Common.Filtering.Request<CardsListFilteringFields>;
|
|
227
|
-
interface ByWalletUuid extends CardsListRequestCommonParams {
|
|
228
|
-
wallet_uuid: string;
|
|
229
|
-
}
|
|
230
|
-
interface BySubaccountAndWalletUuid extends ByWalletUuid {
|
|
225
|
+
type ByWalletUuid = NonNullable<pathsV1Legacy['/issuing/cards']['get']['parameters']['query']>;
|
|
226
|
+
type BySubaccountAndWalletUuid = ByWalletUuid & {
|
|
231
227
|
filter?: Record<'fiat_account', Record<'type', SubAccountType>>;
|
|
232
|
-
}
|
|
233
|
-
type BySubAccountAndWalletId = ByWalletUuid & {
|
|
228
|
+
};
|
|
229
|
+
type BySubAccountAndWalletId = Omit<ByWalletUuid, 'fiat_account_id'> & {
|
|
234
230
|
fiat_account_id: string;
|
|
235
231
|
};
|
|
236
232
|
}
|
|
@@ -271,6 +267,19 @@ export declare namespace API {
|
|
|
271
267
|
has_more: boolean;
|
|
272
268
|
count: number;
|
|
273
269
|
}
|
|
270
|
+
namespace Transactions {
|
|
271
|
+
namespace List {
|
|
272
|
+
type Query = NonNullable<pathsV1Legacy['/issuing/transactions']['get']['parameters']['query']>;
|
|
273
|
+
export type StatusFilter = NonNullable<Query['status']>;
|
|
274
|
+
export type ByCardIdRequest = Omit<Query, 'card_id'> & {
|
|
275
|
+
card_id: string;
|
|
276
|
+
};
|
|
277
|
+
export type BySubAccountIdRequest = Omit<Query, 'fiat_account_id'> & {
|
|
278
|
+
fiat_account_id: string;
|
|
279
|
+
};
|
|
280
|
+
export {};
|
|
281
|
+
}
|
|
282
|
+
}
|
|
274
283
|
interface SensitiveData {
|
|
275
284
|
card_number: string;
|
|
276
285
|
cvv: string;
|
|
@@ -1173,6 +1182,12 @@ export declare namespace API {
|
|
|
1173
1182
|
is_internal: boolean;
|
|
1174
1183
|
order_types_kyc_rails: OrderTypeKycRail[];
|
|
1175
1184
|
payment_method: API.Orders.V2.OrderTypes.PaymentMethod;
|
|
1185
|
+
/** Optional minimum amount the product should allow for this order type */
|
|
1186
|
+
min_amount: number | null;
|
|
1187
|
+
/** Optional maximum amount the product should allow for this order type */
|
|
1188
|
+
max_amount: number | null;
|
|
1189
|
+
/** Whether payouts for this order type are limited to the wallet owner's own account */
|
|
1190
|
+
first_party_only: boolean;
|
|
1176
1191
|
}
|
|
1177
1192
|
namespace List {
|
|
1178
1193
|
type Response = OrderInfo[];
|
|
@@ -1472,6 +1487,12 @@ export declare namespace API {
|
|
|
1472
1487
|
is_internal: boolean;
|
|
1473
1488
|
payment_method: PaymentMethod;
|
|
1474
1489
|
is_trusted: boolean;
|
|
1490
|
+
/** Optional minimum amount the product should allow for this order type */
|
|
1491
|
+
min_amount: number | null;
|
|
1492
|
+
/** Optional maximum amount the product should allow for this order type */
|
|
1493
|
+
max_amount: number | null;
|
|
1494
|
+
/** Whether payouts for this order type are limited to the wallet owner's own account */
|
|
1495
|
+
first_party_only: boolean;
|
|
1475
1496
|
order_types_kyc_rails: OrderTypeKycRail[];
|
|
1476
1497
|
}
|
|
1477
1498
|
namespace List {
|