squarefi-bff-api-module 1.13.3 → 1.14.0
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.
|
@@ -9,5 +9,6 @@ export declare const counterparties: {
|
|
|
9
9
|
getById: ({ wallet_id, counterparty_account_id, counterparty_destination_id, }: API.Counterparties.Destination.Detail.Request) => Promise<API.Counterparties.Destination.Detail.DestinationDetailItem>;
|
|
10
10
|
create: ({ wallet_id, counterparty_account_id, ...data }: API.Counterparties.Destination.Create.Request) => Promise<API.Counterparties.Destination.Detail.DestinationDetailItem>;
|
|
11
11
|
update: ({ wallet_id, counterparty_account_id, counterparty_destination_id, ...data }: API.Counterparties.Destination.Update.Request) => Promise<API.Counterparties.Destination.List.DestinationListItemCommonFields>;
|
|
12
|
+
delete: ({ wallet_id, counterparty_account_id, counterparty_destination_id, }: API.Counterparties.Destination.Delete.Request) => Promise<any>;
|
|
12
13
|
};
|
|
13
14
|
};
|
|
@@ -43,5 +43,6 @@ exports.counterparties = {
|
|
|
43
43
|
var { wallet_id, counterparty_account_id, counterparty_destination_id } = _a, data = __rest(_a, ["wallet_id", "counterparty_account_id", "counterparty_destination_id"]);
|
|
44
44
|
return apiClientFactory_1.apiClientV2.patchRequest(`/counterparties/${wallet_id}/${counterparty_account_id}/destinations/${counterparty_destination_id}`, { data });
|
|
45
45
|
},
|
|
46
|
+
delete: ({ wallet_id, counterparty_account_id, counterparty_destination_id, }) => apiClientFactory_1.apiClientV2.deleteRequest(`/counterparties/${wallet_id}/${counterparty_account_id}/destinations/${counterparty_destination_id}`),
|
|
46
47
|
},
|
|
47
48
|
};
|
package/dist/api/types.d.ts
CHANGED
|
@@ -396,6 +396,7 @@ export declare namespace API {
|
|
|
396
396
|
interface DestinationListItemExternalCryptoData {
|
|
397
397
|
address: string;
|
|
398
398
|
currency_id: string;
|
|
399
|
+
memo?: string;
|
|
399
400
|
}
|
|
400
401
|
interface DestinationListItemWithExternalBankingData extends DestinationListItemCommonFields {
|
|
401
402
|
type: CounterpartyDestinationType.DOMESTIC_WIRE | CounterpartyDestinationType.ACH | CounterpartyDestinationType.SWIFT | CounterpartyDestinationType.SEPA;
|
|
@@ -463,10 +464,17 @@ export declare namespace API {
|
|
|
463
464
|
type: CounterpartyDestinationType;
|
|
464
465
|
nickname: string;
|
|
465
466
|
external_banking_data?: API.Counterparties.Destination.Detail.DestinationDetailItemExternalBankingData;
|
|
466
|
-
external_crypto_data?: Pick<API.Counterparties.Destination.Detail.DestinationDetailItemExternalCryptoData, 'currency_id' | 'address'>;
|
|
467
|
+
external_crypto_data?: Pick<API.Counterparties.Destination.Detail.DestinationDetailItemExternalCryptoData, 'currency_id' | 'address' | 'memo'>;
|
|
467
468
|
}
|
|
468
469
|
type Response = API.Counterparties.Destination.Detail.DestinationDetailItem;
|
|
469
470
|
}
|
|
471
|
+
namespace Delete {
|
|
472
|
+
interface Request {
|
|
473
|
+
wallet_id: string;
|
|
474
|
+
counterparty_account_id: string;
|
|
475
|
+
counterparty_destination_id: string;
|
|
476
|
+
}
|
|
477
|
+
}
|
|
470
478
|
namespace Update {
|
|
471
479
|
interface Request {
|
|
472
480
|
wallet_id: string;
|
package/package.json
CHANGED
|
@@ -46,5 +46,13 @@ export const counterparties = {
|
|
|
46
46
|
`/counterparties/${wallet_id}/${counterparty_account_id}/destinations/${counterparty_destination_id}`,
|
|
47
47
|
{ data }
|
|
48
48
|
),
|
|
49
|
+
delete: ({
|
|
50
|
+
wallet_id,
|
|
51
|
+
counterparty_account_id,
|
|
52
|
+
counterparty_destination_id,
|
|
53
|
+
}: API.Counterparties.Destination.Delete.Request) =>
|
|
54
|
+
apiClientV2.deleteRequest(
|
|
55
|
+
`/counterparties/${wallet_id}/${counterparty_account_id}/destinations/${counterparty_destination_id}`
|
|
56
|
+
),
|
|
49
57
|
},
|
|
50
58
|
};
|
package/src/api/types.ts
CHANGED
|
@@ -458,6 +458,7 @@ export namespace API {
|
|
|
458
458
|
export interface DestinationListItemExternalCryptoData {
|
|
459
459
|
address: string;
|
|
460
460
|
currency_id: string;
|
|
461
|
+
memo?: string;
|
|
461
462
|
}
|
|
462
463
|
|
|
463
464
|
export interface DestinationListItemWithExternalBankingData extends DestinationListItemCommonFields {
|
|
@@ -556,13 +557,21 @@ export namespace API {
|
|
|
556
557
|
|
|
557
558
|
external_crypto_data?: Pick<
|
|
558
559
|
API.Counterparties.Destination.Detail.DestinationDetailItemExternalCryptoData,
|
|
559
|
-
'currency_id' | 'address'
|
|
560
|
+
'currency_id' | 'address' | 'memo'
|
|
560
561
|
>;
|
|
561
562
|
}
|
|
562
563
|
|
|
563
564
|
export type Response = API.Counterparties.Destination.Detail.DestinationDetailItem;
|
|
564
565
|
}
|
|
565
566
|
|
|
567
|
+
export namespace Delete {
|
|
568
|
+
export interface Request {
|
|
569
|
+
wallet_id: string;
|
|
570
|
+
counterparty_account_id: string;
|
|
571
|
+
counterparty_destination_id: string;
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
|
|
566
575
|
export namespace Update {
|
|
567
576
|
export interface Request {
|
|
568
577
|
wallet_id: string;
|