@thera-hr/api-sdk 1.2.0-prerelease2446-dev-3 → 1.2.0-prerelease2450-production

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 (228) 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 +33 -2
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +171 -40
  8. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRangeRequest.d.ts +25 -0
  9. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRangeRequest.js +5 -0
  10. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRequest.d.ts +12 -0
  11. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRequest.js +5 -0
  12. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +2 -0
  13. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ContractorSubscriptionPayIn.d.ts +8 -0
  14. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ContractorSubscriptionPayIn.js +5 -0
  15. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.d.ts +8 -0
  16. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.js +5 -0
  17. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsResponse.d.ts +1 -0
  18. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.d.ts +4 -1
  19. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
  20. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
  21. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
  22. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +2 -1
  23. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +24 -20
  24. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/CheckCanCreateAccountRequest.d.ts +6 -1
  25. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  26. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  27. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractSummary.d.ts +12 -0
  28. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractSummary.js +5 -0
  29. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/GetContractsForContractorResponse.d.ts +10 -0
  30. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/GetContractsForContractorResponse.js +5 -0
  31. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.d.ts +2 -0
  32. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.js +2 -0
  33. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  34. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  35. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  36. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  37. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  38. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  39. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  40. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
  41. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  42. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  43. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  44. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  45. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  46. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  47. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +14 -14
  48. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  49. package/api/resources/db/resources/company/types/Company.d.ts +2 -0
  50. package/api/resources/db/resources/company/types/Flags.d.ts +2 -1
  51. package/api/resources/db/resources/company/types/LastContractorBillingInfo.d.ts +9 -0
  52. package/api/resources/db/resources/company/types/LastContractorBillingInfo.js +5 -0
  53. package/api/resources/db/resources/company/types/index.d.ts +1 -0
  54. package/api/resources/db/resources/company/types/index.js +1 -0
  55. package/api/resources/db/resources/contract/types/Contract.d.ts +2 -0
  56. package/api/resources/db/resources/generic/types/GenericType.d.ts +1 -0
  57. package/api/resources/db/resources/index.d.ts +2 -0
  58. package/api/resources/db/resources/index.js +3 -1
  59. package/api/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +2 -0
  60. package/api/resources/db/resources/payoutQueue/index.d.ts +1 -0
  61. package/api/resources/db/resources/payoutQueue/index.js +17 -0
  62. package/api/resources/db/resources/payoutQueue/types/PayoutProvider.d.ts +9 -0
  63. package/api/resources/db/resources/payoutQueue/types/PayoutProvider.js +11 -0
  64. package/api/resources/db/resources/payoutQueue/types/PayoutQueueItem.d.ts +50 -0
  65. package/api/resources/db/resources/payoutQueue/types/PayoutQueueItem.js +5 -0
  66. package/api/resources/db/resources/payoutQueue/types/PayoutStatus.d.ts +10 -0
  67. package/api/resources/db/resources/payoutQueue/types/PayoutStatus.js +12 -0
  68. package/api/resources/db/resources/payoutQueue/types/index.d.ts +3 -0
  69. package/api/resources/db/resources/payoutQueue/types/index.js +19 -0
  70. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  71. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  72. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  73. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  74. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  75. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +33 -2
  76. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +171 -40
  77. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRangeRequest.d.ts +25 -0
  78. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRangeRequest.js +5 -0
  79. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRequest.d.ts +12 -0
  80. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRequest.js +5 -0
  81. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +2 -0
  82. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ContractorSubscriptionPayIn.d.ts +8 -0
  83. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ContractorSubscriptionPayIn.js +5 -0
  84. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.d.ts +8 -0
  85. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.js +5 -0
  86. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsResponse.d.ts +1 -0
  87. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.d.ts +4 -1
  88. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
  89. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
  90. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
  91. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +2 -1
  92. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +24 -20
  93. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/CheckCanCreateAccountRequest.d.ts +6 -1
  94. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  95. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  96. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractSummary.d.ts +12 -0
  97. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractSummary.js +5 -0
  98. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/GetContractsForContractorResponse.d.ts +10 -0
  99. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/GetContractsForContractorResponse.js +5 -0
  100. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.d.ts +2 -0
  101. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.js +2 -0
  102. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  103. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  104. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  105. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  106. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  107. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  108. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  109. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
  110. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  111. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  112. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  113. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  114. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  115. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  116. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +14 -14
  117. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  118. package/dist/api/resources/db/resources/company/types/Company.d.ts +2 -0
  119. package/dist/api/resources/db/resources/company/types/Flags.d.ts +2 -1
  120. package/dist/api/resources/db/resources/company/types/LastContractorBillingInfo.d.ts +9 -0
  121. package/dist/api/resources/db/resources/company/types/LastContractorBillingInfo.js +5 -0
  122. package/dist/api/resources/db/resources/company/types/index.d.ts +1 -0
  123. package/dist/api/resources/db/resources/company/types/index.js +1 -0
  124. package/dist/api/resources/db/resources/contract/types/Contract.d.ts +2 -0
  125. package/dist/api/resources/db/resources/generic/types/GenericType.d.ts +1 -0
  126. package/dist/api/resources/db/resources/index.d.ts +2 -0
  127. package/dist/api/resources/db/resources/index.js +3 -1
  128. package/dist/api/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +2 -0
  129. package/dist/api/resources/db/resources/payoutQueue/index.d.ts +1 -0
  130. package/dist/api/resources/db/resources/payoutQueue/index.js +17 -0
  131. package/dist/api/resources/db/resources/payoutQueue/types/PayoutProvider.d.ts +9 -0
  132. package/dist/api/resources/db/resources/payoutQueue/types/PayoutProvider.js +11 -0
  133. package/dist/api/resources/db/resources/payoutQueue/types/PayoutQueueItem.d.ts +50 -0
  134. package/dist/api/resources/db/resources/payoutQueue/types/PayoutQueueItem.js +5 -0
  135. package/dist/api/resources/db/resources/payoutQueue/types/PayoutStatus.d.ts +10 -0
  136. package/dist/api/resources/db/resources/payoutQueue/types/PayoutStatus.js +12 -0
  137. package/dist/api/resources/db/resources/payoutQueue/types/index.d.ts +3 -0
  138. package/dist/api/resources/db/resources/payoutQueue/types/index.js +19 -0
  139. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ContractorSubscriptionPayIn.d.ts +14 -0
  140. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ContractorSubscriptionPayIn.js +45 -0
  141. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.d.ts +14 -0
  142. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.js +45 -0
  143. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsResponse.d.ts +1 -0
  144. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsResponse.js +1 -0
  145. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.d.ts +5 -1
  146. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.js +2 -0
  147. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
  148. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
  149. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractSummary.d.ts +15 -0
  150. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractSummary.js +46 -0
  151. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/GetContractsForContractorResponse.d.ts +14 -0
  152. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/GetContractsForContractorResponse.js +45 -0
  153. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.d.ts +2 -0
  154. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.js +2 -0
  155. package/dist/serialization/resources/db/resources/company/types/Company.d.ts +3 -0
  156. package/dist/serialization/resources/db/resources/company/types/Company.js +3 -0
  157. package/dist/serialization/resources/db/resources/company/types/Flags.d.ts +2 -1
  158. package/dist/serialization/resources/db/resources/company/types/Flags.js +2 -1
  159. package/dist/serialization/resources/db/resources/company/types/LastContractorBillingInfo.d.ts +14 -0
  160. package/dist/serialization/resources/db/resources/company/types/LastContractorBillingInfo.js +45 -0
  161. package/dist/serialization/resources/db/resources/company/types/index.d.ts +1 -0
  162. package/dist/serialization/resources/db/resources/company/types/index.js +1 -0
  163. package/dist/serialization/resources/db/resources/contract/types/Contract.d.ts +1 -0
  164. package/dist/serialization/resources/db/resources/contract/types/Contract.js +1 -0
  165. package/dist/serialization/resources/db/resources/generic/types/GenericType.d.ts +1 -0
  166. package/dist/serialization/resources/db/resources/generic/types/GenericType.js +1 -0
  167. package/dist/serialization/resources/db/resources/index.d.ts +2 -0
  168. package/dist/serialization/resources/db/resources/index.js +3 -1
  169. package/dist/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +2 -0
  170. package/dist/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.js +2 -0
  171. package/dist/serialization/resources/db/resources/payoutQueue/index.d.ts +1 -0
  172. package/dist/serialization/resources/db/resources/payoutQueue/index.js +17 -0
  173. package/dist/serialization/resources/db/resources/payoutQueue/types/PayoutProvider.d.ts +10 -0
  174. package/dist/serialization/resources/db/resources/payoutQueue/types/PayoutProvider.js +41 -0
  175. package/dist/serialization/resources/db/resources/payoutQueue/types/PayoutQueueItem.d.ts +35 -0
  176. package/dist/serialization/resources/db/resources/payoutQueue/types/PayoutQueueItem.js +66 -0
  177. package/dist/serialization/resources/db/resources/payoutQueue/types/PayoutStatus.d.ts +10 -0
  178. package/dist/serialization/resources/db/resources/payoutQueue/types/PayoutStatus.js +41 -0
  179. package/dist/serialization/resources/db/resources/payoutQueue/types/index.d.ts +3 -0
  180. package/dist/serialization/resources/db/resources/payoutQueue/types/index.js +19 -0
  181. package/dist/version.d.ts +1 -1
  182. package/dist/version.js +1 -1
  183. package/package.json +1 -1
  184. package/reference.md +175 -2
  185. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ContractorSubscriptionPayIn.d.ts +14 -0
  186. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ContractorSubscriptionPayIn.js +45 -0
  187. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.d.ts +14 -0
  188. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.js +45 -0
  189. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsResponse.d.ts +1 -0
  190. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsResponse.js +1 -0
  191. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.d.ts +5 -1
  192. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.js +2 -0
  193. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
  194. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
  195. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractSummary.d.ts +15 -0
  196. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/ContractSummary.js +46 -0
  197. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/GetContractsForContractorResponse.d.ts +14 -0
  198. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/GetContractsForContractorResponse.js +45 -0
  199. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.d.ts +2 -0
  200. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.js +2 -0
  201. package/serialization/resources/db/resources/company/types/Company.d.ts +3 -0
  202. package/serialization/resources/db/resources/company/types/Company.js +3 -0
  203. package/serialization/resources/db/resources/company/types/Flags.d.ts +2 -1
  204. package/serialization/resources/db/resources/company/types/Flags.js +2 -1
  205. package/serialization/resources/db/resources/company/types/LastContractorBillingInfo.d.ts +14 -0
  206. package/serialization/resources/db/resources/company/types/LastContractorBillingInfo.js +45 -0
  207. package/serialization/resources/db/resources/company/types/index.d.ts +1 -0
  208. package/serialization/resources/db/resources/company/types/index.js +1 -0
  209. package/serialization/resources/db/resources/contract/types/Contract.d.ts +1 -0
  210. package/serialization/resources/db/resources/contract/types/Contract.js +1 -0
  211. package/serialization/resources/db/resources/generic/types/GenericType.d.ts +1 -0
  212. package/serialization/resources/db/resources/generic/types/GenericType.js +1 -0
  213. package/serialization/resources/db/resources/index.d.ts +2 -0
  214. package/serialization/resources/db/resources/index.js +3 -1
  215. package/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +2 -0
  216. package/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.js +2 -0
  217. package/serialization/resources/db/resources/payoutQueue/index.d.ts +1 -0
  218. package/serialization/resources/db/resources/payoutQueue/index.js +17 -0
  219. package/serialization/resources/db/resources/payoutQueue/types/PayoutProvider.d.ts +10 -0
  220. package/serialization/resources/db/resources/payoutQueue/types/PayoutProvider.js +41 -0
  221. package/serialization/resources/db/resources/payoutQueue/types/PayoutQueueItem.d.ts +35 -0
  222. package/serialization/resources/db/resources/payoutQueue/types/PayoutQueueItem.js +66 -0
  223. package/serialization/resources/db/resources/payoutQueue/types/PayoutStatus.d.ts +10 -0
  224. package/serialization/resources/db/resources/payoutQueue/types/PayoutStatus.js +41 -0
  225. package/serialization/resources/db/resources/payoutQueue/types/index.d.ts +3 -0
  226. package/serialization/resources/db/resources/payoutQueue/types/index.js +19 -0
  227. package/version.d.ts +1 -1
  228. package/version.js +1 -1
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PayoutProvider = void 0;
7
+ exports.PayoutProvider = {
8
+ Wise: "WISE",
9
+ Dlocal: "DLOCAL",
10
+ Offplatform: "OFFPLATFORM",
11
+ };
@@ -0,0 +1,50 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../index";
5
+ export interface PayoutQueueItem {
6
+ /** Unique identifier from Modern Treasury ledger transaction (1:1 mapping) */
7
+ ledgerTransactionId: string;
8
+ /** User ID of the contractor receiving the payout */
9
+ userId: string;
10
+ /** Company ID making the payout */
11
+ companyId: string;
12
+ /** ID of the withdrawal method used */
13
+ withdrawalMethodId: string;
14
+ /** Amount in cents (source currency) */
15
+ amount: number;
16
+ /** Source currency code (e.g., USD) */
17
+ currency: string;
18
+ /** Quoted destination amount in cents */
19
+ quotedDestinationAmount: number;
20
+ /** Destination currency code */
21
+ quotedDestinationCurrency: string;
22
+ /** Payment provider used for this payout */
23
+ provider: TheraApi.db.PayoutProvider;
24
+ /** Current status of the payout in the queue */
25
+ status: TheraApi.db.PayoutStatus;
26
+ /** Whether this was an automatic withdrawal */
27
+ autoWithdrawal: boolean;
28
+ /** ISO8601 timestamp when payout was queued */
29
+ createdAt: string;
30
+ /** ISO8601 timestamp of last update */
31
+ updatedAt: string;
32
+ /** ISO8601 timestamp when processing started */
33
+ processingStartedAt?: string;
34
+ /** ISO8601 timestamp when payout completed successfully */
35
+ completedAt?: string;
36
+ /** Number of times this payout has been manually retried */
37
+ retryCount: number;
38
+ /** Last error message if payout failed */
39
+ lastError?: string;
40
+ /** Stack trace of last error for debugging */
41
+ lastErrorStackTrace?: string;
42
+ /** ISO8601 timestamp of last error */
43
+ lastErrorTimestamp?: string;
44
+ /** Provider's transaction/transfer ID after successful completion */
45
+ payoutId?: string;
46
+ /** Wise transfer ID if transfer created but funding failed (for idempotent retry) */
47
+ wiseTransferId?: string;
48
+ /** Server instance ID that processed this item (for debugging concurrent processing) */
49
+ processingInstanceId?: string;
50
+ }
@@ -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 });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type PayoutStatus = "QUEUED" | "PROCESSING" | "COMPLETED" | "FAILED";
5
+ export declare const PayoutStatus: {
6
+ readonly Queued: "QUEUED";
7
+ readonly Processing: "PROCESSING";
8
+ readonly Completed: "COMPLETED";
9
+ readonly Failed: "FAILED";
10
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PayoutStatus = void 0;
7
+ exports.PayoutStatus = {
8
+ Queued: "QUEUED",
9
+ Processing: "PROCESSING",
10
+ Completed: "COMPLETED",
11
+ Failed: "FAILED",
12
+ };
@@ -0,0 +1,3 @@
1
+ export * from "./PayoutProvider";
2
+ export * from "./PayoutStatus";
3
+ export * from "./PayoutQueueItem";
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./PayoutProvider"), exports);
18
+ __exportStar(require("./PayoutStatus"), exports);
19
+ __exportStar(require("./PayoutQueueItem"), exports);
@@ -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
+ });
@@ -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
+ import { WorkerTransaction } from "./WorkerTransaction";
8
+ export declare const GetWorkerTransactionsRangeResponse: core.serialization.ObjectSchema<serializers.api.thera.bank.GetWorkerTransactionsRangeResponse.Raw, TheraApi.api.thera.bank.GetWorkerTransactionsRangeResponse>;
9
+ export declare namespace GetWorkerTransactionsRangeResponse {
10
+ interface Raw {
11
+ transactions: WorkerTransaction.Raw[];
12
+ csv?: string | null;
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.GetWorkerTransactionsRangeResponse = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ const WorkerTransaction_1 = require("./WorkerTransaction");
42
+ exports.GetWorkerTransactionsRangeResponse = core.serialization.object({
43
+ transactions: core.serialization.list(WorkerTransaction_1.WorkerTransaction),
44
+ csv: core.serialization.string().optional(),
45
+ });
@@ -9,5 +9,6 @@ export declare const GetWorkerTransactionsResponse: core.serialization.ObjectSch
9
9
  export declare namespace GetWorkerTransactionsResponse {
10
10
  interface Raw {
11
11
  transactions: WorkerTransaction.Raw[];
12
+ nextCursor?: string | null;
12
13
  }
13
14
  }
@@ -41,4 +41,5 @@ const core = __importStar(require("../../../../../../../../../../core"));
41
41
  const WorkerTransaction_1 = require("./WorkerTransaction");
42
42
  exports.GetWorkerTransactionsResponse = core.serialization.object({
43
43
  transactions: core.serialization.list(WorkerTransaction_1.WorkerTransaction),
44
+ nextCursor: core.serialization.string().optional(),
44
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,
@@ -61,6 +61,7 @@ export * from "./HistoricalInvoice";
61
61
  export * from "./GetWorkerBalancesResponse";
62
62
  export * from "./WorkerBalance";
63
63
  export * from "./GetWorkerTransactionsResponse";
64
+ export * from "./GetWorkerTransactionsRangeResponse";
64
65
  export * from "./WorkerTransaction";
65
66
  export * from "./WorkerTransactionDetails";
66
67
  export * from "./WorkerWithdrawalTransaction";
@@ -73,3 +74,4 @@ export * from "./SetAutoWithdrawalResponse";
73
74
  export * from "./WorkerTransactionStatus";
74
75
  export * from "./SetBulkAutoApproveInvoiceForTeamsRequest";
75
76
  export * from "./GetPayInCountResponse";
77
+ export * from "./ContractorSubscriptionPayIn";
@@ -77,6 +77,7 @@ __exportStar(require("./HistoricalInvoice"), exports);
77
77
  __exportStar(require("./GetWorkerBalancesResponse"), exports);
78
78
  __exportStar(require("./WorkerBalance"), exports);
79
79
  __exportStar(require("./GetWorkerTransactionsResponse"), exports);
80
+ __exportStar(require("./GetWorkerTransactionsRangeResponse"), exports);
80
81
  __exportStar(require("./WorkerTransaction"), exports);
81
82
  __exportStar(require("./WorkerTransactionDetails"), exports);
82
83
  __exportStar(require("./WorkerWithdrawalTransaction"), exports);
@@ -89,3 +90,4 @@ __exportStar(require("./SetAutoWithdrawalResponse"), exports);
89
90
  __exportStar(require("./WorkerTransactionStatus"), exports);
90
91
  __exportStar(require("./SetBulkAutoApproveInvoiceForTeamsRequest"), exports);
91
92
  __exportStar(require("./GetPayInCountResponse"), exports);
93
+ __exportStar(require("./ContractorSubscriptionPayIn"), exports);
@@ -0,0 +1,15 @@
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 ContractSummary: core.serialization.ObjectSchema<serializers.api.thera.contractor.ContractSummary.Raw, TheraApi.api.thera.contractor.ContractSummary>;
8
+ export declare namespace ContractSummary {
9
+ interface Raw {
10
+ contractId: string;
11
+ startDate: string;
12
+ endDate?: string | null;
13
+ status: string;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
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.ContractSummary = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ exports.ContractSummary = core.serialization.object({
42
+ contractId: core.serialization.string(),
43
+ startDate: core.serialization.string(),
44
+ endDate: core.serialization.string().optional(),
45
+ status: core.serialization.string(),
46
+ });
@@ -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
+ import { ContractSummary } from "./ContractSummary";
8
+ export declare const GetContractsForContractorResponse: core.serialization.ObjectSchema<serializers.api.thera.contractor.GetContractsForContractorResponse.Raw, TheraApi.api.thera.contractor.GetContractsForContractorResponse>;
9
+ export declare namespace GetContractsForContractorResponse {
10
+ interface Raw {
11
+ userId: string;
12
+ contracts: ContractSummary.Raw[];
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.GetContractsForContractorResponse = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ const ContractSummary_1 = require("./ContractSummary");
42
+ exports.GetContractsForContractorResponse = core.serialization.object({
43
+ userId: core.serialization.string(),
44
+ contracts: core.serialization.list(ContractSummary_1.ContractSummary),
45
+ });
@@ -7,3 +7,5 @@ export * from "./InvoiceCycle";
7
7
  export * from "./CreateContractorsCsvRecord";
8
8
  export * from "./WorkSubmitterType";
9
9
  export * from "./ContractorsOnboardCsvUploadContractDocumentType";
10
+ export * from "./GetContractsForContractorResponse";
11
+ export * from "./ContractSummary";
@@ -23,3 +23,5 @@ __exportStar(require("./InvoiceCycle"), exports);
23
23
  __exportStar(require("./CreateContractorsCsvRecord"), exports);
24
24
  __exportStar(require("./WorkSubmitterType"), exports);
25
25
  __exportStar(require("./ContractorsOnboardCsvUploadContractDocumentType"), exports);
26
+ __exportStar(require("./GetContractsForContractorResponse"), exports);
27
+ __exportStar(require("./ContractSummary"), 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 {
@@ -25,6 +26,7 @@ export declare namespace Company {
25
26
  companyName: string;
26
27
  dbaName: string;
27
28
  email: string;
29
+ payInRequestProcessing?: boolean | null;
28
30
  stripeCustomerId: string;
29
31
  defaultCurrency: string;
30
32
  defaultPaymentMethodID: string;
@@ -54,5 +56,6 @@ export declare namespace Company {
54
56
  companyAccountingInformation?: CompanyAccountingInformation.Raw | null;
55
57
  companyBankingDetails?: CompanyBankingDetails.Raw | null;
56
58
  incorporationDetails?: IncorporationDetails.Raw | null;
59
+ lastContractorsBillingInfo?: LastContractorBillingInfo.Raw | null;
57
60
  }
58
61
  }
@@ -52,11 +52,13 @@ 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(),
58
59
  dbaName: core.serialization.string(),
59
60
  email: core.serialization.string(),
61
+ payInRequestProcessing: core.serialization.boolean().optional(),
60
62
  stripeCustomerId: core.serialization.string(),
61
63
  defaultCurrency: core.serialization.string(),
62
64
  defaultPaymentMethodId: core.serialization.property("defaultPaymentMethodID", core.serialization.string()),
@@ -86,4 +88,5 @@ exports.Company = core.serialization.object({
86
88
  companyAccountingInformation: CompanyAccountingInformation_1.CompanyAccountingInformation.optional(),
87
89
  companyBankingDetails: CompanyBankingDetails_1.CompanyBankingDetails.optional(),
88
90
  incorporationDetails: IncorporationDetails_1.IncorporationDetails.optional(),
91
+ lastContractorsBillingInfo: LastContractorBillingInfo_1.LastContractorBillingInfo.optional(),
89
92
  });
@@ -9,6 +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
13
  paymentsVersion: number;
13
14
  csv: boolean;
14
15
  cards: boolean;
@@ -23,6 +24,6 @@ export declare namespace Flags {
23
24
  autoPayExposed: boolean;
24
25
  mfaEnabled: boolean;
25
26
  separateRevenue?: boolean | null;
26
- chargeActiveWorkersMonthly?: boolean | null;
27
+ chargeCompanyWithActiveWorkersModel?: boolean | null;
27
28
  }
28
29
  }
@@ -41,6 +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
45
  paymentsVersion: core.serialization.number(),
45
46
  csv: core.serialization.boolean(),
46
47
  cards: core.serialization.boolean(),
@@ -55,5 +56,5 @@ exports.Flags = core.serialization.object({
55
56
  autoPayExposed: core.serialization.boolean(),
56
57
  mfaEnabled: core.serialization.boolean(),
57
58
  separateRevenue: core.serialization.boolean().optional(),
58
- chargeActiveWorkersMonthly: core.serialization.boolean().optional(),
59
+ chargeCompanyWithActiveWorkersModel: core.serialization.boolean().optional(),
59
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
  });
@@ -9,6 +9,7 @@ export declare const GenericType: core.serialization.ObjectSchema<serializers.db
9
9
  export declare namespace GenericType {
10
10
  interface Raw {
11
11
  key: GenericTypeKey.Raw;
12
+ processPayouts: boolean;
12
13
  fxLedgerAccountIdByCurrency: Record<string, string>;
13
14
  stripeFxAccountIdByCurrency: Record<string, string>;
14
15
  theraApAccountIdByCurrency: Record<string, string>;