@greensecurity/javascript-sdk 0.45.0-beta.1 → 0.45.0-beta.11

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 (392) hide show
  1. package/README.md +7 -1
  2. package/dist/commonjs/__tests__/fhirconfigs.test.js +21 -5
  3. package/dist/commonjs/__tests__/fhirconfigs.test.js.map +1 -1
  4. package/dist/commonjs/__tests__/invoices.test.js +18 -0
  5. package/dist/commonjs/__tests__/invoices.test.js.map +1 -1
  6. package/dist/commonjs/__tests__/lookups.test.js +21 -0
  7. package/dist/commonjs/__tests__/lookups.test.js.map +1 -1
  8. package/dist/commonjs/__tests__/vendors.test.js +1 -1
  9. package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
  10. package/dist/commonjs/__tests__/webhooks.test.js +1 -1
  11. package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
  12. package/dist/commonjs/__tests__/zones.test.js +17 -15
  13. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  14. package/dist/commonjs/admin-funcs/dismissCommunication.d.ts +3 -0
  15. package/dist/commonjs/admin-funcs/dismissCommunication.d.ts.map +1 -0
  16. package/dist/commonjs/admin-funcs/dismissCommunication.js +20 -0
  17. package/dist/commonjs/admin-funcs/dismissCommunication.js.map +1 -0
  18. package/dist/commonjs/admin-funcs/listCommunications.d.ts +3 -0
  19. package/dist/commonjs/admin-funcs/listCommunications.d.ts.map +1 -0
  20. package/dist/commonjs/admin-funcs/listCommunications.js +25 -0
  21. package/dist/commonjs/admin-funcs/listCommunications.js.map +1 -0
  22. package/dist/commonjs/funcs/companiesListCompanyManagers.js +1 -0
  23. package/dist/commonjs/funcs/companiesListCompanyManagers.js.map +1 -1
  24. package/dist/commonjs/funcs/invoicesConvertQuote.d.ts +33 -0
  25. package/dist/commonjs/funcs/invoicesConvertQuote.d.ts.map +1 -0
  26. package/dist/commonjs/funcs/invoicesConvertQuote.js +138 -0
  27. package/dist/commonjs/funcs/invoicesConvertQuote.js.map +1 -0
  28. package/dist/commonjs/funcs/lookupsLookupPostalCode.d.ts +35 -0
  29. package/dist/commonjs/funcs/lookupsLookupPostalCode.d.ts.map +1 -0
  30. package/dist/commonjs/funcs/lookupsLookupPostalCode.js +140 -0
  31. package/dist/commonjs/funcs/lookupsLookupPostalCode.js.map +1 -0
  32. package/dist/commonjs/funcs/usersUpdateUser.d.ts +6 -0
  33. package/dist/commonjs/funcs/usersUpdateUser.d.ts.map +1 -1
  34. package/dist/commonjs/funcs/usersUpdateUser.js +6 -0
  35. package/dist/commonjs/funcs/usersUpdateUser.js.map +1 -1
  36. package/dist/commonjs/funcs/vendorsCreateVendor.d.ts +4 -0
  37. package/dist/commonjs/funcs/vendorsCreateVendor.d.ts.map +1 -1
  38. package/dist/commonjs/funcs/vendorsCreateVendor.js +4 -0
  39. package/dist/commonjs/funcs/vendorsCreateVendor.js.map +1 -1
  40. package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.d.ts +1 -0
  41. package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
  42. package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.js +1 -0
  43. package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.js.map +1 -1
  44. package/dist/commonjs/funcs/vendorsUpdateVendorDetails.d.ts +9 -1
  45. package/dist/commonjs/funcs/vendorsUpdateVendorDetails.d.ts.map +1 -1
  46. package/dist/commonjs/funcs/vendorsUpdateVendorDetails.js +9 -1
  47. package/dist/commonjs/funcs/vendorsUpdateVendorDetails.js.map +1 -1
  48. package/dist/commonjs/funcs/vendorsVendorsExport.d.ts +4 -1
  49. package/dist/commonjs/funcs/vendorsVendorsExport.d.ts.map +1 -1
  50. package/dist/commonjs/funcs/vendorsVendorsExport.js +5 -1
  51. package/dist/commonjs/funcs/vendorsVendorsExport.js.map +1 -1
  52. package/dist/commonjs/index.extras.d.ts +6 -0
  53. package/dist/commonjs/index.extras.d.ts.map +1 -1
  54. package/dist/commonjs/index.extras.js +6 -0
  55. package/dist/commonjs/index.extras.js.map +1 -1
  56. package/dist/commonjs/lib/config.d.ts +4 -4
  57. package/dist/commonjs/lib/config.js +4 -4
  58. package/dist/commonjs/lib/config.js.map +1 -1
  59. package/dist/commonjs/models/components/companymanager.d.ts +19 -1
  60. package/dist/commonjs/models/components/companymanager.d.ts.map +1 -1
  61. package/dist/commonjs/models/components/companymanager.js +13 -2
  62. package/dist/commonjs/models/components/companymanager.js.map +1 -1
  63. package/dist/commonjs/models/components/expand.d.ts +1 -0
  64. package/dist/commonjs/models/components/expand.d.ts.map +1 -1
  65. package/dist/commonjs/models/components/expand.js +1 -0
  66. package/dist/commonjs/models/components/expand.js.map +1 -1
  67. package/dist/commonjs/models/components/fhirconfig.d.ts +16 -0
  68. package/dist/commonjs/models/components/fhirconfig.d.ts.map +1 -1
  69. package/dist/commonjs/models/components/fhirconfig.js +4 -0
  70. package/dist/commonjs/models/components/fhirconfig.js.map +1 -1
  71. package/dist/commonjs/models/components/fhirconfigcreate.d.ts +18 -0
  72. package/dist/commonjs/models/components/fhirconfigcreate.d.ts.map +1 -1
  73. package/dist/commonjs/models/components/fhirconfigcreate.js +4 -0
  74. package/dist/commonjs/models/components/fhirconfigcreate.js.map +1 -1
  75. package/dist/commonjs/models/components/fhirextraentities.d.ts +9 -0
  76. package/dist/commonjs/models/components/fhirextraentities.d.ts.map +1 -1
  77. package/dist/commonjs/models/components/fhirextraentities.js +11 -0
  78. package/dist/commonjs/models/components/fhirextraentities.js.map +1 -1
  79. package/dist/commonjs/models/components/vendorcredentialsummary.d.ts +5 -0
  80. package/dist/commonjs/models/components/vendorcredentialsummary.d.ts.map +1 -1
  81. package/dist/commonjs/models/components/vendorcredentialsummary.js +9 -1
  82. package/dist/commonjs/models/components/vendorcredentialsummary.js.map +1 -1
  83. package/dist/commonjs/models/operations/convertquote.d.ts +46 -0
  84. package/dist/commonjs/models/operations/convertquote.d.ts.map +1 -0
  85. package/dist/commonjs/models/operations/convertquote.js +69 -0
  86. package/dist/commonjs/models/operations/convertquote.js.map +1 -0
  87. package/dist/commonjs/models/operations/createinvoice.d.ts +85 -0
  88. package/dist/commonjs/models/operations/createinvoice.d.ts.map +1 -1
  89. package/dist/commonjs/models/operations/createinvoice.js +56 -1
  90. package/dist/commonjs/models/operations/createinvoice.js.map +1 -1
  91. package/dist/commonjs/models/operations/createvendorcompany.d.ts +7 -1
  92. package/dist/commonjs/models/operations/createvendorcompany.d.ts.map +1 -1
  93. package/dist/commonjs/models/operations/createvendorcompany.js.map +1 -1
  94. package/dist/commonjs/models/operations/index.d.ts +2 -0
  95. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  96. package/dist/commonjs/models/operations/index.js +2 -0
  97. package/dist/commonjs/models/operations/index.js.map +1 -1
  98. package/dist/commonjs/models/operations/listcompanymanagers.d.ts +20 -0
  99. package/dist/commonjs/models/operations/listcompanymanagers.d.ts.map +1 -1
  100. package/dist/commonjs/models/operations/listcompanymanagers.js +12 -1
  101. package/dist/commonjs/models/operations/listcompanymanagers.js.map +1 -1
  102. package/dist/commonjs/models/operations/lookuppostalcode.d.ts +59 -0
  103. package/dist/commonjs/models/operations/lookuppostalcode.d.ts.map +1 -0
  104. package/dist/commonjs/models/operations/lookuppostalcode.js +81 -0
  105. package/dist/commonjs/models/operations/lookuppostalcode.js.map +1 -0
  106. package/dist/commonjs/models/operations/vendorsexport.d.ts +6 -1
  107. package/dist/commonjs/models/operations/vendorsexport.d.ts.map +1 -1
  108. package/dist/commonjs/models/operations/vendorsexport.js +2 -0
  109. package/dist/commonjs/models/operations/vendorsexport.js.map +1 -1
  110. package/dist/commonjs/react-query/companiesListCompanyManagers.core.d.ts +2 -0
  111. package/dist/commonjs/react-query/companiesListCompanyManagers.core.d.ts.map +1 -1
  112. package/dist/commonjs/react-query/companiesListCompanyManagers.core.js +2 -0
  113. package/dist/commonjs/react-query/companiesListCompanyManagers.core.js.map +1 -1
  114. package/dist/commonjs/react-query/companiesListCompanyManagers.d.ts +2 -0
  115. package/dist/commonjs/react-query/companiesListCompanyManagers.d.ts.map +1 -1
  116. package/dist/commonjs/react-query/companiesListCompanyManagers.js.map +1 -1
  117. package/dist/commonjs/react-query/index.d.ts +2 -0
  118. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  119. package/dist/commonjs/react-query/index.js +2 -0
  120. package/dist/commonjs/react-query/index.js.map +1 -1
  121. package/dist/commonjs/react-query/invoicesConvertQuote.d.ts +42 -0
  122. package/dist/commonjs/react-query/invoicesConvertQuote.d.ts.map +1 -0
  123. package/dist/commonjs/react-query/invoicesConvertQuote.js +60 -0
  124. package/dist/commonjs/react-query/invoicesConvertQuote.js.map +1 -0
  125. package/dist/commonjs/react-query/lookupsLookupPostalCode.core.d.ts +16 -0
  126. package/dist/commonjs/react-query/lookupsLookupPostalCode.core.d.ts.map +1 -0
  127. package/dist/commonjs/react-query/lookupsLookupPostalCode.core.js +43 -0
  128. package/dist/commonjs/react-query/lookupsLookupPostalCode.core.js.map +1 -0
  129. package/dist/commonjs/react-query/lookupsLookupPostalCode.d.ts +71 -0
  130. package/dist/commonjs/react-query/lookupsLookupPostalCode.d.ts.map +1 -0
  131. package/dist/commonjs/react-query/lookupsLookupPostalCode.js +95 -0
  132. package/dist/commonjs/react-query/lookupsLookupPostalCode.js.map +1 -0
  133. package/dist/commonjs/react-query/usersUpdateUser.d.ts +6 -0
  134. package/dist/commonjs/react-query/usersUpdateUser.d.ts.map +1 -1
  135. package/dist/commonjs/react-query/usersUpdateUser.js +6 -0
  136. package/dist/commonjs/react-query/usersUpdateUser.js.map +1 -1
  137. package/dist/commonjs/react-query/vendorsCreateVendor.d.ts +4 -0
  138. package/dist/commonjs/react-query/vendorsCreateVendor.d.ts.map +1 -1
  139. package/dist/commonjs/react-query/vendorsCreateVendor.js +4 -0
  140. package/dist/commonjs/react-query/vendorsCreateVendor.js.map +1 -1
  141. package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.d.ts +2 -0
  142. package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
  143. package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.js +2 -0
  144. package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.js.map +1 -1
  145. package/dist/commonjs/react-query/vendorsUpdateVendorDetails.d.ts +9 -1
  146. package/dist/commonjs/react-query/vendorsUpdateVendorDetails.d.ts.map +1 -1
  147. package/dist/commonjs/react-query/vendorsUpdateVendorDetails.js +9 -1
  148. package/dist/commonjs/react-query/vendorsUpdateVendorDetails.js.map +1 -1
  149. package/dist/commonjs/react-query/vendorsVendorsExport.core.d.ts +1 -0
  150. package/dist/commonjs/react-query/vendorsVendorsExport.core.d.ts.map +1 -1
  151. package/dist/commonjs/react-query/vendorsVendorsExport.core.js +1 -0
  152. package/dist/commonjs/react-query/vendorsVendorsExport.core.js.map +1 -1
  153. package/dist/commonjs/react-query/vendorsVendorsExport.d.ts +10 -2
  154. package/dist/commonjs/react-query/vendorsVendorsExport.d.ts.map +1 -1
  155. package/dist/commonjs/react-query/vendorsVendorsExport.js +8 -2
  156. package/dist/commonjs/react-query/vendorsVendorsExport.js.map +1 -1
  157. package/dist/commonjs/sdk/invoices.d.ts +20 -0
  158. package/dist/commonjs/sdk/invoices.d.ts.map +1 -1
  159. package/dist/commonjs/sdk/invoices.js +23 -0
  160. package/dist/commonjs/sdk/invoices.js.map +1 -1
  161. package/dist/commonjs/sdk/lookups.d.ts +22 -0
  162. package/dist/commonjs/sdk/lookups.d.ts.map +1 -1
  163. package/dist/commonjs/sdk/lookups.js +25 -0
  164. package/dist/commonjs/sdk/lookups.js.map +1 -1
  165. package/dist/commonjs/sdk/users.d.ts +6 -0
  166. package/dist/commonjs/sdk/users.d.ts.map +1 -1
  167. package/dist/commonjs/sdk/users.js +6 -0
  168. package/dist/commonjs/sdk/users.js.map +1 -1
  169. package/dist/commonjs/sdk/vendors.d.ts +18 -2
  170. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  171. package/dist/commonjs/sdk/vendors.js +18 -2
  172. package/dist/commonjs/sdk/vendors.js.map +1 -1
  173. package/dist/esm/__tests__/fhirconfigs.test.js +21 -5
  174. package/dist/esm/__tests__/fhirconfigs.test.js.map +1 -1
  175. package/dist/esm/__tests__/invoices.test.js +18 -0
  176. package/dist/esm/__tests__/invoices.test.js.map +1 -1
  177. package/dist/esm/__tests__/lookups.test.js +21 -0
  178. package/dist/esm/__tests__/lookups.test.js.map +1 -1
  179. package/dist/esm/__tests__/vendors.test.js +1 -1
  180. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  181. package/dist/esm/__tests__/webhooks.test.js +1 -1
  182. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  183. package/dist/esm/__tests__/zones.test.js +17 -15
  184. package/dist/esm/__tests__/zones.test.js.map +1 -1
  185. package/dist/esm/admin-funcs/dismissCommunication.d.ts +3 -0
  186. package/dist/esm/admin-funcs/dismissCommunication.d.ts.map +1 -0
  187. package/dist/esm/admin-funcs/dismissCommunication.js +17 -0
  188. package/dist/esm/admin-funcs/dismissCommunication.js.map +1 -0
  189. package/dist/esm/admin-funcs/listCommunications.d.ts +3 -0
  190. package/dist/esm/admin-funcs/listCommunications.d.ts.map +1 -0
  191. package/dist/esm/admin-funcs/listCommunications.js +22 -0
  192. package/dist/esm/admin-funcs/listCommunications.js.map +1 -0
  193. package/dist/esm/funcs/companiesListCompanyManagers.js +1 -0
  194. package/dist/esm/funcs/companiesListCompanyManagers.js.map +1 -1
  195. package/dist/esm/funcs/invoicesConvertQuote.d.ts +33 -0
  196. package/dist/esm/funcs/invoicesConvertQuote.d.ts.map +1 -0
  197. package/dist/esm/funcs/invoicesConvertQuote.js +102 -0
  198. package/dist/esm/funcs/invoicesConvertQuote.js.map +1 -0
  199. package/dist/esm/funcs/lookupsLookupPostalCode.d.ts +35 -0
  200. package/dist/esm/funcs/lookupsLookupPostalCode.d.ts.map +1 -0
  201. package/dist/esm/funcs/lookupsLookupPostalCode.js +104 -0
  202. package/dist/esm/funcs/lookupsLookupPostalCode.js.map +1 -0
  203. package/dist/esm/funcs/usersUpdateUser.d.ts +6 -0
  204. package/dist/esm/funcs/usersUpdateUser.d.ts.map +1 -1
  205. package/dist/esm/funcs/usersUpdateUser.js +6 -0
  206. package/dist/esm/funcs/usersUpdateUser.js.map +1 -1
  207. package/dist/esm/funcs/vendorsCreateVendor.d.ts +4 -0
  208. package/dist/esm/funcs/vendorsCreateVendor.d.ts.map +1 -1
  209. package/dist/esm/funcs/vendorsCreateVendor.js +4 -0
  210. package/dist/esm/funcs/vendorsCreateVendor.js.map +1 -1
  211. package/dist/esm/funcs/vendorsGetVendorCredentialDetails.d.ts +1 -0
  212. package/dist/esm/funcs/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
  213. package/dist/esm/funcs/vendorsGetVendorCredentialDetails.js +1 -0
  214. package/dist/esm/funcs/vendorsGetVendorCredentialDetails.js.map +1 -1
  215. package/dist/esm/funcs/vendorsUpdateVendorDetails.d.ts +9 -1
  216. package/dist/esm/funcs/vendorsUpdateVendorDetails.d.ts.map +1 -1
  217. package/dist/esm/funcs/vendorsUpdateVendorDetails.js +9 -1
  218. package/dist/esm/funcs/vendorsUpdateVendorDetails.js.map +1 -1
  219. package/dist/esm/funcs/vendorsVendorsExport.d.ts +4 -1
  220. package/dist/esm/funcs/vendorsVendorsExport.d.ts.map +1 -1
  221. package/dist/esm/funcs/vendorsVendorsExport.js +5 -1
  222. package/dist/esm/funcs/vendorsVendorsExport.js.map +1 -1
  223. package/dist/esm/index.extras.d.ts +6 -0
  224. package/dist/esm/index.extras.d.ts.map +1 -1
  225. package/dist/esm/index.extras.js +6 -0
  226. package/dist/esm/index.extras.js.map +1 -1
  227. package/dist/esm/lib/config.d.ts +4 -4
  228. package/dist/esm/lib/config.js +4 -4
  229. package/dist/esm/lib/config.js.map +1 -1
  230. package/dist/esm/models/components/companymanager.d.ts +19 -1
  231. package/dist/esm/models/components/companymanager.d.ts.map +1 -1
  232. package/dist/esm/models/components/companymanager.js +12 -1
  233. package/dist/esm/models/components/companymanager.js.map +1 -1
  234. package/dist/esm/models/components/expand.d.ts +1 -0
  235. package/dist/esm/models/components/expand.d.ts.map +1 -1
  236. package/dist/esm/models/components/expand.js +1 -0
  237. package/dist/esm/models/components/expand.js.map +1 -1
  238. package/dist/esm/models/components/fhirconfig.d.ts +16 -0
  239. package/dist/esm/models/components/fhirconfig.d.ts.map +1 -1
  240. package/dist/esm/models/components/fhirconfig.js +4 -0
  241. package/dist/esm/models/components/fhirconfig.js.map +1 -1
  242. package/dist/esm/models/components/fhirconfigcreate.d.ts +18 -0
  243. package/dist/esm/models/components/fhirconfigcreate.d.ts.map +1 -1
  244. package/dist/esm/models/components/fhirconfigcreate.js +4 -0
  245. package/dist/esm/models/components/fhirconfigcreate.js.map +1 -1
  246. package/dist/esm/models/components/fhirextraentities.d.ts +9 -0
  247. package/dist/esm/models/components/fhirextraentities.d.ts.map +1 -1
  248. package/dist/esm/models/components/fhirextraentities.js +11 -0
  249. package/dist/esm/models/components/fhirextraentities.js.map +1 -1
  250. package/dist/esm/models/components/vendorcredentialsummary.d.ts +5 -0
  251. package/dist/esm/models/components/vendorcredentialsummary.d.ts.map +1 -1
  252. package/dist/esm/models/components/vendorcredentialsummary.js +7 -0
  253. package/dist/esm/models/components/vendorcredentialsummary.js.map +1 -1
  254. package/dist/esm/models/operations/convertquote.d.ts +46 -0
  255. package/dist/esm/models/operations/convertquote.d.ts.map +1 -0
  256. package/dist/esm/models/operations/convertquote.js +31 -0
  257. package/dist/esm/models/operations/convertquote.js.map +1 -0
  258. package/dist/esm/models/operations/createinvoice.d.ts +85 -0
  259. package/dist/esm/models/operations/createinvoice.d.ts.map +1 -1
  260. package/dist/esm/models/operations/createinvoice.js +55 -0
  261. package/dist/esm/models/operations/createinvoice.js.map +1 -1
  262. package/dist/esm/models/operations/createvendorcompany.d.ts +7 -1
  263. package/dist/esm/models/operations/createvendorcompany.d.ts.map +1 -1
  264. package/dist/esm/models/operations/createvendorcompany.js.map +1 -1
  265. package/dist/esm/models/operations/index.d.ts +2 -0
  266. package/dist/esm/models/operations/index.d.ts.map +1 -1
  267. package/dist/esm/models/operations/index.js +2 -0
  268. package/dist/esm/models/operations/index.js.map +1 -1
  269. package/dist/esm/models/operations/listcompanymanagers.d.ts +20 -0
  270. package/dist/esm/models/operations/listcompanymanagers.d.ts.map +1 -1
  271. package/dist/esm/models/operations/listcompanymanagers.js +11 -0
  272. package/dist/esm/models/operations/listcompanymanagers.js.map +1 -1
  273. package/dist/esm/models/operations/lookuppostalcode.d.ts +59 -0
  274. package/dist/esm/models/operations/lookuppostalcode.d.ts.map +1 -0
  275. package/dist/esm/models/operations/lookuppostalcode.js +43 -0
  276. package/dist/esm/models/operations/lookuppostalcode.js.map +1 -0
  277. package/dist/esm/models/operations/vendorsexport.d.ts +6 -1
  278. package/dist/esm/models/operations/vendorsexport.d.ts.map +1 -1
  279. package/dist/esm/models/operations/vendorsexport.js +2 -0
  280. package/dist/esm/models/operations/vendorsexport.js.map +1 -1
  281. package/dist/esm/react-query/companiesListCompanyManagers.core.d.ts +2 -0
  282. package/dist/esm/react-query/companiesListCompanyManagers.core.d.ts.map +1 -1
  283. package/dist/esm/react-query/companiesListCompanyManagers.core.js +2 -0
  284. package/dist/esm/react-query/companiesListCompanyManagers.core.js.map +1 -1
  285. package/dist/esm/react-query/companiesListCompanyManagers.d.ts +2 -0
  286. package/dist/esm/react-query/companiesListCompanyManagers.d.ts.map +1 -1
  287. package/dist/esm/react-query/companiesListCompanyManagers.js.map +1 -1
  288. package/dist/esm/react-query/index.d.ts +2 -0
  289. package/dist/esm/react-query/index.d.ts.map +1 -1
  290. package/dist/esm/react-query/index.js +2 -0
  291. package/dist/esm/react-query/index.js.map +1 -1
  292. package/dist/esm/react-query/invoicesConvertQuote.d.ts +42 -0
  293. package/dist/esm/react-query/invoicesConvertQuote.d.ts.map +1 -0
  294. package/dist/esm/react-query/invoicesConvertQuote.js +55 -0
  295. package/dist/esm/react-query/invoicesConvertQuote.js.map +1 -0
  296. package/dist/esm/react-query/lookupsLookupPostalCode.core.d.ts +16 -0
  297. package/dist/esm/react-query/lookupsLookupPostalCode.core.d.ts.map +1 -0
  298. package/dist/esm/react-query/lookupsLookupPostalCode.core.js +38 -0
  299. package/dist/esm/react-query/lookupsLookupPostalCode.core.js.map +1 -0
  300. package/dist/esm/react-query/lookupsLookupPostalCode.d.ts +71 -0
  301. package/dist/esm/react-query/lookupsLookupPostalCode.d.ts.map +1 -0
  302. package/dist/esm/react-query/lookupsLookupPostalCode.js +85 -0
  303. package/dist/esm/react-query/lookupsLookupPostalCode.js.map +1 -0
  304. package/dist/esm/react-query/usersUpdateUser.d.ts +6 -0
  305. package/dist/esm/react-query/usersUpdateUser.d.ts.map +1 -1
  306. package/dist/esm/react-query/usersUpdateUser.js +6 -0
  307. package/dist/esm/react-query/usersUpdateUser.js.map +1 -1
  308. package/dist/esm/react-query/vendorsCreateVendor.d.ts +4 -0
  309. package/dist/esm/react-query/vendorsCreateVendor.d.ts.map +1 -1
  310. package/dist/esm/react-query/vendorsCreateVendor.js +4 -0
  311. package/dist/esm/react-query/vendorsCreateVendor.js.map +1 -1
  312. package/dist/esm/react-query/vendorsGetVendorCredentialDetails.d.ts +2 -0
  313. package/dist/esm/react-query/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
  314. package/dist/esm/react-query/vendorsGetVendorCredentialDetails.js +2 -0
  315. package/dist/esm/react-query/vendorsGetVendorCredentialDetails.js.map +1 -1
  316. package/dist/esm/react-query/vendorsUpdateVendorDetails.d.ts +9 -1
  317. package/dist/esm/react-query/vendorsUpdateVendorDetails.d.ts.map +1 -1
  318. package/dist/esm/react-query/vendorsUpdateVendorDetails.js +9 -1
  319. package/dist/esm/react-query/vendorsUpdateVendorDetails.js.map +1 -1
  320. package/dist/esm/react-query/vendorsVendorsExport.core.d.ts +1 -0
  321. package/dist/esm/react-query/vendorsVendorsExport.core.d.ts.map +1 -1
  322. package/dist/esm/react-query/vendorsVendorsExport.core.js +1 -0
  323. package/dist/esm/react-query/vendorsVendorsExport.core.js.map +1 -1
  324. package/dist/esm/react-query/vendorsVendorsExport.d.ts +10 -2
  325. package/dist/esm/react-query/vendorsVendorsExport.d.ts.map +1 -1
  326. package/dist/esm/react-query/vendorsVendorsExport.js +8 -2
  327. package/dist/esm/react-query/vendorsVendorsExport.js.map +1 -1
  328. package/dist/esm/sdk/invoices.d.ts +20 -0
  329. package/dist/esm/sdk/invoices.d.ts.map +1 -1
  330. package/dist/esm/sdk/invoices.js +23 -0
  331. package/dist/esm/sdk/invoices.js.map +1 -1
  332. package/dist/esm/sdk/lookups.d.ts +22 -0
  333. package/dist/esm/sdk/lookups.d.ts.map +1 -1
  334. package/dist/esm/sdk/lookups.js +25 -0
  335. package/dist/esm/sdk/lookups.js.map +1 -1
  336. package/dist/esm/sdk/users.d.ts +6 -0
  337. package/dist/esm/sdk/users.d.ts.map +1 -1
  338. package/dist/esm/sdk/users.js +6 -0
  339. package/dist/esm/sdk/users.js.map +1 -1
  340. package/dist/esm/sdk/vendors.d.ts +18 -2
  341. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  342. package/dist/esm/sdk/vendors.js +18 -2
  343. package/dist/esm/sdk/vendors.js.map +1 -1
  344. package/jsr.json +1 -1
  345. package/package.json +1 -1
  346. package/src/__tests__/fhirconfigs.test.ts +21 -5
  347. package/src/__tests__/invoices.test.ts +21 -0
  348. package/src/__tests__/lookups.test.ts +24 -0
  349. package/src/__tests__/vendors.test.ts +1 -1
  350. package/src/__tests__/webhooks.test.ts +1 -1
  351. package/src/__tests__/zones.test.ts +17 -15
  352. package/src/admin-funcs/dismissCommunication.ts +20 -0
  353. package/src/admin-funcs/listCommunications.ts +29 -0
  354. package/src/funcs/companiesListCompanyManagers.ts +1 -0
  355. package/src/funcs/invoicesConvertQuote.ts +190 -0
  356. package/src/funcs/lookupsLookupPostalCode.ts +193 -0
  357. package/src/funcs/usersUpdateUser.ts +6 -0
  358. package/src/funcs/vendorsCreateVendor.ts +4 -0
  359. package/src/funcs/vendorsGetVendorCredentialDetails.ts +1 -0
  360. package/src/funcs/vendorsUpdateVendorDetails.ts +9 -1
  361. package/src/funcs/vendorsVendorsExport.ts +6 -1
  362. package/src/index.extras.ts +8 -0
  363. package/src/lib/config.ts +4 -4
  364. package/src/models/components/companymanager.ts +27 -2
  365. package/src/models/components/expand.ts +1 -0
  366. package/src/models/components/fhirconfig.ts +20 -0
  367. package/src/models/components/fhirconfigcreate.ts +22 -0
  368. package/src/models/components/fhirextraentities.ts +20 -0
  369. package/src/models/components/vendorcredentialsummary.ts +19 -0
  370. package/src/models/operations/convertquote.ts +94 -0
  371. package/src/models/operations/createinvoice.ts +124 -0
  372. package/src/models/operations/createvendorcompany.ts +7 -1
  373. package/src/models/operations/index.ts +2 -0
  374. package/src/models/operations/listcompanymanagers.ts +28 -0
  375. package/src/models/operations/lookuppostalcode.ts +118 -0
  376. package/src/models/operations/vendorsexport.ts +8 -1
  377. package/src/react-query/companiesListCompanyManagers.core.ts +4 -0
  378. package/src/react-query/companiesListCompanyManagers.ts +2 -0
  379. package/src/react-query/index.ts +2 -0
  380. package/src/react-query/invoicesConvertQuote.ts +124 -0
  381. package/src/react-query/lookupsLookupPostalCode.core.ts +82 -0
  382. package/src/react-query/lookupsLookupPostalCode.ts +177 -0
  383. package/src/react-query/usersUpdateUser.ts +6 -0
  384. package/src/react-query/vendorsCreateVendor.ts +4 -0
  385. package/src/react-query/vendorsGetVendorCredentialDetails.ts +2 -0
  386. package/src/react-query/vendorsUpdateVendorDetails.ts +9 -1
  387. package/src/react-query/vendorsVendorsExport.core.ts +2 -0
  388. package/src/react-query/vendorsVendorsExport.ts +10 -2
  389. package/src/sdk/invoices.ts +31 -0
  390. package/src/sdk/lookups.ts +33 -0
  391. package/src/sdk/users.ts +6 -0
  392. package/src/sdk/vendors.ts +18 -2
