@thera-hr/api-sdk 0.0.1-prerelease2694-production → 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.
Files changed (93) hide show
  1. package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  2. package/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  3. package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  4. package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  5. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +15 -0
  6. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +91 -32
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoApproveInvoiceForTeamsRequest.d.ts +6 -0
  8. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoApproveInvoiceForTeamsRequest.js +5 -0
  9. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  10. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  11. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  12. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  13. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  14. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  15. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  16. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  17. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  18. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  19. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +6 -6
  20. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  21. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  22. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  23. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  24. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
  25. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  26. package/api/resources/db/resources/company/types/CompanySettings.d.ts +0 -1
  27. package/api/resources/db/resources/company/types/Team.d.ts +2 -0
  28. package/api/resources/db/resources/migrations/types/LedgerMigrationMetadata.d.ts +4 -1
  29. package/api/resources/db/resources/migrations/types/LedgerTrxStatus.d.ts +9 -0
  30. package/api/resources/db/resources/migrations/types/LedgerTrxStatus.js +11 -0
  31. package/api/resources/db/resources/migrations/types/index.d.ts +1 -0
  32. package/api/resources/db/resources/migrations/types/index.js +1 -0
  33. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  34. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  35. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  36. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  37. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +15 -0
  38. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +91 -32
  39. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoApproveInvoiceForTeamsRequest.d.ts +6 -0
  40. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoApproveInvoiceForTeamsRequest.js +5 -0
  41. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  42. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  43. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  44. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  45. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  46. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  47. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  48. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  49. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  50. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  51. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +6 -6
  52. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  53. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  54. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  55. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  56. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
  57. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  58. package/dist/api/resources/db/resources/company/types/CompanySettings.d.ts +0 -1
  59. package/dist/api/resources/db/resources/company/types/Team.d.ts +2 -0
  60. package/dist/api/resources/db/resources/migrations/types/LedgerMigrationMetadata.d.ts +4 -1
  61. package/dist/api/resources/db/resources/migrations/types/LedgerTrxStatus.d.ts +9 -0
  62. package/dist/api/resources/db/resources/migrations/types/LedgerTrxStatus.js +11 -0
  63. package/dist/api/resources/db/resources/migrations/types/index.d.ts +1 -0
  64. package/dist/api/resources/db/resources/migrations/types/index.js +1 -0
  65. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoApproveInvoiceForTeamsRequest.d.ts +12 -0
  66. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoApproveInvoiceForTeamsRequest.js +33 -0
  67. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  68. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  69. package/dist/serialization/resources/db/resources/company/types/CompanySettings.d.ts +0 -1
  70. package/dist/serialization/resources/db/resources/company/types/CompanySettings.js +0 -1
  71. package/dist/serialization/resources/db/resources/company/types/Team.d.ts +1 -0
  72. package/dist/serialization/resources/db/resources/company/types/Team.js +1 -0
  73. package/dist/serialization/resources/db/resources/migrations/types/LedgerMigrationMetadata.d.ts +3 -0
  74. package/dist/serialization/resources/db/resources/migrations/types/LedgerMigrationMetadata.js +4 -1
  75. package/dist/serialization/resources/db/resources/migrations/types/LedgerTrxStatus.d.ts +10 -0
  76. package/dist/serialization/resources/db/resources/migrations/types/LedgerTrxStatus.js +31 -0
  77. package/dist/serialization/resources/db/resources/migrations/types/index.d.ts +1 -0
  78. package/dist/serialization/resources/db/resources/migrations/types/index.js +1 -0
  79. package/package.json +1 -1
  80. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoApproveInvoiceForTeamsRequest.d.ts +12 -0
  81. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetBulkAutoApproveInvoiceForTeamsRequest.js +33 -0
  82. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  83. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  84. package/serialization/resources/db/resources/company/types/CompanySettings.d.ts +0 -1
  85. package/serialization/resources/db/resources/company/types/CompanySettings.js +0 -1
  86. package/serialization/resources/db/resources/company/types/Team.d.ts +1 -0
  87. package/serialization/resources/db/resources/company/types/Team.js +1 -0
  88. package/serialization/resources/db/resources/migrations/types/LedgerMigrationMetadata.d.ts +3 -0
  89. package/serialization/resources/db/resources/migrations/types/LedgerMigrationMetadata.js +4 -1
  90. package/serialization/resources/db/resources/migrations/types/LedgerTrxStatus.d.ts +10 -0
  91. package/serialization/resources/db/resources/migrations/types/LedgerTrxStatus.js +31 -0
  92. package/serialization/resources/db/resources/migrations/types/index.d.ts +1 -0
  93. package/serialization/resources/db/resources/migrations/types/index.js +1 -0
