@thera-hr/api-sdk 0.0.1-prerelease2763-dev → 0.0.1-prerelease2770-staging
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/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
- package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
- package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +4 -43
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +22 -61
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +2 -17
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.d.ts +23 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.js +5 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.d.ts +9 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.js +5 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +2 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
- package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +2 -2
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +6 -6
- package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
- package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/api/resources/db/resources/user/types/BridgeUserDetails.d.ts +1 -0
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
- package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +4 -43
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +22 -61
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +2 -17
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.d.ts +23 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.d.ts +9 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +2 -2
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +6 -6
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
- package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/dist/api/resources/db/resources/user/types/BridgeUserDetails.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listExternalAccounts.d.ts +3 -3
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listExternalAccounts.js +2 -2
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +2 -20
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.js +2 -20
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.d.ts +32 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.js +53 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.d.ts +15 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.js +36 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.d.ts +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.js +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +2 -0
- package/dist/serialization/resources/db/resources/user/types/BridgeUserDetails.d.ts +2 -0
- package/dist/serialization/resources/db/resources/user/types/BridgeUserDetails.js +2 -0
- package/package.json +1 -1
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listExternalAccounts.d.ts +3 -3
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/listExternalAccounts.js +2 -2
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.d.ts +2 -20
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount.js +2 -20
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.d.ts +32 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccountObj.js +53 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.d.ts +15 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletBalance.js +36 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.d.ts +2 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails.js +2 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +2 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +2 -0
- package/serialization/resources/db/resources/user/types/BridgeUserDetails.d.ts +2 -0
- package/serialization/resources/db/resources/user/types/BridgeUserDetails.js +2 -0
|
@@ -29,9 +29,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.BridgeUserDetails = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../../core"));
|
|
31
31
|
const WalletDetails_1 = require("../../../../api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails");
|
|
32
|
+
const ExternalAccount_1 = require("../../../../api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount");
|
|
32
33
|
exports.BridgeUserDetails = core.serialization.object({
|
|
33
34
|
customerId: core.serialization.string(),
|
|
34
35
|
onboardingStatus: core.serialization.string(),
|
|
35
36
|
wallet: WalletDetails_1.WalletDetails.optional(),
|
|
36
37
|
ledgerAccount: core.serialization.string(),
|
|
38
|
+
externalAccount: core.serialization.list(ExternalAccount_1.ExternalAccount),
|
|
37
39
|
});
|
package/package.json
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import * as serializers from "../../../../../../../../../index";
|
|
5
5
|
import * as TheraApi from "../../../../../../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../../../../../../core";
|
|
7
|
-
import {
|
|
8
|
-
export declare const Response: core.serialization.Schema<serializers.api.thera.bridge.bridgeApi.listExternalAccounts.Response.Raw, TheraApi.api.thera.bridge.
|
|
7
|
+
import { ExternalAccount } from "../types/ExternalAccount";
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.api.thera.bridge.bridgeApi.listExternalAccounts.Response.Raw, TheraApi.api.thera.bridge.ExternalAccount[]>;
|
|
9
9
|
export declare namespace Response {
|
|
10
|
-
type Raw =
|
|
10
|
+
type Raw = ExternalAccount.Raw[];
|
|
11
11
|
}
|
|
@@ -28,5 +28,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.Response = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../../../../../../core"));
|
|
31
|
-
const
|
|
32
|
-
exports.Response = core.serialization.list(
|
|
31
|
+
const ExternalAccount_1 = require("../types/ExternalAccount");
|
|
32
|
+
exports.Response = core.serialization.list(ExternalAccount_1.ExternalAccount);
|
|
@@ -4,29 +4,11 @@
|
|
|
4
4
|
import * as serializers from "../../../../../../../../../index";
|
|
5
5
|
import * as TheraApi from "../../../../../../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../../../../../../core";
|
|
7
|
-
import { BridgeIbanBankAccount } from "./BridgeIbanBankAccount";
|
|
8
|
-
import { BridgeSwiftBankAccount } from "./BridgeSwiftBankAccount";
|
|
9
|
-
import { BridgeAccountDetails } from "./BridgeAccountDetails";
|
|
10
|
-
import { Address } from "./Address";
|
|
11
7
|
export declare const ExternalAccount: core.serialization.ObjectSchema<serializers.api.thera.bridge.ExternalAccount.Raw, TheraApi.api.thera.bridge.ExternalAccount>;
|
|
12
8
|
export declare namespace ExternalAccount {
|
|
13
9
|
interface Raw {
|
|
10
|
+
wallet_address: string;
|
|
14
11
|
currency: string;
|
|
15
|
-
|
|
16
|
-
account_owner_name: string;
|
|
17
|
-
account_number: string;
|
|
18
|
-
routing_number: string;
|
|
19
|
-
account_type: string;
|
|
20
|
-
iban?: BridgeIbanBankAccount.Raw | null;
|
|
21
|
-
swift?: BridgeSwiftBankAccount.Raw | null;
|
|
22
|
-
account?: BridgeAccountDetails.Raw | null;
|
|
23
|
-
address: Address.Raw;
|
|
24
|
-
category: string;
|
|
25
|
-
purpose_of_funds: string[];
|
|
26
|
-
short_business_description: string;
|
|
27
|
-
account_owner_type: string;
|
|
28
|
-
first_name?: string | null;
|
|
29
|
-
last_name?: string | null;
|
|
30
|
-
business_name?: string | null;
|
|
12
|
+
payment_rail: string;
|
|
31
13
|
}
|
|
32
14
|
}
|
|
@@ -28,26 +28,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ExternalAccount = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../../../../../../core"));
|
|
31
|
-
const BridgeIbanBankAccount_1 = require("./BridgeIbanBankAccount");
|
|
32
|
-
const BridgeSwiftBankAccount_1 = require("./BridgeSwiftBankAccount");
|
|
33
|
-
const BridgeAccountDetails_1 = require("./BridgeAccountDetails");
|
|
34
|
-
const Address_1 = require("./Address");
|
|
35
31
|
exports.ExternalAccount = core.serialization.object({
|
|
32
|
+
walletAddress: core.serialization.property("wallet_address", core.serialization.string()),
|
|
36
33
|
currency: core.serialization.string(),
|
|
37
|
-
|
|
38
|
-
accountOwnerName: core.serialization.property("account_owner_name", core.serialization.string()),
|
|
39
|
-
accountNumber: core.serialization.property("account_number", core.serialization.string()),
|
|
40
|
-
routingNumber: core.serialization.property("routing_number", core.serialization.string()),
|
|
41
|
-
accountType: core.serialization.property("account_type", core.serialization.string()),
|
|
42
|
-
iban: BridgeIbanBankAccount_1.BridgeIbanBankAccount.optional(),
|
|
43
|
-
swift: BridgeSwiftBankAccount_1.BridgeSwiftBankAccount.optional(),
|
|
44
|
-
account: BridgeAccountDetails_1.BridgeAccountDetails.optional(),
|
|
45
|
-
address: Address_1.Address,
|
|
46
|
-
category: core.serialization.string(),
|
|
47
|
-
purposeOfFunds: core.serialization.property("purpose_of_funds", core.serialization.list(core.serialization.string())),
|
|
48
|
-
shortBusinessDescription: core.serialization.property("short_business_description", core.serialization.string()),
|
|
49
|
-
accountOwnerType: core.serialization.property("account_owner_type", core.serialization.string()),
|
|
50
|
-
firstName: core.serialization.property("first_name", core.serialization.string().optional()),
|
|
51
|
-
lastName: core.serialization.property("last_name", core.serialization.string().optional()),
|
|
52
|
-
businessName: core.serialization.property("business_name", core.serialization.string().optional()),
|
|
34
|
+
paymentRail: core.serialization.property("payment_rail", core.serialization.string()),
|
|
53
35
|
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../../../../../index";
|
|
5
|
+
import * as TheraApi from "../../../../../../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../../../../../../core";
|
|
7
|
+
import { BridgeIbanBankAccount } from "./BridgeIbanBankAccount";
|
|
8
|
+
import { BridgeSwiftBankAccount } from "./BridgeSwiftBankAccount";
|
|
9
|
+
import { BridgeAccountDetails } from "./BridgeAccountDetails";
|
|
10
|
+
import { Address } from "./Address";
|
|
11
|
+
export declare const ExternalAccountObj: core.serialization.ObjectSchema<serializers.api.thera.bridge.ExternalAccountObj.Raw, TheraApi.api.thera.bridge.ExternalAccountObj>;
|
|
12
|
+
export declare namespace ExternalAccountObj {
|
|
13
|
+
interface Raw {
|
|
14
|
+
currency: string;
|
|
15
|
+
bank_name: string;
|
|
16
|
+
account_owner_name: string;
|
|
17
|
+
account_number: string;
|
|
18
|
+
routing_number: string;
|
|
19
|
+
account_type: string;
|
|
20
|
+
iban?: BridgeIbanBankAccount.Raw | null;
|
|
21
|
+
swift?: BridgeSwiftBankAccount.Raw | null;
|
|
22
|
+
account?: BridgeAccountDetails.Raw | null;
|
|
23
|
+
address: Address.Raw;
|
|
24
|
+
category: string;
|
|
25
|
+
purpose_of_funds: string[];
|
|
26
|
+
short_business_description: string;
|
|
27
|
+
account_owner_type: string;
|
|
28
|
+
first_name?: string | null;
|
|
29
|
+
last_name?: string | null;
|
|
30
|
+
business_name?: string | null;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ExternalAccountObj = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
|
31
|
+
const BridgeIbanBankAccount_1 = require("./BridgeIbanBankAccount");
|
|
32
|
+
const BridgeSwiftBankAccount_1 = require("./BridgeSwiftBankAccount");
|
|
33
|
+
const BridgeAccountDetails_1 = require("./BridgeAccountDetails");
|
|
34
|
+
const Address_1 = require("./Address");
|
|
35
|
+
exports.ExternalAccountObj = core.serialization.object({
|
|
36
|
+
currency: core.serialization.string(),
|
|
37
|
+
bankName: core.serialization.property("bank_name", core.serialization.string()),
|
|
38
|
+
accountOwnerName: core.serialization.property("account_owner_name", core.serialization.string()),
|
|
39
|
+
accountNumber: core.serialization.property("account_number", core.serialization.string()),
|
|
40
|
+
routingNumber: core.serialization.property("routing_number", core.serialization.string()),
|
|
41
|
+
accountType: core.serialization.property("account_type", core.serialization.string()),
|
|
42
|
+
iban: BridgeIbanBankAccount_1.BridgeIbanBankAccount.optional(),
|
|
43
|
+
swift: BridgeSwiftBankAccount_1.BridgeSwiftBankAccount.optional(),
|
|
44
|
+
account: BridgeAccountDetails_1.BridgeAccountDetails.optional(),
|
|
45
|
+
address: Address_1.Address,
|
|
46
|
+
category: core.serialization.string(),
|
|
47
|
+
purposeOfFunds: core.serialization.property("purpose_of_funds", core.serialization.list(core.serialization.string())),
|
|
48
|
+
shortBusinessDescription: core.serialization.property("short_business_description", core.serialization.string()),
|
|
49
|
+
accountOwnerType: core.serialization.property("account_owner_type", core.serialization.string()),
|
|
50
|
+
firstName: core.serialization.property("first_name", core.serialization.string().optional()),
|
|
51
|
+
lastName: core.serialization.property("last_name", core.serialization.string().optional()),
|
|
52
|
+
businessName: core.serialization.property("business_name", core.serialization.string().optional()),
|
|
53
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../../../../../index";
|
|
5
|
+
import * as TheraApi from "../../../../../../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../../../../../../core";
|
|
7
|
+
export declare const WalletBalance: core.serialization.ObjectSchema<serializers.api.thera.bridge.WalletBalance.Raw, TheraApi.api.thera.bridge.WalletBalance>;
|
|
8
|
+
export declare namespace WalletBalance {
|
|
9
|
+
interface Raw {
|
|
10
|
+
balance: string;
|
|
11
|
+
currency: string;
|
|
12
|
+
chain: string;
|
|
13
|
+
contract_address: string;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.WalletBalance = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
|
31
|
+
exports.WalletBalance = core.serialization.object({
|
|
32
|
+
balance: core.serialization.string(),
|
|
33
|
+
currency: core.serialization.string(),
|
|
34
|
+
chain: core.serialization.string(),
|
|
35
|
+
contractAddress: core.serialization.property("contract_address", core.serialization.string()),
|
|
36
|
+
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as serializers from "../../../../../../../../../index";
|
|
5
5
|
import * as TheraApi from "../../../../../../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../../../../../../core";
|
|
7
|
+
import { WalletBalance } from "./WalletBalance";
|
|
7
8
|
export declare const WalletDetails: core.serialization.ObjectSchema<serializers.api.thera.bridge.WalletDetails.Raw, TheraApi.api.thera.bridge.WalletDetails>;
|
|
8
9
|
export declare namespace WalletDetails {
|
|
9
10
|
interface Raw {
|
|
@@ -12,5 +13,6 @@ export declare namespace WalletDetails {
|
|
|
12
13
|
chain: string;
|
|
13
14
|
updated_at: string;
|
|
14
15
|
created_at: string;
|
|
16
|
+
balances: WalletBalance.Raw[];
|
|
15
17
|
}
|
|
16
18
|
}
|
|
@@ -28,10 +28,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.WalletDetails = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../../../../../../core"));
|
|
31
|
+
const WalletBalance_1 = require("./WalletBalance");
|
|
31
32
|
exports.WalletDetails = core.serialization.object({
|
|
32
33
|
id: core.serialization.string(),
|
|
33
34
|
address: core.serialization.string(),
|
|
34
35
|
chain: core.serialization.string(),
|
|
35
36
|
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
|
36
37
|
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
38
|
+
balances: core.serialization.list(WalletBalance_1.WalletBalance),
|
|
37
39
|
});
|
|
@@ -8,7 +8,9 @@ export * from "./CryptoPayout";
|
|
|
8
8
|
export * from "./PayoutResponse";
|
|
9
9
|
export * from "./PayoutStatus";
|
|
10
10
|
export * from "./WalletDetails";
|
|
11
|
+
export * from "./WalletBalance";
|
|
11
12
|
export * from "./TransferFundsResponse";
|
|
13
|
+
export * from "./ExternalAccountObj";
|
|
12
14
|
export * from "./ExternalAccount";
|
|
13
15
|
export * from "./ExternalAccountDetails";
|
|
14
16
|
export * from "./UpdateExternalAccountResponse";
|
|
@@ -24,7 +24,9 @@ __exportStar(require("./CryptoPayout"), exports);
|
|
|
24
24
|
__exportStar(require("./PayoutResponse"), exports);
|
|
25
25
|
__exportStar(require("./PayoutStatus"), exports);
|
|
26
26
|
__exportStar(require("./WalletDetails"), exports);
|
|
27
|
+
__exportStar(require("./WalletBalance"), exports);
|
|
27
28
|
__exportStar(require("./TransferFundsResponse"), exports);
|
|
29
|
+
__exportStar(require("./ExternalAccountObj"), exports);
|
|
28
30
|
__exportStar(require("./ExternalAccount"), exports);
|
|
29
31
|
__exportStar(require("./ExternalAccountDetails"), exports);
|
|
30
32
|
__exportStar(require("./UpdateExternalAccountResponse"), exports);
|
|
@@ -5,6 +5,7 @@ import * as serializers from "../../../../../index";
|
|
|
5
5
|
import * as TheraApi from "../../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../../core";
|
|
7
7
|
import { WalletDetails } from "../../../../api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails";
|
|
8
|
+
import { ExternalAccount } from "../../../../api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount";
|
|
8
9
|
export declare const BridgeUserDetails: core.serialization.ObjectSchema<serializers.db.BridgeUserDetails.Raw, TheraApi.db.BridgeUserDetails>;
|
|
9
10
|
export declare namespace BridgeUserDetails {
|
|
10
11
|
interface Raw {
|
|
@@ -12,5 +13,6 @@ export declare namespace BridgeUserDetails {
|
|
|
12
13
|
onboardingStatus: string;
|
|
13
14
|
wallet?: WalletDetails.Raw | null;
|
|
14
15
|
ledgerAccount: string;
|
|
16
|
+
externalAccount: ExternalAccount.Raw[];
|
|
15
17
|
}
|
|
16
18
|
}
|
|
@@ -29,9 +29,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.BridgeUserDetails = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../../core"));
|
|
31
31
|
const WalletDetails_1 = require("../../../../api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletDetails");
|
|
32
|
+
const ExternalAccount_1 = require("../../../../api/resources/thera/resources/bridge/resources/bridgeApi/types/ExternalAccount");
|
|
32
33
|
exports.BridgeUserDetails = core.serialization.object({
|
|
33
34
|
customerId: core.serialization.string(),
|
|
34
35
|
onboardingStatus: core.serialization.string(),
|
|
35
36
|
wallet: WalletDetails_1.WalletDetails.optional(),
|
|
36
37
|
ledgerAccount: core.serialization.string(),
|
|
38
|
+
externalAccount: core.serialization.list(ExternalAccount_1.ExternalAccount),
|
|
37
39
|
});
|