@thera-hr/api-sdk 0.0.1-prerelease3033-dev-anthony → 0.0.1-prerelease3033-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 (212) 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 +10 -10
  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 +10 -10
  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 -537
  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 -114
  116. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +0 -411
  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 -22
  121. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.d.ts +0 -25
  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/GetPayScheduleResponse.d.ts +0 -14
  130. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPayScheduleResponse.js +0 -5
  131. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.d.ts +0 -10
  132. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.js +0 -12
  133. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.d.ts +0 -4
  134. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.js +0 -20
  135. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.d.ts +0 -114
  136. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +0 -411
  137. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/index.d.ts +0 -1
  138. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/index.js +0 -17
  139. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.d.ts +0 -14
  140. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.js +0 -5
  141. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.d.ts +0 -22
  142. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.js +0 -5
  143. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.d.ts +0 -25
  144. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.js +0 -5
  145. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/index.d.ts +0 -3
  146. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/index.js +0 -2
  147. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/index.d.ts +0 -2
  148. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/index.js +0 -18
  149. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.d.ts +0 -6
  150. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.js +0 -5
  151. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.d.ts +0 -14
  152. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.js +0 -5
  153. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPayScheduleResponse.d.ts +0 -14
  154. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPayScheduleResponse.js +0 -5
  155. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.d.ts +0 -10
  156. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.js +0 -12
  157. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.d.ts +0 -4
  158. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.js +0 -20
  159. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleCheckDetails.d.ts +0 -11
  160. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleCheckDetails.js +0 -8
  161. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/index.d.ts +0 -2
  162. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/index.js +0 -41
  163. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/listW2PaySchedules.d.ts +0 -11
  164. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/listW2PaySchedules.js +0 -42
  165. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.d.ts +0 -12
  166. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.js +0 -43
  167. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.d.ts +0 -17
  168. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.js +0 -48
  169. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.d.ts +0 -18
  170. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.js +0 -49
  171. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/index.d.ts +0 -3
  172. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/index.js +0 -9
  173. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/index.d.ts +0 -2
  174. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/index.js +0 -18
  175. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.d.ts +0 -12
  176. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.js +0 -43
  177. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.d.ts +0 -20
  178. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.js +0 -51
  179. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPayScheduleResponse.d.ts +0 -20
  180. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPayScheduleResponse.js +0 -51
  181. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.d.ts +0 -10
  182. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.d.ts +0 -4
  183. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.js +0 -20
  184. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleCheckDetails.d.ts +0 -11
  185. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/getOnCycleCheckDetails.js +0 -8
  186. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/index.d.ts +0 -2
  187. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/index.js +0 -41
  188. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/listW2PaySchedules.d.ts +0 -11
  189. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/listW2PaySchedules.js +0 -42
  190. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.d.ts +0 -12
  191. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.js +0 -43
  192. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.d.ts +0 -17
  193. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.js +0 -48
  194. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.d.ts +0 -18
  195. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/UpdatePayScheduleRequest.js +0 -49
  196. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/index.d.ts +0 -3
  197. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/requests/index.js +0 -9
  198. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/index.d.ts +0 -2
  199. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/index.js +0 -18
  200. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.d.ts +0 -12
  201. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/AssignW2EmployeeToPayScheduleResponse.js +0 -43
  202. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.d.ts +0 -20
  203. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/CheckGetPayScheduleResponse.js +0 -51
  204. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPayScheduleResponse.d.ts +0 -20
  205. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/GetPayScheduleResponse.js +0 -51
  206. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/PaySchedulePayFrequency.d.ts +0 -10
  207. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.d.ts +0 -4
  208. package/serialization/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/types/index.js +0 -20
  209. /package/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/client/requests/AssignW2EmployeeToPayScheduleRequest.js → bank/resources/bankApi/client/requests/GetPaymentByTypeRequest.js} +0 -0
  210. /package/api/resources/api/resources/thera/resources/{payroll/resources/payscheduleApi/client/requests/CreatePayScheduleRequest.js → bank/resources/bankApi/types/GetPayInCountResponse.js} +0 -0
  211. /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
  212. /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,411 +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
