@greensecurity/javascript-sdk 0.48.0-beta.9 → 0.49.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/README.md +1 -1
  2. package/dist/commonjs/__tests__/fhirconfigs.test.js +18 -0
  3. package/dist/commonjs/__tests__/fhirconfigs.test.js.map +1 -1
  4. package/dist/commonjs/__tests__/subscriptionPlanSelection.test.d.ts +2 -0
  5. package/dist/commonjs/__tests__/subscriptionPlanSelection.test.d.ts.map +1 -0
  6. package/dist/commonjs/__tests__/subscriptionPlanSelection.test.js +36 -0
  7. package/dist/commonjs/__tests__/subscriptionPlanSelection.test.js.map +1 -0
  8. package/dist/commonjs/__tests__/users.test.js +3 -0
  9. package/dist/commonjs/__tests__/users.test.js.map +1 -1
  10. package/dist/commonjs/__tests__/vendors.test.js +1 -1
  11. package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
  12. package/dist/commonjs/__tests__/zoneDevicesCreate.test.js +34 -0
  13. package/dist/commonjs/__tests__/zoneDevicesCreate.test.js.map +1 -1
  14. package/dist/commonjs/__tests__/zoneDevicesList.test.js +4 -0
  15. package/dist/commonjs/__tests__/zoneDevicesList.test.js.map +1 -1
  16. package/dist/commonjs/__tests__/zones.test.js +2 -9
  17. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  18. package/dist/commonjs/admin-funcs/doAdmin.d.ts +5 -4
  19. package/dist/commonjs/admin-funcs/doAdmin.d.ts.map +1 -1
  20. package/dist/commonjs/admin-funcs/doAdmin.js +10 -5
  21. package/dist/commonjs/admin-funcs/doAdmin.js.map +1 -1
  22. package/dist/commonjs/admin-funcs/subscriptionFinishScreeningQuestions.d.ts +3 -2
  23. package/dist/commonjs/admin-funcs/subscriptionFinishScreeningQuestions.d.ts.map +1 -1
  24. package/dist/commonjs/admin-funcs/subscriptionFinishScreeningQuestions.js +2 -1
  25. package/dist/commonjs/admin-funcs/subscriptionFinishScreeningQuestions.js.map +1 -1
  26. package/dist/commonjs/admin-funcs/subscriptionPlanSelection.d.ts +7 -0
  27. package/dist/commonjs/admin-funcs/subscriptionPlanSelection.d.ts.map +1 -0
  28. package/dist/commonjs/admin-funcs/subscriptionPlanSelection.js +45 -0
  29. package/dist/commonjs/admin-funcs/subscriptionPlanSelection.js.map +1 -0
  30. package/dist/commonjs/admin-funcs/subscriptionUpdateVendorType.d.ts +3 -2
  31. package/dist/commonjs/admin-funcs/subscriptionUpdateVendorType.d.ts.map +1 -1
  32. package/dist/commonjs/admin-funcs/subscriptionUpdateVendorType.js +2 -1
  33. package/dist/commonjs/admin-funcs/subscriptionUpdateVendorType.js.map +1 -1
  34. package/dist/commonjs/admin-funcs/zoneDevicesFactoryReset.d.ts +3 -0
  35. package/dist/commonjs/admin-funcs/zoneDevicesFactoryReset.d.ts.map +1 -0
  36. package/dist/commonjs/admin-funcs/zoneDevicesFactoryReset.js +14 -0
  37. package/dist/commonjs/admin-funcs/zoneDevicesFactoryReset.js.map +1 -0
  38. package/dist/commonjs/admin-funcs/zoneDevicesFirmwareUpdate.d.ts +3 -0
  39. package/dist/commonjs/admin-funcs/zoneDevicesFirmwareUpdate.d.ts.map +1 -0
  40. package/dist/commonjs/admin-funcs/zoneDevicesFirmwareUpdate.js +14 -0
  41. package/dist/commonjs/admin-funcs/zoneDevicesFirmwareUpdate.js.map +1 -0
  42. package/dist/commonjs/admin-funcs/zoneDevicesFirmwareVersions.d.ts +8 -0
  43. package/dist/commonjs/admin-funcs/zoneDevicesFirmwareVersions.d.ts.map +1 -0
  44. package/dist/commonjs/admin-funcs/zoneDevicesFirmwareVersions.js +13 -0
  45. package/dist/commonjs/admin-funcs/zoneDevicesFirmwareVersions.js.map +1 -0
  46. package/dist/commonjs/admin-funcs/zoneDevicesReboot.d.ts +3 -0
  47. package/dist/commonjs/admin-funcs/zoneDevicesReboot.d.ts.map +1 -0
  48. package/dist/commonjs/admin-funcs/zoneDevicesReboot.js +13 -0
  49. package/dist/commonjs/admin-funcs/zoneDevicesReboot.js.map +1 -0
  50. package/dist/commonjs/admin-funcs/zoneDevicesUpdate.d.ts +2 -0
  51. package/dist/commonjs/admin-funcs/zoneDevicesUpdate.d.ts.map +1 -1
  52. package/dist/commonjs/admin-funcs/zoneDevicesUpdate.js.map +1 -1
  53. package/dist/commonjs/funcs/invoicesConvertQuote.d.ts +1 -4
  54. package/dist/commonjs/funcs/invoicesConvertQuote.d.ts.map +1 -1
  55. package/dist/commonjs/funcs/invoicesConvertQuote.js +2 -6
  56. package/dist/commonjs/funcs/invoicesConvertQuote.js.map +1 -1
  57. package/dist/commonjs/funcs/vendorsChangeSubscription.d.ts +3 -2
  58. package/dist/commonjs/funcs/vendorsChangeSubscription.d.ts.map +1 -1
  59. package/dist/commonjs/funcs/vendorsChangeSubscription.js +3 -2
  60. package/dist/commonjs/funcs/vendorsChangeSubscription.js.map +1 -1
  61. package/dist/commonjs/funcs/vendorsCreateVendorCompany.d.ts +1 -1
  62. package/dist/commonjs/funcs/vendorsCreateVendorCompany.d.ts.map +1 -1
  63. package/dist/commonjs/funcs/vendorsCreateVendorCompany.js +1 -1
  64. package/dist/commonjs/funcs/vendorsCreateVendorCompany.js.map +1 -1
  65. package/dist/commonjs/funcs/vendorsUpdateVendorDetails.d.ts +9 -1
  66. package/dist/commonjs/funcs/vendorsUpdateVendorDetails.d.ts.map +1 -1
  67. package/dist/commonjs/funcs/vendorsUpdateVendorDetails.js +9 -1
  68. package/dist/commonjs/funcs/vendorsUpdateVendorDetails.js.map +1 -1
  69. package/dist/commonjs/index.extras.d.ts +8 -0
  70. package/dist/commonjs/index.extras.d.ts.map +1 -1
  71. package/dist/commonjs/index.extras.js +9 -1
  72. package/dist/commonjs/index.extras.js.map +1 -1
  73. package/dist/commonjs/lib/config.d.ts +4 -4
  74. package/dist/commonjs/lib/config.js +4 -4
  75. package/dist/commonjs/lib/config.js.map +1 -1
  76. package/dist/commonjs/models/components/fhirconfig.d.ts +12 -0
  77. package/dist/commonjs/models/components/fhirconfig.d.ts.map +1 -1
  78. package/dist/commonjs/models/components/fhirconfig.js +4 -0
  79. package/dist/commonjs/models/components/fhirconfig.js.map +1 -1
  80. package/dist/commonjs/models/components/invoice.d.ts +0 -5
  81. package/dist/commonjs/models/components/invoice.d.ts.map +1 -1
  82. package/dist/commonjs/models/components/invoice.js +0 -4
  83. package/dist/commonjs/models/components/invoice.js.map +1 -1
  84. package/dist/commonjs/models/components/userdetails.d.ts +22 -0
  85. package/dist/commonjs/models/components/userdetails.d.ts.map +1 -1
  86. package/dist/commonjs/models/components/userdetails.js +6 -0
  87. package/dist/commonjs/models/components/userdetails.js.map +1 -1
  88. package/dist/commonjs/models/components/userlocation.d.ts +10 -0
  89. package/dist/commonjs/models/components/userlocation.d.ts.map +1 -1
  90. package/dist/commonjs/models/components/userlocation.js +8 -0
  91. package/dist/commonjs/models/components/userlocation.js.map +1 -1
  92. package/dist/commonjs/models/operations/convertquote.d.ts +0 -21
  93. package/dist/commonjs/models/operations/convertquote.d.ts.map +1 -1
  94. package/dist/commonjs/models/operations/convertquote.js +1 -18
  95. package/dist/commonjs/models/operations/convertquote.js.map +1 -1
  96. package/dist/commonjs/models/operations/createinvoice.d.ts +0 -25
  97. package/dist/commonjs/models/operations/createinvoice.d.ts.map +1 -1
  98. package/dist/commonjs/models/operations/createinvoice.js +0 -10
  99. package/dist/commonjs/models/operations/createinvoice.js.map +1 -1
  100. package/dist/commonjs/models/operations/updateuser.d.ts +0 -2
  101. package/dist/commonjs/models/operations/updateuser.d.ts.map +1 -1
  102. package/dist/commonjs/models/operations/updateuser.js +0 -1
  103. package/dist/commonjs/models/operations/updateuser.js.map +1 -1
  104. package/dist/commonjs/react-query/invoicesConvertQuote.d.ts +1 -4
  105. package/dist/commonjs/react-query/invoicesConvertQuote.d.ts.map +1 -1
  106. package/dist/commonjs/react-query/invoicesConvertQuote.js +1 -4
  107. package/dist/commonjs/react-query/invoicesConvertQuote.js.map +1 -1
  108. package/dist/commonjs/react-query/vendorsChangeSubscription.d.ts +3 -2
  109. package/dist/commonjs/react-query/vendorsChangeSubscription.d.ts.map +1 -1
  110. package/dist/commonjs/react-query/vendorsChangeSubscription.js +3 -2
  111. package/dist/commonjs/react-query/vendorsChangeSubscription.js.map +1 -1
  112. package/dist/commonjs/react-query/vendorsCreateVendorCompany.d.ts +1 -1
  113. package/dist/commonjs/react-query/vendorsCreateVendorCompany.d.ts.map +1 -1
  114. package/dist/commonjs/react-query/vendorsCreateVendorCompany.js.map +1 -1
  115. package/dist/commonjs/react-query/vendorsUpdateVendorDetails.d.ts +9 -1
  116. package/dist/commonjs/react-query/vendorsUpdateVendorDetails.d.ts.map +1 -1
  117. package/dist/commonjs/react-query/vendorsUpdateVendorDetails.js +9 -1
  118. package/dist/commonjs/react-query/vendorsUpdateVendorDetails.js.map +1 -1
  119. package/dist/commonjs/sdk/invoices.d.ts +1 -4
  120. package/dist/commonjs/sdk/invoices.d.ts.map +1 -1
  121. package/dist/commonjs/sdk/invoices.js +1 -4
  122. package/dist/commonjs/sdk/invoices.js.map +1 -1
  123. package/dist/commonjs/sdk/vendors.d.ts +12 -3
  124. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  125. package/dist/commonjs/sdk/vendors.js +12 -3
  126. package/dist/commonjs/sdk/vendors.js.map +1 -1
  127. package/dist/esm/__tests__/fhirconfigs.test.js +18 -0
  128. package/dist/esm/__tests__/fhirconfigs.test.js.map +1 -1
  129. package/dist/esm/__tests__/subscriptionPlanSelection.test.d.ts +2 -0
  130. package/dist/esm/__tests__/subscriptionPlanSelection.test.d.ts.map +1 -0
  131. package/dist/esm/__tests__/subscriptionPlanSelection.test.js +34 -0
  132. package/dist/esm/__tests__/subscriptionPlanSelection.test.js.map +1 -0
  133. package/dist/esm/__tests__/users.test.js +3 -0
  134. package/dist/esm/__tests__/users.test.js.map +1 -1
  135. package/dist/esm/__tests__/vendors.test.js +1 -1
  136. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  137. package/dist/esm/__tests__/zoneDevicesCreate.test.js +34 -0
  138. package/dist/esm/__tests__/zoneDevicesCreate.test.js.map +1 -1
  139. package/dist/esm/__tests__/zoneDevicesList.test.js +4 -0
  140. package/dist/esm/__tests__/zoneDevicesList.test.js.map +1 -1
  141. package/dist/esm/__tests__/zones.test.js +2 -9
  142. package/dist/esm/__tests__/zones.test.js.map +1 -1
  143. package/dist/esm/admin-funcs/doAdmin.d.ts +5 -4
  144. package/dist/esm/admin-funcs/doAdmin.d.ts.map +1 -1
  145. package/dist/esm/admin-funcs/doAdmin.js +10 -5
  146. package/dist/esm/admin-funcs/doAdmin.js.map +1 -1
  147. package/dist/esm/admin-funcs/subscriptionFinishScreeningQuestions.d.ts +3 -2
  148. package/dist/esm/admin-funcs/subscriptionFinishScreeningQuestions.d.ts.map +1 -1
  149. package/dist/esm/admin-funcs/subscriptionFinishScreeningQuestions.js +2 -1
  150. package/dist/esm/admin-funcs/subscriptionFinishScreeningQuestions.js.map +1 -1
  151. package/dist/esm/admin-funcs/subscriptionPlanSelection.d.ts +7 -0
  152. package/dist/esm/admin-funcs/subscriptionPlanSelection.d.ts.map +1 -0
  153. package/dist/esm/admin-funcs/subscriptionPlanSelection.js +9 -0
  154. package/dist/esm/admin-funcs/subscriptionPlanSelection.js.map +1 -0
  155. package/dist/esm/admin-funcs/subscriptionUpdateVendorType.d.ts +3 -2
  156. package/dist/esm/admin-funcs/subscriptionUpdateVendorType.d.ts.map +1 -1
  157. package/dist/esm/admin-funcs/subscriptionUpdateVendorType.js +2 -1
  158. package/dist/esm/admin-funcs/subscriptionUpdateVendorType.js.map +1 -1
  159. package/dist/esm/admin-funcs/zoneDevicesFactoryReset.d.ts +3 -0
  160. package/dist/esm/admin-funcs/zoneDevicesFactoryReset.d.ts.map +1 -0
  161. package/dist/esm/admin-funcs/zoneDevicesFactoryReset.js +11 -0
  162. package/dist/esm/admin-funcs/zoneDevicesFactoryReset.js.map +1 -0
  163. package/dist/esm/admin-funcs/zoneDevicesFirmwareUpdate.d.ts +3 -0
  164. package/dist/esm/admin-funcs/zoneDevicesFirmwareUpdate.d.ts.map +1 -0
  165. package/dist/esm/admin-funcs/zoneDevicesFirmwareUpdate.js +11 -0
  166. package/dist/esm/admin-funcs/zoneDevicesFirmwareUpdate.js.map +1 -0
  167. package/dist/esm/admin-funcs/zoneDevicesFirmwareVersions.d.ts +8 -0
  168. package/dist/esm/admin-funcs/zoneDevicesFirmwareVersions.d.ts.map +1 -0
  169. package/dist/esm/admin-funcs/zoneDevicesFirmwareVersions.js +10 -0
  170. package/dist/esm/admin-funcs/zoneDevicesFirmwareVersions.js.map +1 -0
  171. package/dist/esm/admin-funcs/zoneDevicesReboot.d.ts +3 -0
  172. package/dist/esm/admin-funcs/zoneDevicesReboot.d.ts.map +1 -0
  173. package/dist/esm/admin-funcs/zoneDevicesReboot.js +10 -0
  174. package/dist/esm/admin-funcs/zoneDevicesReboot.js.map +1 -0
  175. package/dist/esm/admin-funcs/zoneDevicesUpdate.d.ts +2 -0
  176. package/dist/esm/admin-funcs/zoneDevicesUpdate.d.ts.map +1 -1
  177. package/dist/esm/admin-funcs/zoneDevicesUpdate.js.map +1 -1
  178. package/dist/esm/funcs/invoicesConvertQuote.d.ts +1 -4
  179. package/dist/esm/funcs/invoicesConvertQuote.d.ts.map +1 -1
  180. package/dist/esm/funcs/invoicesConvertQuote.js +3 -7
  181. package/dist/esm/funcs/invoicesConvertQuote.js.map +1 -1
  182. package/dist/esm/funcs/vendorsChangeSubscription.d.ts +3 -2
  183. package/dist/esm/funcs/vendorsChangeSubscription.d.ts.map +1 -1
  184. package/dist/esm/funcs/vendorsChangeSubscription.js +3 -2
  185. package/dist/esm/funcs/vendorsChangeSubscription.js.map +1 -1
  186. package/dist/esm/funcs/vendorsCreateVendorCompany.d.ts +1 -1
  187. package/dist/esm/funcs/vendorsCreateVendorCompany.d.ts.map +1 -1
  188. package/dist/esm/funcs/vendorsCreateVendorCompany.js +1 -1
  189. package/dist/esm/funcs/vendorsCreateVendorCompany.js.map +1 -1
  190. package/dist/esm/funcs/vendorsUpdateVendorDetails.d.ts +9 -1
  191. package/dist/esm/funcs/vendorsUpdateVendorDetails.d.ts.map +1 -1
  192. package/dist/esm/funcs/vendorsUpdateVendorDetails.js +9 -1
  193. package/dist/esm/funcs/vendorsUpdateVendorDetails.js.map +1 -1
  194. package/dist/esm/index.extras.d.ts +8 -0
  195. package/dist/esm/index.extras.d.ts.map +1 -1
  196. package/dist/esm/index.extras.js +9 -1
  197. package/dist/esm/index.extras.js.map +1 -1
  198. package/dist/esm/lib/config.d.ts +4 -4
  199. package/dist/esm/lib/config.js +4 -4
  200. package/dist/esm/lib/config.js.map +1 -1
  201. package/dist/esm/models/components/fhirconfig.d.ts +12 -0
  202. package/dist/esm/models/components/fhirconfig.d.ts.map +1 -1
  203. package/dist/esm/models/components/fhirconfig.js +4 -0
  204. package/dist/esm/models/components/fhirconfig.js.map +1 -1
  205. package/dist/esm/models/components/invoice.d.ts +0 -5
  206. package/dist/esm/models/components/invoice.d.ts.map +1 -1
  207. package/dist/esm/models/components/invoice.js +0 -4
  208. package/dist/esm/models/components/invoice.js.map +1 -1
  209. package/dist/esm/models/components/userdetails.d.ts +22 -0
  210. package/dist/esm/models/components/userdetails.d.ts.map +1 -1
  211. package/dist/esm/models/components/userdetails.js +6 -0
  212. package/dist/esm/models/components/userdetails.js.map +1 -1
  213. package/dist/esm/models/components/userlocation.d.ts +10 -0
  214. package/dist/esm/models/components/userlocation.d.ts.map +1 -1
  215. package/dist/esm/models/components/userlocation.js +8 -0
  216. package/dist/esm/models/components/userlocation.js.map +1 -1
  217. package/dist/esm/models/operations/convertquote.d.ts +0 -21
  218. package/dist/esm/models/operations/convertquote.d.ts.map +1 -1
  219. package/dist/esm/models/operations/convertquote.js +0 -16
  220. package/dist/esm/models/operations/convertquote.js.map +1 -1
  221. package/dist/esm/models/operations/createinvoice.d.ts +0 -25
  222. package/dist/esm/models/operations/createinvoice.d.ts.map +1 -1
  223. package/dist/esm/models/operations/createinvoice.js +0 -10
  224. package/dist/esm/models/operations/createinvoice.js.map +1 -1
  225. package/dist/esm/models/operations/updateuser.d.ts +0 -2
  226. package/dist/esm/models/operations/updateuser.d.ts.map +1 -1
  227. package/dist/esm/models/operations/updateuser.js +0 -1
  228. package/dist/esm/models/operations/updateuser.js.map +1 -1
  229. package/dist/esm/react-query/invoicesConvertQuote.d.ts +1 -4
  230. package/dist/esm/react-query/invoicesConvertQuote.d.ts.map +1 -1
  231. package/dist/esm/react-query/invoicesConvertQuote.js +1 -4
  232. package/dist/esm/react-query/invoicesConvertQuote.js.map +1 -1
  233. package/dist/esm/react-query/vendorsChangeSubscription.d.ts +3 -2
  234. package/dist/esm/react-query/vendorsChangeSubscription.d.ts.map +1 -1
  235. package/dist/esm/react-query/vendorsChangeSubscription.js +3 -2
  236. package/dist/esm/react-query/vendorsChangeSubscription.js.map +1 -1
  237. package/dist/esm/react-query/vendorsCreateVendorCompany.d.ts +1 -1
  238. package/dist/esm/react-query/vendorsCreateVendorCompany.d.ts.map +1 -1
  239. package/dist/esm/react-query/vendorsCreateVendorCompany.js.map +1 -1
  240. package/dist/esm/react-query/vendorsUpdateVendorDetails.d.ts +9 -1
  241. package/dist/esm/react-query/vendorsUpdateVendorDetails.d.ts.map +1 -1
  242. package/dist/esm/react-query/vendorsUpdateVendorDetails.js +9 -1
  243. package/dist/esm/react-query/vendorsUpdateVendorDetails.js.map +1 -1
  244. package/dist/esm/sdk/invoices.d.ts +1 -4
  245. package/dist/esm/sdk/invoices.d.ts.map +1 -1
  246. package/dist/esm/sdk/invoices.js +1 -4
  247. package/dist/esm/sdk/invoices.js.map +1 -1
  248. package/dist/esm/sdk/vendors.d.ts +12 -3
  249. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  250. package/dist/esm/sdk/vendors.js +12 -3
  251. package/dist/esm/sdk/vendors.js.map +1 -1
  252. package/jsr.json +1 -1
  253. package/package.json +1 -1
  254. package/src/__tests__/fhirconfigs.test.ts +18 -0
  255. package/src/__tests__/subscriptionPlanSelection.test.ts +53 -0
  256. package/src/__tests__/users.test.ts +3 -0
  257. package/src/__tests__/vendors.test.ts +1 -1
  258. package/src/__tests__/zoneDevicesCreate.test.ts +48 -0
  259. package/src/__tests__/zoneDevicesList.test.ts +4 -0
  260. package/src/__tests__/zones.test.ts +2 -9
  261. package/src/admin-funcs/doAdmin.ts +24 -11
  262. package/src/admin-funcs/subscriptionFinishScreeningQuestions.ts +11 -3
  263. package/src/admin-funcs/subscriptionPlanSelection.ts +17 -0
  264. package/src/admin-funcs/subscriptionUpdateVendorType.ts +11 -3
  265. package/src/admin-funcs/zoneDevicesFactoryReset.ts +11 -0
  266. package/src/admin-funcs/zoneDevicesFirmwareUpdate.ts +11 -0
  267. package/src/admin-funcs/zoneDevicesFirmwareVersions.ts +22 -0
  268. package/src/admin-funcs/zoneDevicesReboot.ts +10 -0
  269. package/src/admin-funcs/zoneDevicesUpdate.ts +4 -0
  270. package/src/funcs/invoicesConvertQuote.ts +3 -7
  271. package/src/funcs/vendorsChangeSubscription.ts +3 -2
  272. package/src/funcs/vendorsCreateVendorCompany.ts +4 -0
  273. package/src/funcs/vendorsUpdateVendorDetails.ts +9 -1
  274. package/src/index.extras.ts +9 -1
  275. package/src/lib/config.ts +4 -4
  276. package/src/models/components/fhirconfig.ts +12 -0
  277. package/src/models/components/invoice.ts +0 -9
  278. package/src/models/components/userdetails.ts +28 -0
  279. package/src/models/components/userlocation.ts +18 -0
  280. package/src/models/operations/convertquote.ts +0 -46
  281. package/src/models/operations/createinvoice.ts +0 -35
  282. package/src/models/operations/updateuser.ts +0 -3
  283. package/src/react-query/invoicesConvertQuote.ts +1 -4
  284. package/src/react-query/vendorsChangeSubscription.ts +3 -2
  285. package/src/react-query/vendorsCreateVendorCompany.ts +1 -0
  286. package/src/react-query/vendorsUpdateVendorDetails.ts +9 -1
  287. package/src/sdk/invoices.ts +1 -4
  288. package/src/sdk/vendors.ts +12 -3
