@thera-hr/api-sdk 0.0.3283728 → 1.1.1-THERA-2281-deployment-improvement.4
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/Client.d.ts +3 -0
- package/api/resources/api/client/Client.d.ts +3 -0
- package/api/resources/api/resources/aiprise/client/Client.d.ts +3 -0
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.d.ts +4 -1
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +3 -3
- package/api/resources/api/resources/services/client/Client.d.ts +3 -0
- package/api/resources/api/resources/services/resources/file/client/Client.d.ts +7 -4
- package/api/resources/api/resources/services/resources/file/client/Client.js +12 -12
- package/api/resources/api/resources/thera/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/bank/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +24 -21
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +67 -64
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWithdrawalMethodCurrenciesRequest.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/company/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +16 -13
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +41 -47
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/ContractorAndContracts.d.ts +10 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateCompanyRequest.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +1 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +4 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/contractor/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.d.ts +4 -1
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/disbursement/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.d.ts +6 -3
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +9 -9
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.d.ts +4 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/email/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.d.ts +4 -1
- package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/employment/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.d.ts +6 -3
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +9 -9
- package/api/resources/api/resources/thera/resources/misc/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts +4 -1
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +4 -1
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/user/client/Client.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.d.ts +4 -1
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/api/resources/db/resources/user/types/AiPriseVerificationResult.d.ts +2 -1
- package/api/resources/db/resources/user/types/BankTransfer.d.ts +1 -0
- package/api/resources/db/resources/user/types/PoweredBy.d.ts +8 -0
- package/api/resources/db/resources/user/types/PoweredBy.js +10 -0
- package/api/resources/db/resources/user/types/index.d.ts +1 -0
- package/api/resources/db/resources/user/types/index.js +1 -0
- package/core/fetcher/Fetcher.d.ts +2 -2
- package/core/index.d.ts +1 -1
- package/core/index.js +4 -4
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +5 -5
- package/dist/Client.d.ts +3 -0
- package/dist/api/resources/api/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/aiprise/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.d.ts +4 -1
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/services/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/services/resources/file/client/Client.d.ts +7 -4
- package/dist/api/resources/api/resources/services/resources/file/client/Client.js +12 -12
- package/dist/api/resources/api/resources/thera/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/bank/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +24 -21
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +67 -64
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWithdrawalMethodCurrenciesRequest.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/company/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +16 -13
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +41 -47
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/ContractorAndContracts.d.ts +10 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateCompanyRequest.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +1 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +4 -1
- 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/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.d.ts +4 -1
- 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/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.d.ts +6 -3
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +9 -9
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.d.ts +4 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/email/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.d.ts +4 -1
- package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/employment/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.d.ts +6 -3
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +9 -9
- package/dist/api/resources/api/resources/thera/resources/misc/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts +4 -1
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +4 -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/user/client/Client.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.d.ts +4 -1
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/dist/api/resources/db/resources/user/types/AiPriseVerificationResult.d.ts +2 -1
- package/dist/api/resources/db/resources/user/types/BankTransfer.d.ts +1 -0
- package/dist/api/resources/db/resources/user/types/PoweredBy.d.ts +8 -0
- package/dist/api/resources/db/resources/user/types/PoweredBy.js +10 -0
- package/dist/api/resources/db/resources/user/types/index.d.ts +1 -0
- package/dist/api/resources/db/resources/user/types/index.js +1 -0
- package/dist/core/fetcher/Fetcher.d.ts +2 -2
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +4 -4
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +5 -5
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.js +3 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/ContractorAndContracts.d.ts +14 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/ContractorAndContracts.js +44 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +1 -0
- package/dist/serialization/resources/db/resources/user/types/AiPriseVerificationResult.d.ts +1 -1
- package/dist/serialization/resources/db/resources/user/types/AiPriseVerificationResult.js +1 -1
- package/dist/serialization/resources/db/resources/user/types/BankTransfer.d.ts +1 -0
- package/dist/serialization/resources/db/resources/user/types/BankTransfer.js +1 -0
- package/dist/serialization/resources/db/resources/user/types/PoweredBy.d.ts +10 -0
- package/dist/serialization/resources/db/resources/user/types/PoweredBy.js +31 -0
- package/dist/serialization/resources/db/resources/user/types/index.d.ts +1 -0
- package/dist/serialization/resources/db/resources/user/types/index.js +1 -0
- package/package.json +2 -2
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.js +3 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/ContractorAndContracts.d.ts +14 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/ContractorAndContracts.js +44 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +1 -0
- package/serialization/resources/db/resources/user/types/AiPriseVerificationResult.d.ts +1 -1
- package/serialization/resources/db/resources/user/types/AiPriseVerificationResult.js +1 -1
- package/serialization/resources/db/resources/user/types/BankTransfer.d.ts +1 -0
- package/serialization/resources/db/resources/user/types/BankTransfer.js +1 -0
- package/serialization/resources/db/resources/user/types/PoweredBy.d.ts +10 -0
- package/serialization/resources/db/resources/user/types/PoweredBy.js +31 -0
- package/serialization/resources/db/resources/user/types/index.d.ts +1 -0
- package/serialization/resources/db/resources/user/types/index.js +1 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteContractorReq.d.ts +0 -8
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteContractorReq.d.ts +0 -8
- /package/api/resources/api/resources/thera/resources/company/resources/companyApi/{client/requests/InviteContractorReq.js → types/ContractorAndContracts.js} +0 -0
- /package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/{client/requests/InviteContractorReq.js → types/ContractorAndContracts.js} +0 -0
package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.d.ts
CHANGED
@@ -8,10 +8,13 @@ export declare namespace EmailApi {
|
|
8
8
|
environment: core.Supplier<string>;
|
9
9
|
token?: core.Supplier<core.BearerToken | undefined>;
|
10
10
|
}
|
11
|
+
interface RequestOptions {
|
12
|
+
timeoutInSeconds?: number;
|
13
|
+
}
|
11
14
|
}
|
12
15
|
export declare class EmailApi {
|
13
16
|
protected readonly _options: EmailApi.Options;
|
14
17
|
constructor(_options: EmailApi.Options);
|
15
|
-
sendLoginEmail(request: TheraApi.api.thera.email.SendLoginEmailRequest): Promise<void>;
|
18
|
+
sendLoginEmail(request: TheraApi.api.thera.email.SendLoginEmailRequest, requestOptions?: EmailApi.RequestOptions): Promise<void>;
|
16
19
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
17
20
|
}
|
package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js
CHANGED
@@ -47,7 +47,7 @@ class EmailApi {
|
|
47
47
|
constructor(_options) {
|
48
48
|
this._options = _options;
|
49
49
|
}
|
50
|
-
sendLoginEmail(request) {
|
50
|
+
sendLoginEmail(request, requestOptions) {
|
51
51
|
return __awaiter(this, void 0, void 0, function* () {
|
52
52
|
const _response = yield core.fetcher({
|
53
53
|
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "email/login"),
|
@@ -56,13 +56,13 @@ class EmailApi {
|
|
56
56
|
Authorization: yield this._getAuthorizationHeader(),
|
57
57
|
"X-Fern-Language": "JavaScript",
|
58
58
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
59
|
-
"X-Fern-SDK-Version": "
|
59
|
+
"X-Fern-SDK-Version": "1.1.1-THERA-2281-deployment-improvement.4",
|
60
60
|
},
|
61
61
|
contentType: "application/json",
|
62
62
|
body: yield serializers.api.thera.email.SendLoginEmailRequest.jsonOrThrow(request, {
|
63
63
|
unrecognizedObjectKeys: "strip",
|
64
64
|
}),
|
65
|
-
timeoutMs: 60000,
|
65
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
66
66
|
});
|
67
67
|
if (_response.ok) {
|
68
68
|
return;
|
@@ -8,6 +8,9 @@ export declare namespace Employment {
|
|
8
8
|
environment: core.Supplier<string>;
|
9
9
|
token?: core.Supplier<core.BearerToken | undefined>;
|
10
10
|
}
|
11
|
+
interface RequestOptions {
|
12
|
+
timeoutInSeconds?: number;
|
13
|
+
}
|
11
14
|
}
|
12
15
|
export declare class Employment {
|
13
16
|
protected readonly _options: Employment.Options;
|
@@ -8,6 +8,9 @@ export declare namespace EmploymentApi {
|
|
8
8
|
environment: core.Supplier<string>;
|
9
9
|
token?: core.Supplier<core.BearerToken | undefined>;
|
10
10
|
}
|
11
|
+
interface RequestOptions {
|
12
|
+
timeoutInSeconds?: number;
|
13
|
+
}
|
11
14
|
}
|
12
15
|
export declare class EmploymentApi {
|
13
16
|
protected readonly _options: EmploymentApi.Options;
|
@@ -15,14 +18,14 @@ export declare class EmploymentApi {
|
|
15
18
|
/**
|
16
19
|
* Get estimate for this contract (cycle date, list of cycles, etc) based on provided paycycle
|
17
20
|
*/
|
18
|
-
estimateContract(request: TheraApi.api.thera.employment.CreateContractEstimateRequest): Promise<TheraApi.api.thera.employment.CreateContractEstimateResponse>;
|
21
|
+
estimateContract(request: TheraApi.api.thera.employment.CreateContractEstimateRequest, requestOptions?: EmploymentApi.RequestOptions): Promise<TheraApi.api.thera.employment.CreateContractEstimateResponse>;
|
19
22
|
/**
|
20
23
|
* DEPRECATED. Get Current Cycle for this contract
|
21
24
|
*/
|
22
|
-
getCurrentPayCycle(contractId: string): Promise<TheraApi.api.thera.employment.GetPayCycleResponse>;
|
25
|
+
getCurrentPayCycle(contractId: string, requestOptions?: EmploymentApi.RequestOptions): Promise<TheraApi.api.thera.employment.GetPayCycleResponse>;
|
23
26
|
/**
|
24
27
|
* Get Cycle for this contract given a date
|
25
28
|
*/
|
26
|
-
getPayCycle(contractId: string, baseDate: string): Promise<TheraApi.api.thera.employment.GetPayCycleResponse>;
|
29
|
+
getPayCycle(contractId: string, baseDate: string, requestOptions?: EmploymentApi.RequestOptions): Promise<TheraApi.api.thera.employment.GetPayCycleResponse>;
|
27
30
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
28
31
|
}
|
@@ -50,7 +50,7 @@ class EmploymentApi {
|
|
50
50
|
/**
|
51
51
|
* Get estimate for this contract (cycle date, list of cycles, etc) based on provided paycycle
|
52
52
|
*/
|
53
|
-
estimateContract(request) {
|
53
|
+
estimateContract(request, requestOptions) {
|
54
54
|
return __awaiter(this, void 0, void 0, function* () {
|
55
55
|
const _response = yield core.fetcher({
|
56
56
|
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "contracts/estimate"),
|
@@ -59,13 +59,13 @@ class EmploymentApi {
|
|
59
59
|
Authorization: yield this._getAuthorizationHeader(),
|
60
60
|
"X-Fern-Language": "JavaScript",
|
61
61
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
62
|
-
"X-Fern-SDK-Version": "
|
62
|
+
"X-Fern-SDK-Version": "1.1.1-THERA-2281-deployment-improvement.4",
|
63
63
|
},
|
64
64
|
contentType: "application/json",
|
65
65
|
body: yield serializers.api.thera.employment.CreateContractEstimateRequest.jsonOrThrow(request, {
|
66
66
|
unrecognizedObjectKeys: "strip",
|
67
67
|
}),
|
68
|
-
timeoutMs: 60000,
|
68
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
69
69
|
});
|
70
70
|
if (_response.ok) {
|
71
71
|
return yield serializers.api.thera.employment.CreateContractEstimateResponse.parseOrThrow(_response.body, {
|
@@ -100,7 +100,7 @@ class EmploymentApi {
|
|
100
100
|
/**
|
101
101
|
* DEPRECATED. Get Current Cycle for this contract
|
102
102
|
*/
|
103
|
-
getCurrentPayCycle(contractId) {
|
103
|
+
getCurrentPayCycle(contractId, requestOptions) {
|
104
104
|
return __awaiter(this, void 0, void 0, function* () {
|
105
105
|
const _response = yield core.fetcher({
|
106
106
|
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `contracts/${contractId}/payCycle`),
|
@@ -109,10 +109,10 @@ class EmploymentApi {
|
|
109
109
|
Authorization: yield this._getAuthorizationHeader(),
|
110
110
|
"X-Fern-Language": "JavaScript",
|
111
111
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
112
|
-
"X-Fern-SDK-Version": "
|
112
|
+
"X-Fern-SDK-Version": "1.1.1-THERA-2281-deployment-improvement.4",
|
113
113
|
},
|
114
114
|
contentType: "application/json",
|
115
|
-
timeoutMs: 60000,
|
115
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
116
116
|
});
|
117
117
|
if (_response.ok) {
|
118
118
|
return yield serializers.api.thera.employment.GetPayCycleResponse.parseOrThrow(_response.body, {
|
@@ -147,7 +147,7 @@ class EmploymentApi {
|
|
147
147
|
/**
|
148
148
|
* Get Cycle for this contract given a date
|
149
149
|
*/
|
150
|
-
getPayCycle(contractId, baseDate) {
|
150
|
+
getPayCycle(contractId, baseDate, requestOptions) {
|
151
151
|
return __awaiter(this, void 0, void 0, function* () {
|
152
152
|
const _response = yield core.fetcher({
|
153
153
|
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `contracts/${contractId}/payCycle/${baseDate}`),
|
@@ -156,10 +156,10 @@ class EmploymentApi {
|
|
156
156
|
Authorization: yield this._getAuthorizationHeader(),
|
157
157
|
"X-Fern-Language": "JavaScript",
|
158
158
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
159
|
-
"X-Fern-SDK-Version": "
|
159
|
+
"X-Fern-SDK-Version": "1.1.1-THERA-2281-deployment-improvement.4",
|
160
160
|
},
|
161
161
|
contentType: "application/json",
|
162
|
-
timeoutMs: 60000,
|
162
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
163
163
|
});
|
164
164
|
if (_response.ok) {
|
165
165
|
return yield serializers.api.thera.employment.GetPayCycleResponse.parseOrThrow(_response.body, {
|
@@ -8,6 +8,9 @@ export declare namespace Misc {
|
|
8
8
|
environment: core.Supplier<string>;
|
9
9
|
token?: core.Supplier<core.BearerToken | undefined>;
|
10
10
|
}
|
11
|
+
interface RequestOptions {
|
12
|
+
timeoutInSeconds?: number;
|
13
|
+
}
|
11
14
|
}
|
12
15
|
export declare class Misc {
|
13
16
|
protected readonly _options: Misc.Options;
|
package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts
CHANGED
@@ -8,6 +8,9 @@ export declare namespace Misc {
|
|
8
8
|
environment: core.Supplier<string>;
|
9
9
|
token?: core.Supplier<core.BearerToken | undefined>;
|
10
10
|
}
|
11
|
+
interface RequestOptions {
|
12
|
+
timeoutInSeconds?: number;
|
13
|
+
}
|
11
14
|
}
|
12
15
|
export declare class Misc {
|
13
16
|
protected readonly _options: Misc.Options;
|
@@ -16,6 +19,6 @@ export declare class Misc {
|
|
16
19
|
* Calling this API will trigger automatic payouts for all workers that have auto-withdrawals turned on. This cron may be re-used for other daily tasks in the future
|
17
20
|
*
|
18
21
|
*/
|
19
|
-
regularCron(request: TheraApi.api.thera.misc.DailyCronRequest): Promise<TheraApi.api.thera.misc.DailyCronResponse>;
|
22
|
+
regularCron(request: TheraApi.api.thera.misc.DailyCronRequest, requestOptions?: Misc.RequestOptions): Promise<TheraApi.api.thera.misc.DailyCronResponse>;
|
20
23
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
21
24
|
}
|
package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js
CHANGED
@@ -51,7 +51,7 @@ class Misc {
|
|
51
51
|
* Calling this API will trigger automatic payouts for all workers that have auto-withdrawals turned on. This cron may be re-used for other daily tasks in the future
|
52
52
|
*
|
53
53
|
*/
|
54
|
-
regularCron(request) {
|
54
|
+
regularCron(request, requestOptions) {
|
55
55
|
return __awaiter(this, void 0, void 0, function* () {
|
56
56
|
const { theraWebhookSignatureHeader } = request;
|
57
57
|
const _response = yield core.fetcher({
|
@@ -61,11 +61,11 @@ class Misc {
|
|
61
61
|
Authorization: yield this._getAuthorizationHeader(),
|
62
62
|
"X-Fern-Language": "JavaScript",
|
63
63
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
64
|
-
"X-Fern-SDK-Version": "
|
64
|
+
"X-Fern-SDK-Version": "1.1.1-THERA-2281-deployment-improvement.4",
|
65
65
|
"Thera-Webhook-Signature-Header": theraWebhookSignatureHeader,
|
66
66
|
},
|
67
67
|
contentType: "application/json",
|
68
|
-
timeoutMs: 60000,
|
68
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
69
69
|
});
|
70
70
|
if (_response.ok) {
|
71
71
|
return yield serializers.api.thera.misc.DailyCronResponse.parseOrThrow(_response.body, {
|
@@ -8,6 +8,9 @@ export declare namespace Payroll {
|
|
8
8
|
environment: core.Supplier<string>;
|
9
9
|
token?: core.Supplier<core.BearerToken | undefined>;
|
10
10
|
}
|
11
|
+
interface RequestOptions {
|
12
|
+
timeoutInSeconds?: number;
|
13
|
+
}
|
11
14
|
}
|
12
15
|
export declare class Payroll {
|
13
16
|
protected readonly _options: Payroll.Options;
|
@@ -8,6 +8,9 @@ export declare namespace OncycleApi {
|
|
8
8
|
environment: core.Supplier<string>;
|
9
9
|
token?: core.Supplier<core.BearerToken | undefined>;
|
10
10
|
}
|
11
|
+
interface RequestOptions {
|
12
|
+
timeoutInSeconds?: number;
|
13
|
+
}
|
11
14
|
}
|
12
15
|
export declare class OncycleApi {
|
13
16
|
protected readonly _options: OncycleApi.Options;
|
@@ -15,6 +18,6 @@ export declare class OncycleApi {
|
|
15
18
|
/**
|
16
19
|
*
|
17
20
|
*/
|
18
|
-
approveOncycleChecks(companyId: string): Promise<TheraApi.api.thera.payroll.ApproveOnCycleChecksResponse>;
|
21
|
+
approveOncycleChecks(companyId: string, requestOptions?: OncycleApi.RequestOptions): Promise<TheraApi.api.thera.payroll.ApproveOnCycleChecksResponse>;
|
19
22
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
20
23
|
}
|
@@ -50,7 +50,7 @@ class OncycleApi {
|
|
50
50
|
/**
|
51
51
|
*
|
52
52
|
*/
|
53
|
-
approveOncycleChecks(companyId) {
|
53
|
+
approveOncycleChecks(companyId, requestOptions) {
|
54
54
|
return __awaiter(this, void 0, void 0, function* () {
|
55
55
|
const _response = yield core.fetcher({
|
56
56
|
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${companyId}/w2-payroll/on-cycle-checks/approve`),
|
@@ -59,10 +59,10 @@ class OncycleApi {
|
|
59
59
|
Authorization: yield this._getAuthorizationHeader(),
|
60
60
|
"X-Fern-Language": "JavaScript",
|
61
61
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
62
|
-
"X-Fern-SDK-Version": "
|
62
|
+
"X-Fern-SDK-Version": "1.1.1-THERA-2281-deployment-improvement.4",
|
63
63
|
},
|
64
64
|
contentType: "application/json",
|
65
|
-
timeoutMs: 60000,
|
65
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
66
66
|
});
|
67
67
|
if (_response.ok) {
|
68
68
|
return yield serializers.api.thera.payroll.ApproveOnCycleChecksResponse.parseOrThrow(_response.body, {
|
@@ -8,6 +8,9 @@ export declare namespace User {
|
|
8
8
|
environment: core.Supplier<string>;
|
9
9
|
token?: core.Supplier<core.BearerToken | undefined>;
|
10
10
|
}
|
11
|
+
interface RequestOptions {
|
12
|
+
timeoutInSeconds?: number;
|
13
|
+
}
|
11
14
|
}
|
12
15
|
export declare class User {
|
13
16
|
protected readonly _options: User.Options;
|
package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.d.ts
CHANGED
@@ -8,6 +8,9 @@ export declare namespace UserApi {
|
|
8
8
|
environment: core.Supplier<string>;
|
9
9
|
token?: core.Supplier<core.BearerToken | undefined>;
|
10
10
|
}
|
11
|
+
interface RequestOptions {
|
12
|
+
timeoutInSeconds?: number;
|
13
|
+
}
|
11
14
|
}
|
12
15
|
export declare class UserApi {
|
13
16
|
protected readonly _options: UserApi.Options;
|
@@ -15,6 +18,6 @@ export declare class UserApi {
|
|
15
18
|
/**
|
16
19
|
* Get User API
|
17
20
|
*/
|
18
|
-
getUser(request: TheraApi.api.thera.user.GetUserRequest): Promise<TheraApi.db.User>;
|
21
|
+
getUser(request: TheraApi.api.thera.user.GetUserRequest, requestOptions?: UserApi.RequestOptions): Promise<TheraApi.db.User>;
|
19
22
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
20
23
|
}
|
package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js
CHANGED
@@ -51,7 +51,7 @@ class UserApi {
|
|
51
51
|
/**
|
52
52
|
* Get User API
|
53
53
|
*/
|
54
|
-
getUser(request) {
|
54
|
+
getUser(request, requestOptions) {
|
55
55
|
return __awaiter(this, void 0, void 0, function* () {
|
56
56
|
const { userId } = request;
|
57
57
|
const _queryParams = new url_search_params_1.default();
|
@@ -63,11 +63,11 @@ class UserApi {
|
|
63
63
|
Authorization: yield this._getAuthorizationHeader(),
|
64
64
|
"X-Fern-Language": "JavaScript",
|
65
65
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
66
|
-
"X-Fern-SDK-Version": "
|
66
|
+
"X-Fern-SDK-Version": "1.1.1-THERA-2281-deployment-improvement.4",
|
67
67
|
},
|
68
68
|
contentType: "application/json",
|
69
69
|
queryParameters: _queryParams,
|
70
|
-
timeoutMs: 60000,
|
70
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
71
71
|
});
|
72
72
|
if (_response.ok) {
|
73
73
|
return yield serializers.db.User.parseOrThrow(_response.body, {
|
@@ -4,5 +4,6 @@
|
|
4
4
|
import * as TheraApi from "../../../../..";
|
5
5
|
export interface AiPriseVerificationResult {
|
6
6
|
status: TheraApi.db.AiPriseVerificationStatus;
|
7
|
-
|
7
|
+
/** If not present, then verification was uploaded manually and not completed through AiPrise. */
|
8
|
+
sessionId?: string;
|
8
9
|
}
|
@@ -11,6 +11,7 @@ export * from "./AiPriseVerificationStatus";
|
|
11
11
|
export * from "./UserCompanySettings";
|
12
12
|
export * from "./WithdrawalMethod";
|
13
13
|
export * from "./BankTransfer";
|
14
|
+
export * from "./PoweredBy";
|
14
15
|
export * from "./BankAddress";
|
15
16
|
export * from "./WithdrawalMethodAccountType";
|
16
17
|
export * from "./User";
|
@@ -27,6 +27,7 @@ __exportStar(require("./AiPriseVerificationStatus"), exports);
|
|
27
27
|
__exportStar(require("./UserCompanySettings"), exports);
|
28
28
|
__exportStar(require("./WithdrawalMethod"), exports);
|
29
29
|
__exportStar(require("./BankTransfer"), exports);
|
30
|
+
__exportStar(require("./PoweredBy"), exports);
|
30
31
|
__exportStar(require("./BankAddress"), exports);
|
31
32
|
__exportStar(require("./WithdrawalMethodAccountType"), exports);
|
32
33
|
__exportStar(require("./User"), exports);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { default as URLSearchParams } from "@ungap/url-search-params";
|
2
|
-
import { AxiosAdapter
|
2
|
+
import { AxiosAdapter } from "axios";
|
3
3
|
import { APIResponse } from "./APIResponse";
|
4
4
|
export declare type FetchFunction = <R = unknown>(args: Fetcher.Args) => Promise<APIResponse<R, Fetcher.Error>>;
|
5
5
|
export declare namespace Fetcher {
|
@@ -14,7 +14,7 @@ export declare namespace Fetcher {
|
|
14
14
|
withCredentials?: boolean;
|
15
15
|
responseType?: "json" | "blob";
|
16
16
|
adapter?: AxiosAdapter;
|
17
|
-
onUploadProgress?: (event:
|
17
|
+
onUploadProgress?: (event: ProgressEvent) => void;
|
18
18
|
}
|
19
19
|
type Error = FailedStatusCodeError | NonJsonError | TimeoutError | UnknownError;
|
20
20
|
interface FailedStatusCodeError {
|
package/dist/core/index.d.ts
CHANGED
package/dist/core/index.js
CHANGED
@@ -15,6 +15,9 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
15
15
|
}) : function(o, v) {
|
16
16
|
o["default"] = v;
|
17
17
|
});
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
20
|
+
};
|
18
21
|
var __importStar = (this && this.__importStar) || function (mod) {
|
19
22
|
if (mod && mod.__esModule) return mod;
|
20
23
|
var result = {};
|
@@ -22,11 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
25
|
__setModuleDefault(result, mod);
|
23
26
|
return result;
|
24
27
|
};
|
25
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
26
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
27
|
-
};
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
29
|
exports.serialization = void 0;
|
30
|
-
exports.serialization = __importStar(require("./schemas"));
|
31
30
|
__exportStar(require("./fetcher"), exports);
|
32
31
|
__exportStar(require("./auth"), exports);
|
32
|
+
exports.serialization = __importStar(require("./schemas"));
|
@@ -16,26 +16,26 @@ const schema_utils_1 = require("../schema-utils");
|
|
16
16
|
function undiscriminatedUnion(schemas) {
|
17
17
|
const baseSchema = {
|
18
18
|
parse: (raw, opts) => __awaiter(this, void 0, void 0, function* () {
|
19
|
-
return validateAndTransformUndiscriminatedUnion((schema) => schema.parse(raw, opts), schemas);
|
19
|
+
return validateAndTransformUndiscriminatedUnion((schema, opts) => schema.parse(raw, opts), schemas, opts);
|
20
20
|
}),
|
21
21
|
json: (parsed, opts) => __awaiter(this, void 0, void 0, function* () {
|
22
|
-
return validateAndTransformUndiscriminatedUnion((schema) => schema.json(parsed, opts), schemas);
|
22
|
+
return validateAndTransformUndiscriminatedUnion((schema, opts) => schema.json(parsed, opts), schemas, opts);
|
23
23
|
}),
|
24
24
|
getType: () => Schema_1.SchemaType.UNDISCRIMINATED_UNION,
|
25
25
|
};
|
26
26
|
return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
|
27
27
|
}
|
28
28
|
exports.undiscriminatedUnion = undiscriminatedUnion;
|
29
|
-
function validateAndTransformUndiscriminatedUnion(transform, schemas) {
|
29
|
+
function validateAndTransformUndiscriminatedUnion(transform, schemas, opts) {
|
30
30
|
return __awaiter(this, void 0, void 0, function* () {
|
31
31
|
const errors = [];
|
32
32
|
for (const [index, schema] of schemas.entries()) {
|
33
|
-
const transformed = yield transform(schema);
|
33
|
+
const transformed = yield transform(schema, Object.assign(Object.assign({}, opts), { skipValidation: false }));
|
34
34
|
if (transformed.ok) {
|
35
35
|
return transformed;
|
36
36
|
}
|
37
37
|
else {
|
38
|
-
for (const error of errors) {
|
38
|
+
for (const error of transformed.errors) {
|
39
39
|
errors.push({
|
40
40
|
path: error.path,
|
41
41
|
message: `[Variant ${index}] ${error.message}`,
|
@@ -41,4 +41,7 @@ exports.SingleWithdrawalMethodResponse = core.serialization.object({
|
|
41
41
|
type: core.serialization.string(),
|
42
42
|
title: core.serialization.string(),
|
43
43
|
fields: core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.bank.WithdrawalMethodField; }))),
|
44
|
+
poweredBy: core.serialization
|
45
|
+
.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).db.PoweredBy; }))
|
46
|
+
.optional(),
|
44
47
|
});
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "../../../../../../../../..";
|
5
|
+
import * as TheraApi from "../../../../../../../../../../api";
|
6
|
+
import * as core from "../../../../../../../../../../core";
|
7
|
+
export declare const ContractorAndContracts: core.serialization.ObjectSchema<serializers.api.thera.company.ContractorAndContracts.Raw, TheraApi.api.thera.company.ContractorAndContracts>;
|
8
|
+
export declare namespace ContractorAndContracts {
|
9
|
+
interface Raw {
|
10
|
+
user: serializers.db.UserApiResponse.Raw;
|
11
|
+
employments: serializers.db.ContractApiResponse.Raw[];
|
12
|
+
employment: serializers.db.ContractApiResponse.Raw;
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,44 @@
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
35
|
+
});
|
36
|
+
};
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
38
|
+
exports.ContractorAndContracts = void 0;
|
39
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
40
|
+
exports.ContractorAndContracts = core.serialization.object({
|
41
|
+
user: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).db.UserApiResponse; })),
|
42
|
+
employments: core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).db.ContractApiResponse; }))),
|
43
|
+
employment: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).db.ContractApiResponse; })),
|
44
|
+
});
|
@@ -6,6 +6,7 @@ export * from "./CreateMilestoneDetails";
|
|
6
6
|
export * from "./CreateMilestone";
|
7
7
|
export * from "./CheckCanCreateAccountResponse";
|
8
8
|
export * from "./InviteContractorResponse";
|
9
|
+
export * from "./ContractorAndContracts";
|
9
10
|
export * from "./InviteManagerResponse";
|
10
11
|
export * from "./EditManagerRolesResponse";
|
11
12
|
export * from "./EditOrgAdminsResponse";
|
@@ -22,6 +22,7 @@ __exportStar(require("./CreateMilestoneDetails"), exports);
|
|
22
22
|
__exportStar(require("./CreateMilestone"), exports);
|
23
23
|
__exportStar(require("./CheckCanCreateAccountResponse"), exports);
|
24
24
|
__exportStar(require("./InviteContractorResponse"), exports);
|
25
|
+
__exportStar(require("./ContractorAndContracts"), exports);
|
25
26
|
__exportStar(require("./InviteManagerResponse"), exports);
|
26
27
|
__exportStar(require("./EditManagerRolesResponse"), exports);
|
27
28
|
__exportStar(require("./EditOrgAdminsResponse"), exports);
|
@@ -8,6 +8,6 @@ export declare const AiPriseVerificationResult: core.serialization.ObjectSchema<
|
|
8
8
|
export declare namespace AiPriseVerificationResult {
|
9
9
|
interface Raw {
|
10
10
|
status: serializers.db.AiPriseVerificationStatus.Raw;
|
11
|
-
sessionId
|
11
|
+
sessionId?: string | null;
|
12
12
|
}
|
13
13
|
}
|
@@ -39,5 +39,5 @@ exports.AiPriseVerificationResult = void 0;
|
|
39
39
|
const core = __importStar(require("../../../../../../core"));
|
40
40
|
exports.AiPriseVerificationResult = core.serialization.object({
|
41
41
|
status: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).db.AiPriseVerificationStatus; })),
|
42
|
-
sessionId: core.serialization.string(),
|
42
|
+
sessionId: core.serialization.string().optional(),
|
43
43
|
});
|
@@ -46,4 +46,5 @@ exports.BankTransfer = core.serialization.object({
|
|
46
46
|
details: core.serialization.record(core.serialization.string(), core.serialization.string()),
|
47
47
|
wiseRecipientAccountId: core.serialization.number().optional(),
|
48
48
|
accountType: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).db.WithdrawalMethodAccountType; })),
|
49
|
+
poweredBy: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).db.PoweredBy; })).optional(),
|
49
50
|
});
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "../../../../..";
|
5
|
+
import * as TheraApi from "../../../../../../api";
|
6
|
+
import * as core from "../../../../../../core";
|
7
|
+
export declare const PoweredBy: core.serialization.Schema<serializers.db.PoweredBy.Raw, TheraApi.db.PoweredBy>;
|
8
|
+
export declare namespace PoweredBy {
|
9
|
+
type Raw = "dlocal" | "wise";
|
10
|
+
}
|
@@ -0,0 +1,31 @@
|
|
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.PoweredBy = void 0;
|
30
|
+
const core = __importStar(require("../../../../../../core"));
|
31
|
+
exports.PoweredBy = core.serialization.enum_(["dlocal", "wise"]);
|
@@ -11,6 +11,7 @@ export * from "./AiPriseVerificationStatus";
|
|
11
11
|
export * from "./UserCompanySettings";
|
12
12
|
export * from "./WithdrawalMethod";
|
13
13
|
export * from "./BankTransfer";
|
14
|
+
export * from "./PoweredBy";
|
14
15
|
export * from "./BankAddress";
|
15
16
|
export * from "./WithdrawalMethodAccountType";
|
16
17
|
export * from "./User";
|