@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
@@ -56,6 +56,12 @@ export type UsersUpdateUserMutationError =
56
56
  * Only submitted fields are applied — unrecognised fields are silently ignored.
57
57
  * Changing `email` automatically resets `bounced_email` to `false`.
58
58
  *
59
+ * Submitting `zip`, `state`, or `country` cross-checks the postal code against the
60
+ * resulting state/country (using the existing value for any of the three left out
61
+ * of the request). A code that is not shaped like a real postal code, or that
62
+ * provably belongs to a different state, is rejected with `422` naming the correct
63
+ * state.
64
+ *
59
65
  * Each subkey of `email_preferences` is independently optional; sending
60
66
  * `{ "email_preferences": { "send_weekly_summary_email": true } }` flips
61
67
  * only that flag and leaves the others unchanged.
@@ -55,6 +55,10 @@ export type VendorsCreateVendorMutationError =
55
55
  * `company_id` is optional for company managers — it defaults to their own company.
56
56
  * All other callers must provide `company_id`. The caller must have access to the
57
57
  * specified company (verified via scoped access policy) and the `vendors:add` permission.
58
+ *
59
+ * `zip` is cross-checked against `state`: a code that is not shaped like a real postal
60
+ * code, or that provably belongs to a different state, is rejected with `422` naming
61
+ * the correct state.
58
62
  */
