@thera-hr/api-sdk 1.1.1-prerelease2438-dev-4 → 1.2.1-prerelease2321-dev-3

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 (124) 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.d.ts +2 -3
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +40 -41
  8. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/EditWithdrawalMethodRequest.d.ts +3 -11
  9. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
  10. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  11. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  12. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  13. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  14. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  15. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  16. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  17. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  18. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  19. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  20. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
  21. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  22. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  23. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  24. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  25. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  26. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  27. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +14 -14
  28. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  29. package/api/resources/db/resources/company/types/Company.d.ts +0 -1
  30. package/api/resources/db/resources/company/types/index.d.ts +0 -2
  31. package/api/resources/db/resources/company/types/index.js +0 -2
  32. package/api/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.d.ts +0 -1
  33. package/api/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +0 -2
  34. package/api/resources/db/resources/paymentMethod/types/index.d.ts +0 -1
  35. package/api/resources/db/resources/paymentMethod/types/index.js +0 -1
  36. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  37. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  38. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  39. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  40. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  41. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +2 -3
  42. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +40 -41
  43. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/EditWithdrawalMethodRequest.d.ts +3 -11
  44. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
  45. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  46. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  47. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  48. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  49. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  50. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  51. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  52. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  53. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  54. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  55. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
  56. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  57. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  58. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  59. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  60. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  61. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  62. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +14 -14
  63. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  64. package/dist/api/resources/db/resources/company/types/Company.d.ts +0 -1
  65. package/dist/api/resources/db/resources/company/types/index.d.ts +0 -2
  66. package/dist/api/resources/db/resources/company/types/index.js +0 -2
  67. package/dist/api/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.d.ts +0 -1
  68. package/dist/api/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +0 -2
  69. package/dist/api/resources/db/resources/paymentMethod/types/index.d.ts +0 -1
  70. package/dist/api/resources/db/resources/paymentMethod/types/index.js +0 -1
  71. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/EditWithdrawalMethodRequest.d.ts +1 -2
  72. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/EditWithdrawalMethodRequest.js +1 -2
  73. package/dist/serialization/resources/db/resources/company/types/Company.d.ts +0 -2
  74. package/dist/serialization/resources/db/resources/company/types/Company.js +0 -2
  75. package/dist/serialization/resources/db/resources/company/types/index.d.ts +0 -2
  76. package/dist/serialization/resources/db/resources/company/types/index.js +0 -2
  77. package/dist/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.d.ts +0 -1
  78. package/dist/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.js +0 -1
  79. package/dist/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +0 -2
  80. package/dist/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.js +0 -2
  81. package/dist/serialization/resources/db/resources/paymentMethod/types/index.d.ts +0 -1
  82. package/dist/serialization/resources/db/resources/paymentMethod/types/index.js +0 -1
  83. package/dist/version.d.ts +1 -1
  84. package/dist/version.js +1 -1
  85. package/package.json +1 -1
  86. package/reference.md +0 -1
  87. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/EditWithdrawalMethodRequest.d.ts +1 -2
  88. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/EditWithdrawalMethodRequest.js +1 -2
  89. package/serialization/resources/db/resources/company/types/Company.d.ts +0 -2
  90. package/serialization/resources/db/resources/company/types/Company.js +0 -2
  91. package/serialization/resources/db/resources/company/types/index.d.ts +0 -2
  92. package/serialization/resources/db/resources/company/types/index.js +0 -2
  93. package/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.d.ts +0 -1
  94. package/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.js +0 -1
  95. package/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +0 -2
  96. package/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.js +0 -2
  97. package/serialization/resources/db/resources/paymentMethod/types/index.d.ts +0 -1
  98. package/serialization/resources/db/resources/paymentMethod/types/index.js +0 -1
  99. package/version.d.ts +1 -1
  100. package/version.js +1 -1
  101. package/api/resources/db/resources/company/types/StripeAccountInfo.d.ts +0 -7
  102. package/api/resources/db/resources/company/types/StripeAccountInfo.js +0 -5
  103. package/api/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.d.ts +0 -9
  104. package/api/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.js +0 -5
  105. package/api/resources/db/resources/paymentMethod/types/StripeAccountType.d.ts +0 -9
  106. package/api/resources/db/resources/paymentMethod/types/StripeAccountType.js +0 -11
  107. package/dist/api/resources/db/resources/company/types/StripeAccountInfo.d.ts +0 -7
  108. package/dist/api/resources/db/resources/company/types/StripeAccountInfo.js +0 -5
  109. package/dist/api/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.d.ts +0 -9
  110. package/dist/api/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.js +0 -5
  111. package/dist/api/resources/db/resources/paymentMethod/types/StripeAccountType.d.ts +0 -9
  112. package/dist/api/resources/db/resources/paymentMethod/types/StripeAccountType.js +0 -11
  113. package/dist/serialization/resources/db/resources/company/types/StripeAccountInfo.d.ts +0 -13
  114. package/dist/serialization/resources/db/resources/company/types/StripeAccountInfo.js +0 -44
  115. package/dist/serialization/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.d.ts +0 -15
  116. package/dist/serialization/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.js +0 -46
  117. package/dist/serialization/resources/db/resources/paymentMethod/types/StripeAccountType.d.ts +0 -10
  118. package/dist/serialization/resources/db/resources/paymentMethod/types/StripeAccountType.js +0 -41
  119. package/serialization/resources/db/resources/company/types/StripeAccountInfo.d.ts +0 -13
  120. package/serialization/resources/db/resources/company/types/StripeAccountInfo.js +0 -44
  121. package/serialization/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.d.ts +0 -15
  122. package/serialization/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.js +0 -46
  123. package/serialization/resources/db/resources/paymentMethod/types/StripeAccountType.d.ts +0 -10
  124. package/serialization/resources/db/resources/paymentMethod/types/StripeAccountType.js +0 -41
