@remoteoss/remote-flows 0.4.0-alpha.2 → 0.4.0-alpha.4

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 (180) hide show
  1. package/dist/chunk-2SDJ4PZ5.js +2 -0
  2. package/dist/chunk-2SDJ4PZ5.js.map +1 -0
  3. package/dist/chunk-2URGWNSM.js +2 -0
  4. package/dist/chunk-2URGWNSM.js.map +1 -0
  5. package/dist/chunk-2Y22JKVE.js +2 -0
  6. package/dist/{chunk-QOMUXX6W.js → chunk-3PH5E6CZ.js} +2 -2
  7. package/dist/chunk-76JJOA3E.js +2 -0
  8. package/dist/{chunk-I6NVZI7W.js.map → chunk-76JJOA3E.js.map} +1 -1
  9. package/dist/{chunk-P2COURSU.js → chunk-7CP4PNU4.js} +2 -2
  10. package/dist/chunk-A36XQBXQ.js +2 -0
  11. package/dist/chunk-A36XQBXQ.js.map +1 -0
  12. package/dist/chunk-CXIHR6DZ.js +2 -0
  13. package/dist/chunk-CXIHR6DZ.js.map +1 -0
  14. package/dist/{chunk-5CJPGBXJ.js → chunk-FNTHWOZU.js} +2 -2
  15. package/dist/chunk-G7BISHWK.js +2 -0
  16. package/dist/chunk-G7BISHWK.js.map +1 -0
  17. package/dist/{chunk-GR6EY46K.js → chunk-GLCG6IVW.js} +2 -2
  18. package/dist/chunk-GMU3QGAR.js +2 -0
  19. package/dist/chunk-GMU3QGAR.js.map +1 -0
  20. package/dist/{chunk-CRHTUOZT.js → chunk-JT5XHQEY.js} +2 -2
  21. package/dist/{chunk-U25ZZ3LM.js → chunk-KGUR7YMA.js} +2 -2
  22. package/dist/{chunk-5OXN2O6C.js → chunk-MI3HDT5D.js} +2 -2
  23. package/dist/chunk-NNF342EY.js +2 -0
  24. package/dist/chunk-NNF342EY.js.map +1 -0
  25. package/dist/{chunk-KQ6TGZJS.js → chunk-NVMRRBRE.js} +2 -2
  26. package/dist/chunk-NVMRRBRE.js.map +1 -0
  27. package/dist/{chunk-7OMSCFTM.js → chunk-OXOB35EA.js} +2 -2
  28. package/dist/{chunk-UIAP5KT2.js → chunk-PBUHBIVK.js} +2 -2
  29. package/dist/chunk-PBWLAISE.js +2 -0
  30. package/dist/chunk-PBWLAISE.js.map +1 -0
  31. package/dist/{chunk-GQD6NNYO.js → chunk-PX72OIDO.js} +2 -2
  32. package/dist/{chunk-SMHHCUP4.js → chunk-PZ4HXIHQ.js} +2 -2
  33. package/dist/{chunk-LMDX5IAX.js → chunk-QOXOAPGX.js} +2 -2
  34. package/dist/{chunk-FZ2HS6G7.js → chunk-S4XU4SE7.js} +1 -1
  35. package/dist/chunk-S4XU4SE7.js.map +1 -0
  36. package/dist/{chunk-JFOOILST.js → chunk-T3PTQ4QM.js} +2 -2
  37. package/dist/{chunk-S4FKLPBB.js → chunk-TICIER55.js} +2 -2
  38. package/dist/chunk-U3I3TJKB.js +2 -0
  39. package/dist/chunk-U3I3TJKB.js.map +1 -0
  40. package/dist/{chunk-EDNELJVE.js → chunk-VT2PJJC7.js} +2 -2
  41. package/dist/chunk-VT2PJJC7.js.map +1 -0
  42. package/dist/{chunk-D3SD6MMV.js → chunk-WEIRXEXU.js} +2 -2
  43. package/dist/chunk-WVJDCDGZ.js +2 -0
  44. package/dist/chunk-WVJDCDGZ.js.map +1 -0
  45. package/dist/{chunk-Y477IGTZ.js → chunk-WZ5AXHQT.js} +2 -2
  46. package/dist/{chunk-TPPGI73P.js → chunk-XOUAD7MS.js} +2 -2
  47. package/dist/chunk-XZ4CTDOS.js +2 -0
  48. package/dist/chunk-XZ4CTDOS.js.map +1 -0
  49. package/dist/{chunk-LM5GAAUB.js → chunk-YIBRPAR3.js} +2 -2
  50. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
  51. package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +1 -1
  52. package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
  53. package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
  54. package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
  55. package/dist/flows/ContractAmendment/context.d.ts +2 -2
  56. package/dist/flows/ContractAmendment/hooks.d.ts +2 -2
  57. package/dist/flows/ContractAmendment/hooks.js +1 -1
  58. package/dist/flows/ContractAmendment/index.d.ts +1 -1
  59. package/dist/flows/ContractAmendment/index.js +1 -1
  60. package/dist/flows/ContractAmendment/types.d.ts +1 -1
  61. package/dist/flows/ContractAmendment/utils.d.ts +2 -2
  62. package/dist/flows/ContractAmendment/utils.js +1 -1
  63. package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +1 -1
  64. package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
  65. package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +1 -1
  66. package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
  67. package/dist/flows/CostCalculator/Results/CostCalculatorResults.d.ts +1 -1
  68. package/dist/flows/CostCalculator/Results/CostCalculatorResults.js +1 -1
  69. package/dist/flows/CostCalculator/context.d.ts +1 -1
  70. package/dist/flows/CostCalculator/hooks.d.ts +1 -1
  71. package/dist/flows/CostCalculator/hooks.js +1 -1
  72. package/dist/flows/CostCalculator/index.d.ts +1 -1
  73. package/dist/flows/CostCalculator/index.js +1 -1
  74. package/dist/flows/CostCalculator/types.d.ts +1 -1
  75. package/dist/flows/CostCalculator/utils.d.ts +1 -1
  76. package/dist/flows/CostCalculator/utils.js +1 -1
  77. package/dist/flows/Onboarding/BasicInformationStep.d.ts +1 -1
  78. package/dist/flows/Onboarding/BasicInformationStep.js +1 -1
  79. package/dist/flows/Onboarding/BenefitsStep.d.ts +3 -2
  80. package/dist/flows/Onboarding/BenefitsStep.js +1 -1
  81. package/dist/flows/Onboarding/ContractDetailsStep.d.ts +1 -1
  82. package/dist/flows/Onboarding/ContractDetailsStep.js +1 -1
  83. package/dist/flows/Onboarding/OnboardingFlow.d.ts +9 -4
  84. package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
  85. package/dist/flows/Onboarding/OnboardingForm.d.ts +3 -2
  86. package/dist/flows/Onboarding/OnboardingForm.js +1 -1
  87. package/dist/flows/Onboarding/OnboardingInvite.d.ts +1 -1
  88. package/dist/flows/Onboarding/OnboardingInvite.js +1 -1
  89. package/dist/flows/Onboarding/SelectCountryStep.d.ts +15 -0
  90. package/dist/flows/Onboarding/SelectCountryStep.js +2 -0
  91. package/dist/flows/Onboarding/SelectCountryStep.js.map +1 -0
  92. package/dist/flows/Onboarding/api.d.ts +114 -0
  93. package/dist/flows/Onboarding/api.js +2 -0
  94. package/dist/flows/Onboarding/api.js.map +1 -0
  95. package/dist/flows/Onboarding/context.d.ts +17 -5
  96. package/dist/flows/Onboarding/hooks.d.ts +38 -23
  97. package/dist/flows/Onboarding/hooks.js +1 -1
  98. package/dist/flows/Onboarding/index.d.ts +6 -4
  99. package/dist/flows/Onboarding/index.js +1 -1
  100. package/dist/flows/Onboarding/json-schemas/selectCountryStep.d.ts +24 -0
  101. package/dist/flows/Onboarding/json-schemas/selectCountryStep.js +2 -0
  102. package/dist/flows/Onboarding/json-schemas/selectCountryStep.js.map +1 -0
  103. package/dist/flows/Onboarding/types.d.ts +9 -3
  104. package/dist/flows/Onboarding/utils.d.ts +11 -3
  105. package/dist/flows/Onboarding/utils.js +1 -1
  106. package/dist/flows/Termination/AdditionalDetailsForm.d.ts +1 -1
  107. package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
  108. package/dist/flows/Termination/EmployeeComunicationForm.d.ts +1 -1
  109. package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
  110. package/dist/flows/Termination/PaidTimeOffForm.d.ts +1 -1
  111. package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
  112. package/dist/flows/Termination/TerminationDetailsForm.d.ts +1 -1
  113. package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
  114. package/dist/flows/Termination/TerminationFlow.d.ts +2 -1
  115. package/dist/flows/Termination/TerminationFlow.js +1 -1
  116. package/dist/flows/Termination/TerminationForm.d.ts +1 -1
  117. package/dist/flows/Termination/TerminationForm.js +1 -1
  118. package/dist/flows/Termination/TimeOff.d.ts +1 -1
  119. package/dist/flows/Termination/TimeOff.js +1 -1
  120. package/dist/flows/Termination/context.d.ts +3 -2
  121. package/dist/flows/Termination/hooks.d.ts +3 -2
  122. package/dist/flows/Termination/hooks.js +1 -1
  123. package/dist/flows/Termination/index.d.ts +2 -1
  124. package/dist/flows/Termination/index.js +1 -1
  125. package/dist/flows/Termination/json-schemas/schema.js +1 -1
  126. package/dist/flows/Termination/types.d.ts +1 -1
  127. package/dist/flows/Termination/utils.d.ts +1 -1
  128. package/dist/flows/Termination/utils.js +1 -1
  129. package/dist/flows/types.d.ts +1 -1
  130. package/dist/flows/useStepState.d.ts +10 -4
  131. package/dist/flows/useStepState.js +1 -1
  132. package/dist/flows/utils.d.ts +3 -11
  133. package/dist/flows/utils.js +1 -1
  134. package/dist/index.d.ts +9 -5
  135. package/dist/index.js +1 -1
  136. package/dist/index.js.map +1 -1
  137. package/dist/{remoteFlows-CswYencu.d.ts → remoteFlows-DN0q7MPW.d.ts} +1 -2
  138. package/dist/types-pzyQqNc8.d.ts +3 -0
  139. package/dist/{types.gen-D5alruJJ.d.ts → types.gen-CAOUvsW-.d.ts} +268 -2
  140. package/package.json +1 -1
  141. package/dist/chunk-2PXGLWCY.js +0 -2
  142. package/dist/chunk-2PXGLWCY.js.map +0 -1
  143. package/dist/chunk-2YWRQJ7P.js +0 -2
  144. package/dist/chunk-2YWRQJ7P.js.map +0 -1
  145. package/dist/chunk-36UPHOJS.js +0 -2
  146. package/dist/chunk-36UPHOJS.js.map +0 -1
  147. package/dist/chunk-DHRIURRT.js +0 -2
  148. package/dist/chunk-DHRIURRT.js.map +0 -1
  149. package/dist/chunk-EDNELJVE.js.map +0 -1
  150. package/dist/chunk-FZ2HS6G7.js.map +0 -1
  151. package/dist/chunk-HDQGO453.js +0 -2
  152. package/dist/chunk-HDQGO453.js.map +0 -1
  153. package/dist/chunk-HSW5HMHH.js +0 -2
  154. package/dist/chunk-I6NVZI7W.js +0 -2
  155. package/dist/chunk-KQ6TGZJS.js.map +0 -1
  156. package/dist/chunk-LCZQVL4U.js +0 -2
  157. package/dist/chunk-LCZQVL4U.js.map +0 -1
  158. package/dist/chunk-PKX5K2UY.js +0 -2
  159. package/dist/chunk-PKX5K2UY.js.map +0 -1
  160. package/dist/chunk-S56EWAS4.js +0 -2
  161. package/dist/chunk-S56EWAS4.js.map +0 -1
  162. /package/dist/{chunk-HSW5HMHH.js.map → chunk-2Y22JKVE.js.map} +0 -0
  163. /package/dist/{chunk-QOMUXX6W.js.map → chunk-3PH5E6CZ.js.map} +0 -0
  164. /package/dist/{chunk-P2COURSU.js.map → chunk-7CP4PNU4.js.map} +0 -0
  165. /package/dist/{chunk-5CJPGBXJ.js.map → chunk-FNTHWOZU.js.map} +0 -0
  166. /package/dist/{chunk-GR6EY46K.js.map → chunk-GLCG6IVW.js.map} +0 -0
  167. /package/dist/{chunk-CRHTUOZT.js.map → chunk-JT5XHQEY.js.map} +0 -0
  168. /package/dist/{chunk-U25ZZ3LM.js.map → chunk-KGUR7YMA.js.map} +0 -0
  169. /package/dist/{chunk-5OXN2O6C.js.map → chunk-MI3HDT5D.js.map} +0 -0
  170. /package/dist/{chunk-7OMSCFTM.js.map → chunk-OXOB35EA.js.map} +0 -0
  171. /package/dist/{chunk-UIAP5KT2.js.map → chunk-PBUHBIVK.js.map} +0 -0
  172. /package/dist/{chunk-GQD6NNYO.js.map → chunk-PX72OIDO.js.map} +0 -0
  173. /package/dist/{chunk-SMHHCUP4.js.map → chunk-PZ4HXIHQ.js.map} +0 -0
  174. /package/dist/{chunk-LMDX5IAX.js.map → chunk-QOXOAPGX.js.map} +0 -0
  175. /package/dist/{chunk-JFOOILST.js.map → chunk-T3PTQ4QM.js.map} +0 -0
  176. /package/dist/{chunk-S4FKLPBB.js.map → chunk-TICIER55.js.map} +0 -0
  177. /package/dist/{chunk-D3SD6MMV.js.map → chunk-WEIRXEXU.js.map} +0 -0
  178. /package/dist/{chunk-Y477IGTZ.js.map → chunk-WZ5AXHQT.js.map} +0 -0
  179. /package/dist/{chunk-TPPGI73P.js.map → chunk-XOUAD7MS.js.map} +0 -0
  180. /package/dist/{chunk-LM5GAAUB.js.map → chunk-YIBRPAR3.js.map} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/client/sdk.gen.ts","../src/client/client.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport {\n type Options as ClientOptions,\n type TDataShape,\n type Client,\n formDataBodySerializer,\n} from '@hey-api/client-fetch';\nimport type {\n GetIndexOffboardingData,\n GetIndexOffboardingResponse,\n GetIndexOffboardingError,\n PostCreateOffboardingData,\n PostCreateOffboardingResponse,\n PostCreateOffboardingError,\n GetShowTimesheetData,\n GetShowTimesheetResponse,\n GetShowTimesheetError,\n PostUpdateCancelOnboardingData,\n PostUpdateCancelOnboardingResponse,\n PostUpdateCancelOnboardingError,\n GetShowContractAmendmentSchemaData,\n GetShowContractAmendmentSchemaResponse,\n GetShowContractAmendmentSchemaError,\n GetIndexDataSyncData,\n GetIndexDataSyncResponse,\n GetIndexDataSyncError,\n PostCreateDataSyncData,\n PostCreateDataSyncError,\n GetShowProbationCompletionLetterData,\n GetShowProbationCompletionLetterResponse,\n GetShowProbationCompletionLetterError,\n GetShowContractorInvoiceData,\n GetShowContractorInvoiceResponse,\n GetShowContractorInvoiceError,\n GetIndexEmploymentData,\n GetIndexEmploymentResponse,\n GetIndexEmploymentError,\n PostCreateEmployment2Data,\n PostCreateEmployment2Response,\n PostCreateEmployment2Error,\n GetIndexContractorInvoiceData,\n GetIndexContractorInvoiceResponse,\n GetIndexContractorInvoiceError,\n GetDetailsSsoConfigurationData,\n GetDetailsSsoConfigurationResponse,\n GetDetailsSsoConfigurationError,\n PostCreateEstimationData,\n PostCreateEstimationResponse,\n PostCreateEstimationError,\n GetShowCompanySchemaData,\n GetShowCompanySchemaResponse,\n GetShowCompanySchemaError,\n GetIndexBenefitOfferData,\n GetIndexBenefitOfferResponse,\n GetIndexBenefitOfferError,\n PutUpdateBenefitOfferData,\n PutUpdateBenefitOfferResponse,\n PutUpdateBenefitOfferError,\n GetGetIdentityVerificationDataIdentityVerificationData,\n GetGetIdentityVerificationDataIdentityVerificationResponse,\n GetGetIdentityVerificationDataIdentityVerificationError,\n PostBypassEligibilityChecksCompanyData,\n PostBypassEligibilityChecksCompanyResponse,\n PostBypassEligibilityChecksCompanyError,\n GetShowTestSchemaData,\n GetShowTestSchemaResponse,\n GetIndexHolidayData,\n GetIndexHolidayResponse,\n GetIndexHolidayError,\n PostCreateCancellationData,\n PostCreateCancellationResponse,\n PostCreateCancellationError,\n GetIndexEmploymentJobData,\n GetIndexEmploymentJobResponse,\n GetIndexEmploymentJobError,\n GetIndexEorPayrollCalendarData,\n GetIndexEorPayrollCalendarResponse,\n GetIndexEorPayrollCalendarError,\n GetIndexRecurringIncentiveData,\n GetIndexRecurringIncentiveResponse,\n GetIndexRecurringIncentiveError,\n PostCreateRecurringIncentiveData,\n PostCreateRecurringIncentiveResponse,\n PostCreateRecurringIncentiveError,\n PostCreateBenefitRenewalRequestData,\n PostCreateBenefitRenewalRequestResponse,\n PostCreateBenefitRenewalRequestError,\n GetIndexExpenseData,\n GetIndexExpenseResponse,\n GetIndexExpenseError,\n PostCreateExpenseData,\n PostCreateExpenseResponse,\n PostCreateExpenseError,\n GetShowSsoConfigurationData,\n GetShowSsoConfigurationResponse,\n GetShowSsoConfigurationError,\n PostCreateSsoConfigurationData,\n PostCreateSsoConfigurationResponse,\n PostCreateSsoConfigurationError,\n PutApproveContractAmendmentData,\n PutApproveContractAmendmentResponse,\n PutApproveContractAmendmentError,\n GetSchemaBenefitRenewalRequestData,\n GetSchemaBenefitRenewalRequestResponse,\n GetSchemaBenefitRenewalRequestError,\n PostGenerateMagicLinkData,\n PostGenerateMagicLinkResponse,\n PostGenerateMagicLinkError,\n DeleteDeleteRecurringIncentiveData,\n DeleteDeleteRecurringIncentiveResponse,\n DeleteDeleteRecurringIncentiveError,\n GetIndexIncentiveData,\n GetIndexIncentiveResponse,\n GetIndexIncentiveError,\n PostCreateIncentiveData,\n PostCreateIncentiveResponse,\n PostCreateIncentiveError,\n PostCreateProbationCompletionLetterData,\n PostCreateProbationCompletionLetterResponse,\n PostCreateProbationCompletionLetterError,\n GetShowScheduledContractorInvoiceData,\n GetShowScheduledContractorInvoiceResponse,\n GetShowScheduledContractorInvoiceError,\n PatchUpdateScheduledContractorInvoice2Data,\n PatchUpdateScheduledContractorInvoice2Response,\n PatchUpdateScheduledContractorInvoice2Error,\n PatchUpdateScheduledContractorInvoiceData,\n PatchUpdateScheduledContractorInvoiceResponse,\n PatchUpdateScheduledContractorInvoiceError,\n GetShowBillingDocumentData,\n GetShowBillingDocumentResponse,\n GetShowBillingDocumentError,\n PostCreateEstimationPdfData,\n PostCreateEstimationPdfResponse,\n PostCreateEstimationPdfError,\n GetShowWorkAuthorizationRequestData,\n GetShowWorkAuthorizationRequestResponse,\n GetShowWorkAuthorizationRequestError,\n PatchUpdateWorkAuthorizationRequest2Data,\n PatchUpdateWorkAuthorizationRequest2Response,\n PatchUpdateWorkAuthorizationRequest2Error,\n PatchUpdateWorkAuthorizationRequestData,\n PatchUpdateWorkAuthorizationRequestResponse,\n PatchUpdateWorkAuthorizationRequestError,\n PostCreateProbationExtensionData,\n PostCreateProbationExtensionResponse,\n PostCreateProbationExtensionError,\n GetShowCompanyData,\n GetShowCompanyResponse,\n GetShowCompanyError,\n PatchUpdateCompany2Data,\n PatchUpdateCompany2Response,\n PatchUpdateCompany2Error,\n PatchUpdateCompanyData,\n PatchUpdateCompanyResponse,\n PatchUpdateCompanyError,\n GetDownloadResignationLetterData,\n GetDownloadResignationLetterResponse,\n GetDownloadResignationLetterError,\n GetIndexContractAmendmentData,\n GetIndexContractAmendmentResponse,\n GetIndexContractAmendmentError,\n PostCreateContractAmendmentData,\n PostCreateContractAmendmentResponse,\n PostCreateContractAmendmentError,\n GetShowPayrollRunData,\n GetShowPayrollRunResponse,\n GetShowPayrollRunError,\n GetDownloadExpenseReceiptData,\n GetDownloadExpenseReceiptResponse,\n GetDownloadExpenseReceiptError,\n GetShowTravelLetterRequestData,\n GetShowTravelLetterRequestResponse,\n GetShowTravelLetterRequestError,\n PatchUpdateTravelLetterRequest2Data,\n PatchUpdateTravelLetterRequest2Response,\n PatchUpdateTravelLetterRequest2Error,\n PatchUpdateTravelLetterRequestData,\n PatchUpdateTravelLetterRequestResponse,\n PatchUpdateTravelLetterRequestError,\n GetShowTimeoffBalanceData,\n GetShowTimeoffBalanceResponse,\n GetShowTimeoffBalanceError,\n GetShowFormCountryData,\n GetShowFormCountryResponse,\n GetShowFormCountryError,\n GetShowFileData,\n GetShowFileResponse,\n GetShowFileError,\n GetShowContractAmendmentData,\n GetShowContractAmendmentResponse,\n GetShowContractAmendmentError,\n GetIndexCompanyManagerData,\n GetIndexCompanyManagerResponse,\n GetIndexCompanyManagerError,\n PostCreateCompanyManagerData,\n PostCreateCompanyManagerResponse,\n PostCreateCompanyManagerError,\n GetIndexCountryData,\n GetIndexCountryResponse,\n PostDeclineIdentityVerificationData,\n PostDeclineIdentityVerificationResponse,\n PostDeclineIdentityVerificationError,\n GetIndexBillingDocumentData,\n GetIndexBillingDocumentResponse,\n GetIndexBillingDocumentError,\n DeleteDeleteWebhookCallbackData,\n DeleteDeleteWebhookCallbackResponse,\n DeleteDeleteWebhookCallbackError,\n PatchUpdateWebhookCallbackData,\n PatchUpdateWebhookCallbackResponse,\n PatchUpdateWebhookCallbackError,\n GetIndexTravelLetterRequestData,\n GetIndexTravelLetterRequestResponse,\n GetIndexTravelLetterRequestError,\n GetIndexBenefitRenewalRequestData,\n GetIndexBenefitRenewalRequestResponse,\n GetIndexBenefitRenewalRequestError,\n PostCreateWebhookCallbackData,\n PostCreateWebhookCallbackResponse,\n PostCreateWebhookCallbackError,\n PostApproveTimesheetData,\n PostApproveTimesheetResponse,\n PostApproveTimesheetError,\n GetShowPayslipData,\n GetShowPayslipResponse,\n GetShowPayslipError,\n GetIndexLeavePoliciesSummaryData,\n GetIndexLeavePoliciesSummaryResponse,\n GetIndexLeavePoliciesSummaryError,\n GetIndexCompanyDepartmentData,\n GetIndexCompanyDepartmentResponse,\n GetIndexCompanyDepartmentError,\n PostCreateCompanyDepartmentData,\n PostCreateCompanyDepartmentResponse,\n PostCreateCompanyDepartmentError,\n PostDeclineCancellationRequestData,\n PostDeclineCancellationRequestResponse,\n PostDeclineCancellationRequestError,\n GetShowSchemaData,\n GetShowSchemaResponse,\n GetShowSchemaError,\n GetIndexTimesheetData,\n GetIndexTimesheetResponse,\n GetIndexTimesheetError,\n GetShowEmploymentData,\n GetShowEmploymentResponse,\n GetShowEmploymentError,\n PatchUpdateEmployment2Data,\n PatchUpdateEmployment2Response,\n PatchUpdateEmployment2Error,\n PatchUpdateEmploymentData,\n PatchUpdateEmploymentResponse,\n PatchUpdateEmploymentError,\n GetIndexPayrollCalendarData,\n GetIndexPayrollCalendarResponse,\n GetIndexPayrollCalendarError,\n GetShowRegionFieldData,\n GetShowRegionFieldResponse,\n GetShowRegionFieldError,\n GetShowOffboardingData,\n GetShowOffboardingResponse,\n GetShowOffboardingError,\n PostCreateEmploymentData,\n PostCreateEmploymentResponse,\n PostCreateEmploymentError,\n GetSupportedCountryData,\n GetSupportedCountryResponse,\n GetSupportedCountryError,\n PostCompleteOnboardingEmploymentData,\n PostCompleteOnboardingEmploymentResponse,\n PostCompleteOnboardingEmploymentError,\n GetTimeoffTypesTimeoffData,\n GetTimeoffTypesTimeoffResponse,\n GetTimeoffTypesTimeoffError,\n PostTriggerWebhookCallbackData,\n PostTriggerWebhookCallbackResponse,\n PostTriggerWebhookCallbackError,\n GetDownloadPayslipPayslipData,\n GetDownloadPayslipPayslipResponse,\n GetDownloadPayslipPayslipError,\n GetShowTimeoffData,\n GetShowTimeoffResponse,\n GetShowTimeoffError,\n PatchUpdateTimeoff2Data,\n PatchUpdateTimeoff2Response,\n PatchUpdateTimeoff2Error,\n PatchUpdateTimeoffData,\n PatchUpdateTimeoffResponse,\n PatchUpdateTimeoffError,\n PostCreateDeclineData,\n PostCreateDeclineResponse,\n PostCreateDeclineError,\n PostAutomatableContractAmendmentData,\n PostAutomatableContractAmendmentResponse,\n PostAutomatableContractAmendmentError,\n PostCreateApprovalData,\n PostCreateApprovalResponse,\n PostCreateApprovalError,\n GetIndexEmploymentCustomFieldData,\n GetIndexEmploymentCustomFieldResponse,\n GetIndexEmploymentCustomFieldError,\n PostCreateEmploymentCustomFieldData,\n PostCreateEmploymentCustomFieldResponse,\n PostCreateEmploymentCustomFieldError,\n GetIndexCompanyCurrencyData,\n GetIndexCompanyCurrencyResponse,\n GetIndexCompanyCurrencyError,\n PatchUpdateEmployment4Data,\n PatchUpdateEmployment4Response,\n PatchUpdateEmployment4Error,\n PatchUpdateEmployment3Data,\n PatchUpdateEmployment3Response,\n PatchUpdateEmployment3Error,\n GetPendingChangesEmploymentContractData,\n GetPendingChangesEmploymentContractResponse,\n GetPendingChangesEmploymentContractError,\n GetShowResignationData,\n GetShowResignationResponse,\n GetShowResignationError,\n PostUploadEmployeeFileFileData,\n PostUploadEmployeeFileFileResponse,\n PostUploadEmployeeFileFileError,\n PostInviteEmploymentInvitationData,\n PostInviteEmploymentInvitationResponse,\n PostInviteEmploymentInvitationError,\n GetShowExpenseData,\n GetShowExpenseResponse,\n GetShowExpenseError,\n PatchUpdateExpense2Data,\n PatchUpdateExpense2Response,\n PatchUpdateExpense2Error,\n PatchUpdateExpenseData,\n PatchUpdateExpenseResponse,\n PatchUpdateExpenseError,\n GetShowBenefitRenewalRequestData,\n GetShowBenefitRenewalRequestResponse,\n GetShowBenefitRenewalRequestError,\n PostUpdateBenefitRenewalRequestData,\n PostUpdateBenefitRenewalRequestResponse,\n PostUpdateBenefitRenewalRequestError,\n GetIndexEmploymentCompanyStructureNodeData,\n GetIndexEmploymentCompanyStructureNodeResponse,\n GetIndexEmploymentCompanyStructureNodeError,\n GetIndexEmploymentCustomFieldValueData,\n GetIndexEmploymentCustomFieldValueResponse,\n GetIndexEmploymentCustomFieldValueError,\n PutValidateResignationData,\n PutValidateResignationResponse,\n PutValidateResignationError,\n GetShowEmploymentCustomFieldValueData,\n GetShowEmploymentCustomFieldValueResponse,\n GetShowEmploymentCustomFieldValueError,\n PatchUpdateEmploymentCustomFieldValue2Data,\n PatchUpdateEmploymentCustomFieldValue2Response,\n PatchUpdateEmploymentCustomFieldValue2Error,\n PatchUpdateEmploymentCustomFieldValueData,\n PatchUpdateEmploymentCustomFieldValueResponse,\n PatchUpdateEmploymentCustomFieldValueError,\n GetCurrentIdentityData,\n GetCurrentIdentityResponse,\n GetCurrentIdentityError,\n DeleteDeleteIncentiveData,\n DeleteDeleteIncentiveResponse,\n DeleteDeleteIncentiveError,\n GetShowIncentiveData,\n GetShowIncentiveResponse,\n GetShowIncentiveError,\n PatchUpdateIncentive2Data,\n PatchUpdateIncentive2Response,\n PatchUpdateIncentive2Error,\n PatchUpdateIncentiveData,\n PatchUpdateIncentiveResponse,\n PatchUpdateIncentiveError,\n GetIndexWorkAuthorizationRequestData,\n GetIndexWorkAuthorizationRequestResponse,\n GetIndexWorkAuthorizationRequestError,\n GetIndexBenefitOffersCountrySummaryData,\n GetIndexBenefitOffersCountrySummaryResponse,\n GetIndexBenefitOffersCountrySummaryError,\n GetIndexBenefitOffersByEmploymentData,\n GetIndexBenefitOffersByEmploymentResponse,\n GetIndexBenefitOffersByEmploymentError,\n PutCancelContractAmendmentData,\n PutCancelContractAmendmentResponse,\n PutCancelContractAmendmentError,\n GetShowProbationExtensionData,\n GetShowProbationExtensionResponse,\n GetShowProbationExtensionError,\n GetIndexPayslipData,\n GetIndexPayslipResponse,\n GetIndexPayslipError,\n GetDownloadByIdExpenseReceiptData,\n GetDownloadByIdExpenseReceiptResponse,\n GetDownloadByIdExpenseReceiptError,\n PostTokenOAuth2TokenData,\n PostTokenOAuth2TokenResponse,\n PostTokenOAuth2TokenError,\n GetIndexTimeoffData,\n GetIndexTimeoffResponse,\n GetIndexTimeoffError,\n PostCreateTimeoffData,\n PostCreateTimeoffResponse,\n PostCreateTimeoffError,\n GetIndexPayrollRunData,\n GetIndexPayrollRunResponse,\n GetIndexPayrollRunError,\n GetIndexEmploymentContractData,\n GetIndexEmploymentContractResponse,\n GetIndexEmploymentContractError,\n GetIndexCompanyData,\n GetIndexCompanyResponse,\n GetIndexCompanyError,\n PostCreateCompanyData,\n PostCreateCompanyResponse,\n PostCreateCompanyError,\n PostSendBackTimesheetData,\n PostSendBackTimesheetResponse,\n PostSendBackTimesheetError,\n DeleteDeleteCompanyManagerData,\n DeleteDeleteCompanyManagerResponse,\n DeleteDeleteCompanyManagerError,\n GetShowCompanyManagerData,\n GetShowCompanyManagerResponse,\n GetShowCompanyManagerError,\n GetIndexScheduledContractorInvoiceData,\n GetIndexScheduledContractorInvoiceResponse,\n GetIndexScheduledContractorInvoiceError,\n PostBulkCreateScheduledContractorInvoiceData,\n PostBulkCreateScheduledContractorInvoiceResponse,\n PostBulkCreateScheduledContractorInvoiceError,\n GetGetBreakdownBillingDocumentData,\n GetGetBreakdownBillingDocumentResponse,\n GetGetBreakdownBillingDocumentError,\n PostApproveCancellationRequestData,\n PostApproveCancellationRequestResponse,\n PostApproveCancellationRequestError,\n PostVerifyIdentityVerificationData,\n PostVerifyIdentityVerificationResponse,\n PostVerifyIdentityVerificationError,\n GetDownloadPdfBillingDocumentData,\n GetDownloadPdfBillingDocumentResponse,\n GetDownloadPdfBillingDocumentError,\n} from './types.gen';\nimport { client as _heyApiClient } from './client.gen';\n\nexport type Options<\n TData extends TDataShape = TDataShape,\n ThrowOnError extends boolean = boolean,\n> = ClientOptions<TData, ThrowOnError> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\n/**\n * List Offboarding\n * Lists Offboarding requests.\n */\nexport const getIndexOffboarding = <ThrowOnError extends boolean = false>(\n options?: Options<GetIndexOffboardingData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexOffboardingResponse,\n GetIndexOffboardingError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/offboardings',\n ...options,\n });\n};\n\n/**\n * Create Offboarding\n * Creates an Offboarding request.\n *\n */\nexport const postCreateOffboarding = <ThrowOnError extends boolean = false>(\n options?: Options<PostCreateOffboardingData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).post<\n PostCreateOffboardingResponse,\n PostCreateOffboardingError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/offboardings',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show timesheet\n * Shows a timesheet by its ID.\n */\nexport const getShowTimesheet = <ThrowOnError extends boolean = false>(\n options: Options<GetShowTimesheetData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowTimesheetResponse,\n GetShowTimesheetError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timesheets/{id}',\n ...options,\n });\n};\n\n/**\n * Cancel onboarding\n * Cancel onboarding.\n *\n * Requirements for the cancellation to succeed:\n *\n * * Employment has to be in `invited`, `created`, `created_awaiting_reserve`, `created_reserve_paid`, `pre_hire` status\n * * Employee must not have signed the employment contract\n *\n */\nexport const postUpdateCancelOnboarding = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostUpdateCancelOnboardingData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostUpdateCancelOnboardingResponse,\n PostUpdateCancelOnboardingError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/cancel-onboarding/{employment_id}',\n ...options,\n });\n};\n\n/**\n * Show form schema\n * Returns the json schema of the `contract_amendment` form for a specific employment.\n * This endpoint requires a company access token, as forms are dependent on certain\n * properties of companies and their current employments.\n *\n */\nexport const getShowContractAmendmentSchema = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetShowContractAmendmentSchemaData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowContractAmendmentSchemaResponse,\n GetShowContractAmendmentSchemaError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/contract-amendments/schema',\n ...options,\n });\n};\n\n/**\n * Get latest data sync events\n * Get the latest data sync events for each data type that have passed\n *\n */\nexport const getIndexDataSync = <ThrowOnError extends boolean = false>(\n options?: Options<GetIndexDataSyncData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexDataSyncResponse,\n GetIndexDataSyncError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/data-sync',\n ...options,\n });\n};\n\n/**\n * Create test data sync job\n * Create Test Data Synchronization job that will sync test data to the database from production\n * The job will be handled asynchronously and the response will be a 202 status code.\n *\n * **Heads up:** This endpoint is only available for specific usecases and should not be used for general data sync needs,\n * if you need to request access to this endpoint, please contact the api-support@remote.com.\n *\n */\nexport const postCreateDataSync = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateDataSyncData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n unknown,\n PostCreateDataSyncError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/data-sync',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show probation completion letter\n * Show a single probation completion letter.\n */\nexport const getShowProbationCompletionLetter = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetShowProbationCompletionLetterData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowProbationCompletionLetterResponse,\n GetShowProbationCompletionLetterError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/probation-completion-letter/{id}',\n ...options,\n });\n};\n\n/**\n * Show Contractor Invoice\n * Shows a single Contractor Invoice record.\n */\nexport const getShowContractorInvoice = <ThrowOnError extends boolean = false>(\n options: Options<GetShowContractorInvoiceData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowContractorInvoiceResponse,\n GetShowContractorInvoiceError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/contractor-invoices/{id}',\n ...options,\n });\n};\n\n/**\n * List employments\n * Lists all employments, except for the deleted ones.\n *\n * This endpoint requires and returns country-specific data. The exact required and returned fields will\n * vary depending on which country the employment is in. To see the list of parameters for each country,\n * see the **Show form schema** endpoint under the [Countries](#tag/Countries) category.\n *\n * Please note that the compliance requirements for each country are subject to change according to local\n * laws. Given its continual updates, using Remote's [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) should be considered in order to avoid\n * compliance issues and to have the latest version of a country requirements.\n *\n * If you are using this endpoint to build an integration, make sure you are dynamically collecting or\n * displaying the latest parameters for each country by querying the _\"Show form schema\"_ endpoint.\n *\n * For more information on JSON Schemas, see the **How JSON Schemas work** documentation.\n *\n * To learn how you can dynamically generate forms to display in your UI, see the documentation for\n * the [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) tool.\n *\n *\n */\nexport const getIndexEmployment = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexEmploymentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexEmploymentResponse,\n GetIndexEmploymentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employments',\n ...options,\n });\n};\n\n/**\n * Create employment\n * Creates an employment. We support creating employees and contractors.\n *\n * This endpoint requires and returns country-specific data. The exact required and returned fields will\n * vary depending on which country the employment is in. To see the list of parameters for each country,\n * see the **Show form schema** endpoint under the [Countries](#tag/Countries) category.\n *\n * Please note that the compliance requirements for each country are subject to change according to local\n * laws. Given its continual updates, using Remote's [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) should be considered in order to avoid\n * compliance issues and to have the latest version of a country requirements.\n *\n * If you are using this endpoint to build an integration, make sure you are dynamically collecting or\n * displaying the latest parameters for each country by querying the _\"Show form schema\"_ endpoint.\n *\n * For more information on JSON Schemas, see the **How JSON Schemas work** documentation.\n *\n * To learn how you can dynamically generate forms to display in your UI, see the documentation for\n * the [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) tool.\n *\n *\n */\nexport const postCreateEmployment2 = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateEmployment2Data, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateEmployment2Response,\n PostCreateEmployment2Error,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employments',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * List Contractor Invoices\n * Lists Contractor Invoice records.\n */\nexport const getIndexContractorInvoice = <ThrowOnError extends boolean = false>(\n options?: Options<GetIndexContractorInvoiceData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexContractorInvoiceResponse,\n GetIndexContractorInvoiceError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/contractor-invoices',\n ...options,\n });\n};\n\n/**\n * Show the SSO Configuration Details\n * Shows the SSO Configuration details for the company.\n */\nexport const getDetailsSsoConfiguration = <\n ThrowOnError extends boolean = false,\n>(\n options?: Options<GetDetailsSsoConfigurationData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetDetailsSsoConfigurationResponse,\n GetDetailsSsoConfigurationError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/sso-configuration/details',\n ...options,\n });\n};\n\n/**\n * Creates a cost estimation of employments\n */\nexport const postCreateEstimation = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateEstimationData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateEstimationResponse,\n PostCreateEstimationError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/cost-calculator/estimation',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show form schema\n * Returns the json schema of the requested company form.\n * Currently only supports the `address_details` form.\n *\n */\nexport const getShowCompanySchema = <ThrowOnError extends boolean = false>(\n options: Options<GetShowCompanySchemaData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowCompanySchemaResponse,\n GetShowCompanySchemaError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/companies/schema',\n ...options,\n });\n};\n\n/**\n * Get employment benefit offers\n */\nexport const getIndexBenefitOffer = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexBenefitOfferData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexBenefitOfferResponse,\n GetIndexBenefitOfferError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employments/{employment_id}/benefit-offers',\n ...options,\n });\n};\n\n/**\n * Upserts employment benefit offers\n */\nexport const putUpdateBenefitOffer = <ThrowOnError extends boolean = false>(\n options: Options<PutUpdateBenefitOfferData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PutUpdateBenefitOfferResponse,\n PutUpdateBenefitOfferError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employments/{employment_id}/benefit-offers',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Get Employment Profile\n * Gets necessary information to perform the identity verification of an employee.\n *\n */\nexport const getGetIdentityVerificationDataIdentityVerification = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<\n GetGetIdentityVerificationDataIdentityVerificationData,\n ThrowOnError\n >,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetGetIdentityVerificationDataIdentityVerificationResponse,\n GetGetIdentityVerificationDataIdentityVerificationError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/identity-verification/{employment_id}',\n ...options,\n });\n};\n\n/**\n * Pass KYB\n * Pass KYB and credit risk for a company without the intervention of a Remote admin.\n *\n * This endpoint is only available in Sandbox, otherwise it will respond with a 404.\n *\n */\nexport const postBypassEligibilityChecksCompany = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostBypassEligibilityChecksCompanyData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostBypassEligibilityChecksCompanyResponse,\n PostBypassEligibilityChecksCompanyError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/sandbox/companies/{company_id}/bypass-eligibility-checks',\n ...options,\n });\n};\n\n/**\n * Get a mock JSON Schema\n * Get a mock JSON Schema for testing purposes\n */\nexport const getShowTestSchema = <ThrowOnError extends boolean = false>(\n options?: Options<GetShowTestSchemaData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetShowTestSchemaResponse,\n unknown,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/test-schema',\n ...options,\n });\n};\n\n/**\n * List all holidays of a country\n * List all holidays of a country for a specific year. Optionally, it can be filtered by country subdivision.\n */\nexport const getIndexHoliday = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexHolidayData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexHolidayResponse,\n GetIndexHolidayError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/countries/{country_code}/holidays/{year}',\n ...options,\n });\n};\n\n/**\n * Cancel Time Off\n * Cancel a time off request that was already approved.\n */\nexport const postCreateCancellation = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateCancellationData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateCancellationResponse,\n PostCreateCancellationError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timeoff/{timeoff_id}/cancel',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show employment job\n * Shows an employment job details.\n *\n */\nexport const getIndexEmploymentJob = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexEmploymentJobData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexEmploymentJobResponse,\n GetIndexEmploymentJobError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employments/{employment_id}/job',\n ...options,\n });\n};\n\n/**\n * List EOR Payroll Calendar\n * List all active payroll calendars for EOR.\n */\nexport const getIndexEorPayrollCalendar = <\n ThrowOnError extends boolean = false,\n>(\n options?: Options<GetIndexEorPayrollCalendarData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexEorPayrollCalendarResponse,\n GetIndexEorPayrollCalendarError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/payroll-calendars',\n ...options,\n });\n};\n\n/**\n * List Recurring Incentive\n * List all Recurring Incentives of a company.\n *\n */\nexport const getIndexRecurringIncentive = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetIndexRecurringIncentiveData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexRecurringIncentiveResponse,\n GetIndexRecurringIncentiveError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/incentives/recurring',\n ...options,\n });\n};\n\n/**\n * Create Recurring Incentive\n * Create a Recurring Incentive, that is, a monthly paid incentive.\n *\n * Incentives use the currency of the employment specified provided in the `employment_id` field.\n *\n */\nexport const postCreateRecurringIncentive = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostCreateRecurringIncentiveData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateRecurringIncentiveResponse,\n PostCreateRecurringIncentiveError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/incentives/recurring',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Creates a Benefit Renewal Request\n * Creates a Benefit Renewal Request for a specific Benefit Group.\n * This endpoint is only available in Sandbox, otherwise it will respond with a 404.\n *\n */\nexport const postCreateBenefitRenewalRequest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostCreateBenefitRenewalRequestData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateBenefitRenewalRequestResponse,\n PostCreateBenefitRenewalRequestError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/sandbox/benefit-renewal-requests',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * List expenses\n * Lists all expenses records\n */\nexport const getIndexExpense = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexExpenseData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexExpenseResponse,\n GetIndexExpenseError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/expenses',\n ...options,\n });\n};\n\n/**\n * Create expense\n * Creates an **approved** expense\n */\nexport const postCreateExpense = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateExpenseData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateExpenseResponse,\n PostCreateExpenseError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/expenses',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show the current SSO Configuration\n * Shows the current SSO Configuration for the company.\n */\nexport const getShowSsoConfiguration = <ThrowOnError extends boolean = false>(\n options?: Options<GetShowSsoConfigurationData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetShowSsoConfigurationResponse,\n GetShowSsoConfigurationError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/sso-configuration',\n ...options,\n });\n};\n\n/**\n * Create the SSO Configuration\n * Creates the SSO Configuration for the company.\n */\nexport const postCreateSsoConfiguration = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostCreateSsoConfigurationData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateSsoConfigurationResponse,\n PostCreateSsoConfigurationError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/sso-configuration',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Approve Contract Amendment\n * Approves a contract amendment request without the intervention of a Remote admin.\n * Approvals done via this endpoint are effective immediately,\n * regardless of the effective date entered on the contract amendment creation.\n *\n * This endpoint is only available in Sandbox, otherwise it will respond with a 404.\n *\n */\nexport const putApproveContractAmendment = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PutApproveContractAmendmentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PutApproveContractAmendmentResponse,\n PutApproveContractAmendmentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/sandbox/contract-amendments/{contract_amendment_request_id}/approve',\n ...options,\n });\n};\n\n/**\n * Show benefit renewal request schema\n * Returns the json schema of the `benefit_renewal_request` form for a specific request.\n * This endpoint requires a company access token, as forms are dependent on certain\n * properties of companies and their current employments.\n *\n */\nexport const getSchemaBenefitRenewalRequest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetSchemaBenefitRenewalRequestData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetSchemaBenefitRenewalRequestResponse,\n GetSchemaBenefitRenewalRequestError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/benefit-renewal-requests/{benefit_renewal_request_id}/schema',\n ...options,\n });\n};\n\n/**\n * Magic links generator\n * Generates a magic link for a passwordless authentication.\n * To create a magic link for a company admin, you need to provide the `user_id` parameter.\n * To create a magic link for an employee, you need to provide the `employment_id` parameter.\n *\n */\nexport const postGenerateMagicLink = <ThrowOnError extends boolean = false>(\n options: Options<PostGenerateMagicLinkData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostGenerateMagicLinkResponse,\n PostGenerateMagicLinkError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/magic-link',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Delete a Recurring Incentive\n * Delete a Recurring Incentive, that is, a monthly paid incentive.\n *\n * Internally, Remote schedules upcoming incentives. As such, when you attempt to\n * delete a recurring incentive, Remote will **ONLY** delete scheduled incentives\n * with the `pending` status.\n *\n * Incentives payments that are already scheduled and cannot be deleted will be\n * included in the response, in case you need to reference them.\n *\n */\nexport const deleteDeleteRecurringIncentive = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteDeleteRecurringIncentiveData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).delete<\n DeleteDeleteRecurringIncentiveResponse,\n DeleteDeleteRecurringIncentiveError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/incentives/recurring/{id}',\n ...options,\n });\n};\n\n/**\n * List Incentives\n * Lists all Incentives of a company\n */\nexport const getIndexIncentive = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexIncentiveData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexIncentiveResponse,\n GetIndexIncentiveError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/incentives',\n ...options,\n });\n};\n\n/**\n * Create Incentive\n * Creates an Incentive.\n *\n * Incentives use the currency of the employment specified provided in the `employment_id` field.\n *\n */\nexport const postCreateIncentive = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateIncentiveData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateIncentiveResponse,\n PostCreateIncentiveError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/incentives',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Create probation completion letter\n * Create a new probation completion letter request.\n */\nexport const postCreateProbationCompletionLetter = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostCreateProbationCompletionLetterData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateProbationCompletionLetterResponse,\n PostCreateProbationCompletionLetterError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/probation-completion-letter',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show Contractor Invoice Schedule\n * Shows a single Contractor Invoice Schedule record\n */\nexport const getShowScheduledContractorInvoice = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetShowScheduledContractorInvoiceData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowScheduledContractorInvoiceResponse,\n GetShowScheduledContractorInvoiceError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/contractor-invoice-schedules/{id}',\n ...options,\n });\n};\n\n/**\n * Updates Contractor Invoice Schedule\n * Updates a contractor invoice schedule record\n */\nexport const patchUpdateScheduledContractorInvoice2 = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchUpdateScheduledContractorInvoice2Data, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).patch<\n PatchUpdateScheduledContractorInvoice2Response,\n PatchUpdateScheduledContractorInvoice2Error,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/contractor-invoice-schedules/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Updates Contractor Invoice Schedule\n * Updates a contractor invoice schedule record\n */\nexport const patchUpdateScheduledContractorInvoice = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchUpdateScheduledContractorInvoiceData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PatchUpdateScheduledContractorInvoiceResponse,\n PatchUpdateScheduledContractorInvoiceError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/contractor-invoice-schedules/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show Billing Document\n * Shows a billing document details.\n *\n * Please contact api-support@remote.com to request access to this endpoint.\n *\n */\nexport const getShowBillingDocument = <ThrowOnError extends boolean = false>(\n options: Options<GetShowBillingDocumentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowBillingDocumentResponse,\n GetShowBillingDocumentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/billing-documents/{billing_document_id}',\n ...options,\n });\n};\n\n/**\n * Creates PDF cost estimation of employments\n * Creates a PDF cost estimation of employments based on the provided parameters.\n */\nexport const postCreateEstimationPdf = <ThrowOnError extends boolean = false>(\n options?: Options<PostCreateEstimationPdfData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).post<\n PostCreateEstimationPdfResponse,\n PostCreateEstimationPdfError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/cost-calculator/estimation-pdf',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show work authorization request\n * Show a single work authorization request.\n */\nexport const getShowWorkAuthorizationRequest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetShowWorkAuthorizationRequestData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowWorkAuthorizationRequestResponse,\n GetShowWorkAuthorizationRequestError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/work-authorization-requests/{id}',\n ...options,\n });\n};\n\n/**\n * Update work authorization request\n * Updates a work authorization request.\n */\nexport const patchUpdateWorkAuthorizationRequest2 = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchUpdateWorkAuthorizationRequest2Data, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).patch<\n PatchUpdateWorkAuthorizationRequest2Response,\n PatchUpdateWorkAuthorizationRequest2Error,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/work-authorization-requests/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Update work authorization request\n * Updates a work authorization request.\n */\nexport const patchUpdateWorkAuthorizationRequest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchUpdateWorkAuthorizationRequestData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PatchUpdateWorkAuthorizationRequestResponse,\n PatchUpdateWorkAuthorizationRequestError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/work-authorization-requests/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Create Probation Extension\n * Create a probation extension request.\n */\nexport const postCreateProbationExtension = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostCreateProbationExtensionData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateProbationExtensionResponse,\n PostCreateProbationExtensionError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/probation-extensions',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show a company\n * Given an ID, shows a company\n */\nexport const getShowCompany = <ThrowOnError extends boolean = false>(\n options: Options<GetShowCompanyData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowCompanyResponse,\n GetShowCompanyError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/companies/{company_id}',\n ...options,\n });\n};\n\n/**\n * Update a company\n * Given an ID and a request object with new information, updates a company.\n *\n * ### Getting a company and its owner to `active` status\n * If you created a company using the\n * [create a company endpoint](#tag/Companies/operation/post_create_company) without all the required\n * request body parameters, you can use this endpoint to provide the missing data. Once the company\n * and its owner have all the necessary data, both their statuses will be set to `active` and the company\n * onboarding will be marked as \"completed\".\n *\n * The following constitutes a company with \"all the necessary data\":\n * * Complete `address`, with valid `address`, `postal_code`, `country` and `state` parameters (Varies by country. Use the\n * [show form schema endpoint](#tag/Countries/operation/get_show_form_country) to see which address parameters\n * are required).\n * * Company `tax_number` or `registration_number` is not nil\n * * Company `name` is not nil (already required when creating the company)\n * * Company has a `desired_currency` in their bank account (already required when creating the company)\n * * Company has accepted terms of service (already required when creating the company)\n *\n */\nexport const patchUpdateCompany2 = <ThrowOnError extends boolean = false>(\n options: Options<PatchUpdateCompany2Data, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).patch<\n PatchUpdateCompany2Response,\n PatchUpdateCompany2Error,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/companies/{company_id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Update a company\n * Given an ID and a request object with new information, updates a company.\n *\n * ### Getting a company and its owner to `active` status\n * If you created a company using the\n * [create a company endpoint](#tag/Companies/operation/post_create_company) without all the required\n * request body parameters, you can use this endpoint to provide the missing data. Once the company\n * and its owner have all the necessary data, both their statuses will be set to `active` and the company\n * onboarding will be marked as \"completed\".\n *\n * The following constitutes a company with \"all the necessary data\":\n * * Complete `address`, with valid `address`, `postal_code`, `country` and `state` parameters (Varies by country. Use the\n * [show form schema endpoint](#tag/Countries/operation/get_show_form_country) to see which address parameters\n * are required).\n * * Company `tax_number` or `registration_number` is not nil\n * * Company `name` is not nil (already required when creating the company)\n * * Company has a `desired_currency` in their bank account (already required when creating the company)\n * * Company has accepted terms of service (already required when creating the company)\n *\n */\nexport const patchUpdateCompany = <ThrowOnError extends boolean = false>(\n options: Options<PatchUpdateCompanyData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PatchUpdateCompanyResponse,\n PatchUpdateCompanyError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/companies/{company_id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Download a resignation letter\n * Downloads a resignation letter from an employment request.\n */\nexport const getDownloadResignationLetter = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetDownloadResignationLetterData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetDownloadResignationLetterResponse,\n GetDownloadResignationLetterError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/resignations/{offboarding_request_id}/resignation-letter',\n ...options,\n });\n};\n\n/**\n * List Contract Amendment\n * List Contract Amendment requests.\n */\nexport const getIndexContractAmendment = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexContractAmendmentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexContractAmendmentResponse,\n GetIndexContractAmendmentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/contract-amendments',\n ...options,\n });\n};\n\n/**\n * Create Contract Amendment\n * Creates a Contract Amendment request.\n *\n * This endpoint requires and returns country-specific data. The exact required and returned fields will\n * vary depending on which country the employment is in. To see the list of parameters for each country,\n * see the **Show form schema** endpoint under the [Contract Amendments](#tag/Contract-Amendments) category.\n *\n * Please note that the compliance requirements for each country are subject to change according to local\n * laws. Given its continual updates, using Remote's [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) should be considered in order to avoid\n * compliance issues and to have the latest version of a country requirements.\n *\n * If you are using this endpoint to build an integration, make sure you are dynamically collecting or\n * displaying the latest parameters for each country by querying the _\"Show form schema\"_ endpoint.\n *\n * For more information on JSON Schemas, see the **How JSON Schemas work** documentation.\n *\n * To learn how you can dynamically generate forms to display in your UI, see the documentation for\n * the [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) tool.\n *\n *\n */\nexport const postCreateContractAmendment = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostCreateContractAmendmentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateContractAmendmentResponse,\n PostCreateContractAmendmentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/contract-amendments',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show Company Payroll Runs\n * Given an ID, shows a payroll run.\n */\nexport const getShowPayrollRun = <ThrowOnError extends boolean = false>(\n options: Options<GetShowPayrollRunData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowPayrollRunResponse,\n GetShowPayrollRunError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/payroll-runs/{payroll_run_id}',\n ...options,\n });\n};\n\n/**\n * @deprecated\n * Download a receipt\n * Downloads an expense receipt.\n *\n * Deprecated since late February 2024 in favour of **[Download a receipt by id](#tag/Expenses/operation/get_download_by_id_expense_receipt)** endpoint.\n *\n */\nexport const getDownloadExpenseReceipt = <ThrowOnError extends boolean = false>(\n options: Options<GetDownloadExpenseReceiptData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetDownloadExpenseReceiptResponse,\n GetDownloadExpenseReceiptError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/expenses/{expense_id}/receipt',\n ...options,\n });\n};\n\n/**\n * Show travel letter request\n * Show a single travel letter request.\n */\nexport const getShowTravelLetterRequest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetShowTravelLetterRequestData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowTravelLetterRequestResponse,\n GetShowTravelLetterRequestError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/travel-letter-requests/{id}',\n ...options,\n });\n};\n\n/**\n * Updates a travel letter request\n * Updates a travel letter request\n */\nexport const patchUpdateTravelLetterRequest2 = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchUpdateTravelLetterRequest2Data, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).patch<\n PatchUpdateTravelLetterRequest2Response,\n PatchUpdateTravelLetterRequest2Error,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/travel-letter-requests/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Updates a travel letter request\n * Updates a travel letter request\n */\nexport const patchUpdateTravelLetterRequest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchUpdateTravelLetterRequestData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PatchUpdateTravelLetterRequestResponse,\n PatchUpdateTravelLetterRequestError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/travel-letter-requests/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * @deprecated\n * Show Time Off Balance\n * Shows the time off balance for the given employment_id.\n *\n * Deprecated since February 2025 in favour of **[List Leave Policies Summary](#tag/Leave-Policies/operation/get_index_leave_policies_summary)** endpoint.\n *\n */\nexport const getShowTimeoffBalance = <ThrowOnError extends boolean = false>(\n options: Options<GetShowTimeoffBalanceData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowTimeoffBalanceResponse,\n GetShowTimeoffBalanceError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timeoff-balances/{employment_id}',\n ...options,\n });\n};\n\n/**\n * Show form schema\n * Returns the json schema of a supported form. Possible form names are:\n * ```\n * - address_details\n * - administrative_details\n * - bank_account_details\n * - employment_basic_information\n * - billing_address_details\n * - contract_details\n * - emergency_contact\n * - employment_document_details\n * - personal_details\n * - pricing_plan_details\n * - global_payroll_administrative_details\n * - global_payroll_contract_details\n * - global_payroll_personal_details\n * - benefit_renewal_request\n *\n * ```\n *\n * This endpoint requires a company access token, as forms are dependent on certain\n * properties of companies and their current employments.\n *\n *\n */\nexport const getShowFormCountry = <ThrowOnError extends boolean = false>(\n options: Options<GetShowFormCountryData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowFormCountryResponse,\n GetShowFormCountryError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/countries/{country_code}/{form}',\n ...options,\n });\n};\n\n/**\n * Download file\n * Downloads a file.\n *\n */\nexport const getShowFile = <ThrowOnError extends boolean = false>(\n options: Options<GetShowFileData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowFileResponse,\n GetShowFileError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/files/{id}',\n ...options,\n });\n};\n\n/**\n * Show Contract Amendment\n * Show a single Contract Amendment request.\n */\nexport const getShowContractAmendment = <ThrowOnError extends boolean = false>(\n options: Options<GetShowContractAmendmentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowContractAmendmentResponse,\n GetShowContractAmendmentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/contract-amendments/{id}',\n ...options,\n });\n};\n\n/**\n * List Company Managers\n * List all company managers of an integration. If filtered by the company_id param,\n * it lists only company managers belonging to the specified company.\n *\n */\nexport const getIndexCompanyManager = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexCompanyManagerData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexCompanyManagerResponse,\n GetIndexCompanyManagerError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/company-managers',\n ...options,\n });\n};\n\n/**\n * Create and invite a Company Manager\n * Create a Company Manager and sends the invitation email for signing in to the Remote Platform.\n */\nexport const postCreateCompanyManager = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateCompanyManagerData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateCompanyManagerResponse,\n PostCreateCompanyManagerError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/company-managers',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * List countries\n * Lists active and processing countries\n */\nexport const getIndexCountry = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexCountryData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexCountryResponse,\n unknown,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/cost-calculator/countries',\n ...options,\n });\n};\n\n/**\n * Decline Identity Verification\n * Declines the identity verification of an employee.\n *\n */\nexport const postDeclineIdentityVerification = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostDeclineIdentityVerificationData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostDeclineIdentityVerificationResponse,\n PostDeclineIdentityVerificationError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/identity-verification/{employment_id}/decline',\n ...options,\n });\n};\n\n/**\n * List Billing Documents\n * List billing documents for a company\n */\nexport const getIndexBillingDocument = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexBillingDocumentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexBillingDocumentResponse,\n GetIndexBillingDocumentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/billing-documents',\n ...options,\n });\n};\n\n/**\n * Delete a Webhook Callback\n * Delete a callback previously registered for webhooks\n */\nexport const deleteDeleteWebhookCallback = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteDeleteWebhookCallbackData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).delete<\n DeleteDeleteWebhookCallbackResponse,\n DeleteDeleteWebhookCallbackError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/webhook-callbacks/{id}',\n ...options,\n });\n};\n\n/**\n * Update a Webhook Callback\n * Update a callback previously registered for webhooks\n */\nexport const patchUpdateWebhookCallback = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchUpdateWebhookCallbackData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).patch<\n PatchUpdateWebhookCallbackResponse,\n PatchUpdateWebhookCallbackError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/webhook-callbacks/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * List travel letter requests\n * List travel letter requests.\n */\nexport const getIndexTravelLetterRequest = <\n ThrowOnError extends boolean = false,\n>(\n options?: Options<GetIndexTravelLetterRequestData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexTravelLetterRequestResponse,\n GetIndexTravelLetterRequestError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/travel-letter-requests',\n ...options,\n });\n};\n\n/**\n * List Benefit Renewal Requests\n * List Benefit Renewal Requests for each country.\n */\nexport const getIndexBenefitRenewalRequest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetIndexBenefitRenewalRequestData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexBenefitRenewalRequestResponse,\n GetIndexBenefitRenewalRequestError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/benefit-renewal-requests',\n ...options,\n });\n};\n\n/**\n * Create a Webhook Callback\n * Register a callback to be used for webhooks\n */\nexport const postCreateWebhookCallback = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateWebhookCallbackData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateWebhookCallbackResponse,\n PostCreateWebhookCallbackError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/webhook-callbacks',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Approve timesheet\n * Approves the given timesheet.\n */\nexport const postApproveTimesheet = <ThrowOnError extends boolean = false>(\n options: Options<PostApproveTimesheetData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostApproveTimesheetResponse,\n PostApproveTimesheetError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timesheets/{timesheet_id}/approve',\n ...options,\n });\n};\n\n/**\n * Show payslip\n * Given an ID, shows a payslip.\n *\n * Please contact api-support@remote.com to request access to this endpoint.\n *\n */\nexport const getShowPayslip = <ThrowOnError extends boolean = false>(\n options: Options<GetShowPayslipData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowPayslipResponse,\n GetShowPayslipError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/payslips/{id}',\n ...options,\n });\n};\n\n/**\n * List Leave Policies Summary\n * List all the data related to time off for a given employment\n */\nexport const getIndexLeavePoliciesSummary = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetIndexLeavePoliciesSummaryData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexLeavePoliciesSummaryResponse,\n GetIndexLeavePoliciesSummaryError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/leave-policies/summary/{employment_id}',\n ...options,\n });\n};\n\n/**\n * List Company Departments\n * Lists all departments for the authorized company specified in the request.\n *\n */\nexport const getIndexCompanyDepartment = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexCompanyDepartmentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexCompanyDepartmentResponse,\n GetIndexCompanyDepartmentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/company-departments',\n ...options,\n });\n};\n\n/**\n * Create New Department\n * Creates a new department in the specified company. Department names may be non-unique and must be non-empty with no more than 255 characters (Unicode code points).\n */\nexport const postCreateCompanyDepartment = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostCreateCompanyDepartmentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateCompanyDepartmentResponse,\n PostCreateCompanyDepartmentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/company-departments',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Decline a time off cancellation request\n * Decline a time off cancellation request.\n *\n */\nexport const postDeclineCancellationRequest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostDeclineCancellationRequestData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostDeclineCancellationRequestResponse,\n PostDeclineCancellationRequestError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timeoff/{timeoff_id}/cancel-request/decline',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Get a employment benefit offers JSON schema\n */\nexport const getShowSchema = <ThrowOnError extends boolean = false>(\n options: Options<GetShowSchemaData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowSchemaResponse,\n GetShowSchemaError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employments/{employment_id}/benefit-offers/schema',\n ...options,\n });\n};\n\n/**\n * List timesheets\n * Lists all timesheets.\n */\nexport const getIndexTimesheet = <ThrowOnError extends boolean = false>(\n options?: Options<GetIndexTimesheetData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexTimesheetResponse,\n GetIndexTimesheetError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timesheets',\n ...options,\n });\n};\n\n/**\n * Show employment\n * Shows all the information of an employment.\n *\n * This endpoint requires and returns country-specific data. The exact required and returned fields will\n * vary depending on which country the employment is in. To see the list of parameters for each country,\n * see the **Show form schema** endpoint under the [Countries](#tag/Countries) category.\n *\n * Please note that the compliance requirements for each country are subject to change according to local\n * laws. Given its continual updates, using Remote's [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) should be considered in order to avoid\n * compliance issues and to have the latest version of a country requirements.\n *\n * If you are using this endpoint to build an integration, make sure you are dynamically collecting or\n * displaying the latest parameters for each country by querying the _\"Show form schema\"_ endpoint.\n *\n * For more information on JSON Schemas, see the **How JSON Schemas work** documentation.\n *\n * To learn how you can dynamically generate forms to display in your UI, see the documentation for\n * the [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) tool.\n *\n *\n */\nexport const getShowEmployment = <ThrowOnError extends boolean = false>(\n options: Options<GetShowEmploymentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowEmploymentResponse,\n GetShowEmploymentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employments/{employment_id}',\n ...options,\n });\n};\n\n/**\n * Update employment\n * Updates an employment.\n *\n * **For `created` employments:** You can change all basic params and onboarding tasks or perform a per onboarding task update. You can also update basic_information.\n *\n * **For `active` employments:** You can update the manager (`manager_id` field), emergency_contact_details, address_details and work_email.\n *\n * **For `invited` employments:** You can update the work_email.\n *\n * After onboarding, only a limited set of employment data will be available for updates, such as `emergency_contact_details`.\n * If you want to provide additional information for an employment, please make sure to do so **before** the employee is invited.\n * We block updates to some employment data because employees need to agree to amendments in certain cases, such as when there are changes to their contract_details.\n * Currently, these amendments can only be done through the Remote UI.\n *\n * This endpoint requires and returns country-specific data. The exact required and returned fields will\n * vary depending on which country the employment is in. To see the list of parameters for each country,\n * see the **Show form schema** endpoint under the [Countries](#tag/Countries) category.\n *\n * Please note that the compliance requirements for each country are subject to change according to local\n * laws. Given its continual updates, using Remote's [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) should be considered in order to avoid\n * compliance issues and to have the latest version of a country requirements.\n *\n * If you are using this endpoint to build an integration, make sure you are dynamically collecting or\n * displaying the latest parameters for each country by querying the _\"Show form schema\"_ endpoint.\n *\n * For more information on JSON Schemas, see the **How JSON Schemas work** documentation.\n *\n * To learn how you can dynamically generate forms to display in your UI, see the documentation for\n * the [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) tool.\n *\n *\n * Please contact Remote if you need to update contractors via API since it's currently not supported.\n *\n */\nexport const patchUpdateEmployment2 = <ThrowOnError extends boolean = false>(\n options: Options<PatchUpdateEmployment2Data, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).patch<\n PatchUpdateEmployment2Response,\n PatchUpdateEmployment2Error,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employments/{employment_id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Update employment\n * Updates an employment.\n *\n * **For `created` employments:** You can change all basic params and onboarding tasks or perform a per onboarding task update. You can also update basic_information.\n *\n * **For `active` employments:** You can update the manager (`manager_id` field), emergency_contact_details, address_details and work_email.\n *\n * **For `invited` employments:** You can update the work_email.\n *\n * After onboarding, only a limited set of employment data will be available for updates, such as `emergency_contact_details`.\n * If you want to provide additional information for an employment, please make sure to do so **before** the employee is invited.\n * We block updates to some employment data because employees need to agree to amendments in certain cases, such as when there are changes to their contract_details.\n * Currently, these amendments can only be done through the Remote UI.\n *\n * This endpoint requires and returns country-specific data. The exact required and returned fields will\n * vary depending on which country the employment is in. To see the list of parameters for each country,\n * see the **Show form schema** endpoint under the [Countries](#tag/Countries) category.\n *\n * Please note that the compliance requirements for each country are subject to change according to local\n * laws. Given its continual updates, using Remote's [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) should be considered in order to avoid\n * compliance issues and to have the latest version of a country requirements.\n *\n * If you are using this endpoint to build an integration, make sure you are dynamically collecting or\n * displaying the latest parameters for each country by querying the _\"Show form schema\"_ endpoint.\n *\n * For more information on JSON Schemas, see the **How JSON Schemas work** documentation.\n *\n * To learn how you can dynamically generate forms to display in your UI, see the documentation for\n * the [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) tool.\n *\n *\n * Please contact Remote if you need to update contractors via API since it's currently not supported.\n *\n */\nexport const patchUpdateEmployment = <ThrowOnError extends boolean = false>(\n options: Options<PatchUpdateEmploymentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PatchUpdateEmploymentResponse,\n PatchUpdateEmploymentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employments/{employment_id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * List Company Payroll Calendar\n * List all payroll calendars for the company within the requested cycle.\n */\nexport const getIndexPayrollCalendar = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexPayrollCalendarData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexPayrollCalendarResponse,\n GetIndexPayrollCalendarError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/payroll-calendars/{cycle}',\n ...options,\n });\n};\n\n/**\n * Show region fields\n * Returns required fields JSON Schema for a given region. These are required in order to calculate\n * the cost of employment for the region. These fields are based on employer contributions that are associated\n * with the region or any of it's parent regions.\n */\nexport const getShowRegionField = <ThrowOnError extends boolean = false>(\n options: Options<GetShowRegionFieldData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowRegionFieldResponse,\n GetShowRegionFieldError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/cost-calculator/regions/{slug}/fields',\n ...options,\n });\n};\n\n/**\n * Show Offboarding\n * Shows an Offboarding request.\n */\nexport const getShowOffboarding = <ThrowOnError extends boolean = false>(\n options: Options<GetShowOffboardingData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowOffboardingResponse,\n GetShowOffboardingError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/offboardings/{id}',\n ...options,\n });\n};\n\n/**\n * Create employment\n * Creates an employment without provisional_start_date validation.\n *\n * This endpoint is only available in Sandbox and allows creating employments which\n * `provisional_start_date` is in the past. This is especially helpful for:\n * * Testing the Timeoff Balance endpoints\n * * Testing the Offboarding endpoints\n * * Testing features around probation periods\n *\n * This endpoint will respond with a 404 outside of the Sandbox environment.\n *\n * For creating an employment's parameters outside of testing purposes, use [this\n * Employment create endpoint](#operation/post_create_employment)\n *\n */\nexport const postCreateEmployment = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateEmploymentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateEmploymentResponse,\n PostCreateEmploymentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/sandbox/employments',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * List countries\n * Returns a list of all countries that are supported by Remote API alphabetically ordered. The supported list accounts for creating employment with basic information and it does not imply fully onboarding employment via JSON Schema.\n *\n */\nexport const getSupportedCountry = <ThrowOnError extends boolean = false>(\n options: Options<GetSupportedCountryData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetSupportedCountryResponse,\n GetSupportedCountryError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/countries',\n ...options,\n });\n};\n\n/**\n * Complete onboarding\n * Completes the employee onboarding. When all tasks are completed, the employee is marked as in `review` status\n */\nexport const postCompleteOnboardingEmployment = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostCompleteOnboardingEmploymentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCompleteOnboardingEmploymentResponse,\n PostCompleteOnboardingEmploymentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/ready',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * List Time Off Types\n * Lists all time off types that can be used for the `timeoff_type` parameter\n */\nexport const getTimeoffTypesTimeoff = <ThrowOnError extends boolean = false>(\n options: Options<GetTimeoffTypesTimeoffData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetTimeoffTypesTimeoffResponse,\n GetTimeoffTypesTimeoffError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timeoff/types',\n ...options,\n });\n};\n\n/**\n * Trigger a Webhook\n * Triggers a callback previously registered for webhooks. Use this endpoint to\n * emit a webhook for testing in the Sandbox environment. This endpoint will\n * respond with a 404 outside of the Sandbox environment.\n *\n */\nexport const postTriggerWebhookCallback = <\n ThrowOnError extends boolean = false,\n>(\n options?: Options<PostTriggerWebhookCallbackData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).post<\n PostTriggerWebhookCallbackResponse,\n PostTriggerWebhookCallbackError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/sandbox/webhook-callbacks/trigger',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Download payslip in the PDF format\n * Given a Payslip ID, downloads a payslip.\n * It is important to note that each country has a different payslip format and they are not authored by Remote.\n *\n */\nexport const getDownloadPayslipPayslip = <ThrowOnError extends boolean = false>(\n options: Options<GetDownloadPayslipPayslipData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetDownloadPayslipPayslipResponse,\n GetDownloadPayslipPayslipError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/payslips/{payslip_id}/pdf',\n ...options,\n });\n};\n\n/**\n * Show Time Off\n * Shows a single Time Off record\n */\nexport const getShowTimeoff = <ThrowOnError extends boolean = false>(\n options: Options<GetShowTimeoffData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowTimeoffResponse,\n GetShowTimeoffError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timeoff/{id}',\n ...options,\n });\n};\n\n/**\n * Update Time Off\n * Updates a Time Off record.\n * Warning: Updating the status of a time off through this endpoint is deprecated and will be removed on January 13, 2025.\n * To approve or cancel an approved time off, use the `/approve` and `/cancel` endpoints instead.\n *\n */\nexport const patchUpdateTimeoff2 = <ThrowOnError extends boolean = false>(\n options: Options<PatchUpdateTimeoff2Data, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).patch<\n PatchUpdateTimeoff2Response,\n PatchUpdateTimeoff2Error,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timeoff/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Update Time Off\n * Updates a Time Off record.\n * Warning: Updating the status of a time off through this endpoint is deprecated and will be removed on January 13, 2025.\n * To approve or cancel an approved time off, use the `/approve` and `/cancel` endpoints instead.\n *\n */\nexport const patchUpdateTimeoff = <ThrowOnError extends boolean = false>(\n options: Options<PatchUpdateTimeoffData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PatchUpdateTimeoffResponse,\n PatchUpdateTimeoffError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timeoff/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Decline Time Off\n * Decline a time off request. Please note that only time off requests on the `requested` status can be declined.\n */\nexport const postCreateDecline = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateDeclineData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateDeclineResponse,\n PostCreateDeclineError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timeoff/{timeoff_id}/decline',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Automatable Contract Amendment\n * Check if a contract amendment request is automatable.\n * If the contract amendment request is automatable, then after submission, it will instantly amend the employee's contract\n * and send them an updated document.\n *\n * This endpoint requires and returns country-specific data. The exact required and returned fields will\n * vary depending on which country the employment is in. To see the list of parameters for each country,\n * see the **Show form schema** endpoint under the [Contract Amendments](#tag/Contract-Amendments) category.\n *\n * Please note that the compliance requirements for each country are subject to change according to local\n * laws. Given its continual updates, using Remote's [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) should be considered in order to avoid\n * compliance issues and to have the latest version of a country requirements.\n *\n * If you are using this endpoint to build an integration, make sure you are dynamically collecting or\n * displaying the latest parameters for each country by querying the _\"Show form schema\"_ endpoint.\n *\n * For more information on JSON Schemas, see the **How JSON Schemas work** documentation.\n *\n * To learn how you can dynamically generate forms to display in your UI, see the documentation for\n * the [json-schema-form](https://remote.com/resources/api/how-json-schemas-work) tool.\n *\n *\n */\nexport const postAutomatableContractAmendment = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostAutomatableContractAmendmentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostAutomatableContractAmendmentResponse,\n PostAutomatableContractAmendmentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/contract-amendments/automatable',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Approve Time Off\n * Approve a time off request.\n */\nexport const postCreateApproval = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateApprovalData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateApprovalResponse,\n PostCreateApprovalError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timeoff/{timeoff_id}/approve',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Lists custom fields definitions\n * Returns custom fields definitions\n */\nexport const getIndexEmploymentCustomField = <\n ThrowOnError extends boolean = false,\n>(\n options?: Options<GetIndexEmploymentCustomFieldData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexEmploymentCustomFieldResponse,\n GetIndexEmploymentCustomFieldError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/custom-fields',\n ...options,\n });\n};\n\n/**\n * Create Custom Field Definition\n * Creates a new custom field definition.\n */\nexport const postCreateEmploymentCustomField = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostCreateEmploymentCustomFieldData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateEmploymentCustomFieldResponse,\n PostCreateEmploymentCustomFieldError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/custom-fields',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * List company supported currencies\n * List company supported currencies\n */\nexport const getIndexCompanyCurrency = <ThrowOnError extends boolean = false>(\n options?: Options<GetIndexCompanyCurrencyData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexCompanyCurrencyResponse,\n GetIndexCompanyCurrencyError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/company-currencies',\n ...options,\n });\n};\n\n/**\n * Update employment\n * Updates an employment. Use this endpoint to modify employment states for testing\n * in the Sandbox environment. This endpoint will respond with a 404 outside of the\n * Sandbox environment.\n *\n * For updating an employment's parameters outside of testing purposes, use [this\n * Employment update endpoint](#operation/patch_update_employment).\n *\n */\nexport const patchUpdateEmployment4 = <ThrowOnError extends boolean = false>(\n options: Options<PatchUpdateEmployment4Data, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).patch<\n PatchUpdateEmployment4Response,\n PatchUpdateEmployment4Error,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/sandbox/employments/{employment_id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Update employment\n * Updates an employment. Use this endpoint to modify employment states for testing\n * in the Sandbox environment. This endpoint will respond with a 404 outside of the\n * Sandbox environment.\n *\n * For updating an employment's parameters outside of testing purposes, use [this\n * Employment update endpoint](#operation/patch_update_employment).\n *\n */\nexport const patchUpdateEmployment3 = <ThrowOnError extends boolean = false>(\n options: Options<PatchUpdateEmployment3Data, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PatchUpdateEmployment3Response,\n PatchUpdateEmployment3Error,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/sandbox/employments/{employment_id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Get employment contract pending changes\n * Get all the pending changes (waiting for aproval or signature) for the employment contract.\n */\nexport const getPendingChangesEmploymentContract = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetPendingChangesEmploymentContractData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetPendingChangesEmploymentContractResponse,\n GetPendingChangesEmploymentContractError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employment-contracts/{employment_id}/pending-changes',\n ...options,\n });\n};\n\n/**\n * Show Resignation\n * Shows the details of a resignation with status `submitted`.\n */\nexport const getShowResignation = <ThrowOnError extends boolean = false>(\n options: Options<GetShowResignationData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowResignationResponse,\n GetShowResignationError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/resignations/{offboarding_request_id}',\n ...options,\n });\n};\n\n/**\n * Upload file\n * Uploads a file associated with a specified employment.\n *\n * Please contact api-support@remote.com to request access to this endpoint.\n *\n */\nexport const postUploadEmployeeFileFile = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostUploadEmployeeFileFileData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostUploadEmployeeFileFileResponse,\n PostUploadEmployeeFileFileError,\n ThrowOnError\n >({\n ...formDataBodySerializer,\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/documents',\n ...options,\n headers: {\n 'Content-Type': null,\n ...options?.headers,\n },\n });\n};\n\n/**\n * Invite employment\n * Invite an employment to start the self-enrollment.\n *\n * Requirements for the invitation to succeed:\n *\n * * Employment needs to have the following JSON Schema forms filled: `contract_details` and `pricing_plan_details`\n * * `provisional_start_date` must consider the minimum onboarding time of the employment's country\n *\n * If there are validations errors, they are returned with a Conflict HTTP Status (409) and a descriptive message.\n * HTTP Status OK (200) is returned in case of success.\n *\n * In case of the following error message:\n * `\"Please reselect benefits - the previous selection is no longer available\"`\n * it means that the benefit options have been updated and the employment's benefits are no longer compliant with the new schema.\n *\n * In this case, reselect benefits by updating `contract_details` JSON Schema form.\n *\n */\nexport const postInviteEmploymentInvitation = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostInviteEmploymentInvitationData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostInviteEmploymentInvitationResponse,\n PostInviteEmploymentInvitationError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employments/{employment_id}/invite',\n ...options,\n });\n};\n\n/**\n * Show expense\n * Shows a single expense record\n */\nexport const getShowExpense = <ThrowOnError extends boolean = false>(\n options: Options<GetShowExpenseData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowExpenseResponse,\n GetShowExpenseError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/expenses/{id}',\n ...options,\n });\n};\n\n/**\n * Update an expense\n * Updates an expense\n */\nexport const patchUpdateExpense2 = <ThrowOnError extends boolean = false>(\n options: Options<PatchUpdateExpense2Data, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).patch<\n PatchUpdateExpense2Response,\n PatchUpdateExpense2Error,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/expenses/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Update an expense\n * Updates an expense\n */\nexport const patchUpdateExpense = <ThrowOnError extends boolean = false>(\n options: Options<PatchUpdateExpenseData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PatchUpdateExpenseResponse,\n PatchUpdateExpenseError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/expenses/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show Benefit Renewal Request\n * Show Benefit Renewal Request details.\n */\nexport const getShowBenefitRenewalRequest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetShowBenefitRenewalRequestData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowBenefitRenewalRequestResponse,\n GetShowBenefitRenewalRequestError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/benefit-renewal-requests/{benefit_renewal_request_id}',\n ...options,\n });\n};\n\n/**\n * Updates a Benefit Renewal Request Response\n * Updates a Benefit Renewal Request with the given response.\n */\nexport const postUpdateBenefitRenewalRequest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostUpdateBenefitRenewalRequestData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostUpdateBenefitRenewalRequestResponse,\n PostUpdateBenefitRenewalRequestError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/benefit-renewal-requests/{benefit_renewal_request_id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * List company structure nodes\n * Shows all the company structure nodes of an employment.\n *\n */\nexport const getIndexEmploymentCompanyStructureNode = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetIndexEmploymentCompanyStructureNodeData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexEmploymentCompanyStructureNodeResponse,\n GetIndexEmploymentCompanyStructureNodeError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employments/{employment_id}/company-structure-nodes',\n ...options,\n });\n};\n\n/**\n * List custom field value for an employment\n * Returns a list of custom field values for a given employment\n */\nexport const getIndexEmploymentCustomFieldValue = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetIndexEmploymentCustomFieldValueData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexEmploymentCustomFieldValueResponse,\n GetIndexEmploymentCustomFieldValueError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employments/{employment_id}/custom-fields',\n ...options,\n });\n};\n\n/**\n * Validate resignation request\n * Validates a resignation employment request\n */\nexport const putValidateResignation = <ThrowOnError extends boolean = false>(\n options: Options<PutValidateResignationData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PutValidateResignationResponse,\n PutValidateResignationError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/resignations/{offboarding_request_id}/validate',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Show a custom field value\n * Returns a custom field value for a given employment\n */\nexport const getShowEmploymentCustomFieldValue = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetShowEmploymentCustomFieldValueData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowEmploymentCustomFieldValueResponse,\n GetShowEmploymentCustomFieldValueError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/custom-fields/{custom_field_id}/values/{employment_id}',\n ...options,\n });\n};\n\n/**\n * Update a Custom Field Value\n * Updates a custom field value for a given employment.\n */\nexport const patchUpdateEmploymentCustomFieldValue2 = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchUpdateEmploymentCustomFieldValue2Data, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).patch<\n PatchUpdateEmploymentCustomFieldValue2Response,\n PatchUpdateEmploymentCustomFieldValue2Error,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/custom-fields/{custom_field_id}/values/{employment_id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Update a Custom Field Value\n * Updates a custom field value for a given employment.\n */\nexport const patchUpdateEmploymentCustomFieldValue = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PatchUpdateEmploymentCustomFieldValueData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PatchUpdateEmploymentCustomFieldValueResponse,\n PatchUpdateEmploymentCustomFieldValueError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/custom-fields/{custom_field_id}/values/{employment_id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Get token identity\n * Shows information about the entities that can be controlled by the current auth token.\n *\n */\nexport const getCurrentIdentity = <ThrowOnError extends boolean = false>(\n options: Options<GetCurrentIdentityData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetCurrentIdentityResponse,\n GetCurrentIdentityError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/identity/current',\n ...options,\n });\n};\n\n/**\n * Delete an Incentive\n * Delete an incentive.\n *\n * `one_time` incentives that have the following status **CANNOT** be deleted:\n * * `processing`\n * * `paid`\n *\n */\nexport const deleteDeleteIncentive = <ThrowOnError extends boolean = false>(\n options: Options<DeleteDeleteIncentiveData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).delete<\n DeleteDeleteIncentiveResponse,\n DeleteDeleteIncentiveError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/incentives/{id}',\n ...options,\n });\n};\n\n/**\n * Show Incentive\n * Show an Incentive's details\n */\nexport const getShowIncentive = <ThrowOnError extends boolean = false>(\n options: Options<GetShowIncentiveData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowIncentiveResponse,\n GetShowIncentiveError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/incentives/{id}',\n ...options,\n });\n};\n\n/**\n * Update Incentive\n * Updates an Incentive.\n *\n * Incentives use the currency of the employment specified provided in the `employment_id` field.\n *\n * The API doesn't support updating paid incentives.\n *\n */\nexport const patchUpdateIncentive2 = <ThrowOnError extends boolean = false>(\n options: Options<PatchUpdateIncentive2Data, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).patch<\n PatchUpdateIncentive2Response,\n PatchUpdateIncentive2Error,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/incentives/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Update Incentive\n * Updates an Incentive.\n *\n * Incentives use the currency of the employment specified provided in the `employment_id` field.\n *\n * The API doesn't support updating paid incentives.\n *\n */\nexport const patchUpdateIncentive = <ThrowOnError extends boolean = false>(\n options: Options<PatchUpdateIncentiveData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PatchUpdateIncentiveResponse,\n PatchUpdateIncentiveError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/incentives/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * List work authorization requests\n * List work authorization requests.\n */\nexport const getIndexWorkAuthorizationRequest = <\n ThrowOnError extends boolean = false,\n>(\n options?: Options<GetIndexWorkAuthorizationRequestData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexWorkAuthorizationRequestResponse,\n GetIndexWorkAuthorizationRequestError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/work-authorization-requests',\n ...options,\n });\n};\n\n/**\n * List Benefit Offers\n * List benefit offers for each country.\n *\n */\nexport const getIndexBenefitOffersCountrySummary = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetIndexBenefitOffersCountrySummaryData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexBenefitOffersCountrySummaryResponse,\n GetIndexBenefitOffersCountrySummaryError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/benefit-offers/country-summaries',\n ...options,\n });\n};\n\n/**\n * List Benefit Offers By Employment\n * List benefit offers by employment.\n *\n */\nexport const getIndexBenefitOffersByEmployment = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetIndexBenefitOffersByEmploymentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexBenefitOffersByEmploymentResponse,\n GetIndexBenefitOffersByEmploymentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/benefit-offers',\n ...options,\n });\n};\n\n/**\n * Cancel Contract Amendment\n * Use this endpoint to cancel an existing contract amendment request.\n *\n * This endpoint is only available in Sandbox, otherwise it will respond with a 404.\n *\n */\nexport const putCancelContractAmendment = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PutCancelContractAmendmentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).put<\n PutCancelContractAmendmentResponse,\n PutCancelContractAmendmentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/sandbox/contract-amendments/{contract_amendment_request_id}/cancel',\n ...options,\n });\n};\n\n/**\n * Show Probation Extension\n * Shows a Probation Extension Request.\n *\n */\nexport const getShowProbationExtension = <ThrowOnError extends boolean = false>(\n options: Options<GetShowProbationExtensionData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowProbationExtensionResponse,\n GetShowProbationExtensionError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/probation-extensions/{id}',\n ...options,\n });\n};\n\n/**\n * List payslips\n * Lists all payslips belonging to a company. Can also filter for a single employment belonging\n * to that company.\n *\n */\nexport const getIndexPayslip = <ThrowOnError extends boolean = false>(\n options?: Options<GetIndexPayslipData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexPayslipResponse,\n GetIndexPayslipError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/payslips',\n ...options,\n });\n};\n\n/**\n * Download a receipt by id\n * Download a receipt by id.\n */\nexport const getDownloadByIdExpenseReceipt = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetDownloadByIdExpenseReceiptData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetDownloadByIdExpenseReceiptResponse,\n GetDownloadByIdExpenseReceiptError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/expenses/{expense_id}/receipts/{receipt_id}',\n ...options,\n });\n};\n\n/**\n * Token\n * Endpoint to exchange tokens in the Authorization Code, Client Credentials and Refresh Token flows\n */\nexport const postTokenOAuth2Token = <ThrowOnError extends boolean = false>(\n options: Options<PostTokenOAuth2TokenData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostTokenOAuth2TokenResponse,\n PostTokenOAuth2TokenError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/auth/oauth2/token',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * List Time Off\n * Lists all Time Off records.\n */\nexport const getIndexTimeoff = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexTimeoffData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexTimeoffResponse,\n GetIndexTimeoffError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timeoff',\n ...options,\n });\n};\n\n/**\n * Create Time Off\n * Creates a Time Off record\n */\nexport const postCreateTimeoff = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateTimeoffData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateTimeoffResponse,\n PostCreateTimeoffError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timeoff',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * List Company Payroll Runs\n * Lists all payroll runs for a company\n */\nexport const getIndexPayrollRun = <ThrowOnError extends boolean = false>(\n options?: Options<GetIndexPayrollRunData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexPayrollRunResponse,\n GetIndexPayrollRunError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/payroll-runs',\n ...options,\n });\n};\n\n/**\n * List Employment Contract.\n * Get the employment contract history for a given employment. If `only_active` is true, it will return only the active or last active contract.\n */\nexport const getIndexEmploymentContract = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetIndexEmploymentContractData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexEmploymentContractResponse,\n GetIndexEmploymentContractError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/employment-contracts',\n ...options,\n });\n};\n\n/**\n * List all companies\n * List all companies that authorized your integration to act on their behalf. In other words, these are all the companies that your integration can manage. Any company that has completed the authorization flow for your integration will be included in the response.\n */\nexport const getIndexCompany = <ThrowOnError extends boolean = false>(\n options: Options<GetIndexCompanyData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetIndexCompanyResponse,\n GetIndexCompanyError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/companies',\n ...options,\n });\n};\n\n/**\n * Create a company\n * Creates a new company.\n *\n * ### Creating a company with only the required request body parameters\n * When you call this endpoint and omit all the optional parameters in the request body,\n * the following resources get created upon a successful response:\n * * A new company with status `pending`.\n * * A company owner for the new company with status `initiated`.\n *\n * See the [update a company endpoint](#tag/Companies/operation/patch_update_company) for\n * more details on how to get your company and its owner to `active` status.\n *\n * If you'd like to create a company and its owner with `active` status in a single request,\n * please provide the optional `address_details` parameter as well.\n *\n * ### Accepting the Terms of Service\n *\n * A required step for creating a company in Remote is to accept our Terms of Service (ToS).\n *\n * Company managers need to be aware of our Terms of Service and Privacy Policy,\n * hence **it's the responsibility of our partners to advise and ensure company managers read\n * and accept the ToS**. The terms have to be accepted only once, before creating a company,\n * and the Remote API will collect the acceptance timestamp as its confirmation.\n *\n * To ensure users read the most recent version of Remote's Terms of Service, their **acceptance\n * must be done within the last fifteen minutes prior the company creation action**.\n *\n * To retrieve this information, partners can provide an element with any text and a description\n * explaining that by performing that action they are accepting Remote's Term of Service. For\n * instance, the partner can add a checkbox or a \"Create Remote Account\" button followed by a\n * description saying \"By creating an account, you agree to\n * [Remote's Terms of Service](https://remote.com/terms-of-service). Also see Remote's\n * [Privacy Policy](https://remote.com/privacy-policy)\".\n *\n */\nexport const postCreateCompany = <ThrowOnError extends boolean = false>(\n options: Options<PostCreateCompanyData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostCreateCompanyResponse,\n PostCreateCompanyError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/companies',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Send back a timesheet for review or modification\n * Sends the given timesheet back to the employee for review or modification.\n */\nexport const postSendBackTimesheet = <ThrowOnError extends boolean = false>(\n options: Options<PostSendBackTimesheetData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostSendBackTimesheetResponse,\n PostSendBackTimesheetError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timesheets/{timesheet_id}/send-back',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Deletes a Company Manager user\n * Deletes a Company Manager user\n */\nexport const deleteDeleteCompanyManager = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<DeleteDeleteCompanyManagerData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).delete<\n DeleteDeleteCompanyManagerResponse,\n DeleteDeleteCompanyManagerError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/company-managers/{user_id}',\n ...options,\n });\n};\n\n/**\n * Show company manager user\n * Shows a single company manager user\n */\nexport const getShowCompanyManager = <ThrowOnError extends boolean = false>(\n options: Options<GetShowCompanyManagerData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetShowCompanyManagerResponse,\n GetShowCompanyManagerError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/company-managers/{user_id}',\n ...options,\n });\n};\n\n/**\n * List Contractor Invoice Schedules\n * Lists Contractor Invoice Schedule records.\n */\nexport const getIndexScheduledContractorInvoice = <\n ThrowOnError extends boolean = false,\n>(\n options?: Options<GetIndexScheduledContractorInvoiceData, ThrowOnError>,\n) => {\n return (options?.client ?? _heyApiClient).get<\n GetIndexScheduledContractorInvoiceResponse,\n GetIndexScheduledContractorInvoiceError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/contractor-invoice-schedules',\n ...options,\n });\n};\n\n/**\n * Create Contractor Invoice Schedules\n * Creates many invoice schedules records.\n * It's supposed to return two lists: one containing created records, and another one containing the schedules that failed to be inserted.\n *\n */\nexport const postBulkCreateScheduledContractorInvoice = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostBulkCreateScheduledContractorInvoiceData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostBulkCreateScheduledContractorInvoiceResponse,\n PostBulkCreateScheduledContractorInvoiceError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/contractor-invoice-schedules',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers,\n },\n });\n};\n\n/**\n * Get Billing Document Breakdown\n * Get billing document breakdown\n */\nexport const getGetBreakdownBillingDocument = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetGetBreakdownBillingDocumentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetGetBreakdownBillingDocumentResponse,\n GetGetBreakdownBillingDocumentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/billing-documents/{billing_document_id}/breakdown',\n ...options,\n });\n};\n\n/**\n * Approve a time off cancellation request\n * Approve a time off cancellation request.\n * In order to approve a time off cancellation request, the timeoff status must be `cancel_requested`.\n *\n */\nexport const postApproveCancellationRequest = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostApproveCancellationRequestData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostApproveCancellationRequestResponse,\n PostApproveCancellationRequestError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/timeoff/{timeoff_id}/cancel-request/approve',\n ...options,\n });\n};\n\n/**\n * Verify Employment Identity\n * Endpoint to confirms the employment profile is from the actual employee\n *\n */\nexport const postVerifyIdentityVerification = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<PostVerifyIdentityVerificationData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).post<\n PostVerifyIdentityVerificationResponse,\n PostVerifyIdentityVerificationError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/identity-verification/{employment_id}/verify',\n ...options,\n });\n};\n\n/**\n * Download a billing document PDF\n * Downloads a billing document PDF\n */\nexport const getDownloadPdfBillingDocument = <\n ThrowOnError extends boolean = false,\n>(\n options: Options<GetDownloadPdfBillingDocumentData, ThrowOnError>,\n) => {\n return (options.client ?? _heyApiClient).get<\n GetDownloadPdfBillingDocumentResponse,\n GetDownloadPdfBillingDocumentError,\n ThrowOnError\n >({\n security: [\n {\n scheme: 'bearer',\n type: 'http',\n },\n ],\n url: '/v1/billing-documents/{billing_document_id}/pdf',\n ...options,\n });\n};\n","// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { ClientOptions } from './types.gen';\nimport {\n type Config,\n type ClientOptions as DefaultClientOptions,\n createClient,\n createConfig,\n} from '@hey-api/client-fetch';\n\n/**\n * The `createClientConfig()` function will be called on client initialization\n * and the returned object will become the client's initial configuration.\n *\n * You may want to initialize your client this way instead of calling\n * `setConfig()`. This is useful for example if you're using Next.js\n * to ensure your client always has the correct values.\n */\nexport type CreateClientConfig<T extends DefaultClientOptions = ClientOptions> =\n (\n override?: Config<DefaultClientOptions & T>,\n ) => Config<Required<DefaultClientOptions> & T>;\n\nexport const client = createClient(\n createConfig<ClientOptions>({\n baseUrl: 'https://gateway.remote.com/',\n }),\n);\n"],"mappings":"wCAEA,OAIE,0BAAAA,MACK,wBCJP,OAGE,gBAAAC,EACA,gBAAAC,MACK,wBAeA,IAAMC,EAASF,EACpBC,EAA4B,CAC1B,QAAS,6BACX,CAAC,CACH,EDidO,IAAME,EAAwBC,EACnCC,IAEQA,GAAS,QAAUC,GAAe,KAIxC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,mBACL,GAAGD,EACH,QAAS,CACP,eAAgB,mBAChB,GAAGA,GAAS,OACd,CACF,CAAC,EApBkC,yBAoF9B,IAAME,EAAiCC,EAG5CC,IAEQA,EAAQ,QAAUC,GAAe,IAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,iCACL,GAAGD,CACL,CAAC,EAlB2C,kCA4LvC,IAAME,EAAwBC,EACnCC,IAEQA,EAAQ,QAAUC,GAAe,KAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,kBACL,GAAGD,EACH,QAAS,CACP,eAAgB,mBAChB,GAAGA,GAAS,OACd,CACF,CAAC,EApBkC,yBA0E9B,IAAME,EAAuBC,EAClCC,IAEQA,EAAQ,QAAUC,GAAe,KAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,iCACL,GAAGD,EACH,QAAS,CACP,eAAgB,mBAChB,GAAGA,GAAS,OACd,CACF,CAAC,EApBiC,wBAmD7B,IAAME,EAAuBC,EAClCC,IAEQA,EAAQ,QAAUC,GAAe,IAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,iDACL,GAAGD,CACL,CAAC,EAhBiC,wBAsBvBE,EAAwBH,EACnCC,IAEQA,EAAQ,QAAUC,GAAe,IAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,iDACL,GAAGD,EACH,QAAS,CACP,eAAgB,mBAChB,GAAGA,GAAS,OACd,CACF,CAAC,EApBkC,yBAqsB9B,IAAMG,EAA0BC,EACrCC,IAEQA,GAAS,QAAUC,GAAe,KAIxC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,qCACL,GAAGD,EACH,QAAS,CACP,eAAgB,mBAChB,GAAGA,GAAS,OACd,CACF,CAAC,EApBoC,2BA4ThC,IAAME,EAA8BC,EAGzCC,IAEQA,EAAQ,QAAUC,GAAe,KAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,0BACL,GAAGD,EACH,QAAS,CACP,eAAgB,mBAChB,GAAGA,GAAS,OACd,CACF,CAAC,EAtBwC,+BAmNpC,IAAME,EAAqBC,EAChCC,IAEQA,EAAQ,QAAUC,GAAe,IAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,sCACL,GAAGD,CACL,CAAC,EAhB+B,sBA0H3B,IAAME,EAAkBC,EAC7BC,IAEQA,EAAQ,QAAUC,GAAe,IAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,gCACL,GAAGD,CACL,CAAC,EAhB4B,mBAuWxB,IAAME,EAAgBC,EAC3BC,IAEQA,EAAQ,QAAUC,GAAe,IAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,wDACL,GAAGD,CACL,CAAC,EAhB0B,iBAgEtB,IAAME,EAAoBC,EAC/BC,IAEQA,EAAQ,QAAUC,GAAe,IAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,kCACL,GAAGD,CACL,CAAC,EAhB8B,qBAsDpBE,EAAyBH,EACpCC,IAEQA,EAAQ,QAAUC,GAAe,MAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,kCACL,GAAGD,EACH,QAAS,CACP,eAAgB,mBAChB,GAAGA,GAAS,OACd,CACF,CAAC,EApBmC,0BA8G/B,IAAMG,EAAqBC,EAChCC,IAEQA,EAAQ,QAAUC,GAAe,IAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,4CACL,GAAGD,CACL,CAAC,EAhB+B,sBA4V3B,IAAME,EAAmCC,EAG9CC,IAEQA,EAAQ,QAAUC,GAAe,KAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,sCACL,GAAGD,EACH,QAAS,CACP,eAAgB,mBAChB,GAAGA,GAAS,OACd,CACF,CAAC,EAtB6C,oCA8GzC,IAAME,EAA0BC,EACrCC,IAEQA,GAAS,QAAUC,GAAe,IAIxC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,yBACL,GAAGD,CACL,CAAC,EAhBoC,2BAyLhC,IAAME,EAAiCC,EAG5CC,IAEQA,EAAQ,QAAUC,GAAe,KAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,yCACL,GAAGD,CACL,CAAC,EAlB2C,kCAspBvC,IAAME,EAAkBC,EAC7BC,IAEQA,EAAQ,QAAUC,GAAe,IAIvC,CACA,SAAU,CACR,CACE,OAAQ,SACR,KAAM,MACR,CACF,EACA,IAAK,cACL,GAAGD,CACL,CAAC,EAhB4B","names":["formDataBodySerializer","createClient","createConfig","client","postCreateOffboarding","__name","options","client","getShowContractAmendmentSchema","__name","options","client","postCreateEmployment2","__name","options","client","postCreateEstimation","__name","options","client","getIndexBenefitOffer","__name","options","client","putUpdateBenefitOffer","postCreateEstimationPdf","__name","options","client","postCreateContractAmendment","__name","options","client","getShowFormCountry","__name","options","client","getIndexCountry","__name","options","client","getShowSchema","__name","options","client","getShowEmployment","__name","options","client","patchUpdateEmployment2","getShowRegionField","__name","options","client","postAutomatableContractAmendment","__name","options","client","getIndexCompanyCurrency","__name","options","client","postInviteEmploymentInvitation","__name","options","client","getIndexTimeoff","__name","options","client"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/flows/ContractAmendment/hooks.ts"],"sourcesContent":["import {\n CreateContractAmendmentParams,\n EmploymentShowResponse,\n getShowContractAmendmentSchema,\n postAutomatableContractAmendment,\n postCreateContractAmendment,\n} from '@/src/client';\n\nimport {\n convertToCents,\n parseJSFToValidate,\n} from '@/src/components/form/utils';\nimport { mutationToPromise } from '@/src/lib/mutations';\n\nimport { Client } from '@hey-api/client-fetch';\nimport { createHeadlessForm, modify } from '@remoteoss/json-schema-form';\nimport { useMutation, useQuery } from '@tanstack/react-query';\nimport { ContractAmendmentParams } from './types';\n\nimport { useEmploymentQuery } from '@/src/common/hooks';\nimport { useClient } from '@/src/context';\nimport { FieldValues } from 'react-hook-form';\nimport { useStepState } from '../useStepState';\nimport { buildInitialValues, STEPS } from './utils';\n\ntype ContractAmendmentSchemaParams = {\n countryCode: string;\n employment: EmploymentShowResponse | undefined;\n fieldValues: FieldValues | undefined;\n options?: ContractAmendmentParams['options'];\n};\n\nconst useContractAmendmentSchemaQuery = ({\n countryCode,\n employment,\n fieldValues,\n options,\n}: ContractAmendmentSchemaParams) => {\n const { client } = useClient();\n const jsonSchemaQueryParam = options?.jsonSchemaVersion?.contract_amendments\n ? {\n json_schema_version: options.jsonSchemaVersion.contract_amendments,\n }\n : {};\n return useQuery({\n queryKey: ['contract-amendment-schema'],\n retry: false,\n queryFn: async () => {\n const response = await getShowContractAmendmentSchema({\n client: client as Client,\n headers: {\n Authorization: ``,\n },\n query: {\n employment_id: employment?.data?.employment?.id as string,\n country_code: countryCode,\n ...jsonSchemaQueryParam,\n },\n });\n\n // If response status is 404 or other error, throw an error to trigger isError\n if (response.error || !response.data) {\n throw new Error('Failed to fetch contract amendment schema');\n }\n\n return response;\n },\n enabled: Boolean(employment),\n select: ({ data }) => {\n let jsfSchema = data?.data || {};\n\n if (options && options.jsfModify) {\n const { schema } = modify(jsfSchema, options.jsfModify);\n jsfSchema = schema;\n }\n\n const copyFieldValues = {\n ...fieldValues,\n annual_gross_salary: fieldValues?.annual_gross_salary\n ? convertToCents(fieldValues?.annual_gross_salary)\n : undefined,\n };\n\n const hasFieldValues = Object.keys(copyFieldValues).length > 0;\n\n const result = createHeadlessForm(jsfSchema, {\n initialValues: hasFieldValues\n ? copyFieldValues\n : buildInitialValues(employment),\n });\n return result;\n },\n });\n};\n\nconst useCreateContractAmendmentMutation = () => {\n const { client } = useClient();\n return useMutation({\n mutationFn: (payload: CreateContractAmendmentParams) => {\n return postCreateContractAmendment({\n client: client as Client,\n headers: {\n Authorization: ``,\n },\n body: payload,\n });\n },\n });\n};\n\nconst useAutomatableContractAmendmentMutation = () => {\n const { client } = useClient();\n return useMutation({\n mutationFn: (payload: CreateContractAmendmentParams) => {\n return postAutomatableContractAmendment({\n client: client as Client,\n headers: {\n Authorization: ``,\n },\n body: payload,\n });\n },\n });\n};\n\nexport const useContractAmendment = ({\n employmentId,\n countryCode,\n options,\n}: ContractAmendmentParams) => {\n const { fieldValues, setFieldValues, stepState, nextStep, previousStep } =\n useStepState<keyof typeof STEPS>(STEPS);\n\n const {\n data: employment,\n isLoading: isLoadingEmployment,\n isError: isErrorEmployment,\n error: errorEmployment,\n } = useEmploymentQuery({\n employmentId,\n });\n\n const {\n data: contractAmendmentHeadlessForm,\n isLoading: isLoadingContractAmendments,\n isError: isErrorContractAmendmentSchema,\n error: errorContractAmendmentSchema,\n } = useContractAmendmentSchemaQuery({\n employment,\n countryCode,\n // In case the user is navigating back to the form step, we need to\n // pass the previous field values, so that the schema can be\n // generated with the correct values.\n fieldValues: {\n ...stepState.values?.[stepState.currentStep.name as keyof typeof STEPS], // Restore values for the current step\n ...fieldValues,\n },\n options,\n });\n\n const initialValues = buildInitialValues(\n employment,\n contractAmendmentHeadlessForm?.fields,\n );\n\n const createContractAmendmentMutation = useCreateContractAmendmentMutation();\n const automatableContractAmendmentMutation =\n useAutomatableContractAmendmentMutation();\n\n async function onSubmit(values: FieldValues) {\n const parsedValues = parseJSFToValidate(\n values,\n contractAmendmentHeadlessForm?.fields || [],\n {\n isPartialValidation: false,\n },\n );\n\n const payload = {\n employment_id: employment?.data.employment?.id as string,\n amendment_contract_id: employment?.data.employment\n ?.active_contract_id as string,\n contract_amendment: {\n ...parsedValues,\n },\n };\n\n switch (stepState.currentStep.name) {\n case STEPS.form.name: {\n const { mutateAsync } = mutationToPromise(\n automatableContractAmendmentMutation,\n );\n\n const automatableContractAmendment = await mutateAsync(payload);\n\n nextStep();\n\n return automatableContractAmendment;\n }\n case STEPS.confirmation_form.name: {\n const { mutateAsync } = mutationToPromise(\n createContractAmendmentMutation,\n );\n\n return mutateAsync(payload);\n }\n\n default:\n throw new Error('Invalid step state');\n }\n }\n\n function handleValidation(values: FieldValues) {\n if (contractAmendmentHeadlessForm) {\n const parsedValues = parseJSFToValidate(\n values,\n contractAmendmentHeadlessForm?.fields,\n );\n\n return contractAmendmentHeadlessForm?.handleValidation(parsedValues);\n }\n return null;\n }\n\n function back() {\n previousStep();\n }\n\n return {\n /**\n * Current step state containing the current step and total number of steps\n */\n stepState,\n /**\n * Array of form fields from the contract amendment schema\n */\n fields: contractAmendmentHeadlessForm?.fields || [],\n /**\n * Loading state indicating if either employment or contract amendment data is being fetched\n */\n isLoading: isLoadingEmployment || isLoadingContractAmendments,\n /**\n * Error state indicating if there was an error fetching either employment or contract amendment data\n */\n isError: isErrorEmployment || isErrorContractAmendmentSchema,\n /**\n * Error object containing details about any errors that occurred during data fetching\n */\n error: errorEmployment || errorContractAmendmentSchema,\n /**\n * Loading state indicating if a contract amendment mutation is in progress\n */\n isSubmitting:\n automatableContractAmendmentMutation.isPending ||\n createContractAmendmentMutation.isPending,\n /**\n * Initial form values built from employment data and contract amendment fields\n */\n initialValues,\n /**\n * Current form field values\n */\n values: fieldValues,\n /**\n * Function to validate form values against the contract amendment schema\n * @param values - Form values to validate\n * @returns Validation result or null if no schema is available\n */\n handleValidation,\n /**\n * Function to update the current form field values\n * @param values - New form values to set\n */\n checkFieldUpdates: setFieldValues,\n /**\n * Function to handle form submission\n * @param values - Form values to submit\n * @returns Promise resolving to the mutation result\n */\n onSubmit,\n /**\n * Function to handle going back to the previous step\n * @returns {void}\n */\n back,\n };\n};\n"],"mappings":"uVAeA,OAAS,sBAAAA,EAAoB,UAAAC,MAAc,8BAC3C,OAAS,eAAAC,EAAa,YAAAC,MAAgB,wBAgBtC,IAAMC,EAAkCC,EAAA,CAAC,CACvC,YAAAC,EACA,WAAAC,EACA,YAAAC,EACA,QAAAC,CACF,IAAqC,CACnC,GAAM,CAAE,OAAAC,CAAO,EAAIC,EAAU,EACvBC,EAAuBH,GAAS,mBAAmB,oBACrD,CACE,oBAAqBA,EAAQ,kBAAkB,mBACjD,EACA,CAAC,EACL,OAAOI,EAAS,CACd,SAAU,CAAC,2BAA2B,EACtC,MAAO,GACP,QAASR,EAAA,SAAY,CACnB,IAAMS,EAAW,MAAMC,EAA+B,CACpD,OAAQL,EACR,QAAS,CACP,cAAe,EACjB,EACA,MAAO,CACL,cAAeH,GAAY,MAAM,YAAY,GAC7C,aAAcD,EACd,GAAGM,CACL,CACF,CAAC,EAGD,GAAIE,EAAS,OAAS,CAACA,EAAS,KAC9B,MAAM,IAAI,MAAM,2CAA2C,EAG7D,OAAOA,CACT,EAnBS,WAoBT,QAAS,EAAQP,EACjB,OAAQF,EAAA,CAAC,CAAE,KAAAW,CAAK,IAAM,CACpB,IAAIC,EAAYD,GAAM,MAAQ,CAAC,EAE/B,GAAIP,GAAWA,EAAQ,UAAW,CAChC,GAAM,CAAE,OAAAS,CAAO,EAAIC,EAAOF,EAAWR,EAAQ,SAAS,EACtDQ,EAAYC,CACd,CAEA,IAAME,EAAkB,CACtB,GAAGZ,EACH,oBAAqBA,GAAa,oBAC9Ba,EAAeb,GAAa,mBAAmB,EAC/C,MACN,EAEMc,EAAiB,OAAO,KAAKF,CAAe,EAAE,OAAS,EAO7D,OALeG,EAAmBN,EAAW,CAC3C,cAAeK,EACXF,EACAI,EAAmBjB,CAAU,CACnC,CAAC,CAEH,EAvBQ,SAwBV,CAAC,CACH,EA7DwC,mCA+DlCkB,EAAqCpB,EAAA,IAAM,CAC/C,GAAM,CAAE,OAAAK,CAAO,EAAIC,EAAU,EAC7B,OAAOe,EAAY,CACjB,WAAYrB,EAACsB,GACJC,EAA4B,CACjC,OAAQlB,EACR,QAAS,CACP,cAAe,EACjB,EACA,KAAMiB,CACR,CAAC,EAPS,aASd,CAAC,CACH,EAb2C,sCAerCE,EAA0CxB,EAAA,IAAM,CACpD,GAAM,CAAE,OAAAK,CAAO,EAAIC,EAAU,EAC7B,OAAOe,EAAY,CACjB,WAAYrB,EAACsB,GACJG,EAAiC,CACtC,OAAQpB,EACR,QAAS,CACP,cAAe,EACjB,EACA,KAAMiB,CACR,CAAC,EAPS,aASd,CAAC,CACH,EAbgD,2CAenCI,GAAuB1B,EAAA,CAAC,CACnC,aAAA2B,EACA,YAAA1B,EACA,QAAAG,CACF,IAA+B,CAC7B,GAAM,CAAE,YAAAD,EAAa,eAAAyB,EAAgB,UAAAC,EAAW,SAAAC,EAAU,aAAAC,CAAa,EACrEC,EAAiCC,CAAK,EAElC,CACJ,KAAM/B,EACN,UAAWgC,EACX,QAASC,EACT,MAAOC,CACT,EAAIC,EAAmB,CACrB,aAAAV,CACF,CAAC,EAEK,CACJ,KAAMW,EACN,UAAWC,EACX,QAASC,EACT,MAAOC,CACT,EAAI1C,EAAgC,CAClC,WAAAG,EACA,YAAAD,EAIA,YAAa,CACX,GAAG4B,EAAU,SAASA,EAAU,YAAY,IAA0B,EACtE,GAAG1B,CACL,EACA,QAAAC,CACF,CAAC,EAEKsC,EAAgBvB,EACpBjB,EACAoC,GAA+B,MACjC,EAEMK,EAAkCvB,EAAmC,EACrEwB,EACJpB,EAAwC,EAE1C,eAAeqB,EAASC,EAAqB,CAC3C,IAAMC,EAAeC,EACnBF,EACAR,GAA+B,QAAU,CAAC,EAC1C,CACE,oBAAqB,EACvB,CACF,EAEMhB,EAAU,CACd,cAAepB,GAAY,KAAK,YAAY,GAC5C,sBAAuBA,GAAY,KAAK,YACpC,mBACJ,mBAAoB,CAClB,GAAG6C,CACL,CACF,EAEA,OAAQlB,EAAU,YAAY,KAAM,CAClC,KAAKI,EAAM,KAAK,KAAM,CACpB,GAAM,CAAE,YAAAgB,CAAY,EAAIC,EACtBN,CACF,EAEMO,EAA+B,MAAMF,EAAY3B,CAAO,EAE9D,OAAAQ,EAAS,EAEFqB,CACT,CACA,KAAKlB,EAAM,kBAAkB,KAAM,CACjC,GAAM,CAAE,YAAAgB,CAAY,EAAIC,EACtBP,CACF,EAEA,OAAOM,EAAY3B,CAAO,CAC5B,CAEA,QACE,MAAM,IAAI,MAAM,oBAAoB,CACxC,CACF,CAzCetB,EAAA6C,EAAA,YA2Cf,SAASO,EAAiBN,EAAqB,CAC7C,GAAIR,EAA+B,CACjC,IAAMS,EAAeC,EACnBF,EACAR,GAA+B,MACjC,EAEA,OAAOA,GAA+B,iBAAiBS,CAAY,CACrE,CACA,OAAO,IACT,CAVS/C,EAAAoD,EAAA,oBAYT,SAASC,GAAO,CACdtB,EAAa,CACf,CAFS,OAAA/B,EAAAqD,EAAA,QAIF,CAIL,UAAAxB,EAIA,OAAQS,GAA+B,QAAU,CAAC,EAIlD,UAAWJ,GAAuBK,EAIlC,QAASJ,GAAqBK,EAI9B,MAAOJ,GAAmBK,EAI1B,aACEG,EAAqC,WACrCD,EAAgC,UAIlC,cAAAD,EAIA,OAAQvC,EAMR,iBAAAiD,EAKA,kBAAmBxB,EAMnB,SAAAiB,EAKA,KAAAQ,CACF,CACF,EAjKoC","names":["createHeadlessForm","modify","useMutation","useQuery","useContractAmendmentSchemaQuery","__name","countryCode","employment","fieldValues","options","client","useClient","jsonSchemaQueryParam","useQuery","response","getShowContractAmendmentSchema","data","jsfSchema","schema","modify","copyFieldValues","convertToCents","hasFieldValues","createHeadlessForm","buildInitialValues","useCreateContractAmendmentMutation","useMutation","payload","postCreateContractAmendment","useAutomatableContractAmendmentMutation","postAutomatableContractAmendment","useContractAmendment","employmentId","setFieldValues","stepState","nextStep","previousStep","useStepState","STEPS","isLoadingEmployment","isErrorEmployment","errorEmployment","useEmploymentQuery","contractAmendmentHeadlessForm","isLoadingContractAmendments","isErrorContractAmendmentSchema","errorContractAmendmentSchema","initialValues","createContractAmendmentMutation","automatableContractAmendmentMutation","onSubmit","values","parsedValues","parseJSFToValidate","mutateAsync","mutationToPromise","automatableContractAmendment","handleValidation","back"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/flows/Termination/utils.ts"],"sourcesContent":["import { Step } from '@/src/flows/useStepState';\n\nexport type StepTerminationKeys =\n | 'employee_communication'\n | 'termination_details'\n | 'paid_time_off'\n | 'additional_information';\n\nexport const STEPS: Record<StepTerminationKeys, Step> = {\n employee_communication: { index: 0, name: 'employee_communication' },\n termination_details: { index: 1, name: 'termination_details' },\n paid_time_off: { index: 2, name: 'paid_time_off' },\n additional_information: { index: 3, name: 'additional_information' },\n} as const;\n"],"mappings":"AAQO,IAAMA,EAA2C,CACtD,uBAAwB,CAAE,MAAO,EAAG,KAAM,wBAAyB,EACnE,oBAAqB,CAAE,MAAO,EAAG,KAAM,qBAAsB,EAC7D,cAAe,CAAE,MAAO,EAAG,KAAM,eAAgB,EACjD,uBAAwB,CAAE,MAAO,EAAG,KAAM,wBAAyB,CACrE","names":["STEPS"]}
@@ -1,2 +0,0 @@
1
- import{a as ge}from"./chunk-GFBF55NR.js";import{b as F}from"./chunk-WRDKLT4N.js";import{a as me,b as J}from"./chunk-56BNVYTD.js";import{b as y,c as N,d as h,e as w,f as R,g as k}from"./chunk-IDSJI7KQ.js";import{a as s}from"./chunk-5ETXP2QF.js";import{a as r}from"./chunk-AYDF3IFZ.js";import U,{Fragment as At}from"react";import*as j from"react";import*as q from"@radix-ui/react-checkbox";import{Check as Ze}from"lucide-react";var te=j.forwardRef(({className:e,...t},o)=>j.createElement(q.Root,{ref:o,className:s("peer h-4 w-4 shrink-0 rounded-sm border border-input ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-checkbox data-[state=checked]:text-primary",e),...t},j.createElement(q.Indicator,{className:s("flex items-center justify-center text-current")},j.createElement(Ze,{className:"h-4 w-4"}))));te.displayName=q.Root.displayName;import*as D from"react";import{useFormContext as et}from"react-hook-form";function Fe({name:e,defaultValue:t,description:o,label:a,onChange:i,multiple:d,options:p,component:x,...C}){let{components:n}=F(),{control:c}=et(),u=r((m,l,g)=>{let _=g.value?[...g.value]:[];l?_.includes(m)||g.onChange([..._,m]):g.onChange(_.filter(z=>z!==m))},"handleCheckboxChange");return D.createElement(y,{control:c,name:e,defaultValue:t,render:({field:m,fieldState:l})=>{let g=x||n?.checkbox;if(g){let _={name:e,description:o,label:a,defaultValue:t,multiple:d,options:p,...C};return D.createElement(g,{field:{...m,onChange:r(z=>{if(d){let{checked:ee,value:I}=z.target;u(I,ee,m),i?.(ee);return}m.onChange(z),i?.(z)},"onChange")},fieldState:l,fieldData:_})}return D.createElement(N,{"data-field":e,className:s(`RemoteFlows__CheckBoxField__Item__${e}`)},D.createElement(w,null,D.createElement(D.Fragment,null,p&&d?D.createElement(h,null,a):null,p&&d?p.map(_=>D.createElement("div",{key:_.value,className:"flex space-x-2"},D.createElement(te,{id:_.value,onCheckedChange:z=>{u(_.value,z===!0,m),i?.(z,_.value)},checked:m.value?.includes(_.value),className:"RemoteFlows__CheckBox__Input"}),D.createElement(h,{htmlFor:_.value,className:"mb-0 RemoteFlows__CheckBox__Label"},_.label))):D.createElement("div",{className:"flex space-x-2"},D.createElement(te,{id:e,onCheckedChange:_=>{m.onChange(_),i?.(_)},checked:m.value,className:"RemoteFlows__CheckBox__Input"}),D.createElement(h,{htmlFor:e,className:"mb-0 RemoteFlows__CheckBox__Label"},a)))),o&&D.createElement(R,null,o),l.error&&D.createElement(k,null))}})}r(Fe,"CheckBoxField");import{CalendarIcon as at}from"lucide-react";import*as P from"react";import{useFormContext as nt}from"react-hook-form";import*as oe from"react";import{ChevronLeft as tt,ChevronRight as ot}from"lucide-react";import{DayPicker as rt}from"react-day-picker";function ve({className:e,classNames:t,showOutsideDays:o=!0,...a}){return oe.createElement(rt,{showOutsideDays:o,className:s("p-3",e),classNames:{months:"flex flex-col sm:flex-row gap-2",month:"flex flex-col gap-4",caption:"flex justify-center pt-1 relative items-center w-full",caption_label:"text-sm font-medium",nav:"flex items-center gap-1",nav_button:s(me({variant:"outline"}),"size-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-x-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:s("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-range-end)]:rounded-r-md",a.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:s(me({variant:"ghost"}),"size-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start aria-selected:bg-primary aria-selected:text-primary-foreground",day_range_end:"day-range-end aria-selected:bg-primary aria-selected:text-primary-foreground",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:r(({className:i,...d})=>oe.createElement(tt,{className:s("size-4",i),...d}),"IconLeft"),IconRight:r(({className:i,...d})=>oe.createElement(ot,{className:s("size-4",i),...d}),"IconRight")},...a})}r(ve,"Calendar");import*as Y from"react";import*as B from"@radix-ui/react-popover";function re({...e}){return Y.createElement(B.Root,{"data-slot":"popover",...e})}r(re,"Popover");function ae({...e}){return Y.createElement(B.Trigger,{"data-slot":"popover-trigger",...e})}r(ae,"PopoverTrigger");function ne({className:e,align:t="center",sideOffset:o=4,...a}){return Y.createElement(B.Portal,null,Y.createElement(B.Content,{"data-slot":"popover-content",align:t,sideOffset:o,className:s("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...a}))}r(ne,"PopoverContent");import{PopoverClose as it}from"@radix-ui/react-popover";import{format as xe}from"date-fns";function Ce({description:e,label:t,name:o,minDate:a,onChange:i,component:d,...p}){let{components:x}=F(),{control:C}=nt();return P.createElement(y,{control:C,name:o,render:({field:n,fieldState:c})=>{let u=d||x?.date;if(u){let m={description:e,label:t,name:o,minDate:a,onChange:i,...p};return P.createElement(u,{field:{...n,onChange:r(l=>{n.onChange(l),i?.(l)},"onChange")},fieldState:c,fieldData:m})}return P.createElement(N,{"data-field":o,className:`flex flex-col RemoteFlows__DatePickerField__Item__${o}`},P.createElement(h,{className:"RemoteFlows__DatePickerField__Label"},t),P.createElement(re,null,P.createElement(ae,{asChild:!0},P.createElement(w,null,P.createElement("div",null,P.createElement(J,{type:"button",variant:"outline",className:s("w-full pl-3 text-left font-normal",!n.value&&"text-muted-foreground"),"data-testid":`date-picker-button-${o}`},n.value&&P.createElement(P.Fragment,null,xe(n.value,"yyyy-MM-dd")),P.createElement(at,{className:"ml-auto h-4 w-4 opacity-50"}))))),P.createElement(ne,{className:"w-auto p-0 RemoteFlows__DatepickerField__PopoverContent",align:"start"},P.createElement(ve,{mode:"single",className:"RemoteFlows__DatepickerField__Calendar",selected:n.value?new Date(n.value):void 0,onSelect:m=>{n.onChange(m?xe(m,"yyyy-MM-dd"):null),i?.(m)},defaultMonth:a?new Date(a):void 0,components:{DayContent:r(m=>P.createElement(it,null,m.date.getDate()),"DayContent")},...a&&{disabled:r(m=>m<new Date(a),"disabled")}}))),e?P.createElement(R,null,e):null,c.error&&P.createElement(k,{className:"RemoteFlows__DatePickerField__Error"}))}})}r(Ce,"DatePickerField");import*as $ from"react";function ye({label:e,name:t,fields:o,description:a,components:i}){return $.createElement("fieldset",{className:s("border-1 border-input p-4 rounded-xl",`RemoteFlows__FieldSetField__${t}`)},$.createElement("legend",{className:"text-sm font-semibold px-2"},e),a?$.createElement("div",{className:"mb-5 RemoteFlows__FieldSetField__Description",dangerouslySetInnerHTML:{__html:a}}):null,$.createElement("div",{className:"grid gap-4"},o.map(d=>{let p=ie[d.type];return d.isVisible===!1||d.deprecated?null:$.createElement(p,{...d,key:d.name,name:`${t}.${d.name}`,component:i?.[d.type]})})))}r(ye,"FieldSetField");import*as E from"react";import{useFormContext as ct}from"react-hook-form";import L,{useState as st,useRef as lt}from"react";import{Upload as mt,X as dt}from"lucide-react";function _e({onChange:e,className:t,multiple:o}){let[a,i]=st([]),d=lt(null),p=r(n=>{n.preventDefault(),d.current?.click()},"handleClick"),x=r(n=>{if(n.target.files&&n.target.files.length>0){let c=Array.from(n.target.files);i(c),e(n)}},"handleChange"),C=r(n=>{i(c=>c.filter(u=>u!==n))},"onRemoveFile");return L.createElement("div",{className:s("flex flex-col items-start gap-4",t)},L.createElement("input",{type:"file",ref:d,onChange:x,className:"hidden","aria-label":"File upload",multiple:o}),L.createElement(J,{type:"button",onClick:p,className:"gap-2"},L.createElement(mt,{className:"h-4 w-4"}),"Choose File"),a.length===0&&L.createElement("div",{className:"text-sm"},o?L.createElement("span",{className:"font-medium"},"No files selected. You can select multiple files"):L.createElement("span",{className:"font-medium"},"No file selected.")),a.length>0&&a.map((n,c)=>L.createElement("div",{key:c,className:"text-sm flex items-center gap-2"},"Selected file: ",L.createElement("span",{className:"font-medium"},n.name)," (",Math.round(n.size/1024)," KB)",L.createElement(J,{variant:"ghost",onClick:()=>C(n)},L.createElement(dt,null)))))}r(_e,"FileUploader");var pt=r(e=>new Promise((t,o)=>{let a=new FileReader;a.readAsDataURL(e),a.onload=()=>t(a.result),a.onerror=i=>o(i)}),"toBase64"),he=r(async e=>{let t=e.target.files?Array.from(e.target.files):[];return await Promise.all(t.map(async a=>{let i=await pt(a);return{name:a.name,content:i.split(",")[1]}}))},"convertFilesToBase64");function Pe({name:e,description:t,label:o,multiple:a,onChange:i,component:d,...p}){let{components:x}=F(),{control:C}=ct();return E.createElement(y,{control:C,name:e,render:({field:n,fieldState:c})=>{let u=d||x?.file;if(u){let m={name:e,description:t,label:o,multiple:a,...p};return E.createElement(u,{field:{...n,value:null,onChange:r(async l=>{let g=await he(l);n.onChange(g),i?.(g)},"onChange")},fieldState:c,fieldData:m})}return E.createElement(N,{"data-field":e,className:`RemoteFlows__FileUpload__Item__${e}`},E.createElement(h,{className:"RemoteFlows__FileUpload__Label"},o),E.createElement(w,null,E.createElement(_e,{onChange:async m=>{let l=await he(m);n.onChange(l),i?.(l)},multiple:a,className:s("RemoteFlows__FileUpload__Input")})),t&&E.createElement("div",{className:"flex items-center justify-between"},E.createElement(R,{className:"RemoteFlows__FileUpload__Description"},t)),c.error&&E.createElement(k,{className:"RemoteFlows__FileUpload__Error"}))}})}r(Pe,"FileUploadField");import de from"react";import{useFormContext as ft}from"react-hook-form";import*as G from"react";import{useFormContext as ut}from"react-hook-form";import*as be from"react";function Se({className:e,type:t,...o}){return be.createElement("input",{type:t,"data-slot":"input",className:s("shadow-xs border-input file:text-foreground placeholder:text-muted-foreground flex h-9 w-full min-w-0 rounded-xl border bg-transparent px-4 py-7 text-sm transition-[color] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-focused","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...o})}r(Se,"Input");function W({name:e,description:t,label:o,type:a,onChange:i,component:d,...p}){let{components:x}=F(),{control:C}=ut();return G.createElement(y,{control:C,name:e,render:({field:n,fieldState:c})=>{let u=d||x?.text;if(u){let m={name:e,description:t,label:o,type:a,onChange:i,...p};return G.createElement(u,{field:{...n,onChange:r(l=>{n.onChange(l),i?.(l)},"onChange")},fieldState:c,fieldData:m})}return G.createElement(N,{"data-field":e,className:`RemoteFlows__TextField__Item__${e}`},G.createElement(h,{className:"RemoteFlows__TextField__Label"},o),G.createElement(w,null,G.createElement(Se,{...n,value:n.value??"",onChange:m=>{n.onChange(m),i?.(m)},className:"RemoteFlows__TextField__Input",placeholder:o})),t&&G.createElement(R,{className:"RemoteFlows__TextField__Description"},t),c.error&&G.createElement(k,{className:"RemoteFlows__TextField__Error"}))}})}r(W,"TextField");function ce(e){let{components:t}=F(),{control:o}=ft(),a=e.component||t?.number;return a?de.createElement(y,{control:o,name:e.name,render:({field:i,fieldState:d})=>de.createElement(a,{field:{...i,onChange:r(p=>{i.onChange(p),e.onChange?.(p)},"onChange")},fieldState:d,fieldData:e})}):de.createElement(W,{...e,type:"text",inputMode:"decimal",pattern:"^[0-9.]*$"})}r(ce,"NumberField");import*as X from"@radix-ui/react-radio-group";import{CircleIcon as gt}from"lucide-react";import*as Q from"react";function Ne({className:e,...t}){return Q.createElement(X.Root,{"data-slot":"radio-group",className:s("grid gap-3",e),...t})}r(Ne,"RadioGroup");function we({className:e,...t}){return Q.createElement(X.Item,{"data-slot":"radio-group-item",className:s("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t},Q.createElement(X.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center"},Q.createElement(gt,{className:"fill-radio absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})))}r(we,"RadioGroupItem");import*as b from"react";import{useFormContext as Ft}from"react-hook-form";function Re({name:e,defaultValue:t,description:o,label:a,options:i,onChange:d,component:p,...x}){let{components:C}=F(),{control:n}=Ft();return b.createElement(y,{control:n,name:e,defaultValue:t,render:({field:c,fieldState:u})=>{let m=p||C?.radio;if(m){let l={name:e,defaultValue:t,description:o,label:a,options:i,...x};return b.createElement(m,{field:{...c,onChange:r(g=>{c.onChange(g),d?.(g)},"onChange")},fieldState:u,fieldData:l})}return b.createElement(N,{className:s("space-y-3",`RemoteFlows__RadioGroupField__Item__${e}`),"data-field":e},b.createElement(h,null,a),b.createElement(w,null,b.createElement(Ne,{"aria-label":a||e,onValueChange:l=>{c.onChange(l),d?.(l)},value:c.value,className:"flex flex-col space-y-3"},i?.map(l=>b.createElement(b.Fragment,null,b.createElement(N,{key:l.value,"data-field":e,className:"flex items-start space-x-3 space-y-0 gap-0 RemoteFlows__RadioField__Item"},b.createElement(w,null,b.createElement(we,{value:l.value,className:"RemoteFlows__RadioField__Input"})),b.createElement("div",null,b.createElement(h,{className:"font-normal mb-0 RemoteFlows__RadioField__Label"},l.label),l.description&&b.createElement(R,{className:"mt-2"},l.description))))))),o&&b.createElement(R,null,o),u.error&&b.createElement(k,null))}})}r(Re,"RadioGroupField");import*as T from"react";import*as v from"react";import*as f from"@radix-ui/react-select";import{CheckIcon as vt,ChevronDownIcon as De,ChevronUpIcon as xt}from"lucide-react";function ke({...e}){return v.createElement(f.Root,{"data-slot":"select",...e})}r(ke,"Select");function Te({...e}){return v.createElement(f.Group,{"data-slot":"select-group",...e})}r(Te,"SelectGroup");function Ie({...e}){return v.createElement(f.Value,{"data-slot":"select-value",...e})}r(Ie,"SelectValue");function Le({className:e,children:t,...o}){return v.createElement(f.Trigger,{"data-slot":"select-trigger",className:s("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex w-full items-center justify-between rounded-xl border bg-transparent px-4 py-7 text-sm whitespace-nowrap transition-[color] outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","focus-visible:border-focused",e),...o},t,v.createElement(f.Icon,{asChild:!0,className:"absolute right-4"},v.createElement(De,{className:"size-4"})))}r(Le,"SelectTrigger");function Me({className:e,children:t,position:o="popper",...a}){return v.createElement(f.Portal,null,v.createElement(f.Content,{"data-slot":"select-content",className:s("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-xl border",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:o,...a},v.createElement(Ct,null),v.createElement(f.Viewport,{className:s(o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1")},t),v.createElement(yt,null)))}r(Me,"SelectContent");function ze({className:e,children:t,...o}){return v.createElement(f.Item,{"data-slot":"select-item",className:s("focus:bg-accent focus:text-accent-foreground min-h-11 justify-between [&_svg:not([class*='text-'])]:text-muted-foreground flex w-full cursor-default items-center gap-2 py-2 px-4 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...o},v.createElement(f.ItemText,null,t),v.createElement("span",{className:"flex size-3.5 items-center justify-center"},v.createElement(f.ItemIndicator,null,v.createElement(vt,{className:"size-4"}))))}r(ze,"SelectItem");function Ct({className:e,...t}){return v.createElement(f.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:s("flex cursor-default items-center justify-center py-1",e),...t},v.createElement(xt,{className:"size-4"}))}r(Ct,"SelectScrollUpButton");function yt({className:e,...t}){return v.createElement(f.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:s("flex cursor-default items-center justify-center py-1",e),...t},v.createElement(De,{className:"size-4"}))}r(yt,"SelectScrollDownButton");import{useFormContext as _t}from"react-hook-form";function Ee({label:e,name:t,options:o,defaultValue:a,description:i,onChange:d,component:p,...x}){let{control:C}=_t(),{components:n}=F();return T.createElement(y,{defaultValue:a,control:C,name:t,render:({field:c,fieldState:u})=>{let m=p||n?.select;if(m){let l={label:e,name:t,options:o,defaultValue:a,description:i,onChange:d,...x};return T.createElement(m,{field:{...c,onChange:r(g=>{c.onChange(g),d?.(g)},"onChange")},fieldState:u,fieldData:l})}return T.createElement(N,{"data-field":t,className:`RemoteFlows__SelectField__Item__${t}`},T.createElement(h,{className:"RemoteFlows__SelectField__Label"},e),T.createElement(w,null,T.createElement("div",{className:"relative"},T.createElement(ke,{value:c.value||"",onValueChange:l=>{c.onChange(l),d?.(l)}},T.createElement(Le,{className:"RemoteFlows__SelectField__Trigger","aria-invalid":!!u.error,"aria-label":e},T.createElement("span",{className:"absolute"},T.createElement(Ie,{placeholder:e}))),T.createElement(Me,{className:"RemoteFlows__SelectField__Content"},T.createElement(Te,{className:"RemoteFlows__SelectField__Group"},o.map(l=>T.createElement(ze,{key:l.value,value:l.value,className:"RemoteFlows__SelectField__SelectItem"},l.label))))))),i&&T.createElement(R,null,i),u.error&&T.createElement(k,null))}})}r(Ee,"SelectField");import O,{useState as Rt}from"react";import{useFormContext as Dt}from"react-hook-form";import S,{Fragment as Pt,useState as bt}from"react";import{Check as St,ChevronDownIcon as Nt,X as wt}from"lucide-react";import*as H from"react";import{Command as K}from"cmdk";import{SearchIcon as Ir}from"lucide-react";import*as ht from"react";import*as V from"@radix-ui/react-dialog";import{XIcon as _r}from"lucide-react";function Ae({className:e,...t}){return H.createElement(K,{"data-slot":"command",className:s("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}r(Ae,"Command");function Be({className:e,...t}){return H.createElement(K.List,{"data-slot":"command-list",className:s("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}r(Be,"CommandList");function Ge({...e}){return H.createElement(K.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}r(Ge,"CommandEmpty");function Ve({className:e,...t}){return H.createElement(K.Group,{"data-slot":"command-group",className:s("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}r(Ve,"CommandGroup");function Oe({className:e,...t}){return H.createElement(K.Separator,{"data-slot":"command-separator",className:s("bg-border -mx-1 h-px",e),...t})}r(Oe,"CommandSeparator");function Ue({className:e,...t}){return H.createElement(K.Item,{"data-slot":"command-item",className:s("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}r(Ue,"CommandItem");function Je({options:e,selected:t,onChange:o,placeholder:a,...i}){let[d,p]=bt(!1),x=r(n=>{o(t.filter(c=>c.value!==n.value))},"handleUnselect"),C=e.reduce((n,c)=>{let u=c.category||"Uncategorized";return n[u]||(n[u]=[]),n[u].push(c),n},{});return S.createElement(re,{open:d,onOpenChange:p,...i},S.createElement(ae,null,S.createElement(J,{variant:"outline",role:"combobox","aria-expanded":d,className:"w-full justify-between font-normal",type:"button"},S.createElement("div",{className:"flex gap-1 flex-wrap overflow-x-auto max-h-[2.5rem] items-center"},t.length>0?t.map(n=>S.createElement(ge,{key:n.label,variant:"secondary",className:"mr-1 mb-1"},n.label,S.createElement("div",{role:"button",tabIndex:0,"aria-label":`remove ${n.label}`,className:"ml-1 ring-offset-background rounded-full outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 cursor-pointer",onKeyDown:c=>{c.key==="Enter"&&x(n)},onMouseDown:c=>{c.preventDefault(),c.stopPropagation()},onClick:()=>x(n)},S.createElement(wt,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})))):S.createElement("span",{className:"text-foreground"},a)),S.createElement(Nt,{className:"size-4"}))),S.createElement(ne,{align:"start",className:"w-full p-0"},S.createElement(Ae,null,S.createElement(Be,null,S.createElement(Ge,null,"No item found."),Object.entries(C).map(([n,c],u)=>S.createElement(Pt,{key:n},u>0&&S.createElement(Oe,null),S.createElement(Ve,{heading:n},c.map(m=>{let l=t.some(g=>g.value===m.value);return S.createElement(Ue,{key:m.label,onSelect:()=>{o(l?t.filter(g=>g.value!==m.value):[...t,m])}},S.createElement(St,{className:s("mr-2 h-4 w-4",l?"opacity-100":"opacity-0")}),m.label)}))))))))}r(Je,"MultiSelect");function He({label:e,name:t,options:o,defaultValue:a,description:i,onChange:d,$meta:p,component:x,...C}){let{control:n}=Dt(),{components:c}=F(),[u,m]=Rt([]);return O.createElement(y,{defaultValue:a,control:n,name:t,render:({field:l,fieldState:g})=>{let _=x||c?.countries;if(_){let I={label:e,name:t,options:o,defaultValue:a,description:i,onChange:d,$meta:p,...C};return O.createElement(_,{field:{...l,onChange:r(A=>{l.onChange(A),d?.(A)},"onChange")},fieldState:g,fieldData:I})}let z=[...Object.entries(p?.regions||{}).map(([I,A])=>({value:A,label:I,category:"Regions"})),...Object.entries(p?.subregions||{}).map(([I,A])=>({value:A,label:I,category:"Subregions"})),...o.map(I=>({...I,value:I.value,label:I.label,category:"Countries"}))],ee=r(I=>{let A=I.map(({value:Qe})=>Qe);l.onChange(A),d?.(A),m(I)},"handleChange");return O.createElement(N,{"data-field":t,className:`RemoteFlows__CountryField__Item__${t}`},O.createElement(h,{className:"RemoteFlows__CountryField__Label"},e),O.createElement(w,null,O.createElement(Je,{options:z,selected:u,onChange:ee,...C})),i&&O.createElement(R,null,i),g.error&&O.createElement(k,null))}})}r(He,"CountryField");import*as M from"react";import{useFormContext as kt}from"react-hook-form";import*as se from"react";var pe=se.forwardRef(({className:e,...t},o)=>se.createElement("textarea",{className:s("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:o,...t}));pe.displayName="Textarea";function je({name:e,description:t,label:o,onChange:a,maxLength:i,component:d,...p}){let{components:x}=F(),{control:C}=kt();return M.createElement(y,{control:C,name:e,render:({field:n,fieldState:c})=>{let u=d||x?.textarea;if(u){let l={name:e,description:t,label:o,maxLength:i,...p};return M.createElement(u,{field:{...n,onChange:r(g=>{n.onChange(g),a?.(g)},"onChange")},fieldState:c,fieldData:l})}let m=n.value?.length??0;return M.createElement(N,{"data-field":e,className:`RemoteFlows__TextArea__Item__${e}`},M.createElement(h,{className:"RemoteFlows__TextArea__Label"},o),M.createElement(w,null,M.createElement(pe,{...n,value:n.value??"",onChange:l=>{n.onChange(l),a?.(l)},className:s(c.error&&"border-red-500 focus-visible:ring-red-500","RemoteFlows__TextArea__Input"),placeholder:o})),(t||i)&&M.createElement("div",{className:"flex items-center justify-between"},t&&M.createElement(R,{className:"RemoteFlows__TextArea__Description"},t),i&&M.createElement("span",{className:"text-sm ml-auto RemoteFlows__TextArea__MaxLength"},m,"/",i)),c.error&&M.createElement(k,{className:"RemoteFlows__TextArea__Error"}))}})}r(je,"TextAreaField");import ue from"react";import{useFormContext as Tt}from"react-hook-form";function $e(e){let{components:t}=F(),{control:o}=Tt(),a=e.component||t?.email;return a?ue.createElement(y,{control:o,name:e.name,render:({field:i,fieldState:d})=>ue.createElement(a,{field:{...i,onChange:r(p=>{i.onChange(p),e.onChange?.(p)},"onChange")},fieldState:d,fieldData:e})}):ue.createElement(W,{...e,type:"email"})}r($e,"EmailField");var ie={checkbox:Fe,text:W,email:$e,money:ce,select:Ee,radio:Re,number:ce,file:Pe,fieldset:ye,date:Ce,textarea:je,countries:He};import{cva as It}from"class-variance-authority";import*as le from"react";var Lt=It("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",warning:"bg-card bg-warning border-warning-border [&>svg]:text-current"}},defaultVariants:{variant:"default"}});function We({className:e,variant:t,...o}){return le.createElement("div",{"data-slot":"alert",role:"alert",className:s(Lt({variant:t}),e),...o})}r(We,"Alert");function Xe({className:e,...t}){return le.createElement("div",{"data-slot":"alert-title",className:s("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",e),...t})}r(Xe,"AlertTitle");function Ke({className:e,...t}){return le.createElement("div",{"data-slot":"alert-description",className:s("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",e),...t})}r(Ke,"AlertDescription");import{AlertCircle as Mt}from"lucide-react";import Z from"react";function qe({title:e,description:t,severity:o}){let{components:a}=F();if(a?.statement){let i=a?.statement;return Z.createElement(i,{data:{title:e,description:t,severity:o}})}return Z.createElement(We,{variant:"warning"},Z.createElement(Mt,{className:"h-4 w-4"}),e&&Z.createElement(Xe,null,e),Z.createElement(Ke,null,t))}r(qe,"Statement");import fe,{useEffect as zt}from"react";import{useFormContext as Et}from"react-hook-form";function Ye({name:e,value:t,description:o,statement:a}){let{setValue:i}=Et();return zt(()=>{i(e,t)},[]),fe.createElement("div",null,fe.createElement("p",{className:`text-sm RemoteFlows__ForcedValue__Title__${e}`,dangerouslySetInnerHTML:{__html:a.title}}),fe.createElement("p",{className:`text-xs RemoteFlows__ForcedValue__Description__${e}`,dangerouslySetInnerHTML:{__html:a.description||o}}))}r(Ye,"ForcedValueField");function Bt(e){return e.const!==void 0&&e.const===e.default&&e.inputType!=="checkbox"&&e.inputType!=="hidden"}r(Bt,"checkFieldHasForcedValue");var Wa=r(({fields:e,components:t})=>!e||e.length===0?null:U.createElement(U.Fragment,null,e.map(o=>{if(o.isVisible===!1||o.deprecated)return null;if(Bt(o))return U.createElement(Ye,{key:o.name,name:o.name,description:o.description,value:o.const,statement:o.statement});let a=ie[o.inputType];return o.inputType==="fieldset"?U.createElement(a,{...o,components:t}):a?U.createElement(At,{key:o.name},U.createElement(a,{...o,component:t&&t[o.inputType]}),o.statement?U.createElement(qe,{...o.statement}):null):U.createElement("p",{className:"error"},"Field type ",o.inputType," not supported")})),"JSONSchemaFormFields");export{Wa as a};
2
- //# sourceMappingURL=chunk-HDQGO453.js.map