package/src/lib/config.ts CHANGED
@@ -79,9 +79,9 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
79
79
 
80
80
  export const SDK_METADATA = {
81
81
  language: "typescript",
82
- openapiDocVersion: "0.44.0",
83
- sdkVersion: "0.45.0-beta.1",
84
- genVersion: "2.933.0",
82
+ openapiDocVersion: "0.45.0",
83
+ sdkVersion: "0.45.0-beta.10",
84
+ genVersion: "2.934.1",
85
85
  userAgent:
86
- "speakeasy-sdk/typescript 0.45.0-beta.1 2.933.0 0.44.0 @greensecurity/javascript-sdk",
86
+ "speakeasy-sdk/typescript 0.45.0-beta.10 2.934.1 0.45.0 @greensecurity/javascript-sdk",
87
87
  } as const;
@@ -5,6 +5,8 @@
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
+ import * as openEnums from "../../types/enums.js";
9
+ import { OpenEnum } from "../../types/enums.js";
8
10
  import { Result as SafeParseResult } from "../../types/fp.js";
9
11
  import * as types from "../../types/primitives.js";
10
12
  import { smartUnion } from "../../types/smartUnion.js";
@@ -17,6 +19,19 @@ import {
17
19
  } from "./paymentprofile.js";
18
20
  import { UserLocation, UserLocation$inboundSchema } from "./userlocation.js";
