candidhealth 0.3.0 → 0.4.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 (334) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/client/Client.js +1 -1
  3. package/api/resources/commons/types/DateRangeOptionalEnd.d.ts +8 -0
  4. package/api/resources/commons/types/Decimal.d.ts +11 -0
  5. package/api/resources/commons/types/Decimal.js +10 -0
  6. package/api/resources/commons/types/EmrPayerCrosswalk.d.ts +8 -0
  7. package/api/resources/commons/types/EmrPayerCrosswalk.js +10 -0
  8. package/api/resources/commons/types/UserId.d.ts +8 -0
  9. package/api/resources/commons/types/index.d.ts +4 -1
  10. package/api/resources/commons/types/index.js +4 -1
  11. package/api/resources/encounters/resources/v4/client/Client.js +16 -12
  12. package/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
  13. package/api/resources/encounters/resources/v4/client/create.js +11 -0
  14. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -1
  15. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -7
  16. package/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +2 -1
  17. package/api/resources/encounters/resources/v4/types/BillableStatusType.d.ts +8 -0
  18. package/api/resources/encounters/resources/v4/types/BillableStatusType.js +10 -0
  19. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  20. package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +13 -7
  21. package/api/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.d.ts +6 -0
  22. package/api/resources/encounters/resources/v4/types/ResponsiblePartyType.d.ts +9 -0
  23. package/api/resources/encounters/resources/v4/types/ResponsiblePartyType.js +11 -0
  24. package/api/resources/encounters/resources/v4/types/index.d.ts +3 -0
  25. package/api/resources/encounters/resources/v4/types/index.js +3 -0
  26. package/api/resources/expectedNetworkStatus/client/Client.js +1 -1
  27. package/api/resources/guarantor/resources/v1/client/Client.d.ts +2 -2
  28. package/api/resources/guarantor/resources/v1/client/Client.js +20 -6
  29. package/api/resources/guarantor/resources/v1/client/create.d.ts +7 -1
  30. package/api/resources/guarantor/resources/v1/client/create.js +11 -0
  31. package/api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +6 -3
  32. package/api/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.d.ts +6 -0
  33. package/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +4 -0
  34. package/api/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -2
  35. package/api/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +6 -0
  36. package/api/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  37. package/api/resources/guarantor/resources/v1/types/index.js +1 -0
  38. package/api/resources/index.d.ts +0 -1
  39. package/api/resources/index.js +1 -2
  40. package/api/resources/individual/types/Patient.d.ts +4 -0
  41. package/api/resources/individual/types/PatientBase.d.ts +0 -1
  42. package/api/resources/individual/types/PatientCreate.d.ts +6 -0
  43. package/api/resources/insuranceCard/types/InsuranceCardBase.d.ts +1 -1
  44. package/api/resources/insuranceCard/types/InsuranceCardCreate.d.ts +1 -0
  45. package/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +13 -1
  46. package/api/resources/organizationProviders/resources/v2/types/LicenseType.js +12 -0
  47. package/api/resources/payers/client/Client.js +2 -2
  48. package/api/resources/serviceLines/types/ServiceLine.d.ts +13 -1
  49. package/api/resources/serviceLines/types/ServiceLineCreate.d.ts +7 -1
  50. package/api/resources/tasks/resources/v3/client/Client.js +1 -1
  51. package/api/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
  52. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  53. package/dist/api/resources/billingNotes/client/Client.js +1 -1
  54. package/dist/api/resources/commons/types/DateRangeOptionalEnd.d.ts +8 -0
  55. package/dist/api/resources/commons/types/Decimal.d.ts +11 -0
  56. package/dist/api/resources/commons/types/Decimal.js +10 -0
  57. package/dist/api/resources/commons/types/EmrPayerCrosswalk.d.ts +8 -0
  58. package/dist/api/resources/commons/types/EmrPayerCrosswalk.js +10 -0
  59. package/dist/api/resources/commons/types/UserId.d.ts +8 -0
  60. package/dist/api/resources/commons/types/index.d.ts +4 -1
  61. package/dist/api/resources/commons/types/index.js +4 -1
  62. package/dist/api/resources/encounters/resources/v4/client/Client.js +16 -12
  63. package/dist/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
  64. package/dist/api/resources/encounters/resources/v4/client/create.js +11 -0
  65. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -1
  66. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -7
  67. package/dist/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +2 -1
  68. package/dist/api/resources/encounters/resources/v4/types/BillableStatusType.d.ts +8 -0
  69. package/dist/api/resources/encounters/resources/v4/types/BillableStatusType.js +10 -0
  70. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  71. package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +13 -7
  72. package/dist/api/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.d.ts +6 -0
  73. package/dist/api/resources/encounters/resources/v4/types/ResponsiblePartyType.d.ts +9 -0
  74. package/dist/api/resources/encounters/resources/v4/types/ResponsiblePartyType.js +11 -0
  75. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +3 -0
  76. package/dist/api/resources/encounters/resources/v4/types/index.js +3 -0
  77. package/dist/api/resources/expectedNetworkStatus/client/Client.js +1 -1
  78. package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +2 -2
  79. package/dist/api/resources/guarantor/resources/v1/client/Client.js +20 -6
  80. package/dist/api/resources/guarantor/resources/v1/client/create.d.ts +7 -1
  81. package/dist/api/resources/guarantor/resources/v1/client/create.js +11 -0
  82. package/dist/api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +6 -3
  83. package/dist/api/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.d.ts +6 -0
  84. package/dist/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +4 -0
  85. package/dist/api/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -2
  86. package/dist/api/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +6 -0
  87. package/dist/api/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  88. package/dist/api/resources/guarantor/resources/v1/types/index.js +1 -0
  89. package/dist/api/resources/index.d.ts +0 -1
  90. package/dist/api/resources/index.js +1 -2
  91. package/dist/api/resources/individual/types/Patient.d.ts +4 -0
  92. package/dist/api/resources/individual/types/PatientBase.d.ts +0 -1
  93. package/dist/api/resources/individual/types/PatientCreate.d.ts +6 -0
  94. package/dist/api/resources/insuranceCard/types/InsuranceCardBase.d.ts +1 -1
  95. package/dist/api/resources/insuranceCard/types/InsuranceCardCreate.d.ts +1 -0
  96. package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +13 -1
  97. package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.js +12 -0
  98. package/dist/api/resources/payers/client/Client.js +2 -2
  99. package/dist/api/resources/serviceLines/types/ServiceLine.d.ts +13 -1
  100. package/dist/api/resources/serviceLines/types/ServiceLineCreate.d.ts +7 -1
  101. package/dist/api/resources/tasks/resources/v3/client/Client.js +1 -1
  102. package/dist/api/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
  103. package/dist/serialization/resources/commons/types/DateRangeOptionalEnd.d.ts +13 -0
  104. package/dist/serialization/resources/commons/types/DateRangeOptionalEnd.js +34 -0
  105. package/dist/serialization/resources/commons/types/Decimal.d.ts +10 -0
  106. package/dist/serialization/resources/commons/types/Decimal.js +37 -0
  107. package/dist/serialization/resources/commons/types/EmrPayerCrosswalk.d.ts +10 -0
  108. package/dist/serialization/resources/commons/types/EmrPayerCrosswalk.js +31 -0
  109. package/dist/serialization/resources/commons/types/UserId.d.ts +10 -0
  110. package/dist/serialization/resources/{users/resources/v2 → commons}/types/UserId.js +6 -4
  111. package/dist/serialization/resources/commons/types/index.d.ts +4 -1
  112. package/dist/serialization/resources/commons/types/index.js +4 -1
  113. package/dist/serialization/resources/encounters/resources/v4/client/create.d.ts +5 -1
  114. package/dist/serialization/resources/encounters/resources/v4/client/create.js +5 -0
  115. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -1
  116. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +0 -1
  117. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -2
  118. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +6 -2
  119. package/dist/serialization/resources/encounters/resources/v4/types/BillableStatusType.d.ts +10 -0
  120. package/{serialization/resources/users/resources/v2/types/MachineUserMetadata.js → dist/serialization/resources/encounters/resources/v4/types/BillableStatusType.js} +2 -4
  121. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  122. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +3 -0
  123. package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +3 -2
  124. package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.js +3 -2
  125. package/dist/serialization/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.d.ts +12 -0
  126. package/dist/serialization/resources/{users/resources/v2/types/GoogleAppsMetadata.js → encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.js} +3 -3
  127. package/dist/serialization/resources/encounters/resources/v4/types/ResponsiblePartyType.d.ts +10 -0
  128. package/dist/serialization/resources/{users/resources/v2/types/MachineUserMetadata.js → encounters/resources/v4/types/ResponsiblePartyType.js} +2 -4
  129. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +3 -0
  130. package/dist/serialization/resources/encounters/resources/v4/types/index.js +3 -0
  131. package/dist/serialization/resources/guarantor/resources/v1/client/create.d.ts +14 -0
  132. package/dist/serialization/resources/{users/resources/v2/types/UserMetadata.js → guarantor/resources/v1/client/create.js} +14 -7
  133. package/dist/serialization/resources/guarantor/resources/v1/client/index.d.ts +1 -0
  134. package/dist/serialization/resources/guarantor/resources/v1/client/index.js +14 -0
  135. package/dist/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +6 -3
  136. package/dist/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.js +8 -3
  137. package/dist/serialization/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.d.ts +12 -0
  138. package/{serialization/resources/users/resources/v2/types/AuthZeroMetadata.js → dist/serialization/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.js} +3 -3
  139. package/dist/serialization/resources/guarantor/resources/v1/types/Guarantor.d.ts +4 -0
  140. package/dist/serialization/resources/guarantor/resources/v1/types/Guarantor.js +4 -0
  141. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -2
  142. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorBase.js +1 -2
  143. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +4 -0
  144. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.js +8 -1
  145. package/dist/serialization/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  146. package/dist/serialization/resources/guarantor/resources/v1/types/index.js +1 -0
  147. package/dist/serialization/resources/index.d.ts +0 -1
  148. package/dist/serialization/resources/index.js +1 -2
  149. package/dist/serialization/resources/individual/types/Patient.d.ts +4 -0
  150. package/dist/serialization/resources/individual/types/Patient.js +4 -0
  151. package/dist/serialization/resources/individual/types/PatientBase.d.ts +0 -1
  152. package/dist/serialization/resources/individual/types/PatientBase.js +0 -1
  153. package/dist/serialization/resources/individual/types/PatientCreate.d.ts +4 -0
  154. package/dist/serialization/resources/individual/types/PatientCreate.js +8 -1
  155. package/dist/serialization/resources/insuranceCard/types/InsuranceCardBase.d.ts +1 -1
  156. package/dist/serialization/resources/insuranceCard/types/InsuranceCardBase.js +1 -1
  157. package/dist/serialization/resources/insuranceCard/types/InsuranceCardCreate.d.ts +1 -0
  158. package/dist/serialization/resources/insuranceCard/types/InsuranceCardCreate.js +1 -0
  159. package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
  160. package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +12 -0
  161. package/dist/serialization/resources/serviceLines/types/ServiceLine.d.ts +2 -1
  162. package/dist/serialization/resources/serviceLines/types/ServiceLine.js +2 -1
  163. package/dist/serialization/resources/serviceLines/types/ServiceLineCreate.d.ts +1 -1
  164. package/dist/serialization/resources/serviceLines/types/ServiceLineCreate.js +1 -1
  165. package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
  166. package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueue.js +1 -1
  167. package/examples/acmeHealth.ts +4 -2
  168. package/package.json +1 -1
  169. package/serialization/resources/commons/types/DateRangeOptionalEnd.d.ts +13 -0
  170. package/serialization/resources/commons/types/DateRangeOptionalEnd.js +34 -0
  171. package/serialization/resources/commons/types/Decimal.d.ts +10 -0
  172. package/serialization/resources/commons/types/Decimal.js +37 -0
  173. package/serialization/resources/commons/types/EmrPayerCrosswalk.d.ts +10 -0
  174. package/serialization/resources/commons/types/EmrPayerCrosswalk.js +31 -0
  175. package/serialization/resources/commons/types/UserId.d.ts +10 -0
  176. package/serialization/resources/{users/resources/v2 → commons}/types/UserId.js +6 -4
  177. package/serialization/resources/commons/types/index.d.ts +4 -1
  178. package/serialization/resources/commons/types/index.js +4 -1
  179. package/serialization/resources/encounters/resources/v4/client/create.d.ts +5 -1
  180. package/serialization/resources/encounters/resources/v4/client/create.js +5 -0
  181. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -1
  182. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +0 -1
  183. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -2
  184. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +6 -2
  185. package/serialization/resources/encounters/resources/v4/types/BillableStatusType.d.ts +10 -0
  186. package/serialization/resources/encounters/resources/v4/types/BillableStatusType.js +31 -0
  187. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  188. package/serialization/resources/encounters/resources/v4/types/Encounter.js +3 -0
  189. package/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +3 -2
  190. package/serialization/resources/encounters/resources/v4/types/EncounterBase.js +3 -2
  191. package/serialization/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.d.ts +12 -0
  192. package/{dist/serialization/resources/users/resources/v2/types/HumanUserMetadata.js → serialization/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.js} +3 -4
  193. package/serialization/resources/encounters/resources/v4/types/ResponsiblePartyType.d.ts +10 -0
  194. package/serialization/resources/encounters/resources/v4/types/ResponsiblePartyType.js +31 -0
  195. package/serialization/resources/encounters/resources/v4/types/index.d.ts +3 -0
  196. package/serialization/resources/encounters/resources/v4/types/index.js +3 -0
  197. package/serialization/resources/guarantor/resources/v1/client/create.d.ts +14 -0
  198. package/serialization/resources/{users/resources/v2/types/IdpUserMetadata.js → guarantor/resources/v1/client/create.js} +14 -8
  199. package/serialization/resources/guarantor/resources/v1/client/index.d.ts +1 -0
  200. package/serialization/resources/guarantor/resources/v1/client/index.js +14 -0
  201. package/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +6 -3
  202. package/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.js +8 -3
  203. package/serialization/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.d.ts +12 -0
  204. package/{dist/serialization/resources/users/resources/v2/types/AuthZeroMetadata.js → serialization/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.js} +3 -3
  205. package/serialization/resources/guarantor/resources/v1/types/Guarantor.d.ts +4 -0
  206. package/serialization/resources/guarantor/resources/v1/types/Guarantor.js +4 -0
  207. package/serialization/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -2
  208. package/serialization/resources/guarantor/resources/v1/types/GuarantorBase.js +1 -2
  209. package/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +4 -0
  210. package/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.js +8 -1
  211. package/serialization/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  212. package/serialization/resources/guarantor/resources/v1/types/index.js +1 -0
  213. package/serialization/resources/index.d.ts +0 -1
  214. package/serialization/resources/index.js +1 -2
  215. package/serialization/resources/individual/types/Patient.d.ts +4 -0
  216. package/serialization/resources/individual/types/Patient.js +4 -0
  217. package/serialization/resources/individual/types/PatientBase.d.ts +0 -1
  218. package/serialization/resources/individual/types/PatientBase.js +0 -1
  219. package/serialization/resources/individual/types/PatientCreate.d.ts +4 -0
  220. package/serialization/resources/individual/types/PatientCreate.js +8 -1
  221. package/serialization/resources/insuranceCard/types/InsuranceCardBase.d.ts +1 -1
  222. package/serialization/resources/insuranceCard/types/InsuranceCardBase.js +1 -1
  223. package/serialization/resources/insuranceCard/types/InsuranceCardCreate.d.ts +1 -0
  224. package/serialization/resources/insuranceCard/types/InsuranceCardCreate.js +1 -0
  225. package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
  226. package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +12 -0
  227. package/serialization/resources/serviceLines/types/ServiceLine.d.ts +2 -1
  228. package/serialization/resources/serviceLines/types/ServiceLine.js +2 -1
  229. package/serialization/resources/serviceLines/types/ServiceLineCreate.d.ts +1 -1
  230. package/serialization/resources/serviceLines/types/ServiceLineCreate.js +1 -1
  231. package/serialization/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
  232. package/serialization/resources/workQueues/resources/v1/types/WorkQueue.js +1 -1
  233. package/api/resources/commons/types/ContactInfo.d.ts +0 -10
  234. package/api/resources/users/index.d.ts +0 -1
  235. package/api/resources/users/index.js +0 -17
  236. package/api/resources/users/resources/index.d.ts +0 -1
  237. package/api/resources/users/resources/index.js +0 -27
  238. package/api/resources/users/resources/v2/index.d.ts +0 -1
  239. package/api/resources/users/resources/v2/index.js +0 -17
  240. package/api/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +0 -6
  241. package/api/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +0 -6
  242. package/api/resources/users/resources/v2/types/HumanUserMetadata.d.ts +0 -7
  243. package/api/resources/users/resources/v2/types/IdpUserMetadata.d.ts +0 -16
  244. package/api/resources/users/resources/v2/types/MachineUserMetadata.d.ts +0 -6
  245. package/api/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +0 -6
  246. package/api/resources/users/resources/v2/types/OtherIdpMetadata.js +0 -5
  247. package/api/resources/users/resources/v2/types/UserId.d.ts +0 -8
  248. package/api/resources/users/resources/v2/types/UserMetadata.d.ts +0 -13
  249. package/api/resources/users/resources/v2/types/UserMetadata.js +0 -5
  250. package/api/resources/users/resources/v2/types/UserV2.d.ts +0 -11
  251. package/api/resources/users/resources/v2/types/UserV2.js +0 -5
  252. package/api/resources/users/resources/v2/types/index.d.ts +0 -9
  253. package/api/resources/users/resources/v2/types/index.js +0 -25
  254. package/dist/api/resources/commons/types/ContactInfo.d.ts +0 -10
  255. package/dist/api/resources/commons/types/ContactInfo.js +0 -5
  256. package/dist/api/resources/users/index.d.ts +0 -1
  257. package/dist/api/resources/users/index.js +0 -17
  258. package/dist/api/resources/users/resources/index.d.ts +0 -1
  259. package/dist/api/resources/users/resources/index.js +0 -27
  260. package/dist/api/resources/users/resources/v2/index.d.ts +0 -1
  261. package/dist/api/resources/users/resources/v2/index.js +0 -17
  262. package/dist/api/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +0 -6
  263. package/dist/api/resources/users/resources/v2/types/AuthZeroMetadata.js +0 -5
  264. package/dist/api/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +0 -6
  265. package/dist/api/resources/users/resources/v2/types/GoogleAppsMetadata.js +0 -5
  266. package/dist/api/resources/users/resources/v2/types/HumanUserMetadata.d.ts +0 -7
  267. package/dist/api/resources/users/resources/v2/types/HumanUserMetadata.js +0 -5
  268. package/dist/api/resources/users/resources/v2/types/IdpUserMetadata.d.ts +0 -16
  269. package/dist/api/resources/users/resources/v2/types/IdpUserMetadata.js +0 -5
  270. package/dist/api/resources/users/resources/v2/types/MachineUserMetadata.d.ts +0 -6
  271. package/dist/api/resources/users/resources/v2/types/MachineUserMetadata.js +0 -5
  272. package/dist/api/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +0 -6
  273. package/dist/api/resources/users/resources/v2/types/OtherIdpMetadata.js +0 -5
  274. package/dist/api/resources/users/resources/v2/types/UserId.d.ts +0 -8
  275. package/dist/api/resources/users/resources/v2/types/UserMetadata.d.ts +0 -13
  276. package/dist/api/resources/users/resources/v2/types/UserMetadata.js +0 -5
  277. package/dist/api/resources/users/resources/v2/types/UserV2.d.ts +0 -11
  278. package/dist/api/resources/users/resources/v2/types/UserV2.js +0 -5
  279. package/dist/api/resources/users/resources/v2/types/index.d.ts +0 -9
  280. package/dist/api/resources/users/resources/v2/types/index.js +0 -25
  281. package/dist/serialization/resources/commons/types/ContactInfo.d.ts +0 -15
  282. package/dist/serialization/resources/commons/types/ContactInfo.js +0 -36
  283. package/dist/serialization/resources/users/index.d.ts +0 -1
  284. package/dist/serialization/resources/users/index.js +0 -17
  285. package/dist/serialization/resources/users/resources/index.d.ts +0 -1
  286. package/dist/serialization/resources/users/resources/index.js +0 -27
  287. package/dist/serialization/resources/users/resources/v2/index.d.ts +0 -1
  288. package/dist/serialization/resources/users/resources/v2/index.js +0 -17
  289. package/dist/serialization/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +0 -12
  290. package/dist/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +0 -12
  291. package/dist/serialization/resources/users/resources/v2/types/HumanUserMetadata.d.ts +0 -13
  292. package/dist/serialization/resources/users/resources/v2/types/IdpUserMetadata.d.ts +0 -19
  293. package/dist/serialization/resources/users/resources/v2/types/IdpUserMetadata.js +0 -40
  294. package/dist/serialization/resources/users/resources/v2/types/MachineUserMetadata.d.ts +0 -12
  295. package/dist/serialization/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +0 -12
  296. package/dist/serialization/resources/users/resources/v2/types/OtherIdpMetadata.js +0 -33
  297. package/dist/serialization/resources/users/resources/v2/types/UserId.d.ts +0 -10
  298. package/dist/serialization/resources/users/resources/v2/types/UserMetadata.d.ts +0 -16
  299. package/dist/serialization/resources/users/resources/v2/types/UserV2.d.ts +0 -16
  300. package/dist/serialization/resources/users/resources/v2/types/UserV2.js +0 -37
  301. package/dist/serialization/resources/users/resources/v2/types/index.d.ts +0 -9
  302. package/dist/serialization/resources/users/resources/v2/types/index.js +0 -25
  303. package/serialization/resources/commons/types/ContactInfo.d.ts +0 -15
  304. package/serialization/resources/commons/types/ContactInfo.js +0 -36
  305. package/serialization/resources/users/index.d.ts +0 -1
  306. package/serialization/resources/users/index.js +0 -17
  307. package/serialization/resources/users/resources/index.d.ts +0 -1
  308. package/serialization/resources/users/resources/index.js +0 -27
  309. package/serialization/resources/users/resources/v2/index.d.ts +0 -1
  310. package/serialization/resources/users/resources/v2/index.js +0 -17
  311. package/serialization/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +0 -12
  312. package/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +0 -12
  313. package/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.js +0 -33
  314. package/serialization/resources/users/resources/v2/types/HumanUserMetadata.d.ts +0 -13
  315. package/serialization/resources/users/resources/v2/types/HumanUserMetadata.js +0 -34
  316. package/serialization/resources/users/resources/v2/types/IdpUserMetadata.d.ts +0 -19
  317. package/serialization/resources/users/resources/v2/types/MachineUserMetadata.d.ts +0 -12
  318. package/serialization/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +0 -12
  319. package/serialization/resources/users/resources/v2/types/OtherIdpMetadata.js +0 -33
  320. package/serialization/resources/users/resources/v2/types/UserId.d.ts +0 -10
  321. package/serialization/resources/users/resources/v2/types/UserMetadata.d.ts +0 -16
  322. package/serialization/resources/users/resources/v2/types/UserMetadata.js +0 -39
  323. package/serialization/resources/users/resources/v2/types/UserV2.d.ts +0 -16
  324. package/serialization/resources/users/resources/v2/types/UserV2.js +0 -37
  325. package/serialization/resources/users/resources/v2/types/index.d.ts +0 -9
  326. package/serialization/resources/users/resources/v2/types/index.js +0 -25
  327. /package/api/resources/commons/types/{ContactInfo.js → DateRangeOptionalEnd.js} +0 -0
  328. /package/api/resources/{users/resources/v2 → commons}/types/UserId.js +0 -0
  329. /package/api/resources/{users/resources/v2/types/AuthZeroMetadata.js → encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.js} +0 -0
  330. /package/api/resources/{users/resources/v2/types/GoogleAppsMetadata.js → guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.js} +0 -0
  331. /package/{api/resources/users/resources/v2/types/HumanUserMetadata.js → dist/api/resources/commons/types/DateRangeOptionalEnd.js} +0 -0
  332. /package/dist/api/resources/{users/resources/v2 → commons}/types/UserId.js +0 -0
  333. /package/{api/resources/users/resources/v2/types/IdpUserMetadata.js → dist/api/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.js} +0 -0
  334. /package/{api/resources/users/resources/v2/types/MachineUserMetadata.js → dist/api/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.js} +0 -0