59
63
  export function useVendorsCreateVendorMutation(
60
64
  options?: MutationHookOptions<
@@ -63,6 +63,7 @@ export type VendorsGetVendorCredentialDetailsQueryError =
63
63
  * - vendor_credential.credential
64
64
  * - vendor_credential.vendor
65
65
  * - vendor_credential.invoice
66
+ * - vendor_credential.quote
66
67
  * - vendor_credential.vendor_credential_files
67
68
  * - vendor_credential.latest_vendor_credential_id
68
69
  * - vendor_credential.previously_approved
@@ -118,6 +119,7 @@ export function useVendorsGetVendorCredentialDetails(
118
119
  * - vendor_credential.credential
119
120
  * - vendor_credential.vendor
120
121
  * - vendor_credential.invoice
122
+ * - vendor_credential.quote
121
123
  * - vendor_credential.vendor_credential_files
122
124
  * - vendor_credential.latest_vendor_credential_id
123
125
  * - vendor_credential.previously_approved
@@ -56,7 +56,15 @@ export type VendorsUpdateVendorDetailsMutationError =
56
56
  * From `location` this endpoint reads only `timezone`, `address1`, `address2`,
57
57
  * `city`, `state`, `zip`, `phone`, `mobile_phone` and `fax`. The `address` and
58
58
  * `country` properties of the shared `UserLocation` schema are ignored here and
59
- * updating them is not supported.
59
+ * updating them is not supported. `state` accepts a US state or a Canadian
60
+ * province — the vendor's country, set only at registration, is not editable
61
+ * through this endpoint.
62
+ *
63
+ * Submitting `location.zip` or `location.state` cross-checks the postal code
64
+ * against the resulting state (using the vendor's existing value for whichever
65
+ * of the two is left out of the request). A code that is not shaped like a real
66
+ * postal code, or that provably belongs to a different state, is rejected with
67
+ * `422` naming the correct state.
60
68
  *
61
69
  * For `title`, the `supervisor` fields, and every `location` field except
62
70
  * `timezone`, the value sent is the value stored: omit a field to leave it
@@ -57,6 +57,7 @@ export function buildVendorsVendorsExportQuery(
57
57
  zipLike: request.zipLike,
58
58
  status: request.status,
59
59
  companyId: request.companyId,
60
+ externallyManagedByCompanyId: request.externallyManagedByCompanyId,
60
61
  credentialingSubscriptionIdNull: request.credentialingSubscriptionIdNull,
61
62
  scrubsSubscriptionIdNull: request.scrubsSubscriptionIdNull,
62
63
  credentialingSubscriptionStatus: request.credentialingSubscriptionStatus,
@@ -110,6 +111,7 @@ export function queryKeyVendorsVendorsExport(
110
111
  zipLike?: string | undefined;
111
112
  status?: string | undefined;
112
113
  companyId?: number | undefined;
114
+ externallyManagedByCompanyId?: number | undefined;
113
115
  credentialingSubscriptionIdNull?: string | undefined;
114
116
  scrubsSubscriptionIdNull?: string | undefined;
115
117
  credentialingSubscriptionStatus?: string | undefined;
@@ -58,7 +58,10 @@ export type VendorsVendorsExportQueryError =
58
58
  *
59
59
  * @remarks
60
60
  * Enqueues an asynchronous job to generate a CSV export of vendors based on the
61
- * provided filters (the same filters supported by the vendors list endpoint).
61
+ * provided filters (the same filters supported by the vendors list endpoint), in the same
62
+ * credential-inclusive format as the portal's "Download Full Report" button - one column per
63
+ * applicable credential (status, due date, expiration), plus counts and percentage approved,
64
+ * alongside the vendor's identity, contact, and company details.
62
65
  * Returns a `status_url` to poll until the export is ready, plus a
63
66
  * `download_url` and `status_id`.
64
67
  */
@@ -88,7 +91,10 @@ export function useVendorsVendorsExport(
88
91
  *
89
92
  * @remarks
90
93
  * Enqueues an asynchronous job to generate a CSV export of vendors based on the
91
- * provided filters (the same filters supported by the vendors list endpoint).
94
+ * provided filters (the same filters supported by the vendors list endpoint), in the same
95
+ * credential-inclusive format as the portal's "Download Full Report" button - one column per
96
+ * applicable credential (status, due date, expiration), plus counts and percentage approved,
97
+ * alongside the vendor's identity, contact, and company details.
92
98
  * Returns a `status_url` to poll until the export is ready, plus a
93
99
  * `download_url` and `status_id`.
94
100
  */
@@ -130,6 +136,7 @@ export function setVendorsVendorsExportData(
130
136
  zipLike?: string | undefined;
131
137
  status?: string | undefined;
132
138
  companyId?: number | undefined;
139
+ externallyManagedByCompanyId?: number | undefined;
133
140
  credentialingSubscriptionIdNull?: string | undefined;
134
141
  scrubsSubscriptionIdNull?: string | undefined;
135
142
  credentialingSubscriptionStatus?: string | undefined;
@@ -170,6 +177,7 @@ export function invalidateVendorsVendorsExport(
170
177
  zipLike?: string | undefined;
171
178
  status?: string | undefined;
172
179
  companyId?: number | undefined;
180
+ externallyManagedByCompanyId?: number | undefined;
173
181
  credentialingSubscriptionIdNull?: string | undefined;
174
182
  scrubsSubscriptionIdNull?: string | undefined;
175
183
  credentialingSubscriptionStatus?: string | undefined;
@@ -2,6 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import { invoicesConvertQuote } from "../funcs/invoicesConvertQuote.js";
5
6
  import { invoicesCreateInvoice } from "../funcs/invoicesCreateInvoice.js";
6
7
  import {
7
8
  DownloadInvoicesExportAcceptEnum,
@@ -152,6 +153,36 @@ export class Invoices extends ClientSDK {
152
153
  ));
153
154
  }
154
155
 
156
+ /**
157
+ * Convert a quote into an invoice
158
+ *
159
+ * @remarks
160
+ * Converts a quote into the real invoice its caller will be charged for, and
161
+ * returns the new invoice with its calculated totals. Any `VendorCredential`
162
+ * linked to the quote is re-pointed at the new invoice.
163
+ *
164
+ * The operation is idempotent: converting a quote that has already been
165
+ * processed returns the invoice previously created from it rather than
166
+ * creating a second one, so a retried request is safe.
167
+ *
168
+ * The referenced invoice must actually be a quote — a non-quote invoice id
169
+ * responds `400`. Requires a caller whose access scope permits creating
170
+ * invoices; a caller allowed to create the invoice but not to update the
171
+ * linked `VendorCredential` responds `401`.
172
+ *
173
+ * Takes no request body.
174
+ */
175
+ async convertQuote(
176
+ request: operations.ConvertQuoteRequest,
177
+ options?: RequestOptions,
178
+ ): Promise<operations.ConvertQuoteConvertQuoteOk> {
179
+ return unwrapAsync(invoicesConvertQuote(
180
+ this,
181
+ request,
182
+ options,
183
+ ));
184
+ }
185
+
155
186
  /**
156
187
  * Export invoices to csv (async)
157
188
  *
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  import { lookupsListLookupSystems } from "../funcs/lookupsListLookupSystems.js";
6
+ import { lookupsLookupPostalCode } from "../funcs/lookupsLookupPostalCode.js";
6
7
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
8
  import * as operations from "../models/operations/index.js";
8
9
  import { unwrapAsync } from "../types/fp.js";
@@ -31,4 +32,36 @@ export class Lookups extends ClientSDK {
31
32
  options,
32
33
  ));
33
34
  }
35
+
36
+ /**
37
+ * Check a postal code against a state and country
38
+ *
39
+ * @remarks
40
+ * Cross-checks a postal code against a state/province and country, the same check
41
+ * every write path that stores a US or Canadian address enforces server-side (e.g.
42
+ * `PUT /users/{id}`, `PUT /vendors/{vendor_id_or_me}`). Useful for validating an
43
+ * address before submitting it elsewhere.
44
+ *
45
+ * `status` is one of:
46
+ * - `ok` — the postal code belongs to the given state/province.
47
+ * - `invalid` — the postal code is not shaped like a real one for the given country.
48
+ * - `mismatch` — the postal code is well-formed but belongs to a different state or
49
+ * province. `expected_states` names the state(s) it actually maps to.
50
+ * - `unknown` — nothing to check against (an unsupported country, or a postal code
51
+ * absent from the US ZIP dataset). Treated as acceptable by every write path that
52
+ * uses this check.
53
+ *
54
+ * Only the US and Canada have a real code-to-subdivision map; every other country
55
+ * always returns `unknown`.
56
+ */
57
+ async lookupPostalCode(
58
+ request: operations.LookupPostalCodeRequest,
59
+ options?: RequestOptions,
60
+ ): Promise<operations.LookupPostalCodeLookupPostalCodeOk> {
61
+ return unwrapAsync(lookupsLookupPostalCode(
62
+ this,
63
+ request,
64
+ options,
65
+ ));
66
+ }
34
67
  }
package/src/sdk/users.ts CHANGED
@@ -85,6 +85,12 @@ export class Users extends ClientSDK {
85
85
  * Only submitted fields are applied — unrecognised fields are silently ignored.
86
86
  * Changing `email` automatically resets `bounced_email` to `false`.
87
87
  *
88
+ * Submitting `zip`, `state`, or `country` cross-checks the postal code against the
89
+ * resulting state/country (using the existing value for any of the three left out
90
+ * of the request). A code that is not shaped like a real postal code, or that
91
+ * provably belongs to a different state, is rejected with `422` naming the correct
92
+ * state.
93
+ *
88
94
  * Each subkey of `email_preferences` is independently optional; sending
89
95
  * `{ "email_preferences": { "send_weekly_summary_email": true } }` flips
90
96
  * only that flag and leaves the others unchanged.
@@ -132,6 +132,10 @@ export class Vendors extends ClientSDK {
132
132
  * `company_id` is optional for company managers — it defaults to their own company.
133
133
  * All other callers must provide `company_id`. The caller must have access to the
134
134
  * specified company (verified via scoped access policy) and the `vendors:add` permission.
135
+ *
136
+ * `zip` is cross-checked against `state`: a code that is not shaped like a real postal
137
+ * code, or that provably belongs to a different state, is rejected with `422` naming
138
+ * the correct state.
135
139
  */
136
140
  async createVendor(
137
141
  request: operations.CreateVendorRequestBody,
@@ -273,6 +277,7 @@ export class Vendors extends ClientSDK {
273
277
  * - vendor_credential.credential
274
278
  * - vendor_credential.vendor
275
279
  * - vendor_credential.invoice
280
+ * - vendor_credential.quote
276
281
  * - vendor_credential.vendor_credential_files
277
282
  * - vendor_credential.latest_vendor_credential_id
278
283
  * - vendor_credential.previously_approved
@@ -879,7 +884,15 @@ export class Vendors extends ClientSDK {
879
884
  * From `location` this endpoint reads only `timezone`, `address1`, `address2`,
880
885
  * `city`, `state`, `zip`, `phone`, `mobile_phone` and `fax`. The `address` and
881
886
  * `country` properties of the shared `UserLocation` schema are ignored here and
882
- * updating them is not supported.
887
+ * updating them is not supported. `state` accepts a US state or a Canadian
888
+ * province — the vendor's country, set only at registration, is not editable
889
+ * through this endpoint.
890
+ *
891
+ * Submitting `location.zip` or `location.state` cross-checks the postal code
892
+ * against the resulting state (using the vendor's existing value for whichever
893
+ * of the two is left out of the request). A code that is not shaped like a real
894
+ * postal code, or that provably belongs to a different state, is rejected with
895
+ * `422` naming the correct state.
883
896
  *
884
897
  * For `title`, the `supervisor` fields, and every `location` field except
885
898
  * `timezone`, the value sent is the value stored: omit a field to leave it
@@ -1078,7 +1091,10 @@ export class Vendors extends ClientSDK {
1078
1091
  *
1079
1092
  * @remarks
1080
1093
  * Enqueues an asynchronous job to generate a CSV export of vendors based on the
1081
- * provided filters (the same filters supported by the vendors list endpoint).
1094
+ * provided filters (the same filters supported by the vendors list endpoint), in the same
1095
+ * credential-inclusive format as the portal's "Download Full Report" button - one column per
1096
+ * applicable credential (status, due date, expiration), plus counts and percentage approved,
1097
+ * alongside the vendor's identity, contact, and company details.
1082
1098
  * Returns a `status_url` to poll until the export is ready, plus a
1083
1099
  * `download_url` and `status_id`.
1084
1100
  */