squarefi-bff-api-module 1.32.4 → 1.32.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.
@@ -1813,7 +1813,14 @@ export interface components {
1813
1813
  primary_business?: "ACCOUNTANCY" | "ADULT_ENTERTAINMENT" | "ADULT_PRODUCTS" | "ADVERTISING_MARKETING_PR" | "ADVISOR" | "AEROSPACE" | "AGRICULTURE" | "ALCOHOL" | "ARCHITECTURE" | "ARTS_ANTIQUES" | "ASSET_WEALTH_MANAGEMENT" | "ATM" | "AUTOMOBILE_CAR_PARTS" | "AUTOMOBILE_LUXURY" | "BANK_FOREIGN" | "BANK_US" | "BARS_RESTAURANTS" | "BIO_SCIENCE" | "BOOKS_MAGAZINES_NEWSPAPERS" | "BROADCASTERS_RADIO_TV" | "BROKER" | "BUILDING_MATERIALS" | "CALL_CENTER" | "CASINO_GAMBLING" | "CHARITY" | "CHEMICAL_MANUFACTURING" | "CLOTHING_TEXTILES" | "COMMODITIES" | "COMPANY_FORMATION" | "CONSTRUCTION_TRADES" | "CRYPTO_MSB_FOREIGN" | "CRYPTO_MSB_US" | "CYBER_SECURITY" | "DATA_STORAGE_PROCESSING" | "DEFI_EXCHANGE" | "ECOMMERCE" | "ELECTRONICS_MOBILE_PHONES" | "ENGINEERING" | "EVENT_PLANNING" | "FITNESS_EQUIPMENT" | "FOOD_BEVERAGE" | "FOUNDATION" | "FREIGHT_LOGISTICS_SHIPPING" | "GOVERNMENT_FOREIGN" | "GOVERNMENT_US" | "HEALTH_SUPPLEMENTS" | "HEAVY_EQUIPMENT" | "HISTORICAL_CULTURAL_ARTIFACTS" | "HNWI" | "HOSPITALITY" | "HOSPITALS_CARE_FACILITIES" | "IMPORT_EXPORT" | "INDUSTRIAL_EQUIPMENT" | "INFLUENCER_SOCIAL_MEDIA" | "INSURANCE" | "INSURANCE_INSURANCE_COMPANIES" | "INVESTMENT_FIRMS" | "IT_MANAGED_SERVICES" | "LEGAL_SERVICES" | "LOAN" | "LOGGING_TIMBER_PAPER_MILLS" | "LUXURY_GOODS" | "LUXURY_GOODS_BROKER" | "MINER" | "MINING_EXTRACTION" | "MULTILEVEL_MARKETING" | "MUSIC_PRODUCTION" | "NFT" | "NON_BANK_CUSTODIAN" | "NON_CRYPTO_MSB_FOREIGN" | "NON_CRYPTO_MSB_US" | "OIL_GAS" | "PAWN_BROKERS" | "PAYMENT_PROCESSOR" | "PAYROLL" | "PENSION" | "POLITICAL_PARTY_GROUP" | "POOLED_INVESTMENT" | "PRECIOUS_METALS" | "PRIVATE_EQUITY" | "PRIVATE_JET_CHARTER" | "PROP_TRADING" | "PUBLIC" | "REAL_ESTATE_INVESTMENT" | "RETAILER_DURABLE" | "RETAILER_NON_DURABLE" | "SCHOOL_UNIVERSITY" | "SECURITY" | "SOFTWARE" | "SOFTWARE_BLOCKCHAIN_CRYPTO" | "SPORTING_PROFESSIONAL_CLUB" | "SPV" | "STATE_FOREIGN" | "STATE_US" | "SUPRANATIONAL_BODY" | "TAX_ADVISORS" | "TAXI_PRIVATE_TRANSPORT" | "TELECOMMUNICATIONS" | "TOBACCO" | "TOKEN_PROJECT" | "TRAVEL" | "TRUST_CORP" | "TRUST_PERSONAL" | "UTILITIES_WATER_GAS_ELECTRIC" | "VENTURE_CAPITAL" | "VIDEO_GAMES" | "WASTE_MANAGEMENT_RECYCLING" | "WEAPONS_MANUFACTURER" | "WEAPONS_MILITARY_SERVICES" | "WHV" | "WHOLESALER_DURABLE" | "WHOLESALER_NON_DURABLE" | null;
1814
1814
  business_jurisdictions?: string[] | null;
1815
1815
  funds_send_receive_jurisdictions?: string[] | null;
1816
+ engage_in_activities?: ("NONE" | "ADULT_ENTERTAINMENT" | "DRUGS" | "FIREARMS" | "GAMBLING" | "MARIJUANA" | "TUMBLING")[] | null;
1817
+ monthly_deposits?: string | null;
1818
+ /** @enum {string|null} */
1819
+ regulated_status?: "REGULATED" | "REGISTERED" | "LICENSED" | "NONE" | "NOT_REQUIRED" | null;
1820
+ total_assets?: string | null;
1821
+ vendors_and_counterparties?: ("SELF" | "MERCHANTS_SUPPLIERS" | "CUSTOMERS" | "EMPLOYEES" | "CONTRACTORS" | "FRIENDS" | "FAMILY")[] | null;
1816
1822
  address?: components["schemas"]["KycAddressDto"] | null;
1823
+ physical_address?: components["schemas"]["KycAddressDto"] | null;
1817
1824
  beneficial_owners?: components["schemas"]["KycBeneficialOwnerDto"][] | null;
1818
1825
  };