@@ -36,7 +36,6 @@ export interface Company {
36
36
  ledgerAccountIdsByCurrency: Record<string, string>;
37
37
  v2LedgerAccountIdsByCurrency: Record<string, string>;
38
38
  teamsById: Record<string, TheraApi.db.Team>;
39
- stripeMultipleAccountInfo?: TheraApi.db.StripeMultipleAccountCustomerInfo;
40
39
  /** URLs for the business website(s). At least one is required for banking companies. */
41
40
  urls: string[];
42
41
  companyDescription?: string;
@@ -53,5 +53,3 @@ export * from "./HolidayDate";
53
53
  export * from "./UserHolidaysResponse";
54
54
  export * from "./AssociateUsersToHolidayPolicyResponse";
55
55
  export * from "./DeleteCustomHolidayResponse";
56
- export * from "./StripeMultipleAccountCustomerInfo";
57
- export * from "./StripeAccountInfo";
@@ -69,5 +69,3 @@ __exportStar(require("./HolidayDate"), exports);
69
69
  __exportStar(require("./UserHolidaysResponse"), exports);
70
70
  __exportStar(require("./AssociateUsersToHolidayPolicyResponse"), exports);
71
71
  __exportStar(require("./DeleteCustomHolidayResponse"), exports);
72
- __exportStar(require("./StripeMultipleAccountCustomerInfo"), exports);
73
- __exportStar(require("./StripeAccountInfo"), exports);
@@ -18,5 +18,4 @@ export interface CompanyPaymentMethod {
18
18
  deletionDetails?: TheraApi.db.CompanyPaymentMethodDeletionDetails;
19
19
  /** If empty, it means it's not Stripe payment method */
20
20
  stripeMandateStatus?: TheraApi.db.StripeMandateStatus;
21
- stripeCustomerId?: string;
22
21
  }
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as TheraApi from "../../../../../index";
5
4
  export interface PlaidPostVerificationPaymentMethodDetails {
6
5
  stripePaymentMethodId: string;
7
6
  /**
@@ -24,5 +23,4 @@ export interface PlaidPostVerificationPaymentMethodDetails {
24
23
  checkBankAccountId?: string;
25
24
  accountNumber: string;
26
25
  routingNumber: string;
27
- accountType?: TheraApi.db.StripeAccountType;
28
26
  }
@@ -10,4 +10,3 @@ export * from "./StripeUsBankAccountPaymentMethodDetails";
10
10
  export * from "./StripeAcssDebitAccountPaymentMethodDetails";
11
11
  export * from "./StripeBankAccountVerificationStatus";
12
12
  export * from "./StripeCardPaymentMethodDetails";
13
- export * from "./StripeAccountType";
@@ -26,4 +26,3 @@ __exportStar(require("./StripeUsBankAccountPaymentMethodDetails"), exports);
26
26
  __exportStar(require("./StripeAcssDebitAccountPaymentMethodDetails"), exports);
27
27
  __exportStar(require("./StripeBankAccountVerificationStatus"), exports);
28
28
  __exportStar(require("./StripeCardPaymentMethodDetails"), exports);
29
- __exportStar(require("./StripeAccountType"), exports);
@@ -108,7 +108,7 @@ class AipriseWebhookApi {
108
108
  const _response = yield core.fetcher({
109
109
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/aiprise/webhook/verification/callback"),
110
110
  method: "POST",
111
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2438-dev-4", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2438-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
111
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.1-prerelease2321-dev-3", "User-Agent": "@thera-hr/api-sdk/1.2.1-prerelease2321-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
112
112
  contentType: "application/json",
113
113
  requestType: "json",
114
114
  body: serializers.api.aiprise.AiPriseVerificationCallback.jsonOrThrow(request, {
@@ -87,7 +87,7 @@ class Dev {
87
87
  const _response = yield core.fetcher({
88
88
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/dev/eor"),
89
89
  method: "POST",
90
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2438-dev-4", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2438-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
90
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.1-prerelease2321-dev-3", "User-Agent": "@thera-hr/api-sdk/1.2.1-prerelease2321-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
91
91
  contentType: "application/json",
92
92
  requestType: "json",
93
93
  body: serializers.api.dev.AddEorEmployeeRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -113,7 +113,7 @@ class ExternalApi {
113
113
  const _response = yield core.fetcher({
114
114
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/external/v2/contractor"),
115
115
  method: "POST",
116
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2438-dev-4", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2438-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
116
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.1-prerelease2321-dev-3", "User-Agent": "@thera-hr/api-sdk/1.2.1-prerelease2321-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
117
117
  contentType: "application/json",
118
118
  requestType: "json",
119
119
  body: serializers.api.external.ExternalCreateContractorRequestV2.jsonOrThrow(request, {
@@ -74,7 +74,7 @@ class File_ {
74
74
  const _response = yield core.fetcher({
75
75
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/contracts/${encodeURIComponent(contractId)}/generic-document`),
76
76
  method: "POST",
77
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2438-dev-4", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2438-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.1-prerelease2321-dev-3", "User-Agent": "@thera-hr/api-sdk/1.2.1-prerelease2321-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
78
  contentType: "application/json",
79
79
  requestType: "json",
80
80
  body: serializers.api.services.AttachDocumentToEmploymentRequest.jsonOrThrow(request, {
@@ -125,7 +125,7 @@ class File_ {
125
125
  const _response = yield core.fetcher({
126
126
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/contracts/${encodeURIComponent(contractId)}/generic-document/${encodeURIComponent(s3Key)}`),
127
127
  method: "DELETE",
128
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2438-dev-4", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2438-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
128
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.1-prerelease2321-dev-3", "User-Agent": "@thera-hr/api-sdk/1.2.1-prerelease2321-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
129
129
  contentType: "application/json",
130
130
  requestType: "json",
131
131
  body: serializers.api.services.DeleteDocumentFromEmploymentRequest.jsonOrThrow(request, {
@@ -173,7 +173,7 @@ class File_ {
173
173
  const _response = yield core.fetcher({
174
174
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/contracts/${encodeURIComponent(contractId)}/generic-document/${encodeURIComponent(s3Key)}/file-url`),
175
175
  method: "GET",
176
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2438-dev-4", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2438-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
176
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.1-prerelease2321-dev-3", "User-Agent": "@thera-hr/api-sdk/1.2.1-prerelease2321-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
177
177
  contentType: "application/json",
178
178
  requestType: "json",
179
179
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -224,7 +224,7 @@ class File_ {
224
224
  const _response = yield core.fetcher({
225
225
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/contracts/eor/${encodeURIComponent(contractId)}/payslips/${encodeURIComponent(s3Key)}/fileUrl`),
226
226
  method: "GET",
227
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2438-dev-4", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2438-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
227
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.1-prerelease2321-dev-3", "User-Agent": "@thera-hr/api-sdk/1.2.1-prerelease2321-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
228
228
  contentType: "application/json",
229
229
  requestType: "json",
230
230
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -275,7 +275,7 @@ class File_ {
275
275
  const _response = yield core.fetcher({
276
276
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/companies/${encodeURIComponent(companyId)}/contracts/eor/pay-in/${encodeURIComponent(s3Key)}/file-url`),
277
277
  method: "GET",
278
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2438-dev-4", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2438-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
278
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.1-prerelease2321-dev-3", "User-Agent": "@thera-hr/api-sdk/1.2.1-prerelease2321-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
279
279
  contentType: "application/json",
280
280
  requestType: "json",
281
281
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -77,7 +77,7 @@ class AccountingApi {
77
77
  const _response = yield core.fetcher({
78
78
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/accounting/settings`),
79
79
  method: "PUT",
80
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2438-dev-4", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2438-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.1-prerelease2321-dev-3", "User-Agent": "@thera-hr/api-sdk/1.2.1-prerelease2321-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
81
  contentType: "application/json",
82
82
  requestType: "json",
83
83
  body: serializers.api.thera.accounting.ModifyAccountingIntegrationSetting.jsonOrThrow(request, {
@@ -124,7 +124,7 @@ class AccountingApi {
124
124
  const _response = yield core.fetcher({
125
125
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/accounting/info`),
126
126
  method: "GET",
127
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2438-dev-4", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2438-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
127
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.1-prerelease2321-dev-3", "User-Agent": "@thera-hr/api-sdk/1.2.1-prerelease2321-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
128
128
  contentType: "application/json",
129
129
  requestType: "json",
130
130
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -174,7 +174,7 @@ class AccountingApi {
174
174
  const _response = yield core.fetcher({
175
175
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/accounting/account-mapping`),
176
176
  method: "GET",
177
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2438-dev-4", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2438-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
177
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.1-prerelease2321-dev-3", "User-Agent": "@thera-hr/api-sdk/1.2.1-prerelease2321-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
178
178
  contentType: "application/json",
179
179
  requestType: "json",
180
180
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -227,7 +227,7 @@ class AccountingApi {
227
227
  const _response = yield core.fetcher({
228
228
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/accounting/authorize`),
229
229
  method: "POST",
230
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2438-dev-4", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2438-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
230
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.2.1-prerelease2321-dev-3", "User-Agent": "@thera-hr/api-sdk/1.2.1-prerelease2321-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
231
231
  contentType: "application/json",
232
232
  requestType: "json",
233
233
  body: serializers.api.thera.accounting.CompleteAccountingIntegrationAuth.jsonOrThrow(request, {
@@ -312,11 +312,10 @@ export declare class BankApi {
312
312
  *
313
313
  * @example
314
314
  * await client.api.thera.bank.bankApi.editWithdrawalMethod("string", "string", {
315
- * preferred: true,
316
- * forceOffPlatformReason: "string"
315
+ * preferred: true
317
316
  * })
318
317
  */
319
- editWithdrawalMethod(userId: string, withdrawalMethodId: string, request?: TheraApi.api.thera.bank.EditWithdrawalMethodRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.EditWithdrawalMethodResponse>;
318
+ editWithdrawalMethod(userId: string, withdrawalMethodId: string, request: TheraApi.api.thera.bank.EditWithdrawalMethodRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.EditWithdrawalMethodResponse>;
320
319
  /**
321
320
  * @param {string} userId
322
321
  * @param {string} companyId