@@ -9,25 +9,11 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import * as types from "../../types/primitives.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
- /**
13
- * Whether the vendor is sending the converted invoice to their company managers.
14
- */
15
- export type ConvertQuoteRequestBody = {
16
- /**
17
- * Set to `true` when the vendor is sending the converted invoice to their company managers to pay instead of paying it themselves, and `false` to take it back. Recorded on the invoice as `date_sent_to_company_manager`; the managers are asked to pay once the credential is submitted. Omit the field to leave the invoice as it is. Ignored when no `VendorCredential` is linked to the quote, for an invoice with nothing left to pay, and when the caller is not the vendor. A vendor whose company has no active company manager who sends `true` is refused with `400` and the quote is not converted.
18
- */
19
- sendToCompanyManager?: boolean | undefined;
20
- };
21
-
22
12
  export type ConvertQuoteRequest = {
23
13
  /**
24
14
  * The identifier of the object.
25
15
  */
26
16
  id: number;
27
- /**
28
- * Whether the vendor is sending the converted invoice to their company managers.
29
- */
30
- requestBody?: ConvertQuoteRequestBody | undefined;
31
17
  };
32
18
 
33
19
  /**
@@ -57,36 +43,9 @@ export type ConvertQuoteConvertQuoteOk = {
57
43
  total?: number | null | undefined;
58
44
  };
59
45
 
60
- /** @internal */
61
- export type ConvertQuoteRequestBody$Outbound = {
62
- send_to_company_manager?: boolean | undefined;
63
- };
64
-
65
- /** @internal */
66
- export const ConvertQuoteRequestBody$outboundSchema: z.ZodType<
67
- ConvertQuoteRequestBody$Outbound,
68
- z.ZodTypeDef,
69
- ConvertQuoteRequestBody
70
- > = z.object({
71
- sendToCompanyManager: z.boolean().optional(),
72
- }).transform((v) => {
73
- return remap$(v, {
74
- sendToCompanyManager: "send_to_company_manager",
75
- });
76
- });
77
-
78
- export function convertQuoteRequestBodyToJSON(
79
- convertQuoteRequestBody: ConvertQuoteRequestBody,
80
- ): string {
81
- return JSON.stringify(
82
- ConvertQuoteRequestBody$outboundSchema.parse(convertQuoteRequestBody),
83
- );
84
- }
85
-
86
46
  /** @internal */
