@thera-hr/api-sdk 0.0.1-prerelease3052-dev-4 → 0.0.1-prerelease3054-dev-2

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 (232) 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 +27 -1
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +155 -35
  8. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetPayInHistoryRequest.d.ts +5 -1
  9. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetPaymentByTypeRequest.d.ts +12 -0
  10. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +1 -0
  11. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInCountResponse.d.ts +6 -0
  12. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.d.ts +1 -0
  13. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  14. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  15. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +24 -24
  16. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  17. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  18. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  19. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  20. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  21. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  22. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  23. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  24. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  25. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +7 -7
  26. package/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +0 -3
  27. package/api/resources/api/resources/thera/resources/payroll/client/Client.js +0 -5
  28. package/api/resources/api/resources/thera/resources/payroll/resources/index.d.ts +0 -3
  29. package/api/resources/api/resources/thera/resources/payroll/resources/index.js +1 -4
  30. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  31. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +5 -18
  32. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +11 -66
  33. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/OnCycleChecksResponse.d.ts +0 -1
  34. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  35. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  36. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +11 -11
  37. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  38. package/api/resources/db/resources/company/types/W2Payroll.d.ts +0 -2
  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.d.ts +27 -1
  45. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +155 -35
  46. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetPayInHistoryRequest.d.ts +5 -1
  47. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetPaymentByTypeRequest.d.ts +12 -0
  48. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +1 -0
  49. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInCountResponse.d.ts +6 -0
  50. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.d.ts +1 -0
  51. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  52. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  53. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +24 -24
  54. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  55. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  56. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  57. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  58. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  59. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  60. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  61. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  62. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  63. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +7 -7
  64. package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +0 -3
  65. package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.js +0 -5
  66. package/dist/api/resources/api/resources/thera/resources/payroll/resources/index.d.ts +0 -3
  67. package/dist/api/resources/api/resources/thera/resources/payroll/resources/index.js +1 -4
  68. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  69. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +5 -18
  70. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +11 -66
  71. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/OnCycleChecksResponse.d.ts +0 -1
  72. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  73. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  74. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +11 -11
  75. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  76. package/dist/api/resources/db/resources/company/types/W2Payroll.d.ts +0 -2
  77. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInCountResponse.d.ts +12 -0
  78. package/dist/serialization/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.js → bank/resources/bankApi/types/GetPayInCountResponse.js} +4 -2
  79. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.d.ts +1 -0
  80. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.js +1 -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/api/resources/thera/resources/payroll/resources/index.d.ts +0 -3
  84. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/index.js +1 -4
  85. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleChecks.d.ts +2 -2
  86. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleChecks.js +1 -35
  87. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.d.ts +0 -1
  88. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.js +1 -2
  89. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/OnCycleChecksResponse.d.ts +0 -1
  90. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/OnCycleChecksResponse.js +0 -1
  91. package/dist/serialization/resources/db/resources/company/types/W2Payroll.d.ts +0 -1
  92. package/dist/serialization/resources/db/resources/company/types/W2Payroll.js +0 -1
  93. package/dist/version.d.ts +1 -1
  94. package/dist/version.js +1 -1
  95. package/package.json +1 -1
  96. package/reference.md +151 -602
  97. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInCountResponse.d.ts +12 -0
  98. package/serialization/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.js → bank/resources/bankApi/types/GetPayInCountResponse.js} +4 -2
  99. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.d.ts +1 -0
  100. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.js +1 -0
  101. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  102. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  103. package/serialization/resources/api/resources/thera/resources/payroll/resources/index.d.ts +0 -3
  104. package/serialization/resources/api/resources/thera/resources/payroll/resources/index.js +1 -4
  105. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleChecks.d.ts +2 -2
  106. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleChecks.js +1 -35
  107. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.d.ts +0 -1
  108. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.js +1 -2
  109. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/OnCycleChecksResponse.d.ts +0 -1
  110. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/types/OnCycleChecksResponse.js +0 -1
  111. package/serialization/resources/db/resources/company/types/W2Payroll.d.ts +0 -1
  112. package/serialization/resources/db/resources/company/types/W2Payroll.js +0 -1
  113. package/version.d.ts +1 -1
  114. package/version.js +1 -1
  115. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.d.ts +0 -126
  116. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +0 -465
  117. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/index.d.ts +0 -1
  118. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/index.js +0 -17
  119. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.d.ts +0 -14
  120. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.d.ts +0 -24
  121. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.d.ts +0 -26
  122. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/index.d.ts +0 -3
  123. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/index.js +0 -2
  124. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/index.d.ts +0 -2
  125. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/index.js +0 -18
  126. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.d.ts +0 -6
  127. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.d.ts +0 -14
  128. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.js +0 -5
  129. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckPayScheduleMetadata.d.ts +0 -9
  130. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckPayScheduleMetadata.js +0 -5
  131. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPaySchedulePaydaysResponse.d.ts +0 -10
  132. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPaySchedulePaydaysResponse.js +0 -5
  133. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPayScheduleResponse.d.ts +0 -15
  134. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPayScheduleResponse.js +0 -5
  135. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.d.ts +0 -10
  136. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.js +0 -12
  137. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.d.ts +0 -6
  138. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.js +0 -22
  139. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.d.ts +0 -126
  140. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +0 -465
  141. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/index.d.ts +0 -1
  142. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/index.js +0 -17
  143. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.d.ts +0 -14
  144. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.js +0 -5
  145. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.d.ts +0 -24
  146. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.js +0 -5
  147. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.d.ts +0 -26
  148. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.js +0 -5
  149. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/index.d.ts +0 -3
  150. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/index.js +0 -2
  151. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/index.d.ts +0 -2
  152. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/index.js +0 -18
  153. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.d.ts +0 -6
  154. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.js +0 -5
  155. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.d.ts +0 -14
  156. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.js +0 -5
  157. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckPayScheduleMetadata.d.ts +0 -9
  158. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckPayScheduleMetadata.js +0 -5
  159. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPaySchedulePaydaysResponse.d.ts +0 -10
  160. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPaySchedulePaydaysResponse.js +0 -5
  161. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPayScheduleResponse.d.ts +0 -15
  162. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPayScheduleResponse.js +0 -5
  163. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.d.ts +0 -10
  164. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.js +0 -12
  165. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.d.ts +0 -6
  166. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.js +0 -22
  167. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleCheckDetails.d.ts +0 -11
  168. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleCheckDetails.js +0 -8
  169. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/getSomePaySchedulePaydays.d.ts +0 -11
  170. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/getSomePaySchedulePaydays.js +0 -42
  171. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/index.d.ts +0 -3
  172. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/index.js +0 -42
  173. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/listW2PaySchedules.d.ts +0 -11
  174. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/listW2PaySchedules.js +0 -42
  175. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.d.ts +0 -12
  176. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.js +0 -43
  177. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.d.ts +0 -18
  178. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.js +0 -49
  179. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.d.ts +0 -19
  180. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.js +0 -50
  181. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/index.d.ts +0 -3
  182. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/index.js +0 -9
  183. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/index.d.ts +0 -2
  184. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/index.js +0 -18
  185. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.d.ts +0 -12
  186. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.js +0 -43
  187. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.d.ts +0 -20
  188. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.js +0 -51
  189. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckPayScheduleMetadata.d.ts +0 -13
  190. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckPayScheduleMetadata.js +0 -44
  191. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPaySchedulePaydaysResponse.d.ts +0 -16
  192. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPaySchedulePaydaysResponse.js +0 -47
  193. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPayScheduleResponse.d.ts +0 -21
  194. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPayScheduleResponse.js +0 -52
  195. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.d.ts +0 -10
  196. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.d.ts +0 -6
  197. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.js +0 -22
  198. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleCheckDetails.d.ts +0 -11
  199. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleCheckDetails.js +0 -8
  200. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/getSomePaySchedulePaydays.d.ts +0 -11
  201. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/getSomePaySchedulePaydays.js +0 -42
  202. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/index.d.ts +0 -3
  203. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/index.js +0 -42
  204. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/listW2PaySchedules.d.ts +0 -11
  205. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/listW2PaySchedules.js +0 -42
  206. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.d.ts +0 -12
  207. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.js +0 -43
  208. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.d.ts +0 -18
  209. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.js +0 -49
  210. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.d.ts +0 -19
  211. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.js +0 -50
  212. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/index.d.ts +0 -3
  213. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/index.js +0 -9
  214. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/index.d.ts +0 -2
  215. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/index.js +0 -18
  216. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.d.ts +0 -12
  217. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.js +0 -43
  218. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.d.ts +0 -20
  219. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.js +0 -51
  220. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckPayScheduleMetadata.d.ts +0 -13
  221. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckPayScheduleMetadata.js +0 -44
  222. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPaySchedulePaydaysResponse.d.ts +0 -16
  223. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPaySchedulePaydaysResponse.js +0 -47
  224. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPayScheduleResponse.d.ts +0 -21
  225. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPayScheduleResponse.js +0 -52
  226. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.d.ts +0 -10
  227. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.d.ts +0 -6
  228. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.js +0 -22
  229. /package/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.js → bank/resources/bankApi/client/requests/GetPaymentByTypeRequest.js} +0 -0
  230. /package/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.js → bank/resources/bankApi/types/GetPayInCountResponse.js} +0 -0
  231. /package/{api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.js → dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetPaymentByTypeRequest.js} +0 -0
  232. /package/{api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.js → dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInCountResponse.js} +0 -0