19
21
 
22
+ /**
23
+ * The manager's status on the company.
24
+ */
25
+ export const CompanyManagerStatus = {
26
+ Active: "Active",
27
+ Inactive: "Inactive",
28
+ Deleted: "Deleted",
29
+ } as const;
30
+ /**
31
+ * The manager's status on the company.
32
+ */
33
+ export type CompanyManagerStatus = OpenEnum<typeof CompanyManagerStatus>;
34
+
20
35
  export type User1 = {
21
36
  id?: number | undefined;
22
37
  firstName?: string | null | undefined;
@@ -46,12 +61,22 @@ export type CompanyManagerPaymentProfile = PaymentProfile | number;
46
61
 
47
62
  export type CompanyManager = {
48
63
  id?: number | undefined;
49
- status?: string | null | undefined;
64
+ /**
65
+ * The manager's status on the company.
66
+ */
67
+ status?: CompanyManagerStatus | null | undefined;
50
68
  user?: User1 | number | undefined;
51
69
  company?: Company | number | null | undefined;
52
70
  paymentProfile?: PaymentProfile | number | null | undefined;
53
71
  };
54
72
 
73
+ /** @internal */
74
+ export const CompanyManagerStatus$inboundSchema: z.ZodType<
75
+ CompanyManagerStatus,
76
+ z.ZodTypeDef,
77
+ unknown
78
+ > = openEnums.inboundSchema(CompanyManagerStatus);
79
+
55
80
  /** @internal */
56
81
  export const User1$inboundSchema: z.ZodType<User1, z.ZodTypeDef, unknown> = z
57
82
  .object({
@@ -146,7 +171,7 @@ export const CompanyManager$inboundSchema: z.ZodType<
146
171
  unknown
147
172
  > = z.object({
148
173
  id: types.optional(types.number()),
149
- status: z.nullable(types.string()).optional(),
174
+ status: z.nullable(CompanyManagerStatus$inboundSchema).optional(),
150
175
  user: types.optional(
151
176
  smartUnion([z.lazy(() => User1$inboundSchema), types.number()]),
152
177
  ),
@@ -71,6 +71,7 @@ export const Expand = {
71
71
  VendorCredentialCredential: "vendor_credential.credential",
72
72
  VendorCredentialVendor: "vendor_credential.vendor",
73
73
  VendorCredentialInvoice: "vendor_credential.invoice",
74
+ VendorCredentialQuote: "vendor_credential.quote",
74
75
  VendorCredentialVendorCredentialFiles:
75
76
  "vendor_credential.vendor_credential_files",
76
77
  VendorCredentialLatestVendorCredentialId:
@@ -131,6 +131,22 @@ export type FhirConfig = {
131
131
  * See [JMESPath](https://jmespath.org/)
132
132
  */
133
133
  projection: string;
134
+ /**
135
+ * A JMESPath that decides whether a patient should be hidden (VIP, confidential, anonymized). When set it replaces the built-in checks, so a facility can describe its own rule instead of relying on the defaults. Some sites carry the anonymized marker on the encounter rather than the patient extension, which the built-ins do not look at.
136
+ *
137
+ * @remarks
138
+ *
139
+ * See [JMESPath](https://jmespath.org/)
140
+ */
141
+ restrictionFilter?: string | null | undefined;
142
+ /**
143
+ * A JMESPath that maps `{ patient, flags, encounter }` to the standard `{ isAnonymized, hasVipFlag }` shape. Takes precedence over restriction_filter, and covers the HL7 path as well as FHIR. Leave empty to fall back to restriction_filter or the built-in checks.
144
+ *
145
+ * @remarks
146
+ *
147
+ * See [JMESPath](https://jmespath.org/)
148
+ */
149
+ restrictionProjection?: string | null | undefined;
134
150
  /**
135
151
  * Whether to automatically create Room records for unmapped FHIR encounter locations
136
152
  */
@@ -273,6 +289,8 @@ export const FhirConfig$inboundSchema: z.ZodType<
273
289
  notes: types.optional(types.string()),
274
290
  entities: FhirExtraEntities$inboundSchema,
275
291
  projection: types.string(),
292
+ restriction_filter: z.nullable(types.string()).optional(),
293
+ restriction_projection: z.nullable(types.string()).optional(),
276
294
  auto_create_rooms: types.boolean().default(false),
277
295
  room_creation_jmespath: types.optional(types.string()),
278
296
  }).transform((v) => {
@@ -281,6 +299,8 @@ export const FhirConfig$inboundSchema: z.ZodType<
281
299
  "non_production_profile": "nonProductionProfile",
282
300
  "applies_to": "appliesTo",
283
301
  "active_profile": "activeProfile",
302
+ "restriction_filter": "restrictionFilter",
303
+ "restriction_projection": "restrictionProjection",
284
304
  "auto_create_rooms": "autoCreateRooms",
285
305
  "room_creation_jmespath": "roomCreationJmespath",
286
306
  });
@@ -47,6 +47,22 @@ export type FhirConfigCreate = {
47
47
  */
48
48
  entities: FhirExtraEntities;
49
49
  projection?: string | undefined;
50
+ /**
51
+ * A JMESPath that decides whether a patient should be hidden (VIP, confidential, anonymized). When set it replaces the built-in checks, so a facility can describe its own rule instead of relying on the defaults. Some sites carry the anonymized marker on the encounter rather than the patient extension, which the built-ins do not look at.
52
+ *
53
+ * @remarks
54
+ *
55
+ * See [JMESPath](https://jmespath.org/)
56
+ */
57
+ restrictionFilter?: string | null | undefined;
58
+ /**
59
+ * A JMESPath that maps `{ patient, flags, encounter }` to the standard `{ isAnonymized, hasVipFlag }` shape. Takes precedence over restriction_filter, and covers the HL7 path as well as FHIR. Leave empty to fall back to restriction_filter or the built-in checks.
60
+ *
61
+ * @remarks
62
+ *
63
+ * See [JMESPath](https://jmespath.org/)
64
+ */
65
+ restrictionProjection?: string | null | undefined;
50
66
  };
51
67
 
52
68
  /** @internal */
@@ -173,6 +189,8 @@ export type FhirConfigCreate$Outbound = {
173
189
  notes?: string | undefined;
174
190
  entities: FhirExtraEntities$Outbound;
175
191
  projection?: string | undefined;
192
+ restriction_filter?: string | null | undefined;
193
+ restriction_projection?: string | null | undefined;
176
194
  };
177
195
 
178
196
  /** @internal */
@@ -192,12 +210,16 @@ export const FhirConfigCreate$outboundSchema: z.ZodType<
192
210
  notes: z.string().optional(),
193
211
  entities: FhirExtraEntities$outboundSchema,
194
212
  projection: z.string().optional(),
213
+ restrictionFilter: z.nullable(z.string()).optional(),
214
+ restrictionProjection: z.nullable(z.string()).optional(),
195
215
  }).transform((v) => {
196
216
  return remap$(v, {
197
217
  productionProfile: "production_profile",
198
218
  nonProductionProfile: "non_production_profile",
199
219
  appliesTo: "applies_to",
200
220
  activeProfile: "active_profile",
221
+ restrictionFilter: "restriction_filter",
222
+ restrictionProjection: "restriction_projection",
201
223
  });
202
224
  });
203
225
 
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
6
7
  import { safeParse } from "../../lib/schemas.js";
7
8
  import { Result as SafeParseResult } from "../../types/fp.js";
8
9
  import * as types from "../../types/primitives.js";
@@ -14,6 +15,14 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
14
15
  export type FhirExtraEntities = {
15
16
  flags?: boolean | undefined;
16
17
  consents?: boolean | undefined;
18
+ /**
19
+ * Which Flag category a patient lookup should scope its search to. Epic refuses a Flag search that names no category, so a facility on Epic should set this or the search comes back rejected and the patient looks like they have no flags. Cerner and other servers allow a broad search and can leave it empty.
20
+ *
21
+ * @remarks
22
+ *
23
+ * Leave empty to let the client decide.
24
+ */
25
+ flagCategory?: string | null | undefined;
17
26
  };
18
27
 
19
28
  /** @internal */
@@ -24,11 +33,17 @@ export const FhirExtraEntities$inboundSchema: z.ZodType<
24
33
  > = z.object({
25
34
  flags: types.optional(types.boolean()),
26
35
  consents: types.optional(types.boolean()),
36
+ flag_category: z.nullable(types.string()).optional(),
37
+ }).transform((v) => {
38
+ return remap$(v, {
39
+ "flag_category": "flagCategory",
40
+ });
27
41
  });
28
42
  /** @internal */
29
43
  export type FhirExtraEntities$Outbound = {
30
44
  flags?: boolean | undefined;
31
45
  consents?: boolean | undefined;
46
+ flag_category?: string | null | undefined;
32
47
  };
33
48
 
34
49
  /** @internal */
@@ -39,6 +54,11 @@ export const FhirExtraEntities$outboundSchema: z.ZodType<
39
54
  > = z.object({
40
55
  flags: z.boolean().optional(),
41
56
  consents: z.boolean().optional(),
57
+ flagCategory: z.nullable(z.string()).optional(),
58
+ }).transform((v) => {
59
+ return remap$(v, {
60
+ flagCategory: "flag_category",
61
+ });
42
62
  });
43
63
 
44
64
  export function fhirExtraEntitiesToJSON(
@@ -33,6 +33,8 @@ export type VendorCredentialSummaryVendor = Vendor | number;
33
33
 
34
34
  export type VendorCredentialSummaryInvoice = Invoice | number;
35
35
 
36
+ export type Quote = Invoice | number;
37
+
36
38
  export type UnsatisfiedDependencies = {
37
39
  credentialId?: number | null | undefined;
38
40
  dependsOnId?: number | null | undefined;
@@ -87,6 +89,7 @@ export type VendorCredentialSummary = {
87
89
  credential?: Credential | number | null | undefined;
88
90
  vendor?: Vendor | number | null | undefined;
89
91
  invoice?: Invoice | number | null | undefined;
92
+ quote?: Invoice | number | null | undefined;
90
93
  vendorCredentialFiles?: Array<VendorCredentialFile | null> | undefined;
91
94
  latestVendorCredentialId?: number | null | undefined;
92
95
  previouslyApproved?: boolean | null | undefined;
@@ -164,6 +167,20 @@ export function vendorCredentialSummaryInvoiceFromJSON(
164
167
  );
165
168
  }
166
169
 
170
+ /** @internal */
171
+ export const Quote$inboundSchema: z.ZodType<Quote, z.ZodTypeDef, unknown> =
172
+ smartUnion([Invoice$inboundSchema, types.number()]);
173
+
174
+ export function quoteFromJSON(
175
+ jsonString: string,
176
+ ): SafeParseResult<Quote, SDKValidationError> {
177
+ return safeParse(
178
+ jsonString,
179
+ (x) => Quote$inboundSchema.parse(JSON.parse(x)),
180
+ `Failed to parse 'Quote' from JSON`,
181
+ );
182
+ }
183
+
167
184
  /** @internal */
168
185
  export const UnsatisfiedDependencies$inboundSchema: z.ZodType<
169
186
  UnsatisfiedDependencies,
@@ -296,6 +313,8 @@ export const VendorCredentialSummary$inboundSchema: z.ZodType<
296
313
  .optional(),
297
314
  invoice: z.nullable(smartUnion([Invoice$inboundSchema, types.number()]))
298
315
  .optional(),
316
+ quote: z.nullable(smartUnion([Invoice$inboundSchema, types.number()]))
317
+ .optional(),
299
318
  vendor_credential_files: types.optional(
300
319
  z.array(types.nullable(z.lazy(() => VendorCredentialFile$inboundSchema))),
301
320
  ),
@@ -0,0 +1,94 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as types from "../../types/primitives.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type ConvertQuoteRequest = {
13
+ /**
14
+ * The identifier of the object
15
+ */
16
+ id: number;
17
+ };
18
+
19
+ /**
20
+ * The quote was converted, and the server has returned the resulting invoice.
21
+ */
22
+ export type ConvertQuoteConvertQuoteOk = {
23
+ /**
24
+ * Identifier of the invoice the quote was converted into.
25
+ */
26
+ id: number;
27
+ success: boolean;
28
+ /**
29
+ * Tax calculated on the new invoice.
30
+ */
31
+ tax?: number | null | undefined;
32
+ /**
33
+ * Shipping calculated on the new invoice.
34
+ */
35
+ shipping?: number | null | undefined;
36
+ /**
37
+ * Convenience fee calculated on the new invoice.
38
+ */
39
+ convenienceFee?: number | null | undefined;
40
+ /**
41
+ * Total amount due on the new invoice, including tax, shipping and the convenience fee.
42
+ */
43
+ total?: number | null | undefined;
44
+ };
45
+
46
+ /** @internal */
47
+ export type ConvertQuoteRequest$Outbound = {
48
+ id: number;
49
+ };
50
+
51
+ /** @internal */
52
+ export const ConvertQuoteRequest$outboundSchema: z.ZodType<
53
+ ConvertQuoteRequest$Outbound,
54
+ z.ZodTypeDef,
55
+ ConvertQuoteRequest
56
+ > = z.object({
57
+ id: z.number().int(),
58
+ });
59
+
60
+ export function convertQuoteRequestToJSON(
61
+ convertQuoteRequest: ConvertQuoteRequest,
62
+ ): string {
63
+ return JSON.stringify(
64
+ ConvertQuoteRequest$outboundSchema.parse(convertQuoteRequest),
65
+ );
66
+ }
67
+
68
+ /** @internal */
69
+ export const ConvertQuoteConvertQuoteOk$inboundSchema: z.ZodType<
70
+ ConvertQuoteConvertQuoteOk,
71
+ z.ZodTypeDef,
72
+ unknown
73
+ > = z.object({
74
+ id: types.number(),
75
+ success: types.boolean(),
76
+ tax: z.nullable(types.number()).optional(),
77
+ shipping: z.nullable(types.number()).optional(),
78
+ convenience_fee: z.nullable(types.number()).optional(),
79
+ total: z.nullable(types.number()).optional(),
80
+ }).transform((v) => {
81
+ return remap$(v, {
82
+ "convenience_fee": "convenienceFee",
83
+ });
84
+ });
85
+
86
+ export function convertQuoteConvertQuoteOkFromJSON(
87
+ jsonString: string,
88
+ ): SafeParseResult<ConvertQuoteConvertQuoteOk, SDKValidationError> {
89
+ return safeParse(
90
+ jsonString,
91
+ (x) => ConvertQuoteConvertQuoteOk$inboundSchema.parse(JSON.parse(x)),
92
+ `Failed to parse 'ConvertQuoteConvertQuoteOk' from JSON`,
93
+ );
94
+ }
@@ -33,10 +33,27 @@ export type CreateInvoiceRequestBodyInvoicesRequestLines = {
33
33
  paymentHandlerData?: string | undefined;
34
34
  };
35
35
 
36
+ /**
37
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
38
+ */
39
+ export const CreateInvoiceRequestBodyInvoicesRequestInvoiceType = {
40
+ Quote: "quote",
41
+ } as const;
42
+ /**
43
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
44
+ */
45
+ export type CreateInvoiceRequestBodyInvoicesRequestInvoiceType = ClosedEnum<
46
+ typeof CreateInvoiceRequestBodyInvoicesRequestInvoiceType
47
+ >;
48
+
36
49
  export type Five = {
37
50
  vendorCredentialId: number;
38
51
  lines?: Array<CreateInvoiceRequestBodyInvoicesRequestLines> | undefined;
39
52
  credentialPricingIds?: Array<number> | null | undefined;
53
+ /**
54
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
55
+ */
56
+ invoiceType?: CreateInvoiceRequestBodyInvoicesRequestInvoiceType | undefined;
40
57
  };
41
58
 
42
59
  export const CreateInvoiceRequestBodyInvoicesPaymentHandler = {
@@ -59,10 +76,27 @@ export type CreateInvoiceRequestBodyInvoicesLines = {
59
76
  paymentHandlerData?: string | undefined;
60
77
  };
61
78
 
79
+ /**
80
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
81
+ */
82
+ export const CreateInvoiceRequestBodyInvoicesInvoiceType = {
83
+ Quote: "quote",
84
+ } as const;
85
+ /**
86
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
87
+ */
88
+ export type CreateInvoiceRequestBodyInvoicesInvoiceType = ClosedEnum<
89
+ typeof CreateInvoiceRequestBodyInvoicesInvoiceType
90
+ >;
91
+
62
92
  export type Four = {
63
93
  systemId: number;
64
94
  lines?: Array<CreateInvoiceRequestBodyInvoicesLines> | undefined;
65
95
  credentialPricingIds?: Array<number> | null | undefined;
96
+ /**
97
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
98
+ */
99
+ invoiceType?: CreateInvoiceRequestBodyInvoicesInvoiceType | undefined;
66
100
  };
67
101
 
68
102
  export const CreateInvoiceRequestBodyPaymentHandler = {
@@ -85,10 +119,27 @@ export type CreateInvoiceRequestBodyLines = {
85
119
  paymentHandlerData?: string | undefined;
86
120
  };
87
121
 
122
+ /**
123
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
124
+ */
125
+ export const CreateInvoiceRequestBodyInvoiceType = {
126
+ Quote: "quote",
127
+ } as const;
128
+ /**
129
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
130
+ */
131
+ export type CreateInvoiceRequestBodyInvoiceType = ClosedEnum<
132
+ typeof CreateInvoiceRequestBodyInvoiceType
133
+ >;
134
+
88
135
  export type Three = {
89
136
  facilityId: number;
90
137
  lines?: Array<CreateInvoiceRequestBodyLines> | undefined;
91
138
  credentialPricingIds?: Array<number> | null | undefined;
139
+ /**
140
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
141
+ */
142
+ invoiceType?: CreateInvoiceRequestBodyInvoiceType | undefined;
92
143
  };
93
144
 
94
145
  export const RequestBodyPaymentHandler = {
@@ -111,10 +162,25 @@ export type RequestBodyLines = {
111
162
  paymentHandlerData?: string | undefined;
112
163
  };
113
164
 
165
+ /**
166
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
167
+ */
168
+ export const RequestBodyInvoiceType = {
169
+ Quote: "quote",
170
+ } as const;
171
+ /**
172
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
173
+ */
174
+ export type RequestBodyInvoiceType = ClosedEnum<typeof RequestBodyInvoiceType>;
175
+
114
176
  export type CreateInvoiceRequestBody2 = {
115
177
  companyId: number;
116
178
  lines?: Array<RequestBodyLines> | undefined;
117
179
  credentialPricingIds?: Array<number> | null | undefined;
180
+ /**
181
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
182
+ */
183
+ invoiceType?: RequestBodyInvoiceType | undefined;
118
184
  };
119
185
 
120
186
  export const PaymentHandler = {
@@ -135,10 +201,25 @@ export type Lines = {
135
201
  paymentHandlerData?: string | undefined;
136
202
  };
137
203
 
204
+ /**
205
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
206
+ */
207
+ export const InvoiceType = {
208
+ Quote: "quote",
209
+ } as const;
210
+ /**
211
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
212
+ */
213
+ export type InvoiceType = ClosedEnum<typeof InvoiceType>;
214
+
138
215
  export type RequestBody1 = {
139
216
  vendorId: number;
140
217
  lines?: Array<Lines> | undefined;
141
218
  credentialPricingIds?: Array<number> | null | undefined;
219
+ /**
220
+ * Set to `quote` to create a non-chargeable quote, used to preview an invoice's calculated totals before committing to it. Convert the quote into the real invoice with `POST /invoices/{id}/convert`. Omit this field to create a chargeable invoice directly.
221
+ */
222
+ invoiceType?: InvoiceType | undefined;
142
223
  };
143
224
 
144
225
  export type CreateInvoiceRequestBody =
@@ -218,6 +299,11 @@ export function createInvoiceRequestBodyInvoicesRequestLinesToJSON(
218
299
  );
219
300
  }
220
301
 
302
+ /** @internal */
303
+ export const CreateInvoiceRequestBodyInvoicesRequestInvoiceType$outboundSchema:
304
+ z.ZodNativeEnum<typeof CreateInvoiceRequestBodyInvoicesRequestInvoiceType> = z
305
+ .nativeEnum(CreateInvoiceRequestBodyInvoicesRequestInvoiceType);
306
+
221
307
  /** @internal */
222
308
  export type Five$Outbound = {
223
309
  vendor_credential_id: number;
@@ -225,6 +311,7 @@ export type Five$Outbound = {
225
311
  | Array<CreateInvoiceRequestBodyInvoicesRequestLines$Outbound>
226
312
  | undefined;
227
313
  credential_pricing_ids?: Array<number> | null | undefined;
314
+ invoice_type?: string | undefined;
228
315
  };
229
316
 
230
317
  /** @internal */
@@ -235,10 +322,14 @@ export const Five$outboundSchema: z.ZodType<Five$Outbound, z.ZodTypeDef, Five> =
235
322
  z.lazy(() => CreateInvoiceRequestBodyInvoicesRequestLines$outboundSchema),
236
323
  ).optional(),
237
324
  credentialPricingIds: z.nullable(z.array(z.number().int())).optional(),
325
+ invoiceType:
326
+ CreateInvoiceRequestBodyInvoicesRequestInvoiceType$outboundSchema
327
+ .optional(),
238
328
  }).transform((v) => {
239
329
  return remap$(v, {
240
330
  vendorCredentialId: "vendor_credential_id",
241
331
  credentialPricingIds: "credential_pricing_ids",
332
+ invoiceType: "invoice_type",
242
333
  });
243
334
  });
244
335
 
@@ -304,11 +395,17 @@ export function createInvoiceRequestBodyInvoicesLinesToJSON(
304
395
  );
305
396
  }
306
397
 
398
+ /** @internal */
399
+ export const CreateInvoiceRequestBodyInvoicesInvoiceType$outboundSchema:
400
+ z.ZodNativeEnum<typeof CreateInvoiceRequestBodyInvoicesInvoiceType> = z
401
+ .nativeEnum(CreateInvoiceRequestBodyInvoicesInvoiceType);
402
+
307
403
  /** @internal */
308
404
  export type Four$Outbound = {
309
405
  system_id: number;
310
406
  lines?: Array<CreateInvoiceRequestBodyInvoicesLines$Outbound> | undefined;
311
407
  credential_pricing_ids?: Array<number> | null | undefined;
408
+ invoice_type?: string | undefined;
312
409
  };
313
410
 
314
411
  /** @internal */
@@ -319,10 +416,13 @@ export const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four> =
319
416
  z.lazy(() => CreateInvoiceRequestBodyInvoicesLines$outboundSchema),
320
417
  ).optional(),
321
418
  credentialPricingIds: z.nullable(z.array(z.number().int())).optional(),
419
+ invoiceType: CreateInvoiceRequestBodyInvoicesInvoiceType$outboundSchema
420
+ .optional(),
322
421
  }).transform((v) => {
323
422
  return remap$(v, {
324
423
  systemId: "system_id",
325
424
  credentialPricingIds: "credential_pricing_ids",
425
+ invoiceType: "invoice_type",
326
426
  });
327
427
  });
328
428
 
@@ -389,11 +489,18 @@ export function createInvoiceRequestBodyLinesToJSON(
389
489
  );
390
490
  }
391
491
 
492
+ /** @internal */
493
+ export const CreateInvoiceRequestBodyInvoiceType$outboundSchema:
494
+ z.ZodNativeEnum<typeof CreateInvoiceRequestBodyInvoiceType> = z.nativeEnum(
495
+ CreateInvoiceRequestBodyInvoiceType,
496
+ );
497
+
392
498
  /** @internal */
393
499
  export type Three$Outbound = {
394
500
  facility_id: number;
395
501
  lines?: Array<CreateInvoiceRequestBodyLines$Outbound> | undefined;
396
502
  credential_pricing_ids?: Array<number> | null | undefined;
503
+ invoice_type?: string | undefined;
397
504
  };
398
505
 
399
506
  /** @internal */
@@ -406,10 +513,12 @@ export const Three$outboundSchema: z.ZodType<
406
513
  lines: z.array(z.lazy(() => CreateInvoiceRequestBodyLines$outboundSchema))
407
514
  .optional(),
408
515
  credentialPricingIds: z.nullable(z.array(z.number().int())).optional(),
516
+ invoiceType: CreateInvoiceRequestBodyInvoiceType$outboundSchema.optional(),
409
517
  }).transform((v) => {
410
518
  return remap$(v, {
411
519
  facilityId: "facility_id",
412
520
  credentialPricingIds: "credential_pricing_ids",
521
+ invoiceType: "invoice_type",
413
522
  });
414
523
  });