@@ -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);
@@ -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
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SetBulkAutoApproveInvoiceForTeamsRequest = void 0;
30
+ const core = __importStar(require("../../../../../../../../../../core"));
31
+ exports.SetBulkAutoApproveInvoiceForTeamsRequest = core.serialization.object({
32
+ autoApproveInvoiceRequestByTeamId: core.serialization.record(core.serialization.string(), core.serialization.boolean()),
33
+ });
@@ -65,3 +65,4 @@ export * from "./GetWorkerWithdrawalDeliveryEstimate";
65
65
  export * from "./GetBankAccountDetailsResponse";
66
66
  export * from "./SetAutoWithdrawalResponse";
67
67
  export * from "./WorkerTransactionStatus";
68
+ export * from "./SetBulkAutoApproveInvoiceForTeamsRequest";
@@ -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);
@@ -18,6 +18,5 @@ export declare namespace CompanySettings {
18
18
  timeOffSettings?: TimeOffSettings.Raw | null;
19
19
  isTpOnboardingSkipped: boolean;
20
20
  autoApproveTimeOffRequests: boolean;
21
- autoApproveFixedRateInvoices?: boolean | null;
22
21
  }
23
22
  }
@@ -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
  });
@@ -13,5 +13,6 @@ export declare namespace Team {
13
13
  name: string;
14
14
  defaultPayCycles: Record<PayCycleType.Raw, DefaultPayCycle.Raw | null | undefined>;
15
15
  autoPay?: TeamAutoPay.Raw | null;
16
+ autoApproveInvoice?: boolean | null;
16
17
  }
17
18
  }
@@ -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.list(core.serialization.string()),
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
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thera-hr/api-sdk",
3
- "version": "0.0.1-prerelease2694-production",
3
+ "version": "0.0.1-prerelease2694-dev",
4
4
  "private": false,
5
5
  "repository": "https://github.com/CarbonNYC/thera-typescript-sdk",
6
6
  "main": "./index.js",
@@ -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
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SetBulkAutoApproveInvoiceForTeamsRequest = void 0;
30
+ const core = __importStar(require("../../../../../../../../../../core"));
31
+ exports.SetBulkAutoApproveInvoiceForTeamsRequest = core.serialization.object({
32
+ autoApproveInvoiceRequestByTeamId: core.serialization.record(core.serialization.string(), core.serialization.boolean()),
33
+ });
@@ -65,3 +65,4 @@ export * from "./GetWorkerWithdrawalDeliveryEstimate";
65
65
  export * from "./GetBankAccountDetailsResponse";
66
66
  export * from "./SetAutoWithdrawalResponse";
67
67
  export * from "./WorkerTransactionStatus";
68
+ export * from "./SetBulkAutoApproveInvoiceForTeamsRequest";
@@ -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);
@@ -18,6 +18,5 @@ export declare namespace CompanySettings {
18
18
  timeOffSettings?: TimeOffSettings.Raw | null;
19
19
  isTpOnboardingSkipped: boolean;
20
20
  autoApproveTimeOffRequests: boolean;
21
- autoApproveFixedRateInvoices?: boolean | null;
22
21
  }
23
22
  }
@@ -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
  });
@@ -13,5 +13,6 @@ export declare namespace Team {
13
13
  name: string;
14
14
  defaultPayCycles: Record<PayCycleType.Raw, DefaultPayCycle.Raw | null | undefined>;
15
15
  autoPay?: TeamAutoPay.Raw | null;
16
+ autoApproveInvoice?: boolean | null;
16
17
  }
17
18
  }
@@ -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.list(core.serialization.string()),
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
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.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);