@greensecurity/javascript-sdk 0.15.1 → 0.17.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 (394) hide show
  1. package/REACT_QUERY.md +68 -30
  2. package/README.md +74 -19
  3. package/bin/mcp-server.js +1494 -215
  4. package/bin/mcp-server.js.map +56 -34
  5. package/funcs/organizationsListOrSearchFacilities.d.ts +4 -1
  6. package/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
  7. package/funcs/organizationsListOrSearchFacilities.js +47 -10
  8. package/funcs/organizationsListOrSearchFacilities.js.map +1 -1
  9. package/funcs/supportArticlesGetSupportArticle.d.ts +25 -0
  10. package/funcs/supportArticlesGetSupportArticle.d.ts.map +1 -0
  11. package/funcs/supportArticlesGetSupportArticle.js +132 -0
  12. package/funcs/supportArticlesGetSupportArticle.js.map +1 -0
  13. package/funcs/supportArticlesListOrSearchSupportArticles.d.ts +19 -0
  14. package/funcs/supportArticlesListOrSearchSupportArticles.d.ts.map +1 -0
  15. package/funcs/supportArticlesListOrSearchSupportArticles.js +153 -0
  16. package/funcs/supportArticlesListOrSearchSupportArticles.js.map +1 -0
  17. package/funcs/{userGetCurrentUser.d.ts → usersGetCurrentUser.d.ts} +2 -2
  18. package/funcs/usersGetCurrentUser.d.ts.map +1 -0
  19. package/funcs/{userGetCurrentUser.js → usersGetCurrentUser.js} +3 -3
  20. package/funcs/usersGetCurrentUser.js.map +1 -0
  21. package/funcs/{userGetUserById.d.ts → usersGetUserById.d.ts} +2 -2
  22. package/funcs/usersGetUserById.d.ts.map +1 -0
  23. package/funcs/{userGetUserById.js → usersGetUserById.js} +3 -3
  24. package/funcs/usersGetUserById.js.map +1 -0
  25. package/funcs/{userLogsUserIntoTheSystem.d.ts → usersLogsUserIntoTheSystem.d.ts} +2 -2
  26. package/funcs/usersLogsUserIntoTheSystem.d.ts.map +1 -0
  27. package/funcs/{userLogsUserIntoTheSystem.js → usersLogsUserIntoTheSystem.js} +3 -3
  28. package/funcs/usersLogsUserIntoTheSystem.js.map +1 -0
  29. package/funcs/{userMagiclink.d.ts → usersMagiclink.d.ts} +2 -2
  30. package/funcs/usersMagiclink.d.ts.map +1 -0
  31. package/funcs/{userMagiclink.js → usersMagiclink.js} +4 -4
  32. package/funcs/usersMagiclink.js.map +1 -0
  33. package/funcs/{userPassword.d.ts → usersPassword.d.ts} +2 -2
  34. package/funcs/usersPassword.d.ts.map +1 -0
  35. package/funcs/{userPassword.js → usersPassword.js} +4 -4
  36. package/funcs/usersPassword.js.map +1 -0
  37. package/funcs/{userPasswordResetRequest.d.ts → usersPasswordResetRequest.d.ts} +2 -2
  38. package/funcs/usersPasswordResetRequest.d.ts.map +1 -0
  39. package/funcs/{userPasswordResetRequest.js → usersPasswordResetRequest.js} +4 -4
  40. package/funcs/usersPasswordResetRequest.js.map +1 -0
  41. package/funcs/vendorsCreateVendorRegistration.d.ts +1 -1
  42. package/funcs/vendorsCreateVendorRegistration.d.ts.map +1 -1
  43. package/funcs/vendorsCreateVendorRegistration.js +2 -1
  44. package/funcs/vendorsCreateVendorRegistration.js.map +1 -1
  45. package/funcs/vendorsExpediteTimeRemaining.d.ts +17 -0
  46. package/funcs/vendorsExpediteTimeRemaining.d.ts.map +1 -0
  47. package/funcs/vendorsExpediteTimeRemaining.js +120 -0
  48. package/funcs/vendorsExpediteTimeRemaining.js.map +1 -0
  49. package/funcs/vendorsListVendorCredentials.d.ts +16 -0
  50. package/funcs/vendorsListVendorCredentials.d.ts.map +1 -0
  51. package/funcs/vendorsListVendorCredentials.js +124 -0
  52. package/funcs/vendorsListVendorCredentials.js.map +1 -0
  53. package/funcs/vendorsListVendorInvoices.d.ts +24 -0
  54. package/funcs/vendorsListVendorInvoices.d.ts.map +1 -0
  55. package/funcs/vendorsListVendorInvoices.js +166 -0
  56. package/funcs/vendorsListVendorInvoices.js.map +1 -0
  57. package/funcs/vendorsListVendorJobTitles.d.ts +4 -1
  58. package/funcs/vendorsListVendorJobTitles.d.ts.map +1 -1
  59. package/funcs/vendorsListVendorJobTitles.js +39 -6
  60. package/funcs/vendorsListVendorJobTitles.js.map +1 -1
  61. package/jsr.json +1 -1
  62. package/lib/config.d.ts +3 -3
  63. package/lib/config.js +3 -3
  64. package/mcp-server/mcp-server.js +1 -1
  65. package/mcp-server/server.d.ts.map +1 -1
  66. package/mcp-server/server.js +23 -13
  67. package/mcp-server/server.js.map +1 -1
  68. package/mcp-server/tools/organizationsListOrSearchFacilities.js +1 -1
  69. package/mcp-server/tools/organizationsListOrSearchFacilities.js.map +1 -1
  70. package/mcp-server/tools/supportArticlesGetSupportArticle.d.ts +8 -0
  71. package/mcp-server/tools/supportArticlesGetSupportArticle.d.ts.map +1 -0
  72. package/mcp-server/tools/supportArticlesGetSupportArticle.js +71 -0
  73. package/mcp-server/tools/supportArticlesGetSupportArticle.js.map +1 -0
  74. package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.d.ts +8 -0
  75. package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.d.ts.map +1 -0
  76. package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.js +64 -0
  77. package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.js.map +1 -0
  78. package/mcp-server/tools/usersGetCurrentUser.d.ts +3 -0
  79. package/mcp-server/tools/usersGetCurrentUser.d.ts.map +1 -0
  80. package/mcp-server/tools/usersGetCurrentUser.js +26 -0
  81. package/mcp-server/tools/usersGetCurrentUser.js.map +1 -0
  82. package/mcp-server/tools/usersGetUserById.d.ts +8 -0
  83. package/mcp-server/tools/usersGetUserById.d.ts.map +1 -0
  84. package/mcp-server/tools/usersGetUserById.js +64 -0
  85. package/mcp-server/tools/usersGetUserById.js.map +1 -0
  86. package/mcp-server/tools/usersLogsUserIntoTheSystem.d.ts +8 -0
  87. package/mcp-server/tools/usersLogsUserIntoTheSystem.d.ts.map +1 -0
  88. package/mcp-server/tools/usersLogsUserIntoTheSystem.js +94 -0
  89. package/mcp-server/tools/usersLogsUserIntoTheSystem.js.map +1 -0
  90. package/mcp-server/tools/usersMagiclink.d.ts +8 -0
  91. package/mcp-server/tools/usersMagiclink.d.ts.map +1 -0
  92. package/mcp-server/tools/usersMagiclink.js +64 -0
  93. package/mcp-server/tools/usersMagiclink.js.map +1 -0
  94. package/mcp-server/tools/usersPassword.d.ts +8 -0
  95. package/mcp-server/tools/usersPassword.d.ts.map +1 -0
  96. package/mcp-server/tools/usersPassword.js +65 -0
  97. package/mcp-server/tools/usersPassword.js.map +1 -0
  98. package/mcp-server/tools/usersPasswordResetRequest.d.ts +8 -0
  99. package/mcp-server/tools/usersPasswordResetRequest.d.ts.map +1 -0
  100. package/mcp-server/tools/usersPasswordResetRequest.js +64 -0
  101. package/mcp-server/tools/usersPasswordResetRequest.js.map +1 -0
  102. package/mcp-server/tools/vendorsExpediteTimeRemaining.d.ts +8 -0
  103. package/mcp-server/tools/vendorsExpediteTimeRemaining.d.ts.map +1 -0
  104. package/mcp-server/tools/vendorsExpediteTimeRemaining.js +64 -0
  105. package/mcp-server/tools/vendorsExpediteTimeRemaining.js.map +1 -0
  106. package/mcp-server/tools/vendorsListVendorCredentials.d.ts +8 -0
  107. package/mcp-server/tools/vendorsListVendorCredentials.d.ts.map +1 -0
  108. package/mcp-server/tools/vendorsListVendorCredentials.js +64 -0
  109. package/mcp-server/tools/vendorsListVendorCredentials.js.map +1 -0
  110. package/mcp-server/tools/vendorsListVendorInvoices.d.ts +8 -0
  111. package/mcp-server/tools/vendorsListVendorInvoices.d.ts.map +1 -0
  112. package/mcp-server/tools/vendorsListVendorInvoices.js +68 -0
  113. package/mcp-server/tools/vendorsListVendorInvoices.js.map +1 -0
  114. package/mcp-server/tools/vendorsListVendorJobTitles.js +1 -1
  115. package/mcp-server/tools/vendorsListVendorJobTitles.js.map +1 -1
  116. package/models/components/{status.d.ts → activestatus.d.ts} +8 -8
  117. package/models/components/activestatus.d.ts.map +1 -0
  118. package/models/components/{status.js → activestatus.js} +12 -13
  119. package/models/components/activestatus.js.map +1 -0
  120. package/models/components/contact.d.ts +8 -8
  121. package/models/components/contact.d.ts.map +1 -1
  122. package/models/components/contact.js +14 -13
  123. package/models/components/contact.js.map +1 -1
  124. package/models/components/credentialstatus.d.ts +49 -0
  125. package/models/components/credentialstatus.d.ts.map +1 -0
  126. package/models/components/credentialstatus.js +68 -0
  127. package/models/components/credentialstatus.js.map +1 -0
  128. package/models/components/expand.d.ts +15 -0
  129. package/models/components/expand.d.ts.map +1 -1
  130. package/models/components/expand.js +5 -0
  131. package/models/components/expand.js.map +1 -1
  132. package/models/components/index.d.ts +7 -1
  133. package/models/components/index.d.ts.map +1 -1
  134. package/models/components/index.js +7 -1
  135. package/models/components/index.js.map +1 -1
  136. package/models/components/invoice.d.ts +43 -0
  137. package/models/components/invoice.d.ts.map +1 -0
  138. package/models/components/invoice.js +91 -0
  139. package/models/components/invoice.js.map +1 -0
  140. package/models/components/invoiceitem.d.ts +40 -0
  141. package/models/components/invoiceitem.d.ts.map +1 -0
  142. package/models/components/invoiceitem.js +94 -0
  143. package/models/components/invoiceitem.js.map +1 -0
  144. package/models/components/supportarticle.d.ts +43 -0
  145. package/models/components/supportarticle.d.ts.map +1 -0
  146. package/models/components/supportarticle.js +92 -0
  147. package/models/components/supportarticle.js.map +1 -0
  148. package/models/components/vendorcredentialslim.d.ts +44 -0
  149. package/models/components/vendorcredentialslim.d.ts.map +1 -0
  150. package/models/components/vendorcredentialslim.js +94 -0
  151. package/models/components/vendorcredentialslim.js.map +1 -0
  152. package/models/components/vendorrequiredcredential.d.ts +42 -0
  153. package/models/components/vendorrequiredcredential.d.ts.map +1 -0
  154. package/models/components/vendorrequiredcredential.js +96 -0
  155. package/models/components/vendorrequiredcredential.js.map +1 -0
  156. package/models/operations/createvendorregistration.d.ts +13 -13
  157. package/models/operations/createvendorregistration.d.ts.map +1 -1
  158. package/models/operations/createvendorregistration.js +18 -16
  159. package/models/operations/createvendorregistration.js.map +1 -1
  160. package/models/operations/expeditetimeremaining.d.ts +60 -0
  161. package/models/operations/expeditetimeremaining.d.ts.map +1 -0
  162. package/models/operations/expeditetimeremaining.js +113 -0
  163. package/models/operations/expeditetimeremaining.js.map +1 -0
  164. package/models/operations/getsupportarticle.d.ts +38 -0
  165. package/models/operations/getsupportarticle.d.ts.map +1 -0
  166. package/models/operations/getsupportarticle.js +72 -0
  167. package/models/operations/getsupportarticle.js.map +1 -0
  168. package/models/operations/index.d.ts +5 -0
  169. package/models/operations/index.d.ts.map +1 -1
  170. package/models/operations/index.js +5 -0
  171. package/models/operations/index.js.map +1 -1
  172. package/models/operations/listorsearchfacilities.d.ts +40 -15
  173. package/models/operations/listorsearchfacilities.d.ts.map +1 -1
  174. package/models/operations/listorsearchfacilities.js +55 -18
  175. package/models/operations/listorsearchfacilities.js.map +1 -1
  176. package/models/operations/listorsearchsupportarticles.d.ts +106 -0
  177. package/models/operations/listorsearchsupportarticles.d.ts.map +1 -0
  178. package/models/operations/listorsearchsupportarticles.js +149 -0
  179. package/models/operations/listorsearchsupportarticles.js.map +1 -0
  180. package/models/operations/listvendorcredentials.d.ts +122 -0
  181. package/models/operations/listvendorcredentials.d.ts.map +1 -0
  182. package/models/operations/listvendorcredentials.js +169 -0
  183. package/models/operations/listvendorcredentials.js.map +1 -0
  184. package/models/operations/listvendorinvoices.d.ts +116 -0
  185. package/models/operations/listvendorinvoices.d.ts.map +1 -0
  186. package/models/operations/listvendorinvoices.js +155 -0
  187. package/models/operations/listvendorinvoices.js.map +1 -0
  188. package/models/operations/listvendorjobtitles.d.ts +38 -13
  189. package/models/operations/listvendorjobtitles.d.ts.map +1 -1
  190. package/models/operations/listvendorjobtitles.js +51 -16
  191. package/models/operations/listvendorjobtitles.js.map +1 -1
  192. package/models/operations/magiclink.d.ts +13 -13
  193. package/models/operations/magiclink.d.ts.map +1 -1
  194. package/models/operations/magiclink.js +16 -16
  195. package/models/operations/magiclink.js.map +1 -1
  196. package/models/operations/password.d.ts +13 -13
  197. package/models/operations/password.d.ts.map +1 -1
  198. package/models/operations/password.js +16 -16
  199. package/models/operations/password.js.map +1 -1
  200. package/models/operations/passwordresetrequest.d.ts +13 -13
  201. package/models/operations/passwordresetrequest.d.ts.map +1 -1
  202. package/models/operations/passwordresetrequest.js +16 -16
  203. package/models/operations/passwordresetrequest.js.map +1 -1
  204. package/package.json +1 -1
  205. package/react-query/index.d.ts +11 -6
  206. package/react-query/index.d.ts.map +1 -1
  207. package/react-query/index.js +11 -6
  208. package/react-query/index.js.map +1 -1
  209. package/react-query/organizationsListOrSearchFacilities.d.ts +57 -6
  210. package/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
  211. package/react-query/organizationsListOrSearchFacilities.js +90 -1
  212. package/react-query/organizationsListOrSearchFacilities.js.map +1 -1
  213. package/react-query/supportArticlesGetSupportArticle.d.ts +57 -0
  214. package/react-query/supportArticlesGetSupportArticle.d.ts.map +1 -0
  215. package/react-query/supportArticlesGetSupportArticle.js +113 -0
  216. package/react-query/supportArticlesGetSupportArticle.js.map +1 -0
  217. package/react-query/supportArticlesListOrSearchSupportArticles.d.ts +75 -0
  218. package/react-query/supportArticlesListOrSearchSupportArticles.d.ts.map +1 -0
  219. package/react-query/supportArticlesListOrSearchSupportArticles.js +159 -0
  220. package/react-query/supportArticlesListOrSearchSupportArticles.js.map +1 -0
  221. package/react-query/usersGetCurrentUser.d.ts +29 -0
  222. package/react-query/usersGetCurrentUser.d.ts.map +1 -0
  223. package/react-query/usersGetCurrentUser.js +75 -0
  224. package/react-query/usersGetCurrentUser.js.map +1 -0
  225. package/react-query/usersGetUserById.d.ts +31 -0
  226. package/react-query/usersGetUserById.d.ts.map +1 -0
  227. package/react-query/usersGetUserById.js +87 -0
  228. package/react-query/usersGetUserById.js.map +1 -0
  229. package/react-query/{userLogsUserIntoTheSystem.d.ts → usersLogsUserIntoTheSystem.d.ts} +7 -7
  230. package/react-query/usersLogsUserIntoTheSystem.d.ts.map +1 -0
  231. package/react-query/{userLogsUserIntoTheSystem.js → usersLogsUserIntoTheSystem.js} +13 -13
  232. package/react-query/usersLogsUserIntoTheSystem.js.map +1 -0
  233. package/react-query/usersMagiclink.d.ts +23 -0
  234. package/react-query/usersMagiclink.d.ts.map +1 -0
  235. package/react-query/{userMagiclink.js → usersMagiclink.js} +13 -13
  236. package/react-query/usersMagiclink.js.map +1 -0
  237. package/react-query/usersPassword.d.ts +24 -0
  238. package/react-query/usersPassword.d.ts.map +1 -0
  239. package/react-query/{userPassword.js → usersPassword.js} +13 -13
  240. package/react-query/usersPassword.js.map +1 -0
  241. package/react-query/usersPasswordResetRequest.d.ts +23 -0
  242. package/react-query/usersPasswordResetRequest.d.ts.map +1 -0
  243. package/react-query/{userPasswordResetRequest.js → usersPasswordResetRequest.js} +13 -13
  244. package/react-query/usersPasswordResetRequest.js.map +1 -0
  245. package/react-query/vendorsCreateVendorRegistration.d.ts +1 -1
  246. package/react-query/vendorsCreateVendorRegistration.d.ts.map +1 -1
  247. package/react-query/vendorsExpediteTimeRemaining.d.ts +30 -0
  248. package/react-query/vendorsExpediteTimeRemaining.d.ts.map +1 -0
  249. package/react-query/vendorsExpediteTimeRemaining.js +96 -0
  250. package/react-query/vendorsExpediteTimeRemaining.js.map +1 -0
  251. package/react-query/vendorsListVendorCredentials.d.ts +55 -0
  252. package/react-query/vendorsListVendorCredentials.d.ts.map +1 -0
  253. package/react-query/vendorsListVendorCredentials.js +103 -0
  254. package/react-query/vendorsListVendorCredentials.js.map +1 -0
  255. package/react-query/vendorsListVendorInvoices.d.ts +96 -0
  256. package/react-query/vendorsListVendorInvoices.d.ts.map +1 -0
  257. package/react-query/vendorsListVendorInvoices.js +178 -0
  258. package/react-query/vendorsListVendorInvoices.js.map +1 -0
  259. package/react-query/vendorsListVendorJobTitles.d.ts +28 -3
  260. package/react-query/vendorsListVendorJobTitles.d.ts.map +1 -1
  261. package/react-query/vendorsListVendorJobTitles.js +59 -0
  262. package/react-query/vendorsListVendorJobTitles.js.map +1 -1
  263. package/sdk/organizations.d.ts +4 -1
  264. package/sdk/organizations.d.ts.map +1 -1
  265. package/sdk/organizations.js +2 -1
  266. package/sdk/organizations.js.map +1 -1
  267. package/sdk/sdk.d.ts +6 -3
  268. package/sdk/sdk.d.ts.map +1 -1
  269. package/sdk/sdk.js +7 -3
  270. package/sdk/sdk.js.map +1 -1
  271. package/sdk/supportarticles.d.ts +30 -0
  272. package/sdk/supportarticles.d.ts.map +1 -0
  273. package/sdk/supportarticles.js +40 -0
  274. package/sdk/supportarticles.js.map +1 -0
  275. package/sdk/{user.d.ts → users.d.ts} +5 -5
  276. package/sdk/users.d.ts.map +1 -0
  277. package/sdk/{user.js → users.js} +16 -16
  278. package/sdk/users.js.map +1 -0
  279. package/sdk/vendors.d.ts +32 -2
  280. package/sdk/vendors.d.ts.map +1 -1
  281. package/sdk/vendors.js +36 -1
  282. package/sdk/vendors.js.map +1 -1
  283. package/src/__tests__/organizations.test.ts +5 -175
  284. package/src/__tests__/supportarticles.test.ts +64 -0
  285. package/src/__tests__/user.test.ts +13 -7
  286. package/src/__tests__/vendors.test.ts +65 -2
  287. package/src/funcs/organizationsListOrSearchFacilities.ts +116 -39
  288. package/src/funcs/supportArticlesGetSupportArticle.ts +181 -0
  289. package/src/funcs/supportArticlesListOrSearchSupportArticles.ts +234 -0
  290. package/src/funcs/{userGetCurrentUser.ts → usersGetCurrentUser.ts} +1 -1
  291. package/src/funcs/{userGetUserById.ts → usersGetUserById.ts} +1 -1
  292. package/src/funcs/{userLogsUserIntoTheSystem.ts → usersLogsUserIntoTheSystem.ts} +1 -1
  293. package/src/funcs/{userMagiclink.ts → usersMagiclink.ts} +5 -5
  294. package/src/funcs/{userPassword.ts → usersPassword.ts} +5 -5
  295. package/src/funcs/{userPasswordResetRequest.ts → usersPasswordResetRequest.ts} +8 -5
  296. package/src/funcs/vendorsCreateVendorRegistration.ts +8 -4
  297. package/src/funcs/vendorsExpediteTimeRemaining.ts +171 -0
  298. package/src/funcs/vendorsListVendorCredentials.ts +169 -0
  299. package/src/funcs/vendorsListVendorInvoices.ts +255 -0
  300. package/src/funcs/vendorsListVendorJobTitles.ts +101 -30
  301. package/src/lib/config.ts +3 -3
  302. package/src/mcp-server/mcp-server.ts +1 -1
  303. package/src/mcp-server/server.ts +23 -13
  304. package/src/mcp-server/tools/organizationsListOrSearchFacilities.ts +1 -1
  305. package/src/mcp-server/tools/supportArticlesGetSupportArticle.ts +46 -0
  306. package/src/mcp-server/tools/supportArticlesListOrSearchSupportArticles.ts +39 -0
  307. package/src/mcp-server/tools/{userGetCurrentUser.ts → usersGetCurrentUser.ts} +4 -4
  308. package/src/mcp-server/tools/{userGetUserById.ts → usersGetUserById.ts} +4 -4
  309. package/src/mcp-server/tools/{userLogsUserIntoTheSystem.ts → usersLogsUserIntoTheSystem.ts} +4 -4
  310. package/src/mcp-server/tools/{userMagiclink.ts → usersMagiclink.ts} +4 -4
  311. package/src/mcp-server/tools/{userPassword.ts → usersPassword.ts} +4 -4
  312. package/src/mcp-server/tools/{userPasswordResetRequest.ts → usersPasswordResetRequest.ts} +4 -4
  313. package/src/mcp-server/tools/vendorsExpediteTimeRemaining.ts +37 -0
  314. package/src/mcp-server/tools/vendorsListVendorCredentials.ts +37 -0
  315. package/src/mcp-server/tools/vendorsListVendorInvoices.ts +41 -0
  316. package/src/mcp-server/tools/vendorsListVendorJobTitles.ts +1 -1
  317. package/src/models/components/activestatus.ts +38 -0
  318. package/src/models/components/contact.ts +14 -16
  319. package/src/models/components/credentialstatus.ts +44 -0
  320. package/src/models/components/expand.ts +5 -0
  321. package/src/models/components/index.ts +7 -1
  322. package/src/models/components/invoice.ts +99 -0
  323. package/src/models/components/invoiceitem.ts +98 -0
  324. package/src/models/components/supportarticle.ts +99 -0
  325. package/src/models/components/vendorcredentialslim.ts +106 -0
  326. package/src/models/components/vendorrequiredcredential.ts +106 -0
  327. package/src/models/operations/createvendorregistration.ts +39 -32
  328. package/src/models/operations/expeditetimeremaining.ts +152 -0
  329. package/src/models/operations/getsupportarticle.ts +77 -0
  330. package/src/models/operations/index.ts +5 -0
  331. package/src/models/operations/listorsearchfacilities.ts +118 -34
  332. package/src/models/operations/listorsearchsupportarticles.ts +261 -0
  333. package/src/models/operations/listvendorcredentials.ts +281 -0
  334. package/src/models/operations/listvendorinvoices.ts +252 -0
  335. package/src/models/operations/listvendorjobtitles.ts +99 -22
  336. package/src/models/operations/magiclink.ts +21 -21
  337. package/src/models/operations/password.ts +21 -21
  338. package/src/models/operations/passwordresetrequest.ts +39 -31
  339. package/src/react-query/index.ts +11 -6
  340. package/src/react-query/organizationsListOrSearchFacilities.ts +183 -5
  341. package/src/react-query/supportArticlesGetSupportArticle.ts +192 -0
  342. package/src/react-query/supportArticlesListOrSearchSupportArticles.ts +349 -0
  343. package/src/react-query/{userGetCurrentUser.ts → usersGetCurrentUser.ts} +27 -27
  344. package/src/react-query/{userGetUserById.ts → usersGetUserById.ts} +31 -29
  345. package/src/react-query/{userLogsUserIntoTheSystem.ts → usersLogsUserIntoTheSystem.ts} +18 -18
  346. package/src/react-query/{userMagiclink.ts → usersMagiclink.ts} +18 -18
  347. package/src/react-query/{userPassword.ts → usersPassword.ts} +18 -18
  348. package/src/react-query/{userPasswordResetRequest.ts → usersPasswordResetRequest.ts} +19 -19
  349. package/src/react-query/vendorsCreateVendorRegistration.ts +1 -1
  350. package/src/react-query/vendorsExpediteTimeRemaining.ts +165 -0
  351. package/src/react-query/vendorsListVendorCredentials.ts +200 -0
  352. package/src/react-query/vendorsListVendorInvoices.ts +364 -0
  353. package/src/react-query/vendorsListVendorJobTitles.ts +149 -1
  354. package/src/sdk/organizations.ts +5 -2
  355. package/src/sdk/sdk.ts +10 -4
  356. package/src/sdk/supportarticles.ts +59 -0
  357. package/src/sdk/{user.ts → users.ts} +16 -16
  358. package/src/sdk/vendors.ts +68 -3
  359. package/funcs/userGetCurrentUser.d.ts.map +0 -1
  360. package/funcs/userGetCurrentUser.js.map +0 -1
  361. package/funcs/userGetUserById.d.ts.map +0 -1
  362. package/funcs/userGetUserById.js.map +0 -1
  363. package/funcs/userLogsUserIntoTheSystem.d.ts.map +0 -1
  364. package/funcs/userLogsUserIntoTheSystem.js.map +0 -1
  365. package/funcs/userMagiclink.d.ts.map +0 -1
  366. package/funcs/userMagiclink.js.map +0 -1
  367. package/funcs/userPassword.d.ts.map +0 -1
  368. package/funcs/userPassword.js.map +0 -1
  369. package/funcs/userPasswordResetRequest.d.ts.map +0 -1
  370. package/funcs/userPasswordResetRequest.js.map +0 -1
  371. package/models/components/status.d.ts.map +0 -1
  372. package/models/components/status.js.map +0 -1
  373. package/react-query/userGetCurrentUser.d.ts +0 -29
  374. package/react-query/userGetCurrentUser.d.ts.map +0 -1
  375. package/react-query/userGetCurrentUser.js +0 -75
  376. package/react-query/userGetCurrentUser.js.map +0 -1
  377. package/react-query/userGetUserById.d.ts +0 -31
  378. package/react-query/userGetUserById.d.ts.map +0 -1
  379. package/react-query/userGetUserById.js +0 -87
  380. package/react-query/userGetUserById.js.map +0 -1
  381. package/react-query/userLogsUserIntoTheSystem.d.ts.map +0 -1
  382. package/react-query/userLogsUserIntoTheSystem.js.map +0 -1
  383. package/react-query/userMagiclink.d.ts +0 -23
  384. package/react-query/userMagiclink.d.ts.map +0 -1
  385. package/react-query/userMagiclink.js.map +0 -1
  386. package/react-query/userPassword.d.ts +0 -24
  387. package/react-query/userPassword.d.ts.map +0 -1
  388. package/react-query/userPassword.js.map +0 -1
  389. package/react-query/userPasswordResetRequest.d.ts +0 -23
  390. package/react-query/userPasswordResetRequest.d.ts.map +0 -1
  391. package/react-query/userPasswordResetRequest.js.map +0 -1
  392. package/sdk/user.d.ts.map +0 -1
  393. package/sdk/user.js.map +0 -1
  394. package/src/models/components/status.ts +0 -38
