@thera-hr/api-sdk 0.0.1-prerelease2694-dev-2 → 0.0.1-prerelease2694-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
- package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
- package/api/resources/api/resources/thera/client/Client.d.ts +0 -3
- package/api/resources/api/resources/thera/client/Client.js +12 -17
- package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +15 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +91 -32
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoApproveInvoiceForTeamsRequest.d.ts +6 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +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/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/index.js +1 -2
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +6 -6
- 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.js +9 -9
- 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/api/resources/db/resources/company/types/CompanySettings.d.ts +0 -1
- package/api/resources/db/resources/company/types/Team.d.ts +2 -0
- package/api/resources/db/resources/migrations/types/LedgerMigrationMetadata.d.ts +4 -1
- package/api/resources/db/resources/migrations/types/LedgerTrxStatus.d.ts +9 -0
- package/{dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorEmployeeByUserIdResponse.js → api/resources/db/resources/migrations/types/LedgerTrxStatus.js} +6 -0
- package/api/resources/db/resources/migrations/types/index.d.ts +1 -0
- package/api/resources/db/resources/migrations/types/index.js +1 -0
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
- package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/client/Client.d.ts +0 -3
- package/dist/api/resources/api/resources/thera/client/Client.js +12 -17
- package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +15 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +91 -32
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoApproveInvoiceForTeamsRequest.d.ts +6 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +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/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/index.js +1 -2
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +6 -6
- 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.js +9 -9
- 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/api/resources/db/resources/company/types/CompanySettings.d.ts +0 -1
- package/dist/api/resources/db/resources/company/types/Team.d.ts +2 -0
- package/dist/api/resources/db/resources/migrations/types/LedgerMigrationMetadata.d.ts +4 -1
- package/dist/api/resources/db/resources/migrations/types/LedgerTrxStatus.d.ts +9 -0
- package/dist/api/resources/{api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorTrackerResponse.js → db/resources/migrations/types/LedgerTrxStatus.js} +6 -0
- package/dist/api/resources/db/resources/migrations/types/index.d.ts +1 -0
- package/dist/api/resources/db/resources/migrations/types/index.js +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoApproveInvoiceForTeamsRequest.d.ts +12 -0
- package/{serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorEmployeeByUserIdResponse.js → dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoApproveInvoiceForTeamsRequest.js} +3 -3
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/index.js +1 -2
- package/dist/serialization/resources/db/resources/company/types/CompanySettings.d.ts +0 -1
- package/dist/serialization/resources/db/resources/company/types/CompanySettings.js +0 -1
- package/dist/serialization/resources/db/resources/company/types/Team.d.ts +1 -0
- package/dist/serialization/resources/db/resources/company/types/Team.js +1 -0
- package/dist/serialization/resources/db/resources/migrations/types/LedgerMigrationMetadata.d.ts +3 -0
- package/dist/serialization/resources/db/resources/migrations/types/LedgerMigrationMetadata.js +4 -1
- package/dist/serialization/resources/db/resources/migrations/types/LedgerTrxStatus.d.ts +10 -0
- package/dist/serialization/resources/{api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorEmployeeByUserIdResponse.js → db/resources/migrations/types/LedgerTrxStatus.js} +3 -5
- package/dist/serialization/resources/db/resources/migrations/types/index.d.ts +1 -0
- package/dist/serialization/resources/db/resources/migrations/types/index.js +1 -0
- package/package.json +1 -1
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoApproveInvoiceForTeamsRequest.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/{eor/resources/eorTrackerApi/types/GetEorTrackerResponse.js → bank/resources/bankApi/types/SetBulkAutoApproveInvoiceForTeamsRequest.js} +3 -3
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
- package/serialization/resources/api/resources/thera/resources/index.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/index.js +1 -2
- package/serialization/resources/db/resources/company/types/CompanySettings.d.ts +0 -1
- package/serialization/resources/db/resources/company/types/CompanySettings.js +0 -1
- package/serialization/resources/db/resources/company/types/Team.d.ts +1 -0
- package/serialization/resources/db/resources/company/types/Team.js +1 -0
- package/serialization/resources/db/resources/migrations/types/LedgerMigrationMetadata.d.ts +3 -0
- package/serialization/resources/db/resources/migrations/types/LedgerMigrationMetadata.js +4 -1
- package/serialization/resources/db/resources/migrations/types/LedgerTrxStatus.d.ts +10 -0
- package/{dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorTrackerResponse.js → serialization/resources/db/resources/migrations/types/LedgerTrxStatus.js} +3 -5
- package/serialization/resources/db/resources/migrations/types/index.d.ts +1 -0
- package/serialization/resources/db/resources/migrations/types/index.js +1 -0
- package/api/resources/api/resources/thera/resources/eor/client/Client.d.ts +0 -22
- package/api/resources/api/resources/thera/resources/eor/client/Client.js +0 -17
- package/api/resources/api/resources/thera/resources/eor/client/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/eor/client/index.js +0 -2
- package/api/resources/api/resources/thera/resources/eor/index.d.ts +0 -2
- package/api/resources/api/resources/thera/resources/eor/index.js +0 -18
- package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.d.ts +0 -41
- package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +0 -174
- package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/index.js +0 -2
- package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/index.d.ts +0 -2
- package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/index.js +0 -18
- package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorEmployeeByUserIdResponse.d.ts +0 -6
- package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorTrackerResponse.d.ts +0 -6
- package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.d.ts +0 -2
- package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.js +0 -18
- package/api/resources/api/resources/thera/resources/eor/resources/index.d.ts +0 -2
- package/api/resources/api/resources/thera/resources/eor/resources/index.js +0 -31
- package/dist/api/resources/api/resources/thera/resources/eor/client/Client.d.ts +0 -22
- package/dist/api/resources/api/resources/thera/resources/eor/client/Client.js +0 -17
- package/dist/api/resources/api/resources/thera/resources/eor/client/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/eor/client/index.js +0 -2
- package/dist/api/resources/api/resources/thera/resources/eor/index.d.ts +0 -2
- package/dist/api/resources/api/resources/thera/resources/eor/index.js +0 -18
- package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.d.ts +0 -41
- package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +0 -174
- package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/index.js +0 -2
- package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/index.d.ts +0 -2
- package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/index.js +0 -18
- package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorEmployeeByUserIdResponse.d.ts +0 -6
- package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorTrackerResponse.d.ts +0 -6
- package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.d.ts +0 -2
- package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.js +0 -18
- package/dist/api/resources/api/resources/thera/resources/eor/resources/index.d.ts +0 -2
- package/dist/api/resources/api/resources/thera/resources/eor/resources/index.js +0 -31
- package/dist/serialization/resources/api/resources/thera/resources/eor/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/eor/index.js +0 -17
- package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/index.js +0 -17
- package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorEmployeeByUserIdResponse.d.ts +0 -12
- package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorTrackerResponse.d.ts +0 -12
- package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.d.ts +0 -2
- package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.js +0 -18
- package/dist/serialization/resources/api/resources/thera/resources/eor/resources/index.d.ts +0 -2
- package/dist/serialization/resources/api/resources/thera/resources/eor/resources/index.js +0 -31
- package/serialization/resources/api/resources/thera/resources/eor/index.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/eor/index.js +0 -17
- package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/index.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/index.js +0 -17
- package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorEmployeeByUserIdResponse.d.ts +0 -12
- package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorTrackerResponse.d.ts +0 -12
- package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.d.ts +0 -2
- package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.js +0 -18
- package/serialization/resources/api/resources/thera/resources/eor/resources/index.d.ts +0 -2
- package/serialization/resources/api/resources/thera/resources/eor/resources/index.js +0 -31
- /package/api/resources/api/resources/thera/resources/{eor/resources/eorTrackerApi/types/GetEorEmployeeByUserIdResponse.js → bank/resources/bankApi/types/SetBulkAutoApproveInvoiceForTeamsRequest.js} +0 -0
- /package/{api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorTrackerResponse.js → dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoApproveInvoiceForTeamsRequest.js} +0 -0
|
@@ -26,8 +26,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.SetBulkAutoApproveInvoiceForTeamsRequest = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../../../../../../core"));
|
|
31
|
-
exports.
|
|
32
|
-
|
|
31
|
+
exports.SetBulkAutoApproveInvoiceForTeamsRequest = core.serialization.object({
|
|
32
|
+
autoApproveInvoiceRequestByTeamId: core.serialization.record(core.serialization.string(), core.serialization.boolean()),
|
|
33
33
|
});
|
|
@@ -81,3 +81,4 @@ __exportStar(require("./GetWorkerWithdrawalDeliveryEstimate"), exports);
|
|
|
81
81
|
__exportStar(require("./GetBankAccountDetailsResponse"), exports);
|
|
82
82
|
__exportStar(require("./SetAutoWithdrawalResponse"), exports);
|
|
83
83
|
__exportStar(require("./WorkerTransactionStatus"), exports);
|
|
84
|
+
__exportStar(require("./SetBulkAutoApproveInvoiceForTeamsRequest"), exports);
|
|
@@ -7,7 +7,6 @@ export * as disbursement from "./disbursement";
|
|
|
7
7
|
export * as document from "./document";
|
|
8
8
|
export * as email from "./email";
|
|
9
9
|
export * as employment from "./employment";
|
|
10
|
-
export * as eor from "./eor";
|
|
11
10
|
export * as misc from "./misc";
|
|
12
11
|
export * as payroll from "./payroll";
|
|
13
12
|
export * as timeoff from "./timeoff";
|
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.user = exports.tp = exports.timetracking = exports.timeoff = exports.payroll = exports.misc = exports.
|
|
26
|
+
exports.user = exports.tp = exports.timetracking = exports.timeoff = exports.payroll = exports.misc = exports.employment = exports.email = exports.document = exports.disbursement = exports.contractor = exports.company = exports.common = exports.bank = exports.accounting = void 0;
|
|
27
27
|
exports.accounting = __importStar(require("./accounting"));
|
|
28
28
|
exports.bank = __importStar(require("./bank"));
|
|
29
29
|
exports.common = __importStar(require("./common"));
|
|
@@ -33,7 +33,6 @@ exports.disbursement = __importStar(require("./disbursement"));
|
|
|
33
33
|
exports.document = __importStar(require("./document"));
|
|
34
34
|
exports.email = __importStar(require("./email"));
|
|
35
35
|
exports.employment = __importStar(require("./employment"));
|
|
36
|
-
exports.eor = __importStar(require("./eor"));
|
|
37
36
|
exports.misc = __importStar(require("./misc"));
|
|
38
37
|
exports.payroll = __importStar(require("./payroll"));
|
|
39
38
|
exports.timeoff = __importStar(require("./timeoff"));
|
|
@@ -40,5 +40,4 @@ exports.CompanySettings = core.serialization.object({
|
|
|
40
40
|
timeOffSettings: TimeOffSettings_1.TimeOffSettings.optional(),
|
|
41
41
|
isTpOnboardingSkipped: core.serialization.boolean(),
|
|
42
42
|
autoApproveTimeOffRequests: core.serialization.boolean(),
|
|
43
|
-
autoApproveFixedRateInvoices: core.serialization.boolean().optional(),
|
|
44
43
|
});
|
|
@@ -35,4 +35,5 @@ exports.Team = core.serialization.object({
|
|
|
35
35
|
name: core.serialization.string(),
|
|
36
36
|
defaultPayCycles: core.serialization.record(PayCycleType_1.PayCycleType, DefaultPayCycle_1.DefaultPayCycle.optional()),
|
|
37
37
|
autoPay: TeamAutoPay_1.TeamAutoPay.optional(),
|
|
38
|
+
autoApproveInvoice: core.serialization.boolean().optional(),
|
|
38
39
|
});
|
package/dist/serialization/resources/db/resources/migrations/types/LedgerMigrationMetadata.d.ts
CHANGED
|
@@ -5,12 +5,15 @@ import * as serializers from "../../../../../index";
|
|
|
5
5
|
import * as TheraApi from "../../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../../core";
|
|
7
7
|
import { LedgerMigrationType } from "./LedgerMigrationType";
|
|
8
|
+
import { LedgerTrxStatus } from "./LedgerTrxStatus";
|
|
8
9
|
import { LedgerMigrationErrorMetadata } from "./LedgerMigrationErrorMetadata";
|
|
9
10
|
export declare const LedgerMigrationMetadata: core.serialization.ObjectSchema<serializers.db.LedgerMigrationMetadata.Raw, TheraApi.db.LedgerMigrationMetadata>;
|
|
10
11
|
export declare namespace LedgerMigrationMetadata {
|
|
11
12
|
interface Raw {
|
|
12
13
|
ledgerMigrationType: LedgerMigrationType.Raw;
|
|
13
14
|
sourceLedgerTrxId: string[];
|
|
15
|
+
destinationLedgerTrxStatus?: LedgerTrxStatus.Raw | null;
|
|
16
|
+
destinationLedgerTrxId?: string | null;
|
|
14
17
|
additionalData: Record<string, string>;
|
|
15
18
|
errorMetadata?: LedgerMigrationErrorMetadata.Raw | null;
|
|
16
19
|
}
|
package/dist/serialization/resources/db/resources/migrations/types/LedgerMigrationMetadata.js
CHANGED
|
@@ -29,10 +29,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.LedgerMigrationMetadata = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../../core"));
|
|
31
31
|
const LedgerMigrationType_1 = require("./LedgerMigrationType");
|
|
32
|
+
const LedgerTrxStatus_1 = require("./LedgerTrxStatus");
|
|
32
33
|
const LedgerMigrationErrorMetadata_1 = require("./LedgerMigrationErrorMetadata");
|
|
33
34
|
exports.LedgerMigrationMetadata = core.serialization.object({
|
|
34
35
|
ledgerMigrationType: LedgerMigrationType_1.LedgerMigrationType,
|
|
35
|
-
sourceLedgerTrxId: core.serialization.
|
|
36
|
+
sourceLedgerTrxId: core.serialization.set(core.serialization.string()),
|
|
37
|
+
destinationLedgerTrxStatus: LedgerTrxStatus_1.LedgerTrxStatus.optional(),
|
|
38
|
+
destinationLedgerTrxId: core.serialization.string().optional(),
|
|
36
39
|
additionalData: core.serialization.record(core.serialization.string(), core.serialization.string()),
|
|
37
40
|
errorMetadata: LedgerMigrationErrorMetadata_1.LedgerMigrationErrorMetadata.optional(),
|
|
38
41
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
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 LedgerTrxStatus: core.serialization.Schema<serializers.db.LedgerTrxStatus.Raw, TheraApi.db.LedgerTrxStatus>;
|
|
8
|
+
export declare namespace LedgerTrxStatus {
|
|
9
|
+
type Raw = "POSTED" | "PENDING" | "UNKNOWN";
|
|
10
|
+
}
|
|
@@ -26,8 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
30
|
-
const core = __importStar(require("
|
|
31
|
-
exports.
|
|
32
|
-
employee: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
33
|
-
});
|
|
29
|
+
exports.LedgerTrxStatus = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../core"));
|
|
31
|
+
exports.LedgerTrxStatus = core.serialization.enum_(["POSTED", "PENDING", "UNKNOWN"]);
|
|
@@ -3,5 +3,6 @@ export * from "./MigrationType";
|
|
|
3
3
|
export * from "./MigrationStatus";
|
|
4
4
|
export * from "./MigrationMetadata";
|
|
5
5
|
export * from "./LedgerMigrationMetadata";
|
|
6
|
+
export * from "./LedgerTrxStatus";
|
|
6
7
|
export * from "./LedgerMigrationType";
|
|
7
8
|
export * from "./LedgerMigrationErrorMetadata";
|
|
@@ -19,5 +19,6 @@ __exportStar(require("./MigrationType"), exports);
|
|
|
19
19
|
__exportStar(require("./MigrationStatus"), exports);
|
|
20
20
|
__exportStar(require("./MigrationMetadata"), exports);
|
|
21
21
|
__exportStar(require("./LedgerMigrationMetadata"), exports);
|
|
22
|
+
__exportStar(require("./LedgerTrxStatus"), exports);
|
|
22
23
|
__exportStar(require("./LedgerMigrationType"), exports);
|
|
23
24
|
__exportStar(require("./LedgerMigrationErrorMetadata"), exports);
|
package/package.json
CHANGED
|
@@ -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 SetBulkAutoApproveInvoiceForTeamsRequest: core.serialization.ObjectSchema<serializers.api.thera.bank.SetBulkAutoApproveInvoiceForTeamsRequest.Raw, TheraApi.api.thera.bank.SetBulkAutoApproveInvoiceForTeamsRequest>;
|
|
8
|
+
export declare namespace SetBulkAutoApproveInvoiceForTeamsRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
autoApproveInvoiceRequestByTeamId: Record<string, boolean>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -26,8 +26,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.SetBulkAutoApproveInvoiceForTeamsRequest = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../../../../../../core"));
|
|
31
|
-
exports.
|
|
32
|
-
|
|
31
|
+
exports.SetBulkAutoApproveInvoiceForTeamsRequest = core.serialization.object({
|
|
32
|
+
autoApproveInvoiceRequestByTeamId: core.serialization.record(core.serialization.string(), core.serialization.boolean()),
|
|
33
33
|
});
|
package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js
CHANGED
|
@@ -81,3 +81,4 @@ __exportStar(require("./GetWorkerWithdrawalDeliveryEstimate"), exports);
|
|
|
81
81
|
__exportStar(require("./GetBankAccountDetailsResponse"), exports);
|
|
82
82
|
__exportStar(require("./SetAutoWithdrawalResponse"), exports);
|
|
83
83
|
__exportStar(require("./WorkerTransactionStatus"), exports);
|
|
84
|
+
__exportStar(require("./SetBulkAutoApproveInvoiceForTeamsRequest"), exports);
|
|
@@ -7,7 +7,6 @@ export * as disbursement from "./disbursement";
|
|
|
7
7
|
export * as document from "./document";
|
|
8
8
|
export * as email from "./email";
|
|
9
9
|
export * as employment from "./employment";
|
|
10
|
-
export * as eor from "./eor";
|
|
11
10
|
export * as misc from "./misc";
|
|
12
11
|
export * as payroll from "./payroll";
|
|
13
12
|
export * as timeoff from "./timeoff";
|
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.user = exports.tp = exports.timetracking = exports.timeoff = exports.payroll = exports.misc = exports.
|
|
26
|
+
exports.user = exports.tp = exports.timetracking = exports.timeoff = exports.payroll = exports.misc = exports.employment = exports.email = exports.document = exports.disbursement = exports.contractor = exports.company = exports.common = exports.bank = exports.accounting = void 0;
|
|
27
27
|
exports.accounting = __importStar(require("./accounting"));
|
|
28
28
|
exports.bank = __importStar(require("./bank"));
|
|
29
29
|
exports.common = __importStar(require("./common"));
|
|
@@ -33,7 +33,6 @@ exports.disbursement = __importStar(require("./disbursement"));
|
|
|
33
33
|
exports.document = __importStar(require("./document"));
|
|
34
34
|
exports.email = __importStar(require("./email"));
|
|
35
35
|
exports.employment = __importStar(require("./employment"));
|
|
36
|
-
exports.eor = __importStar(require("./eor"));
|
|
37
36
|
exports.misc = __importStar(require("./misc"));
|
|
38
37
|
exports.payroll = __importStar(require("./payroll"));
|
|
39
38
|
exports.timeoff = __importStar(require("./timeoff"));
|
|
@@ -40,5 +40,4 @@ exports.CompanySettings = core.serialization.object({
|
|
|
40
40
|
timeOffSettings: TimeOffSettings_1.TimeOffSettings.optional(),
|
|
41
41
|
isTpOnboardingSkipped: core.serialization.boolean(),
|
|
42
42
|
autoApproveTimeOffRequests: core.serialization.boolean(),
|
|
43
|
-
autoApproveFixedRateInvoices: core.serialization.boolean().optional(),
|
|
44
43
|
});
|
|
@@ -35,4 +35,5 @@ exports.Team = core.serialization.object({
|
|
|
35
35
|
name: core.serialization.string(),
|
|
36
36
|
defaultPayCycles: core.serialization.record(PayCycleType_1.PayCycleType, DefaultPayCycle_1.DefaultPayCycle.optional()),
|
|
37
37
|
autoPay: TeamAutoPay_1.TeamAutoPay.optional(),
|
|
38
|
+
autoApproveInvoice: core.serialization.boolean().optional(),
|
|
38
39
|
});
|
|
@@ -5,12 +5,15 @@ import * as serializers from "../../../../../index";
|
|
|
5
5
|
import * as TheraApi from "../../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../../core";
|
|
7
7
|
import { LedgerMigrationType } from "./LedgerMigrationType";
|
|
8
|
+
import { LedgerTrxStatus } from "./LedgerTrxStatus";
|
|
8
9
|
import { LedgerMigrationErrorMetadata } from "./LedgerMigrationErrorMetadata";
|
|
9
10
|
export declare const LedgerMigrationMetadata: core.serialization.ObjectSchema<serializers.db.LedgerMigrationMetadata.Raw, TheraApi.db.LedgerMigrationMetadata>;
|
|
10
11
|
export declare namespace LedgerMigrationMetadata {
|
|
11
12
|
interface Raw {
|
|
12
13
|
ledgerMigrationType: LedgerMigrationType.Raw;
|
|
13
14
|
sourceLedgerTrxId: string[];
|
|
15
|
+
destinationLedgerTrxStatus?: LedgerTrxStatus.Raw | null;
|
|
16
|
+
destinationLedgerTrxId?: string | null;
|
|
14
17
|
additionalData: Record<string, string>;
|
|
15
18
|
errorMetadata?: LedgerMigrationErrorMetadata.Raw | null;
|
|
16
19
|
}
|
|
@@ -29,10 +29,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.LedgerMigrationMetadata = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../../core"));
|
|
31
31
|
const LedgerMigrationType_1 = require("./LedgerMigrationType");
|
|
32
|
+
const LedgerTrxStatus_1 = require("./LedgerTrxStatus");
|
|
32
33
|
const LedgerMigrationErrorMetadata_1 = require("./LedgerMigrationErrorMetadata");
|
|
33
34
|
exports.LedgerMigrationMetadata = core.serialization.object({
|
|
34
35
|
ledgerMigrationType: LedgerMigrationType_1.LedgerMigrationType,
|
|
35
|
-
sourceLedgerTrxId: core.serialization.
|
|
36
|
+
sourceLedgerTrxId: core.serialization.set(core.serialization.string()),
|
|
37
|
+
destinationLedgerTrxStatus: LedgerTrxStatus_1.LedgerTrxStatus.optional(),
|
|
38
|
+
destinationLedgerTrxId: core.serialization.string().optional(),
|
|
36
39
|
additionalData: core.serialization.record(core.serialization.string(), core.serialization.string()),
|
|
37
40
|
errorMetadata: LedgerMigrationErrorMetadata_1.LedgerMigrationErrorMetadata.optional(),
|
|
38
41
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
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 LedgerTrxStatus: core.serialization.Schema<serializers.db.LedgerTrxStatus.Raw, TheraApi.db.LedgerTrxStatus>;
|
|
8
|
+
export declare namespace LedgerTrxStatus {
|
|
9
|
+
type Raw = "POSTED" | "PENDING" | "UNKNOWN";
|
|
10
|
+
}
|
|
@@ -26,8 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
30
|
-
const core = __importStar(require("
|
|
31
|
-
exports.
|
|
32
|
-
employees: core.serialization.list(core.serialization.record(core.serialization.string(), core.serialization.unknown())),
|
|
33
|
-
});
|
|
29
|
+
exports.LedgerTrxStatus = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../core"));
|
|
31
|
+
exports.LedgerTrxStatus = core.serialization.enum_(["POSTED", "PENDING", "UNKNOWN"]);
|
|
@@ -3,5 +3,6 @@ export * from "./MigrationType";
|
|
|
3
3
|
export * from "./MigrationStatus";
|
|
4
4
|
export * from "./MigrationMetadata";
|
|
5
5
|
export * from "./LedgerMigrationMetadata";
|
|
6
|
+
export * from "./LedgerTrxStatus";
|
|
6
7
|
export * from "./LedgerMigrationType";
|
|
7
8
|
export * from "./LedgerMigrationErrorMetadata";
|
|
@@ -19,5 +19,6 @@ __exportStar(require("./MigrationType"), exports);
|
|
|
19
19
|
__exportStar(require("./MigrationStatus"), exports);
|
|
20
20
|
__exportStar(require("./MigrationMetadata"), exports);
|
|
21
21
|
__exportStar(require("./LedgerMigrationMetadata"), exports);
|
|
22
|
+
__exportStar(require("./LedgerTrxStatus"), exports);
|
|
22
23
|
__exportStar(require("./LedgerMigrationType"), exports);
|
|
23
24
|
__exportStar(require("./LedgerMigrationErrorMetadata"), exports);
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as core from "../../../../../../../../core";
|
|
5
|
-
import { EorTrackerApi } from "../resources/eorTrackerApi/client/Client";
|
|
6
|
-
export declare namespace Eor {
|
|
7
|
-
interface Options {
|
|
8
|
-
environment: core.Supplier<string>;
|
|
9
|
-
token?: core.Supplier<core.BearerToken | undefined>;
|
|
10
|
-
}
|
|
11
|
-
interface RequestOptions {
|
|
12
|
-
timeoutInSeconds?: number;
|
|
13
|
-
maxRetries?: number;
|
|
14
|
-
abortSignal?: AbortSignal;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
export declare class Eor {
|
|
18
|
-
protected readonly _options: Eor.Options;
|
|
19
|
-
constructor(_options: Eor.Options);
|
|
20
|
-
protected _eorTrackerApi: EorTrackerApi | undefined;
|
|
21
|
-
get eorTrackerApi(): EorTrackerApi;
|
|
22
|
-
}
|
|
@@ -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.Eor = void 0;
|
|
7
|
-
const Client_1 = require("../resources/eorTrackerApi/client/Client");
|
|
8
|
-
class Eor {
|
|
9
|
-
constructor(_options) {
|
|
10
|
-
this._options = _options;
|
|
11
|
-
}
|
|
12
|
-
get eorTrackerApi() {
|
|
13
|
-
var _a;
|
|
14
|
-
return ((_a = this._eorTrackerApi) !== null && _a !== void 0 ? _a : (this._eorTrackerApi = new Client_1.EorTrackerApi(this._options)));
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.Eor = Eor;
|
|
@@ -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);
|
package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.d.ts
DELETED
|
@@ -1,41 +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 EorTrackerApi {
|
|
7
|
-
interface Options {
|
|
8
|
-
environment: core.Supplier<string>;
|
|
9
|
-
token?: core.Supplier<core.BearerToken | undefined>;
|
|
10
|
-
}
|
|
11
|
-
interface RequestOptions {
|
|
12
|
-
timeoutInSeconds?: number;
|
|
13
|
-
maxRetries?: number;
|
|
14
|
-
abortSignal?: AbortSignal;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
export declare class EorTrackerApi {
|
|
18
|
-
protected readonly _options: EorTrackerApi.Options;
|
|
19
|
-
constructor(_options: EorTrackerApi.Options);
|
|
20
|
-
/**
|
|
21
|
-
* Gets EOR employee data from Airtable for a specific company
|
|
22
|
-
*
|
|
23
|
-
* @param {string} companyId
|
|
24
|
-
* @param {EorTrackerApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* await client.api.thera.eor.eorTrackerApi.getEorTracker("string")
|
|
28
|
-
*/
|
|
29
|
-
getEorTracker(companyId: string, requestOptions?: EorTrackerApi.RequestOptions): Promise<TheraApi.api.thera.eor.GetEorTrackerResponse>;
|
|
30
|
-
/**
|
|
31
|
-
* Gets EOR employee data from Airtable for a specific employee user ID
|
|
32
|
-
*
|
|
33
|
-
* @param {string} employeeUserId
|
|
34
|
-
* @param {EorTrackerApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* await client.api.thera.eor.eorTrackerApi.getEorEmployeeByUserId("string")
|
|
38
|
-
*/
|
|
39
|
-
getEorEmployeeByUserId(employeeUserId: string, requestOptions?: EorTrackerApi.RequestOptions): Promise<TheraApi.api.thera.eor.GetEorEmployeeByUserIdResponse>;
|
|
40
|
-
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
41
|
-
}
|