@thera-hr/api-sdk 1.1.1-prerelease2387-dev-2 → 1.1.1-prerelease2392-dev-2
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/external/resources/externalApi/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.d.ts +33 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +182 -38
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerInvoicesRequest.d.ts +30 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerInvoicesRequest.js +5 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsRequest.d.ts +25 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsRequest.js +5 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerInvoicesResponse.d.ts +15 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerInvoicesResponse.js +5 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerWithdrawalsResponse.d.ts +15 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerWithdrawalsResponse.js +5 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.d.ts +23 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.js +5 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.d.ts +9 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.js +5 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.d.ts +19 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.js +5 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +5 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +5 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
- 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 +6 -6
- 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 +3 -3
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
- package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
- 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 +5 -5
- package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
- 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 +14 -14
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/api/resources/db/resources/company/types/Flags.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/external/resources/externalApi/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.d.ts +33 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +182 -38
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerInvoicesRequest.d.ts +30 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerInvoicesRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsRequest.d.ts +25 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/ExportWorkerWithdrawalsRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerInvoicesResponse.d.ts +15 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerInvoicesResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerWithdrawalsResponse.d.ts +15 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerWithdrawalsResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.d.ts +23 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.d.ts +9 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.d.ts +19 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
- 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 +6 -6
- 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 +3 -3
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
- 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 +5 -5
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
- 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 +14 -14
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/dist/api/resources/db/resources/company/types/Flags.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerInvoicesResponse.d.ts +19 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerInvoicesResponse.js +54 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerWithdrawalsResponse.d.ts +19 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerWithdrawalsResponse.js +54 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.d.ts +29 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.js +60 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.d.ts +15 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.js +46 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.d.ts +25 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.js +56 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +5 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +5 -0
- package/dist/serialization/resources/db/resources/company/types/Flags.d.ts +1 -0
- package/dist/serialization/resources/db/resources/company/types/Flags.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +167 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerInvoicesResponse.d.ts +19 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerInvoicesResponse.js +54 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerWithdrawalsResponse.d.ts +19 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportWorkerWithdrawalsResponse.js +54 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.d.ts +29 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoice.js +60 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.d.ts +15 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedInvoiceDeduction.js +46 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.d.ts +25 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ExportedWithdrawal.js +56 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +5 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +5 -0
- package/serialization/resources/db/resources/company/types/Flags.d.ts +1 -0
- package/serialization/resources/db/resources/company/types/Flags.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* startDate: "2023-01-15",
|
|
8
|
+
* endDate: "2023-01-15",
|
|
9
|
+
* format: "string"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface ExportWorkerWithdrawalsRequest {
|
|
13
|
+
/**
|
|
14
|
+
* Start date for filtering withdrawals (ISO 8601 date format: YYYY-MM-DD). Filters by withdrawal effective date.
|
|
15
|
+
*/
|
|
16
|
+
startDate?: string;
|
|
17
|
+
/**
|
|
18
|
+
* End date for filtering withdrawals (ISO 8601 date format: YYYY-MM-DD). Filters by withdrawal effective date.
|
|
19
|
+
*/
|
|
20
|
+
endDate?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Export format: 'csv' or 'json'. Defaults to 'json'.
|
|
23
|
+
*/
|
|
24
|
+
format?: string;
|
|
25
|
+
}
|
|
@@ -8,6 +8,8 @@ export { type GetWithdrawalMinimumByMethodRequest } from "./GetWithdrawalMinimum
|
|
|
8
8
|
export { type EditWithdrawalMethodRequest } from "./EditWithdrawalMethodRequest";
|
|
9
9
|
export { type GetWorkerWithdrawalQuote } from "./GetWorkerWithdrawalQuote";
|
|
10
10
|
export { type GetWorkerTransactionsRequest } from "./GetWorkerTransactionsRequest";
|
|
11
|
+
export { type ExportWorkerInvoicesRequest } from "./ExportWorkerInvoicesRequest";
|
|
12
|
+
export { type ExportWorkerWithdrawalsRequest } from "./ExportWorkerWithdrawalsRequest";
|
|
11
13
|
export { type GetPayInHistoryRequest } from "./GetPayInHistoryRequest";
|
|
12
14
|
export { type GetCurrencyConversionRequest } from "./GetCurrencyConversionRequest";
|
|
13
15
|
export { type SetAutoWithdrawalRequest } from "./SetAutoWithdrawalRequest";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TheraApi from "../../../../../../../../../index";
|
|
5
|
+
export type ExportWorkerInvoicesResponse = TheraApi.api.thera.bank.ExportWorkerInvoicesResponse.Csv | TheraApi.api.thera.bank.ExportWorkerInvoicesResponse.Json;
|
|
6
|
+
export declare namespace ExportWorkerInvoicesResponse {
|
|
7
|
+
interface Csv {
|
|
8
|
+
type: "csv";
|
|
9
|
+
value: string;
|
|
10
|
+
}
|
|
11
|
+
interface Json {
|
|
12
|
+
type: "json";
|
|
13
|
+
value: TheraApi.api.thera.bank.ExportedInvoice[];
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TheraApi from "../../../../../../../../../index";
|
|
5
|
+
export type ExportWorkerWithdrawalsResponse = TheraApi.api.thera.bank.ExportWorkerWithdrawalsResponse.Csv | TheraApi.api.thera.bank.ExportWorkerWithdrawalsResponse.Json;
|
|
6
|
+
export declare namespace ExportWorkerWithdrawalsResponse {
|
|
7
|
+
interface Csv {
|
|
8
|
+
type: "csv";
|
|
9
|
+
value: string;
|
|
10
|
+
}
|
|
11
|
+
interface Json {
|
|
12
|
+
type: "json";
|
|
13
|
+
value: TheraApi.api.thera.bank.ExportedWithdrawal[];
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TheraApi from "../../../../../../../../../index";
|
|
5
|
+
export interface ExportedInvoice {
|
|
6
|
+
invoiceId?: string;
|
|
7
|
+
displayId?: string;
|
|
8
|
+
contractId: string;
|
|
9
|
+
status?: string;
|
|
10
|
+
type?: string;
|
|
11
|
+
amount?: number;
|
|
12
|
+
currency?: string;
|
|
13
|
+
actualPaymentAmount?: number;
|
|
14
|
+
actualPaymentCurrency?: string;
|
|
15
|
+
creationDate?: string;
|
|
16
|
+
paymentDate?: string;
|
|
17
|
+
startDate?: string;
|
|
18
|
+
endDate?: string;
|
|
19
|
+
hoursOrWorkUnits?: number;
|
|
20
|
+
rate?: number;
|
|
21
|
+
deductions?: TheraApi.api.thera.bank.ExportedInvoiceDeduction[];
|
|
22
|
+
description?: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface ExportedWithdrawal {
|
|
5
|
+
ledgerTransactionId: string;
|
|
6
|
+
withdrawalMethodTitle?: string;
|
|
7
|
+
withdrawalMethodId?: string;
|
|
8
|
+
amount: number;
|
|
9
|
+
currency: string;
|
|
10
|
+
convertedAmount?: number;
|
|
11
|
+
convertedCurrency?: string;
|
|
12
|
+
timestamp: string;
|
|
13
|
+
status?: string;
|
|
14
|
+
feeCurrency?: string;
|
|
15
|
+
flatFee?: number;
|
|
16
|
+
variableFee?: number;
|
|
17
|
+
exchangeRate?: number;
|
|
18
|
+
exchangeFrom: number;
|
|
19
|
+
}
|
package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts
CHANGED
|
@@ -73,3 +73,8 @@ export * from "./SetAutoWithdrawalResponse";
|
|
|
73
73
|
export * from "./WorkerTransactionStatus";
|
|
74
74
|
export * from "./SetBulkAutoApproveInvoiceForTeamsRequest";
|
|
75
75
|
export * from "./GetPayInCountResponse";
|
|
76
|
+
export * from "./ExportWorkerInvoicesResponse";
|
|
77
|
+
export * from "./ExportedInvoice";
|
|
78
|
+
export * from "./ExportedInvoiceDeduction";
|
|
79
|
+
export * from "./ExportWorkerWithdrawalsResponse";
|
|
80
|
+
export * from "./ExportedWithdrawal";
|
package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js
CHANGED
|
@@ -89,3 +89,8 @@ __exportStar(require("./SetAutoWithdrawalResponse"), exports);
|
|
|
89
89
|
__exportStar(require("./WorkerTransactionStatus"), exports);
|
|
90
90
|
__exportStar(require("./SetBulkAutoApproveInvoiceForTeamsRequest"), exports);
|
|
91
91
|
__exportStar(require("./GetPayInCountResponse"), exports);
|
|
92
|
+
__exportStar(require("./ExportWorkerInvoicesResponse"), exports);
|
|
93
|
+
__exportStar(require("./ExportedInvoice"), exports);
|
|
94
|
+
__exportStar(require("./ExportedInvoiceDeduction"), exports);
|
|
95
|
+
__exportStar(require("./ExportWorkerWithdrawalsResponse"), exports);
|
|
96
|
+
__exportStar(require("./ExportedWithdrawal"), exports);
|
package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js
CHANGED
|
@@ -71,7 +71,7 @@ class BridgeApi {
|
|
|
71
71
|
const _response = yield core.fetcher({
|
|
72
72
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/bridge/customers/tos_links"),
|
|
73
73
|
method: "POST",
|
|
74
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
74
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
75
75
|
contentType: "application/json",
|
|
76
76
|
requestType: "json",
|
|
77
77
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -171,7 +171,7 @@ class BridgeApi {
|
|
|
171
171
|
const _response = yield core.fetcher({
|
|
172
172
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/bridge/customers"),
|
|
173
173
|
method: "POST",
|
|
174
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
174
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
175
175
|
contentType: "application/json",
|
|
176
176
|
requestType: "json",
|
|
177
177
|
body: serializers.api.thera.bridge.CreateCustomer.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -224,7 +224,7 @@ class BridgeApi {
|
|
|
224
224
|
const _response = yield core.fetcher({
|
|
225
225
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/customers/${encodeURIComponent(userId)}/kyc-link`),
|
|
226
226
|
method: "GET",
|
|
227
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
227
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
228
228
|
contentType: "application/json",
|
|
229
229
|
requestType: "json",
|
|
230
230
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -282,7 +282,7 @@ class BridgeApi {
|
|
|
282
282
|
const _response = yield core.fetcher({
|
|
283
283
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/external-accounts/${encodeURIComponent(customerId)}/accounts`),
|
|
284
284
|
method: "POST",
|
|
285
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
285
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
286
286
|
contentType: "application/json",
|
|
287
287
|
requestType: "json",
|
|
288
288
|
body: serializers.api.thera.bridge.ExternalAccount.jsonOrThrow(request, {
|
|
@@ -337,7 +337,7 @@ class BridgeApi {
|
|
|
337
337
|
const _response = yield core.fetcher({
|
|
338
338
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/customers/${encodeURIComponent(customerId)}`),
|
|
339
339
|
method: "GET",
|
|
340
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
340
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
341
341
|
contentType: "application/json",
|
|
342
342
|
requestType: "json",
|
|
343
343
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -388,7 +388,7 @@ class BridgeApi {
|
|
|
388
388
|
const _response = yield core.fetcher({
|
|
389
389
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/bridge/customers"),
|
|
390
390
|
method: "GET",
|
|
391
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
391
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
392
392
|
contentType: "application/json",
|
|
393
393
|
requestType: "json",
|
|
394
394
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -446,7 +446,7 @@ class BridgeApi {
|
|
|
446
446
|
const _response = yield core.fetcher({
|
|
447
447
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/bridge/payments/crypto"),
|
|
448
448
|
method: "POST",
|
|
449
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
449
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
450
450
|
contentType: "application/json",
|
|
451
451
|
requestType: "json",
|
|
452
452
|
body: serializers.api.thera.bridge.CryptoPayout.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -499,7 +499,7 @@ class BridgeApi {
|
|
|
499
499
|
const _response = yield core.fetcher({
|
|
500
500
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/payments/crypto/${encodeURIComponent(transactionId)}`),
|
|
501
501
|
method: "GET",
|
|
502
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
502
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
503
503
|
contentType: "application/json",
|
|
504
504
|
requestType: "json",
|
|
505
505
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -554,7 +554,7 @@ class BridgeApi {
|
|
|
554
554
|
const _response = yield core.fetcher({
|
|
555
555
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/bridge/wallets"),
|
|
556
556
|
method: "POST",
|
|
557
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
557
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
558
558
|
contentType: "application/json",
|
|
559
559
|
requestType: "json",
|
|
560
560
|
body: serializers.api.thera.bridge.CreateWalletRequest.jsonOrThrow(request, {
|
|
@@ -609,7 +609,7 @@ class BridgeApi {
|
|
|
609
609
|
const _response = yield core.fetcher({
|
|
610
610
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/wallets/${encodeURIComponent(walletId)}`),
|
|
611
611
|
method: "GET",
|
|
612
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
612
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
613
613
|
contentType: "application/json",
|
|
614
614
|
requestType: "json",
|
|
615
615
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -661,7 +661,7 @@ class BridgeApi {
|
|
|
661
661
|
const _response = yield core.fetcher({
|
|
662
662
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/customers/${encodeURIComponent(customerId)}/wallets`),
|
|
663
663
|
method: "GET",
|
|
664
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
664
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
665
665
|
contentType: "application/json",
|
|
666
666
|
requestType: "json",
|
|
667
667
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -713,7 +713,7 @@ class BridgeApi {
|
|
|
713
713
|
const _response = yield core.fetcher({
|
|
714
714
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/wallets/${encodeURIComponent(walletId)}/history`),
|
|
715
715
|
method: "GET",
|
|
716
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
716
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
717
717
|
contentType: "application/json",
|
|
718
718
|
requestType: "json",
|
|
719
719
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -772,7 +772,7 @@ class BridgeApi {
|
|
|
772
772
|
const _response = yield core.fetcher({
|
|
773
773
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/bridge/wallets/transfer"),
|
|
774
774
|
method: "POST",
|
|
775
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
775
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
776
776
|
contentType: "application/json",
|
|
777
777
|
requestType: "json",
|
|
778
778
|
body: serializers.api.thera.bridge.TransferFundsRequest.jsonOrThrow(request, {
|
|
@@ -827,7 +827,7 @@ class BridgeApi {
|
|
|
827
827
|
const _response = yield core.fetcher({
|
|
828
828
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/external-accounts/${encodeURIComponent(accountId)}`),
|
|
829
829
|
method: "GET",
|
|
830
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
830
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
831
831
|
contentType: "application/json",
|
|
832
832
|
requestType: "json",
|
|
833
833
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -879,7 +879,7 @@ class BridgeApi {
|
|
|
879
879
|
const _response = yield core.fetcher({
|
|
880
880
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/${encodeURIComponent(customerId)}/external-accounts`),
|
|
881
881
|
method: "GET",
|
|
882
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
882
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
883
883
|
contentType: "application/json",
|
|
884
884
|
requestType: "json",
|
|
885
885
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -935,7 +935,7 @@ class BridgeApi {
|
|
|
935
935
|
const _response = yield core.fetcher({
|
|
936
936
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/external-accounts/${encodeURIComponent(accountId)}`),
|
|
937
937
|
method: "PUT",
|
|
938
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
938
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
939
939
|
contentType: "application/json",
|
|
940
940
|
requestType: "json",
|
|
941
941
|
body: serializers.api.thera.bridge.UpdateExternalAccountRequest.jsonOrThrow(request, {
|
|
@@ -990,7 +990,7 @@ class BridgeApi {
|
|
|
990
990
|
const _response = yield core.fetcher({
|
|
991
991
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/external-accounts/${encodeURIComponent(accountId)}`),
|
|
992
992
|
method: "DELETE",
|
|
993
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
993
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
994
994
|
contentType: "application/json",
|
|
995
995
|
requestType: "json",
|
|
996
996
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1036,7 +1036,7 @@ class BridgeApi {
|
|
|
1036
1036
|
const _response = yield core.fetcher({
|
|
1037
1037
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/external-accounts/${encodeURIComponent(accountId)}/reactivate`),
|
|
1038
1038
|
method: "POST",
|
|
1039
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1039
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1040
1040
|
contentType: "application/json",
|
|
1041
1041
|
requestType: "json",
|
|
1042
1042
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1107,7 +1107,7 @@ class BridgeApi {
|
|
|
1107
1107
|
const _response = yield core.fetcher({
|
|
1108
1108
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/bridge/transfers"),
|
|
1109
1109
|
method: "POST",
|
|
1110
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1110
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1111
1111
|
contentType: "application/json",
|
|
1112
1112
|
requestType: "json",
|
|
1113
1113
|
body: serializers.api.thera.bridge.Transfer.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1160,7 +1160,7 @@ class BridgeApi {
|
|
|
1160
1160
|
const _response = yield core.fetcher({
|
|
1161
1161
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/transfers/${encodeURIComponent(transactionId)}`),
|
|
1162
1162
|
method: "GET",
|
|
1163
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1163
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1164
1164
|
contentType: "application/json",
|
|
1165
1165
|
requestType: "json",
|
|
1166
1166
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1212,7 +1212,7 @@ class BridgeApi {
|
|
|
1212
1212
|
const _response = yield core.fetcher({
|
|
1213
1213
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/${encodeURIComponent(customerId)}/transfers`),
|
|
1214
1214
|
method: "GET",
|
|
1215
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1215
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1216
1216
|
contentType: "application/json",
|
|
1217
1217
|
requestType: "json",
|
|
1218
1218
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1264,7 +1264,7 @@ class BridgeApi {
|
|
|
1264
1264
|
const _response = yield core.fetcher({
|
|
1265
1265
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/users/${encodeURIComponent(userId)}/virtual-accounts`),
|
|
1266
1266
|
method: "POST",
|
|
1267
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1267
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1268
1268
|
contentType: "application/json",
|
|
1269
1269
|
requestType: "json",
|
|
1270
1270
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1316,7 +1316,7 @@ class BridgeApi {
|
|
|
1316
1316
|
const _response = yield core.fetcher({
|
|
1317
1317
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/users/${encodeURIComponent(userId)}/virtual-accounts`),
|
|
1318
1318
|
method: "GET",
|
|
1319
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1319
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1320
1320
|
contentType: "application/json",
|
|
1321
1321
|
requestType: "json",
|
|
1322
1322
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1368,7 +1368,7 @@ class BridgeApi {
|
|
|
1368
1368
|
const _response = yield core.fetcher({
|
|
1369
1369
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/users/${encodeURIComponent(userId)}/virtual-accounts-history`),
|
|
1370
1370
|
method: "GET",
|
|
1371
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1371
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1372
1372
|
contentType: "application/json",
|
|
1373
1373
|
requestType: "json",
|
|
1374
1374
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1420,7 +1420,7 @@ class BridgeApi {
|
|
|
1420
1420
|
const _response = yield core.fetcher({
|
|
1421
1421
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/users/${encodeURIComponent(userId)}/card-accounts`),
|
|
1422
1422
|
method: "POST",
|
|
1423
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1423
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1424
1424
|
contentType: "application/json",
|
|
1425
1425
|
requestType: "json",
|
|
1426
1426
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1471,7 +1471,7 @@ class BridgeApi {
|
|
|
1471
1471
|
const _response = yield core.fetcher({
|
|
1472
1472
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/customers/${encodeURIComponent(customerId)}/card-account/${encodeURIComponent(cardAccountId)}`),
|
|
1473
1473
|
method: "GET",
|
|
1474
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1474
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1475
1475
|
contentType: "application/json",
|
|
1476
1476
|
requestType: "json",
|
|
1477
1477
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1522,7 +1522,7 @@ class BridgeApi {
|
|
|
1522
1522
|
const _response = yield core.fetcher({
|
|
1523
1523
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/customers/${encodeURIComponent(customerId)}/card-accounts/${encodeURIComponent(cardAccountId)}/transactions`),
|
|
1524
1524
|
method: "GET",
|
|
1525
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1525
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1526
1526
|
contentType: "application/json",
|
|
1527
1527
|
requestType: "json",
|
|
1528
1528
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1573,7 +1573,7 @@ class BridgeApi {
|
|
|
1573
1573
|
const _response = yield core.fetcher({
|
|
1574
1574
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/customers/${encodeURIComponent(customerId)}/card-accounts/${encodeURIComponent(cardAccountId)}/generate-pin`),
|
|
1575
1575
|
method: "GET",
|
|
1576
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1576
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1577
1577
|
contentType: "application/json",
|
|
1578
1578
|
requestType: "json",
|
|
1579
1579
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1627,7 +1627,7 @@ class BridgeApi {
|
|
|
1627
1627
|
const _response = yield core.fetcher({
|
|
1628
1628
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/customers/${encodeURIComponent(customerId)}/card-accounts/${encodeURIComponent(cardAccountId)}/ephemeralKey`),
|
|
1629
1629
|
method: "POST",
|
|
1630
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1630
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2392-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2392-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1631
1631
|
contentType: "application/json",
|
|
1632
1632
|
requestType: "json",
|
|
1633
1633
|
body: serializers.api.thera.bridge.EphemeralKeyRequest.jsonOrThrow(request, {
|