@thera-hr/api-sdk 0.0.4054 → 0.0.4084
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.js +19 -19
- package/api/resources/api/resources/thera/resources/common/resources/common/types/Address.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +13 -13
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.d.ts +2 -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/email/resources/emailApi/client/Client.js +4 -4
- 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/api/resources/db/resources/contract/types/ContractApiResponse.d.ts +32 -0
- package/api/resources/db/resources/contract/types/ContractApiResponse.js +5 -0
- package/api/resources/db/resources/contract/types/Milestone.d.ts +1 -1
- package/api/resources/db/resources/contract/types/index.d.ts +1 -0
- package/api/resources/db/resources/contract/types/index.js +1 -0
- package/api/resources/db/resources/generic/types/GenericType.d.ts +4 -0
- package/api/resources/db/resources/user/types/BankAddress.d.ts +11 -0
- package/api/resources/db/resources/user/types/BankAddress.js +5 -0
- package/api/resources/db/resources/user/types/BankTransfer.d.ts +1 -1
- package/api/resources/db/resources/user/types/EmployeeInformationResponse.d.ts +22 -0
- package/api/resources/db/resources/user/types/EmployeeInformationResponse.js +5 -0
- package/api/resources/db/resources/user/types/UserApiResponse.d.ts +13 -0
- package/api/resources/db/resources/user/types/UserApiResponse.js +5 -0
- package/api/resources/db/resources/user/types/index.d.ts +3 -0
- package/api/resources/db/resources/user/types/index.js +3 -0
- 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.js +19 -19
- package/dist/api/resources/api/resources/thera/resources/common/resources/common/types/Address.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +13 -13
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.d.ts +2 -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/email/resources/emailApi/client/Client.js +4 -4
- 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/api/resources/db/resources/contract/types/ContractApiResponse.d.ts +32 -0
- package/dist/api/resources/db/resources/contract/types/ContractApiResponse.js +5 -0
- package/dist/api/resources/db/resources/contract/types/Milestone.d.ts +1 -1
- package/dist/api/resources/db/resources/contract/types/index.d.ts +1 -0
- package/dist/api/resources/db/resources/contract/types/index.js +1 -0
- package/dist/api/resources/db/resources/generic/types/GenericType.d.ts +4 -0
- package/dist/api/resources/db/resources/user/types/BankAddress.d.ts +11 -0
- package/dist/api/resources/db/resources/user/types/BankAddress.js +5 -0
- package/dist/api/resources/db/resources/user/types/BankTransfer.d.ts +1 -1
- package/dist/api/resources/db/resources/user/types/EmployeeInformationResponse.d.ts +22 -0
- package/dist/api/resources/db/resources/user/types/EmployeeInformationResponse.js +5 -0
- package/dist/api/resources/db/resources/user/types/UserApiResponse.d.ts +13 -0
- package/dist/api/resources/db/resources/user/types/UserApiResponse.js +5 -0
- package/dist/api/resources/db/resources/user/types/index.d.ts +3 -0
- package/dist/api/resources/db/resources/user/types/index.js +3 -0
- package/dist/serialization/resources/api/resources/thera/resources/common/resources/common/types/Address.d.ts +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/common/resources/common/types/Address.js +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.d.ts +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.js +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.d.ts +2 -2
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.js +2 -2
- package/dist/serialization/resources/db/resources/contract/types/ContractApiResponse.d.ts +37 -0
- package/dist/serialization/resources/db/resources/contract/types/ContractApiResponse.js +73 -0
- package/dist/serialization/resources/db/resources/contract/types/Milestone.d.ts +1 -1
- package/dist/serialization/resources/db/resources/contract/types/Milestone.js +1 -1
- package/dist/serialization/resources/db/resources/contract/types/index.d.ts +1 -0
- package/dist/serialization/resources/db/resources/contract/types/index.js +1 -0
- package/dist/serialization/resources/db/resources/user/types/BankAddress.d.ts +17 -0
- package/dist/serialization/resources/db/resources/user/types/BankAddress.js +38 -0
- package/dist/serialization/resources/db/resources/user/types/BankTransfer.d.ts +1 -1
- package/dist/serialization/resources/db/resources/user/types/BankTransfer.js +1 -1
- package/dist/serialization/resources/db/resources/user/types/EmployeeInformationResponse.d.ts +24 -0
- package/dist/serialization/resources/db/resources/user/types/EmployeeInformationResponse.js +58 -0
- package/dist/serialization/resources/db/resources/user/types/UserApiResponse.d.ts +18 -0
- package/dist/serialization/resources/db/resources/user/types/UserApiResponse.js +48 -0
- package/dist/serialization/resources/db/resources/user/types/index.d.ts +3 -0
- package/dist/serialization/resources/db/resources/user/types/index.js +3 -0
- package/package.json +1 -1
- package/serialization/resources/api/resources/thera/resources/common/resources/common/types/Address.d.ts +1 -1
- package/serialization/resources/api/resources/thera/resources/common/resources/common/types/Address.js +1 -1
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.d.ts +1 -1
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestone.js +1 -1
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.d.ts +2 -2
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.js +2 -2
- package/serialization/resources/db/resources/contract/types/ContractApiResponse.d.ts +37 -0
- package/serialization/resources/db/resources/contract/types/ContractApiResponse.js +73 -0
- package/serialization/resources/db/resources/contract/types/Milestone.d.ts +1 -1
- package/serialization/resources/db/resources/contract/types/Milestone.js +1 -1
- package/serialization/resources/db/resources/contract/types/index.d.ts +1 -0
- package/serialization/resources/db/resources/contract/types/index.js +1 -0
- package/serialization/resources/db/resources/user/types/BankAddress.d.ts +17 -0
- package/serialization/resources/db/resources/user/types/BankAddress.js +38 -0
- package/serialization/resources/db/resources/user/types/BankTransfer.d.ts +1 -1
- package/serialization/resources/db/resources/user/types/BankTransfer.js +1 -1
- package/serialization/resources/db/resources/user/types/EmployeeInformationResponse.d.ts +24 -0
- package/serialization/resources/db/resources/user/types/EmployeeInformationResponse.js +58 -0
- package/serialization/resources/db/resources/user/types/UserApiResponse.d.ts +18 -0
- package/serialization/resources/db/resources/user/types/UserApiResponse.js +48 -0
- package/serialization/resources/db/resources/user/types/index.d.ts +3 -0
- package/serialization/resources/db/resources/user/types/index.js +3 -0
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as TheraApi from "../../../../..";
|
5
|
+
export interface UserApiResponse {
|
6
|
+
userId: string;
|
7
|
+
companyId?: string;
|
8
|
+
email: string;
|
9
|
+
firstName: string;
|
10
|
+
lastName: string;
|
11
|
+
employeeInformation: TheraApi.db.EmployeeInformationResponse;
|
12
|
+
lastPosthogEventDate?: string;
|
13
|
+
}
|
@@ -11,5 +11,8 @@ export * from "./AiPriseVerificationStatus";
|
|
11
11
|
export * from "./UserCompanySettings";
|
12
12
|
export * from "./WithdrawalMethod";
|
13
13
|
export * from "./BankTransfer";
|
14
|
+
export * from "./BankAddress";
|
14
15
|
export * from "./WithdrawalMethodAccountType";
|
15
16
|
export * from "./User";
|
17
|
+
export * from "./UserApiResponse";
|
18
|
+
export * from "./EmployeeInformationResponse";
|
@@ -27,5 +27,8 @@ __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("./BankAddress"), exports);
|
30
31
|
__exportStar(require("./WithdrawalMethodAccountType"), exports);
|
31
32
|
__exportStar(require("./User"), exports);
|
33
|
+
__exportStar(require("./UserApiResponse"), exports);
|
34
|
+
__exportStar(require("./EmployeeInformationResponse"), exports);
|
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.4084",
|
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.4084",
|
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.4084",
|
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.4084",
|
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.4084",
|
185
185
|
},
|
186
186
|
contentType: "application/json",
|
187
187
|
timeoutMs: 60000,
|
package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js
CHANGED
@@ -71,7 +71,7 @@ class BankApi {
|
|
71
71
|
Authorization: yield this._getAuthorizationHeader(),
|
72
72
|
"X-Fern-Language": "JavaScript",
|
73
73
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
74
|
-
"X-Fern-SDK-Version": "0.0.
|
74
|
+
"X-Fern-SDK-Version": "0.0.4084",
|
75
75
|
},
|
76
76
|
contentType: "application/json",
|
77
77
|
timeoutMs: 60000,
|
@@ -119,7 +119,7 @@ class BankApi {
|
|
119
119
|
Authorization: yield this._getAuthorizationHeader(),
|
120
120
|
"X-Fern-Language": "JavaScript",
|
121
121
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
122
|
-
"X-Fern-SDK-Version": "0.0.
|
122
|
+
"X-Fern-SDK-Version": "0.0.4084",
|
123
123
|
},
|
124
124
|
contentType: "application/json",
|
125
125
|
queryParameters: _queryParams,
|
@@ -174,7 +174,7 @@ class BankApi {
|
|
174
174
|
Authorization: yield this._getAuthorizationHeader(),
|
175
175
|
"X-Fern-Language": "JavaScript",
|
176
176
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
177
|
-
"X-Fern-SDK-Version": "0.0.
|
177
|
+
"X-Fern-SDK-Version": "0.0.4084",
|
178
178
|
},
|
179
179
|
contentType: "application/json",
|
180
180
|
queryParameters: _queryParams,
|
@@ -221,7 +221,7 @@ class BankApi {
|
|
221
221
|
Authorization: yield this._getAuthorizationHeader(),
|
222
222
|
"X-Fern-Language": "JavaScript",
|
223
223
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
224
|
-
"X-Fern-SDK-Version": "0.0.
|
224
|
+
"X-Fern-SDK-Version": "0.0.4084",
|
225
225
|
},
|
226
226
|
contentType: "application/json",
|
227
227
|
body: yield serializers.api.thera.bank.CompleteAccountSignupRequest.jsonOrThrow(request, {
|
@@ -270,7 +270,7 @@ class BankApi {
|
|
270
270
|
Authorization: yield this._getAuthorizationHeader(),
|
271
271
|
"X-Fern-Language": "JavaScript",
|
272
272
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
273
|
-
"X-Fern-SDK-Version": "0.0.
|
273
|
+
"X-Fern-SDK-Version": "0.0.4084",
|
274
274
|
},
|
275
275
|
contentType: "application/json",
|
276
276
|
queryParameters: _queryParams,
|
@@ -320,7 +320,7 @@ class BankApi {
|
|
320
320
|
Authorization: yield this._getAuthorizationHeader(),
|
321
321
|
"X-Fern-Language": "JavaScript",
|
322
322
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
323
|
-
"X-Fern-SDK-Version": "0.0.
|
323
|
+
"X-Fern-SDK-Version": "0.0.4084",
|
324
324
|
},
|
325
325
|
contentType: "application/json",
|
326
326
|
body: yield serializers.api.thera.bank.SendMicroDepositRequest.jsonOrThrow(request, {
|
@@ -364,7 +364,7 @@ class BankApi {
|
|
364
364
|
Authorization: yield this._getAuthorizationHeader(),
|
365
365
|
"X-Fern-Language": "JavaScript",
|
366
366
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
367
|
-
"X-Fern-SDK-Version": "0.0.
|
367
|
+
"X-Fern-SDK-Version": "0.0.4084",
|
368
368
|
},
|
369
369
|
contentType: "application/json",
|
370
370
|
body: yield serializers.api.thera.bank.VerifyMicrodepositRequest.jsonOrThrow(request, {
|
@@ -411,7 +411,7 @@ class BankApi {
|
|
411
411
|
Authorization: yield this._getAuthorizationHeader(),
|
412
412
|
"X-Fern-Language": "JavaScript",
|
413
413
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
414
|
-
"X-Fern-SDK-Version": "0.0.
|
414
|
+
"X-Fern-SDK-Version": "0.0.4084",
|
415
415
|
},
|
416
416
|
contentType: "application/json",
|
417
417
|
queryParameters: _queryParams,
|
@@ -461,7 +461,7 @@ class BankApi {
|
|
461
461
|
Authorization: yield this._getAuthorizationHeader(),
|
462
462
|
"X-Fern-Language": "JavaScript",
|
463
463
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
464
|
-
"X-Fern-SDK-Version": "0.0.
|
464
|
+
"X-Fern-SDK-Version": "0.0.4084",
|
465
465
|
},
|
466
466
|
contentType: "application/json",
|
467
467
|
queryParameters: _queryParams,
|
@@ -508,7 +508,7 @@ class BankApi {
|
|
508
508
|
Authorization: yield this._getAuthorizationHeader(),
|
509
509
|
"X-Fern-Language": "JavaScript",
|
510
510
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
511
|
-
"X-Fern-SDK-Version": "0.0.
|
511
|
+
"X-Fern-SDK-Version": "0.0.4084",
|
512
512
|
},
|
513
513
|
contentType: "application/json",
|
514
514
|
body: yield serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
|
@@ -557,7 +557,7 @@ class BankApi {
|
|
557
557
|
Authorization: yield this._getAuthorizationHeader(),
|
558
558
|
"X-Fern-Language": "JavaScript",
|
559
559
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
560
|
-
"X-Fern-SDK-Version": "0.0.
|
560
|
+
"X-Fern-SDK-Version": "0.0.4084",
|
561
561
|
},
|
562
562
|
contentType: "application/json",
|
563
563
|
body: yield serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
|
@@ -603,7 +603,7 @@ class BankApi {
|
|
603
603
|
Authorization: yield this._getAuthorizationHeader(),
|
604
604
|
"X-Fern-Language": "JavaScript",
|
605
605
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
606
|
-
"X-Fern-SDK-Version": "0.0.
|
606
|
+
"X-Fern-SDK-Version": "0.0.4084",
|
607
607
|
},
|
608
608
|
contentType: "application/json",
|
609
609
|
timeoutMs: 60000,
|
@@ -646,7 +646,7 @@ class BankApi {
|
|
646
646
|
Authorization: yield this._getAuthorizationHeader(),
|
647
647
|
"X-Fern-Language": "JavaScript",
|
648
648
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
649
|
-
"X-Fern-SDK-Version": "0.0.
|
649
|
+
"X-Fern-SDK-Version": "0.0.4084",
|
650
650
|
},
|
651
651
|
contentType: "application/json",
|
652
652
|
body: yield serializers.api.thera.bank.EditWithdrawalMethodRequest.jsonOrThrow(request, {
|
@@ -692,7 +692,7 @@ class BankApi {
|
|
692
692
|
Authorization: yield this._getAuthorizationHeader(),
|
693
693
|
"X-Fern-Language": "JavaScript",
|
694
694
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
695
|
-
"X-Fern-SDK-Version": "0.0.
|
695
|
+
"X-Fern-SDK-Version": "0.0.4084",
|
696
696
|
},
|
697
697
|
contentType: "application/json",
|
698
698
|
body: yield serializers.api.thera.bank.InitiateWorkerWithdrawalRequest.jsonOrThrow(request, {
|
@@ -738,7 +738,7 @@ class BankApi {
|
|
738
738
|
Authorization: yield this._getAuthorizationHeader(),
|
739
739
|
"X-Fern-Language": "JavaScript",
|
740
740
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
741
|
-
"X-Fern-SDK-Version": "0.0.
|
741
|
+
"X-Fern-SDK-Version": "0.0.4084",
|
742
742
|
},
|
743
743
|
contentType: "application/json",
|
744
744
|
timeoutMs: 60000,
|
@@ -781,7 +781,7 @@ class BankApi {
|
|
781
781
|
Authorization: yield this._getAuthorizationHeader(),
|
782
782
|
"X-Fern-Language": "JavaScript",
|
783
783
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
784
|
-
"X-Fern-SDK-Version": "0.0.
|
784
|
+
"X-Fern-SDK-Version": "0.0.4084",
|
785
785
|
},
|
786
786
|
contentType: "application/json",
|
787
787
|
timeoutMs: 60000,
|
@@ -829,7 +829,7 @@ class BankApi {
|
|
829
829
|
Authorization: yield this._getAuthorizationHeader(),
|
830
830
|
"X-Fern-Language": "JavaScript",
|
831
831
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
832
|
-
"X-Fern-SDK-Version": "0.0.
|
832
|
+
"X-Fern-SDK-Version": "0.0.4084",
|
833
833
|
},
|
834
834
|
contentType: "application/json",
|
835
835
|
queryParameters: _queryParams,
|
@@ -873,7 +873,7 @@ class BankApi {
|
|
873
873
|
Authorization: yield this._getAuthorizationHeader(),
|
874
874
|
"X-Fern-Language": "JavaScript",
|
875
875
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
876
|
-
"X-Fern-SDK-Version": "0.0.
|
876
|
+
"X-Fern-SDK-Version": "0.0.4084",
|
877
877
|
},
|
878
878
|
contentType: "application/json",
|
879
879
|
body: yield serializers.api.thera.bank.SetAutoWithdrawalRequest.jsonOrThrow(request, {
|
@@ -919,7 +919,7 @@ class BankApi {
|
|
919
919
|
Authorization: yield this._getAuthorizationHeader(),
|
920
920
|
"X-Fern-Language": "JavaScript",
|
921
921
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
922
|
-
"X-Fern-SDK-Version": "0.0.
|
922
|
+
"X-Fern-SDK-Version": "0.0.4084",
|
923
923
|
},
|
924
924
|
contentType: "application/json",
|
925
925
|
body: yield serializers.api.thera.bank.CreateStripePaymentMethodFromPlaidRequest.jsonOrThrow(request, {
|
@@ -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.4084",
|
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.4084",
|
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.4084",
|
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.4084",
|
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.4084",
|
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.4084",
|
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.4084",
|
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.4084",
|
407
407
|
},
|
408
408
|
contentType: "application/json",
|
409
409
|
timeoutMs: 60000,
|
@@ -449,7 +449,7 @@ class CompanyApi {
|
|
449
449
|
Authorization: yield this._getAuthorizationHeader(),
|
450
450
|
"X-Fern-Language": "JavaScript",
|
451
451
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
452
|
-
"X-Fern-SDK-Version": "0.0.
|
452
|
+
"X-Fern-SDK-Version": "0.0.4084",
|
453
453
|
},
|
454
454
|
contentType: "application/json",
|
455
455
|
body: yield serializers.api.thera.company.CreateTeamRequest.jsonOrThrow(request, {
|
@@ -498,7 +498,7 @@ class CompanyApi {
|
|
498
498
|
Authorization: yield this._getAuthorizationHeader(),
|
499
499
|
"X-Fern-Language": "JavaScript",
|
500
500
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
501
|
-
"X-Fern-SDK-Version": "0.0.
|
501
|
+
"X-Fern-SDK-Version": "0.0.4084",
|
502
502
|
},
|
503
503
|
contentType: "application/json",
|
504
504
|
timeoutMs: 60000,
|
@@ -544,7 +544,7 @@ class CompanyApi {
|
|
544
544
|
Authorization: yield this._getAuthorizationHeader(),
|
545
545
|
"X-Fern-Language": "JavaScript",
|
546
546
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
547
|
-
"X-Fern-SDK-Version": "0.0.
|
547
|
+
"X-Fern-SDK-Version": "0.0.4084",
|
548
548
|
},
|
549
549
|
contentType: "application/json",
|
550
550
|
body: yield serializers.api.thera.company.EditTeamRequest.jsonOrThrow(request, {
|
@@ -594,7 +594,7 @@ class CompanyApi {
|
|
594
594
|
Authorization: yield this._getAuthorizationHeader(),
|
595
595
|
"X-Fern-Language": "JavaScript",
|
596
596
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
597
|
-
"X-Fern-SDK-Version": "0.0.
|
597
|
+
"X-Fern-SDK-Version": "0.0.4084",
|
598
598
|
},
|
599
599
|
contentType: "application/json",
|
600
600
|
timeoutMs: 60000,
|
@@ -644,7 +644,7 @@ class CompanyApi {
|
|
644
644
|
Authorization: yield this._getAuthorizationHeader(),
|
645
645
|
"X-Fern-Language": "JavaScript",
|
646
646
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
647
|
-
"X-Fern-SDK-Version": "0.0.
|
647
|
+
"X-Fern-SDK-Version": "0.0.4084",
|
648
648
|
},
|
649
649
|
contentType: "application/json",
|
650
650
|
queryParameters: _queryParams,
|
@@ -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.4084",
|
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.4084",
|
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.4084",
|
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.4084",
|
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.4084",
|
64
64
|
"Thera-Webhook-Signature-Header": theraWebhookSignatureHeader,
|
65
65
|
},
|
66
66
|
contentType: "application/json",
|
package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js
CHANGED
@@ -56,7 +56,7 @@ 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": "0.0.
|
59
|
+
"X-Fern-SDK-Version": "0.0.4084",
|
60
60
|
},
|
61
61
|
contentType: "application/json",
|
62
62
|
body: yield serializers.api.thera.email.SendAdminWelcomeEmailRequest.jsonOrThrow(request, {
|
@@ -97,7 +97,7 @@ class EmailApi {
|
|
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.4084",
|
101
101
|
},
|
102
102
|
contentType: "application/json",
|
103
103
|
body: yield serializers.api.thera.email.SendVerifyEmailRequest.jsonOrThrow(request, {
|
@@ -138,7 +138,7 @@ class EmailApi {
|
|
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.4084",
|
142
142
|
},
|
143
143
|
contentType: "application/json",
|
144
144
|
body: yield serializers.api.thera.email.SendInviteEmailRequest.jsonOrThrow(request, {
|
@@ -179,7 +179,7 @@ class EmailApi {
|
|
179
179
|
Authorization: yield this._getAuthorizationHeader(),
|
180
180
|
"X-Fern-Language": "JavaScript",
|
181
181
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
182
|
-
"X-Fern-SDK-Version": "0.0.
|
182
|
+
"X-Fern-SDK-Version": "0.0.4084",
|
183
183
|
},
|
184
184
|
contentType: "application/json",
|
185
185
|
body: yield serializers.api.thera.email.SendInviteEmailRequest.jsonOrThrow(request, {
|
@@ -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.4084",
|
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.4084",
|
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.4084",
|
158
158
|
},
|
159
159
|
contentType: "application/json",
|
160
160
|
timeoutMs: 60000,
|
package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js
CHANGED
@@ -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.4084",
|
65
65
|
"Thera-Webhook-Signature-Header": theraWebhookSignatureHeader,
|
66
66
|
},
|
67
67
|
contentType: "application/json",
|
@@ -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.4084",
|
63
63
|
},
|
64
64
|
contentType: "application/json",
|
65
65
|
timeoutMs: 60000,
|
package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js
CHANGED
@@ -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.4084",
|
67
67
|
},
|
68
68
|
contentType: "application/json",
|
69
69
|
queryParameters: _queryParams,
|
@@ -0,0 +1,32 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as TheraApi from "../../../../..";
|
5
|
+
export interface ContractApiResponse {
|
6
|
+
companyId: string;
|
7
|
+
employeeUserId: string;
|
8
|
+
id: string;
|
9
|
+
name?: string;
|
10
|
+
jobTitle: string;
|
11
|
+
employmentStatus: TheraApi.db.EmploymentStatus;
|
12
|
+
startDate: string;
|
13
|
+
wageType: TheraApi.model.thera.WageType;
|
14
|
+
rate?: number;
|
15
|
+
contractCurrency: string;
|
16
|
+
milestoneDetails: TheraApi.db.MilestoneDetails;
|
17
|
+
contractFileId: string;
|
18
|
+
lastPayDate?: string;
|
19
|
+
scopeOfWork: string;
|
20
|
+
type: TheraApi.model.thera.EmploymentType;
|
21
|
+
contractDocumentType: TheraApi.model.thera.ContractDocumentType;
|
22
|
+
contractDocumentId?: string;
|
23
|
+
w2Payroll?: TheraApi.db.EmploymentW2PayrollDetails;
|
24
|
+
eor?: TheraApi.db.EorDetails;
|
25
|
+
companySigningAuthorityUserId: string;
|
26
|
+
documents?: TheraApi.db.EmploymentDocuments;
|
27
|
+
payCycle?: TheraApi.model.thera.PayCycle;
|
28
|
+
contractType: TheraApi.model.thera.ContractType;
|
29
|
+
workerCanSubmitWork?: boolean;
|
30
|
+
clientCanSubmitWork?: boolean;
|
31
|
+
teamId?: string;
|
32
|
+
}
|
@@ -11,6 +11,7 @@ export * from "./Milestone";
|
|
11
11
|
export * from "./MilestoneDetails";
|
12
12
|
export * from "./EmploymentStatus";
|
13
13
|
export * from "./Contract";
|
14
|
+
export * from "./ContractApiResponse";
|
14
15
|
export * from "./EorDetails";
|
15
16
|
export * from "./EorPayslip";
|
16
17
|
export * from "./EmploymentDocuments";
|
@@ -27,6 +27,7 @@ __exportStar(require("./Milestone"), exports);
|
|
27
27
|
__exportStar(require("./MilestoneDetails"), exports);
|
28
28
|
__exportStar(require("./EmploymentStatus"), exports);
|
29
29
|
__exportStar(require("./Contract"), exports);
|
30
|
+
__exportStar(require("./ContractApiResponse"), exports);
|
30
31
|
__exportStar(require("./EorDetails"), exports);
|
31
32
|
__exportStar(require("./EorPayslip"), exports);
|
32
33
|
__exportStar(require("./EmploymentDocuments"), exports);
|
@@ -5,5 +5,9 @@ import * as TheraApi from "../../../../..";
|
|
5
5
|
export interface GenericType {
|
6
6
|
key: TheraApi.db.GenericTypeKey;
|
7
7
|
fxLedgerAccountIdByCurrency: Record<string, string>;
|
8
|
+
/**
|
9
|
+
* In prod, this list is used to determine which users should be able to create new accounts. This prevents unknown people from coming in and snooping on our platform. If a user tries to create an account that is not on this allow list, the FE should prompt them to set up a meeting with Thera.
|
10
|
+
*
|
11
|
+
*/
|
8
12
|
createAccountEmailAllowList: Set<string>;
|
9
13
|
}
|