87
47
  export type ConvertQuoteRequest$Outbound = {
88
48
  id: number;
89
- RequestBody?: ConvertQuoteRequestBody$Outbound | undefined;
90
49
  };
91
50
 
92
51
  /** @internal */
@@ -96,11 +55,6 @@ export const ConvertQuoteRequest$outboundSchema: z.ZodType<
96
55
  ConvertQuoteRequest
97
56
  > = z.object({
98
57
  id: z.number().int(),
99
- requestBody: z.lazy(() => ConvertQuoteRequestBody$outboundSchema).optional(),
100
- }).transform((v) => {
101
- return remap$(v, {
102
- requestBody: "RequestBody",
103
- });
104
58
  });
105
59
 
106
60
  export function convertQuoteRequestToJSON(
@@ -62,10 +62,6 @@ export type Five = {
62
62
  * Set to `true` when the payer intends to settle this order from their credit balance before their payment method is charged. This affects only how the convenience fee is calculated: the fee pays for card processing, so it is assessed on the amount the card is left to cover once credits have been applied, and an order a balance covers in full carries none. No credits are debited here, and the balance is read from the payer's own ledger rather than taken from this request. Settle the credits with `POST /invoices/{id}/payment` and `use_credits: true`.
63
63
  */
64
64
  useCredits?: boolean | undefined;
65
- /**
66
- * For a `vendor_credential_id` invoice, set to `true` when the vendor is sending the invoice to their company managers to pay instead of paying it themselves. The server records it on the invoice as `date_sent_to_company_manager`, and asks the managers to pay once the credential is submitted. Send it without `credential_pricing_ids` to send an invoice the credential already has. Set to `false` to take the invoice back. Omit the field to leave the invoice as it is. Ignored for a quote, for an invoice with nothing left to pay, and when the caller is not the vendor. A vendor whose company has no active company manager who sends `true` is refused with `400` before anything is created.
67
- */
68
- sendToCompanyManager?: boolean | undefined;
69
65
  };
70
66
 
71
67
  export const CreateInvoiceRequestBodyInvoicesPaymentHandler = {
@@ -117,10 +113,6 @@ export type Four = {
117
113
  * Set to `true` when the payer intends to settle this order from their credit balance before their payment method is charged. This affects only how the convenience fee is calculated: the fee pays for card processing, so it is assessed on the amount the card is left to cover once credits have been applied, and an order a balance covers in full carries none. No credits are debited here, and the balance is read from the payer's own ledger rather than taken from this request. Settle the credits with `POST /invoices/{id}/payment` and `use_credits: true`.
118
114
  */
119
115
  useCredits?: boolean | undefined;
120
- /**
121
- * For a `vendor_credential_id` invoice, set to `true` when the vendor is sending the invoice to their company managers to pay instead of paying it themselves. The server records it on the invoice as `date_sent_to_company_manager`, and asks the managers to pay once the credential is submitted. Send it without `credential_pricing_ids` to send an invoice the credential already has. Set to `false` to take the invoice back. Omit the field to leave the invoice as it is. Ignored for a quote, for an invoice with nothing left to pay, and when the caller is not the vendor. A vendor whose company has no active company manager who sends `true` is refused with `400` before anything is created.
122
- */
123
- sendToCompanyManager?: boolean | undefined;
124
116
  };
125
117
 
126
118
  export const CreateInvoiceRequestBodyPaymentHandler = {
@@ -172,10 +164,6 @@ export type Three = {
172
164
  * Set to `true` when the payer intends to settle this order from their credit balance before their payment method is charged. This affects only how the convenience fee is calculated: the fee pays for card processing, so it is assessed on the amount the card is left to cover once credits have been applied, and an order a balance covers in full carries none. No credits are debited here, and the balance is read from the payer's own ledger rather than taken from this request. Settle the credits with `POST /invoices/{id}/payment` and `use_credits: true`.
173
165
  */
174
166
  useCredits?: boolean | undefined;
175
- /**
176
- * For a `vendor_credential_id` invoice, set to `true` when the vendor is sending the invoice to their company managers to pay instead of paying it themselves. The server records it on the invoice as `date_sent_to_company_manager`, and asks the managers to pay once the credential is submitted. Send it without `credential_pricing_ids` to send an invoice the credential already has. Set to `false` to take the invoice back. Omit the field to leave the invoice as it is. Ignored for a quote, for an invoice with nothing left to pay, and when the caller is not the vendor. A vendor whose company has no active company manager who sends `true` is refused with `400` before anything is created.
177
- */
178
- sendToCompanyManager?: boolean | undefined;
179
167
  };
180
168
 
181
169
  export const RequestBodyPaymentHandler = {
@@ -225,10 +213,6 @@ export type CreateInvoiceRequestBody2 = {
225
213
  * Set to `true` when the payer intends to settle this order from their credit balance before their payment method is charged. This affects only how the convenience fee is calculated: the fee pays for card processing, so it is assessed on the amount the card is left to cover once credits have been applied, and an order a balance covers in full carries none. No credits are debited here, and the balance is read from the payer's own ledger rather than taken from this request. Settle the credits with `POST /invoices/{id}/payment` and `use_credits: true`.
226
214
  */
227
215
  useCredits?: boolean | undefined;
228
- /**
229
- * For a `vendor_credential_id` invoice, set to `true` when the vendor is sending the invoice to their company managers to pay instead of paying it themselves. The server records it on the invoice as `date_sent_to_company_manager`, and asks the managers to pay once the credential is submitted. Send it without `credential_pricing_ids` to send an invoice the credential already has. Set to `false` to take the invoice back. Omit the field to leave the invoice as it is. Ignored for a quote, for an invoice with nothing left to pay, and when the caller is not the vendor. A vendor whose company has no active company manager who sends `true` is refused with `400` before anything is created.
230
- */
231
- sendToCompanyManager?: boolean | undefined;
232
216
  };
233
217
 
234
218
  export const PaymentHandler = {
@@ -276,10 +260,6 @@ export type RequestBody1 = {
276
260
  * Set to `true` when the payer intends to settle this order from their credit balance before their payment method is charged. This affects only how the convenience fee is calculated: the fee pays for card processing, so it is assessed on the amount the card is left to cover once credits have been applied, and an order a balance covers in full carries none. No credits are debited here, and the balance is read from the payer's own ledger rather than taken from this request. Settle the credits with `POST /invoices/{id}/payment` and `use_credits: true`.
277
261
  */
278
262
  useCredits?: boolean | undefined;
279
- /**
280
- * For a `vendor_credential_id` invoice, set to `true` when the vendor is sending the invoice to their company managers to pay instead of paying it themselves. The server records it on the invoice as `date_sent_to_company_manager`, and asks the managers to pay once the credential is submitted. Send it without `credential_pricing_ids` to send an invoice the credential already has. Set to `false` to take the invoice back. Omit the field to leave the invoice as it is. Ignored for a quote, for an invoice with nothing left to pay, and when the caller is not the vendor. A vendor whose company has no active company manager who sends `true` is refused with `400` before anything is created.
281
- */
282
- sendToCompanyManager?: boolean | undefined;
283
263
  };
284
264
 
285
265
  /**
@@ -377,7 +357,6 @@ export type Five$Outbound = {
377
357
  invoice_type?: string | undefined;
378
358
  promo?: string | undefined;
379
359
  use_credits: boolean;
380
- send_to_company_manager?: boolean | undefined;
381
360
  };
382
361
 
383
362
  /** @internal */
@@ -393,14 +372,12 @@ export const Five$outboundSchema: z.ZodType<Five$Outbound, z.ZodTypeDef, Five> =
393
372
  .optional(),
394
373
  promo: z.string().optional(),
395
374
  useCredits: z.boolean().default(false),
396
- sendToCompanyManager: z.boolean().optional(),
397
375
  }).transform((v) => {
398
376
  return remap$(v, {
399
377
  vendorCredentialId: "vendor_credential_id",
400
378
  credentialPricingIds: "credential_pricing_ids",
401
379
  invoiceType: "invoice_type",
402
380
  useCredits: "use_credits",
403
- sendToCompanyManager: "send_to_company_manager",
404
381
  });
405
382
  });
406
383
 
@@ -479,7 +456,6 @@ export type Four$Outbound = {
479
456
  invoice_type?: string | undefined;
480
457
  promo?: string | undefined;
481
458
  use_credits: boolean;
482
- send_to_company_manager?: boolean | undefined;
483
459
  };
484
460
 
485
461
  /** @internal */
@@ -494,14 +470,12 @@ export const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four> =
494
470
  .optional(),
495
471
  promo: z.string().optional(),
496
472
  useCredits: z.boolean().default(false),
497
- sendToCompanyManager: z.boolean().optional(),
498
473
  }).transform((v) => {
499
474
  return remap$(v, {
500
475
  systemId: "system_id",
501
476
  credentialPricingIds: "credential_pricing_ids",
502
477
  invoiceType: "invoice_type",
503
478
  useCredits: "use_credits",
504
- sendToCompanyManager: "send_to_company_manager",
505
479
  });
506
480
  });
507
481
 
@@ -582,7 +556,6 @@ export type Three$Outbound = {
582
556
  invoice_type?: string | undefined;
583
557
  promo?: string | undefined;
584
558
  use_credits: boolean;
585
- send_to_company_manager?: boolean | undefined;
586
559
  };
587
560
 
588
561
  /** @internal */
@@ -598,14 +571,12 @@ export const Three$outboundSchema: z.ZodType<
598
571
  invoiceType: CreateInvoiceRequestBodyInvoiceType$outboundSchema.optional(),
599
572
  promo: z.string().optional(),
600
573
  useCredits: z.boolean().default(false),
601
- sendToCompanyManager: z.boolean().optional(),
602
574
  }).transform((v) => {
603
575
  return remap$(v, {
604
576
  facilityId: "facility_id",
605
577
  credentialPricingIds: "credential_pricing_ids",
606
578
  invoiceType: "invoice_type",
607
579
  useCredits: "use_credits",
608
- sendToCompanyManager: "send_to_company_manager",
609
580
  });
610
581
  });