@@ -1,465 +0,0 @@
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
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
- return new (P || (P = Promise))(function (resolve, reject) {
41
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
- step((generator = generator.apply(thisArg, _arguments || [])).next());
45
- });
46
- };
47
- var __importDefault = (this && this.__importDefault) || function (mod) {
48
- return (mod && mod.__esModule) ? mod : { "default": mod };
49
- };
50
- Object.defineProperty(exports, "__esModule", { value: true });
51
- exports.PayscheduleApi = void 0;
52
- const core = __importStar(require("../../../../../../../../../../core"));
53
- const serializers = __importStar(require("../../../../../../../../../../serialization/index"));
54
- const url_join_1 = __importDefault(require("url-join"));
55
- const errors = __importStar(require("../../../../../../../../../../errors/index"));
56
- class PayscheduleApi {
57
- constructor(_options) {
58
- this._options = _options;
59
- }
60
- /**
61
- *
62
- *
63
- * @param {string} companyId
64
- * @param {TheraApi.api.thera.payroll.CreatePayScheduleRequest} request
65
- * @param {PayscheduleApi.RequestOptions} requestOptions - Request-specific configuration.
66
- *
67
- * @example
68
- * await client.api.thera.payroll.payscheduleApi.createW2PaySchedule("string", {
69
- * name: "string",
70
- * payFrequency: "weekly",
71
- * firstPayDate: "2023-01-15",
72
- * secondPayDate: "2023-01-15",
73
- * firstPeriodEndDate: "2023-01-15",
74
- * autopilotEnabled: true
75
- * })
76
- */
77
- createW2PaySchedule(companyId, request, requestOptions) {
78
- return __awaiter(this, void 0, void 0, function* () {
79
- var _a;
80
- const _response = yield core.fetcher({
81
- 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)}/w2-payroll/pay-schedule`),
82
- method: "POST",
83
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3052-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3052-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
- contentType: "application/json",
85
- requestType: "json",
86
- body: serializers.api.thera.payroll.CreatePayScheduleRequest.jsonOrThrow(request, {
87
- unrecognizedObjectKeys: "strip",
88
- }),
89
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
90
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
91
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
92
- });
93
- if (_response.ok) {
94
- return serializers.api.thera.payroll.GetPayScheduleResponse.parseOrThrow(_response.body, {
95
- unrecognizedObjectKeys: "passthrough",
96
- allowUnrecognizedUnionMembers: true,
97
- allowUnrecognizedEnumValues: true,
98
- skipValidation: true,
99
- breadcrumbsPrefix: ["response"],
100
- });
101
- }
102
- if (_response.error.reason === "status-code") {
103
- throw new errors.TheraApiError({
104
- statusCode: _response.error.statusCode,
105
- body: _response.error.body,
106
- });
107
- }
108
- switch (_response.error.reason) {
109
- case "non-json":
110
- throw new errors.TheraApiError({
111
- statusCode: _response.error.statusCode,
112
- body: _response.error.rawBody,
113
- });
114
- case "timeout":
115
- throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /companies/{companyId}/w2-payroll/pay-schedule.");
116
- case "unknown":
117
- throw new errors.TheraApiError({
118
- message: _response.error.errorMessage,
119
- });
120
- }
121
- });
122
- }
123
- /**
124
- *
125
- *
126
- * @param {string} companyId
127
- * @param {string} checkPayScheduleId
128
- * @param {PayscheduleApi.RequestOptions} requestOptions - Request-specific configuration.
129
- *
130
- * @example
131
- * await client.api.thera.payroll.payscheduleApi.getW2PaySchedule("string", "string")
132
- */
133
- getW2PaySchedule(companyId, checkPayScheduleId, requestOptions) {
134
- return __awaiter(this, void 0, void 0, function* () {
135
- var _a;
136
- const _response = yield core.fetcher({
137
- 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)}/w2-payroll/pay-schedules/${encodeURIComponent(checkPayScheduleId)}`),
138
- method: "GET",
139
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3052-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3052-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
140
- contentType: "application/json",
141
- requestType: "json",
142
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
143
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
144
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
145
- });
146
- if (_response.ok) {
147
- return serializers.api.thera.payroll.GetPayScheduleResponse.parseOrThrow(_response.body, {
148
- unrecognizedObjectKeys: "passthrough",
149
- allowUnrecognizedUnionMembers: true,
150
- allowUnrecognizedEnumValues: true,
151
- skipValidation: true,
152
- breadcrumbsPrefix: ["response"],
153
- });
154
- }
155
- if (_response.error.reason === "status-code") {
156
- throw new errors.TheraApiError({
157
- statusCode: _response.error.statusCode,
158
- body: _response.error.body,
159
- });
160
- }
161
- switch (_response.error.reason) {
162
- case "non-json":
163
- throw new errors.TheraApiError({
164
- statusCode: _response.error.statusCode,
165
- body: _response.error.rawBody,
166
- });
167
- case "timeout":
168
- throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/w2-payroll/pay-schedules/{checkPayScheduleId}.");
169
- case "unknown":
170
- throw new errors.TheraApiError({
171
- message: _response.error.errorMessage,
172
- });
173
- }
174
- });
175
- }
176
- /**
177
- *
178
- *
179
- * @param {string} companyId
180
- * @param {PayscheduleApi.RequestOptions} requestOptions - Request-specific configuration.
181
- *
182
- * @example
183
- * await client.api.thera.payroll.payscheduleApi.listW2PaySchedules("string")
184
- */
185
- listW2PaySchedules(companyId, requestOptions) {
186
- return __awaiter(this, void 0, void 0, function* () {
187
- var _a;
188
- const _response = yield core.fetcher({
189
- 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)}/w2-payroll/pay-schedules`),
190
- method: "GET",
191
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3052-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3052-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
192
- contentType: "application/json",
193
- requestType: "json",
194
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
195
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
196
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
197
- });
198
- if (_response.ok) {
199
- return serializers.api.thera.payroll.payscheduleApi.listW2PaySchedules.Response.parseOrThrow(_response.body, {
200
- unrecognizedObjectKeys: "passthrough",
201
- allowUnrecognizedUnionMembers: true,
202
- allowUnrecognizedEnumValues: true,
203
- skipValidation: true,
204
- breadcrumbsPrefix: ["response"],
205
- });
206
- }
207
- if (_response.error.reason === "status-code") {
208
- throw new errors.TheraApiError({
209
- statusCode: _response.error.statusCode,
210
- body: _response.error.body,
211
- });
212
- }
213
- switch (_response.error.reason) {
214
- case "non-json":
215
- throw new errors.TheraApiError({
216
- statusCode: _response.error.statusCode,
217
- body: _response.error.rawBody,
218
- });
219
- case "timeout":
220
- throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/w2-payroll/pay-schedules.");
221
- case "unknown":
222
- throw new errors.TheraApiError({
223
- message: _response.error.errorMessage,
224
- });
225
- }
226
- });
227
- }
228
- /**
229
- * Delete W2 Pay Schedule in Check by setting the metadata flag, as we can't delete Check W2 Pay Schedule by API. https://support.checkhq.com/hc/en-us/articles/24948436554263-Pay-Schedules
230
- *
231
- * @param {string} companyId
232
- * @param {string} checkPayScheduleId
233
- * @param {PayscheduleApi.RequestOptions} requestOptions - Request-specific configuration.
234
- *
235
- * @example
236
- * await client.api.thera.payroll.payscheduleApi.deleteW2PaySchedule("string", "string")
237
- */
238
- deleteW2PaySchedule(companyId, checkPayScheduleId, requestOptions) {
239
- return __awaiter(this, void 0, void 0, function* () {
240
- var _a;
241
- const _response = yield core.fetcher({
242
- 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)}/w2-payroll/pay-schedules/${encodeURIComponent(checkPayScheduleId)}`),
243
- method: "DELETE",
244
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3052-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3052-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
245
- contentType: "application/json",
246
- requestType: "json",
247
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
248
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
249
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
250
- });
251
- if (_response.ok) {
252
- return;
253
- }
254
- if (_response.error.reason === "status-code") {
255
- throw new errors.TheraApiError({
256
- statusCode: _response.error.statusCode,
257
- body: _response.error.body,
258
- });
259
- }
260
- switch (_response.error.reason) {
261
- case "non-json":
262
- throw new errors.TheraApiError({
263
- statusCode: _response.error.statusCode,
264
- body: _response.error.rawBody,
265
- });
266
- case "timeout":
267
- throw new errors.TheraApiTimeoutError("Timeout exceeded when calling DELETE /companies/{companyId}/w2-payroll/pay-schedules/{checkPayScheduleId}.");
268
- case "unknown":
269
- throw new errors.TheraApiError({
270
- message: _response.error.errorMessage,
271
- });
272
- }
273
- });
274
- }
275
- /**
276
- *
277
- *
278
- * @param {string} companyId
279
- * @param {string} checkPayScheduleId
280
- * @param {TheraApi.api.thera.payroll.UpdatePayScheduleRequest} request
281
- * @param {PayscheduleApi.RequestOptions} requestOptions - Request-specific configuration.
282
- *
283
- * @example
284
- * await client.api.thera.payroll.payscheduleApi.updateW2PaySchedule("string", "string", {
285
- * name: "string",
286
- * payFrequency: "weekly",
287
- * firstPeriodEndDate: "2023-01-15",
288
- * firstPayDate: "2023-01-15",
289
- * secondPayDate: "2023-01-15",
290
- * metadata: {
291
- * deleted: "string",
292
- * autopilotEnabled: "string"
293
- * }
294
- * })
295
- */
296
- updateW2PaySchedule(companyId, checkPayScheduleId, request, requestOptions) {
297
- return __awaiter(this, void 0, void 0, function* () {
298
- var _a;
299
- const _response = yield core.fetcher({
300
- 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)}/w2-payroll/pay-schedules/${encodeURIComponent(checkPayScheduleId)}`),
301
- method: "PUT",
302
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3052-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3052-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
303
- contentType: "application/json",
304
- requestType: "json",
305
- body: serializers.api.thera.payroll.UpdatePayScheduleRequest.jsonOrThrow(request, {
306
- unrecognizedObjectKeys: "strip",
307
- }),
308
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
309
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
310
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
311
- });
312
- if (_response.ok) {
313
- return serializers.api.thera.payroll.GetPayScheduleResponse.parseOrThrow(_response.body, {
314
- unrecognizedObjectKeys: "passthrough",
315
- allowUnrecognizedUnionMembers: true,
316
- allowUnrecognizedEnumValues: true,
317
- skipValidation: true,
318
- breadcrumbsPrefix: ["response"],
319
- });
320
- }
321
- if (_response.error.reason === "status-code") {
322
- throw new errors.TheraApiError({
323
- statusCode: _response.error.statusCode,
324
- body: _response.error.body,
325
- });
326
- }
327
- switch (_response.error.reason) {
328
- case "non-json":
329
- throw new errors.TheraApiError({
330
- statusCode: _response.error.statusCode,
331
- body: _response.error.rawBody,
332
- });
333
- case "timeout":
334
- throw new errors.TheraApiTimeoutError("Timeout exceeded when calling PUT /companies/{companyId}/w2-payroll/pay-schedules/{checkPayScheduleId}.");
335
- case "unknown":
336
- throw new errors.TheraApiError({
337
- message: _response.error.errorMessage,
338
- });
339
- }
340
- });
341
- }
342
- /**
343
- * If user ID is not provided in the request, it'll use the old value in DB. The response body always return the schedules for all employees
344
- *
345
- * @param {string} companyId
346
- * @param {TheraApi.api.thera.payroll.AssignW2EmployeeToPayScheduleRequest} request
347
- * @param {PayscheduleApi.RequestOptions} requestOptions - Request-specific configuration.
348
- *
349
- * @example
350
- * await client.api.thera.payroll.payscheduleApi.assignW2EmployeesPaySchedule("string", {
351
- * checkPayScheduleIdByUserId: {
352
- * "string": "string"
353
- * }
354
- * })
355
- */
356
- assignW2EmployeesPaySchedule(companyId, request, requestOptions) {
357
- return __awaiter(this, void 0, void 0, function* () {
358
- var _a;
359
- const _response = yield core.fetcher({
360
- 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)}/w2-payroll/pay-schedules/assign-to-employees`),
361
- method: "PUT",
362
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3052-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3052-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
363
- contentType: "application/json",
364
- requestType: "json",
365
- body: serializers.api.thera.payroll.AssignW2EmployeeToPayScheduleRequest.jsonOrThrow(request, {
366
- unrecognizedObjectKeys: "strip",
367
- }),
368
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
369
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
370
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
371
- });
372
- if (_response.ok) {
373
- return serializers.api.thera.payroll.AssignW2EmployeeToPayScheduleResponse.parseOrThrow(_response.body, {
374
- unrecognizedObjectKeys: "passthrough",
375
- allowUnrecognizedUnionMembers: true,
376
- allowUnrecognizedEnumValues: true,
377
- skipValidation: true,
378
- breadcrumbsPrefix: ["response"],
379
- });
380
- }
381
- if (_response.error.reason === "status-code") {
382
- throw new errors.TheraApiError({
383
- statusCode: _response.error.statusCode,
384
- body: _response.error.body,
385
- });
386
- }
387
- switch (_response.error.reason) {
388
- case "non-json":
389
- throw new errors.TheraApiError({
390
- statusCode: _response.error.statusCode,
391
- body: _response.error.rawBody,
392
- });
393
- case "timeout":
394
- throw new errors.TheraApiTimeoutError("Timeout exceeded when calling PUT /companies/{companyId}/w2-payroll/pay-schedules/assign-to-employees.");
395
- case "unknown":
396
- throw new errors.TheraApiError({
397
- message: _response.error.errorMessage,
398
- });
399
- }
400
- });
401
- }
402
- /**
403
- * Return several upcoming paydays (not all of them!)
404
- *
405
- * @param {string} companyId
406
- * @param {string} checkPayScheduleId
407
- * @param {PayscheduleApi.RequestOptions} requestOptions - Request-specific configuration.
408
- *
409
- * @example
410
- * await client.api.thera.payroll.payscheduleApi.getSomePaySchedulePaydays("string", "string")
411
- */
412
- getSomePaySchedulePaydays(companyId, checkPayScheduleId, requestOptions) {
413
- return __awaiter(this, void 0, void 0, function* () {
414
- var _a;
415
- const _response = yield core.fetcher({
416
- 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)}/w2-payroll/pay-schedules/${encodeURIComponent(checkPayScheduleId)}/paydays`),
417
- method: "GET",
418
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3052-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3052-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
419
- contentType: "application/json",
420
- requestType: "json",
421
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
422
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
423
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
424
- });
425
- if (_response.ok) {
426
- return serializers.api.thera.payroll.payscheduleApi.getSomePaySchedulePaydays.Response.parseOrThrow(_response.body, {
427
- unrecognizedObjectKeys: "passthrough",
428
- allowUnrecognizedUnionMembers: true,
429
- allowUnrecognizedEnumValues: true,
430
- skipValidation: true,
431
- breadcrumbsPrefix: ["response"],
432
- });
433
- }
434
- if (_response.error.reason === "status-code") {
435
- throw new errors.TheraApiError({
436
- statusCode: _response.error.statusCode,
437
- body: _response.error.body,
438
- });
439
- }
440
- switch (_response.error.reason) {
441
- case "non-json":
442
- throw new errors.TheraApiError({
443
- statusCode: _response.error.statusCode,
444
- body: _response.error.rawBody,
445
- });
446
- case "timeout":
447
- throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/w2-payroll/pay-schedules/{checkPayScheduleId}/paydays.");
448
- case "unknown":
449
- throw new errors.TheraApiError({
450
- message: _response.error.errorMessage,
451
- });
452
- }
453
- });
454
- }
455
- _getAuthorizationHeader() {
456
- return __awaiter(this, void 0, void 0, function* () {
457
- const bearer = yield core.Supplier.get(this._options.token);
458
- if (bearer != null) {
459
- return `Bearer ${bearer}`;
460
- }
461
- return undefined;
462
- });
463
- }
464
- }
465
- exports.PayscheduleApi = PayscheduleApi;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./requests"), exports);
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * @example
6
- * {
7
- * checkPayScheduleIdByUserId: {
8
- * "string": "string"
9
- * }
10
- * }
11
- */
12
- export interface AssignW2EmployeeToPayScheduleRequest {
13
- checkPayScheduleIdByUserId: Record<string, string>;
14
- }
@@ -1,24 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as TheraApi from "../../../../../../../../../../index";
5
- /**
6
- * @example
7
- * {
8
- * name: "string",
9
- * payFrequency: "weekly",
10
- * firstPayDate: "2023-01-15",
11
- * secondPayDate: "2023-01-15",
12
- * firstPeriodEndDate: "2023-01-15",
13
- * autopilotEnabled: true
14
- * }
15
- */
16
- export interface CreatePayScheduleRequest {
17
- name: string;
18
- payFrequency: TheraApi.api.thera.payroll.PaySchedulePayFrequency;
19
- firstPayDate: string;
20
- /** Only used with SEMIMONTHLY frequency. The payday date of the the second payroll the company will run on Check on this pay schedule. This field should only be used with the semimonthly frequency to specify custom paydays besides the 15th and last day of the month. second_payday must be between one day and one month after first_payday. */
21
- secondPayDate?: string;
22
- firstPeriodEndDate: string;
23
- autopilotEnabled: boolean;
24
- }
@@ -1,26 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as TheraApi from "../../../../../../../../../../index";
5
- /**
6
- * @example
7
- * {
8
- * name: "string",
9
- * payFrequency: "weekly",
10
- * firstPeriodEndDate: "2023-01-15",
11
- * firstPayDate: "2023-01-15",
12
- * secondPayDate: "2023-01-15",
13
- * metadata: {
14
- * deleted: "string",
15
- * autopilotEnabled: "string"
16
- * }
17
- * }
18
- */
19
- export interface UpdatePayScheduleRequest {
20
- name: string;
21
- payFrequency: TheraApi.api.thera.payroll.PaySchedulePayFrequency;
22
- firstPeriodEndDate: string;
23
- firstPayDate: string;
24
- secondPayDate?: string;
25
- metadata: TheraApi.api.thera.payroll.CheckPayScheduleMetadata;
26
- }
@@ -1,3 +0,0 @@
1
- export { type CreatePayScheduleRequest } from "./CreatePayScheduleRequest";
2
- export { type UpdatePayScheduleRequest } from "./UpdatePayScheduleRequest";
3
- export { type AssignW2EmployeeToPayScheduleRequest } from "./AssignW2EmployeeToPayScheduleRequest";
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export * from "./types";
2
- export * from "./client";
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./types"), exports);
18
- __exportStar(require("./client"), exports);
@@ -1,6 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface AssignW2EmployeeToPayScheduleResponse {
5
- checkPayScheduleIdByUserId: Record<string, string>;
6
- }
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as TheraApi from "../../../../../../../../../index";
5
- export interface CheckGetPayScheduleResponse {
6
- id: string;
7
- company: string;
8
- name: string;
9
- payFrequency: TheraApi.api.thera.payroll.PaySchedulePayFrequency;
10
- firstPayday: string;
11
- secondPayday?: string;
12
- firstPeriodEnd: string;
13
- metadata?: unknown;
14
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface CheckPayScheduleMetadata {
5
- /** The underlying value is Boolean. Must be string type in Fern: https://support.checkhq.com/hc/en-us/requests/113440. */
6
- deleted?: string;
7
- /** The underlying value is Boolean. Must be string type in Fern: https://support.checkhq.com/hc/en-us/requests/113440. */
8
- autopilotEnabled?: string;
9
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface GetPaySchedulePaydaysResponse {
5
- payday: string;
6
- periodStart: string;
7
- periodEnd: string;
8
- approvalDeadline: string;
9
- impactedByWeekendOrHoliday: boolean;
10
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });