@thera-hr/api-sdk 1.2.0-prerelease2685-staging → 1.2.0-prerelease2695-staging

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 (113) 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/external/resources/externalApi/client/Client.js +1 -1
  4. package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  5. package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  6. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +39 -39
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ContractorSubscriptionPayIn.d.ts +8 -0
  8. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ContractorSubscriptionPayIn.js +5 -0
  9. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.d.ts +4 -1
  10. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  11. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  12. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
  13. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  14. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  15. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  16. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  17. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  18. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  19. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  20. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  21. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  22. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  23. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
  24. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  25. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  26. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  27. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  28. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  29. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  30. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +14 -14
  31. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  32. package/api/resources/db/resources/company/types/Company.d.ts +1 -0
  33. package/api/resources/db/resources/company/types/Flags.d.ts +2 -2
  34. package/api/resources/db/resources/company/types/LastContractorBillingInfo.d.ts +9 -0
  35. package/api/resources/db/resources/company/types/LastContractorBillingInfo.js +5 -0
  36. package/api/resources/db/resources/company/types/index.d.ts +1 -0
  37. package/api/resources/db/resources/company/types/index.js +1 -0
  38. package/api/resources/db/resources/contract/types/Contract.d.ts +2 -0
  39. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  40. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  41. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  42. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  43. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  44. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +39 -39
  45. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ContractorSubscriptionPayIn.d.ts +8 -0
  46. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ContractorSubscriptionPayIn.js +5 -0
  47. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.d.ts +4 -1
  48. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  49. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  50. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
  51. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  52. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  53. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  54. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  55. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  56. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  57. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  58. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  59. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  60. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  61. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
  62. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  63. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  64. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  65. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  66. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  67. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  68. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +14 -14
  69. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  70. package/dist/api/resources/db/resources/company/types/Company.d.ts +1 -0
  71. package/dist/api/resources/db/resources/company/types/Flags.d.ts +2 -2
  72. package/dist/api/resources/db/resources/company/types/LastContractorBillingInfo.d.ts +9 -0
  73. package/dist/api/resources/db/resources/company/types/LastContractorBillingInfo.js +5 -0
  74. package/dist/api/resources/db/resources/company/types/index.d.ts +1 -0
  75. package/dist/api/resources/db/resources/company/types/index.js +1 -0
  76. package/dist/api/resources/db/resources/contract/types/Contract.d.ts +2 -0
  77. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ContractorSubscriptionPayIn.d.ts +14 -0
  78. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ContractorSubscriptionPayIn.js +45 -0
  79. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.d.ts +5 -1
  80. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.js +2 -0
  81. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  82. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  83. package/dist/serialization/resources/db/resources/company/types/Company.d.ts +2 -0
  84. package/dist/serialization/resources/db/resources/company/types/Company.js +2 -0
  85. package/dist/serialization/resources/db/resources/company/types/Flags.d.ts +2 -2
  86. package/dist/serialization/resources/db/resources/company/types/Flags.js +2 -2
  87. package/dist/serialization/resources/db/resources/company/types/LastContractorBillingInfo.d.ts +14 -0
  88. package/dist/serialization/resources/db/resources/company/types/LastContractorBillingInfo.js +45 -0
  89. package/dist/serialization/resources/db/resources/company/types/index.d.ts +1 -0
  90. package/dist/serialization/resources/db/resources/company/types/index.js +1 -0
  91. package/dist/serialization/resources/db/resources/contract/types/Contract.d.ts +1 -0
  92. package/dist/serialization/resources/db/resources/contract/types/Contract.js +1 -0
  93. package/dist/version.d.ts +1 -1
  94. package/dist/version.js +1 -1
  95. package/package.json +1 -1
  96. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ContractorSubscriptionPayIn.d.ts +14 -0
  97. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ContractorSubscriptionPayIn.js +45 -0
  98. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.d.ts +5 -1
  99. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.js +2 -0
  100. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  101. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  102. package/serialization/resources/db/resources/company/types/Company.d.ts +2 -0
  103. package/serialization/resources/db/resources/company/types/Company.js +2 -0
  104. package/serialization/resources/db/resources/company/types/Flags.d.ts +2 -2
  105. package/serialization/resources/db/resources/company/types/Flags.js +2 -2
  106. package/serialization/resources/db/resources/company/types/LastContractorBillingInfo.d.ts +14 -0
  107. package/serialization/resources/db/resources/company/types/LastContractorBillingInfo.js +45 -0
  108. package/serialization/resources/db/resources/company/types/index.d.ts +1 -0
  109. package/serialization/resources/db/resources/company/types/index.js +1 -0
  110. package/serialization/resources/db/resources/contract/types/Contract.d.ts +1 -0
  111. package/serialization/resources/db/resources/contract/types/Contract.js +1 -0
  112. package/version.d.ts +1 -1
  113. package/version.js +1 -1
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as TheraApi from "../../../../../index";
5
5
  export interface Flags {
6
- isActive?: boolean;
6
+ companyActive?: boolean;
7
7
  /** The Thera payment system that the company will be using. 1 is Stripe Express, 2 is Payments V2 (Wise, etc.). This will match the `paymentsVersion` of the `Company` that invites the contractor to the platform.integer */
8
8
  paymentsVersion: number;
9
9
  csv: boolean;
@@ -24,5 +24,5 @@ export interface Flags {
24
24
  autoPayExposed: boolean;
25
25
  mfaEnabled: boolean;
26
26
  separateRevenue?: boolean;
27
- chargeActiveWorkersMonthly?: boolean;
27
+ chargeCompanyWithActiveWorkersModel?: boolean;
28
28
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface LastContractorBillingInfo {
5
+ contractorCount: number;
6
+ /** The most recent billing month for which the company has successfully paid its invoice. Used to determine whether the billing cron should run for the current cycle. If absent, it indicates no invoices have been paid yet. */
7
+ recentInvoicePaidMonth: Date;
8
+ amountInCompanyCurrency: string;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -55,3 +55,4 @@ export * from "./AssociateUsersToHolidayPolicyResponse";
55
55
  export * from "./DeleteCustomHolidayResponse";
56
56
  export * from "./StripeMultipleAccountCustomerInfo";
57
57
  export * from "./StripeAccountInfo";
58
+ export * from "./LastContractorBillingInfo";
@@ -71,3 +71,4 @@ __exportStar(require("./AssociateUsersToHolidayPolicyResponse"), exports);
71
71
  __exportStar(require("./DeleteCustomHolidayResponse"), exports);
72
72
  __exportStar(require("./StripeMultipleAccountCustomerInfo"), exports);
73
73
  __exportStar(require("./StripeAccountInfo"), exports);
74
+ __exportStar(require("./LastContractorBillingInfo"), exports);
@@ -50,4 +50,6 @@ export interface Contract {
50
50
  customContractTemplateId?: string;
51
51
  /** Details about the contract renewal, if applicable */
52
52
  renewalDetails?: TheraApi.db.ContractRenewalDetails;
53
+ /** The last month this contract was included in charge for active contractors for their company. */
54
+ companySubscriptionChargedLast?: Date;
53
55
  }
@@ -0,0 +1,14 @@
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 ContractorSubscriptionPayIn: core.serialization.ObjectSchema<serializers.api.thera.bank.ContractorSubscriptionPayIn.Raw, TheraApi.api.thera.bank.ContractorSubscriptionPayIn>;
8
+ export declare namespace ContractorSubscriptionPayIn {
9
+ interface Raw {
10
+ companySubscriptionMonthlyFeeAmount: number;
11
+ companySubscriptionPerContractorMonthlyFeeAmount: number;
12
+ numberOfContractorCharged: number;
13
+ }
14
+ }
@@ -0,0 +1,45 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ContractorSubscriptionPayIn = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ exports.ContractorSubscriptionPayIn = core.serialization.object({
42
+ companySubscriptionMonthlyFeeAmount: core.serialization.number(),
43
+ companySubscriptionPerContractorMonthlyFeeAmount: core.serialization.number(),
44
+ numberOfContractorCharged: core.serialization.number(),
45
+ });
@@ -7,9 +7,10 @@ import * as core from "../../../../../../../../../../core";
7
7
  import { InvoicePayment } from "./InvoicePayment";
8
8
  import { EorPayIn } from "./EorPayIn";
9
9
  import { W2SubscriptionPayIn } from "./W2SubscriptionPayIn";
10
+ import { ContractorSubscriptionPayIn } from "./ContractorSubscriptionPayIn";
10
11
  export declare const HistoricPaymentDetail: core.serialization.Schema<serializers.api.thera.bank.HistoricPaymentDetail.Raw, TheraApi.api.thera.bank.HistoricPaymentDetail>;
11
12
  export declare namespace HistoricPaymentDetail {
12
- type Raw = HistoricPaymentDetail.InvoicePayment | HistoricPaymentDetail.EorPayIn | HistoricPaymentDetail.W2SubscriptionFee;
13
+ type Raw = HistoricPaymentDetail.InvoicePayment | HistoricPaymentDetail.EorPayIn | HistoricPaymentDetail.W2SubscriptionFee | HistoricPaymentDetail.ContractorSubscriptionFee;
13
14
  interface InvoicePayment extends InvoicePayment.Raw {
14
15
  type: "invoicePayment";
15
16
  }
@@ -19,4 +20,7 @@ export declare namespace HistoricPaymentDetail {
19
20
  interface W2SubscriptionFee extends W2SubscriptionPayIn.Raw {
20
21
  type: "w2SubscriptionFee";
21
22
  }
23
+ interface ContractorSubscriptionFee extends ContractorSubscriptionPayIn.Raw {
24
+ type: "contractorSubscriptionFee";
25
+ }
22
26
  }
@@ -41,11 +41,13 @@ const core = __importStar(require("../../../../../../../../../../core"));
41
41
  const InvoicePayment_1 = require("./InvoicePayment");
42
42
  const EorPayIn_1 = require("./EorPayIn");
43
43
  const W2SubscriptionPayIn_1 = require("./W2SubscriptionPayIn");
44
+ const ContractorSubscriptionPayIn_1 = require("./ContractorSubscriptionPayIn");
44
45
  exports.HistoricPaymentDetail = core.serialization
45
46
  .union("type", {
46
47
  invoicePayment: InvoicePayment_1.InvoicePayment,
47
48
  eorPayIn: EorPayIn_1.EorPayIn,
48
49
  w2SubscriptionFee: W2SubscriptionPayIn_1.W2SubscriptionPayIn,
50
+ contractorSubscriptionFee: ContractorSubscriptionPayIn_1.ContractorSubscriptionPayIn,
49
51
  })
50
52
  .transform({
51
53
  transform: (value) => value,
@@ -74,3 +74,4 @@ export * from "./SetAutoWithdrawalResponse";
74
74
  export * from "./WorkerTransactionStatus";
75
75
  export * from "./SetBulkAutoApproveInvoiceForTeamsRequest";
76
76
  export * from "./GetPayInCountResponse";
77
+ export * from "./ContractorSubscriptionPayIn";
@@ -90,3 +90,4 @@ __exportStar(require("./SetAutoWithdrawalResponse"), exports);
90
90
  __exportStar(require("./WorkerTransactionStatus"), exports);
91
91
  __exportStar(require("./SetBulkAutoApproveInvoiceForTeamsRequest"), exports);
92
92
  __exportStar(require("./GetPayInCountResponse"), exports);
93
+ __exportStar(require("./ContractorSubscriptionPayIn"), exports);
@@ -18,6 +18,7 @@ import { MercoaCompanyDetails } from "./MercoaCompanyDetails";
18
18
  import { CompanyAccountingInformation } from "./CompanyAccountingInformation";
19
19
  import { CompanyBankingDetails } from "./CompanyBankingDetails";
20
20
  import { IncorporationDetails } from "./IncorporationDetails";
21
+ import { LastContractorBillingInfo } from "./LastContractorBillingInfo";
21
22
  export declare const Company: core.serialization.ObjectSchema<serializers.db.Company.Raw, TheraApi.db.Company>;
22
23
  export declare namespace Company {
23
24
  interface Raw {
@@ -55,5 +56,6 @@ export declare namespace Company {
55
56
  companyAccountingInformation?: CompanyAccountingInformation.Raw | null;
56
57
  companyBankingDetails?: CompanyBankingDetails.Raw | null;
57
58
  incorporationDetails?: IncorporationDetails.Raw | null;
59
+ lastContractorsBillingInfo?: LastContractorBillingInfo.Raw | null;
58
60
  }
59
61
  }
@@ -52,6 +52,7 @@ const MercoaCompanyDetails_1 = require("./MercoaCompanyDetails");
52
52
  const CompanyAccountingInformation_1 = require("./CompanyAccountingInformation");
53
53
  const CompanyBankingDetails_1 = require("./CompanyBankingDetails");
54
54
  const IncorporationDetails_1 = require("./IncorporationDetails");
55
+ const LastContractorBillingInfo_1 = require("./LastContractorBillingInfo");
55
56
  exports.Company = core.serialization.object({
56
57
  companyId: core.serialization.property("companyID", core.serialization.string()),
57
58
  companyName: core.serialization.string(),
@@ -87,4 +88,5 @@ exports.Company = core.serialization.object({
87
88
  companyAccountingInformation: CompanyAccountingInformation_1.CompanyAccountingInformation.optional(),
88
89
  companyBankingDetails: CompanyBankingDetails_1.CompanyBankingDetails.optional(),
89
90
  incorporationDetails: IncorporationDetails_1.IncorporationDetails.optional(),
91
+ lastContractorsBillingInfo: LastContractorBillingInfo_1.LastContractorBillingInfo.optional(),
90
92
  });
@@ -9,7 +9,7 @@ import { CustomContract } from "./CustomContract";
9
9
  export declare const Flags: core.serialization.ObjectSchema<serializers.db.Flags.Raw, TheraApi.db.Flags>;
10
10
  export declare namespace Flags {
11
11
  interface Raw {
12
- isActive?: boolean | null;
12
+ companyActive?: boolean | null;
13
13
  paymentsVersion: number;
14
14
  csv: boolean;
15
15
  cards: boolean;
@@ -24,6 +24,6 @@ export declare namespace Flags {
24
24
  autoPayExposed: boolean;
25
25
  mfaEnabled: boolean;
26
26
  separateRevenue?: boolean | null;
27
- chargeActiveWorkersMonthly?: boolean | null;
27
+ chargeCompanyWithActiveWorkersModel?: boolean | null;
28
28
  }
29
29
  }
@@ -41,7 +41,7 @@ const core = __importStar(require("../../../../../../core"));
41
41
  const CompanyStatus_1 = require("./CompanyStatus");
42
42
  const CustomContract_1 = require("./CustomContract");
43
43
  exports.Flags = core.serialization.object({
44
- isActive: core.serialization.boolean().optional(),
44
+ companyActive: core.serialization.boolean().optional(),
45
45
  paymentsVersion: core.serialization.number(),
46
46
  csv: core.serialization.boolean(),
47
47
  cards: core.serialization.boolean(),
@@ -56,5 +56,5 @@ exports.Flags = core.serialization.object({
56
56
  autoPayExposed: core.serialization.boolean(),
57
57
  mfaEnabled: core.serialization.boolean(),
58
58
  separateRevenue: core.serialization.boolean().optional(),
59
- chargeActiveWorkersMonthly: core.serialization.boolean().optional(),
59
+ chargeCompanyWithActiveWorkersModel: core.serialization.boolean().optional(),
60
60
  });
@@ -0,0 +1,14 @@
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 LastContractorBillingInfo: core.serialization.ObjectSchema<serializers.db.LastContractorBillingInfo.Raw, TheraApi.db.LastContractorBillingInfo>;
8
+ export declare namespace LastContractorBillingInfo {
9
+ interface Raw {
10
+ contractorCount: number;
11
+ recentInvoicePaidMonth: string;
12
+ amountInCompanyCurrency: string;
13
+ }
14
+ }
@@ -0,0 +1,45 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.LastContractorBillingInfo = void 0;
40
+ const core = __importStar(require("../../../../../../core"));
41
+ exports.LastContractorBillingInfo = core.serialization.object({
42
+ contractorCount: core.serialization.number(),
43
+ recentInvoicePaidMonth: core.serialization.date(),
44
+ amountInCompanyCurrency: core.serialization.string(),
45
+ });
@@ -55,3 +55,4 @@ export * from "./AssociateUsersToHolidayPolicyResponse";
55
55
  export * from "./DeleteCustomHolidayResponse";
56
56
  export * from "./StripeMultipleAccountCustomerInfo";
57
57
  export * from "./StripeAccountInfo";
58
+ export * from "./LastContractorBillingInfo";
@@ -71,3 +71,4 @@ __exportStar(require("./AssociateUsersToHolidayPolicyResponse"), exports);
71
71
  __exportStar(require("./DeleteCustomHolidayResponse"), exports);
72
72
  __exportStar(require("./StripeMultipleAccountCustomerInfo"), exports);
73
73
  __exportStar(require("./StripeAccountInfo"), exports);
74
+ __exportStar(require("./LastContractorBillingInfo"), exports);
@@ -56,5 +56,6 @@ export declare namespace Contract {
56
56
  customFields: Record<string, string>;
57
57
  customContractTemplateID?: string | null;
58
58
  renewalDetails?: ContractRenewalDetails.Raw | null;
59
+ companySubscriptionChargedLast?: string | null;
59
60
  }
60
61
  }
@@ -88,4 +88,5 @@ exports.Contract = core.serialization.object({
88
88
  customFields: core.serialization.record(core.serialization.string(), core.serialization.string()),
89
89
  customContractTemplateId: core.serialization.property("customContractTemplateID", core.serialization.string().optional()),
90
90
  renewalDetails: ContractRenewalDetails_1.ContractRenewalDetails.optional(),
91
+ companySubscriptionChargedLast: core.serialization.date().optional(),
91
92
  });
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.0-prerelease2685-staging";
1
+ export declare const SDK_VERSION = "1.2.0-prerelease2695-staging";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.2.0-prerelease2685-staging";
4
+ exports.SDK_VERSION = "1.2.0-prerelease2695-staging";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thera-hr/api-sdk",
3
- "version": "1.2.0-prerelease2685-staging",
3
+ "version": "1.2.0-prerelease2695-staging",
4
4
  "private": false,
5
5
  "repository": "https://github.com/CarbonNYC/thera-typescript-sdk",
6
6
  "main": "./index.js",
@@ -0,0 +1,14 @@
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 ContractorSubscriptionPayIn: core.serialization.ObjectSchema<serializers.api.thera.bank.ContractorSubscriptionPayIn.Raw, TheraApi.api.thera.bank.ContractorSubscriptionPayIn>;
8
+ export declare namespace ContractorSubscriptionPayIn {
9
+ interface Raw {
10
+ companySubscriptionMonthlyFeeAmount: number;
11
+ companySubscriptionPerContractorMonthlyFeeAmount: number;
12
+ numberOfContractorCharged: number;
13
+ }
14
+ }
@@ -0,0 +1,45 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ContractorSubscriptionPayIn = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ exports.ContractorSubscriptionPayIn = core.serialization.object({
42
+ companySubscriptionMonthlyFeeAmount: core.serialization.number(),
43
+ companySubscriptionPerContractorMonthlyFeeAmount: core.serialization.number(),
44
+ numberOfContractorCharged: core.serialization.number(),
45
+ });
@@ -7,9 +7,10 @@ import * as core from "../../../../../../../../../../core";
7
7
  import { InvoicePayment } from "./InvoicePayment";
8
8
  import { EorPayIn } from "./EorPayIn";
9
9
  import { W2SubscriptionPayIn } from "./W2SubscriptionPayIn";
10
+ import { ContractorSubscriptionPayIn } from "./ContractorSubscriptionPayIn";
10
11
  export declare const HistoricPaymentDetail: core.serialization.Schema<serializers.api.thera.bank.HistoricPaymentDetail.Raw, TheraApi.api.thera.bank.HistoricPaymentDetail>;
11
12
  export declare namespace HistoricPaymentDetail {
12
- type Raw = HistoricPaymentDetail.InvoicePayment | HistoricPaymentDetail.EorPayIn | HistoricPaymentDetail.W2SubscriptionFee;
13
+ type Raw = HistoricPaymentDetail.InvoicePayment | HistoricPaymentDetail.EorPayIn | HistoricPaymentDetail.W2SubscriptionFee | HistoricPaymentDetail.ContractorSubscriptionFee;
13
14
  interface InvoicePayment extends InvoicePayment.Raw {
14
15
  type: "invoicePayment";
15
16
  }
@@ -19,4 +20,7 @@ export declare namespace HistoricPaymentDetail {
19
20
  interface W2SubscriptionFee extends W2SubscriptionPayIn.Raw {
20
21
  type: "w2SubscriptionFee";
21
22
  }
23
+ interface ContractorSubscriptionFee extends ContractorSubscriptionPayIn.Raw {
24
+ type: "contractorSubscriptionFee";
25
+ }
22
26
  }
@@ -41,11 +41,13 @@ const core = __importStar(require("../../../../../../../../../../core"));
41
41
  const InvoicePayment_1 = require("./InvoicePayment");
42
42
  const EorPayIn_1 = require("./EorPayIn");
43
43
  const W2SubscriptionPayIn_1 = require("./W2SubscriptionPayIn");
44
+ const ContractorSubscriptionPayIn_1 = require("./ContractorSubscriptionPayIn");
44
45
  exports.HistoricPaymentDetail = core.serialization
45
46
  .union("type", {
46
47
  invoicePayment: InvoicePayment_1.InvoicePayment,
47
48
  eorPayIn: EorPayIn_1.EorPayIn,
48
49
  w2SubscriptionFee: W2SubscriptionPayIn_1.W2SubscriptionPayIn,
50
+ contractorSubscriptionFee: ContractorSubscriptionPayIn_1.ContractorSubscriptionPayIn,
49
51
  })
50
52
  .transform({
51
53
  transform: (value) => value,
@@ -74,3 +74,4 @@ export * from "./SetAutoWithdrawalResponse";
74
74
  export * from "./WorkerTransactionStatus";
75
75
  export * from "./SetBulkAutoApproveInvoiceForTeamsRequest";
76
76
  export * from "./GetPayInCountResponse";
77
+ export * from "./ContractorSubscriptionPayIn";
@@ -90,3 +90,4 @@ __exportStar(require("./SetAutoWithdrawalResponse"), exports);
90
90
  __exportStar(require("./WorkerTransactionStatus"), exports);
91
91
  __exportStar(require("./SetBulkAutoApproveInvoiceForTeamsRequest"), exports);
92
92
  __exportStar(require("./GetPayInCountResponse"), exports);
93
+ __exportStar(require("./ContractorSubscriptionPayIn"), exports);
@@ -18,6 +18,7 @@ import { MercoaCompanyDetails } from "./MercoaCompanyDetails";
18
18
  import { CompanyAccountingInformation } from "./CompanyAccountingInformation";
19
19
  import { CompanyBankingDetails } from "./CompanyBankingDetails";
20
20
  import { IncorporationDetails } from "./IncorporationDetails";
21
+ import { LastContractorBillingInfo } from "./LastContractorBillingInfo";
21
22
  export declare const Company: core.serialization.ObjectSchema<serializers.db.Company.Raw, TheraApi.db.Company>;
22
23
  export declare namespace Company {
23
24
  interface Raw {
@@ -55,5 +56,6 @@ export declare namespace Company {
55
56
  companyAccountingInformation?: CompanyAccountingInformation.Raw | null;
56
57
  companyBankingDetails?: CompanyBankingDetails.Raw | null;
57
58
  incorporationDetails?: IncorporationDetails.Raw | null;
59
+ lastContractorsBillingInfo?: LastContractorBillingInfo.Raw | null;
58
60
  }
59
61
  }
@@ -52,6 +52,7 @@ const MercoaCompanyDetails_1 = require("./MercoaCompanyDetails");
52
52
  const CompanyAccountingInformation_1 = require("./CompanyAccountingInformation");
53
53
  const CompanyBankingDetails_1 = require("./CompanyBankingDetails");
54
54
  const IncorporationDetails_1 = require("./IncorporationDetails");
55
+ const LastContractorBillingInfo_1 = require("./LastContractorBillingInfo");
55
56
  exports.Company = core.serialization.object({
56
57
  companyId: core.serialization.property("companyID", core.serialization.string()),
57
58
  companyName: core.serialization.string(),
@@ -87,4 +88,5 @@ exports.Company = core.serialization.object({
87
88
  companyAccountingInformation: CompanyAccountingInformation_1.CompanyAccountingInformation.optional(),
88
89
  companyBankingDetails: CompanyBankingDetails_1.CompanyBankingDetails.optional(),
89
90
  incorporationDetails: IncorporationDetails_1.IncorporationDetails.optional(),
91
+ lastContractorsBillingInfo: LastContractorBillingInfo_1.LastContractorBillingInfo.optional(),
90
92
  });
@@ -9,7 +9,7 @@ import { CustomContract } from "./CustomContract";
9
9
  export declare const Flags: core.serialization.ObjectSchema<serializers.db.Flags.Raw, TheraApi.db.Flags>;
10
10
  export declare namespace Flags {
11
11
  interface Raw {
12
- isActive?: boolean | null;
12
+ companyActive?: boolean | null;
13
13
  paymentsVersion: number;
14
14
  csv: boolean;
15
15
  cards: boolean;
@@ -24,6 +24,6 @@ export declare namespace Flags {
24
24
  autoPayExposed: boolean;
25
25
  mfaEnabled: boolean;
26
26
  separateRevenue?: boolean | null;
27
- chargeActiveWorkersMonthly?: boolean | null;
27
+ chargeCompanyWithActiveWorkersModel?: boolean | null;
28
28
  }
29
29
  }
@@ -41,7 +41,7 @@ const core = __importStar(require("../../../../../../core"));
41
41
  const CompanyStatus_1 = require("./CompanyStatus");
42
42
  const CustomContract_1 = require("./CustomContract");
43
43
  exports.Flags = core.serialization.object({
44
- isActive: core.serialization.boolean().optional(),
44
+ companyActive: core.serialization.boolean().optional(),
45
45
  paymentsVersion: core.serialization.number(),
46
46
  csv: core.serialization.boolean(),
47
47
  cards: core.serialization.boolean(),
@@ -56,5 +56,5 @@ exports.Flags = core.serialization.object({
56
56
  autoPayExposed: core.serialization.boolean(),
57
57
  mfaEnabled: core.serialization.boolean(),
58
58
  separateRevenue: core.serialization.boolean().optional(),
59
- chargeActiveWorkersMonthly: core.serialization.boolean().optional(),
59
+ chargeCompanyWithActiveWorkersModel: core.serialization.boolean().optional(),
60
60
  });
@@ -0,0 +1,14 @@
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 LastContractorBillingInfo: core.serialization.ObjectSchema<serializers.db.LastContractorBillingInfo.Raw, TheraApi.db.LastContractorBillingInfo>;
8
+ export declare namespace LastContractorBillingInfo {
9
+ interface Raw {
10
+ contractorCount: number;
11
+ recentInvoicePaidMonth: string;
12
+ amountInCompanyCurrency: string;
13
+ }
14
+ }
@@ -0,0 +1,45 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.LastContractorBillingInfo = void 0;
40
+ const core = __importStar(require("../../../../../../core"));
41
+ exports.LastContractorBillingInfo = core.serialization.object({
42
+ contractorCount: core.serialization.number(),
43
+ recentInvoicePaidMonth: core.serialization.date(),
44
+ amountInCompanyCurrency: core.serialization.string(),
45
+ });
@@ -55,3 +55,4 @@ export * from "./AssociateUsersToHolidayPolicyResponse";
55
55
  export * from "./DeleteCustomHolidayResponse";
56
56
  export * from "./StripeMultipleAccountCustomerInfo";
57
57
  export * from "./StripeAccountInfo";
58
+ export * from "./LastContractorBillingInfo";
@@ -71,3 +71,4 @@ __exportStar(require("./AssociateUsersToHolidayPolicyResponse"), exports);
71
71
  __exportStar(require("./DeleteCustomHolidayResponse"), exports);
72
72
  __exportStar(require("./StripeMultipleAccountCustomerInfo"), exports);
73
73
  __exportStar(require("./StripeAccountInfo"), exports);
74
+ __exportStar(require("./LastContractorBillingInfo"), exports);
@@ -56,5 +56,6 @@ export declare namespace Contract {
56
56
  customFields: Record<string, string>;
57
57
  customContractTemplateID?: string | null;
58
58
  renewalDetails?: ContractRenewalDetails.Raw | null;
59
+ companySubscriptionChargedLast?: string | null;
59
60
  }
60
61
  }
@@ -88,4 +88,5 @@ exports.Contract = core.serialization.object({
88
88
  customFields: core.serialization.record(core.serialization.string(), core.serialization.string()),
89
89
  customContractTemplateId: core.serialization.property("customContractTemplateID", core.serialization.string().optional()),
90
90
  renewalDetails: ContractRenewalDetails_1.ContractRenewalDetails.optional(),
91
+ companySubscriptionChargedLast: core.serialization.date().optional(),
91
92
  });
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.0-prerelease2685-staging";
1
+ export declare const SDK_VERSION = "1.2.0-prerelease2695-staging";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.2.0-prerelease2685-staging";
4
+ exports.SDK_VERSION = "1.2.0-prerelease2695-staging";