611
582
 
@@ -681,7 +652,6 @@ export type CreateInvoiceRequestBody2$Outbound = {
681
652
  invoice_type?: string | undefined;
682
653
  promo?: string | undefined;
683
654
  use_credits: boolean;
684
- send_to_company_manager?: boolean | undefined;
685
655
  };
686
656
 
687
657
  /** @internal */
@@ -696,14 +666,12 @@ export const CreateInvoiceRequestBody2$outboundSchema: z.ZodType<
696
666
  invoiceType: RequestBodyInvoiceType$outboundSchema.optional(),
697
667
  promo: z.string().optional(),
698
668
  useCredits: z.boolean().default(false),
699
- sendToCompanyManager: z.boolean().optional(),
700
669
  }).transform((v) => {
701
670
  return remap$(v, {
702
671
  companyId: "company_id",
703
672
  credentialPricingIds: "credential_pricing_ids",
704
673
  invoiceType: "invoice_type",
705
674
  useCredits: "use_credits",
706
- sendToCompanyManager: "send_to_company_manager",
707
675
  });
708
676
  });
709
677
 
@@ -778,7 +746,6 @@ export type RequestBody1$Outbound = {
778
746
  invoice_type?: string | undefined;
779
747
  promo?: string | undefined;
780
748
  use_credits: boolean;
781
- send_to_company_manager?: boolean | undefined;
782
749
  };
