candidhealth 0.12.0 → 0.13.0

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 (361) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +33 -28
  3. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  4. package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  5. package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +6 -2
  6. package/api/resources/commons/types/RegionNational.d.ts +5 -0
  7. package/api/resources/commons/types/RegionNational.js +5 -0
  8. package/api/resources/commons/types/RegionStates.d.ts +7 -0
  9. package/api/resources/commons/types/RegionStates.js +5 -0
  10. package/api/resources/commons/types/Regions.d.ts +13 -0
  11. package/api/resources/commons/types/Regions.js +5 -0
  12. package/api/resources/commons/types/index.d.ts +3 -0
  13. package/api/resources/commons/types/index.js +3 -0
  14. package/api/resources/contracts/client/Client.d.ts +18 -0
  15. package/api/resources/contracts/client/Client.js +18 -0
  16. package/api/resources/contracts/client/index.d.ts +1 -0
  17. package/api/resources/contracts/client/index.js +2 -0
  18. package/api/resources/contracts/index.d.ts +2 -1
  19. package/api/resources/contracts/index.js +2 -1
  20. package/api/resources/contracts/resources/index.d.ts +1 -0
  21. package/api/resources/contracts/resources/index.js +27 -0
  22. package/api/resources/contracts/resources/v2/client/Client.d.ts +25 -0
  23. package/api/resources/contracts/resources/v2/client/Client.js +274 -0
  24. package/api/resources/contracts/resources/v2/client/create.d.ts +22 -0
  25. package/api/resources/contracts/resources/v2/client/create.js +47 -0
  26. package/api/resources/contracts/resources/v2/client/delete.d.ts +22 -0
  27. package/api/resources/contracts/resources/v2/client/delete.js +47 -0
  28. package/api/resources/contracts/resources/v2/client/get.d.ts +28 -0
  29. package/api/resources/contracts/resources/v2/client/get.js +58 -0
  30. package/api/resources/contracts/resources/v2/client/getMulti.d.ts +22 -0
  31. package/api/resources/contracts/resources/v2/client/getMulti.js +47 -0
  32. package/api/resources/contracts/resources/v2/client/index.d.ts +6 -0
  33. package/api/resources/contracts/resources/v2/client/index.js +35 -0
  34. package/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +17 -0
  35. package/api/resources/contracts/resources/v2/client/requests/ContractCreate.js +5 -0
  36. package/api/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +28 -0
  37. package/api/resources/contracts/resources/v2/client/requests/ContractUpdate.js +5 -0
  38. package/api/resources/contracts/resources/v2/client/requests/GetMultiContractsRequest.d.ts +22 -0
  39. package/api/resources/contracts/resources/v2/client/requests/GetMultiContractsRequest.js +5 -0
  40. package/api/resources/contracts/resources/v2/client/requests/index.d.ts +3 -0
  41. package/api/resources/contracts/resources/v2/client/requests/index.js +2 -0
  42. package/api/resources/contracts/resources/v2/client/update.d.ts +28 -0
  43. package/api/resources/contracts/resources/v2/client/update.js +58 -0
  44. package/api/resources/contracts/resources/v2/index.d.ts +2 -0
  45. package/{dist/api/resources/contracts/types → api/resources/contracts/resources/v2}/index.js +2 -1
  46. package/api/resources/contracts/resources/v2/types/AuthorizedSignatory.d.ts +11 -0
  47. package/api/resources/contracts/resources/v2/types/AuthorizedSignatory.js +5 -0
  48. package/api/resources/contracts/resources/v2/types/AuthorizedSignatoryUpdate.d.ts +13 -0
  49. package/api/resources/contracts/resources/v2/types/AuthorizedSignatoryUpdate.js +5 -0
  50. package/api/resources/contracts/resources/v2/types/Contract.d.ts +13 -0
  51. package/api/resources/contracts/resources/v2/types/Contract.js +5 -0
  52. package/api/resources/contracts/resources/v2/types/ContractBase.d.ts +33 -0
  53. package/api/resources/contracts/resources/v2/types/ContractBase.js +5 -0
  54. package/api/resources/contracts/resources/v2/types/ContractId.d.ts +8 -0
  55. package/api/resources/contracts/resources/v2/types/ContractStatus.d.ts +22 -0
  56. package/api/resources/contracts/resources/v2/types/ContractStatus.js +11 -0
  57. package/api/resources/contracts/resources/v2/types/ContractWithProviders.d.ts +8 -0
  58. package/api/resources/contracts/resources/v2/types/ContractWithProviders.js +5 -0
  59. package/api/resources/contracts/resources/v2/types/ContractingProviderId.d.ts +8 -0
  60. package/api/resources/contracts/resources/v2/types/ContractingProviderId.js +10 -0
  61. package/api/resources/contracts/resources/v2/types/ContractsPage.d.ts +7 -0
  62. package/api/resources/contracts/resources/v2/types/ContractsPage.js +5 -0
  63. package/api/resources/contracts/resources/v2/types/DateUpdate.d.ts +14 -0
  64. package/api/resources/contracts/resources/v2/types/DateUpdate.js +5 -0
  65. package/api/resources/contracts/resources/v2/types/InsuranceTypes.d.ts +17 -0
  66. package/api/resources/contracts/resources/v2/types/InsuranceTypes.js +5 -0
  67. package/api/resources/contracts/resources/v2/types/RegionsUpdate.d.ts +14 -0
  68. package/api/resources/contracts/resources/v2/types/RegionsUpdate.js +5 -0
  69. package/api/resources/contracts/resources/v2/types/RenderingProviderid.d.ts +8 -0
  70. package/api/resources/contracts/resources/v2/types/RenderingProviderid.js +10 -0
  71. package/api/resources/contracts/resources/v2/types/index.d.ts +13 -0
  72. package/api/resources/contracts/resources/v2/types/index.js +29 -0
  73. package/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  74. package/api/resources/encounters/resources/v4/client/Client.js +4 -4
  75. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  76. package/api/resources/expectedNetworkStatus/resources/v1/types/ExpectedNetworkStatusResponse.d.ts +1 -1
  77. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  78. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  79. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  80. package/api/resources/index.d.ts +1 -2
  81. package/api/resources/index.js +2 -3
  82. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  83. package/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +1 -1
  84. package/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +1 -2
  85. package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +1 -1
  86. package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -1
  87. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +4 -4
  88. package/api/resources/organizationProviders/resources/v2/types/EmploymentStatus.d.ts +8 -0
  89. package/api/resources/organizationProviders/resources/v2/types/EmploymentStatus.js +10 -0
  90. package/api/resources/organizationProviders/resources/v2/types/OrganizationProvider.d.ts +14 -0
  91. package/api/resources/organizationProviders/resources/v2/types/OrganizationProvider.js +5 -0
  92. package/api/resources/organizationProviders/resources/v2/types/OrganizationProviderBase.d.ts +38 -0
  93. package/api/resources/organizationProviders/resources/v2/types/OrganizationProviderBase.js +5 -0
  94. package/api/resources/organizationProviders/resources/v2/types/index.d.ts +3 -0
  95. package/api/resources/organizationProviders/resources/v2/types/index.js +3 -0
  96. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  97. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  98. package/api/resources/patientPayments/resources/v4/client/Client.js +4 -4
  99. package/api/resources/patientRefunds/resources/v1/client/Client.js +4 -4
  100. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  101. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  102. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  103. package/dist/Client.d.ts +3 -0
  104. package/dist/Client.js +33 -28
  105. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  106. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  107. package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +6 -2
  108. package/dist/api/resources/commons/types/RegionNational.d.ts +5 -0
  109. package/dist/api/resources/commons/types/RegionNational.js +5 -0
  110. package/dist/api/resources/commons/types/RegionStates.d.ts +7 -0
  111. package/dist/api/resources/commons/types/RegionStates.js +5 -0
  112. package/dist/api/resources/commons/types/Regions.d.ts +13 -0
  113. package/dist/api/resources/commons/types/Regions.js +5 -0
  114. package/dist/api/resources/commons/types/index.d.ts +3 -0
  115. package/dist/api/resources/commons/types/index.js +3 -0
  116. package/dist/api/resources/contracts/client/Client.d.ts +18 -0
  117. package/dist/api/resources/contracts/client/Client.js +18 -0
  118. package/dist/api/resources/contracts/client/index.d.ts +1 -0
  119. package/dist/api/resources/contracts/client/index.js +2 -0
  120. package/dist/api/resources/contracts/index.d.ts +2 -1
  121. package/dist/api/resources/contracts/index.js +2 -1
  122. package/dist/api/resources/contracts/resources/index.d.ts +1 -0
  123. package/dist/api/resources/contracts/resources/index.js +27 -0
  124. package/dist/api/resources/contracts/resources/v2/client/Client.d.ts +25 -0
  125. package/dist/api/resources/contracts/resources/v2/client/Client.js +274 -0
  126. package/dist/api/resources/contracts/resources/v2/client/create.d.ts +22 -0
  127. package/dist/api/resources/contracts/resources/v2/client/create.js +47 -0
  128. package/dist/api/resources/contracts/resources/v2/client/delete.d.ts +22 -0
  129. package/dist/api/resources/contracts/resources/v2/client/delete.js +47 -0
  130. package/dist/api/resources/contracts/resources/v2/client/get.d.ts +28 -0
  131. package/dist/api/resources/contracts/resources/v2/client/get.js +58 -0
  132. package/dist/api/resources/contracts/resources/v2/client/getMulti.d.ts +22 -0
  133. package/dist/api/resources/contracts/resources/v2/client/getMulti.js +47 -0
  134. package/dist/api/resources/contracts/resources/v2/client/index.d.ts +6 -0
  135. package/dist/api/resources/contracts/resources/v2/client/index.js +35 -0
  136. package/dist/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +17 -0
  137. package/dist/api/resources/contracts/resources/v2/client/requests/ContractCreate.js +5 -0
  138. package/dist/api/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +28 -0
  139. package/dist/api/resources/contracts/resources/v2/client/requests/ContractUpdate.js +5 -0
  140. package/dist/api/resources/contracts/resources/v2/client/requests/GetMultiContractsRequest.d.ts +22 -0
  141. package/dist/api/resources/contracts/resources/v2/client/requests/GetMultiContractsRequest.js +5 -0
  142. package/dist/api/resources/contracts/resources/v2/client/requests/index.d.ts +3 -0
  143. package/dist/api/resources/contracts/resources/v2/client/requests/index.js +2 -0
  144. package/dist/api/resources/contracts/resources/v2/client/update.d.ts +28 -0
  145. package/dist/api/resources/contracts/resources/v2/client/update.js +58 -0
  146. package/dist/api/resources/contracts/resources/v2/index.d.ts +2 -0
  147. package/{serialization/resources/contracts/types → dist/api/resources/contracts/resources/v2}/index.js +2 -1
  148. package/dist/api/resources/contracts/resources/v2/types/AuthorizedSignatory.d.ts +11 -0
  149. package/dist/api/resources/contracts/resources/v2/types/AuthorizedSignatory.js +5 -0
  150. package/dist/api/resources/contracts/resources/v2/types/AuthorizedSignatoryUpdate.d.ts +13 -0
  151. package/dist/api/resources/contracts/resources/v2/types/AuthorizedSignatoryUpdate.js +5 -0
  152. package/dist/api/resources/contracts/resources/v2/types/Contract.d.ts +13 -0
  153. package/dist/api/resources/contracts/resources/v2/types/Contract.js +5 -0
  154. package/dist/api/resources/contracts/resources/v2/types/ContractBase.d.ts +33 -0
  155. package/dist/api/resources/contracts/resources/v2/types/ContractBase.js +5 -0
  156. package/dist/api/resources/contracts/resources/v2/types/ContractId.d.ts +8 -0
  157. package/dist/api/resources/contracts/resources/v2/types/ContractStatus.d.ts +22 -0
  158. package/dist/api/resources/contracts/resources/v2/types/ContractStatus.js +11 -0
  159. package/dist/api/resources/contracts/resources/v2/types/ContractWithProviders.d.ts +8 -0
  160. package/dist/api/resources/contracts/resources/v2/types/ContractWithProviders.js +5 -0
  161. package/dist/api/resources/contracts/resources/v2/types/ContractingProviderId.d.ts +8 -0
  162. package/dist/api/resources/contracts/resources/v2/types/ContractingProviderId.js +10 -0
  163. package/dist/api/resources/contracts/resources/v2/types/ContractsPage.d.ts +7 -0
  164. package/dist/api/resources/contracts/resources/v2/types/ContractsPage.js +5 -0
  165. package/dist/api/resources/contracts/resources/v2/types/DateUpdate.d.ts +14 -0
  166. package/dist/api/resources/contracts/resources/v2/types/DateUpdate.js +5 -0
  167. package/dist/api/resources/contracts/resources/v2/types/InsuranceTypes.d.ts +17 -0
  168. package/dist/api/resources/contracts/resources/v2/types/InsuranceTypes.js +5 -0
  169. package/dist/api/resources/contracts/resources/v2/types/RegionsUpdate.d.ts +14 -0
  170. package/dist/api/resources/contracts/resources/v2/types/RegionsUpdate.js +5 -0
  171. package/dist/api/resources/contracts/resources/v2/types/RenderingProviderid.d.ts +8 -0
  172. package/dist/api/resources/contracts/resources/v2/types/RenderingProviderid.js +10 -0
  173. package/dist/api/resources/contracts/resources/v2/types/index.d.ts +13 -0
  174. package/dist/api/resources/contracts/resources/v2/types/index.js +29 -0
  175. package/dist/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  176. package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
  177. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  178. package/dist/api/resources/expectedNetworkStatus/resources/v1/types/ExpectedNetworkStatusResponse.d.ts +1 -1
  179. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  180. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  181. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  182. package/dist/api/resources/index.d.ts +1 -2
  183. package/dist/api/resources/index.js +2 -3
  184. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  185. package/dist/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +1 -1
  186. package/dist/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +1 -2
  187. package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +1 -1
  188. package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -1
  189. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +4 -4
  190. package/dist/api/resources/organizationProviders/resources/v2/types/EmploymentStatus.d.ts +8 -0
  191. package/dist/api/resources/organizationProviders/resources/v2/types/EmploymentStatus.js +10 -0
  192. package/dist/api/resources/organizationProviders/resources/v2/types/OrganizationProvider.d.ts +14 -0
  193. package/dist/api/resources/organizationProviders/resources/v2/types/OrganizationProvider.js +5 -0
  194. package/dist/api/resources/organizationProviders/resources/v2/types/OrganizationProviderBase.d.ts +38 -0
  195. package/dist/api/resources/organizationProviders/resources/v2/types/OrganizationProviderBase.js +5 -0
  196. package/dist/api/resources/organizationProviders/resources/v2/types/index.d.ts +3 -0
  197. package/dist/api/resources/organizationProviders/resources/v2/types/index.js +3 -0
  198. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  199. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  200. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +4 -4
  201. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +4 -4
  202. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  203. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  204. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  205. package/dist/serialization/resources/{contracts/types/ContractId.d.ts → commons/types/RegionNational.d.ts} +4 -3
  206. package/dist/serialization/resources/commons/types/RegionNational.js +31 -0
  207. package/dist/serialization/resources/commons/types/RegionStates.d.ts +12 -0
  208. package/dist/serialization/resources/commons/types/RegionStates.js +33 -0
  209. package/dist/serialization/resources/commons/types/Regions.d.ts +16 -0
  210. package/dist/serialization/resources/commons/types/Regions.js +39 -0
  211. package/dist/serialization/resources/commons/types/index.d.ts +3 -0
  212. package/dist/serialization/resources/commons/types/index.js +3 -0
  213. package/dist/serialization/resources/contracts/index.d.ts +1 -1
  214. package/dist/serialization/resources/contracts/index.js +1 -1
  215. package/dist/serialization/resources/contracts/resources/index.d.ts +1 -0
  216. package/dist/serialization/resources/contracts/resources/index.js +27 -0
  217. package/dist/serialization/resources/contracts/resources/v2/client/get.d.ts +14 -0
  218. package/dist/serialization/resources/contracts/resources/v2/client/get.js +46 -0
  219. package/dist/serialization/resources/contracts/resources/v2/client/index.d.ts +3 -0
  220. package/dist/serialization/resources/contracts/resources/v2/client/index.js +32 -0
  221. package/dist/serialization/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +14 -0
  222. package/dist/serialization/resources/contracts/resources/v2/client/requests/ContractCreate.js +37 -0
  223. package/dist/serialization/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +20 -0
  224. package/dist/serialization/resources/contracts/resources/v2/client/requests/ContractUpdate.js +47 -0
  225. package/dist/serialization/resources/contracts/resources/v2/client/requests/index.d.ts +2 -0
  226. package/dist/serialization/resources/contracts/resources/v2/client/requests/index.js +7 -0
  227. package/dist/serialization/resources/contracts/resources/v2/client/update.d.ts +14 -0
  228. package/dist/serialization/resources/contracts/resources/v2/client/update.js +46 -0
  229. package/dist/serialization/resources/contracts/resources/v2/index.d.ts +2 -0
  230. package/dist/serialization/resources/contracts/{types → resources/v2}/index.js +2 -1
  231. package/dist/serialization/resources/contracts/resources/v2/types/AuthorizedSignatory.d.ts +17 -0
  232. package/dist/serialization/resources/contracts/resources/v2/types/AuthorizedSignatory.js +38 -0
  233. package/dist/serialization/resources/contracts/resources/v2/types/AuthorizedSignatoryUpdate.d.ts +16 -0
  234. package/dist/serialization/resources/contracts/resources/v2/types/AuthorizedSignatoryUpdate.js +39 -0
  235. package/dist/serialization/resources/contracts/resources/v2/types/Contract.d.ts +15 -0
  236. package/dist/serialization/resources/contracts/resources/v2/types/Contract.js +38 -0
  237. package/dist/serialization/resources/contracts/resources/v2/types/ContractBase.d.ts +19 -0
  238. package/dist/serialization/resources/contracts/resources/v2/types/ContractBase.js +42 -0
  239. package/dist/serialization/resources/contracts/resources/v2/types/ContractId.d.ts +10 -0
  240. package/dist/serialization/resources/contracts/{types → resources/v2/types}/ContractId.js +3 -3
  241. package/dist/serialization/resources/contracts/resources/v2/types/ContractStatus.d.ts +10 -0
  242. package/dist/serialization/resources/contracts/resources/v2/types/ContractStatus.js +31 -0
  243. package/dist/serialization/resources/contracts/resources/v2/types/ContractWithProviders.d.ts +12 -0
  244. package/dist/serialization/resources/contracts/resources/v2/types/ContractWithProviders.js +35 -0
  245. package/dist/serialization/resources/contracts/resources/v2/types/ContractingProviderId.d.ts +10 -0
  246. package/dist/serialization/resources/contracts/resources/v2/types/ContractingProviderId.js +35 -0
  247. package/dist/serialization/resources/contracts/resources/v2/types/ContractsPage.d.ts +12 -0
  248. package/dist/serialization/resources/contracts/resources/v2/types/ContractsPage.js +35 -0
  249. package/dist/serialization/resources/contracts/resources/v2/types/DateUpdate.d.ts +17 -0
  250. package/dist/serialization/resources/contracts/resources/v2/types/DateUpdate.js +41 -0
  251. package/dist/serialization/resources/contracts/resources/v2/types/InsuranceTypes.d.ts +20 -0
  252. package/dist/serialization/resources/contracts/resources/v2/types/InsuranceTypes.js +42 -0
  253. package/dist/serialization/resources/contracts/resources/v2/types/RegionsUpdate.d.ts +17 -0
  254. package/dist/serialization/resources/contracts/resources/v2/types/RegionsUpdate.js +41 -0
  255. package/dist/serialization/resources/contracts/resources/v2/types/RenderingProviderid.d.ts +10 -0
  256. package/dist/serialization/resources/contracts/resources/v2/types/RenderingProviderid.js +35 -0
  257. package/dist/serialization/resources/contracts/resources/v2/types/index.d.ts +13 -0
  258. package/dist/serialization/resources/contracts/resources/v2/types/index.js +29 -0
  259. package/dist/serialization/resources/expectedNetworkStatus/resources/v1/types/ExpectedNetworkStatusResponse.d.ts +1 -1
  260. package/dist/serialization/resources/expectedNetworkStatus/resources/v1/types/ExpectedNetworkStatusResponse.js +1 -1
  261. package/dist/serialization/resources/index.d.ts +1 -2
  262. package/dist/serialization/resources/index.js +2 -3
  263. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +1 -1
  264. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.js +1 -1
  265. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +1 -2
  266. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.js +1 -2
  267. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +1 -1
  268. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.js +1 -1
  269. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -1
  270. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +1 -1
  271. package/dist/serialization/resources/organizationProviders/resources/v2/types/EmploymentStatus.d.ts +10 -0
  272. package/dist/serialization/resources/organizationProviders/resources/v2/types/EmploymentStatus.js +31 -0
  273. package/dist/serialization/resources/organizationProviders/resources/v2/types/OrganizationProvider.d.ts +15 -0
  274. package/dist/serialization/resources/organizationProviders/resources/v2/types/OrganizationProvider.js +38 -0
  275. package/dist/serialization/resources/organizationProviders/resources/v2/types/OrganizationProviderBase.d.ts +24 -0
  276. package/dist/serialization/resources/organizationProviders/resources/v2/types/OrganizationProviderBase.js +47 -0
  277. package/dist/serialization/resources/organizationProviders/resources/v2/types/index.d.ts +3 -0
  278. package/dist/serialization/resources/organizationProviders/resources/v2/types/index.js +3 -0
  279. package/package.json +1 -1
  280. package/serialization/resources/{contracts/types/ContractId.d.ts → commons/types/RegionNational.d.ts} +4 -3
  281. package/serialization/resources/commons/types/RegionNational.js +31 -0
  282. package/serialization/resources/commons/types/RegionStates.d.ts +12 -0
  283. package/serialization/resources/commons/types/RegionStates.js +33 -0
  284. package/serialization/resources/commons/types/Regions.d.ts +16 -0
  285. package/serialization/resources/commons/types/Regions.js +39 -0
  286. package/serialization/resources/commons/types/index.d.ts +3 -0
  287. package/serialization/resources/commons/types/index.js +3 -0
  288. package/serialization/resources/contracts/index.d.ts +1 -1
  289. package/serialization/resources/contracts/index.js +1 -1
  290. package/serialization/resources/contracts/resources/index.d.ts +1 -0
  291. package/serialization/resources/contracts/resources/index.js +27 -0
  292. package/serialization/resources/contracts/resources/v2/client/get.d.ts +14 -0
  293. package/serialization/resources/contracts/resources/v2/client/get.js +46 -0
  294. package/serialization/resources/contracts/resources/v2/client/index.d.ts +3 -0
  295. package/serialization/resources/contracts/resources/v2/client/index.js +32 -0
  296. package/serialization/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +14 -0
  297. package/serialization/resources/contracts/resources/v2/client/requests/ContractCreate.js +37 -0
  298. package/serialization/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +20 -0
  299. package/serialization/resources/contracts/resources/v2/client/requests/ContractUpdate.js +47 -0
  300. package/serialization/resources/contracts/resources/v2/client/requests/index.d.ts +2 -0
  301. package/serialization/resources/contracts/resources/v2/client/requests/index.js +7 -0
  302. package/serialization/resources/contracts/resources/v2/client/update.d.ts +14 -0
  303. package/serialization/resources/contracts/resources/v2/client/update.js +46 -0
  304. package/serialization/resources/contracts/resources/v2/index.d.ts +2 -0
  305. package/{api/resources/contracts/types → serialization/resources/contracts/resources/v2}/index.js +2 -1
  306. package/serialization/resources/contracts/resources/v2/types/AuthorizedSignatory.d.ts +17 -0
  307. package/serialization/resources/contracts/resources/v2/types/AuthorizedSignatory.js +38 -0
  308. package/serialization/resources/contracts/resources/v2/types/AuthorizedSignatoryUpdate.d.ts +16 -0
  309. package/serialization/resources/contracts/resources/v2/types/AuthorizedSignatoryUpdate.js +39 -0
  310. package/serialization/resources/contracts/resources/v2/types/Contract.d.ts +15 -0
  311. package/serialization/resources/contracts/resources/v2/types/Contract.js +38 -0
  312. package/serialization/resources/contracts/resources/v2/types/ContractBase.d.ts +19 -0
  313. package/serialization/resources/contracts/resources/v2/types/ContractBase.js +42 -0
  314. package/serialization/resources/contracts/resources/v2/types/ContractId.d.ts +10 -0
  315. package/serialization/resources/contracts/{types → resources/v2/types}/ContractId.js +3 -3
  316. package/serialization/resources/contracts/resources/v2/types/ContractStatus.d.ts +10 -0
  317. package/serialization/resources/contracts/resources/v2/types/ContractStatus.js +31 -0
  318. package/serialization/resources/contracts/resources/v2/types/ContractWithProviders.d.ts +12 -0
  319. package/serialization/resources/contracts/resources/v2/types/ContractWithProviders.js +35 -0
  320. package/serialization/resources/contracts/resources/v2/types/ContractingProviderId.d.ts +10 -0
  321. package/serialization/resources/contracts/resources/v2/types/ContractingProviderId.js +35 -0
  322. package/serialization/resources/contracts/resources/v2/types/ContractsPage.d.ts +12 -0
  323. package/serialization/resources/contracts/resources/v2/types/ContractsPage.js +35 -0
  324. package/serialization/resources/contracts/resources/v2/types/DateUpdate.d.ts +17 -0
  325. package/serialization/resources/contracts/resources/v2/types/DateUpdate.js +41 -0
  326. package/serialization/resources/contracts/resources/v2/types/InsuranceTypes.d.ts +20 -0
  327. package/serialization/resources/contracts/resources/v2/types/InsuranceTypes.js +42 -0
  328. package/serialization/resources/contracts/resources/v2/types/RegionsUpdate.d.ts +17 -0
  329. package/serialization/resources/contracts/resources/v2/types/RegionsUpdate.js +41 -0
  330. package/serialization/resources/contracts/resources/v2/types/RenderingProviderid.d.ts +10 -0
  331. package/serialization/resources/contracts/resources/v2/types/RenderingProviderid.js +35 -0
  332. package/serialization/resources/contracts/resources/v2/types/index.d.ts +13 -0
  333. package/serialization/resources/contracts/resources/v2/types/index.js +29 -0
  334. package/serialization/resources/expectedNetworkStatus/resources/v1/types/ExpectedNetworkStatusResponse.d.ts +1 -1
  335. package/serialization/resources/expectedNetworkStatus/resources/v1/types/ExpectedNetworkStatusResponse.js +1 -1
  336. package/serialization/resources/index.d.ts +1 -2
  337. package/serialization/resources/index.js +2 -3
  338. package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +1 -1
  339. package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.js +1 -1
  340. package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +1 -2
  341. package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.js +1 -2
  342. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +1 -1
  343. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.js +1 -1
  344. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -1
  345. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +1 -1
  346. package/serialization/resources/organizationProviders/resources/v2/types/EmploymentStatus.d.ts +10 -0
  347. package/serialization/resources/organizationProviders/resources/v2/types/EmploymentStatus.js +31 -0
  348. package/serialization/resources/organizationProviders/resources/v2/types/OrganizationProvider.d.ts +15 -0
  349. package/serialization/resources/organizationProviders/resources/v2/types/OrganizationProvider.js +38 -0
  350. package/serialization/resources/organizationProviders/resources/v2/types/OrganizationProviderBase.d.ts +24 -0
  351. package/serialization/resources/organizationProviders/resources/v2/types/OrganizationProviderBase.js +47 -0
  352. package/serialization/resources/organizationProviders/resources/v2/types/index.d.ts +3 -0
  353. package/serialization/resources/organizationProviders/resources/v2/types/index.js +3 -0
  354. package/api/resources/contracts/types/ContractId.d.ts +0 -8
  355. package/api/resources/contracts/types/index.d.ts +0 -1
  356. package/dist/api/resources/contracts/types/ContractId.d.ts +0 -8
  357. package/dist/api/resources/contracts/types/index.d.ts +0 -1
  358. package/dist/serialization/resources/contracts/types/index.d.ts +0 -1
  359. package/serialization/resources/contracts/types/index.d.ts +0 -1
  360. /package/api/resources/contracts/{types → resources/v2/types}/ContractId.js +0 -0
  361. /package/dist/api/resources/contracts/{types → resources/v2/types}/ContractId.js +0 -0
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../..";
5
+ import * as CandidApi from "../../../../../../../api";
6
+ import * as core from "../../../../../../../core";
7
+ export declare const ContractUpdate: core.serialization.Schema<serializers.contracts.v2.ContractUpdate.Raw, CandidApi.contracts.v2.ContractUpdate>;
8
+ export declare namespace ContractUpdate {
9
+ interface Raw {
10
+ rendering_provider_ids?: serializers.contracts.v2.RenderingProviderid.Raw[] | null;
11
+ effective_date?: serializers.Date_.Raw | null;
12
+ expiration_date?: serializers.contracts.v2.DateUpdate.Raw | null;
13
+ regions?: serializers.contracts.v2.RegionsUpdate.Raw | null;
14
+ contract_status?: serializers.contracts.v2.ContractStatus.Raw | null;
15
+ authorized_signatory?: serializers.contracts.v2.AuthorizedSignatoryUpdate.Raw | null;
16
+ commercial_insurance_types?: serializers.contracts.v2.InsuranceTypes.Raw | null;
17
+ medicare_insurance_types?: serializers.contracts.v2.InsuranceTypes.Raw | null;
18
+ medicaid_insurance_types?: serializers.contracts.v2.InsuranceTypes.Raw | null;
19
+ }
20
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ContractUpdate = void 0;
30
+ const core = __importStar(require("../../../../../../../core"));
31
+ exports.ContractUpdate = core.serialization.object({
32
+ renderingProviderIds: core.serialization.property("rendering_provider_ids", core.serialization
33
+ .set(core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).contracts.v2.RenderingProviderid))
34
+ .optional()),
35
+ effectiveDate: core.serialization.property("effective_date", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).Date_).optional()),
36
+ expirationDate: core.serialization.property("expiration_date", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).contracts.v2.DateUpdate).optional()),
37
+ regions: core.serialization
38
+ .lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).contracts.v2.RegionsUpdate)
39
+ .optional(),
40
+ contractStatus: core.serialization.property("contract_status", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).contracts.v2.ContractStatus).optional()),
41
+ authorizedSignatory: core.serialization.property("authorized_signatory", core.serialization
42
+ .lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).contracts.v2.AuthorizedSignatoryUpdate)
43
+ .optional()),
44
+ commercialInsuranceTypes: core.serialization.property("commercial_insurance_types", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).contracts.v2.InsuranceTypes).optional()),
45
+ medicareInsuranceTypes: core.serialization.property("medicare_insurance_types", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).contracts.v2.InsuranceTypes).optional()),
46
+ medicaidInsuranceTypes: core.serialization.property("medicaid_insurance_types", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).contracts.v2.InsuranceTypes).optional()),
47
+ });
@@ -0,0 +1,2 @@
1
+ export { ContractCreate } from "./ContractCreate";
2
+ export { ContractUpdate } from "./ContractUpdate";
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContractUpdate = exports.ContractCreate = void 0;
4
+ var ContractCreate_1 = require("./ContractCreate");
5
+ Object.defineProperty(exports, "ContractCreate", { enumerable: true, get: function () { return ContractCreate_1.ContractCreate; } });
6
+ var ContractUpdate_1 = require("./ContractUpdate");
7
+ Object.defineProperty(exports, "ContractUpdate", { enumerable: true, get: function () { return ContractUpdate_1.ContractUpdate; } });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const Error: core.serialization.Schema<serializers.contracts.v2.update.Error.Raw, CandidApi.contracts.v2.update.Error>;
8
+ export declare namespace Error {
9
+ type Raw = Error.UnprocessableEntityError;
10
+ interface UnprocessableEntityError {
11
+ errorName: "UnprocessableEntityError";
12
+ content: serializers.UnprocessableEntityErrorMessage.Raw;
13
+ }
14
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Error = void 0;
30
+ const CandidApi = __importStar(require("../../../../../../api"));
31
+ const core = __importStar(require("../../../../../../core"));
32
+ exports.Error = core.serialization
33
+ .union("errorName", {
34
+ UnprocessableEntityError: core.serialization.object({
35
+ content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).UnprocessableEntityErrorMessage),
36
+ }),
37
+ })
38
+ .transform({
39
+ transform: (value) => {
40
+ switch (value.errorName) {
41
+ case "UnprocessableEntityError":
42
+ return CandidApi.contracts.v2.update.Error.unprocessableEntityError(value.content);
43
+ }
44
+ },
45
+ untransform: ({ _visit, ...value }) => value,
46
+ });
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./client";
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./ContractId"), exports);
17
+ __exportStar(require("./types"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const AuthorizedSignatory: core.serialization.ObjectSchema<serializers.contracts.v2.AuthorizedSignatory.Raw, CandidApi.contracts.v2.AuthorizedSignatory>;
8
+ export declare namespace AuthorizedSignatory {
9
+ interface Raw {
10
+ first_name?: string | null;
11
+ last_name?: string | null;
12
+ title?: string | null;
13
+ email?: string | null;
14
+ phone?: string | null;
15
+ fax?: string | null;
16
+ }
17
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.AuthorizedSignatory = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.AuthorizedSignatory = core.serialization.object({
32
+ firstName: core.serialization.property("first_name", core.serialization.string().optional()),
33
+ lastName: core.serialization.property("last_name", core.serialization.string().optional()),
34
+ title: core.serialization.string().optional(),
35
+ email: core.serialization.string().optional(),
36
+ phone: core.serialization.string().optional(),
37
+ fax: core.serialization.string().optional(),
38
+ });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const AuthorizedSignatoryUpdate: core.serialization.Schema<serializers.contracts.v2.AuthorizedSignatoryUpdate.Raw, CandidApi.contracts.v2.AuthorizedSignatoryUpdate>;
8
+ export declare namespace AuthorizedSignatoryUpdate {
9
+ type Raw = AuthorizedSignatoryUpdate.Set | AuthorizedSignatoryUpdate.Remove;
10
+ interface Set extends serializers.contracts.v2.AuthorizedSignatory.Raw {
11
+ type: "set";
12
+ }
13
+ interface Remove {
14
+ type: "remove";
15
+ }
16
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.AuthorizedSignatoryUpdate = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.AuthorizedSignatoryUpdate = core.serialization
32
+ .union("type", {
33
+ set: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).contracts.v2.AuthorizedSignatory),
34
+ remove: core.serialization.object({}),
35
+ })
36
+ .transform({
37
+ transform: (value) => value,
38
+ untransform: (value) => value,
39
+ });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const Contract: core.serialization.ObjectSchema<serializers.contracts.v2.Contract.Raw, CandidApi.contracts.v2.Contract>;
8
+ export declare namespace Contract {
9
+ interface Raw extends serializers.contracts.v2.ContractBase.Raw {
10
+ contract_id: serializers.contracts.v2.ContractId.Raw;
11
+ contracting_provider: serializers.organizationProviders.v2.OrganizationProvider.Raw;
12
+ provider_count: number;
13
+ payer?: serializers.payers.v3.Payer.Raw | null;
14
+ }
15
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Contract = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.Contract = core.serialization
32
+ .object({
33
+ contractId: core.serialization.property("contract_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).contracts.v2.ContractId)),
34
+ contractingProvider: core.serialization.property("contracting_provider", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).organizationProviders.v2.OrganizationProvider)),
35
+ providerCount: core.serialization.property("provider_count", core.serialization.number()),
36
+ payer: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).payers.v3.Payer).optional(),
37
+ })
38
+ .extend(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).contracts.v2.ContractBase));
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const ContractBase: core.serialization.ObjectSchema<serializers.contracts.v2.ContractBase.Raw, CandidApi.contracts.v2.ContractBase>;
8
+ export declare namespace ContractBase {
9
+ interface Raw {
10
+ effective_date: serializers.Date_.Raw;
11
+ expiration_date?: serializers.Date_.Raw | null;
12
+ regions: serializers.Regions.Raw;
13
+ contract_status?: serializers.contracts.v2.ContractStatus.Raw | null;
14
+ authorized_signatory?: serializers.contracts.v2.AuthorizedSignatory.Raw | null;
15
+ commercial_insurance_types: serializers.contracts.v2.InsuranceTypes.Raw;
16
+ medicare_insurance_types: serializers.contracts.v2.InsuranceTypes.Raw;
17
+ medicaid_insurance_types: serializers.contracts.v2.InsuranceTypes.Raw;
18
+ }
19
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ContractBase = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.ContractBase = core.serialization.object({
32
+ effectiveDate: core.serialization.property("effective_date", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).Date_)),
33
+ expirationDate: core.serialization.property("expiration_date", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).Date_).optional()),
34
+ regions: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).Regions),
35
+ contractStatus: core.serialization.property("contract_status", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).contracts.v2.ContractStatus).optional()),
36
+ authorizedSignatory: core.serialization.property("authorized_signatory", core.serialization
37
+ .lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).contracts.v2.AuthorizedSignatory)
38
+ .optional()),
39
+ commercialInsuranceTypes: core.serialization.property("commercial_insurance_types", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).contracts.v2.InsuranceTypes)),
40
+ medicareInsuranceTypes: core.serialization.property("medicare_insurance_types", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).contracts.v2.InsuranceTypes)),
41
+ medicaidInsuranceTypes: core.serialization.property("medicaid_insurance_types", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).contracts.v2.InsuranceTypes)),
42
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const ContractId: core.serialization.Schema<serializers.contracts.v2.ContractId.Raw, CandidApi.contracts.v2.ContractId>;
8
+ export declare namespace ContractId {
9
+ type Raw = string;
10
+ }
@@ -27,9 +27,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ContractId = void 0;
30
- const CandidApi = __importStar(require("../../../../api"));
31
- const core = __importStar(require("../../../../core"));
30
+ const CandidApi = __importStar(require("../../../../../../api"));
31
+ const core = __importStar(require("../../../../../../core"));
32
32
  exports.ContractId = core.serialization.string().transform({
33
- transform: CandidApi.ContractId,
33
+ transform: CandidApi.contracts.v2.ContractId,
34
34
  untransform: (value) => value,
35
35
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const ContractStatus: core.serialization.Schema<serializers.contracts.v2.ContractStatus.Raw, CandidApi.contracts.v2.ContractStatus>;
8
+ export declare namespace ContractStatus {
9
+ type Raw = "pending" | "effective" | "cancelled";
10
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ContractStatus = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.ContractStatus = core.serialization.enum_(["pending", "effective", "cancelled"]);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const ContractWithProviders: core.serialization.ObjectSchema<serializers.contracts.v2.ContractWithProviders.Raw, CandidApi.contracts.v2.ContractWithProviders>;
8
+ export declare namespace ContractWithProviders {
9
+ interface Raw extends serializers.contracts.v2.Contract.Raw {
10
+ rendering_provider_ids: string[];
11
+ }
12
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ContractWithProviders = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.ContractWithProviders = core.serialization
32
+ .object({
33
+ renderingProviderIds: core.serialization.property("rendering_provider_ids", core.serialization.set(core.serialization.string())),
34
+ })
35
+ .extend(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).contracts.v2.Contract));
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const ContractingProviderId: core.serialization.Schema<serializers.contracts.v2.ContractingProviderId.Raw, CandidApi.contracts.v2.ContractingProviderId>;
8
+ export declare namespace ContractingProviderId {
9
+ type Raw = string;
10
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ContractingProviderId = void 0;
30
+ const CandidApi = __importStar(require("../../../../../../api"));
31
+ const core = __importStar(require("../../../../../../core"));
32
+ exports.ContractingProviderId = core.serialization.string().transform({
33
+ transform: CandidApi.contracts.v2.ContractingProviderId,
34
+ untransform: (value) => value,
35
+ });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const ContractsPage: core.serialization.ObjectSchema<serializers.contracts.v2.ContractsPage.Raw, CandidApi.contracts.v2.ContractsPage>;
8
+ export declare namespace ContractsPage {
9
+ interface Raw extends serializers.ResourcePage.Raw {
10
+ items: serializers.contracts.v2.Contract.Raw[];
11
+ }
12
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ContractsPage = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.ContractsPage = core.serialization
32
+ .object({
33
+ items: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).contracts.v2.Contract)),
34
+ })
35
+ .extend(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).ResourcePage));
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const DateUpdate: core.serialization.Schema<serializers.contracts.v2.DateUpdate.Raw, CandidApi.contracts.v2.DateUpdate>;
8
+ export declare namespace DateUpdate {
9
+ type Raw = DateUpdate.Set | DateUpdate.Remove;
10
+ interface Set {
11
+ type: "set";
12
+ value: serializers.Date_.Raw;
13
+ }
14
+ interface Remove {
15
+ type: "remove";
16
+ }
17
+ }