- * })
75
- */
76
- createW2PaySchedule(companyId, request, requestOptions) {
77
- return __awaiter(this, void 0, void 0, function* () {
78
- var _a;
79
- const _response = yield core.fetcher({
80
- 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`),
81
- method: "POST",
82
- 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-prerelease3033-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3033-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
- contentType: "application/json",
84
- requestType: "json",
85
- body: serializers.api.thera.payroll.CreatePayScheduleRequest.jsonOrThrow(request, {
86
- unrecognizedObjectKeys: "strip",
87
- }),
88
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
89
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
90
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
91
- });
92
- if (_response.ok) {
93
- return serializers.api.thera.payroll.GetPayScheduleResponse.parseOrThrow(_response.body, {
94
- unrecognizedObjectKeys: "passthrough",
95
- allowUnrecognizedUnionMembers: true,
96
- allowUnrecognizedEnumValues: true,
97
- skipValidation: true,
98
- breadcrumbsPrefix: ["response"],
99
- });
100
- }
101
- if (_response.error.reason === "status-code") {
102
- throw new errors.TheraApiError({
103
- statusCode: _response.error.statusCode,
104
- body: _response.error.body,
105
- });
106
- }
107
- switch (_response.error.reason) {
108
- case "non-json":
109
- throw new errors.TheraApiError({
110
- statusCode: _response.error.statusCode,
111
- body: _response.error.rawBody,
112
- });
113
- case "timeout":
114
- throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /companies/{companyId}/w2-payroll/pay-schedule.");
115
- case "unknown":
116
- throw new errors.TheraApiError({
117
- message: _response.error.errorMessage,
118
- });
119
- }
120
- });
121
- }
122
- /**
123
- *
124
- *
125
- * @param {string} companyId
126
- * @param {string} checkPayScheduleId
127
- * @param {PayscheduleApi.RequestOptions} requestOptions - Request-specific configuration.
128
- *
129
- * @example
130
- * await client.api.thera.payroll.payscheduleApi.getW2PaySchedule("string", "string")
131
- */
132
- getW2PaySchedule(companyId, checkPayScheduleId, requestOptions) {
133
- return __awaiter(this, void 0, void 0, function* () {
134
- var _a;
135
- const _response = yield core.fetcher({
136
- 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)}`),
137
- method: "GET",
138
- 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-prerelease3033-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3033-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
139
- contentType: "application/json",
140
- requestType: "json",
141
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
142
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
143
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
144
- });
145
- if (_response.ok) {
146
- return serializers.api.thera.payroll.GetPayScheduleResponse.parseOrThrow(_response.body, {
147
- unrecognizedObjectKeys: "passthrough",
148
- allowUnrecognizedUnionMembers: true,
149
- allowUnrecognizedEnumValues: true,
150
- skipValidation: true,
151
- breadcrumbsPrefix: ["response"],
152
- });
153
- }
154
- if (_response.error.reason === "status-code") {
155
- throw new errors.TheraApiError({
156
- statusCode: _response.error.statusCode,
157
- body: _response.error.body,
158
- });
159
- }
160
- switch (_response.error.reason) {
161
- case "non-json":
162
- throw new errors.TheraApiError({
163
- statusCode: _response.error.statusCode,
164
- body: _response.error.rawBody,
165
- });
166
- case "timeout":
167
- throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/w2-payroll/pay-schedules/{checkPayScheduleId}.");
168
- case "unknown":
169
- throw new errors.TheraApiError({
170
- message: _response.error.errorMessage,
171
- });
172
- }
173
- });
174
- }
175
- /**
176
- *
177
- *
178
- * @param {string} companyId
179
- * @param {PayscheduleApi.RequestOptions} requestOptions - Request-specific configuration.
180
- *
181
- * @example
182
- * await client.api.thera.payroll.payscheduleApi.listW2PaySchedules("string")
183
- */
184
- listW2PaySchedules(companyId, requestOptions) {
185
- return __awaiter(this, void 0, void 0, function* () {
186
- var _a;
187
- const _response = yield core.fetcher({
188
- 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`),
189
- method: "GET",
190
- 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-prerelease3033-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3033-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
191
- contentType: "application/json",
192
- requestType: "json",
193
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
194
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
195
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
196
- });
197
- if (_response.ok) {
198
- return serializers.api.thera.payroll.payscheduleApi.listW2PaySchedules.Response.parseOrThrow(_response.body, {
199
- unrecognizedObjectKeys: "passthrough",
200
- allowUnrecognizedUnionMembers: true,
201
- allowUnrecognizedEnumValues: true,
202
- skipValidation: true,
203
- breadcrumbsPrefix: ["response"],
204
- });
205
- }
206
- if (_response.error.reason === "status-code") {
207
- throw new errors.TheraApiError({
208
- statusCode: _response.error.statusCode,
209
- body: _response.error.body,
210
- });
211
- }
212
- switch (_response.error.reason) {
213
- case "non-json":
214
- throw new errors.TheraApiError({
215
- statusCode: _response.error.statusCode,
216
- body: _response.error.rawBody,
217
- });
218
- case "timeout":
219
- throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/w2-payroll/pay-schedules.");
220
- case "unknown":
221
- throw new errors.TheraApiError({
222
- message: _response.error.errorMessage,
223
- });
224
- }
225
- });
226
- }
227
- /**
228
- * 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
229
- *
230
- * @param {string} companyId
231
- * @param {string} checkPayScheduleId
232
- * @param {PayscheduleApi.RequestOptions} requestOptions - Request-specific configuration.
233
- *
234
- * @example
235
- * await client.api.thera.payroll.payscheduleApi.deleteW2PaySchedule("string", "string")
236
- */
237
- deleteW2PaySchedule(companyId, checkPayScheduleId, requestOptions) {
238
- return __awaiter(this, void 0, void 0, function* () {
239
- var _a;
240
- const _response = yield core.fetcher({
241
- 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)}`),
242
- method: "DELETE",
243
- 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-prerelease3033-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3033-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
244
- contentType: "application/json",
245
- requestType: "json",
246
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
247
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
248
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
249
- });
250
- if (_response.ok) {
251
- return;
252
- }
253
- if (_response.error.reason === "status-code") {
254
- throw new errors.TheraApiError({
255
- statusCode: _response.error.statusCode,
256
- body: _response.error.body,
257
- });
258
- }
259
- switch (_response.error.reason) {
260
- case "non-json":
261
- throw new errors.TheraApiError({
262
- statusCode: _response.error.statusCode,
263
- body: _response.error.rawBody,
264
- });
265
- case "timeout":
266
- throw new errors.TheraApiTimeoutError("Timeout exceeded when calling DELETE /companies/{companyId}/w2-payroll/pay-schedules/{checkPayScheduleId}.");
267
- case "unknown":
268
- throw new errors.TheraApiError({
269
- message: _response.error.errorMessage,
270
- });
271
- }
272
- });
273
- }
274
- /**
275
- *
276
- *
277
- * @param {string} companyId
278
- * @param {string} checkPayScheduleId
279
- * @param {TheraApi.api.thera.payroll.UpdatePayScheduleRequest} request
280
- * @param {PayscheduleApi.RequestOptions} requestOptions - Request-specific configuration.
281
- *
282
- * @example
283
- * await client.api.thera.payroll.payscheduleApi.updateW2PaySchedule("string", "string", {
284
- * name: "string",
285
- * payFrequency: "weekly",
286
- * firstPeriodEndDate: "2023-01-15",
287
- * firstPayDate: "2023-01-15",
288
- * secondPayDate: "2023-01-15",
289
- * metadata: {
290
- * "key": "value"
291
- * }
292
- * })
293
- */
294
- updateW2PaySchedule(companyId, checkPayScheduleId, request, requestOptions) {
295
- return __awaiter(this, void 0, void 0, function* () {
296
- var _a;
297
- const _response = yield core.fetcher({
298
- 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)}`),
299
- method: "PUT",
300
- 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-prerelease3033-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3033-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
301
- contentType: "application/json",
302
- requestType: "json",
303
- body: serializers.api.thera.payroll.UpdatePayScheduleRequest.jsonOrThrow(request, {
304
- unrecognizedObjectKeys: "strip",
305
- }),
306
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
307
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
308
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
309
- });
310
- if (_response.ok) {
311
- return serializers.api.thera.payroll.GetPayScheduleResponse.parseOrThrow(_response.body, {
312
- unrecognizedObjectKeys: "passthrough",
313
- allowUnrecognizedUnionMembers: true,
314
- allowUnrecognizedEnumValues: true,
315
- skipValidation: true,
316
- breadcrumbsPrefix: ["response"],
317
- });
318
- }
319
- if (_response.error.reason === "status-code") {
320
- throw new errors.TheraApiError({
321
- statusCode: _response.error.statusCode,
322
- body: _response.error.body,
323
- });
324
- }
325
- switch (_response.error.reason) {
326
- case "non-json":
327
- throw new errors.TheraApiError({
328
- statusCode: _response.error.statusCode,
329
- body: _response.error.rawBody,
330
- });
331
- case "timeout":
332
- throw new errors.TheraApiTimeoutError("Timeout exceeded when calling PUT /companies/{companyId}/w2-payroll/pay-schedules/{checkPayScheduleId}.");
333
- case "unknown":
334
- throw new errors.TheraApiError({
335
- message: _response.error.errorMessage,
336
- });
337
- }
338
- });
339
- }
340
- /**
341
- * 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
342
- *
343
- * @param {string} companyId
344
- * @param {string} checkPayScheduleId
345
- * @param {TheraApi.api.thera.payroll.AssignW2EmployeeToPayScheduleRequest} request
346
- * @param {PayscheduleApi.RequestOptions} requestOptions - Request-specific configuration.
347
- *
348
- * @example
349
- * await client.api.thera.payroll.payscheduleApi.assignW2EmployeesPaySchedule("string", "string", {
350
- * checkPayScheduleIdByUserId: {
351
- * "string": "string"
352
- * }
353
- * })
354
- */
355
- assignW2EmployeesPaySchedule(companyId, checkPayScheduleId, request, requestOptions) {
356
- return __awaiter(this, void 0, void 0, function* () {
357
- var _a;
358
- const _response = yield core.fetcher({
359
- 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)}/assign-to-employees`),
360
- method: "PUT",
361
- 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-prerelease3033-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3033-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
362
- contentType: "application/json",
363
- requestType: "json",
364
- body: serializers.api.thera.payroll.AssignW2EmployeeToPayScheduleRequest.jsonOrThrow(request, {
365
- unrecognizedObjectKeys: "strip",
366
- }),
367
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
368
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
369
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
370
- });
371
- if (_response.ok) {
372
- return serializers.api.thera.payroll.AssignW2EmployeeToPayScheduleResponse.parseOrThrow(_response.body, {
373
- unrecognizedObjectKeys: "passthrough",
374
- allowUnrecognizedUnionMembers: true,
375
- allowUnrecognizedEnumValues: true,
376
- skipValidation: true,
377
- breadcrumbsPrefix: ["response"],
378
- });
379
- }
380
- if (_response.error.reason === "status-code") {
381
- throw new errors.TheraApiError({
382
- statusCode: _response.error.statusCode,
383
- body: _response.error.body,
384
- });
385
- }
386
- switch (_response.error.reason) {
387
- case "non-json":
388
- throw new errors.TheraApiError({
389
- statusCode: _response.error.statusCode,
390
- body: _response.error.rawBody,
391
- });
392
- case "timeout":
393
- throw new errors.TheraApiTimeoutError("Timeout exceeded when calling PUT /companies/{companyId}/w2-payroll/pay-schedules/{checkPayScheduleId}/assign-to-employees.");
394
- case "unknown":
395
- throw new errors.TheraApiError({
396
- message: _response.error.errorMessage,
397
- });
398
- }
399
- });
400
- }
401
- _getAuthorizationHeader() {
402
- return __awaiter(this, void 0, void 0, function* () {
403
- const bearer = yield core.Supplier.get(this._options.token);
404
- if (bearer != null) {
405
- return `Bearer ${bearer}`;
406
- }
407
- return undefined;
408
- });
409
- }
410
- }
411
- 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,22 +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
- * }
14
- */
15
- export interface CreatePayScheduleRequest {
16
- name: string;
17
- payFrequency: TheraApi.api.thera.payroll.PaySchedulePayFrequency;
18
- firstPayDate: string;
19
- /** 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. */
20
- secondPayDate?: string;
21
- firstPeriodEndDate: string;
22
- }
@@ -1,25 +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
- * "key": "value"
15
- * }
16
- * }
17
- */
18
- export interface UpdatePayScheduleRequest {
19
- name: string;
20
- payFrequency: TheraApi.api.thera.payroll.PaySchedulePayFrequency;
21
- firstPeriodEndDate: string;
22
- firstPayDate: string;
23
- secondPayDate?: string;
24
- metadata?: unknown;
25
- }
@@ -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,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 GetPayScheduleResponse {
6
- id: string;
7
- company: string;
8
- name: string;
9
- payFrequency: TheraApi.api.thera.payroll.PaySchedulePayFrequency;
10
- firstPayDate: string;
11
- secondPayDate?: string;
12
- firstPeriodEndDate: 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,10 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export type PaySchedulePayFrequency = "weekly" | "biweekly" | "semimonthly" | "monthly";
5
- export declare const PaySchedulePayFrequency: {
6
- readonly Weekly: "weekly";
7
- readonly Biweekly: "biweekly";
8
- readonly Semimonthly: "semimonthly";
9
- readonly Monthly: "monthly";
10
- };
@@ -1,12 +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 });
6
- exports.PaySchedulePayFrequency = void 0;
7
- exports.PaySchedulePayFrequency = {
8
- Weekly: "weekly",
9
- Biweekly: "biweekly",
10
- Semimonthly: "semimonthly",
11
- Monthly: "monthly",
12
- };
@@ -1,4 +0,0 @@
1
- export * from "./AssignW2EmployeeToPayScheduleResponse";
2
- export * from "./CheckGetPayScheduleResponse";
3
- export * from "./GetPayScheduleResponse";
4
- export * from "./PaySchedulePayFrequency";
@@ -1,20 +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("./AssignW2EmployeeToPayScheduleResponse"), exports);
18
- __exportStar(require("./CheckGetPayScheduleResponse"), exports);
19
- __exportStar(require("./GetPayScheduleResponse"), exports);
20
- __exportStar(require("./PaySchedulePayFrequency"), exports);