1819
1826
  CreateOrUpdateKycEntityDto: {
@@ -1917,7 +1924,14 @@ export interface components {
1917
1924
  primary_business?: "ACCOUNTANCY" | "ADULT_ENTERTAINMENT" | "ADULT_PRODUCTS" | "ADVERTISING_MARKETING_PR" | "ADVISOR" | "AEROSPACE" | "AGRICULTURE" | "ALCOHOL" | "ARCHITECTURE" | "ARTS_ANTIQUES" | "ASSET_WEALTH_MANAGEMENT" | "ATM" | "AUTOMOBILE_CAR_PARTS" | "AUTOMOBILE_LUXURY" | "BANK_FOREIGN" | "BANK_US" | "BARS_RESTAURANTS" | "BIO_SCIENCE" | "BOOKS_MAGAZINES_NEWSPAPERS" | "BROADCASTERS_RADIO_TV" | "BROKER" | "BUILDING_MATERIALS" | "CALL_CENTER" | "CASINO_GAMBLING" | "CHARITY" | "CHEMICAL_MANUFACTURING" | "CLOTHING_TEXTILES" | "COMMODITIES" | "COMPANY_FORMATION" | "CONSTRUCTION_TRADES" | "CRYPTO_MSB_FOREIGN" | "CRYPTO_MSB_US" | "CYBER_SECURITY" | "DATA_STORAGE_PROCESSING" | "DEFI_EXCHANGE" | "ECOMMERCE" | "ELECTRONICS_MOBILE_PHONES" | "ENGINEERING" | "EVENT_PLANNING" | "FITNESS_EQUIPMENT" | "FOOD_BEVERAGE" | "FOUNDATION" | "FREIGHT_LOGISTICS_SHIPPING" | "GOVERNMENT_FOREIGN" | "GOVERNMENT_US" | "HEALTH_SUPPLEMENTS" | "HEAVY_EQUIPMENT" | "HISTORICAL_CULTURAL_ARTIFACTS" | "HNWI" | "HOSPITALITY" | "HOSPITALS_CARE_FACILITIES" | "IMPORT_EXPORT" | "INDUSTRIAL_EQUIPMENT" | "INFLUENCER_SOCIAL_MEDIA" | "INSURANCE" | "INSURANCE_INSURANCE_COMPANIES" | "INVESTMENT_FIRMS" | "IT_MANAGED_SERVICES" | "LEGAL_SERVICES" | "LOAN" | "LOGGING_TIMBER_PAPER_MILLS" | "LUXURY_GOODS" | "LUXURY_GOODS_BROKER" | "MINER" | "MINING_EXTRACTION" | "MULTILEVEL_MARKETING" | "MUSIC_PRODUCTION" | "NFT" | "NON_BANK_CUSTODIAN" | "NON_CRYPTO_MSB_FOREIGN" | "NON_CRYPTO_MSB_US" | "OIL_GAS" | "PAWN_BROKERS" | "PAYMENT_PROCESSOR" | "PAYROLL" | "PENSION" | "POLITICAL_PARTY_GROUP" | "POOLED_INVESTMENT" | "PRECIOUS_METALS" | "PRIVATE_EQUITY" | "PRIVATE_JET_CHARTER" | "PROP_TRADING" | "PUBLIC" | "REAL_ESTATE_INVESTMENT" | "RETAILER_DURABLE" | "RETAILER_NON_DURABLE" | "SCHOOL_UNIVERSITY" | "SECURITY" | "SOFTWARE" | "SOFTWARE_BLOCKCHAIN_CRYPTO" | "SPORTING_PROFESSIONAL_CLUB" | "SPV" | "STATE_FOREIGN" | "STATE_US" | "SUPRANATIONAL_BODY" | "TAX_ADVISORS" | "TAXI_PRIVATE_TRANSPORT" | "TELECOMMUNICATIONS" | "TOBACCO" | "TOKEN_PROJECT" | "TRAVEL" | "TRUST_CORP" | "TRUST_PERSONAL" | "UTILITIES_WATER_GAS_ELECTRIC" | "VENTURE_CAPITAL" | "VIDEO_GAMES" | "WASTE_MANAGEMENT_RECYCLING" | "WEAPONS_MANUFACTURER" | "WEAPONS_MILITARY_SERVICES" | "WHV" | "WHOLESALER_DURABLE" | "WHOLESALER_NON_DURABLE" | null;
1918
1925
  business_jurisdictions?: string[] | null;
1919
1926
  funds_send_receive_jurisdictions?: string[] | null;
1927
+ engage_in_activities?: ("NONE" | "ADULT_ENTERTAINMENT" | "DRUGS" | "FIREARMS" | "GAMBLING" | "MARIJUANA" | "TUMBLING")[] | null;
1928
+ monthly_deposits?: string | null;
1929
+ /** @enum {string|null} */
1930
+ regulated_status?: "REGULATED" | "REGISTERED" | "LICENSED" | "NONE" | "NOT_REQUIRED" | null;
1931
+ total_assets?: string | null;
1932
+ vendors_and_counterparties?: ("SELF" | "MERCHANTS_SUPPLIERS" | "CUSTOMERS" | "EMPLOYEES" | "CONTRACTORS" | "FRIENDS" | "FAMILY")[] | null;
1920
1933
  address?: components["schemas"]["KycAddressDto"] | null;
1934
+ physical_address?: components["schemas"]["KycAddressDto"] | null;
1921
1935
  beneficial_owners?: components["schemas"]["KycBeneficialOwnerDto"][] | null;
1922
1936
  };
1923
1937
  WalletKycRailExtraActionDto: {
@@ -2048,7 +2062,7 @@ export interface components {
2048
2062
  CounterpartyDestinationsFilter: {
2049
2063
  nickname?: string | null;
2050
2064
  /** @enum {string} */
2051
- type?: "DOMESTIC_WIRE" | "ACH" | "SWIFT" | "SEPA" | "CRYPTO_EXTERNAL" | "CRYPTO_INTERNAL";
2065
+ type?: "ACH" | "SWIFT" | "SEPA" | "CRYPTO_EXTERNAL" | "CRYPTO_INTERNAL" | "CHAPS" | "FPS" | "FEDWIRE";
2052
2066
  created_at?: string;
2053
2067
  };
2054
2068
  StateEntity: {
@@ -2116,7 +2130,7 @@ export interface components {
2116
2130
  id: string;
2117
2131
  nickname: string | null;
2118
2132
  /** @enum {string} */
2119
- type: "DOMESTIC_WIRE" | "ACH" | "SWIFT" | "SEPA" | "CRYPTO_EXTERNAL" | "CRYPTO_INTERNAL";
2133
+ type: "ACH" | "SWIFT" | "SEPA" | "CRYPTO_EXTERNAL" | "CRYPTO_INTERNAL" | "CHAPS" | "FPS" | "FEDWIRE";
2120
2134
  created_at: string;
2121
2135
  external_banking_data?: components["schemas"]["CounterpartyExternalBankingDataDto"];
2122
2136
  external_crypto_data?: components["schemas"]["CounterpartyExternalCryptoDataDto"];
@@ -2155,7 +2169,7 @@ export interface components {
2155
2169
  CreateCounterpartyDestinationDto: {
2156
2170
  nickname: string | null;
2157
2171
  /** @enum {string} */
2158
- type: "DOMESTIC_WIRE" | "ACH" | "SWIFT" | "SEPA" | "CRYPTO_EXTERNAL" | "CRYPTO_INTERNAL";
2172
+ type: "ACH" | "SWIFT" | "SEPA" | "CRYPTO_EXTERNAL" | "CRYPTO_INTERNAL" | "CHAPS" | "FPS" | "FEDWIRE";
2159
2173
  external_banking_data: components["schemas"]["CreateCounterpartyExternalBankingDataDto"];
2160
2174
  external_crypto_data: components["schemas"]["CreateCounterpartyExternalCryptoDataDto"];
2161
2175
  };
@@ -1,4 +1,4 @@
1
- import { APIKeyRole, CardFormFactor, CardTransactionType, CardType, CounterpartyDestinationType, CounterpartyType, CurrencyType, IssuingProgramStatus, OrderPaymentMethod, OrderStatuses, OrderType, SortingDirection, SubAccountType, WalletTransactionMethod, WalletTransactionRecordType, WalletTransactionStatus, WalletTransactionType } from '../../constants';
1
+ import { APIKeyRole, CardFormFactor, CardTransactionType, CardType, CurrencyType, IssuingProgramStatus, OrderPaymentMethod, OrderStatuses, OrderType, SortingDirection, SubAccountType, WalletTransactionMethod, WalletTransactionRecordType, WalletTransactionStatus, WalletTransactionType } from '../../constants';
2
2
  import { WalletType } from '../..';
3
3
  import { components, operations } from './autogen/apiV2.types';
4
4
  export declare namespace API {
@@ -364,21 +364,18 @@ export declare namespace API {
364
364
  }
365
365
  }
366
366
  namespace Counterparties {
367
- interface Counterparty {
368
- id: string;
369
- email: string;
370
- phone: string;
371
- name: string;
372
- nickname?: string | null;
373
- type: CounterpartyType | string;
374
- created_at: string;
375
- }
367
+ type CounterpartyType = components['schemas']['CounterpartyAccountDto']['type'];
368
+ type Counterparty = components['schemas']['CounterpartyAccountDto'];
376
369
  namespace Destination {
370
+ type CounterpartyDestinationType = components['schemas']['CounterpartyDestinationDto']['type'];
371
+ type BankingDestinationType = Extract<CounterpartyDestinationType, 'FEDWIRE'> | Extract<CounterpartyDestinationType, 'ACH'> | Extract<CounterpartyDestinationType, 'SWIFT'> | Extract<CounterpartyDestinationType, 'SEPA'> | Extract<CounterpartyDestinationType, 'CHAPS'> | Extract<CounterpartyDestinationType, 'FPS'>;
372
+ type CryptoDestinationType = Extract<CounterpartyDestinationType, 'CRYPTO_EXTERNAL'> | Extract<CounterpartyDestinationType, 'CRYPTO_INTERNAL'>;
373
+ type DestinationType = BankingDestinationType | CryptoDestinationType;
377
374
  namespace List {
378
375
  interface DestinationListItemCommonFields {
379
376
  id: string;
380
377
  nickname: string;
381
- type: CounterpartyDestinationType | string;
378
+ type: CounterpartyDestinationType;
382
379
  created_at: string;
383
380
  }
384
381
  interface DestinationListItemExternalBankingData {
@@ -402,31 +399,17 @@ export declare namespace API {
402
399
  memo?: string;
403
400
  }
404
401
  interface DestinationListItemWithExternalBankingData extends DestinationListItemCommonFields {
405
- type: CounterpartyDestinationType.DOMESTIC_WIRE | CounterpartyDestinationType.ACH | CounterpartyDestinationType.SWIFT | CounterpartyDestinationType.SEPA;
402
+ type: BankingDestinationType;
406
403
  external_banking_data: DestinationListItemExternalBankingData;
407
404
  external_crypto_data?: never;
408
405
  }
409
406
  interface DestinationListItemWithExternalCryptoData extends DestinationListItemCommonFields {
410
- type: CounterpartyDestinationType.CRYPTO_EXTERNAL | CounterpartyDestinationType.CRYPTO_INTERNAL;
407
+ type: CryptoDestinationType;
411
408
  external_banking_data?: never;
412
409
  external_crypto_data: DestinationListItemExternalCryptoData;
413
410
  }
414
411
  type CounterpartyDestinationListItem = DestinationListItemWithExternalBankingData | DestinationListItemWithExternalCryptoData;
415
- interface Request {
416
- wallet_id: string;
417
- counterparty_account_id: string;
418
- limit?: number;
419
- offset?: number;
420
- search?: string;
421
- type?: CounterpartyDestinationType | string;
422
- sort_by?: 'created_at' | 'nickname' | 'type';
423
- sort_order?: SortingDirection;
424
- filter?: {
425
- type?: CounterpartyDestinationType;
426
- nickname?: string;
427
- created_at?: string;
428
- };
429
- }
412
+ type Request = operations['CounterpartyDestinationsController_findAll']['parameters']['query'] & operations['CounterpartyDestinationsController_findAll']['parameters']['path'];
430
413
  type Response = {
431
414
  total: number;
432
415
  data: CounterpartyDestinationListItem[];
@@ -444,21 +427,19 @@ export declare namespace API {
444
427
  currency: API.Currencies.Currency;
445
428
  }
446
429
  interface DestinationDetailItemWithExternalBankingData extends DestinationDetailItemCommonFields {
447
- type: CounterpartyDestinationType.DOMESTIC_WIRE | CounterpartyDestinationType.ACH | CounterpartyDestinationType.SWIFT | CounterpartyDestinationType.SEPA;
430
+ type: BankingDestinationType;
448
431
  external_banking_data: DestinationDetailItemExternalBankingData;
449
432
  external_crypto_data?: never;
450
433
  }
451
434
  interface DestinationDetailItemWithExternalCryptoData extends DestinationDetailItemCommonFields {
452
- type: CounterpartyDestinationType.CRYPTO_EXTERNAL | CounterpartyDestinationType.CRYPTO_INTERNAL;
435
+ type: CryptoDestinationType;
453
436
  external_banking_data?: never;
454
437
  external_crypto_data: DestinationDetailItemExternalCryptoData;
455
438
  }
456
439
  type DestinationDetailItem = DestinationDetailItemWithExternalBankingData | DestinationDetailItemWithExternalCryptoData;
457
- interface Request {
440
+ type Request = operations['CounterpartyDestinationsController_findOne']['parameters']['path'] & {
458
441
  wallet_id: string;
459
- counterparty_account_id: string;
460
- counterparty_destination_id: string;
461
- }
442
+ };
462
443
  type Response = DestinationDetailItem;
463
444
  }
464
445
  namespace Create {
@@ -480,20 +461,11 @@ export declare namespace API {
480
461
  type Response = API.Counterparties.Destination.Detail.DestinationDetailItem;
481
462
  }
482
463
  namespace Delete {
483
- interface Request {
484
- wallet_id: string;
485
- counterparty_account_id: string;
486
- counterparty_destination_id: string;
487
- }
464
+ type Request = operations['CounterpartyDestinationsController_delete']['parameters']['path'];
488
465
  }
489
466
  namespace Update {
490
- interface Request {
491
- wallet_id: string;
492
- counterparty_account_id: string;
493
- counterparty_destination_id: string;
494
- nickname: string;
495
- }
496
- type Response = API.Counterparties.Destination.Detail.DestinationDetailItemCommonFields;
467
+ type Request = operations['CounterpartyDestinationsController_update']['requestBody']['content']['application/json'] & operations['CounterpartyDestinationsController_update']['parameters']['path'];
468
+ type Response = components['schemas']['CounterpartyDestinationDto'];
497
469
  }
498
470
  }
499
471
  namespace GetById {
@@ -501,45 +473,25 @@ export declare namespace API {
501
473
  wallet_id: string;
502
474
  counterparty_account_id: string;
503
475
  }
504
- type Response = Counterparty;
476
+ type Response = components['schemas']['CounterpartyAccountDto'];
505
477
  }
506
478
  namespace List {
507
- interface Request {
508
- wallet_id: string;
509
- offset?: number;
510
- limit?: number;
511
- sort_by?: 'created_at' | 'nickname' | 'type' | 'email' | 'phone';
512
- sort_order?: SortingDirection;
513
- filter?: {
514
- type?: CounterpartyDestinationType;
515
- nickname?: string;
516
- created_at?: string;
517
- search?: string;
518
- };
519
- }
479
+ type Request = operations['CounterpartyAccountsController_findAll']['parameters']['query'] & operations['CounterpartyAccountsController_findAll']['parameters']['path'];
520
480
  type Response = {
521
481
  total: number;
522
482
  data: Counterparty[];
523
483
  };
524
484
  }
525
485
  namespace Create {
526
- type Request = Omit<Counterparty, 'id' | 'created_at'> & {
527
- wallet_id: string;
528
- };
486
+ type Request = operations['CounterpartyAccountsController_create']['requestBody']['content']['application/json'] & operations['CounterpartyAccountsController_create']['parameters']['path'];
529
487
  type Response = Counterparty;
530
488
  }
531
489
  namespace Update {
532
- type Request = Partial<Omit<Counterparty, 'id' | 'created_at'>> & {
533
- wallet_id: string;
534
- counterparty_account_id: string;
535
- };
490
+ type Request = operations['CounterpartyAccountsController_update']['requestBody']['content']['application/json'] & operations['CounterpartyAccountsController_update']['parameters']['path'];
536
491
  type Response = Counterparty;
537
492
  }
538
493
  namespace Delete {
539
- interface Request {
540
- wallet_id: string;
541
- counterparty_account_id: string;
542
- }
494
+ type Request = operations['CounterpartyAccountsController_delete']['parameters']['path'];
543
495
  type Response = Counterparty;
544
496
  }
545
497
  }
@@ -793,6 +745,7 @@ export declare namespace API {
793
745
  }
794
746
  }
795
747
  namespace KYC {
748
+ type KYCStatus = components['schemas']['KycEntityDto']['status'];
796
749
  namespace Sumsub {
797
750
  namespace GenerateToken {
798
751
  interface Request {
@@ -1,3 +1,5 @@
1
+ import { API } from '.';
2
+ import { IsEnumEqualToUnion, EnumUnionMismatch } from './utils/types';
1
3
  export type ValueWithLabel = {
2
4
  value: string;
3
5
  label: string;
@@ -230,8 +232,12 @@ export declare enum KYCStatuses {
230
232
  DOUBLE = "DOUBLE",
231
233
  SOFT_REJECT = "SOFT_REJECT",
232
234
  REJECT = "REJECT",
233
- UNVERIFIED = "UNVERIFIED"
235
+ UNVERIFIED = "UNVERIFIED",
236
+ WAITING_ON_UBOS = "WAITING_ON_UBOS",
237
+ WAITING_ON_REVIEW = "WAITING_ON_REVIEW"
234
238
  }
239
+ export declare const KYCStatusCheck: IsEnumEqualToUnion<KYCStatuses, API.KYC.KYCStatus>;
240
+ export type KYCStatusMismatch = EnumUnionMismatch<KYCStatuses, API.KYC.KYCStatus>;
235
241
  export declare enum OrderStatuses {
236
242
  NEW = "NEW",
237
243
  PENDING = "PENDING",
@@ -281,14 +287,21 @@ export declare enum CounterpartyType {
281
287
  INDIVIDUAL = "INDIVIDUAL",
282
288
  BUSINESS = "BUSINESS"
283
289
  }
290
+ export declare const counterpartyTypeCheck: IsEnumEqualToUnion<CounterpartyType, API.Counterparties.CounterpartyType>;
284
291
  export declare enum CounterpartyDestinationType {
285
- DOMESTIC_WIRE = "DOMESTIC_WIRE",
292
+ FEDWIRE = "FEDWIRE",
286
293
  ACH = "ACH",
287
294
  SWIFT = "SWIFT",
288
295
  SEPA = "SEPA",
289
296
  CRYPTO_EXTERNAL = "CRYPTO_EXTERNAL",
290
- CRYPTO_INTERNAL = "CRYPTO_INTERNAL"
297
+ CRYPTO_INTERNAL = "CRYPTO_INTERNAL",
298
+ CHAPS = "CHAPS",
299
+ FPS = "FPS"
291
300
  }
301
+ export declare const counterpartyBankingAndCryptoDestinationTypeCheck: IsEnumEqualToUnion<API.Counterparties.Destination.CounterpartyDestinationType, API.Counterparties.Destination.DestinationType>;
302
+ export type CounterpartyBankingAndCryptoDestinationTypeMismatch = EnumUnionMismatch<API.Counterparties.Destination.CounterpartyDestinationType, API.Counterparties.Destination.DestinationType>;
303
+ export declare const counterpartyDestinationTypeCheck: IsEnumEqualToUnion<CounterpartyDestinationType, API.Counterparties.Destination.CounterpartyDestinationType>;
304
+ export type CounterpartyDestinationTypeMismatch = EnumUnionMismatch<CounterpartyDestinationType, API.Counterparties.Destination.CounterpartyDestinationType>;
292
305
  export declare enum CardTransactionStatus {
293
306
  APPROVED = "APPROVED",
294
307
  CLEARED = "CLEARED",
package/dist/constants.js CHANGED
@@ -249,7 +249,10 @@ export var KYCStatuses;
249
249
  KYCStatuses["SOFT_REJECT"] = "SOFT_REJECT";
250
250
  KYCStatuses["REJECT"] = "REJECT";
251
251
  KYCStatuses["UNVERIFIED"] = "UNVERIFIED";
252
+ KYCStatuses["WAITING_ON_UBOS"] = "WAITING_ON_UBOS";
253
+ KYCStatuses["WAITING_ON_REVIEW"] = "WAITING_ON_REVIEW";
252
254
  })(KYCStatuses || (KYCStatuses = {}));
255
+ export const KYCStatusCheck = true;
253
256
  export var OrderStatuses;
254
257
  (function (OrderStatuses) {
255
258
  OrderStatuses["NEW"] = "NEW";
@@ -308,15 +311,20 @@ export var CounterpartyType;
308
311
  CounterpartyType["INDIVIDUAL"] = "INDIVIDUAL";
309
312
  CounterpartyType["BUSINESS"] = "BUSINESS";
310
313
  })(CounterpartyType || (CounterpartyType = {}));
314
+ export const counterpartyTypeCheck = true;
311
315
  export var CounterpartyDestinationType;
312
316
  (function (CounterpartyDestinationType) {
313
- CounterpartyDestinationType["DOMESTIC_WIRE"] = "DOMESTIC_WIRE";
317
+ CounterpartyDestinationType["FEDWIRE"] = "FEDWIRE";
314
318
  CounterpartyDestinationType["ACH"] = "ACH";
315
319
  CounterpartyDestinationType["SWIFT"] = "SWIFT";
316
320
  CounterpartyDestinationType["SEPA"] = "SEPA";
317
321
  CounterpartyDestinationType["CRYPTO_EXTERNAL"] = "CRYPTO_EXTERNAL";
318
322
  CounterpartyDestinationType["CRYPTO_INTERNAL"] = "CRYPTO_INTERNAL";
323
+ CounterpartyDestinationType["CHAPS"] = "CHAPS";
324
+ CounterpartyDestinationType["FPS"] = "FPS";
319
325
  })(CounterpartyDestinationType || (CounterpartyDestinationType = {}));
326
+ export const counterpartyBankingAndCryptoDestinationTypeCheck = true;
327
+ export const counterpartyDestinationTypeCheck = true;
320
328
  export var CardTransactionStatus;
321
329
  (function (CardTransactionStatus) {
322
330
  CardTransactionStatus["APPROVED"] = "APPROVED";
@@ -0,0 +1,9 @@
1
+ export type EnumValues<T> = `${T & string}` extends `${infer V}` ? V : never;
2
+ export type EnumValuesMissingInUnion<E, U> = Exclude<EnumValues<E>, U>;
3
+ export type UnionValuesMissingInEnum<E, U> = Exclude<U, EnumValues<E>>;
4
+ export type EnumUnionMismatch<E, U> = {
5
+ enumMissingInUnion: EnumValuesMissingInUnion<E, U>;
6
+ unionMissingInEnum: UnionValuesMissingInEnum<E, U>;
7
+ hasMismatch: [EnumValuesMissingInUnion<E, U>, UnionValuesMissingInEnum<E, U>] extends [never, never] ? false : true;
8
+ };
9
+ export type IsEnumEqualToUnion<E, U> = [EnumValues<E>] extends [U] ? [U] extends [EnumValues<E>] ? true : false : false;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.32.4",
3
+ "version": "1.32.5",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",