@thera-hr/api-sdk 0.0.1-prerelease2885-dev-3 → 0.0.1-prerelease2886-dev-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/api/client/Client.d.ts +0 -3
- package/api/resources/api/client/Client.js +4 -9
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
- package/api/resources/api/resources/index.d.ts +0 -1
- package/api/resources/api/resources/index.js +1 -2
- package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
- package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +23 -23
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +1 -8
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +19 -26
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
- package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.d.ts +4 -4
- package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +9 -9
- package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/{GetEorEmployeeByUserIdResponse.d.ts → GetEorEmployeeByEmailResponse.d.ts} +1 -1
- package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.js +1 -1
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts +25 -0
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +77 -6
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/FilloutEorEmployeeRequest.d.ts +27 -0
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/index.d.ts +1 -0
- package/api/resources/api/resources/{external/resources/externalApi/types/ExternalCreateContractorRequestV2.d.ts → thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookRequest.d.ts} +9 -6
- package/{dist/api/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.d.ts → api/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookResponse.d.ts} +2 -2
- package/api/resources/api/resources/thera/resources/misc/resources/misc/types/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/misc/resources/misc/types/index.js +2 -0
- package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
- package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.d.ts +2 -1
- package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +15 -11
- package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/requests/GetAllTimeTrackingRequest.d.ts +3 -1
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/dist/api/resources/api/client/Client.d.ts +0 -3
- package/dist/api/resources/api/client/Client.js +4 -9
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
- package/dist/api/resources/api/resources/index.d.ts +0 -1
- package/dist/api/resources/api/resources/index.js +1 -2
- package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +23 -23
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +1 -8
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +19 -26
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.d.ts +4 -4
- package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +9 -9
- package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/{GetEorEmployeeByUserIdResponse.d.ts → GetEorEmployeeByEmailResponse.d.ts} +1 -1
- package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts +25 -0
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +77 -6
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/FilloutEorEmployeeRequest.d.ts +27 -0
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/index.d.ts +1 -0
- package/dist/api/resources/api/resources/{external/resources/externalApi/types/ExternalCreateContractorRequestV2.d.ts → thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookRequest.d.ts} +9 -6
- package/{api/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.d.ts → dist/api/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookResponse.d.ts} +2 -2
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/types/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/types/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
- package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.d.ts +2 -1
- package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +15 -11
- package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/requests/GetAllTimeTrackingRequest.d.ts +3 -1
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/dist/serialization/resources/api/resources/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/index.js +1 -2
- package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/{GetEorEmployeeByUserIdResponse.d.ts → GetEorEmployeeByEmailResponse.d.ts} +2 -2
- package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/{GetEorEmployeeByUserIdResponse.js → GetEorEmployeeByEmailResponse.js} +2 -2
- package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.d.ts +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.js +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookRequest.d.ts +23 -0
- package/dist/serialization/resources/api/resources/{external/resources/externalApi/types/ExternalCreateContractorRequestV2.js → thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookRequest.js} +11 -10
- package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookResponse.d.ts +12 -0
- package/{serialization/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.js → dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookResponse.js} +4 -4
- package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/index.d.ts +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/index.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +84 -94
- package/serialization/resources/api/resources/index.d.ts +0 -1
- package/serialization/resources/api/resources/index.js +1 -2
- package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/{GetEorEmployeeByUserIdResponse.d.ts → GetEorEmployeeByEmailResponse.d.ts} +2 -2
- package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/{GetEorEmployeeByUserIdResponse.js → GetEorEmployeeByEmailResponse.js} +2 -2
- package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.d.ts +1 -1
- package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.js +1 -1
- package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookRequest.d.ts +23 -0
- package/serialization/resources/api/resources/{external/resources/externalApi/types/ExternalCreateContractorRequestV2.js → thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookRequest.js} +11 -10
- package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookResponse.d.ts +12 -0
- package/{dist/serialization/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.js → serialization/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookResponse.js} +4 -4
- package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/index.d.ts +2 -0
- package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/index.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/api/resources/external/client/Client.d.ts +0 -19
- package/api/resources/api/resources/external/client/Client.js +0 -17
- package/api/resources/api/resources/external/client/index.d.ts +0 -1
- package/api/resources/api/resources/external/client/index.js +0 -2
- package/api/resources/api/resources/external/index.d.ts +0 -2
- package/api/resources/api/resources/external/index.js +0 -18
- package/api/resources/api/resources/external/resources/externalApi/client/Client.d.ts +0 -68
- package/api/resources/api/resources/external/resources/externalApi/client/Client.js +0 -155
- package/api/resources/api/resources/external/resources/externalApi/client/index.d.ts +0 -1
- package/api/resources/api/resources/external/resources/externalApi/client/index.js +0 -2
- package/api/resources/api/resources/external/resources/externalApi/index.d.ts +0 -2
- package/api/resources/api/resources/external/resources/externalApi/index.js +0 -18
- package/api/resources/api/resources/external/resources/externalApi/types/AddEorUser.d.ts +0 -9
- package/api/resources/api/resources/external/resources/externalApi/types/index.d.ts +0 -3
- package/api/resources/api/resources/external/resources/externalApi/types/index.js +0 -19
- package/api/resources/api/resources/external/resources/index.d.ts +0 -2
- package/api/resources/api/resources/external/resources/index.js +0 -41
- package/dist/api/resources/api/resources/external/client/Client.d.ts +0 -19
- package/dist/api/resources/api/resources/external/client/Client.js +0 -17
- package/dist/api/resources/api/resources/external/client/index.d.ts +0 -1
- package/dist/api/resources/api/resources/external/client/index.js +0 -2
- package/dist/api/resources/api/resources/external/index.d.ts +0 -2
- package/dist/api/resources/api/resources/external/index.js +0 -18
- package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.d.ts +0 -68
- package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +0 -155
- package/dist/api/resources/api/resources/external/resources/externalApi/client/index.d.ts +0 -1
- package/dist/api/resources/api/resources/external/resources/externalApi/client/index.js +0 -2
- package/dist/api/resources/api/resources/external/resources/externalApi/index.d.ts +0 -2
- package/dist/api/resources/api/resources/external/resources/externalApi/index.js +0 -18
- package/dist/api/resources/api/resources/external/resources/externalApi/types/AddEorUser.d.ts +0 -9
- package/dist/api/resources/api/resources/external/resources/externalApi/types/index.d.ts +0 -3
- package/dist/api/resources/api/resources/external/resources/externalApi/types/index.js +0 -19
- package/dist/api/resources/api/resources/external/resources/index.d.ts +0 -2
- package/dist/api/resources/api/resources/external/resources/index.js +0 -41
- package/dist/serialization/resources/api/resources/external/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/external/index.js +0 -17
- package/dist/serialization/resources/api/resources/external/resources/externalApi/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/external/resources/externalApi/index.js +0 -17
- package/dist/serialization/resources/api/resources/external/resources/externalApi/types/AddEorUser.d.ts +0 -15
- package/dist/serialization/resources/api/resources/external/resources/externalApi/types/AddEorUser.js +0 -46
- package/dist/serialization/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.d.ts +0 -22
- package/dist/serialization/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.d.ts +0 -12
- package/dist/serialization/resources/api/resources/external/resources/externalApi/types/index.d.ts +0 -3
- package/dist/serialization/resources/api/resources/external/resources/externalApi/types/index.js +0 -19
- package/dist/serialization/resources/api/resources/external/resources/index.d.ts +0 -2
- package/dist/serialization/resources/api/resources/external/resources/index.js +0 -41
- package/serialization/resources/api/resources/external/index.d.ts +0 -1
- package/serialization/resources/api/resources/external/index.js +0 -17
- package/serialization/resources/api/resources/external/resources/externalApi/index.d.ts +0 -1
- package/serialization/resources/api/resources/external/resources/externalApi/index.js +0 -17
- package/serialization/resources/api/resources/external/resources/externalApi/types/AddEorUser.d.ts +0 -15
- package/serialization/resources/api/resources/external/resources/externalApi/types/AddEorUser.js +0 -46
- package/serialization/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.d.ts +0 -22
- package/serialization/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.d.ts +0 -12
- package/serialization/resources/api/resources/external/resources/externalApi/types/index.d.ts +0 -3
- package/serialization/resources/api/resources/external/resources/externalApi/types/index.js +0 -19
- package/serialization/resources/api/resources/external/resources/index.d.ts +0 -2
- package/serialization/resources/api/resources/external/resources/index.js +0 -41
- /package/api/resources/api/resources/{external/resources/externalApi/types/AddEorUser.js → thera/resources/eor/resources/eorTrackerApi/types/GetEorEmployeeByEmailResponse.js} +0 -0
- /package/api/resources/api/resources/{external/resources/externalApi/types/ExternalCreateContractorRequestV2.js → thera/resources/misc/resources/misc/client/requests/FilloutEorEmployeeRequest.js} +0 -0
- /package/api/resources/api/resources/{external/resources/externalApi/types/ExternalSuccessResponseV2.js → thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookRequest.js} +0 -0
- /package/api/resources/api/resources/thera/resources/{eor/resources/eorTrackerApi/types/GetEorEmployeeByUserIdResponse.js → misc/resources/misc/types/FilloutEorEmployeeWebhookResponse.js} +0 -0
- /package/dist/api/resources/api/resources/{external/resources/externalApi/types/AddEorUser.js → thera/resources/eor/resources/eorTrackerApi/types/GetEorEmployeeByEmailResponse.js} +0 -0
- /package/dist/api/resources/api/resources/{external/resources/externalApi/types/ExternalCreateContractorRequestV2.js → thera/resources/misc/resources/misc/client/requests/FilloutEorEmployeeRequest.js} +0 -0
- /package/dist/api/resources/api/resources/{external/resources/externalApi/types/ExternalSuccessResponseV2.js → thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookRequest.js} +0 -0
- /package/dist/api/resources/api/resources/thera/resources/{eor/resources/eorTrackerApi/types/GetEorEmployeeByUserIdResponse.js → misc/resources/misc/types/FilloutEorEmployeeWebhookResponse.js} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../../../../../index";
|
|
5
|
+
import * as TheraApi from "../../../../../../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../../../../../../core";
|
|
7
|
+
export declare const FilloutEorEmployeeWebhookResponse: core.serialization.ObjectSchema<serializers.api.thera.misc.FilloutEorEmployeeWebhookResponse.Raw, TheraApi.api.thera.misc.FilloutEorEmployeeWebhookResponse>;
|
|
8
|
+
export declare namespace FilloutEorEmployeeWebhookResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
message: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -36,8 +36,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
const core = __importStar(require("
|
|
41
|
-
exports.
|
|
42
|
-
|
|
39
|
+
exports.FilloutEorEmployeeWebhookResponse = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
|
41
|
+
exports.FilloutEorEmployeeWebhookResponse = core.serialization.object({
|
|
42
|
+
message: core.serialization.string(),
|
|
43
43
|
});
|
|
@@ -2,3 +2,5 @@ export * from "./DailyCronResponse";
|
|
|
2
2
|
export * from "./AutoWithdrawalResults";
|
|
3
3
|
export * from "./TriggeredWithdrawal";
|
|
4
4
|
export * from "./ContractRenewalCronResponse";
|
|
5
|
+
export * from "./FilloutEorEmployeeWebhookResponse";
|
|
6
|
+
export * from "./FilloutEorEmployeeWebhookRequest";
|
|
@@ -18,3 +18,5 @@ __exportStar(require("./DailyCronResponse"), exports);
|
|
|
18
18
|
__exportStar(require("./AutoWithdrawalResults"), exports);
|
|
19
19
|
__exportStar(require("./TriggeredWithdrawal"), exports);
|
|
20
20
|
__exportStar(require("./ContractRenewalCronResponse"), exports);
|
|
21
|
+
__exportStar(require("./FilloutEorEmployeeWebhookResponse"), exports);
|
|
22
|
+
__exportStar(require("./FilloutEorEmployeeWebhookRequest"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.1-
|
|
1
|
+
export declare const SDK_VERSION = "0.0.1-prerelease2886-dev-2";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -176,88 +176,6 @@ await client.api.dev.dev.uploadEor({
|
|
|
176
176
|
</dl>
|
|
177
177
|
</details>
|
|
178
178
|
|
|
179
|
-
## Api External ExternalApi
|
|
180
|
-
|
|
181
|
-
<details><summary><code>client.api.external.externalApi.<a href="/src/api/resources/api/resources/external/resources/externalApi/client/Client.ts">createContractorV2</a>({ ...params }) -> TheraApi.ExternalSuccessResponseV2</code></summary>
|
|
182
|
-
<dl>
|
|
183
|
-
<dd>
|
|
184
|
-
|
|
185
|
-
#### 🔌 Usage
|
|
186
|
-
|
|
187
|
-
<dl>
|
|
188
|
-
<dd>
|
|
189
|
-
|
|
190
|
-
<dl>
|
|
191
|
-
<dd>
|
|
192
|
-
|
|
193
|
-
```typescript
|
|
194
|
-
await client.api.external.externalApi.createContractorV2({
|
|
195
|
-
email: "string",
|
|
196
|
-
firstName: "string",
|
|
197
|
-
lastName: "string",
|
|
198
|
-
country: "string",
|
|
199
|
-
currency: "string",
|
|
200
|
-
wageType: "HOURLY",
|
|
201
|
-
payCycle: {
|
|
202
|
-
timezone: "string",
|
|
203
|
-
cycleStartDate: "2023-01-15",
|
|
204
|
-
cycleEnd: {
|
|
205
|
-
type: "weekly",
|
|
206
|
-
},
|
|
207
|
-
paymentDueDays: 1,
|
|
208
|
-
firstPayDate: "2023-01-15",
|
|
209
|
-
lastPayDate: "2023-01-15",
|
|
210
|
-
firstPayTotal: 1000000,
|
|
211
|
-
lastPayTotal: 1000000,
|
|
212
|
-
itemRecurrencesById: {
|
|
213
|
-
string: {
|
|
214
|
-
itemType: "EXPENSE",
|
|
215
|
-
description: "string",
|
|
216
|
-
amount: 1000000,
|
|
217
|
-
firstInvoiceDate: "2023-01-15",
|
|
218
|
-
paymentCurrency: "string",
|
|
219
|
-
deletedDateTime: {
|
|
220
|
-
key: "value",
|
|
221
|
-
},
|
|
222
|
-
},
|
|
223
|
-
},
|
|
224
|
-
},
|
|
225
|
-
contractType: "FIXED_RATE",
|
|
226
|
-
});
|
|
227
|
-
```
|
|
228
|
-
|
|
229
|
-
</dd>
|
|
230
|
-
</dl>
|
|
231
|
-
</dd>
|
|
232
|
-
</dl>
|
|
233
|
-
|
|
234
|
-
#### ⚙️ Parameters
|
|
235
|
-
|
|
236
|
-
<dl>
|
|
237
|
-
<dd>
|
|
238
|
-
|
|
239
|
-
<dl>
|
|
240
|
-
<dd>
|
|
241
|
-
|
|
242
|
-
**request:** `TheraApi.ExternalCreateContractorRequestV2`
|
|
243
|
-
|
|
244
|
-
</dd>
|
|
245
|
-
</dl>
|
|
246
|
-
|
|
247
|
-
<dl>
|
|
248
|
-
<dd>
|
|
249
|
-
|
|
250
|
-
**requestOptions:** `ExternalApi.RequestOptions`
|
|
251
|
-
|
|
252
|
-
</dd>
|
|
253
|
-
</dl>
|
|
254
|
-
</dd>
|
|
255
|
-
</dl>
|
|
256
|
-
|
|
257
|
-
</dd>
|
|
258
|
-
</dl>
|
|
259
|
-
</details>
|
|
260
|
-
|
|
261
179
|
## Api Services File
|
|
262
180
|
|
|
263
181
|
<details><summary><code>client.api.services.file.<a href="/src/api/resources/api/resources/services/resources/file/client/Client.ts">attachDocumentToEmployment</a>(contractId, { ...params }) -> void</code></summary>
|
|
@@ -4727,14 +4645,7 @@ await client.api.thera.company.companyApi.inviteContractor({
|
|
|
4727
4645
|
lastPayTotal: 1000000,
|
|
4728
4646
|
itemRecurrencesById: {
|
|
4729
4647
|
string: {
|
|
4730
|
-
|
|
4731
|
-
description: "string",
|
|
4732
|
-
amount: 1000000,
|
|
4733
|
-
firstInvoiceDate: "2023-01-15",
|
|
4734
|
-
paymentCurrency: "string",
|
|
4735
|
-
deletedDateTime: {
|
|
4736
|
-
key: "value",
|
|
4737
|
-
},
|
|
4648
|
+
key: "value",
|
|
4738
4649
|
},
|
|
4739
4650
|
},
|
|
4740
4651
|
},
|
|
@@ -7689,7 +7600,7 @@ await client.api.thera.eor.eorTrackerApi.getEorTracker("string");
|
|
|
7689
7600
|
</dl>
|
|
7690
7601
|
</details>
|
|
7691
7602
|
|
|
7692
|
-
<details><summary><code>client.api.thera.eor.eorTrackerApi.<a href="/src/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.ts">
|
|
7603
|
+
<details><summary><code>client.api.thera.eor.eorTrackerApi.<a href="/src/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.ts">getEorEmployeeByEmail</a>(email) -> TheraApi.GetEorEmployeeByEmailResponse</code></summary>
|
|
7693
7604
|
<dl>
|
|
7694
7605
|
<dd>
|
|
7695
7606
|
|
|
@@ -7701,7 +7612,7 @@ await client.api.thera.eor.eorTrackerApi.getEorTracker("string");
|
|
|
7701
7612
|
<dl>
|
|
7702
7613
|
<dd>
|
|
7703
7614
|
|
|
7704
|
-
Gets EOR employee data from Airtable for a specific employee
|
|
7615
|
+
Gets EOR employee data from Airtable for a specific employee email
|
|
7705
7616
|
|
|
7706
7617
|
</dd>
|
|
7707
7618
|
</dl>
|
|
@@ -7717,7 +7628,7 @@ Gets EOR employee data from Airtable for a specific employee user ID
|
|
|
7717
7628
|
<dd>
|
|
7718
7629
|
|
|
7719
7630
|
```typescript
|
|
7720
|
-
await client.api.thera.eor.eorTrackerApi.
|
|
7631
|
+
await client.api.thera.eor.eorTrackerApi.getEorEmployeeByEmail("string");
|
|
7721
7632
|
```
|
|
7722
7633
|
|
|
7723
7634
|
</dd>
|
|
@@ -7733,7 +7644,7 @@ await client.api.thera.eor.eorTrackerApi.getEorEmployeeByUserId("string");
|
|
|
7733
7644
|
<dl>
|
|
7734
7645
|
<dd>
|
|
7735
7646
|
|
|
7736
|
-
**
|
|
7647
|
+
**email:** `string`
|
|
7737
7648
|
|
|
7738
7649
|
</dd>
|
|
7739
7650
|
</dl>
|
|
@@ -8144,6 +8055,84 @@ await client.api.thera.misc.misc.processAchTpInvoices({
|
|
|
8144
8055
|
</dl>
|
|
8145
8056
|
</details>
|
|
8146
8057
|
|
|
8058
|
+
<details><summary><code>client.api.thera.misc.misc.<a href="/src/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.ts">filloutEorEmployeeWebhook</a>({ ...params }) -> TheraApi.FilloutEorEmployeeWebhookResponse</code></summary>
|
|
8059
|
+
<dl>
|
|
8060
|
+
<dd>
|
|
8061
|
+
|
|
8062
|
+
#### 📝 Description
|
|
8063
|
+
|
|
8064
|
+
<dl>
|
|
8065
|
+
<dd>
|
|
8066
|
+
|
|
8067
|
+
<dl>
|
|
8068
|
+
<dd>
|
|
8069
|
+
|
|
8070
|
+
Webhook endpoint that receives submissions from Fillout forms to create EOR employees. This endpoint accepts the same request structure as the AddEorEmployeeRequest.
|
|
8071
|
+
|
|
8072
|
+
</dd>
|
|
8073
|
+
</dl>
|
|
8074
|
+
</dd>
|
|
8075
|
+
</dl>
|
|
8076
|
+
|
|
8077
|
+
#### 🔌 Usage
|
|
8078
|
+
|
|
8079
|
+
<dl>
|
|
8080
|
+
<dd>
|
|
8081
|
+
|
|
8082
|
+
<dl>
|
|
8083
|
+
<dd>
|
|
8084
|
+
|
|
8085
|
+
```typescript
|
|
8086
|
+
await client.api.thera.misc.misc.filloutEorEmployeeWebhook({
|
|
8087
|
+
theraWebhookSignatureHeader: "string",
|
|
8088
|
+
body: {
|
|
8089
|
+
firstName: "string",
|
|
8090
|
+
lastName: "string",
|
|
8091
|
+
email: "string",
|
|
8092
|
+
country: "string",
|
|
8093
|
+
companyId: "string",
|
|
8094
|
+
teamId: "string",
|
|
8095
|
+
jobTitle: "string",
|
|
8096
|
+
startDate: "2023-01-15",
|
|
8097
|
+
rate: 1.1,
|
|
8098
|
+
wageType: "HOURLY",
|
|
8099
|
+
currency: "string",
|
|
8100
|
+
},
|
|
8101
|
+
});
|
|
8102
|
+
```
|
|
8103
|
+
|
|
8104
|
+
</dd>
|
|
8105
|
+
</dl>
|
|
8106
|
+
</dd>
|
|
8107
|
+
</dl>
|
|
8108
|
+
|
|
8109
|
+
#### ⚙️ Parameters
|
|
8110
|
+
|
|
8111
|
+
<dl>
|
|
8112
|
+
<dd>
|
|
8113
|
+
|
|
8114
|
+
<dl>
|
|
8115
|
+
<dd>
|
|
8116
|
+
|
|
8117
|
+
**request:** `TheraApi.api.thera.misc.FilloutEorEmployeeRequest`
|
|
8118
|
+
|
|
8119
|
+
</dd>
|
|
8120
|
+
</dl>
|
|
8121
|
+
|
|
8122
|
+
<dl>
|
|
8123
|
+
<dd>
|
|
8124
|
+
|
|
8125
|
+
**requestOptions:** `Misc.RequestOptions`
|
|
8126
|
+
|
|
8127
|
+
</dd>
|
|
8128
|
+
</dl>
|
|
8129
|
+
</dd>
|
|
8130
|
+
</dl>
|
|
8131
|
+
|
|
8132
|
+
</dd>
|
|
8133
|
+
</dl>
|
|
8134
|
+
</details>
|
|
8135
|
+
|
|
8147
8136
|
## Offcycle API
|
|
8148
8137
|
|
|
8149
8138
|
<details><summary><code>client.api.thera.payroll.offcycleApi.<a href="/src/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.ts">getCurrentOffCycleChecks</a>(companyId) -> TheraApi.CheckPayrollResponse | undefined</code></summary>
|
|
@@ -9999,6 +9988,7 @@ Get all time tracking entries for a user within a date range
|
|
|
9999
9988
|
await client.api.thera.timetracking.timetrackingApi.getAllTimeTracking("string", "string", {
|
|
10000
9989
|
startDate: "string",
|
|
10001
9990
|
endDate: "string",
|
|
9991
|
+
timezone: "string",
|
|
10002
9992
|
});
|
|
10003
9993
|
```
|
|
10004
9994
|
|
|
@@ -33,10 +33,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.zeal = exports.thera = exports.services = exports.response = exports.request = exports.oneschema = exports.
|
|
36
|
+
exports.zeal = exports.thera = exports.services = exports.response = exports.request = exports.oneschema = exports.dev = exports.aiprise = void 0;
|
|
37
37
|
exports.aiprise = __importStar(require("./aiprise"));
|
|
38
38
|
exports.dev = __importStar(require("./dev"));
|
|
39
|
-
exports.external = __importStar(require("./external"));
|
|
40
39
|
exports.oneschema = __importStar(require("./oneschema"));
|
|
41
40
|
exports.request = __importStar(require("./request"));
|
|
42
41
|
exports.response = __importStar(require("./response"));
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import * as serializers from "../../../../../../../../../index";
|
|
5
5
|
import * as TheraApi from "../../../../../../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../../../../../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const GetEorEmployeeByEmailResponse: core.serialization.ObjectSchema<serializers.api.thera.eor.GetEorEmployeeByEmailResponse.Raw, TheraApi.api.thera.eor.GetEorEmployeeByEmailResponse>;
|
|
8
|
+
export declare namespace GetEorEmployeeByEmailResponse {
|
|
9
9
|
interface Raw {
|
|
10
10
|
employee: Record<string, unknown>;
|
|
11
11
|
}
|
|
@@ -36,8 +36,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.GetEorEmployeeByEmailResponse = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../../../../../../../core"));
|
|
41
|
-
exports.
|
|
41
|
+
exports.GetEorEmployeeByEmailResponse = core.serialization.object({
|
|
42
42
|
employee: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
43
43
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./GetEorTrackerResponse";
|
|
2
|
-
export * from "./
|
|
2
|
+
export * from "./GetEorEmployeeByEmailResponse";
|
|
@@ -15,4 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./GetEorTrackerResponse"), exports);
|
|
18
|
-
__exportStar(require("./
|
|
18
|
+
__exportStar(require("./GetEorEmployeeByEmailResponse"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../../../../../index";
|
|
5
|
+
import * as TheraApi from "../../../../../../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../../../../../../core";
|
|
7
|
+
import { WageType } from "../../../../../../../../model/resources/thera/resources/contract/types/WageType";
|
|
8
|
+
export declare const FilloutEorEmployeeWebhookRequest: core.serialization.ObjectSchema<serializers.api.thera.misc.FilloutEorEmployeeWebhookRequest.Raw, TheraApi.api.thera.misc.FilloutEorEmployeeWebhookRequest>;
|
|
9
|
+
export declare namespace FilloutEorEmployeeWebhookRequest {
|
|
10
|
+
interface Raw {
|
|
11
|
+
firstName: string;
|
|
12
|
+
lastName: string;
|
|
13
|
+
email: string;
|
|
14
|
+
country: string;
|
|
15
|
+
companyID: string;
|
|
16
|
+
teamId?: string | null;
|
|
17
|
+
jobTitle: string;
|
|
18
|
+
startDate: string;
|
|
19
|
+
rate: number;
|
|
20
|
+
wageType: WageType.Raw;
|
|
21
|
+
currency: string;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -36,18 +36,19 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
const core = __importStar(require("
|
|
41
|
-
const WageType_1 = require("
|
|
42
|
-
|
|
43
|
-
const ContractType_1 = require("../../../../../../model/resources/thera/resources/contract/types/ContractType");
|
|
44
|
-
exports.ExternalCreateContractorRequestV2 = core.serialization.object({
|
|
45
|
-
email: core.serialization.string(),
|
|
39
|
+
exports.FilloutEorEmployeeWebhookRequest = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
|
41
|
+
const WageType_1 = require("../../../../../../../../model/resources/thera/resources/contract/types/WageType");
|
|
42
|
+
exports.FilloutEorEmployeeWebhookRequest = core.serialization.object({
|
|
46
43
|
firstName: core.serialization.string(),
|
|
47
44
|
lastName: core.serialization.string(),
|
|
45
|
+
email: core.serialization.string(),
|
|
48
46
|
country: core.serialization.string(),
|
|
49
|
-
|
|
47
|
+
companyId: core.serialization.property("companyID", core.serialization.string()),
|
|
48
|
+
teamId: core.serialization.string().optional(),
|
|
49
|
+
jobTitle: core.serialization.string(),
|
|
50
|
+
startDate: core.serialization.string(),
|
|
51
|
+
rate: core.serialization.number(),
|
|
50
52
|
wageType: WageType_1.WageType,
|
|
51
|
-
|
|
52
|
-
contractType: ContractType_1.ContractType,
|
|
53
|
+
currency: core.serialization.string(),
|
|
53
54
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../../../../../index";
|
|
5
|
+
import * as TheraApi from "../../../../../../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../../../../../../core";
|
|
7
|
+
export declare const FilloutEorEmployeeWebhookResponse: core.serialization.ObjectSchema<serializers.api.thera.misc.FilloutEorEmployeeWebhookResponse.Raw, TheraApi.api.thera.misc.FilloutEorEmployeeWebhookResponse>;
|
|
8
|
+
export declare namespace FilloutEorEmployeeWebhookResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
message: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -36,8 +36,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
const core = __importStar(require("
|
|
41
|
-
exports.
|
|
42
|
-
|
|
39
|
+
exports.FilloutEorEmployeeWebhookResponse = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
|
41
|
+
exports.FilloutEorEmployeeWebhookResponse = core.serialization.object({
|
|
42
|
+
message: core.serialization.string(),
|
|
43
43
|
});
|
package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/index.d.ts
CHANGED
|
@@ -2,3 +2,5 @@ export * from "./DailyCronResponse";
|
|
|
2
2
|
export * from "./AutoWithdrawalResults";
|
|
3
3
|
export * from "./TriggeredWithdrawal";
|
|
4
4
|
export * from "./ContractRenewalCronResponse";
|
|
5
|
+
export * from "./FilloutEorEmployeeWebhookResponse";
|
|
6
|
+
export * from "./FilloutEorEmployeeWebhookRequest";
|
package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/index.js
CHANGED
|
@@ -18,3 +18,5 @@ __exportStar(require("./DailyCronResponse"), exports);
|
|
|
18
18
|
__exportStar(require("./AutoWithdrawalResults"), exports);
|
|
19
19
|
__exportStar(require("./TriggeredWithdrawal"), exports);
|
|
20
20
|
__exportStar(require("./ContractRenewalCronResponse"), exports);
|
|
21
|
+
__exportStar(require("./FilloutEorEmployeeWebhookResponse"), exports);
|
|
22
|
+
__exportStar(require("./FilloutEorEmployeeWebhookRequest"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.1-
|
|
1
|
+
export declare const SDK_VERSION = "0.0.1-prerelease2886-dev-2";
|
package/version.js
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as core from "../../../../../../core";
|
|
5
|
-
import { ExternalApi } from "../resources/externalApi/client/Client";
|
|
6
|
-
export declare namespace External {
|
|
7
|
-
interface Options {
|
|
8
|
-
environment: core.Supplier<string>;
|
|
9
|
-
/** Specify a custom URL to connect the client to. */
|
|
10
|
-
baseUrl?: core.Supplier<string>;
|
|
11
|
-
token?: core.Supplier<core.BearerToken | undefined>;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export declare class External {
|
|
15
|
-
protected readonly _options: External.Options;
|
|
16
|
-
protected _externalApi: ExternalApi | undefined;
|
|
17
|
-
constructor(_options: External.Options);
|
|
18
|
-
get externalApi(): ExternalApi;
|
|
19
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.External = void 0;
|
|
7
|
-
const Client_1 = require("../resources/externalApi/client/Client");
|
|
8
|
-
class External {
|
|
9
|
-
constructor(_options) {
|
|
10
|
-
this._options = _options;
|
|
11
|
-
}
|
|
12
|
-
get externalApi() {
|
|
13
|
-
var _a;
|
|
14
|
-
return ((_a = this._externalApi) !== null && _a !== void 0 ? _a : (this._externalApi = new Client_1.ExternalApi(this._options)));
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.External = External;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./resources"), exports);
|
|
18
|
-
__exportStar(require("./client"), exports);
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as core from "../../../../../../../../core";
|
|
5
|
-
import * as TheraApi from "../../../../../../../index";
|
|
6
|
-
export declare namespace ExternalApi {
|
|
7
|
-
interface Options {
|
|
8
|
-
environment: core.Supplier<string>;
|
|
9
|
-
/** Specify a custom URL to connect the client to. */
|
|
10
|
-
baseUrl?: core.Supplier<string>;
|
|
11
|
-
token?: core.Supplier<core.BearerToken | undefined>;
|
|
12
|
-
}
|
|
13
|
-
interface RequestOptions {
|
|
14
|
-
/** The maximum time to wait for a response in seconds. */
|
|
15
|
-
timeoutInSeconds?: number;
|
|
16
|
-
/** The number of times to retry the request. Defaults to 2. */
|
|
17
|
-
maxRetries?: number;
|
|
18
|
-
/** A hook to abort the request. */
|
|
19
|
-
abortSignal?: AbortSignal;
|
|
20
|
-
/** Additional headers to include in the request. */
|
|
21
|
-
headers?: Record<string, string>;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
export declare class ExternalApi {
|
|
25
|
-
protected readonly _options: ExternalApi.Options;
|
|
26
|
-
constructor(_options: ExternalApi.Options);
|
|
27
|
-
/**
|
|
28
|
-
* @param {TheraApi.api.external.ExternalCreateContractorRequestV2} request
|
|
29
|
-
* @param {ExternalApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* await client.api.external.externalApi.createContractorV2({
|
|
33
|
-
* email: "string",
|
|
34
|
-
* firstName: "string",
|
|
35
|
-
* lastName: "string",
|
|
36
|
-
* country: "string",
|
|
37
|
-
* currency: "string",
|
|
38
|
-
* wageType: "HOURLY",
|
|
39
|
-
* payCycle: {
|
|
40
|
-
* timezone: "string",
|
|
41
|
-
* cycleStartDate: "2023-01-15",
|
|
42
|
-
* cycleEnd: {
|
|
43
|
-
* type: "weekly"
|
|
44
|
-
* },
|
|
45
|
-
* paymentDueDays: 1,
|
|
46
|
-
* firstPayDate: "2023-01-15",
|
|
47
|
-
* lastPayDate: "2023-01-15",
|
|
48
|
-
* firstPayTotal: 1000000,
|
|
49
|
-
* lastPayTotal: 1000000,
|
|
50
|
-
* itemRecurrencesById: {
|
|
51
|
-
* "string": {
|
|
52
|
-
* itemType: "EXPENSE",
|
|
53
|
-
* description: "string",
|
|
54
|
-
* amount: 1000000,
|
|
55
|
-
* firstInvoiceDate: "2023-01-15",
|
|
56
|
-
* paymentCurrency: "string",
|
|
57
|
-
* deletedDateTime: {
|
|
58
|
-
* "key": "value"
|
|
59
|
-
* }
|
|
60
|
-
* }
|
|
61
|
-
* }
|
|
62
|
-
* },
|
|
63
|
-
* contractType: "FIXED_RATE"
|
|
64
|
-
* })
|
|
65
|
-
*/
|
|
66
|
-
createContractorV2(request: TheraApi.api.external.ExternalCreateContractorRequestV2, requestOptions?: ExternalApi.RequestOptions): Promise<TheraApi.api.external.ExternalSuccessResponseV2>;
|
|
67
|
-
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
68
|
-
}
|