@@ -1,19 +0,0 @@
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 IdpUserMetadata: core.serialization.Schema<serializers.users.v2.IdpUserMetadata.Raw, CandidApi.users.v2.IdpUserMetadata>;
8
- export declare namespace IdpUserMetadata {
9
- type Raw = IdpUserMetadata.AuthZeroMetadata | IdpUserMetadata.GoogleAppsMetadata | IdpUserMetadata.OtherIdpMetadata;
10
- interface AuthZeroMetadata extends serializers.users.v2.AuthZeroMetadata.Raw {
11
- type: "auth_zero_metadata";
12
- }
13
- interface GoogleAppsMetadata extends serializers.users.v2.GoogleAppsMetadata.Raw {
14
- type: "google_apps_metadata";
15
- }
16
- interface OtherIdpMetadata extends serializers.users.v2.OtherIdpMetadata.Raw {
17
- type: "other_idp_metadata";
18
- }
19
- }
@@ -1,40 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (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.IdpUserMetadata = void 0;
30
- const core = __importStar(require("../../../../../../core"));
31
- exports.IdpUserMetadata = core.serialization
32
- .union("type", {
33
- auth_zero_metadata: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).users.v2.AuthZeroMetadata),
34
- google_apps_metadata: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).users.v2.GoogleAppsMetadata),
35
- other_idp_metadata: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).users.v2.OtherIdpMetadata),
36
- })
37
- .transform({
38
- transform: (value) => value,
39
- untransform: (value) => value,
40
- });
@@ -1,12 +0,0 @@
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 MachineUserMetadata: core.serialization.ObjectSchema<serializers.users.v2.MachineUserMetadata.Raw, CandidApi.users.v2.MachineUserMetadata>;
8
- export declare namespace MachineUserMetadata {
9
- interface Raw {
10
- name: string;
11
- }
12
- }
@@ -1,12 +0,0 @@
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 OtherIdpMetadata: core.serialization.ObjectSchema<serializers.users.v2.OtherIdpMetadata.Raw, CandidApi.users.v2.OtherIdpMetadata>;
8
- export declare namespace OtherIdpMetadata {
9
- interface Raw {
10
- idp_external_id: string;
11
- }
12
- }
@@ -1,33 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (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.OtherIdpMetadata = void 0;
30
- const core = __importStar(require("../../../../../../core"));
31
- exports.OtherIdpMetadata = core.serialization.object({
32
- idpExternalId: core.serialization.property("idp_external_id", core.serialization.string()),
33
- });
@@ -1,10 +0,0 @@
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 UserId: core.serialization.Schema<serializers.users.v2.UserId.Raw, CandidApi.users.v2.UserId>;
8
- export declare namespace UserId {
9
- type Raw = string;
10
- }
@@ -1,16 +0,0 @@
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 UserMetadata: core.serialization.Schema<serializers.users.v2.UserMetadata.Raw, CandidApi.users.v2.UserMetadata>;
8
- export declare namespace UserMetadata {
9
- type Raw = UserMetadata.MachineUserMetadata | UserMetadata.HumanUserMetadata;
10
- interface MachineUserMetadata extends serializers.users.v2.MachineUserMetadata.Raw {
11
- type: "machine_user_metadata";
12
- }
13
- interface HumanUserMetadata extends serializers.users.v2.HumanUserMetadata.Raw {
14
- type: "human_user_metadata";
15
- }
16
- }
@@ -1,16 +0,0 @@
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 UserV2: core.serialization.ObjectSchema<serializers.users.v2.UserV2.Raw, CandidApi.users.v2.UserV2>;
8
- export declare namespace UserV2 {
9
- interface Raw {
10
- user_id: serializers.users.v2.UserId.Raw;
11
- idp_metadata: serializers.users.v2.IdpUserMetadata.Raw[];
12
- primary_organization_id: serializers.OrganizationId.Raw;
13
- user_metadata: serializers.users.v2.UserMetadata.Raw;
14
- accessible_organization_ids: serializers.OrganizationId.Raw[];
15
- }
16
- }
@@ -1,37 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (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.UserV2 = void 0;
30
- const core = __importStar(require("../../../../../../core"));
31
- exports.UserV2 = core.serialization.object({
32
- userId: core.serialization.property("user_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).users.v2.UserId)),
33
- idpMetadata: core.serialization.property("idp_metadata", core.serialization.list(core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).users.v2.IdpUserMetadata))),
34
- primaryOrganizationId: core.serialization.property("primary_organization_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).OrganizationId)),
35
- userMetadata: core.serialization.property("user_metadata", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).users.v2.UserMetadata)),
36
- accessibleOrganizationIds: core.serialization.property("accessible_organization_ids", core.serialization.list(core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).OrganizationId))),
37
- });
@@ -1,9 +0,0 @@
1
- export * from "./HumanUserMetadata";
2
- export * from "./UserId";
3
- export * from "./MachineUserMetadata";
4
- export * from "./UserMetadata";
5
- export * from "./AuthZeroMetadata";
6
- export * from "./GoogleAppsMetadata";
7
- export * from "./OtherIdpMetadata";
8
- export * from "./IdpUserMetadata";
9
- export * from "./UserV2";
@@ -1,25 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./HumanUserMetadata"), exports);
18
- __exportStar(require("./UserId"), exports);
19
- __exportStar(require("./MachineUserMetadata"), exports);
20
- __exportStar(require("./UserMetadata"), exports);
21
- __exportStar(require("./AuthZeroMetadata"), exports);
22
- __exportStar(require("./GoogleAppsMetadata"), exports);
23
- __exportStar(require("./OtherIdpMetadata"), exports);
24
- __exportStar(require("./IdpUserMetadata"), exports);
25
- __exportStar(require("./UserV2"), exports);
@@ -1,15 +0,0 @@
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 ContactInfo: core.serialization.ObjectSchema<serializers.ContactInfo.Raw, CandidApi.ContactInfo>;
8
- export declare namespace ContactInfo {
9
- interface Raw {
10
- phone_numbers: serializers.PhoneNumber.Raw[];
11
- phone_consent: boolean;
12
- email: serializers.Email.Raw;
13
- email_consent: boolean;
14
- }
15
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (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.ContactInfo = void 0;
30
- const core = __importStar(require("../../../../core"));
31
- exports.ContactInfo = core.serialization.object({
32
- phoneNumbers: core.serialization.property("phone_numbers", core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).PhoneNumber))),
33
- phoneConsent: core.serialization.property("phone_consent", core.serialization.boolean()),
34
- email: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).Email),
35
- emailConsent: core.serialization.property("email_consent", core.serialization.boolean()),
36
- });
@@ -1 +0,0 @@
1
- export * from "./resources";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./resources"), exports);
@@ -1 +0,0 @@
1
- export * as v2 from "./v2";
@@ -1,27 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.v2 = void 0;
27
- exports.v2 = __importStar(require("./v2"));
@@ -1 +0,0 @@
1
- export * from "./types";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./types"), exports);
@@ -1,12 +0,0 @@
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 AuthZeroMetadata: core.serialization.ObjectSchema<serializers.users.v2.AuthZeroMetadata.Raw, CandidApi.users.v2.AuthZeroMetadata>;
8
- export declare namespace AuthZeroMetadata {
9
- interface Raw {
10
- auth0_id: string;
11
- }
12
- }
@@ -1,12 +0,0 @@
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 GoogleAppsMetadata: core.serialization.ObjectSchema<serializers.users.v2.GoogleAppsMetadata.Raw, CandidApi.users.v2.GoogleAppsMetadata>;
8
- export declare namespace GoogleAppsMetadata {
9
- interface Raw {
10
- google_apps_id: string;
11
- }
12
- }
@@ -1,33 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (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.GoogleAppsMetadata = void 0;
30
- const core = __importStar(require("../../../../../../core"));
31
- exports.GoogleAppsMetadata = core.serialization.object({
32
- googleAppsId: core.serialization.property("google_apps_id", core.serialization.string()),
33
- });
@@ -1,13 +0,0 @@
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 HumanUserMetadata: core.serialization.ObjectSchema<serializers.users.v2.HumanUserMetadata.Raw, CandidApi.users.v2.HumanUserMetadata>;
8
- export declare namespace HumanUserMetadata {
9
- interface Raw {
10
- first_name: string;
11
- last_name: string;
12
- }
13
- }
@@ -1,34 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (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.HumanUserMetadata = void 0;
30
- const core = __importStar(require("../../../../../../core"));
31
- exports.HumanUserMetadata = core.serialization.object({
32
- firstName: core.serialization.property("first_name", core.serialization.string()),
33
- lastName: core.serialization.property("last_name", core.serialization.string()),
34
- });
@@ -1,19 +0,0 @@
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 IdpUserMetadata: core.serialization.Schema<serializers.users.v2.IdpUserMetadata.Raw, CandidApi.users.v2.IdpUserMetadata>;
8
- export declare namespace IdpUserMetadata {
9
- type Raw = IdpUserMetadata.AuthZeroMetadata | IdpUserMetadata.GoogleAppsMetadata | IdpUserMetadata.OtherIdpMetadata;
10
- interface AuthZeroMetadata extends serializers.users.v2.AuthZeroMetadata.Raw {
11
- type: "auth_zero_metadata";
12
- }
13
- interface GoogleAppsMetadata extends serializers.users.v2.GoogleAppsMetadata.Raw {
14
- type: "google_apps_metadata";
15
- }
16
- interface OtherIdpMetadata extends serializers.users.v2.OtherIdpMetadata.Raw {
17
- type: "other_idp_metadata";
18
- }
19
- }
@@ -1,12 +0,0 @@
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 MachineUserMetadata: core.serialization.ObjectSchema<serializers.users.v2.MachineUserMetadata.Raw, CandidApi.users.v2.MachineUserMetadata>;
8
- export declare namespace MachineUserMetadata {
9
- interface Raw {
10
- name: string;
11
- }
12
- }
@@ -1,12 +0,0 @@
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 OtherIdpMetadata: core.serialization.ObjectSchema<serializers.users.v2.OtherIdpMetadata.Raw, CandidApi.users.v2.OtherIdpMetadata>;
8
- export declare namespace OtherIdpMetadata {
9
- interface Raw {
10
- idp_external_id: string;
11
- }
12
- }
@@ -1,33 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (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.OtherIdpMetadata = void 0;
30
- const core = __importStar(require("../../../../../../core"));
31
- exports.OtherIdpMetadata = core.serialization.object({
32
- idpExternalId: core.serialization.property("idp_external_id", core.serialization.string()),
33
- });
@@ -1,10 +0,0 @@
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 UserId: core.serialization.Schema<serializers.users.v2.UserId.Raw, CandidApi.users.v2.UserId>;
8
- export declare namespace UserId {
9
- type Raw = string;
10
- }
@@ -1,16 +0,0 @@
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 UserMetadata: core.serialization.Schema<serializers.users.v2.UserMetadata.Raw, CandidApi.users.v2.UserMetadata>;
8
- export declare namespace UserMetadata {
9
- type Raw = UserMetadata.MachineUserMetadata | UserMetadata.HumanUserMetadata;
10
- interface MachineUserMetadata extends serializers.users.v2.MachineUserMetadata.Raw {
11
- type: "machine_user_metadata";
12
- }
13
- interface HumanUserMetadata extends serializers.users.v2.HumanUserMetadata.Raw {
14
- type: "human_user_metadata";
15
- }
16
- }
@@ -1,39 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (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.UserMetadata = void 0;
30
- const core = __importStar(require("../../../../../../core"));
31
- exports.UserMetadata = core.serialization
32
- .union("type", {
33
- machine_user_metadata: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).users.v2.MachineUserMetadata),
34
- human_user_metadata: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).users.v2.HumanUserMetadata),
35
- })
36
- .transform({
37
- transform: (value) => value,
38
- untransform: (value) => value,
39
- });