415
524
 
@@ -472,11 +581,17 @@ export function requestBodyLinesToJSON(
472
581
  );
473
582
  }
474
583
 
584
+ /** @internal */
585
+ export const RequestBodyInvoiceType$outboundSchema: z.ZodNativeEnum<
586
+ typeof RequestBodyInvoiceType
587
+ > = z.nativeEnum(RequestBodyInvoiceType);
588
+
475
589
  /** @internal */
476
590
  export type CreateInvoiceRequestBody2$Outbound = {
477
591
  company_id: number;
478
592
  lines?: Array<RequestBodyLines$Outbound> | undefined;
479
593
  credential_pricing_ids?: Array<number> | null | undefined;
594
+ invoice_type?: string | undefined;
480
595
  };
481
596
 
482
597
  /** @internal */
@@ -488,10 +603,12 @@ export const CreateInvoiceRequestBody2$outboundSchema: z.ZodType<
488
603
  companyId: z.number().int(),
489
604
  lines: z.array(z.lazy(() => RequestBodyLines$outboundSchema)).optional(),
490
605
  credentialPricingIds: z.nullable(z.array(z.number().int())).optional(),
606
+ invoiceType: RequestBodyInvoiceType$outboundSchema.optional(),
491
607
  }).transform((v) => {
492
608
  return remap$(v, {
493
609
  companyId: "company_id",
494
610
  credentialPricingIds: "credential_pricing_ids",
611
+ invoiceType: "invoice_type",
495
612
  });
496
613
  });
