@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.
- package/REACT_QUERY.md +68 -30
- package/README.md +74 -19
- package/bin/mcp-server.js +1494 -215
- package/bin/mcp-server.js.map +56 -34
- package/funcs/organizationsListOrSearchFacilities.d.ts +4 -1
- package/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
- package/funcs/organizationsListOrSearchFacilities.js +47 -10
- package/funcs/organizationsListOrSearchFacilities.js.map +1 -1
- package/funcs/supportArticlesGetSupportArticle.d.ts +25 -0
- package/funcs/supportArticlesGetSupportArticle.d.ts.map +1 -0
- package/funcs/supportArticlesGetSupportArticle.js +132 -0
- package/funcs/supportArticlesGetSupportArticle.js.map +1 -0
- package/funcs/supportArticlesListOrSearchSupportArticles.d.ts +19 -0
- package/funcs/supportArticlesListOrSearchSupportArticles.d.ts.map +1 -0
- package/funcs/supportArticlesListOrSearchSupportArticles.js +153 -0
- package/funcs/supportArticlesListOrSearchSupportArticles.js.map +1 -0
- package/funcs/{userGetCurrentUser.d.ts → usersGetCurrentUser.d.ts} +2 -2
- package/funcs/usersGetCurrentUser.d.ts.map +1 -0
- package/funcs/{userGetCurrentUser.js → usersGetCurrentUser.js} +3 -3
- package/funcs/usersGetCurrentUser.js.map +1 -0
- package/funcs/{userGetUserById.d.ts → usersGetUserById.d.ts} +2 -2
- package/funcs/usersGetUserById.d.ts.map +1 -0
- package/funcs/{userGetUserById.js → usersGetUserById.js} +3 -3
- package/funcs/usersGetUserById.js.map +1 -0
- package/funcs/{userLogsUserIntoTheSystem.d.ts → usersLogsUserIntoTheSystem.d.ts} +2 -2
- package/funcs/usersLogsUserIntoTheSystem.d.ts.map +1 -0
- package/funcs/{userLogsUserIntoTheSystem.js → usersLogsUserIntoTheSystem.js} +3 -3
- package/funcs/usersLogsUserIntoTheSystem.js.map +1 -0
- package/funcs/{userMagiclink.d.ts → usersMagiclink.d.ts} +2 -2
- package/funcs/usersMagiclink.d.ts.map +1 -0
- package/funcs/{userMagiclink.js → usersMagiclink.js} +4 -4
- package/funcs/usersMagiclink.js.map +1 -0
- package/funcs/{userPassword.d.ts → usersPassword.d.ts} +2 -2
- package/funcs/usersPassword.d.ts.map +1 -0
- package/funcs/{userPassword.js → usersPassword.js} +4 -4
- package/funcs/usersPassword.js.map +1 -0
- package/funcs/{userPasswordResetRequest.d.ts → usersPasswordResetRequest.d.ts} +2 -2
- package/funcs/usersPasswordResetRequest.d.ts.map +1 -0
- package/funcs/{userPasswordResetRequest.js → usersPasswordResetRequest.js} +4 -4
- package/funcs/usersPasswordResetRequest.js.map +1 -0
- package/funcs/vendorsCreateVendorRegistration.d.ts +1 -1
- package/funcs/vendorsCreateVendorRegistration.d.ts.map +1 -1
- package/funcs/vendorsCreateVendorRegistration.js +2 -1
- package/funcs/vendorsCreateVendorRegistration.js.map +1 -1
- package/funcs/vendorsExpediteTimeRemaining.d.ts +17 -0
- package/funcs/vendorsExpediteTimeRemaining.d.ts.map +1 -0
- package/funcs/vendorsExpediteTimeRemaining.js +120 -0
- package/funcs/vendorsExpediteTimeRemaining.js.map +1 -0
- package/funcs/vendorsListVendorCredentials.d.ts +16 -0
- package/funcs/vendorsListVendorCredentials.d.ts.map +1 -0
- package/funcs/vendorsListVendorCredentials.js +124 -0
- package/funcs/vendorsListVendorCredentials.js.map +1 -0
- package/funcs/vendorsListVendorInvoices.d.ts +24 -0
- package/funcs/vendorsListVendorInvoices.d.ts.map +1 -0
- package/funcs/vendorsListVendorInvoices.js +166 -0
- package/funcs/vendorsListVendorInvoices.js.map +1 -0
- package/funcs/vendorsListVendorJobTitles.d.ts +4 -1
- package/funcs/vendorsListVendorJobTitles.d.ts.map +1 -1
- package/funcs/vendorsListVendorJobTitles.js +39 -6
- package/funcs/vendorsListVendorJobTitles.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +23 -13
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/organizationsListOrSearchFacilities.js +1 -1
- package/mcp-server/tools/organizationsListOrSearchFacilities.js.map +1 -1
- package/mcp-server/tools/supportArticlesGetSupportArticle.d.ts +8 -0
- package/mcp-server/tools/supportArticlesGetSupportArticle.d.ts.map +1 -0
- package/mcp-server/tools/supportArticlesGetSupportArticle.js +71 -0
- package/mcp-server/tools/supportArticlesGetSupportArticle.js.map +1 -0
- package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.d.ts +8 -0
- package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.d.ts.map +1 -0
- package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.js +64 -0
- package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.js.map +1 -0
- package/mcp-server/tools/usersGetCurrentUser.d.ts +3 -0
- package/mcp-server/tools/usersGetCurrentUser.d.ts.map +1 -0
- package/mcp-server/tools/usersGetCurrentUser.js +26 -0
- package/mcp-server/tools/usersGetCurrentUser.js.map +1 -0
- package/mcp-server/tools/usersGetUserById.d.ts +8 -0
- package/mcp-server/tools/usersGetUserById.d.ts.map +1 -0
- package/mcp-server/tools/usersGetUserById.js +64 -0
- package/mcp-server/tools/usersGetUserById.js.map +1 -0
- package/mcp-server/tools/usersLogsUserIntoTheSystem.d.ts +8 -0
- package/mcp-server/tools/usersLogsUserIntoTheSystem.d.ts.map +1 -0
- package/mcp-server/tools/usersLogsUserIntoTheSystem.js +94 -0
- package/mcp-server/tools/usersLogsUserIntoTheSystem.js.map +1 -0
- package/mcp-server/tools/usersMagiclink.d.ts +8 -0
- package/mcp-server/tools/usersMagiclink.d.ts.map +1 -0
- package/mcp-server/tools/usersMagiclink.js +64 -0
- package/mcp-server/tools/usersMagiclink.js.map +1 -0
- package/mcp-server/tools/usersPassword.d.ts +8 -0
- package/mcp-server/tools/usersPassword.d.ts.map +1 -0
- package/mcp-server/tools/usersPassword.js +65 -0
- package/mcp-server/tools/usersPassword.js.map +1 -0
- package/mcp-server/tools/usersPasswordResetRequest.d.ts +8 -0
- package/mcp-server/tools/usersPasswordResetRequest.d.ts.map +1 -0
- package/mcp-server/tools/usersPasswordResetRequest.js +64 -0
- package/mcp-server/tools/usersPasswordResetRequest.js.map +1 -0
- package/mcp-server/tools/vendorsExpediteTimeRemaining.d.ts +8 -0
- package/mcp-server/tools/vendorsExpediteTimeRemaining.d.ts.map +1 -0
- package/mcp-server/tools/vendorsExpediteTimeRemaining.js +64 -0
- package/mcp-server/tools/vendorsExpediteTimeRemaining.js.map +1 -0
- package/mcp-server/tools/vendorsListVendorCredentials.d.ts +8 -0
- package/mcp-server/tools/vendorsListVendorCredentials.d.ts.map +1 -0
- package/mcp-server/tools/vendorsListVendorCredentials.js +64 -0
- package/mcp-server/tools/vendorsListVendorCredentials.js.map +1 -0
- package/mcp-server/tools/vendorsListVendorInvoices.d.ts +8 -0
- package/mcp-server/tools/vendorsListVendorInvoices.d.ts.map +1 -0
- package/mcp-server/tools/vendorsListVendorInvoices.js +68 -0
- package/mcp-server/tools/vendorsListVendorInvoices.js.map +1 -0
- package/mcp-server/tools/vendorsListVendorJobTitles.js +1 -1
- package/mcp-server/tools/vendorsListVendorJobTitles.js.map +1 -1
- package/models/components/{status.d.ts → activestatus.d.ts} +8 -8
- package/models/components/activestatus.d.ts.map +1 -0
- package/models/components/{status.js → activestatus.js} +12 -13
- package/models/components/activestatus.js.map +1 -0
- package/models/components/contact.d.ts +8 -8
- package/models/components/contact.d.ts.map +1 -1
- package/models/components/contact.js +14 -13
- package/models/components/contact.js.map +1 -1
- package/models/components/credentialstatus.d.ts +49 -0
- package/models/components/credentialstatus.d.ts.map +1 -0
- package/models/components/credentialstatus.js +68 -0
- package/models/components/credentialstatus.js.map +1 -0
- package/models/components/expand.d.ts +15 -0
- package/models/components/expand.d.ts.map +1 -1
- package/models/components/expand.js +5 -0
- package/models/components/expand.js.map +1 -1
- package/models/components/index.d.ts +7 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +7 -1
- package/models/components/index.js.map +1 -1
- package/models/components/invoice.d.ts +43 -0
- package/models/components/invoice.d.ts.map +1 -0
- package/models/components/invoice.js +91 -0
- package/models/components/invoice.js.map +1 -0
- package/models/components/invoiceitem.d.ts +40 -0
- package/models/components/invoiceitem.d.ts.map +1 -0
- package/models/components/invoiceitem.js +94 -0
- package/models/components/invoiceitem.js.map +1 -0
- package/models/components/supportarticle.d.ts +43 -0
- package/models/components/supportarticle.d.ts.map +1 -0
- package/models/components/supportarticle.js +92 -0
- package/models/components/supportarticle.js.map +1 -0
- package/models/components/vendorcredentialslim.d.ts +44 -0
- package/models/components/vendorcredentialslim.d.ts.map +1 -0
- package/models/components/vendorcredentialslim.js +94 -0
- package/models/components/vendorcredentialslim.js.map +1 -0
- package/models/components/vendorrequiredcredential.d.ts +42 -0
- package/models/components/vendorrequiredcredential.d.ts.map +1 -0
- package/models/components/vendorrequiredcredential.js +96 -0
- package/models/components/vendorrequiredcredential.js.map +1 -0
- package/models/operations/createvendorregistration.d.ts +13 -13
- package/models/operations/createvendorregistration.d.ts.map +1 -1
- package/models/operations/createvendorregistration.js +18 -16
- package/models/operations/createvendorregistration.js.map +1 -1
- package/models/operations/expeditetimeremaining.d.ts +60 -0
- package/models/operations/expeditetimeremaining.d.ts.map +1 -0
- package/models/operations/expeditetimeremaining.js +113 -0
- package/models/operations/expeditetimeremaining.js.map +1 -0
- package/models/operations/getsupportarticle.d.ts +38 -0
- package/models/operations/getsupportarticle.d.ts.map +1 -0
- package/models/operations/getsupportarticle.js +72 -0
- package/models/operations/getsupportarticle.js.map +1 -0
- package/models/operations/index.d.ts +5 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +5 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listorsearchfacilities.d.ts +40 -15
- package/models/operations/listorsearchfacilities.d.ts.map +1 -1
- package/models/operations/listorsearchfacilities.js +55 -18
- package/models/operations/listorsearchfacilities.js.map +1 -1
- package/models/operations/listorsearchsupportarticles.d.ts +106 -0
- package/models/operations/listorsearchsupportarticles.d.ts.map +1 -0
- package/models/operations/listorsearchsupportarticles.js +149 -0
- package/models/operations/listorsearchsupportarticles.js.map +1 -0
- package/models/operations/listvendorcredentials.d.ts +122 -0
- package/models/operations/listvendorcredentials.d.ts.map +1 -0
- package/models/operations/listvendorcredentials.js +169 -0
- package/models/operations/listvendorcredentials.js.map +1 -0
- package/models/operations/listvendorinvoices.d.ts +116 -0
- package/models/operations/listvendorinvoices.d.ts.map +1 -0
- package/models/operations/listvendorinvoices.js +155 -0
- package/models/operations/listvendorinvoices.js.map +1 -0
- package/models/operations/listvendorjobtitles.d.ts +38 -13
- package/models/operations/listvendorjobtitles.d.ts.map +1 -1
- package/models/operations/listvendorjobtitles.js +51 -16
- package/models/operations/listvendorjobtitles.js.map +1 -1
- package/models/operations/magiclink.d.ts +13 -13
- package/models/operations/magiclink.d.ts.map +1 -1
- package/models/operations/magiclink.js +16 -16
- package/models/operations/magiclink.js.map +1 -1
- package/models/operations/password.d.ts +13 -13
- package/models/operations/password.d.ts.map +1 -1
- package/models/operations/password.js +16 -16
- package/models/operations/password.js.map +1 -1
- package/models/operations/passwordresetrequest.d.ts +13 -13
- package/models/operations/passwordresetrequest.d.ts.map +1 -1
- package/models/operations/passwordresetrequest.js +16 -16
- package/models/operations/passwordresetrequest.js.map +1 -1
- package/package.json +1 -1
- package/react-query/index.d.ts +11 -6
- package/react-query/index.d.ts.map +1 -1
- package/react-query/index.js +11 -6
- package/react-query/index.js.map +1 -1
- package/react-query/organizationsListOrSearchFacilities.d.ts +57 -6
- package/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
- package/react-query/organizationsListOrSearchFacilities.js +90 -1
- package/react-query/organizationsListOrSearchFacilities.js.map +1 -1
- package/react-query/supportArticlesGetSupportArticle.d.ts +57 -0
- package/react-query/supportArticlesGetSupportArticle.d.ts.map +1 -0
- package/react-query/supportArticlesGetSupportArticle.js +113 -0
- package/react-query/supportArticlesGetSupportArticle.js.map +1 -0
- package/react-query/supportArticlesListOrSearchSupportArticles.d.ts +75 -0
- package/react-query/supportArticlesListOrSearchSupportArticles.d.ts.map +1 -0
- package/react-query/supportArticlesListOrSearchSupportArticles.js +159 -0
- package/react-query/supportArticlesListOrSearchSupportArticles.js.map +1 -0
- package/react-query/usersGetCurrentUser.d.ts +29 -0
- package/react-query/usersGetCurrentUser.d.ts.map +1 -0
- package/react-query/usersGetCurrentUser.js +75 -0
- package/react-query/usersGetCurrentUser.js.map +1 -0
- package/react-query/usersGetUserById.d.ts +31 -0
- package/react-query/usersGetUserById.d.ts.map +1 -0
- package/react-query/usersGetUserById.js +87 -0
- package/react-query/usersGetUserById.js.map +1 -0
- package/react-query/{userLogsUserIntoTheSystem.d.ts → usersLogsUserIntoTheSystem.d.ts} +7 -7
- package/react-query/usersLogsUserIntoTheSystem.d.ts.map +1 -0
- package/react-query/{userLogsUserIntoTheSystem.js → usersLogsUserIntoTheSystem.js} +13 -13
- package/react-query/usersLogsUserIntoTheSystem.js.map +1 -0
- package/react-query/usersMagiclink.d.ts +23 -0
- package/react-query/usersMagiclink.d.ts.map +1 -0
- package/react-query/{userMagiclink.js → usersMagiclink.js} +13 -13
- package/react-query/usersMagiclink.js.map +1 -0
- package/react-query/usersPassword.d.ts +24 -0
- package/react-query/usersPassword.d.ts.map +1 -0
- package/react-query/{userPassword.js → usersPassword.js} +13 -13
- package/react-query/usersPassword.js.map +1 -0
- package/react-query/usersPasswordResetRequest.d.ts +23 -0
- package/react-query/usersPasswordResetRequest.d.ts.map +1 -0
- package/react-query/{userPasswordResetRequest.js → usersPasswordResetRequest.js} +13 -13
- package/react-query/usersPasswordResetRequest.js.map +1 -0
- package/react-query/vendorsCreateVendorRegistration.d.ts +1 -1
- package/react-query/vendorsCreateVendorRegistration.d.ts.map +1 -1
- package/react-query/vendorsExpediteTimeRemaining.d.ts +30 -0
- package/react-query/vendorsExpediteTimeRemaining.d.ts.map +1 -0
- package/react-query/vendorsExpediteTimeRemaining.js +96 -0
- package/react-query/vendorsExpediteTimeRemaining.js.map +1 -0
- package/react-query/vendorsListVendorCredentials.d.ts +55 -0
- package/react-query/vendorsListVendorCredentials.d.ts.map +1 -0
- package/react-query/vendorsListVendorCredentials.js +103 -0
- package/react-query/vendorsListVendorCredentials.js.map +1 -0
- package/react-query/vendorsListVendorInvoices.d.ts +96 -0
- package/react-query/vendorsListVendorInvoices.d.ts.map +1 -0
- package/react-query/vendorsListVendorInvoices.js +178 -0
- package/react-query/vendorsListVendorInvoices.js.map +1 -0
- package/react-query/vendorsListVendorJobTitles.d.ts +28 -3
- package/react-query/vendorsListVendorJobTitles.d.ts.map +1 -1
- package/react-query/vendorsListVendorJobTitles.js +59 -0
- package/react-query/vendorsListVendorJobTitles.js.map +1 -1
- package/sdk/organizations.d.ts +4 -1
- package/sdk/organizations.d.ts.map +1 -1
- package/sdk/organizations.js +2 -1
- package/sdk/organizations.js.map +1 -1
- package/sdk/sdk.d.ts +6 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +7 -3
- package/sdk/sdk.js.map +1 -1
- package/sdk/supportarticles.d.ts +30 -0
- package/sdk/supportarticles.d.ts.map +1 -0
- package/sdk/supportarticles.js +40 -0
- package/sdk/supportarticles.js.map +1 -0
- package/sdk/{user.d.ts → users.d.ts} +5 -5
- package/sdk/users.d.ts.map +1 -0
- package/sdk/{user.js → users.js} +16 -16
- package/sdk/users.js.map +1 -0
- package/sdk/vendors.d.ts +32 -2
- package/sdk/vendors.d.ts.map +1 -1
- package/sdk/vendors.js +36 -1
- package/sdk/vendors.js.map +1 -1
- package/src/__tests__/organizations.test.ts +5 -175
- package/src/__tests__/supportarticles.test.ts +64 -0
- package/src/__tests__/user.test.ts +13 -7
- package/src/__tests__/vendors.test.ts +65 -2
- package/src/funcs/organizationsListOrSearchFacilities.ts +116 -39
- package/src/funcs/supportArticlesGetSupportArticle.ts +181 -0
- package/src/funcs/supportArticlesListOrSearchSupportArticles.ts +234 -0
- package/src/funcs/{userGetCurrentUser.ts → usersGetCurrentUser.ts} +1 -1
- package/src/funcs/{userGetUserById.ts → usersGetUserById.ts} +1 -1
- package/src/funcs/{userLogsUserIntoTheSystem.ts → usersLogsUserIntoTheSystem.ts} +1 -1
- package/src/funcs/{userMagiclink.ts → usersMagiclink.ts} +5 -5
- package/src/funcs/{userPassword.ts → usersPassword.ts} +5 -5
- package/src/funcs/{userPasswordResetRequest.ts → usersPasswordResetRequest.ts} +8 -5
- package/src/funcs/vendorsCreateVendorRegistration.ts +8 -4
- package/src/funcs/vendorsExpediteTimeRemaining.ts +171 -0
- package/src/funcs/vendorsListVendorCredentials.ts +169 -0
- package/src/funcs/vendorsListVendorInvoices.ts +255 -0
- package/src/funcs/vendorsListVendorJobTitles.ts +101 -30
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +23 -13
- package/src/mcp-server/tools/organizationsListOrSearchFacilities.ts +1 -1
- package/src/mcp-server/tools/supportArticlesGetSupportArticle.ts +46 -0
- package/src/mcp-server/tools/supportArticlesListOrSearchSupportArticles.ts +39 -0
- package/src/mcp-server/tools/{userGetCurrentUser.ts → usersGetCurrentUser.ts} +4 -4
- package/src/mcp-server/tools/{userGetUserById.ts → usersGetUserById.ts} +4 -4
- package/src/mcp-server/tools/{userLogsUserIntoTheSystem.ts → usersLogsUserIntoTheSystem.ts} +4 -4
- package/src/mcp-server/tools/{userMagiclink.ts → usersMagiclink.ts} +4 -4
- package/src/mcp-server/tools/{userPassword.ts → usersPassword.ts} +4 -4
- package/src/mcp-server/tools/{userPasswordResetRequest.ts → usersPasswordResetRequest.ts} +4 -4
- package/src/mcp-server/tools/vendorsExpediteTimeRemaining.ts +37 -0
- package/src/mcp-server/tools/vendorsListVendorCredentials.ts +37 -0
- package/src/mcp-server/tools/vendorsListVendorInvoices.ts +41 -0
- package/src/mcp-server/tools/vendorsListVendorJobTitles.ts +1 -1
- package/src/models/components/activestatus.ts +38 -0
- package/src/models/components/contact.ts +14 -16
- package/src/models/components/credentialstatus.ts +44 -0
- package/src/models/components/expand.ts +5 -0
- package/src/models/components/index.ts +7 -1
- package/src/models/components/invoice.ts +99 -0
- package/src/models/components/invoiceitem.ts +98 -0
- package/src/models/components/supportarticle.ts +99 -0
- package/src/models/components/vendorcredentialslim.ts +106 -0
- package/src/models/components/vendorrequiredcredential.ts +106 -0
- package/src/models/operations/createvendorregistration.ts +39 -32
- package/src/models/operations/expeditetimeremaining.ts +152 -0
- package/src/models/operations/getsupportarticle.ts +77 -0
- package/src/models/operations/index.ts +5 -0
- package/src/models/operations/listorsearchfacilities.ts +118 -34
- package/src/models/operations/listorsearchsupportarticles.ts +261 -0
- package/src/models/operations/listvendorcredentials.ts +281 -0
- package/src/models/operations/listvendorinvoices.ts +252 -0
- package/src/models/operations/listvendorjobtitles.ts +99 -22
- package/src/models/operations/magiclink.ts +21 -21
- package/src/models/operations/password.ts +21 -21
- package/src/models/operations/passwordresetrequest.ts +39 -31
- package/src/react-query/index.ts +11 -6
- package/src/react-query/organizationsListOrSearchFacilities.ts +183 -5
- package/src/react-query/supportArticlesGetSupportArticle.ts +192 -0
- package/src/react-query/supportArticlesListOrSearchSupportArticles.ts +349 -0
- package/src/react-query/{userGetCurrentUser.ts → usersGetCurrentUser.ts} +27 -27
- package/src/react-query/{userGetUserById.ts → usersGetUserById.ts} +31 -29
- package/src/react-query/{userLogsUserIntoTheSystem.ts → usersLogsUserIntoTheSystem.ts} +18 -18
- package/src/react-query/{userMagiclink.ts → usersMagiclink.ts} +18 -18
- package/src/react-query/{userPassword.ts → usersPassword.ts} +18 -18
- package/src/react-query/{userPasswordResetRequest.ts → usersPasswordResetRequest.ts} +19 -19
- package/src/react-query/vendorsCreateVendorRegistration.ts +1 -1
- package/src/react-query/vendorsExpediteTimeRemaining.ts +165 -0
- package/src/react-query/vendorsListVendorCredentials.ts +200 -0
- package/src/react-query/vendorsListVendorInvoices.ts +364 -0
- package/src/react-query/vendorsListVendorJobTitles.ts +149 -1
- package/src/sdk/organizations.ts +5 -2
- package/src/sdk/sdk.ts +10 -4
- package/src/sdk/supportarticles.ts +59 -0
- package/src/sdk/{user.ts → users.ts} +16 -16
- package/src/sdk/vendors.ts +68 -3
- package/funcs/userGetCurrentUser.d.ts.map +0 -1
- package/funcs/userGetCurrentUser.js.map +0 -1
- package/funcs/userGetUserById.d.ts.map +0 -1
- package/funcs/userGetUserById.js.map +0 -1
- package/funcs/userLogsUserIntoTheSystem.d.ts.map +0 -1
- package/funcs/userLogsUserIntoTheSystem.js.map +0 -1
- package/funcs/userMagiclink.d.ts.map +0 -1
- package/funcs/userMagiclink.js.map +0 -1
- package/funcs/userPassword.d.ts.map +0 -1
- package/funcs/userPassword.js.map +0 -1
- package/funcs/userPasswordResetRequest.d.ts.map +0 -1
- package/funcs/userPasswordResetRequest.js.map +0 -1
- package/models/components/status.d.ts.map +0 -1
- package/models/components/status.js.map +0 -1
- package/react-query/userGetCurrentUser.d.ts +0 -29
- package/react-query/userGetCurrentUser.d.ts.map +0 -1
- package/react-query/userGetCurrentUser.js +0 -75
- package/react-query/userGetCurrentUser.js.map +0 -1
- package/react-query/userGetUserById.d.ts +0 -31
- package/react-query/userGetUserById.d.ts.map +0 -1
- package/react-query/userGetUserById.js +0 -87
- package/react-query/userGetUserById.js.map +0 -1
- package/react-query/userLogsUserIntoTheSystem.d.ts.map +0 -1
- package/react-query/userLogsUserIntoTheSystem.js.map +0 -1
- package/react-query/userMagiclink.d.ts +0 -23
- package/react-query/userMagiclink.d.ts.map +0 -1
- package/react-query/userMagiclink.js.map +0 -1
- package/react-query/userPassword.d.ts +0 -24
- package/react-query/userPassword.d.ts.map +0 -1
- package/react-query/userPassword.js.map +0 -1
- package/react-query/userPasswordResetRequest.d.ts +0 -23
- package/react-query/userPasswordResetRequest.d.ts.map +0 -1
- package/react-query/userPasswordResetRequest.js.map +0 -1
- package/sdk/user.d.ts.map +0 -1
- package/sdk/user.js.map +0 -1
- package/src/models/components/status.ts +0 -38
|
@@ -14,7 +14,7 @@ export type MagiclinkRequestBody = {
|
|
|
14
14
|
/**
|
|
15
15
|
* The request was successful, and the server has returned the requested resource in the response body.
|
|
16
16
|
*/
|
|
17
|
-
export type
|
|
17
|
+
export type MagiclinkMagiclinkOk = {
|
|
18
18
|
success: boolean;
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -73,8 +73,8 @@ export function magiclinkRequestBodyFromJSON(
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
/** @internal */
|
|
76
|
-
export const
|
|
77
|
-
|
|
76
|
+
export const MagiclinkMagiclinkOk$inboundSchema: z.ZodType<
|
|
77
|
+
MagiclinkMagiclinkOk,
|
|
78
78
|
z.ZodTypeDef,
|
|
79
79
|
unknown
|
|
80
80
|
> = z.object({
|
|
@@ -82,15 +82,15 @@ export const MagiclinkResponseBody$inboundSchema: z.ZodType<
|
|
|
82
82
|
});
|
|
83
83
|
|
|
84
84
|
/** @internal */
|
|
85
|
-
export type
|
|
85
|
+
export type MagiclinkMagiclinkOk$Outbound = {
|
|
86
86
|
success: boolean;
|
|
87
87
|
};
|
|
88
88
|
|
|
89
89
|
/** @internal */
|
|
90
|
-
export const
|
|
91
|
-
|
|
90
|
+
export const MagiclinkMagiclinkOk$outboundSchema: z.ZodType<
|
|
91
|
+
MagiclinkMagiclinkOk$Outbound,
|
|
92
92
|
z.ZodTypeDef,
|
|
93
|
-
|
|
93
|
+
MagiclinkMagiclinkOk
|
|
94
94
|
> = z.object({
|
|
95
95
|
success: z.boolean(),
|
|
96
96
|
});
|
|
@@ -99,29 +99,29 @@ export const MagiclinkResponseBody$outboundSchema: z.ZodType<
|
|
|
99
99
|
* @internal
|
|
100
100
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
101
101
|
*/
|
|
102
|
-
export namespace
|
|
103
|
-
/** @deprecated use `
|
|
104
|
-
export const inboundSchema =
|
|
105
|
-
/** @deprecated use `
|
|
106
|
-
export const outboundSchema =
|
|
107
|
-
/** @deprecated use `
|
|
108
|
-
export type Outbound =
|
|
102
|
+
export namespace MagiclinkMagiclinkOk$ {
|
|
103
|
+
/** @deprecated use `MagiclinkMagiclinkOk$inboundSchema` instead. */
|
|
104
|
+
export const inboundSchema = MagiclinkMagiclinkOk$inboundSchema;
|
|
105
|
+
/** @deprecated use `MagiclinkMagiclinkOk$outboundSchema` instead. */
|
|
106
|
+
export const outboundSchema = MagiclinkMagiclinkOk$outboundSchema;
|
|
107
|
+
/** @deprecated use `MagiclinkMagiclinkOk$Outbound` instead. */
|
|
108
|
+
export type Outbound = MagiclinkMagiclinkOk$Outbound;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
export function
|
|
112
|
-
|
|
111
|
+
export function magiclinkMagiclinkOkToJSON(
|
|
112
|
+
magiclinkMagiclinkOk: MagiclinkMagiclinkOk,
|
|
113
113
|
): string {
|
|
114
114
|
return JSON.stringify(
|
|
115
|
-
|
|
115
|
+
MagiclinkMagiclinkOk$outboundSchema.parse(magiclinkMagiclinkOk),
|
|
116
116
|
);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
export function
|
|
119
|
+
export function magiclinkMagiclinkOkFromJSON(
|
|
120
120
|
jsonString: string,
|
|
121
|
-
): SafeParseResult<
|
|
121
|
+
): SafeParseResult<MagiclinkMagiclinkOk, SDKValidationError> {
|
|
122
122
|
return safeParse(
|
|
123
123
|
jsonString,
|
|
124
|
-
(x) =>
|
|
125
|
-
`Failed to parse '
|
|
124
|
+
(x) => MagiclinkMagiclinkOk$inboundSchema.parse(JSON.parse(x)),
|
|
125
|
+
`Failed to parse 'MagiclinkMagiclinkOk' from JSON`,
|
|
126
126
|
);
|
|
127
127
|
}
|
|
@@ -16,7 +16,7 @@ export type PasswordRequestBody = {
|
|
|
16
16
|
/**
|
|
17
17
|
* The request was successful, and the server has returned the requested resource in the response body.
|
|
18
18
|
*/
|
|
19
|
-
export type
|
|
19
|
+
export type PasswordPasswordOk = {
|
|
20
20
|
success?: boolean | null | undefined;
|
|
21
21
|
};
|
|
22
22
|
|
|
@@ -86,8 +86,8 @@ export function passwordRequestBodyFromJSON(
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
/** @internal */
|
|
89
|
-
export const
|
|
90
|
-
|
|
89
|
+
export const PasswordPasswordOk$inboundSchema: z.ZodType<
|
|
90
|
+
PasswordPasswordOk,
|
|
91
91
|
z.ZodTypeDef,
|
|
92
92
|
unknown
|
|
93
93
|
> = z.object({
|
|
@@ -95,15 +95,15 @@ export const PasswordResponseBody$inboundSchema: z.ZodType<
|
|
|
95
95
|
});
|
|
96
96
|
|
|
97
97
|
/** @internal */
|
|
98
|
-
export type
|
|
98
|
+
export type PasswordPasswordOk$Outbound = {
|
|
99
99
|
success?: boolean | null | undefined;
|
|
100
100
|
};
|
|
101
101
|
|
|
102
102
|
/** @internal */
|
|
103
|
-
export const
|
|
104
|
-
|
|
103
|
+
export const PasswordPasswordOk$outboundSchema: z.ZodType<
|
|
104
|
+
PasswordPasswordOk$Outbound,
|
|
105
105
|
z.ZodTypeDef,
|
|
106
|
-
|
|
106
|
+
PasswordPasswordOk
|
|
107
107
|
> = z.object({
|
|
108
108
|
success: z.nullable(z.boolean()).optional(),
|
|
109
109
|
});
|
|
@@ -112,29 +112,29 @@ export const PasswordResponseBody$outboundSchema: z.ZodType<
|
|
|
112
112
|
* @internal
|
|
113
113
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
114
114
|
*/
|
|
115
|
-
export namespace
|
|
116
|
-
/** @deprecated use `
|
|
117
|
-
export const inboundSchema =
|
|
118
|
-
/** @deprecated use `
|
|
119
|
-
export const outboundSchema =
|
|
120
|
-
/** @deprecated use `
|
|
121
|
-
export type Outbound =
|
|
115
|
+
export namespace PasswordPasswordOk$ {
|
|
116
|
+
/** @deprecated use `PasswordPasswordOk$inboundSchema` instead. */
|
|
117
|
+
export const inboundSchema = PasswordPasswordOk$inboundSchema;
|
|
118
|
+
/** @deprecated use `PasswordPasswordOk$outboundSchema` instead. */
|
|
119
|
+
export const outboundSchema = PasswordPasswordOk$outboundSchema;
|
|
120
|
+
/** @deprecated use `PasswordPasswordOk$Outbound` instead. */
|
|
121
|
+
export type Outbound = PasswordPasswordOk$Outbound;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
export function
|
|
125
|
-
|
|
124
|
+
export function passwordPasswordOkToJSON(
|
|
125
|
+
passwordPasswordOk: PasswordPasswordOk,
|
|
126
126
|
): string {
|
|
127
127
|
return JSON.stringify(
|
|
128
|
-
|
|
128
|
+
PasswordPasswordOk$outboundSchema.parse(passwordPasswordOk),
|
|
129
129
|
);
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
export function
|
|
132
|
+
export function passwordPasswordOkFromJSON(
|
|
133
133
|
jsonString: string,
|
|
134
|
-
): SafeParseResult<
|
|
134
|
+
): SafeParseResult<PasswordPasswordOk, SDKValidationError> {
|
|
135
135
|
return safeParse(
|
|
136
136
|
jsonString,
|
|
137
|
-
(x) =>
|
|
138
|
-
`Failed to parse '
|
|
137
|
+
(x) => PasswordPasswordOk$inboundSchema.parse(JSON.parse(x)),
|
|
138
|
+
`Failed to parse 'PasswordPasswordOk' from JSON`,
|
|
139
139
|
);
|
|
140
140
|
}
|
|
@@ -14,7 +14,7 @@ export type PasswordResetRequestRequestBody = {
|
|
|
14
14
|
/**
|
|
15
15
|
* The request was successful, and the server has returned the requested resource in the response body.
|
|
16
16
|
*/
|
|
17
|
-
export type
|
|
17
|
+
export type PasswordResetRequestPasswordResetRequestOk = {
|
|
18
18
|
success: boolean;
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -75,57 +75,65 @@ export function passwordResetRequestRequestBodyFromJSON(
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
/** @internal */
|
|
78
|
-
export const
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
success: z.boolean(),
|
|
84
|
-
});
|
|
78
|
+
export const PasswordResetRequestPasswordResetRequestOk$inboundSchema:
|
|
79
|
+
z.ZodType<PasswordResetRequestPasswordResetRequestOk, z.ZodTypeDef, unknown> =
|
|
80
|
+
z.object({
|
|
81
|
+
success: z.boolean(),
|
|
82
|
+
});
|
|
85
83
|
|
|
86
84
|
/** @internal */
|
|
87
|
-
export type
|
|
85
|
+
export type PasswordResetRequestPasswordResetRequestOk$Outbound = {
|
|
88
86
|
success: boolean;
|
|
89
87
|
};
|
|
90
88
|
|
|
91
89
|
/** @internal */
|
|
92
|
-
export const
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
90
|
+
export const PasswordResetRequestPasswordResetRequestOk$outboundSchema:
|
|
91
|
+
z.ZodType<
|
|
92
|
+
PasswordResetRequestPasswordResetRequestOk$Outbound,
|
|
93
|
+
z.ZodTypeDef,
|
|
94
|
+
PasswordResetRequestPasswordResetRequestOk
|
|
95
|
+
> = z.object({
|
|
96
|
+
success: z.boolean(),
|
|
97
|
+
});
|
|
99
98
|
|
|
100
99
|
/**
|
|
101
100
|
* @internal
|
|
102
101
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
103
102
|
*/
|
|
104
|
-
export namespace
|
|
105
|
-
/** @deprecated use `
|
|
106
|
-
export const inboundSchema =
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
103
|
+
export namespace PasswordResetRequestPasswordResetRequestOk$ {
|
|
104
|
+
/** @deprecated use `PasswordResetRequestPasswordResetRequestOk$inboundSchema` instead. */
|
|
105
|
+
export const inboundSchema =
|
|
106
|
+
PasswordResetRequestPasswordResetRequestOk$inboundSchema;
|
|
107
|
+
/** @deprecated use `PasswordResetRequestPasswordResetRequestOk$outboundSchema` instead. */
|
|
108
|
+
export const outboundSchema =
|
|
109
|
+
PasswordResetRequestPasswordResetRequestOk$outboundSchema;
|
|
110
|
+
/** @deprecated use `PasswordResetRequestPasswordResetRequestOk$Outbound` instead. */
|
|
111
|
+
export type Outbound = PasswordResetRequestPasswordResetRequestOk$Outbound;
|
|
111
112
|
}
|
|
112
113
|
|
|
113
|
-
export function
|
|
114
|
-
|
|
114
|
+
export function passwordResetRequestPasswordResetRequestOkToJSON(
|
|
115
|
+
passwordResetRequestPasswordResetRequestOk:
|
|
116
|
+
PasswordResetRequestPasswordResetRequestOk,
|
|
115
117
|
): string {
|
|
116
118
|
return JSON.stringify(
|
|
117
|
-
|
|
118
|
-
|
|
119
|
+
PasswordResetRequestPasswordResetRequestOk$outboundSchema.parse(
|
|
120
|
+
passwordResetRequestPasswordResetRequestOk,
|
|
119
121
|
),
|
|
120
122
|
);
|
|
121
123
|
}
|
|
122
124
|
|
|
123
|
-
export function
|
|
125
|
+
export function passwordResetRequestPasswordResetRequestOkFromJSON(
|
|
124
126
|
jsonString: string,
|
|
125
|
-
): SafeParseResult<
|
|
127
|
+
): SafeParseResult<
|
|
128
|
+
PasswordResetRequestPasswordResetRequestOk,
|
|
129
|
+
SDKValidationError
|
|
130
|
+
> {
|
|
126
131
|
return safeParse(
|
|
127
132
|
jsonString,
|
|
128
|
-
(x) =>
|
|
129
|
-
|
|
133
|
+
(x) =>
|
|
134
|
+
PasswordResetRequestPasswordResetRequestOk$inboundSchema.parse(
|
|
135
|
+
JSON.parse(x),
|
|
136
|
+
),
|
|
137
|
+
`Failed to parse 'PasswordResetRequestPasswordResetRequestOk' from JSON`,
|
|
130
138
|
);
|
|
131
139
|
}
|
package/src/react-query/index.ts
CHANGED
|
@@ -7,11 +7,16 @@ export * from "./_types.js";
|
|
|
7
7
|
|
|
8
8
|
export * from "./organizationsGetFacility.js";
|
|
9
9
|
export * from "./organizationsListOrSearchFacilities.js";
|
|
10
|
-
export * from "./
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./
|
|
13
|
-
export * from "./
|
|
14
|
-
export * from "./
|
|
15
|
-
export * from "./
|
|
10
|
+
export * from "./supportArticlesGetSupportArticle.js";
|
|
11
|
+
export * from "./supportArticlesListOrSearchSupportArticles.js";
|
|
12
|
+
export * from "./usersGetCurrentUser.js";
|
|
13
|
+
export * from "./usersGetUserById.js";
|
|
14
|
+
export * from "./usersLogsUserIntoTheSystem.js";
|
|
15
|
+
export * from "./usersMagiclink.js";
|
|
16
|
+
export * from "./usersPassword.js";
|
|
17
|
+
export * from "./usersPasswordResetRequest.js";
|
|
16
18
|
export * from "./vendorsCreateVendorRegistration.js";
|
|
19
|
+
export * from "./vendorsExpediteTimeRemaining.js";
|
|
20
|
+
export * from "./vendorsListVendorCredentials.js";
|
|
21
|
+
export * from "./vendorsListVendorInvoices.js";
|
|
17
22
|
export * from "./vendorsListVendorJobTitles.js";
|
|
@@ -3,12 +3,17 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
+
InfiniteData,
|
|
6
7
|
InvalidateQueryFilters,
|
|
7
8
|
QueryClient,
|
|
8
9
|
QueryFunctionContext,
|
|
9
10
|
QueryKey,
|
|
11
|
+
useInfiniteQuery,
|
|
12
|
+
UseInfiniteQueryResult,
|
|
10
13
|
useQuery,
|
|
11
14
|
UseQueryResult,
|
|
15
|
+
useSuspenseInfiniteQuery,
|
|
16
|
+
UseSuspenseInfiniteQueryResult,
|
|
12
17
|
useSuspenseQuery,
|
|
13
18
|
UseSuspenseQueryResult,
|
|
14
19
|
} from "@tanstack/react-query";
|
|
@@ -19,15 +24,28 @@ import { RequestOptions } from "../lib/sdks.js";
|
|
|
19
24
|
import * as components from "../models/components/index.js";
|
|
20
25
|
import * as operations from "../models/operations/index.js";
|
|
21
26
|
import { unwrapAsync } from "../types/fp.js";
|
|
27
|
+
import { PageIterator, unwrapResultIterator } from "../types/operations.js";
|
|
22
28
|
import { useGreenSecurityContext } from "./_context.js";
|
|
23
29
|
import {
|
|
30
|
+
InfiniteQueryHookOptions,
|
|
24
31
|
QueryHookOptions,
|
|
32
|
+
SuspenseInfiniteQueryHookOptions,
|
|
25
33
|
SuspenseQueryHookOptions,
|
|
26
34
|
TupleToPrefixes,
|
|
27
35
|
} from "./_types.js";
|
|
28
36
|
|
|
29
37
|
export type OrganizationsListOrSearchFacilitiesQueryData =
|
|
30
|
-
operations.
|
|
38
|
+
operations.ListOrSearchFacilitiesResponse;
|
|
39
|
+
|
|
40
|
+
export type OrganizationsListOrSearchFacilitiesInfiniteQueryData = PageIterator<
|
|
41
|
+
operations.ListOrSearchFacilitiesResponse,
|
|
42
|
+
{ page: number }
|
|
43
|
+
>;
|
|
44
|
+
|
|
45
|
+
export type OrganizationsListOrSearchFacilitiesPageParams = PageIterator<
|
|
46
|
+
operations.ListOrSearchFacilitiesResponse,
|
|
47
|
+
{ page: number }
|
|
48
|
+
>["~next"];
|
|
31
49
|
|
|
32
50
|
/**
|
|
33
51
|
* List or search facilities
|
|
@@ -99,6 +117,112 @@ export function useOrganizationsListOrSearchFacilitiesSuspense(
|
|
|
99
117
|
});
|
|
100
118
|
}
|
|
101
119
|
|
|
120
|
+
/**
|
|
121
|
+
* List or search facilities
|
|
122
|
+
*
|
|
123
|
+
* @remarks
|
|
124
|
+
* List or search facilities.
|
|
125
|
+
*
|
|
126
|
+
* Available `expand` scopes are:
|
|
127
|
+
*
|
|
128
|
+
* - facility.appointment_policy
|
|
129
|
+
* - facility.contacts
|
|
130
|
+
* - facility.vendor_counts
|
|
131
|
+
* - facility.flu_credential
|
|
132
|
+
* - facility.scrubs_policy
|
|
133
|
+
* - facility.system
|
|
134
|
+
* - facility.vendor_guest_policy
|
|
135
|
+
* - facility.vendor_policy
|
|
136
|
+
* - facility.visitor_policy
|
|
137
|
+
* - facility.workflow
|
|
138
|
+
*/
|
|
139
|
+
export function useOrganizationsListOrSearchFacilitiesInfinite(
|
|
140
|
+
request: operations.ListOrSearchFacilitiesRequest,
|
|
141
|
+
options?: InfiniteQueryHookOptions<
|
|
142
|
+
OrganizationsListOrSearchFacilitiesInfiniteQueryData
|
|
143
|
+
>,
|
|
144
|
+
): UseInfiniteQueryResult<
|
|
145
|
+
InfiniteData<
|
|
146
|
+
OrganizationsListOrSearchFacilitiesInfiniteQueryData,
|
|
147
|
+
OrganizationsListOrSearchFacilitiesPageParams
|
|
148
|
+
>,
|
|
149
|
+
Error
|
|
150
|
+
> {
|
|
151
|
+
const client = useGreenSecurityContext();
|
|
152
|
+
return useInfiniteQuery<
|
|
153
|
+
OrganizationsListOrSearchFacilitiesInfiniteQueryData,
|
|
154
|
+
Error,
|
|
155
|
+
InfiniteData<
|
|
156
|
+
OrganizationsListOrSearchFacilitiesInfiniteQueryData,
|
|
157
|
+
OrganizationsListOrSearchFacilitiesPageParams
|
|
158
|
+
>,
|
|
159
|
+
QueryKey,
|
|
160
|
+
OrganizationsListOrSearchFacilitiesPageParams
|
|
161
|
+
>({
|
|
162
|
+
...buildOrganizationsListOrSearchFacilitiesInfiniteQuery(
|
|
163
|
+
client,
|
|
164
|
+
request,
|
|
165
|
+
options,
|
|
166
|
+
),
|
|
167
|
+
initialPageParam: options?.initialPageParam,
|
|
168
|
+
getNextPageParam: (previousPage) => previousPage["~next"],
|
|
169
|
+
...options,
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* List or search facilities
|
|
175
|
+
*
|
|
176
|
+
* @remarks
|
|
177
|
+
* List or search facilities.
|
|
178
|
+
*
|
|
179
|
+
* Available `expand` scopes are:
|
|
180
|
+
*
|
|
181
|
+
* - facility.appointment_policy
|
|
182
|
+
* - facility.contacts
|
|
183
|
+
* - facility.vendor_counts
|
|
184
|
+
* - facility.flu_credential
|
|
185
|
+
* - facility.scrubs_policy
|
|
186
|
+
* - facility.system
|
|
187
|
+
* - facility.vendor_guest_policy
|
|
188
|
+
* - facility.vendor_policy
|
|
189
|
+
* - facility.visitor_policy
|
|
190
|
+
* - facility.workflow
|
|
191
|
+
*/
|
|
192
|
+
export function useOrganizationsListOrSearchFacilitiesInfiniteSuspense(
|
|
193
|
+
request: operations.ListOrSearchFacilitiesRequest,
|
|
194
|
+
options?: SuspenseInfiniteQueryHookOptions<
|
|
195
|
+
OrganizationsListOrSearchFacilitiesInfiniteQueryData
|
|
196
|
+
>,
|
|
197
|
+
): UseSuspenseInfiniteQueryResult<
|
|
198
|
+
InfiniteData<
|
|
199
|
+
OrganizationsListOrSearchFacilitiesInfiniteQueryData,
|
|
200
|
+
OrganizationsListOrSearchFacilitiesPageParams
|
|
201
|
+
>,
|
|
202
|
+
Error
|
|
203
|
+
> {
|
|
204
|
+
const client = useGreenSecurityContext();
|
|
205
|
+
return useSuspenseInfiniteQuery<
|
|
206
|
+
OrganizationsListOrSearchFacilitiesInfiniteQueryData,
|
|
207
|
+
Error,
|
|
208
|
+
InfiniteData<
|
|
209
|
+
OrganizationsListOrSearchFacilitiesInfiniteQueryData,
|
|
210
|
+
OrganizationsListOrSearchFacilitiesPageParams
|
|
211
|
+
>,
|
|
212
|
+
QueryKey,
|
|
213
|
+
OrganizationsListOrSearchFacilitiesPageParams
|
|
214
|
+
>({
|
|
215
|
+
...buildOrganizationsListOrSearchFacilitiesInfiniteQuery(
|
|
216
|
+
client,
|
|
217
|
+
request,
|
|
218
|
+
options,
|
|
219
|
+
),
|
|
220
|
+
initialPageParam: options?.initialPageParam,
|
|
221
|
+
getNextPageParam: (previousPage) => previousPage["~next"],
|
|
222
|
+
...options,
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
|
|
102
226
|
export function prefetchOrganizationsListOrSearchFacilities(
|
|
103
227
|
queryClient: QueryClient,
|
|
104
228
|
client$: GreenSecurityCore,
|
|
@@ -124,7 +248,7 @@ export function setOrganizationsListOrSearchFacilitiesData(
|
|
|
124
248
|
systemId?: number | undefined;
|
|
125
249
|
nameLike?: string | undefined;
|
|
126
250
|
stateLike?: string | undefined;
|
|
127
|
-
|
|
251
|
+
activeStatus?: components.ActiveStatus | undefined;
|
|
128
252
|
},
|
|
129
253
|
],
|
|
130
254
|
data: OrganizationsListOrSearchFacilitiesQueryData,
|
|
@@ -149,7 +273,7 @@ export function invalidateOrganizationsListOrSearchFacilities(
|
|
|
149
273
|
systemId?: number | undefined;
|
|
150
274
|
nameLike?: string | undefined;
|
|
151
275
|
stateLike?: string | undefined;
|
|
152
|
-
|
|
276
|
+
activeStatus?: components.ActiveStatus | undefined;
|
|
153
277
|
}]
|
|
154
278
|
>,
|
|
155
279
|
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
@@ -199,7 +323,7 @@ export function buildOrganizationsListOrSearchFacilitiesQuery(
|
|
|
199
323
|
systemId: request.systemId,
|
|
200
324
|
nameLike: request.nameLike,
|
|
201
325
|
stateLike: request.stateLike,
|
|
202
|
-
|
|
326
|
+
activeStatus: request.activeStatus,
|
|
203
327
|
}),
|
|
204
328
|
queryFn: async function organizationsListOrSearchFacilitiesQueryFn(
|
|
205
329
|
ctx,
|
|
@@ -219,6 +343,60 @@ export function buildOrganizationsListOrSearchFacilitiesQuery(
|
|
|
219
343
|
};
|
|
220
344
|
}
|
|
221
345
|
|
|
346
|
+
export function buildOrganizationsListOrSearchFacilitiesInfiniteQuery(
|
|
347
|
+
client$: GreenSecurityCore,
|
|
348
|
+
request: operations.ListOrSearchFacilitiesRequest,
|
|
349
|
+
options?: RequestOptions,
|
|
350
|
+
): {
|
|
351
|
+
queryKey: QueryKey;
|
|
352
|
+
queryFn: (
|
|
353
|
+
context: QueryFunctionContext<
|
|
354
|
+
QueryKey,
|
|
355
|
+
OrganizationsListOrSearchFacilitiesPageParams
|
|
356
|
+
>,
|
|
357
|
+
) => Promise<OrganizationsListOrSearchFacilitiesInfiniteQueryData>;
|
|
358
|
+
} {
|
|
359
|
+
return {
|
|
360
|
+
queryKey: queryKeyOrganizationsListOrSearchFacilities({
|
|
361
|
+
sort: request.sort,
|
|
362
|
+
desc: request.desc,
|
|
363
|
+
page: request.page,
|
|
364
|
+
itemsPerPage: request.itemsPerPage,
|
|
365
|
+
expand: request.expand,
|
|
366
|
+
systemId: request.systemId,
|
|
367
|
+
nameLike: request.nameLike,
|
|
368
|
+
stateLike: request.stateLike,
|
|
369
|
+
activeStatus: request.activeStatus,
|
|
370
|
+
}),
|
|
371
|
+
queryFn: async function organizationsListOrSearchFacilitiesQuery(
|
|
372
|
+
ctx,
|
|
373
|
+
): Promise<OrganizationsListOrSearchFacilitiesInfiniteQueryData> {
|
|
374
|
+
const sig = combineSignals(ctx.signal, options?.fetchOptions?.signal);
|
|
375
|
+
const mergedOptions = {
|
|
376
|
+
...options,
|
|
377
|
+
fetchOptions: { ...options?.fetchOptions, signal: sig },
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
if (!ctx.pageParam) {
|
|
381
|
+
return unwrapResultIterator(organizationsListOrSearchFacilities(
|
|
382
|
+
client$,
|
|
383
|
+
request,
|
|
384
|
+
mergedOptions,
|
|
385
|
+
));
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
return unwrapResultIterator(organizationsListOrSearchFacilities(
|
|
389
|
+
client$,
|
|
390
|
+
{
|
|
391
|
+
...request,
|
|
392
|
+
page: ctx.pageParam.page,
|
|
393
|
+
},
|
|
394
|
+
mergedOptions,
|
|
395
|
+
));
|
|
396
|
+
},
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
|
|
222
400
|
export function queryKeyOrganizationsListOrSearchFacilities(
|
|
223
401
|
parameters: {
|
|
224
402
|
sort?: string | null | undefined;
|
|
@@ -229,7 +407,7 @@ export function queryKeyOrganizationsListOrSearchFacilities(
|
|
|
229
407
|
systemId?: number | undefined;
|
|
230
408
|
nameLike?: string | undefined;
|
|
231
409
|
stateLike?: string | undefined;
|
|
232
|
-
|
|
410
|
+
activeStatus?: components.ActiveStatus | undefined;
|
|
233
411
|
},
|
|
234
412
|
): QueryKey {
|
|
235
413
|
return [
|