@@ -0,0 +1,122 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import * as components from "../components/index.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ export type ListVendorCredentialsRequest = {
6
+ /**
7
+ * Search by credential status (Pending Approval, Declined, Expired...)
8
+ */
9
+ credentialStatus?: components.CredentialStatus | undefined;
10
+ /**
11
+ * The ID associated with a medical facility
12
+ */
13
+ facilityId?: number | undefined;
14
+ /**
15
+ * False will return credentials that apply to vendor's company
16
+ */
17
+ includeVc?: number | undefined;
18
+ /**
19
+ * False will exclude credentials that apply to company
20
+ */
21
+ includeCc?: number | undefined;
22
+ /**
23
+ * Marking as a 1 will return vendor credentials listed as urgent
24
+ */
25
+ urgent?: number | undefined;
26
+ /**
27
+ * ID of the vendor rep.
28
+ */
29
+ vendorId: number;
30
+ };
31
+ export type Credentials = {
32
+ id: number;
33
+ name: string;
34
+ };
35
+ /**
36
+ * The request was successful, and the server has returned the requested resource in the response body.
37
+ */
38
+ export type ListVendorCredentialsResponseBody = {
39
+ vendorRequiredCredentials: Array<components.VendorRequiredCredential>;
40
+ credentials: Array<Credentials>;
41
+ vendorCredentials: Array<components.VendorCredentialSlim>;
42
+ /**
43
+ * Pagination information for a pageable list
44
+ */
45
+ pager: components.Pager;
46
+ };
47
+ /** @internal */
48
+ export declare const ListVendorCredentialsRequest$inboundSchema: z.ZodType<ListVendorCredentialsRequest, z.ZodTypeDef, unknown>;
49
+ /** @internal */
50
+ export type ListVendorCredentialsRequest$Outbound = {
51
+ credential_status: string;
52
+ facility_id?: number | undefined;
53
+ include_vc?: number | undefined;
54
+ include_cc?: number | undefined;
55
+ urgent?: number | undefined;
56
+ vendor_id: number;
57
+ };
58
+ /** @internal */
59
+ export declare const ListVendorCredentialsRequest$outboundSchema: z.ZodType<ListVendorCredentialsRequest$Outbound, z.ZodTypeDef, ListVendorCredentialsRequest>;
60
+ /**
61
+ * @internal
62
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
63
+ */
64
+ export declare namespace ListVendorCredentialsRequest$ {
65
+ /** @deprecated use `ListVendorCredentialsRequest$inboundSchema` instead. */
66
+ const inboundSchema: z.ZodType<ListVendorCredentialsRequest, z.ZodTypeDef, unknown>;
67
+ /** @deprecated use `ListVendorCredentialsRequest$outboundSchema` instead. */
68
+ const outboundSchema: z.ZodType<ListVendorCredentialsRequest$Outbound, z.ZodTypeDef, ListVendorCredentialsRequest>;
69
+ /** @deprecated use `ListVendorCredentialsRequest$Outbound` instead. */
70
+ type Outbound = ListVendorCredentialsRequest$Outbound;
71
+ }
72
+ export declare function listVendorCredentialsRequestToJSON(listVendorCredentialsRequest: ListVendorCredentialsRequest): string;
73
+ export declare function listVendorCredentialsRequestFromJSON(jsonString: string): SafeParseResult<ListVendorCredentialsRequest, SDKValidationError>;
74
+ /** @internal */
75
+ export declare const Credentials$inboundSchema: z.ZodType<Credentials, z.ZodTypeDef, unknown>;
76
+ /** @internal */
77
+ export type Credentials$Outbound = {
78
+ id: number;
79
+ name: string;
80
+ };
81
+ /** @internal */
82
+ export declare const Credentials$outboundSchema: z.ZodType<Credentials$Outbound, z.ZodTypeDef, Credentials>;
83
+ /**
84
+ * @internal
85
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
86
+ */
87
+ export declare namespace Credentials$ {
88
+ /** @deprecated use `Credentials$inboundSchema` instead. */
89
+ const inboundSchema: z.ZodType<Credentials, z.ZodTypeDef, unknown>;
90
+ /** @deprecated use `Credentials$outboundSchema` instead. */
91
+ const outboundSchema: z.ZodType<Credentials$Outbound, z.ZodTypeDef, Credentials>;
92
+ /** @deprecated use `Credentials$Outbound` instead. */
93
+ type Outbound = Credentials$Outbound;
94
+ }
95
+ export declare function credentialsToJSON(credentials: Credentials): string;
96
+ export declare function credentialsFromJSON(jsonString: string): SafeParseResult<Credentials, SDKValidationError>;
97
+ /** @internal */
98
+ export declare const ListVendorCredentialsResponseBody$inboundSchema: z.ZodType<ListVendorCredentialsResponseBody, z.ZodTypeDef, unknown>;
99
+ /** @internal */
100
+ export type ListVendorCredentialsResponseBody$Outbound = {
101
+ vendor_required_credentials: Array<components.VendorRequiredCredential$Outbound>;
102
+ credentials: Array<Credentials$Outbound>;
103
+ vendor_credentials: Array<components.VendorCredentialSlim$Outbound>;
104
+ pager: components.Pager$Outbound;
105
+ };
106
+ /** @internal */
107
+ export declare const ListVendorCredentialsResponseBody$outboundSchema: z.ZodType<ListVendorCredentialsResponseBody$Outbound, z.ZodTypeDef, ListVendorCredentialsResponseBody>;
108
+ /**
109
+ * @internal
110
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
111
+ */
112
+ export declare namespace ListVendorCredentialsResponseBody$ {
113
+ /** @deprecated use `ListVendorCredentialsResponseBody$inboundSchema` instead. */
114
+ const inboundSchema: z.ZodType<ListVendorCredentialsResponseBody, z.ZodTypeDef, unknown>;
115
+ /** @deprecated use `ListVendorCredentialsResponseBody$outboundSchema` instead. */
116
+ const outboundSchema: z.ZodType<ListVendorCredentialsResponseBody$Outbound, z.ZodTypeDef, ListVendorCredentialsResponseBody>;
117
+ /** @deprecated use `ListVendorCredentialsResponseBody$Outbound` instead. */
118
+ type Outbound = ListVendorCredentialsResponseBody$Outbound;
119
+ }
120
+ export declare function listVendorCredentialsResponseBodyToJSON(listVendorCredentialsResponseBody: ListVendorCredentialsResponseBody): string;
121
+ export declare function listVendorCredentialsResponseBodyFromJSON(jsonString: string): SafeParseResult<ListVendorCredentialsResponseBody, SDKValidationError>;
122
+ //# sourceMappingURL=listvendorcredentials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listvendorcredentials.d.ts","sourceRoot":"","sources":["../../src/models/operations/listvendorcredentials.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,gBAAgB,CAAC,EAAE,UAAU,CAAC,gBAAgB,GAAG,SA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CAAC,UAAU,EACZ,OAAO,CAaP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,0CAA0C,GAAG;IACvD,2BAA2B,EAAE,KAAK,CAChC,UAAU,CAAC,iCAAiC,CAC7C,CAAC;IACF,WAAW,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;IACzC,kBAAkB,EAAE,KAAK,CAAC,UAAU,CAAC,6BAA6B,CAAC,CAAC;IACpE,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;CAClC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gDAAgD,EAAE,CAAC,CAAC,OAAO,CACtE,0CAA0C,EAC1C,CAAC,CAAC,UAAU,EACZ,iCAAiC,CAajC,CAAC;AAEH;;;GAGG;AACH,yBAAiB,kCAAkC,CAAC;IAClD,iFAAiF;IAC1E,MAAM,aAAa,qEAAkD,CAAC;IAC7E,kFAAkF;IAC3E,MAAM,cAAc,wGACuB,CAAC;IACnD,4EAA4E;IAC5E,KAAY,QAAQ,GAAG,0CAA0C,CAAC;CACnE;AAED,wBAAgB,uCAAuC,CACrD,iCAAiC,EAAE,iCAAiC,GACnE,MAAM,CAMR;AAED,wBAAgB,yCAAyC,CACvD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iCAAiC,EAAE,kBAAkB,CAAC,CAMxE"}
@@ -0,0 +1,169 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ListVendorCredentialsResponseBody$ = exports.ListVendorCredentialsResponseBody$outboundSchema = exports.ListVendorCredentialsResponseBody$inboundSchema = exports.Credentials$ = exports.Credentials$outboundSchema = exports.Credentials$inboundSchema = exports.ListVendorCredentialsRequest$ = exports.ListVendorCredentialsRequest$outboundSchema = exports.ListVendorCredentialsRequest$inboundSchema = void 0;
40
+ exports.listVendorCredentialsRequestToJSON = listVendorCredentialsRequestToJSON;
41
+ exports.listVendorCredentialsRequestFromJSON = listVendorCredentialsRequestFromJSON;
42
+ exports.credentialsToJSON = credentialsToJSON;
43
+ exports.credentialsFromJSON = credentialsFromJSON;
44
+ exports.listVendorCredentialsResponseBodyToJSON = listVendorCredentialsResponseBodyToJSON;
45
+ exports.listVendorCredentialsResponseBodyFromJSON = listVendorCredentialsResponseBodyFromJSON;
46
+ const z = __importStar(require("zod"));
47
+ const primitives_js_1 = require("../../lib/primitives.js");
48
+ const schemas_js_1 = require("../../lib/schemas.js");
49
+ const components = __importStar(require("../components/index.js"));
50
+ /** @internal */
51
+ exports.ListVendorCredentialsRequest$inboundSchema = z.object({
52
+ credential_status: components.CredentialStatus$inboundSchema.default("Pending Vendor"),
53
+ facility_id: z.number().optional(),
54
+ include_vc: z.number().optional(),
55
+ include_cc: z.number().optional(),
56
+ urgent: z.number().optional(),
57
+ vendor_id: z.number().int(),
58
+ }).transform((v) => {
59
+ return (0, primitives_js_1.remap)(v, {
60
+ "credential_status": "credentialStatus",
61
+ "facility_id": "facilityId",
62
+ "include_vc": "includeVc",
63
+ "include_cc": "includeCc",
64
+ "vendor_id": "vendorId",
65
+ });
66
+ });
67
+ /** @internal */
68
+ exports.ListVendorCredentialsRequest$outboundSchema = z.object({
69
+ credentialStatus: components.CredentialStatus$outboundSchema.default("Pending Vendor"),
70
+ facilityId: z.number().optional(),
71
+ includeVc: z.number().optional(),
72
+ includeCc: z.number().optional(),
73
+ urgent: z.number().optional(),
74
+ vendorId: z.number().int(),
75
+ }).transform((v) => {
76
+ return (0, primitives_js_1.remap)(v, {
77
+ credentialStatus: "credential_status",
78
+ facilityId: "facility_id",
79
+ includeVc: "include_vc",
80
+ includeCc: "include_cc",
81
+ vendorId: "vendor_id",
82
+ });
83
+ });
84
+ /**
85
+ * @internal
86
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
87
+ */
88
+ var ListVendorCredentialsRequest$;
89
+ (function (ListVendorCredentialsRequest$) {
90
+ /** @deprecated use `ListVendorCredentialsRequest$inboundSchema` instead. */
91
+ ListVendorCredentialsRequest$.inboundSchema = exports.ListVendorCredentialsRequest$inboundSchema;
92
+ /** @deprecated use `ListVendorCredentialsRequest$outboundSchema` instead. */
93
+ ListVendorCredentialsRequest$.outboundSchema = exports.ListVendorCredentialsRequest$outboundSchema;
94
+ })(ListVendorCredentialsRequest$ || (exports.ListVendorCredentialsRequest$ = ListVendorCredentialsRequest$ = {}));
95
+ function listVendorCredentialsRequestToJSON(listVendorCredentialsRequest) {
96
+ return JSON.stringify(exports.ListVendorCredentialsRequest$outboundSchema.parse(listVendorCredentialsRequest));
97
+ }
98
+ function listVendorCredentialsRequestFromJSON(jsonString) {
99
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListVendorCredentialsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListVendorCredentialsRequest' from JSON`);
100
+ }
101
+ /** @internal */
102
+ exports.Credentials$inboundSchema = z.object({
103
+ id: z.number().int(),
104
+ name: z.string(),
105
+ });
106
+ /** @internal */
107
+ exports.Credentials$outboundSchema = z.object({
108
+ id: z.number().int(),
109
+ name: z.string(),
110
+ });
111
+ /**
112
+ * @internal
113
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
114
+ */
115
+ var Credentials$;
116
+ (function (Credentials$) {
117
+ /** @deprecated use `Credentials$inboundSchema` instead. */
118
+ Credentials$.inboundSchema = exports.Credentials$inboundSchema;
119
+ /** @deprecated use `Credentials$outboundSchema` instead. */
120
+ Credentials$.outboundSchema = exports.Credentials$outboundSchema;
121
+ })(Credentials$ || (exports.Credentials$ = Credentials$ = {}));
122
+ function credentialsToJSON(credentials) {
123
+ return JSON.stringify(exports.Credentials$outboundSchema.parse(credentials));
124
+ }
125
+ function credentialsFromJSON(jsonString) {
126
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Credentials$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Credentials' from JSON`);
127
+ }
128
+ /** @internal */
129
+ exports.ListVendorCredentialsResponseBody$inboundSchema = z.object({
130
+ vendor_required_credentials: z.array(components.VendorRequiredCredential$inboundSchema),
131
+ credentials: z.array(z.lazy(() => exports.Credentials$inboundSchema)),
132
+ vendor_credentials: z.array(components.VendorCredentialSlim$inboundSchema),
133
+ pager: components.Pager$inboundSchema,
134
+ }).transform((v) => {
135
+ return (0, primitives_js_1.remap)(v, {
136
+ "vendor_required_credentials": "vendorRequiredCredentials",
137
+ "vendor_credentials": "vendorCredentials",
138
+ });
139
+ });
140
+ /** @internal */
141
+ exports.ListVendorCredentialsResponseBody$outboundSchema = z.object({
142
+ vendorRequiredCredentials: z.array(components.VendorRequiredCredential$outboundSchema),
143
+ credentials: z.array(z.lazy(() => exports.Credentials$outboundSchema)),
144
+ vendorCredentials: z.array(components.VendorCredentialSlim$outboundSchema),
145
+ pager: components.Pager$outboundSchema,
146
+ }).transform((v) => {
147
+ return (0, primitives_js_1.remap)(v, {
148
+ vendorRequiredCredentials: "vendor_required_credentials",
149
+ vendorCredentials: "vendor_credentials",
150
+ });
151
+ });
152
+ /**
153
+ * @internal
154
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
155
+ */
156
+ var ListVendorCredentialsResponseBody$;
157
+ (function (ListVendorCredentialsResponseBody$) {
158
+ /** @deprecated use `ListVendorCredentialsResponseBody$inboundSchema` instead. */
159
+ ListVendorCredentialsResponseBody$.inboundSchema = exports.ListVendorCredentialsResponseBody$inboundSchema;
160
+ /** @deprecated use `ListVendorCredentialsResponseBody$outboundSchema` instead. */
161
+ ListVendorCredentialsResponseBody$.outboundSchema = exports.ListVendorCredentialsResponseBody$outboundSchema;
162
+ })(ListVendorCredentialsResponseBody$ || (exports.ListVendorCredentialsResponseBody$ = ListVendorCredentialsResponseBody$ = {}));
163
+ function listVendorCredentialsResponseBodyToJSON(listVendorCredentialsResponseBody) {
164
+ return JSON.stringify(exports.ListVendorCredentialsResponseBody$outboundSchema.parse(listVendorCredentialsResponseBody));
165
+ }
166
+ function listVendorCredentialsResponseBodyFromJSON(jsonString) {
167
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListVendorCredentialsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListVendorCredentialsResponseBody' from JSON`);
168
+ }
169
+ //# sourceMappingURL=listvendorcredentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listvendorcredentials.js","sourceRoot":"","sources":["../../src/models/operations/listvendorcredentials.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6HH,gFAQC;AAED,oFAQC;AAyCD,8C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EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,kCAA0B,CAAC,CAAC;IAC9D,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,mCAAmC,CAAC;IAC1E,KAAK,EAAE,UAAU,CAAC,oBAAoB;CACvC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,yBAAyB,EAAE,6BAA6B;QACxD,iBAAiB,EAAE,oBAAoB;KACxC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,kCAAkC,CAQlD;AARD,WAAiB,kCAAkC;IACjD,iFAAiF;IACpE,gDAAa,GAAG,uDAA+C,CAAC;IAC7E,kFAAkF;IACrE,iDAAc,GACzB,wDAAgD,CAAC;AAGrD,CAAC,EARgB,kCAAkC,kDAAlC,kCAAkC,QAQlD;AAED,SAAgB,uCAAuC,CACrD,iCAAoE;IAEpE,OAAO,IAAI,CAAC,SAAS,CACnB,wDAAgD,CAAC,KAAK,CACpD,iCAAiC,CAClC,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,yCAAyC,CACvD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uDAA+C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3E,+DAA+D,CAChE,CAAC;AACJ,CAAC"}
@@ -0,0 +1,116 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import * as components from "../components/index.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ export type ListVendorInvoicesRequest = {
6
+ /**
7
+ * A comma-separated list of object attributes to sort on.
8
+ */
9
+ sort?: string | null | undefined;
10
+ /**
11
+ * Sort desc
12
+ */
13
+ desc?: components.Desc | undefined;
14
+ /**
15
+ * A 1-based offset for which page to request (defaults to 1)
16
+ */
17
+ page?: number | undefined;
18
+ /**
19
+ * Number of items to show in a given page
20
+ */
21
+ itemsPerPage?: number | undefined;
22
+ /**
23
+ * An array-style parameter to identify which sections of an object to expand. See documentation for the endpoint for a list of valid expansion values.
24
+ */
25
+ expand?: Array<components.Expand> | undefined;
26
+ /**
27
+ * Either the ID of the vendor rep or the keyword "me" to represent the current vendor.
28
+ */
29
+ vendorIdOrMe: string;
30
+ };
31
+ /**
32
+ * The request was successful, and the server has returned the requested resource in the response body.
33
+ */
34
+ export type ListVendorInvoicesResponseBody = {
35
+ items: Array<components.Invoice>;
36
+ /**
37
+ * Pagination information for a pageable list
38
+ */
39
+ pager: components.Pager;
40
+ };
41
+ export type ListVendorInvoicesResponse = {
42
+ result: ListVendorInvoicesResponseBody;
43
+ };
44
+ /** @internal */
45
+ export declare const ListVendorInvoicesRequest$inboundSchema: z.ZodType<ListVendorInvoicesRequest, z.ZodTypeDef, unknown>;
46
+ /** @internal */
47
+ export type ListVendorInvoicesRequest$Outbound = {
48
+ sort?: string | null | undefined;
49
+ desc?: components.Desc$Outbound | undefined;
50
+ page?: number | undefined;
51
+ items_per_page?: number | undefined;
52
+ expand?: Array<string> | undefined;
53
+ vendor_id_or_me: string;
54
+ };
55
+ /** @internal */
56
+ export declare const ListVendorInvoicesRequest$outboundSchema: z.ZodType<ListVendorInvoicesRequest$Outbound, z.ZodTypeDef, ListVendorInvoicesRequest>;
57
+ /**
58
+ * @internal
59
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
60
+ */
61
+ export declare namespace ListVendorInvoicesRequest$ {
62
+ /** @deprecated use `ListVendorInvoicesRequest$inboundSchema` instead. */
63
+ const inboundSchema: z.ZodType<ListVendorInvoicesRequest, z.ZodTypeDef, unknown>;
64
+ /** @deprecated use `ListVendorInvoicesRequest$outboundSchema` instead. */
65
+ const outboundSchema: z.ZodType<ListVendorInvoicesRequest$Outbound, z.ZodTypeDef, ListVendorInvoicesRequest>;
66
+ /** @deprecated use `ListVendorInvoicesRequest$Outbound` instead. */
67
+ type Outbound = ListVendorInvoicesRequest$Outbound;
68
+ }
69
+ export declare function listVendorInvoicesRequestToJSON(listVendorInvoicesRequest: ListVendorInvoicesRequest): string;
70
+ export declare function listVendorInvoicesRequestFromJSON(jsonString: string): SafeParseResult<ListVendorInvoicesRequest, SDKValidationError>;
71
+ /** @internal */
72
+ export declare const ListVendorInvoicesResponseBody$inboundSchema: z.ZodType<ListVendorInvoicesResponseBody, z.ZodTypeDef, unknown>;
73
+ /** @internal */
74
+ export type ListVendorInvoicesResponseBody$Outbound = {
75
+ items: Array<components.Invoice$Outbound>;
76
+ pager: components.Pager$Outbound;
77
+ };
78
+ /** @internal */
79
+ export declare const ListVendorInvoicesResponseBody$outboundSchema: z.ZodType<ListVendorInvoicesResponseBody$Outbound, z.ZodTypeDef, ListVendorInvoicesResponseBody>;
80
+ /**
81
+ * @internal
82
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
83
+ */
84
+ export declare namespace ListVendorInvoicesResponseBody$ {
85
+ /** @deprecated use `ListVendorInvoicesResponseBody$inboundSchema` instead. */
86
+ const inboundSchema: z.ZodType<ListVendorInvoicesResponseBody, z.ZodTypeDef, unknown>;
87
+ /** @deprecated use `ListVendorInvoicesResponseBody$outboundSchema` instead. */
88
+ const outboundSchema: z.ZodType<ListVendorInvoicesResponseBody$Outbound, z.ZodTypeDef, ListVendorInvoicesResponseBody>;
89
+ /** @deprecated use `ListVendorInvoicesResponseBody$Outbound` instead. */
90
+ type Outbound = ListVendorInvoicesResponseBody$Outbound;
91
+ }
92
+ export declare function listVendorInvoicesResponseBodyToJSON(listVendorInvoicesResponseBody: ListVendorInvoicesResponseBody): string;
93
+ export declare function listVendorInvoicesResponseBodyFromJSON(jsonString: string): SafeParseResult<ListVendorInvoicesResponseBody, SDKValidationError>;
94
+ /** @internal */
95
+ export declare const ListVendorInvoicesResponse$inboundSchema: z.ZodType<ListVendorInvoicesResponse, z.ZodTypeDef, unknown>;
96
+ /** @internal */
97
+ export type ListVendorInvoicesResponse$Outbound = {
98
+ Result: ListVendorInvoicesResponseBody$Outbound;
99
+ };
100
+ /** @internal */
101
+ export declare const ListVendorInvoicesResponse$outboundSchema: z.ZodType<ListVendorInvoicesResponse$Outbound, z.ZodTypeDef, ListVendorInvoicesResponse>;
102
+ /**
103
+ * @internal
104
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
105
+ */
106
+ export declare namespace ListVendorInvoicesResponse$ {
107
+ /** @deprecated use `ListVendorInvoicesResponse$inboundSchema` instead. */
108
+ const inboundSchema: z.ZodType<ListVendorInvoicesResponse, z.ZodTypeDef, unknown>;
109
+ /** @deprecated use `ListVendorInvoicesResponse$outboundSchema` instead. */
110
+ const outboundSchema: z.ZodType<ListVendorInvoicesResponse$Outbound, z.ZodTypeDef, ListVendorInvoicesResponse>;
111
+ /** @deprecated use `ListVendorInvoicesResponse$Outbound` instead. */
112
+ type Outbound = ListVendorInvoicesResponse$Outbound;
113
+ }
114
+ export declare function listVendorInvoicesResponseToJSON(listVendorInvoicesResponse: ListVendorInvoicesResponse): string;
115
+ export declare function listVendorInvoicesResponseFromJSON(jsonString: string): SafeParseResult<ListVendorInvoicesResponse, SDKValidationError>;
116
+ //# sourceMappingURL=listvendorinvoices.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listvendorinvoices.d.ts","sourceRoot":"","sources":["../../src/models/operations/listvendorinvoices.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,IAAI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M,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,mCAAmC,GAAG;IAChD,MAAM,EAAE,uCAAuC,CAAC;CACjD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,0BAA0B,CAO1B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,2BAA2B,CAAC;IAC3C,0EAA0E;IACnE,MAAM,aAAa,8DAA2C,CAAC;IACtE,2EAA2E;IACpE,MAAM,cAAc,0FAA4C,CAAC;IACxE,qEAAqE;IACrE,KAAY,QAAQ,GAAG,mCAAmC,CAAC;CAC5D;AAED,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,0BAA0B,GACrD,MAAM,CAIR;AAED,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
@@ -0,0 +1,155 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ListVendorInvoicesResponse$ = exports.ListVendorInvoicesResponse$outboundSchema = exports.ListVendorInvoicesResponse$inboundSchema = exports.ListVendorInvoicesResponseBody$ = exports.ListVendorInvoicesResponseBody$outboundSchema = exports.ListVendorInvoicesResponseBody$inboundSchema = exports.ListVendorInvoicesRequest$ = exports.ListVendorInvoicesRequest$outboundSchema = exports.ListVendorInvoicesRequest$inboundSchema = void 0;
40
+ exports.listVendorInvoicesRequestToJSON = listVendorInvoicesRequestToJSON;
41
+ exports.listVendorInvoicesRequestFromJSON = listVendorInvoicesRequestFromJSON;
42
+ exports.listVendorInvoicesResponseBodyToJSON = listVendorInvoicesResponseBodyToJSON;
43
+ exports.listVendorInvoicesResponseBodyFromJSON = listVendorInvoicesResponseBodyFromJSON;
44
+ exports.listVendorInvoicesResponseToJSON = listVendorInvoicesResponseToJSON;
45
+ exports.listVendorInvoicesResponseFromJSON = listVendorInvoicesResponseFromJSON;
46
+ const z = __importStar(require("zod"));
47
+ const primitives_js_1 = require("../../lib/primitives.js");
48
+ const schemas_js_1 = require("../../lib/schemas.js");
49
+ const components = __importStar(require("../components/index.js"));
50
+ /** @internal */
51
+ exports.ListVendorInvoicesRequest$inboundSchema = z.object({
52
+ sort: z.nullable(z.string()).optional(),
53
+ desc: components.Desc$inboundSchema.optional(),
54
+ page: z.number().int().optional(),
55
+ items_per_page: z.number().int().optional(),
56
+ expand: z.array(components.Expand$inboundSchema).optional(),
57
+ vendor_id_or_me: z.string(),
58
+ }).transform((v) => {
59
+ return (0, primitives_js_1.remap)(v, {
60
+ "items_per_page": "itemsPerPage",
61
+ "vendor_id_or_me": "vendorIdOrMe",
62
+ });
63
+ });
64
+ /** @internal */
65
+ exports.ListVendorInvoicesRequest$outboundSchema = z.object({
66
+ sort: z.nullable(z.string()).optional(),
67
+ desc: components.Desc$outboundSchema.optional(),
68
+ page: z.number().int().optional(),
69
+ itemsPerPage: z.number().int().optional(),
70
+ expand: z.array(components.Expand$outboundSchema).optional(),
71
+ vendorIdOrMe: z.string(),
72
+ }).transform((v) => {
73
+ return (0, primitives_js_1.remap)(v, {
74
+ itemsPerPage: "items_per_page",
75
+ vendorIdOrMe: "vendor_id_or_me",
76
+ });
77
+ });
78
+ /**
79
+ * @internal
80
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
81
+ */
82
+ var ListVendorInvoicesRequest$;
83
+ (function (ListVendorInvoicesRequest$) {
84
+ /** @deprecated use `ListVendorInvoicesRequest$inboundSchema` instead. */
85
+ ListVendorInvoicesRequest$.inboundSchema = exports.ListVendorInvoicesRequest$inboundSchema;
86
+ /** @deprecated use `ListVendorInvoicesRequest$outboundSchema` instead. */
87
+ ListVendorInvoicesRequest$.outboundSchema = exports.ListVendorInvoicesRequest$outboundSchema;
88
+ })(ListVendorInvoicesRequest$ || (exports.ListVendorInvoicesRequest$ = ListVendorInvoicesRequest$ = {}));
89
+ function listVendorInvoicesRequestToJSON(listVendorInvoicesRequest) {
90
+ return JSON.stringify(exports.ListVendorInvoicesRequest$outboundSchema.parse(listVendorInvoicesRequest));
91
+ }
92
+ function listVendorInvoicesRequestFromJSON(jsonString) {
93
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListVendorInvoicesRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListVendorInvoicesRequest' from JSON`);
94
+ }
95
+ /** @internal */
96
+ exports.ListVendorInvoicesResponseBody$inboundSchema = z.object({
97
+ items: z.array(components.Invoice$inboundSchema),
98
+ pager: components.Pager$inboundSchema,
99
+ });
100
+ /** @internal */
101
+ exports.ListVendorInvoicesResponseBody$outboundSchema = z.object({
102
+ items: z.array(components.Invoice$outboundSchema),
103
+ pager: components.Pager$outboundSchema,
104
+ });
105
+ /**
106
+ * @internal
107
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
108
+ */
109
+ var ListVendorInvoicesResponseBody$;
110
+ (function (ListVendorInvoicesResponseBody$) {
111
+ /** @deprecated use `ListVendorInvoicesResponseBody$inboundSchema` instead. */
112
+ ListVendorInvoicesResponseBody$.inboundSchema = exports.ListVendorInvoicesResponseBody$inboundSchema;
113
+ /** @deprecated use `ListVendorInvoicesResponseBody$outboundSchema` instead. */
114
+ ListVendorInvoicesResponseBody$.outboundSchema = exports.ListVendorInvoicesResponseBody$outboundSchema;
115
+ })(ListVendorInvoicesResponseBody$ || (exports.ListVendorInvoicesResponseBody$ = ListVendorInvoicesResponseBody$ = {}));
116
+ function listVendorInvoicesResponseBodyToJSON(listVendorInvoicesResponseBody) {
117
+ return JSON.stringify(exports.ListVendorInvoicesResponseBody$outboundSchema.parse(listVendorInvoicesResponseBody));
118
+ }
119
+ function listVendorInvoicesResponseBodyFromJSON(jsonString) {
120
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListVendorInvoicesResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListVendorInvoicesResponseBody' from JSON`);
121
+ }
122
+ /** @internal */
123
+ exports.ListVendorInvoicesResponse$inboundSchema = z.object({
124
+ Result: z.lazy(() => exports.ListVendorInvoicesResponseBody$inboundSchema),
125
+ }).transform((v) => {
126
+ return (0, primitives_js_1.remap)(v, {
127
+ "Result": "result",
128
+ });
129
+ });
130
+ /** @internal */
131
+ exports.ListVendorInvoicesResponse$outboundSchema = z.object({
132
+ result: z.lazy(() => exports.ListVendorInvoicesResponseBody$outboundSchema),
133
+ }).transform((v) => {
134
+ return (0, primitives_js_1.remap)(v, {
135
+ result: "Result",
136
+ });
137
+ });
138
+ /**
139
+ * @internal
140
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
141
+ */
142
+ var ListVendorInvoicesResponse$;
143
+ (function (ListVendorInvoicesResponse$) {
144
+ /** @deprecated use `ListVendorInvoicesResponse$inboundSchema` instead. */
145
+ ListVendorInvoicesResponse$.inboundSchema = exports.ListVendorInvoicesResponse$inboundSchema;
146
+ /** @deprecated use `ListVendorInvoicesResponse$outboundSchema` instead. */
147
+ ListVendorInvoicesResponse$.outboundSchema = exports.ListVendorInvoicesResponse$outboundSchema;
148
+ })(ListVendorInvoicesResponse$ || (exports.ListVendorInvoicesResponse$ = ListVendorInvoicesResponse$ = {}));
149
+ function listVendorInvoicesResponseToJSON(listVendorInvoicesResponse) {
150
+ return JSON.stringify(exports.ListVendorInvoicesResponse$outboundSchema.parse(listVendorInvoicesResponse));
151
+ }
152
+ function listVendorInvoicesResponseFromJSON(jsonString) {
153
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListVendorInvoicesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListVendorInvoicesResponse' from JSON`);
154
+ }
155
+ //# sourceMappingURL=listvendorinvoices.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listvendorinvoices.js","sourceRoot":"","sources":["../../src/models/operations/listvendorinvoices.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgHH,0EAMC;AAED,8EAQC;AAyCD,oFAQC;AAED,wFAQC;AA8CD,4EAMC;AAED,gFAQC;AAvPD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AA6CrD,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,E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