497
614
 
@@ -554,11 +671,16 @@ export function linesToJSON(lines: Lines): string {
554
671
  return JSON.stringify(Lines$outboundSchema.parse(lines));
555
672
  }
556
673
 
674
+ /** @internal */
675
+ export const InvoiceType$outboundSchema: z.ZodNativeEnum<typeof InvoiceType> = z
676
+ .nativeEnum(InvoiceType);
677
+
557
678
  /** @internal */
558
679
  export type RequestBody1$Outbound = {
559
680
  vendor_id: number;
560
681
  lines?: Array<Lines$Outbound> | undefined;
561
682
  credential_pricing_ids?: Array<number> | null | undefined;
683
+ invoice_type?: string | undefined;
562
684
  };
563
685
 
564
686
  /** @internal */
@@ -570,10 +692,12 @@ export const RequestBody1$outboundSchema: z.ZodType<
570
692
  vendorId: z.number().int(),
571
693
  lines: z.array(z.lazy(() => Lines$outboundSchema)).optional(),
572
694
  credentialPricingIds: z.nullable(z.array(z.number().int())).optional(),
695
+ invoiceType: InvoiceType$outboundSchema.optional(),
573
696
  }).transform((v) => {
574
697
  return remap$(v, {
575
698
  vendorId: "vendor_id",
576
699
  credentialPricingIds: "credential_pricing_ids",
700
+ invoiceType: "invoice_type",
577
701
  });
578
702
  });
579
703
 
@@ -28,7 +28,13 @@ export type CreateVendorCompanyRequestBody = {
28
28
  */
29
29
  state: components.State | null;
30
30
  /**
31
- * The vendor company zip
31
+ * The vendor company zip. Cross-checked against `state` (always
32
+ *
33
+ * @remarks
34
+ * treated as a US address on this endpoint) — a code that is not
35
+ * shaped like a real US ZIP, or that provably belongs to a
36
+ * different state, is rejected with `400` naming the correct
37
+ * state.
32
38
  */
33
39
  zip: string;
34
40
  /**