783
750
 
784
751
  /** @internal */
@@ -793,14 +760,12 @@ export const RequestBody1$outboundSchema: z.ZodType<
793
760
  invoiceType: InvoiceType$outboundSchema.optional(),
794
761
  promo: z.string().optional(),
795
762
  useCredits: z.boolean().default(false),
796
- sendToCompanyManager: z.boolean().optional(),
797
763
  }).transform((v) => {
798
764
  return remap$(v, {
799
765
  vendorId: "vendor_id",
800
766
  credentialPricingIds: "credential_pricing_ids",
801
767
  invoiceType: "invoice_type",
802
768
  useCredits: "use_credits",
803
- sendToCompanyManager: "send_to_company_manager",
804
769
  });
805
770
  });
806
771
 
@@ -17,7 +17,6 @@ export type UpdateUserRequestBody = {
17
17
  lastName?: string | undefined;
18
18
  username?: string | undefined;
19
19
  email?: string | undefined;
20
- email2?: string | undefined;
21
20
  phone?: string | undefined;
22
21
  mobilePhone?: string | undefined;
23
22
  fax?: string | undefined;
@@ -80,7 +79,6 @@ export type UpdateUserRequestBody$Outbound = {
80
79
  last_name?: string | undefined;
81
80
  username?: string | undefined;
82
81
  email?: string | undefined;
83
- email2?: string | undefined;
84
82
  phone?: string | undefined;
85
83
  mobile_phone?: string | undefined;
86
84
  fax?: string | undefined;
@@ -106,7 +104,6 @@ export const UpdateUserRequestBody$outboundSchema: z.ZodType<
106
104
  lastName: z.string().optional(),
107
105
  username: z.string().optional(),
108
106
  email: z.string().optional(),
109
- email2: z.string().optional(),
110
107
  phone: z.string().optional(),
111
108
  mobilePhone: z.string().optional(),
112
109
  fax: z.string().optional(),
@@ -63,10 +63,7 @@ export type InvoicesConvertQuoteMutationError =
63
63
  * invoices; a caller allowed to create the invoice but not to update the
64
64
  * linked `VendorCredential` responds `401`.
65
65
  *
66
- * Optionally takes `send_to_company_manager`, for a quote linked to a
67
- * `VendorCredential`: send `true` when the vendor is sending the
68
- * converted invoice to their company managers to pay instead of paying
69
- * it themselves. It follows the same rules as on `POST /invoices`.
66
+ * Takes no request body.
70
67
  *
71
68
  * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission—the caller's role and their relationship to the record decide what it returns.
72
69
  */
@@ -52,8 +52,9 @@ export type VendorsChangeSubscriptionMutationError =
52
52
  * @remarks
53
53
  * Changes a vendor's credentialing subscription by updating the vendor type,
54
54
  * the target facilities, or both. If the selection increases the subscription
55
- * price, the server creates an invoice and charges the payment profile; the
56
- * response includes the invoice id.
55
+ * price, the server creates an invoice and charges the payment profile for the
56
+ * invoice total, including any tax and convenience fee; the response includes
57
+ * the invoice id.
57
58
  *
58
59
  * **Permissions.** Requires the `vendor_transactions.add` permission.
59
60
  */
@@ -37,6 +37,7 @@ export type VendorsCreateVendorCompanyMutationData =
37
37
 
38
38
  export type VendorsCreateVendorCompanyMutationError =
39
39
  | errors.ApiErrorResponse
40
+ | errors.UnprocessableEntityOrValidationError
40
41
  | GreenSecurityError
41
42
  | ResponseValidationError
42
43
  | ConnectionError
@@ -55,12 +55,20 @@ export type VendorsUpdateVendorDetailsMutationError =
55
55
  * can also remove the vendor from their company by sending `company_id: null`.
56
56
  *
57
57
  * From `location` this endpoint reads only `timezone`, `address1`, `address2`,
58
- * `city`, `state`, `zip`, `phone`, `mobile_phone` and `fax`. The `address` and
58
+ * `city`, `state`, `zip`, `phone`, `mobile_phone`, `fax`, `work_email` and `personal_email`. The `address` and
59
59
  * `country` properties of the shared `UserLocation` schema have no effect here, and
60
60
  * updating them is not supported. `state` accepts a US state or a Canadian
61
61
  * province—the vendor's country, set only at registration, is not editable
62
62
  * through this endpoint.
63
63
  *
64
+ * `location.work_email` and `location.personal_email` are stored lowercased, and a
65
+ * value that is not a valid email address, or is longer than 255 characters, gets a
66
+ * `422` response. They are contact fields: the login stays `email`, which this
67
+ * endpoint does not change. When an update sets either of them, one must be the
68
+ * vendor's `email` and the other a different address or empty, or it gets a `422`.
69
+ * A vendor with neither one copying `email` yet can set just one and leave the
70
+ * other empty: the save puts `email` in the empty one (work, if both are).
71
+ *
64
72
  * Submitting `location.zip` or `location.state` cross-checks the postal code
65
73
  * against the resulting state (using the vendor's existing value for whichever
66
74
  * of the two you omit from the request). The server rejects a code that is not shaped like a real
@@ -185,10 +185,7 @@ export class Invoices extends ClientSDK {
185
185
  * invoices; a caller allowed to create the invoice but not to update the
186
186
  * linked `VendorCredential` responds `401`.
187
187
  *
188
- * Optionally takes `send_to_company_manager`, for a quote linked to a
189
- * `VendorCredential`: send `true` when the vendor is sending the
190
- * converted invoice to their company managers to pay instead of paying
191
- * it themselves. It follows the same rules as on `POST /invoices`.
188
+ * Takes no request body.
192
189
  *
193
190
  * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission—the caller's role and their relationship to the record decide what it returns.
194
191
  */
@@ -744,8 +744,9 @@ export class Vendors extends ClientSDK {
744
744
  * @remarks
745
745
  * Changes a vendor's credentialing subscription by updating the vendor type,
746
746
  * the target facilities, or both. If the selection increases the subscription
747
- * price, the server creates an invoice and charges the payment profile; the
748
- * response includes the invoice id.
747
+ * price, the server creates an invoice and charges the payment profile for the
748
+ * invoice total, including any tax and convenience fee; the response includes
749
+ * the invoice id.
749
750
  *
750
751
  * **Permissions.** Requires the `vendor_transactions.add` permission.
751
752
  */
@@ -1026,12 +1027,20 @@ export class Vendors extends ClientSDK {
1026
1027
  * can also remove the vendor from their company by sending `company_id: null`.
1027
1028
  *
1028
1029
  * From `location` this endpoint reads only `timezone`, `address1`, `address2`,
1029
- * `city`, `state`, `zip`, `phone`, `mobile_phone` and `fax`. The `address` and
1030
+ * `city`, `state`, `zip`, `phone`, `mobile_phone`, `fax`, `work_email` and `personal_email`. The `address` and
1030
1031
  * `country` properties of the shared `UserLocation` schema have no effect here, and
1031
1032
  * updating them is not supported. `state` accepts a US state or a Canadian
1032
1033
  * province—the vendor's country, set only at registration, is not editable
1033
1034
  * through this endpoint.
1034
1035
  *
1036
+ * `location.work_email` and `location.personal_email` are stored lowercased, and a
1037
+ * value that is not a valid email address, or is longer than 255 characters, gets a
1038
+ * `422` response. They are contact fields: the login stays `email`, which this
1039
+ * endpoint does not change. When an update sets either of them, one must be the
1040
+ * vendor's `email` and the other a different address or empty, or it gets a `422`.
1041
+ * A vendor with neither one copying `email` yet can set just one and leave the
1042
+ * other empty: the save puts `email` in the empty one (work, if both are).
1043
+ *
1035
1044
  * Submitting `location.zip` or `location.state` cross-checks the postal code
1036
1045
  * against the resulting state (using the vendor's existing value for whichever
1037
1046
  * of the two you omit from the request). The server rejects a code that is not shaped like a real