squarefi-bff-api-module 1.36.34 → 1.36.36

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.
@@ -253,7 +253,8 @@ export interface paths {
253
253
  put?: never;
254
254
  /** Upload Logo for user data */
255
255
  post: operations["UserController_uploadLogoFile"];
256
- delete?: never;
256
+ /** Delete Logo for user data */
257
+ delete: operations["UserController_deleteLogoFile"];
257
258
  options?: never;
258
259
  head?: never;
259
260
  patch?: never;
@@ -1254,7 +1255,7 @@ export interface components {
1254
1255
  status: "complete" | "pending" | "canceled" | "failed" | "processing" | "new";
1255
1256
  txid: string | null;
1256
1257
  /** @enum {string} */
1257
- type: "deposit_crypto" | "withdrawal_crypto" | "deposit_fiat" | "withdrawal_fiat" | "deposit_vcard" | "withdrawal_vcard" | "deposit" | "withdrawal";
1258
+ type: "deposit" | "withdrawal";
1258
1259
  wallet_id: string | null;
1259
1260
  /** @enum {string|null} */
1260
1261
  method: "p2p" | "crypto" | "bank_transfer" | "exchange" | "sbp" | "internal_fiat" | null;
@@ -1375,7 +1376,7 @@ export interface components {
1375
1376
  TransactionsFilter: {
1376
1377
  created_at?: string;
1377
1378
  /** @enum {string} */
1378
- type?: "deposit_crypto" | "withdrawal_crypto" | "deposit_fiat" | "withdrawal_fiat" | "deposit_vcard" | "withdrawal_vcard" | "deposit" | "withdrawal";
1379
+ type?: "deposit" | "withdrawal";
1379
1380
  /** @enum {string|null} */
1380
1381
  method?: "p2p" | "crypto" | "bank_transfer" | "exchange" | "sbp" | "internal_fiat" | null;
1381
1382
  /** @enum {string|null} */
@@ -1383,8 +1384,6 @@ export interface components {
1383
1384
  "currency.uuid"?: string;
1384
1385
  "meta.billing_amount_currency"?: string;
1385
1386
  "meta.transaction_amount_currency"?: string;
1386
- /** @description Filters items by "from OR to" fields */
1387
- address?: string;
1388
1387
  /** Format: date-time */
1389
1388
  from_created_at?: string;
1390
1389
  /** Format: date-time */
@@ -1739,6 +1738,8 @@ export interface components {
1739
1738
  source_of_accumulated?: string | null;
1740
1739
  send_and_receive?: string | null;
1741
1740
  employment_status_other?: string | null;
1741
+ source_of_wealth_ubo?: string | null;
1742
+ source_of_wealth_ubo_url?: string | null;
1742
1743
  purposes?: string[] | null;
1743
1744
  payment_flows?: string[] | null;
1744
1745
  source_of_funds_list?: string[] | null;
@@ -2574,7 +2575,17 @@ export interface operations {
2574
2575
  path?: never;
2575
2576
  cookie?: never;
2576
2577
  };
2577
- requestBody?: never;
2578
+ requestBody: {
2579
+ content: {
2580
+ "multipart/form-data": {
2581
+ /**
2582
+ * Format: binary
2583
+ * @description Allowed types: JPEG, PNG, WEBP. Max size: 1 MB.
2584
+ */
2585
+ file: string;
2586
+ };
2587
+ };
2588
+ };
2578
2589
  responses: {
2579
2590
  200: {
2580
2591
  headers: {
@@ -2593,6 +2604,30 @@ export interface operations {
2593
2604
  };
2594
2605
  };
2595
2606
  };
2607
+ UserController_deleteLogoFile: {
2608
+ parameters: {
2609
+ query?: never;
2610
+ header?: never;
2611
+ path?: never;
2612
+ cookie?: never;
2613
+ };
2614
+ requestBody?: never;
2615
+ responses: {
2616
+ 204: {
2617
+ headers: {
2618
+ [name: string]: unknown;
2619
+ };
2620
+ content?: never;
2621
+ };
2622
+ /** @description Unauthorized */
2623
+ 401: {
2624
+ headers: {
2625
+ [name: string]: unknown;
2626
+ };
2627
+ content?: never;
2628
+ };
2629
+ };
2630
+ };
2596
2631
  AuthenticatedUserController_changeEmailConfirm: {
2597
2632
  parameters: {
2598
2633
  query?: never;
@@ -2744,7 +2779,17 @@ export interface operations {
2744
2779
  path?: never;
2745
2780
  cookie?: never;
2746
2781
  };
2747
- requestBody?: never;
2782
+ requestBody: {
2783
+ content: {
2784
+ "multipart/form-data": {
2785
+ /**
2786
+ * Format: binary
2787
+ * @description Allowed types: PDF, JPEG, PNG. Max size: 20 MB.
2788
+ */
2789
+ file: string;
2790
+ };
2791
+ };
2792
+ };
2748
2793
  responses: {
2749
2794
  201: {
2750
2795
  headers: {
@@ -3098,7 +3143,17 @@ export interface operations {
3098
3143
  };
3099
3144
  cookie?: never;
3100
3145
  };
3101
- requestBody?: never;
3146
+ requestBody: {
3147
+ content: {
3148
+ "multipart/form-data": {
3149
+ /**
3150
+ * Format: binary
3151
+ * @description Allowed types: JPEG, PNG, WEBP. Max size: 1 MB.
3152
+ */
3153
+ file: string;
3154
+ };
3155
+ };
3156
+ };
3102
3157
  responses: {
3103
3158
  200: {
3104
3159
  headers: {
@@ -3208,7 +3263,7 @@ export interface operations {
3208
3263
  /** @description Number of records to return */
3209
3264
  limit?: number;
3210
3265
  sort_order?: "ASC" | "DESC";
3211
- sort_by?: "created_at" | "type" | "status" | "amount" | "from" | "to" | "method" | "record_type" | null;
3266
+ sort_by?: "created_at" | "type" | "status" | "amount" | "method" | "record_type" | null;
3212
3267
  filter?: components["schemas"]["TransactionsFilter"];
3213
3268
  };
3214
3269
  header?: never;
@@ -671,6 +671,7 @@ export declare namespace API {
671
671
  }
672
672
  }
673
673
  namespace Issuing {
674
+ type CardsRoot = pathsV1Frontend['/frontend/issuing/cards'];
674
675
  type CardDepositRoot = pathsV1Frontend['/frontend/issuing/cards/{card_id}/deposit'];
675
676
  type CardWithdrawRoot = pathsV1Frontend['/frontend/issuing/cards/{card_id}/withdraw'];
676
677
  type SubAccountDepositRoot = pathsV1Frontend['/frontend/issuing/sub-accounts/{sub_account_id}/deposit'];
@@ -699,6 +700,11 @@ export declare namespace API {
699
700
  }
700
701
  }
701
702
  export namespace Cards {
703
+ namespace List {
704
+ type Request = NonNullable<CardsRoot['get']['parameters']['query']>;
705
+ type Response = CardsRoot['get']['responses']['200']['content']['application/json'];
706
+ type Card = NonNullable<Response['data']>[number];
707
+ }
702
708
  namespace Deposit {
703
709
  type Request = {
704
710
  card_id: string;
@@ -1562,7 +1568,7 @@ export declare namespace API {
1562
1568
  }
1563
1569
  }
1564
1570
  namespace OrderTypes {
1565
- type PaymentMethod = 'ACH' | 'FEDWIRE' | 'SWIFT' | 'SEPA' | 'SEPA_CT' | 'CHAPS' | 'FPS' | 'CRYPTO_EXTERNAL' | 'CRYPTO_INTERNAL';
1571
+ type PaymentMethod = 'ACH' | 'FEDWIRE' | 'SWIFT' | 'SEPA' | 'SEPA_CT' | 'CHAPS' | 'FPS' | 'RTP' | 'CARD' | 'CRYPTO_EXTERNAL' | 'CRYPTO_INTERNAL';
1566
1572
  type OrderTypeKycRail = {
1567
1573
  id: string;
1568
1574
  kyc_rail_id: string;
@@ -60,7 +60,9 @@ export declare enum OrderTypePaymentMethod {
60
60
  CRYPTO_EXTERNAL = "CRYPTO_EXTERNAL",
61
61
  CRYPTO_INTERNAL = "CRYPTO_INTERNAL",
62
62
  CHAPS = "CHAPS",
63
- FPS = "FPS"
63
+ FPS = "FPS",
64
+ RTP = "RTP",
65
+ CARD = "CARD"
64
66
  }
65
67
  export declare const orderTypePaymentMethodCheck: IsEnumEqualToUnion<OrderTypePaymentMethod, API.Orders.V2.OrderTypes.PaymentMethod>;
66
68
  export type OrderTypePaymentMethodMismatch = EnumUnionMismatch<OrderTypePaymentMethod, API.Orders.V2.OrderTypes.PaymentMethod>;
@@ -137,7 +139,23 @@ export declare enum OrderType {
137
139
  DLS_SEPA_ONRAMP = "DLS_SEPA_ONRAMP",
138
140
  DLS_SEPA_OFFRAMP = "DLS_SEPA_OFFRAMP",
139
141
  DLS_SWIFT_ONRAMP = "DLS_SWIFT_ONRAMP",
140
- DLS_SWIFT_OFFRAMP = "DLS_SWIFT_OFFRAMP"
142
+ DLS_SWIFT_OFFRAMP = "DLS_SWIFT_OFFRAMP",
143
+ BC1_SEPA_ONRAMP = "BC1_SEPA_ONRAMP",
144
+ BC1_SEPA_OFFRAMP = "BC1_SEPA_OFFRAMP",
145
+ BC1_SWIFT_ONRAMP = "BC1_SWIFT_ONRAMP",
146
+ BC1_SWIFT_OFFRAMP = "BC1_SWIFT_OFFRAMP",
147
+ BC3_SEPA_ONRAMP = "BC3_SEPA_ONRAMP",
148
+ BC3_SEPA_OFFRAMP = "BC3_SEPA_OFFRAMP",
149
+ NARVI_SEPA_ONRAMP = "NARVI_SEPA_ONRAMP",
150
+ NARVI_SEPA_OFFRAMP = "NARVI_SEPA_OFFRAMP",
151
+ EXCHANGE_OMNI_ONRAMP = "EXCHANGE_OMNI_ONRAMP",
152
+ EXCHANGE_OMNI_OFFRAMP = "EXCHANGE_OMNI_OFFRAMP",
153
+ EXCHANGE_OMNI_CRYPTO = "EXCHANGE_OMNI_CRYPTO",
154
+ CARD_AUTHORIZATION = "CARD_AUTHORIZATION",
155
+ CARD_AUTH_REFUND = "CARD_AUTH_REFUND",
156
+ REFUND_CARD_PREPAID = "REFUND_CARD_PREPAID",
157
+ REFUND_CARD_SUBACCOUNT = "REFUND_CARD_SUBACCOUNT",
158
+ ADJUSTMENT = "ADJUSTMENT"
141
159
  }
142
160
  export declare enum WalletTransactionRecordType {
143
161
  CARD_PROVIDER_DEPOSIT = "CARD_PROVIDER_DEPOSIT",
@@ -233,7 +251,23 @@ export declare enum WalletTransactionRecordType {
233
251
  DLS_SEPA_ONRAMP = "DLS_SEPA_ONRAMP",
234
252
  DLS_SEPA_OFFRAMP = "DLS_SEPA_OFFRAMP",
235
253
  DLS_SWIFT_ONRAMP = "DLS_SWIFT_ONRAMP",
236
- DLS_SWIFT_OFFRAMP = "DLS_SWIFT_OFFRAMP"
254
+ DLS_SWIFT_OFFRAMP = "DLS_SWIFT_OFFRAMP",
255
+ BC1_SEPA_ONRAMP = "BC1_SEPA_ONRAMP",
256
+ BC1_SEPA_OFFRAMP = "BC1_SEPA_OFFRAMP",
257
+ BC1_SWIFT_ONRAMP = "BC1_SWIFT_ONRAMP",
258
+ BC1_SWIFT_OFFRAMP = "BC1_SWIFT_OFFRAMP",
259
+ BC3_SEPA_ONRAMP = "BC3_SEPA_ONRAMP",
260
+ BC3_SEPA_OFFRAMP = "BC3_SEPA_OFFRAMP",
261
+ NARVI_SEPA_ONRAMP = "NARVI_SEPA_ONRAMP",
262
+ NARVI_SEPA_OFFRAMP = "NARVI_SEPA_OFFRAMP",
263
+ EXCHANGE_OMNI_ONRAMP = "EXCHANGE_OMNI_ONRAMP",
264
+ EXCHANGE_OMNI_OFFRAMP = "EXCHANGE_OMNI_OFFRAMP",
265
+ EXCHANGE_OMNI_CRYPTO = "EXCHANGE_OMNI_CRYPTO",
266
+ CARD_AUTHORIZATION = "CARD_AUTHORIZATION",
267
+ CARD_AUTH_REFUND = "CARD_AUTH_REFUND",
268
+ REFUND_CARD_PREPAID = "REFUND_CARD_PREPAID",
269
+ REFUND_CARD_SUBACCOUNT = "REFUND_CARD_SUBACCOUNT",
270
+ ADJUSTMENT = "ADJUSTMENT"
237
271
  }
238
272
  export type OrderTypeMissingInWalletTransactionRecordType = Exclude<EnumValues<OrderType>, EnumValues<WalletTransactionRecordType>>;
239
273
  export declare const orderTypeIncludedInWalletTransactionRecordTypeCheck: IsUnionSubset<EnumValues<OrderType>, EnumValues<WalletTransactionRecordType>>;
@@ -384,8 +418,9 @@ export declare enum VirtualAccountsInstructionType {
384
418
  CRYPTO_EXTERNAL = "CRYPTO_EXTERNAL",
385
419
  CRYPTO_INTERNAL = "CRYPTO_INTERNAL"
386
420
  }
387
- export declare const isOrderPaymentMethodEqualWithVirtualAccountsInstructionType: IsEnumEqualToUnion<OrderTypePaymentMethod, API.VirtualAccounts.VirtualAccount.DepositInstruction.InstructionType>;
388
- export type OrderPaymentMethodEqualWithVirtualAccountsInstructionTypeMismatch = EnumUnionMismatch<OrderTypePaymentMethod, API.VirtualAccounts.VirtualAccount.DepositInstruction.InstructionType>;
421
+ type OrderPaymentMethodWithoutDepositInstruction = OrderTypePaymentMethod.RTP | OrderTypePaymentMethod.CARD;
422
+ export declare const isOrderPaymentMethodEqualWithVirtualAccountsInstructionType: IsEnumEqualToUnion<Exclude<OrderTypePaymentMethod, OrderPaymentMethodWithoutDepositInstruction>, API.VirtualAccounts.VirtualAccount.DepositInstruction.InstructionType>;
423
+ export type OrderPaymentMethodEqualWithVirtualAccountsInstructionTypeMismatch = EnumUnionMismatch<Exclude<OrderTypePaymentMethod, OrderPaymentMethodWithoutDepositInstruction>, API.VirtualAccounts.VirtualAccount.DepositInstruction.InstructionType>;
389
424
  export declare const virtualAccountsInstructionTypeCheck: IsEnumEqualToUnion<VirtualAccountsInstructionType, API.VirtualAccounts.VirtualAccount.DepositInstruction.InstructionType>;
390
425
  export type VirtualAccountsInstructionTypeMismatch = EnumUnionMismatch<VirtualAccountsInstructionType, API.VirtualAccounts.VirtualAccount.DepositInstruction.InstructionType>;
391
426
  export declare enum CardTransactionStatus {
@@ -400,3 +435,4 @@ export declare enum CardTransactionStatus {
400
435
  REVERSED = "REVERSED",
401
436
  DECLINED = "DECLINED"
402
437
  }
438
+ export {};
package/dist/constants.js CHANGED
@@ -61,6 +61,8 @@ export var OrderTypePaymentMethod;
61
61
  OrderTypePaymentMethod["CRYPTO_INTERNAL"] = "CRYPTO_INTERNAL";
62
62
  OrderTypePaymentMethod["CHAPS"] = "CHAPS";
63
63
  OrderTypePaymentMethod["FPS"] = "FPS";
64
+ OrderTypePaymentMethod["RTP"] = "RTP";
65
+ OrderTypePaymentMethod["CARD"] = "CARD";
64
66
  })(OrderTypePaymentMethod || (OrderTypePaymentMethod = {}));
65
67
  export const orderTypePaymentMethodCheck = true;
66
68
  export var OrderType;
@@ -139,6 +141,22 @@ export var OrderType;
139
141
  OrderType["DLS_SEPA_OFFRAMP"] = "DLS_SEPA_OFFRAMP";
140
142
  OrderType["DLS_SWIFT_ONRAMP"] = "DLS_SWIFT_ONRAMP";
141
143
  OrderType["DLS_SWIFT_OFFRAMP"] = "DLS_SWIFT_OFFRAMP";
144
+ OrderType["BC1_SEPA_ONRAMP"] = "BC1_SEPA_ONRAMP";
145
+ OrderType["BC1_SEPA_OFFRAMP"] = "BC1_SEPA_OFFRAMP";
146
+ OrderType["BC1_SWIFT_ONRAMP"] = "BC1_SWIFT_ONRAMP";
147
+ OrderType["BC1_SWIFT_OFFRAMP"] = "BC1_SWIFT_OFFRAMP";
148
+ OrderType["BC3_SEPA_ONRAMP"] = "BC3_SEPA_ONRAMP";
149
+ OrderType["BC3_SEPA_OFFRAMP"] = "BC3_SEPA_OFFRAMP";
150
+ OrderType["NARVI_SEPA_ONRAMP"] = "NARVI_SEPA_ONRAMP";
151
+ OrderType["NARVI_SEPA_OFFRAMP"] = "NARVI_SEPA_OFFRAMP";
152
+ OrderType["EXCHANGE_OMNI_ONRAMP"] = "EXCHANGE_OMNI_ONRAMP";
153
+ OrderType["EXCHANGE_OMNI_OFFRAMP"] = "EXCHANGE_OMNI_OFFRAMP";
154
+ OrderType["EXCHANGE_OMNI_CRYPTO"] = "EXCHANGE_OMNI_CRYPTO";
155
+ OrderType["CARD_AUTHORIZATION"] = "CARD_AUTHORIZATION";
156
+ OrderType["CARD_AUTH_REFUND"] = "CARD_AUTH_REFUND";
157
+ OrderType["REFUND_CARD_PREPAID"] = "REFUND_CARD_PREPAID";
158
+ OrderType["REFUND_CARD_SUBACCOUNT"] = "REFUND_CARD_SUBACCOUNT";
159
+ OrderType["ADJUSTMENT"] = "ADJUSTMENT";
142
160
  // when extend do not forget to add new order type to the enum WalletTransactionRecordType
143
161
  })(OrderType || (OrderType = {}));
144
162
  export var WalletTransactionRecordType;
@@ -237,6 +255,22 @@ export var WalletTransactionRecordType;
237
255
  WalletTransactionRecordType["DLS_SEPA_OFFRAMP"] = "DLS_SEPA_OFFRAMP";
238
256
  WalletTransactionRecordType["DLS_SWIFT_ONRAMP"] = "DLS_SWIFT_ONRAMP";
239
257
  WalletTransactionRecordType["DLS_SWIFT_OFFRAMP"] = "DLS_SWIFT_OFFRAMP";
258
+ WalletTransactionRecordType["BC1_SEPA_ONRAMP"] = "BC1_SEPA_ONRAMP";
259
+ WalletTransactionRecordType["BC1_SEPA_OFFRAMP"] = "BC1_SEPA_OFFRAMP";
260
+ WalletTransactionRecordType["BC1_SWIFT_ONRAMP"] = "BC1_SWIFT_ONRAMP";
261
+ WalletTransactionRecordType["BC1_SWIFT_OFFRAMP"] = "BC1_SWIFT_OFFRAMP";
262
+ WalletTransactionRecordType["BC3_SEPA_ONRAMP"] = "BC3_SEPA_ONRAMP";
263
+ WalletTransactionRecordType["BC3_SEPA_OFFRAMP"] = "BC3_SEPA_OFFRAMP";
264
+ WalletTransactionRecordType["NARVI_SEPA_ONRAMP"] = "NARVI_SEPA_ONRAMP";
265
+ WalletTransactionRecordType["NARVI_SEPA_OFFRAMP"] = "NARVI_SEPA_OFFRAMP";
266
+ WalletTransactionRecordType["EXCHANGE_OMNI_ONRAMP"] = "EXCHANGE_OMNI_ONRAMP";
267
+ WalletTransactionRecordType["EXCHANGE_OMNI_OFFRAMP"] = "EXCHANGE_OMNI_OFFRAMP";
268
+ WalletTransactionRecordType["EXCHANGE_OMNI_CRYPTO"] = "EXCHANGE_OMNI_CRYPTO";
269
+ WalletTransactionRecordType["CARD_AUTHORIZATION"] = "CARD_AUTHORIZATION";
270
+ WalletTransactionRecordType["CARD_AUTH_REFUND"] = "CARD_AUTH_REFUND";
271
+ WalletTransactionRecordType["REFUND_CARD_PREPAID"] = "REFUND_CARD_PREPAID";
272
+ WalletTransactionRecordType["REFUND_CARD_SUBACCOUNT"] = "REFUND_CARD_SUBACCOUNT";
273
+ WalletTransactionRecordType["ADJUSTMENT"] = "ADJUSTMENT";
240
274
  })(WalletTransactionRecordType || (WalletTransactionRecordType = {}));
241
275
  export const orderTypeIncludedInWalletTransactionRecordTypeCheck = true;
242
276
  export var RequestStatus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.36.34",
3
+ "version": "1.36.36",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",