@thera-hr/api-sdk 0.0.3925 → 0.0.3946
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/services/resources/file/client/Client.js +4 -4
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +4 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +64 -18
- package/api/resources/api/resources/thera/resources/{company/resources/companyApi/types/BankAccountResponseMetadata.d.ts → bank/resources/bankApi/types/GetBankAccountDetailsResponse.d.ts} +2 -2
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +8 -8
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +0 -2
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +0 -2
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +4 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +64 -18
- package/dist/api/resources/api/resources/thera/resources/{company/resources/companyApi/types/BankAccountResponseMetadata.d.ts → bank/resources/bankApi/types/GetBankAccountDetailsResponse.d.ts} +2 -2
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +8 -8
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +0 -2
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +0 -2
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/getPlaidBankDetails.d.ts +10 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/getPlaidBankDetails.js +42 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.js +2 -1
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetBankAccountDetailsResponse.d.ts +12 -0
- package/dist/serialization/resources/api/resources/thera/resources/{company/resources/companyApi/types/BankAccountResponseMetadata.js → bank/resources/bankApi/types/GetBankAccountDetailsResponse.js} +3 -3
- package/{serialization/resources/api/resources/thera/resources/company/resources/companyApi → dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi}/types/PlaidVerificationStatus.d.ts +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.js +0 -3
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +0 -2
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +0 -2
- package/package.json +1 -1
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/getPlaidBankDetails.d.ts +10 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/getPlaidBankDetails.js +42 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.js +2 -1
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetBankAccountDetailsResponse.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/{company/resources/companyApi/types/BankAccountResponseMetadata.js → bank/resources/bankApi/types/GetBankAccountDetailsResponse.js} +3 -3
- package/{dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi → serialization/resources/api/resources/thera/resources/bank/resources/bankApi}/types/PlaidVerificationStatus.d.ts +1 -1
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.js +0 -3
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +0 -2
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +0 -2
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/BankAccountResponseMetadata.d.ts +0 -12
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/BankAccountResponseMetadata.d.ts +0 -12
- /package/api/resources/api/resources/thera/resources/{company/resources/companyApi/types/BankAccountResponseMetadata.js → bank/resources/bankApi/types/GetBankAccountDetailsResponse.js} +0 -0
- /package/api/resources/api/resources/thera/resources/{company/resources/companyApi → bank/resources/bankApi}/types/PlaidVerificationStatus.d.ts +0 -0
- /package/api/resources/api/resources/thera/resources/{company/resources/companyApi → bank/resources/bankApi}/types/PlaidVerificationStatus.js +0 -0
- /package/dist/api/resources/api/resources/thera/resources/{company/resources/companyApi/types/BankAccountResponseMetadata.js → bank/resources/bankApi/types/GetBankAccountDetailsResponse.js} +0 -0
- /package/dist/api/resources/api/resources/thera/resources/{company/resources/companyApi → bank/resources/bankApi}/types/PlaidVerificationStatus.d.ts +0 -0
- /package/dist/api/resources/api/resources/thera/resources/{company/resources/companyApi → bank/resources/bankApi}/types/PlaidVerificationStatus.js +0 -0
- /package/dist/serialization/resources/api/resources/thera/resources/{company/resources/companyApi → bank/resources/bankApi}/types/PlaidVerificationStatus.js +0 -0
- /package/serialization/resources/api/resources/thera/resources/{company/resources/companyApi → bank/resources/bankApi}/types/PlaidVerificationStatus.js +0 -0
@@ -59,7 +59,7 @@ class AipriseWebhookApi {
|
|
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": "0.0.
|
62
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
63
63
|
},
|
64
64
|
contentType: "application/json",
|
65
65
|
body: yield serializers.api.aiprise.AiPriseVerificationCallback.jsonOrThrow(request, {
|
@@ -56,7 +56,7 @@ class File_ {
|
|
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": "0.0.
|
59
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
60
60
|
},
|
61
61
|
contentType: "application/json",
|
62
62
|
body: yield serializers.api.services.AttachDocumentToEmploymentRequest.jsonOrThrow(request, {
|
@@ -97,7 +97,7 @@ class File_ {
|
|
97
97
|
Authorization: yield this._getAuthorizationHeader(),
|
98
98
|
"X-Fern-Language": "JavaScript",
|
99
99
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
100
|
-
"X-Fern-SDK-Version": "0.0.
|
100
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
101
101
|
},
|
102
102
|
contentType: "application/json",
|
103
103
|
body: yield serializers.api.services.DeleteDocumentFromEmploymentRequest.jsonOrThrow(request, {
|
@@ -138,7 +138,7 @@ class File_ {
|
|
138
138
|
Authorization: yield this._getAuthorizationHeader(),
|
139
139
|
"X-Fern-Language": "JavaScript",
|
140
140
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
141
|
-
"X-Fern-SDK-Version": "0.0.
|
141
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
142
142
|
},
|
143
143
|
contentType: "application/json",
|
144
144
|
timeoutMs: 60000,
|
@@ -181,7 +181,7 @@ class File_ {
|
|
181
181
|
Authorization: yield this._getAuthorizationHeader(),
|
182
182
|
"X-Fern-Language": "JavaScript",
|
183
183
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
184
|
-
"X-Fern-SDK-Version": "0.0.
|
184
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
185
185
|
},
|
186
186
|
contentType: "application/json",
|
187
187
|
timeoutMs: 60000,
|
package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts
CHANGED
@@ -12,6 +12,10 @@ export declare namespace BankApi {
|
|
12
12
|
export declare class BankApi {
|
13
13
|
protected readonly _options: BankApi.Options;
|
14
14
|
constructor(_options: BankApi.Options);
|
15
|
+
/**
|
16
|
+
* Get Plaid Bank Account Details (employer/admin's bank account status). Contains Status, etc
|
17
|
+
*/
|
18
|
+
getPlaidBankDetails(companyId: string): Promise<TheraApi.api.thera.bank.GetBankAccountDetailsResponse | undefined>;
|
15
19
|
/**
|
16
20
|
* Get Plaid's link-token
|
17
21
|
*/
|
@@ -40,14 +40,60 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
41
41
|
exports.BankApi = void 0;
|
42
42
|
const core = __importStar(require("../../../../../../../../../../core"));
|
43
|
-
const url_search_params_1 = __importDefault(require("@ungap/url-search-params"));
|
44
43
|
const url_join_1 = __importDefault(require("url-join"));
|
45
44
|
const serializers = __importStar(require("../../../../../../../../../../serialization"));
|
46
45
|
const errors = __importStar(require("../../../../../../../../../../errors"));
|
46
|
+
const url_search_params_1 = __importDefault(require("@ungap/url-search-params"));
|
47
47
|
class BankApi {
|
48
48
|
constructor(_options) {
|
49
49
|
this._options = _options;
|
50
50
|
}
|
51
|
+
/**
|
52
|
+
* Get Plaid Bank Account Details (employer/admin's bank account status). Contains Status, etc
|
53
|
+
*/
|
54
|
+
getPlaidBankDetails(companyId) {
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
56
|
+
const _response = yield core.fetcher({
|
57
|
+
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${companyId}/bank/account`),
|
58
|
+
method: "GET",
|
59
|
+
headers: {
|
60
|
+
Authorization: yield this._getAuthorizationHeader(),
|
61
|
+
"X-Fern-Language": "JavaScript",
|
62
|
+
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
63
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
64
|
+
},
|
65
|
+
contentType: "application/json",
|
66
|
+
timeoutMs: 60000,
|
67
|
+
});
|
68
|
+
if (_response.ok) {
|
69
|
+
return yield serializers.api.thera.bank.bankApi.getPlaidBankDetails.Response.parseOrThrow(_response.body, {
|
70
|
+
unrecognizedObjectKeys: "passthrough",
|
71
|
+
allowUnrecognizedUnionMembers: true,
|
72
|
+
allowUnrecognizedEnumValues: true,
|
73
|
+
breadcrumbsPrefix: ["response"],
|
74
|
+
});
|
75
|
+
}
|
76
|
+
if (_response.error.reason === "status-code") {
|
77
|
+
throw new errors.TheraApiError({
|
78
|
+
statusCode: _response.error.statusCode,
|
79
|
+
body: _response.error.body,
|
80
|
+
});
|
81
|
+
}
|
82
|
+
switch (_response.error.reason) {
|
83
|
+
case "non-json":
|
84
|
+
throw new errors.TheraApiError({
|
85
|
+
statusCode: _response.error.statusCode,
|
86
|
+
body: _response.error.rawBody,
|
87
|
+
});
|
88
|
+
case "timeout":
|
89
|
+
throw new errors.TheraApiTimeoutError();
|
90
|
+
case "unknown":
|
91
|
+
throw new errors.TheraApiError({
|
92
|
+
message: _response.error.errorMessage,
|
93
|
+
});
|
94
|
+
}
|
95
|
+
});
|
96
|
+
}
|
51
97
|
/**
|
52
98
|
* Get Plaid's link-token
|
53
99
|
*/
|
@@ -65,7 +111,7 @@ class BankApi {
|
|
65
111
|
Authorization: yield this._getAuthorizationHeader(),
|
66
112
|
"X-Fern-Language": "JavaScript",
|
67
113
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
68
|
-
"X-Fern-SDK-Version": "0.0.
|
114
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
69
115
|
},
|
70
116
|
contentType: "application/json",
|
71
117
|
queryParameters: _queryParams,
|
@@ -112,7 +158,7 @@ class BankApi {
|
|
112
158
|
Authorization: yield this._getAuthorizationHeader(),
|
113
159
|
"X-Fern-Language": "JavaScript",
|
114
160
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
115
|
-
"X-Fern-SDK-Version": "0.0.
|
161
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
116
162
|
},
|
117
163
|
contentType: "application/json",
|
118
164
|
body: yield serializers.api.thera.bank.CompleteAccountSignupRequest.jsonOrThrow(request, {
|
@@ -161,7 +207,7 @@ class BankApi {
|
|
161
207
|
Authorization: yield this._getAuthorizationHeader(),
|
162
208
|
"X-Fern-Language": "JavaScript",
|
163
209
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
164
|
-
"X-Fern-SDK-Version": "0.0.
|
210
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
165
211
|
},
|
166
212
|
contentType: "application/json",
|
167
213
|
queryParameters: _queryParams,
|
@@ -208,7 +254,7 @@ class BankApi {
|
|
208
254
|
Authorization: yield this._getAuthorizationHeader(),
|
209
255
|
"X-Fern-Language": "JavaScript",
|
210
256
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
211
|
-
"X-Fern-SDK-Version": "0.0.
|
257
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
212
258
|
},
|
213
259
|
contentType: "application/json",
|
214
260
|
timeoutMs: 60000,
|
@@ -249,7 +295,7 @@ class BankApi {
|
|
249
295
|
Authorization: yield this._getAuthorizationHeader(),
|
250
296
|
"X-Fern-Language": "JavaScript",
|
251
297
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
252
|
-
"X-Fern-SDK-Version": "0.0.
|
298
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
253
299
|
},
|
254
300
|
contentType: "application/json",
|
255
301
|
body: yield serializers.api.thera.bank.VerifyMicrodepositRequest.jsonOrThrow(request, {
|
@@ -296,7 +342,7 @@ class BankApi {
|
|
296
342
|
Authorization: yield this._getAuthorizationHeader(),
|
297
343
|
"X-Fern-Language": "JavaScript",
|
298
344
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
299
|
-
"X-Fern-SDK-Version": "0.0.
|
345
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
300
346
|
},
|
301
347
|
contentType: "application/json",
|
302
348
|
queryParameters: _queryParams,
|
@@ -346,7 +392,7 @@ class BankApi {
|
|
346
392
|
Authorization: yield this._getAuthorizationHeader(),
|
347
393
|
"X-Fern-Language": "JavaScript",
|
348
394
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
349
|
-
"X-Fern-SDK-Version": "0.0.
|
395
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
350
396
|
},
|
351
397
|
contentType: "application/json",
|
352
398
|
queryParameters: _queryParams,
|
@@ -393,7 +439,7 @@ class BankApi {
|
|
393
439
|
Authorization: yield this._getAuthorizationHeader(),
|
394
440
|
"X-Fern-Language": "JavaScript",
|
395
441
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
396
|
-
"X-Fern-SDK-Version": "0.0.
|
442
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
397
443
|
},
|
398
444
|
contentType: "application/json",
|
399
445
|
body: yield serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
|
@@ -442,7 +488,7 @@ class BankApi {
|
|
442
488
|
Authorization: yield this._getAuthorizationHeader(),
|
443
489
|
"X-Fern-Language": "JavaScript",
|
444
490
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
445
|
-
"X-Fern-SDK-Version": "0.0.
|
491
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
446
492
|
},
|
447
493
|
contentType: "application/json",
|
448
494
|
body: yield serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
|
@@ -488,7 +534,7 @@ class BankApi {
|
|
488
534
|
Authorization: yield this._getAuthorizationHeader(),
|
489
535
|
"X-Fern-Language": "JavaScript",
|
490
536
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
491
|
-
"X-Fern-SDK-Version": "0.0.
|
537
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
492
538
|
},
|
493
539
|
contentType: "application/json",
|
494
540
|
timeoutMs: 60000,
|
@@ -531,7 +577,7 @@ class BankApi {
|
|
531
577
|
Authorization: yield this._getAuthorizationHeader(),
|
532
578
|
"X-Fern-Language": "JavaScript",
|
533
579
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
534
|
-
"X-Fern-SDK-Version": "0.0.
|
580
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
535
581
|
},
|
536
582
|
contentType: "application/json",
|
537
583
|
body: yield serializers.api.thera.bank.EditWithdrawalMethodRequest.jsonOrThrow(request, {
|
@@ -577,7 +623,7 @@ class BankApi {
|
|
577
623
|
Authorization: yield this._getAuthorizationHeader(),
|
578
624
|
"X-Fern-Language": "JavaScript",
|
579
625
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
580
|
-
"X-Fern-SDK-Version": "0.0.
|
626
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
581
627
|
},
|
582
628
|
contentType: "application/json",
|
583
629
|
body: yield serializers.api.thera.bank.InitiateWorkerWithdrawalRequest.jsonOrThrow(request, {
|
@@ -623,7 +669,7 @@ class BankApi {
|
|
623
669
|
Authorization: yield this._getAuthorizationHeader(),
|
624
670
|
"X-Fern-Language": "JavaScript",
|
625
671
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
626
|
-
"X-Fern-SDK-Version": "0.0.
|
672
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
627
673
|
},
|
628
674
|
contentType: "application/json",
|
629
675
|
timeoutMs: 60000,
|
@@ -666,7 +712,7 @@ class BankApi {
|
|
666
712
|
Authorization: yield this._getAuthorizationHeader(),
|
667
713
|
"X-Fern-Language": "JavaScript",
|
668
714
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
669
|
-
"X-Fern-SDK-Version": "0.0.
|
715
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
670
716
|
},
|
671
717
|
contentType: "application/json",
|
672
718
|
timeoutMs: 60000,
|
@@ -714,7 +760,7 @@ class BankApi {
|
|
714
760
|
Authorization: yield this._getAuthorizationHeader(),
|
715
761
|
"X-Fern-Language": "JavaScript",
|
716
762
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
717
|
-
"X-Fern-SDK-Version": "0.0.
|
763
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
718
764
|
},
|
719
765
|
contentType: "application/json",
|
720
766
|
queryParameters: _queryParams,
|
@@ -758,7 +804,7 @@ class BankApi {
|
|
758
804
|
Authorization: yield this._getAuthorizationHeader(),
|
759
805
|
"X-Fern-Language": "JavaScript",
|
760
806
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
761
|
-
"X-Fern-SDK-Version": "0.0.
|
807
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
762
808
|
},
|
763
809
|
contentType: "application/json",
|
764
810
|
body: yield serializers.api.thera.bank.SetAutoWithdrawalRequest.jsonOrThrow(request, {
|
@@ -804,7 +850,7 @@ class BankApi {
|
|
804
850
|
Authorization: yield this._getAuthorizationHeader(),
|
805
851
|
"X-Fern-Language": "JavaScript",
|
806
852
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
807
|
-
"X-Fern-SDK-Version": "0.0.
|
853
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
808
854
|
},
|
809
855
|
contentType: "application/json",
|
810
856
|
timeoutMs: 60000,
|
@@ -2,6 +2,6 @@
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
4
|
import * as TheraApi from "../../../../../../../../..";
|
5
|
-
export interface
|
6
|
-
plaidVerificationStatus: TheraApi.api.thera.
|
5
|
+
export interface GetBankAccountDetailsResponse {
|
6
|
+
plaidVerificationStatus: TheraApi.api.thera.bank.PlaidVerificationStatus;
|
7
7
|
}
|
@@ -26,5 +26,7 @@ export * from "./WorkerTransaction";
|
|
26
26
|
export * from "./WorkerTransactionDetails";
|
27
27
|
export * from "./WorkerWithdrawalTransaction";
|
28
28
|
export * from "./WorkerInvoicePaymentTransaction";
|
29
|
+
export * from "./GetBankAccountDetailsResponse";
|
30
|
+
export * from "./PlaidVerificationStatus";
|
29
31
|
export * from "./SetAutoWithdrawalResponse";
|
30
32
|
export * from "./WorkerTransactionStatus";
|
@@ -42,5 +42,7 @@ __exportStar(require("./WorkerTransaction"), exports);
|
|
42
42
|
__exportStar(require("./WorkerTransactionDetails"), exports);
|
43
43
|
__exportStar(require("./WorkerWithdrawalTransaction"), exports);
|
44
44
|
__exportStar(require("./WorkerInvoicePaymentTransaction"), exports);
|
45
|
+
__exportStar(require("./GetBankAccountDetailsResponse"), exports);
|
46
|
+
__exportStar(require("./PlaidVerificationStatus"), exports);
|
45
47
|
__exportStar(require("./SetAutoWithdrawalResponse"), exports);
|
46
48
|
__exportStar(require("./WorkerTransactionStatus"), exports);
|
package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js
CHANGED
@@ -65,7 +65,7 @@ class CompanyApi {
|
|
65
65
|
Authorization: yield this._getAuthorizationHeader(),
|
66
66
|
"X-Fern-Language": "JavaScript",
|
67
67
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
68
|
-
"X-Fern-SDK-Version": "0.0.
|
68
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
69
69
|
},
|
70
70
|
contentType: "application/json",
|
71
71
|
queryParameters: _queryParams,
|
@@ -115,7 +115,7 @@ class CompanyApi {
|
|
115
115
|
Authorization: yield this._getAuthorizationHeader(),
|
116
116
|
"X-Fern-Language": "JavaScript",
|
117
117
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
118
|
-
"X-Fern-SDK-Version": "0.0.
|
118
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
119
119
|
},
|
120
120
|
contentType: "application/json",
|
121
121
|
body: yield serializers.api.thera.company.InviteManagerRequest.jsonOrThrow(request, {
|
@@ -164,7 +164,7 @@ class CompanyApi {
|
|
164
164
|
Authorization: yield this._getAuthorizationHeader(),
|
165
165
|
"X-Fern-Language": "JavaScript",
|
166
166
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
167
|
-
"X-Fern-SDK-Version": "0.0.
|
167
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
168
168
|
},
|
169
169
|
contentType: "application/json",
|
170
170
|
body: yield serializers.api.thera.company.EditManagerRolesRequest.jsonOrThrow(request, {
|
@@ -213,7 +213,7 @@ class CompanyApi {
|
|
213
213
|
Authorization: yield this._getAuthorizationHeader(),
|
214
214
|
"X-Fern-Language": "JavaScript",
|
215
215
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
216
|
-
"X-Fern-SDK-Version": "0.0.
|
216
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
217
217
|
},
|
218
218
|
contentType: "application/json",
|
219
219
|
body: yield serializers.api.thera.company.EditOrgAdminsRequest.jsonOrThrow(request, {
|
@@ -262,7 +262,7 @@ class CompanyApi {
|
|
262
262
|
Authorization: yield this._getAuthorizationHeader(),
|
263
263
|
"X-Fern-Language": "JavaScript",
|
264
264
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
265
|
-
"X-Fern-SDK-Version": "0.0.
|
265
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
266
266
|
},
|
267
267
|
contentType: "application/json",
|
268
268
|
timeoutMs: 60000,
|
@@ -308,7 +308,7 @@ class CompanyApi {
|
|
308
308
|
Authorization: yield this._getAuthorizationHeader(),
|
309
309
|
"X-Fern-Language": "JavaScript",
|
310
310
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
311
|
-
"X-Fern-SDK-Version": "0.0.
|
311
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
312
312
|
},
|
313
313
|
contentType: "application/json",
|
314
314
|
body: yield serializers.api.thera.company.ChangeContractTeamRequest.jsonOrThrow(request, {
|
@@ -357,7 +357,7 @@ class CompanyApi {
|
|
357
357
|
Authorization: yield this._getAuthorizationHeader(),
|
358
358
|
"X-Fern-Language": "JavaScript",
|
359
359
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
360
|
-
"X-Fern-SDK-Version": "0.0.
|
360
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
361
361
|
},
|
362
362
|
contentType: "application/json",
|
363
363
|
timeoutMs: 60000,
|
@@ -403,7 +403,7 @@ class CompanyApi {
|
|
403
403
|
Authorization: yield this._getAuthorizationHeader(),
|
404
404
|
"X-Fern-Language": "JavaScript",
|
405
405
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
406
|
-
"X-Fern-SDK-Version": "0.0.
|
406
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
407
407
|
},
|
408
408
|
contentType: "application/json",
|
409
409
|
body: yield serializers.api.thera.company.CreateTeamRequest.jsonOrThrow(request, {
|
package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts
CHANGED
@@ -21,8 +21,6 @@ export * from "./OrgRoleAndDetails";
|
|
21
21
|
export * from "./OrgAdmin";
|
22
22
|
export * from "./CreateCompanyRequest";
|
23
23
|
export * from "./CompanyApiResponse";
|
24
|
-
export * from "./BankAccountResponseMetadata";
|
25
|
-
export * from "./PlaidVerificationStatus";
|
26
24
|
export * from "./CompanySettings";
|
27
25
|
export * from "./SubscriptionPricing";
|
28
26
|
export * from "./Flags";
|
package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js
CHANGED
@@ -37,8 +37,6 @@ __exportStar(require("./OrgRoleAndDetails"), exports);
|
|
37
37
|
__exportStar(require("./OrgAdmin"), exports);
|
38
38
|
__exportStar(require("./CreateCompanyRequest"), exports);
|
39
39
|
__exportStar(require("./CompanyApiResponse"), exports);
|
40
|
-
__exportStar(require("./BankAccountResponseMetadata"), exports);
|
41
|
-
__exportStar(require("./PlaidVerificationStatus"), exports);
|
42
40
|
__exportStar(require("./CompanySettings"), exports);
|
43
41
|
__exportStar(require("./SubscriptionPricing"), exports);
|
44
42
|
__exportStar(require("./Flags"), exports);
|
@@ -59,7 +59,7 @@ class CompanyW2PayrollApi {
|
|
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": "0.0.
|
62
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
63
63
|
},
|
64
64
|
contentType: "application/json",
|
65
65
|
body: yield serializers.api.thera.company.OnboardW2PayrollRequest.jsonOrThrow(request, {
|
@@ -73,7 +73,7 @@ class DisbursementApi {
|
|
73
73
|
Authorization: yield this._getAuthorizationHeader(),
|
74
74
|
"X-Fern-Language": "JavaScript",
|
75
75
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
76
|
-
"X-Fern-SDK-Version": "0.0.
|
76
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
77
77
|
},
|
78
78
|
contentType: "application/json",
|
79
79
|
queryParameters: _queryParams,
|
@@ -118,7 +118,7 @@ class DisbursementApi {
|
|
118
118
|
Authorization: yield this._getAuthorizationHeader(),
|
119
119
|
"X-Fern-Language": "JavaScript",
|
120
120
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
121
|
-
"X-Fern-SDK-Version": "0.0.
|
121
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
122
122
|
},
|
123
123
|
contentType: "application/json",
|
124
124
|
body: yield serializers.api.thera.disbursement.CreateDisbursementRequest.jsonOrThrow(request, {
|
@@ -162,7 +162,7 @@ class DisbursementApi {
|
|
162
162
|
Authorization: yield this._getAuthorizationHeader(),
|
163
163
|
"X-Fern-Language": "JavaScript",
|
164
164
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
165
|
-
"X-Fern-SDK-Version": "0.0.
|
165
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
166
166
|
},
|
167
167
|
contentType: "application/json",
|
168
168
|
timeoutMs: 60000,
|
@@ -60,7 +60,7 @@ class DisbursementWebhookApi {
|
|
60
60
|
Authorization: yield this._getAuthorizationHeader(),
|
61
61
|
"X-Fern-Language": "JavaScript",
|
62
62
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
63
|
-
"X-Fern-SDK-Version": "0.0.
|
63
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
64
64
|
"Thera-Webhook-Signature-Header": theraWebhookSignatureHeader,
|
65
65
|
},
|
66
66
|
contentType: "application/json",
|
@@ -59,7 +59,7 @@ 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": "0.0.
|
62
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
63
63
|
},
|
64
64
|
contentType: "application/json",
|
65
65
|
body: yield serializers.api.thera.employment.CreateContractEstimateRequest.jsonOrThrow(request, {
|
@@ -108,7 +108,7 @@ class EmploymentApi {
|
|
108
108
|
Authorization: yield this._getAuthorizationHeader(),
|
109
109
|
"X-Fern-Language": "JavaScript",
|
110
110
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
111
|
-
"X-Fern-SDK-Version": "0.0.
|
111
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
112
112
|
},
|
113
113
|
contentType: "application/json",
|
114
114
|
timeoutMs: 60000,
|
@@ -154,7 +154,7 @@ class EmploymentApi {
|
|
154
154
|
Authorization: yield this._getAuthorizationHeader(),
|
155
155
|
"X-Fern-Language": "JavaScript",
|
156
156
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
157
|
-
"X-Fern-SDK-Version": "0.0.
|
157
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
158
158
|
},
|
159
159
|
contentType: "application/json",
|
160
160
|
timeoutMs: 60000,
|
@@ -61,7 +61,7 @@ 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": "0.0.
|
64
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
65
65
|
"Thera-Webhook-Signature-Header": theraWebhookSignatureHeader,
|
66
66
|
},
|
67
67
|
contentType: "application/json",
|
package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js
CHANGED
@@ -59,7 +59,7 @@ 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": "0.0.
|
62
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
63
63
|
},
|
64
64
|
contentType: "application/json",
|
65
65
|
timeoutMs: 60000,
|
@@ -63,7 +63,7 @@ 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": "0.0.
|
66
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
67
67
|
},
|
68
68
|
contentType: "application/json",
|
69
69
|
queryParameters: _queryParams,
|
package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js
CHANGED
@@ -59,7 +59,7 @@ class AipriseWebhookApi {
|
|
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": "0.0.
|
62
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
63
63
|
},
|
64
64
|
contentType: "application/json",
|
65
65
|
body: yield serializers.api.aiprise.AiPriseVerificationCallback.jsonOrThrow(request, {
|
@@ -56,7 +56,7 @@ class File_ {
|
|
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": "0.0.
|
59
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
60
60
|
},
|
61
61
|
contentType: "application/json",
|
62
62
|
body: yield serializers.api.services.AttachDocumentToEmploymentRequest.jsonOrThrow(request, {
|
@@ -97,7 +97,7 @@ class File_ {
|
|
97
97
|
Authorization: yield this._getAuthorizationHeader(),
|
98
98
|
"X-Fern-Language": "JavaScript",
|
99
99
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
100
|
-
"X-Fern-SDK-Version": "0.0.
|
100
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
101
101
|
},
|
102
102
|
contentType: "application/json",
|
103
103
|
body: yield serializers.api.services.DeleteDocumentFromEmploymentRequest.jsonOrThrow(request, {
|
@@ -138,7 +138,7 @@ class File_ {
|
|
138
138
|
Authorization: yield this._getAuthorizationHeader(),
|
139
139
|
"X-Fern-Language": "JavaScript",
|
140
140
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
141
|
-
"X-Fern-SDK-Version": "0.0.
|
141
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
142
142
|
},
|
143
143
|
contentType: "application/json",
|
144
144
|
timeoutMs: 60000,
|
@@ -181,7 +181,7 @@ class File_ {
|
|
181
181
|
Authorization: yield this._getAuthorizationHeader(),
|
182
182
|
"X-Fern-Language": "JavaScript",
|
183
183
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
184
|
-
"X-Fern-SDK-Version": "0.0.
|
184
|
+
"X-Fern-SDK-Version": "0.0.3946",
|
185
185
|
},
|
186
186
|
contentType: "application/json",
|
187
187
|
timeoutMs: 60000,
|
package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts
CHANGED
@@ -12,6 +12,10 @@ export declare namespace BankApi {
|
|
12
12
|
export declare class BankApi {
|
13
13
|
protected readonly _options: BankApi.Options;
|
14
14
|
constructor(_options: BankApi.Options);
|
15
|
+
/**
|
16
|
+
* Get Plaid Bank Account Details (employer/admin's bank account status). Contains Status, etc
|
17
|
+
*/
|
18
|
+
getPlaidBankDetails(companyId: string): Promise<TheraApi.api.thera.bank.GetBankAccountDetailsResponse | undefined>;
|
15
19
|
/**
|
16
20
|
* Get Plaid's link-token
|
17
21
|
*/
|