@greensecurity/javascript-sdk 0.18.2 → 0.21.1
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 +15 -15
- package/README.md +96 -9
- package/bin/mcp-server.js +1945 -233
- package/bin/mcp-server.js.map +67 -39
- package/funcs/organizationsListOrSearchFacilities.d.ts +2 -1
- package/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
- package/funcs/organizationsListOrSearchFacilities.js +3 -2
- package/funcs/organizationsListOrSearchFacilities.js.map +1 -1
- package/funcs/vendorScansVendorScanOut.d.ts +17 -0
- package/funcs/vendorScansVendorScanOut.d.ts.map +1 -0
- package/funcs/vendorScansVendorScanOut.js +120 -0
- package/funcs/vendorScansVendorScanOut.js.map +1 -0
- package/funcs/vendorsGetVendorsDetails.d.ts +32 -0
- package/funcs/vendorsGetVendorsDetails.d.ts.map +1 -0
- package/funcs/vendorsGetVendorsDetails.js +139 -0
- package/funcs/vendorsGetVendorsDetails.js.map +1 -0
- package/funcs/vendorsListVendorCredentials.d.ts +4 -1
- package/funcs/vendorsListVendorCredentials.d.ts.map +1 -1
- package/funcs/vendorsListVendorCredentials.js +46 -6
- package/funcs/vendorsListVendorCredentials.js.map +1 -1
- package/funcs/vendorsListVendorFacilityStatuses.d.ts +20 -0
- package/funcs/vendorsListVendorFacilityStatuses.d.ts.map +1 -0
- package/funcs/vendorsListVendorFacilityStatuses.js +155 -0
- package/funcs/vendorsListVendorFacilityStatuses.js.map +1 -0
- package/funcs/vendorsListVendorJobTitles.d.ts +1 -1
- package/funcs/vendorsListVendorJobTitles.d.ts.map +1 -1
- package/funcs/vendorsListVendorJobTitles.js +21 -6
- package/funcs/vendorsListVendorJobTitles.js.map +1 -1
- package/funcs/vendorsListVendorScrubDetails.d.ts +18 -0
- package/funcs/vendorsListVendorScrubDetails.d.ts.map +1 -0
- package/funcs/vendorsListVendorScrubDetails.js +121 -0
- package/funcs/vendorsListVendorScrubDetails.js.map +1 -0
- package/funcs/vendorsListVendorScrubPurchases.d.ts +20 -0
- package/funcs/vendorsListVendorScrubPurchases.d.ts.map +1 -0
- package/funcs/vendorsListVendorScrubPurchases.js +160 -0
- package/funcs/vendorsListVendorScrubPurchases.js.map +1 -0
- package/funcs/webhooksGetWebhookEndpoint.d.ts +18 -0
- package/funcs/webhooksGetWebhookEndpoint.d.ts.map +1 -0
- package/funcs/webhooksGetWebhookEndpoint.js +121 -0
- package/funcs/webhooksGetWebhookEndpoint.js.map +1 -0
- package/funcs/webhooksListAllWebhookEndpoints.d.ts +17 -0
- package/funcs/webhooksListAllWebhookEndpoints.d.ts.map +1 -0
- package/funcs/webhooksListAllWebhookEndpoints.js +121 -0
- package/funcs/webhooksListAllWebhookEndpoints.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +2 -8
- package/lib/sdks.js.map +1 -1
- package/lib/security.d.ts +4 -3
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +6 -1
- package/lib/security.js.map +1 -1
- package/mcp-server/extensions.d.ts +2 -0
- package/mcp-server/extensions.d.ts.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/prompts.d.ts +26 -0
- package/mcp-server/prompts.d.ts.map +1 -0
- package/mcp-server/prompts.js +47 -0
- package/mcp-server/prompts.js.map +1 -0
- package/mcp-server/resources.d.ts.map +1 -1
- package/mcp-server/resources.js +1 -0
- package/mcp-server/resources.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +18 -4
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/organizationsGetFacility.js +1 -1
- package/mcp-server/tools/organizationsListOrSearchFacilities.js +1 -1
- package/mcp-server/tools/supportArticlesGetSupportArticle.js +1 -1
- package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.js +1 -1
- package/mcp-server/tools/usersGetCurrentUser.js +1 -1
- package/mcp-server/tools/usersGetUserById.js +1 -1
- package/mcp-server/tools/usersLogsUserIntoTheSystem.js +1 -1
- package/mcp-server/tools/usersMagiclink.js +1 -1
- package/mcp-server/tools/usersPassword.js +1 -1
- package/mcp-server/tools/usersPasswordResetRequest.js +1 -1
- package/mcp-server/tools/vendorScansVendorScanOut.d.ts +8 -0
- package/mcp-server/tools/vendorScansVendorScanOut.d.ts.map +1 -0
- package/mcp-server/tools/{userPasswordResetRequest.js → vendorScansVendorScanOut.js} +9 -9
- package/mcp-server/tools/{userPasswordResetRequest.js.map → vendorScansVendorScanOut.js.map} +1 -1
- package/mcp-server/tools/vendorsCreateVendorRegistration.js +1 -1
- package/mcp-server/tools/vendorsExpediteTimeRemaining.js +1 -1
- package/mcp-server/tools/vendorsGetVendorInvoiceDetails.js +1 -1
- package/mcp-server/tools/vendorsGetVendorsDetails.d.ts +8 -0
- package/mcp-server/tools/vendorsGetVendorsDetails.d.ts.map +1 -0
- package/mcp-server/tools/vendorsGetVendorsDetails.js +78 -0
- package/mcp-server/tools/vendorsGetVendorsDetails.js.map +1 -0
- package/mcp-server/tools/vendorsListVendorCredentials.js +2 -2
- package/mcp-server/tools/vendorsListVendorCredentials.js.map +1 -1
- package/mcp-server/tools/vendorsListVendorFacilityStatuses.d.ts +8 -0
- package/mcp-server/tools/vendorsListVendorFacilityStatuses.d.ts.map +1 -0
- package/mcp-server/tools/vendorsListVendorFacilityStatuses.js +64 -0
- package/mcp-server/tools/vendorsListVendorFacilityStatuses.js.map +1 -0
- package/mcp-server/tools/vendorsListVendorInvoices.js +1 -1
- package/mcp-server/tools/vendorsListVendorScrubDetails.d.ts +8 -0
- package/mcp-server/tools/vendorsListVendorScrubDetails.d.ts.map +1 -0
- package/mcp-server/tools/{userGetUserById.js → vendorsListVendorScrubDetails.js} +9 -9
- package/mcp-server/tools/vendorsListVendorScrubDetails.js.map +1 -0
- package/mcp-server/tools/vendorsListVendorScrubPurchases.d.ts +8 -0
- package/mcp-server/tools/vendorsListVendorScrubPurchases.d.ts.map +1 -0
- package/mcp-server/tools/{userPassword.js → vendorsListVendorScrubPurchases.js} +10 -11
- package/mcp-server/tools/vendorsListVendorScrubPurchases.js.map +1 -0
- package/mcp-server/tools/webhooksGetWebhookEndpoint.d.ts +8 -0
- package/mcp-server/tools/webhooksGetWebhookEndpoint.d.ts.map +1 -0
- package/mcp-server/tools/{vendorsListVendorJobTitles.js → webhooksGetWebhookEndpoint.js} +10 -10
- package/mcp-server/tools/webhooksGetWebhookEndpoint.js.map +1 -0
- package/mcp-server/tools/webhooksListAllWebhookEndpoints.d.ts +8 -0
- package/mcp-server/tools/webhooksListAllWebhookEndpoints.d.ts.map +1 -0
- package/mcp-server/tools/{userMagiclink.js → webhooksListAllWebhookEndpoints.js} +9 -9
- package/mcp-server/tools/webhooksListAllWebhookEndpoints.js.map +1 -0
- package/mcp-server/tools.d.ts.map +1 -1
- package/mcp-server/tools.js +4 -0
- package/mcp-server/tools.js.map +1 -1
- package/models/components/company.d.ts +15 -15
- package/models/components/company.d.ts.map +1 -1
- package/models/components/company.js +19 -18
- package/models/components/company.js.map +1 -1
- package/models/components/contact.d.ts +13 -13
- package/models/components/contact.d.ts.map +1 -1
- package/models/components/contact.js +16 -16
- package/models/components/contact.js.map +1 -1
- package/models/components/department.d.ts +34 -0
- package/models/components/department.d.ts.map +1 -0
- package/models/components/department.js +71 -0
- package/models/components/department.js.map +1 -0
- package/models/components/expand.d.ts +24 -0
- package/models/components/expand.d.ts.map +1 -1
- package/models/components/expand.js +8 -0
- package/models/components/expand.js.map +1 -1
- package/models/components/facility.d.ts +17 -17
- package/models/components/facility.d.ts.map +1 -1
- package/models/components/facility.js +20 -20
- package/models/components/facility.js.map +1 -1
- package/models/components/index.d.ts +8 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +8 -0
- package/models/components/index.js.map +1 -1
- package/models/components/scantype.d.ts +31 -0
- package/models/components/scantype.d.ts.map +1 -0
- package/models/components/scantype.js +62 -0
- package/models/components/scantype.js.map +1 -0
- package/models/components/subscription.d.ts +42 -0
- package/models/components/subscription.d.ts.map +1 -0
- package/models/components/subscription.js +92 -0
- package/models/components/subscription.js.map +1 -0
- package/models/components/user.d.ts +8 -25
- package/models/components/user.d.ts.map +1 -1
- package/models/components/user.js +8 -31
- package/models/components/user.js.map +1 -1
- package/models/components/vendor.d.ts +374 -0
- package/models/components/vendor.d.ts.map +1 -0
- package/models/components/vendor.js +523 -0
- package/models/components/vendor.js.map +1 -0
- package/models/components/vendorfacilitystatusview.d.ts +42 -0
- package/models/components/vendorfacilitystatusview.d.ts.map +1 -0
- package/models/components/vendorfacilitystatusview.js +98 -0
- package/models/components/vendorfacilitystatusview.js.map +1 -0
- package/models/components/vendorscrubdetails.d.ts +42 -0
- package/models/components/vendorscrubdetails.d.ts.map +1 -0
- package/models/components/vendorscrubdetails.js +98 -0
- package/models/components/vendorscrubdetails.js.map +1 -0
- package/models/components/vendorscrubpurchase.d.ts +38 -0
- package/models/components/vendorscrubpurchase.d.ts.map +1 -0
- package/models/components/vendorscrubpurchase.js +84 -0
- package/models/components/vendorscrubpurchase.js.map +1 -0
- package/models/components/webhookendpoint.d.ts +135 -0
- package/models/components/webhookendpoint.d.ts.map +1 -0
- package/models/components/webhookendpoint.js +158 -0
- package/models/components/webhookendpoint.js.map +1 -0
- package/models/operations/getvendorsdetails.d.ts +38 -0
- package/models/operations/getvendorsdetails.d.ts.map +1 -0
- package/models/operations/getvendorsdetails.js +81 -0
- package/models/operations/getvendorsdetails.js.map +1 -0
- package/models/operations/getwebhookendpoint.d.ts +32 -0
- package/models/operations/getwebhookendpoint.d.ts.map +1 -0
- package/models/operations/getwebhookendpoint.js +69 -0
- package/models/operations/getwebhookendpoint.js.map +1 -0
- package/models/operations/index.d.ts +7 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +7 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listallwebhookendpoints.d.ts +81 -0
- package/models/operations/listallwebhookendpoints.d.ts.map +1 -0
- package/models/operations/listallwebhookendpoints.js +114 -0
- package/models/operations/listallwebhookendpoints.js.map +1 -0
- package/models/operations/listorsearchfacilities.d.ts +2 -2
- package/models/operations/listorsearchfacilities.d.ts.map +1 -1
- package/models/operations/listorsearchfacilities.js +2 -2
- package/models/operations/listorsearchfacilities.js.map +1 -1
- package/models/operations/listvendorcredentials.d.ts +77 -5
- package/models/operations/listvendorcredentials.d.ts.map +1 -1
- package/models/operations/listvendorcredentials.js +78 -3
- package/models/operations/listvendorcredentials.js.map +1 -1
- package/models/operations/listvendorfacilitystatuses.d.ts +111 -0
- package/models/operations/listvendorfacilitystatuses.d.ts.map +1 -0
- package/models/operations/listvendorfacilitystatuses.js +153 -0
- package/models/operations/listvendorfacilitystatuses.js.map +1 -0
- package/models/operations/listvendorjobtitles.d.ts +27 -0
- package/models/operations/listvendorjobtitles.d.ts.map +1 -1
- package/models/operations/listvendorjobtitles.js +38 -1
- package/models/operations/listvendorjobtitles.js.map +1 -1
- package/models/operations/listvendorscrubdetails.d.ts +32 -0
- package/models/operations/listvendorscrubdetails.d.ts.map +1 -0
- package/models/operations/listvendorscrubdetails.js +78 -0
- package/models/operations/listvendorscrubdetails.js.map +1 -0
- package/models/operations/listvendorscrubpurchases.d.ts +111 -0
- package/models/operations/listvendorscrubpurchases.d.ts.map +1 -0
- package/models/operations/listvendorscrubpurchases.js +153 -0
- package/models/operations/listvendorscrubpurchases.js.map +1 -0
- package/models/operations/vendorscanout.d.ts +64 -0
- package/models/operations/vendorscanout.d.ts.map +1 -0
- package/models/operations/vendorscanout.js +100 -0
- package/models/operations/vendorscanout.js.map +1 -0
- package/package.json +1 -1
- package/react-query/index.d.ts +7 -0
- package/react-query/index.d.ts.map +1 -1
- package/react-query/index.js +7 -0
- package/react-query/index.js.map +1 -1
- package/react-query/vendorScansVendorScanOut.d.ts +23 -0
- package/react-query/vendorScansVendorScanOut.d.ts.map +1 -0
- package/react-query/vendorScansVendorScanOut.js +47 -0
- package/react-query/vendorScansVendorScanOut.js.map +1 -0
- package/react-query/vendorsGetVendorsDetails.d.ts +71 -0
- package/react-query/vendorsGetVendorsDetails.d.ts.map +1 -0
- package/react-query/vendorsGetVendorsDetails.js +123 -0
- package/react-query/vendorsGetVendorsDetails.js.map +1 -0
- package/react-query/vendorsListVendorCredentials.d.ts +40 -3
- package/react-query/vendorsListVendorCredentials.d.ts.map +1 -1
- package/react-query/vendorsListVendorCredentials.js +67 -0
- package/react-query/vendorsListVendorCredentials.js.map +1 -1
- package/react-query/vendorsListVendorFacilityStatuses.d.ts +78 -0
- package/react-query/vendorsListVendorFacilityStatuses.d.ts.map +1 -0
- package/react-query/vendorsListVendorFacilityStatuses.js +161 -0
- package/react-query/vendorsListVendorFacilityStatuses.js.map +1 -0
- package/react-query/vendorsListVendorJobTitles.d.ts +7 -7
- package/react-query/vendorsListVendorJobTitles.d.ts.map +1 -1
- package/react-query/vendorsListVendorJobTitles.js +15 -15
- package/react-query/vendorsListVendorJobTitles.js.map +1 -1
- package/react-query/vendorsListVendorScrubDetails.d.ts +31 -0
- package/react-query/vendorsListVendorScrubDetails.d.ts.map +1 -0
- package/react-query/vendorsListVendorScrubDetails.js +96 -0
- package/react-query/vendorsListVendorScrubDetails.js.map +1 -0
- package/react-query/vendorsListVendorScrubPurchases.d.ts +77 -0
- package/react-query/vendorsListVendorScrubPurchases.d.ts.map +1 -0
- package/react-query/vendorsListVendorScrubPurchases.js +160 -0
- package/react-query/vendorsListVendorScrubPurchases.js.map +1 -0
- package/react-query/webhooksGetWebhookEndpoint.d.ts +31 -0
- package/react-query/webhooksGetWebhookEndpoint.d.ts.map +1 -0
- package/react-query/webhooksGetWebhookEndpoint.js +96 -0
- package/react-query/webhooksGetWebhookEndpoint.js.map +1 -0
- package/react-query/webhooksListAllWebhookEndpoints.d.ts +50 -0
- package/react-query/webhooksListAllWebhookEndpoints.d.ts.map +1 -0
- package/react-query/webhooksListAllWebhookEndpoints.js +101 -0
- package/react-query/webhooksListAllWebhookEndpoints.js.map +1 -0
- package/sdk/sdk.d.ts +6 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +8 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/vendors.d.ts +50 -2
- package/sdk/vendors.d.ts.map +1 -1
- package/sdk/vendors.js +57 -3
- package/sdk/vendors.js.map +1 -1
- package/sdk/vendorscans.d.ts +12 -0
- package/sdk/vendorscans.d.ts.map +1 -0
- package/sdk/vendorscans.js +22 -0
- package/sdk/vendorscans.js.map +1 -0
- package/sdk/webhooks.d.ts +20 -0
- package/sdk/webhooks.d.ts.map +1 -0
- package/sdk/webhooks.js +32 -0
- package/sdk/webhooks.js.map +1 -0
- package/src/__tests__/vendors.test.ts +51 -118
- package/src/__tests__/vendorscans.test.ts +27 -0
- package/src/__tests__/webhooks.test.ts +45 -0
- package/src/funcs/organizationsListOrSearchFacilities.ts +12 -1
- package/src/funcs/vendorScansVendorScanOut.ts +172 -0
- package/src/funcs/vendorsGetVendorsDetails.ts +192 -0
- package/src/funcs/vendorsListVendorCredentials.ts +104 -27
- package/src/funcs/vendorsListVendorFacilityStatuses.ts +246 -0
- package/src/funcs/vendorsListVendorJobTitles.ts +25 -2
- package/src/funcs/vendorsListVendorScrubDetails.ts +172 -0
- package/src/funcs/vendorsListVendorScrubPurchases.ts +249 -0
- package/src/funcs/webhooksGetWebhookEndpoint.ts +173 -0
- package/src/funcs/webhooksListAllWebhookEndpoints.ts +174 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +2 -7
- package/src/lib/security.ts +11 -3
- package/src/mcp-server/extensions.ts +4 -0
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/prompts.ts +110 -0
- package/src/mcp-server/resources.ts +1 -0
- package/src/mcp-server/server.ts +18 -4
- package/src/mcp-server/tools/organizationsGetFacility.ts +1 -1
- package/src/mcp-server/tools/organizationsListOrSearchFacilities.ts +1 -1
- package/src/mcp-server/tools/supportArticlesGetSupportArticle.ts +1 -1
- package/src/mcp-server/tools/supportArticlesListOrSearchSupportArticles.ts +1 -1
- package/src/mcp-server/tools/usersGetCurrentUser.ts +1 -1
- package/src/mcp-server/tools/usersGetUserById.ts +1 -1
- package/src/mcp-server/tools/usersLogsUserIntoTheSystem.ts +1 -1
- package/src/mcp-server/tools/usersMagiclink.ts +1 -1
- package/src/mcp-server/tools/usersPassword.ts +1 -1
- package/src/mcp-server/tools/usersPasswordResetRequest.ts +1 -1
- package/src/mcp-server/tools/vendorScansVendorScanOut.ts +37 -0
- package/src/mcp-server/tools/vendorsCreateVendorRegistration.ts +1 -1
- package/src/mcp-server/tools/vendorsExpediteTimeRemaining.ts +1 -1
- package/src/mcp-server/tools/vendorsGetVendorInvoiceDetails.ts +1 -1
- package/src/mcp-server/tools/vendorsGetVendorsDetails.ts +51 -0
- package/src/mcp-server/tools/vendorsListVendorCredentials.ts +2 -2
- package/src/mcp-server/tools/{vendorsListVendorJobTitles.ts → vendorsListVendorFacilityStatuses.ts} +9 -7
- package/src/mcp-server/tools/vendorsListVendorInvoices.ts +1 -1
- package/src/mcp-server/tools/vendorsListVendorScrubDetails.ts +37 -0
- package/src/mcp-server/tools/vendorsListVendorScrubPurchases.ts +38 -0
- package/src/mcp-server/tools/webhooksGetWebhookEndpoint.ts +37 -0
- package/src/mcp-server/tools/webhooksListAllWebhookEndpoints.ts +38 -0
- package/src/mcp-server/tools.ts +5 -0
- package/src/models/components/company.ts +27 -24
- package/src/models/components/contact.ts +24 -20
- package/src/models/components/department.ts +69 -0
- package/src/models/components/expand.ts +8 -0
- package/src/models/components/facility.ts +28 -32
- package/src/models/components/index.ts +8 -0
- package/src/models/components/scantype.ts +32 -0
- package/src/models/components/subscription.ts +98 -0
- package/src/models/components/user.ts +19 -53
- package/src/models/components/vendor.ts +925 -0
- package/src/models/components/vendorfacilitystatusview.ts +108 -0
- package/src/models/components/vendorscrubdetails.ts +108 -0
- package/src/models/components/vendorscrubpurchase.ts +90 -0
- package/src/models/components/webhookendpoint.ts +244 -0
- package/src/models/operations/getvendorsdetails.ts +86 -0
- package/src/models/operations/getwebhookendpoint.ts +69 -0
- package/src/models/operations/index.ts +7 -0
- package/src/models/operations/listallwebhookendpoints.ts +175 -0
- package/src/models/operations/listorsearchfacilities.ts +4 -4
- package/src/models/operations/listvendorcredentials.ts +160 -7
- package/src/models/operations/listvendorfacilitystatuses.ts +256 -0
- package/src/models/operations/listvendorjobtitles.ts +72 -0
- package/src/models/operations/listvendorscrubdetails.ts +80 -0
- package/src/models/operations/listvendorscrubpurchases.ts +252 -0
- package/src/models/operations/vendorscanout.ts +138 -0
- package/src/react-query/index.ts +7 -0
- package/src/react-query/vendorScansVendorScanOut.ts +89 -0
- package/src/react-query/vendorsGetVendorsDetails.ts +201 -0
- package/src/react-query/vendorsListVendorCredentials.ts +169 -1
- package/src/react-query/vendorsListVendorFacilityStatuses.ts +347 -0
- package/src/react-query/vendorsListVendorJobTitles.ts +15 -0
- package/src/react-query/vendorsListVendorScrubDetails.ts +166 -0
- package/src/react-query/vendorsListVendorScrubPurchases.ts +346 -0
- package/src/react-query/webhooksGetWebhookEndpoint.ts +163 -0
- package/src/react-query/webhooksListAllWebhookEndpoints.ts +193 -0
- package/src/sdk/sdk.ts +12 -0
- package/src/sdk/vendors.ts +99 -2
- package/src/sdk/vendorscans.ts +27 -0
- package/src/sdk/webhooks.ts +46 -0
- package/mcp-server/tools/userGetCurrentUser.d.ts +0 -3
- package/mcp-server/tools/userGetCurrentUser.d.ts.map +0 -1
- package/mcp-server/tools/userGetCurrentUser.js +0 -26
- package/mcp-server/tools/userGetCurrentUser.js.map +0 -1
- package/mcp-server/tools/userGetUserById.d.ts +0 -8
- package/mcp-server/tools/userGetUserById.d.ts.map +0 -1
- package/mcp-server/tools/userGetUserById.js.map +0 -1
- package/mcp-server/tools/userLogsUserIntoTheSystem.d.ts +0 -8
- package/mcp-server/tools/userLogsUserIntoTheSystem.d.ts.map +0 -1
- package/mcp-server/tools/userLogsUserIntoTheSystem.js +0 -94
- package/mcp-server/tools/userLogsUserIntoTheSystem.js.map +0 -1
- package/mcp-server/tools/userMagiclink.d.ts +0 -8
- package/mcp-server/tools/userMagiclink.d.ts.map +0 -1
- package/mcp-server/tools/userMagiclink.js.map +0 -1
- package/mcp-server/tools/userPassword.d.ts +0 -8
- package/mcp-server/tools/userPassword.d.ts.map +0 -1
- package/mcp-server/tools/userPassword.js.map +0 -1
- package/mcp-server/tools/userPasswordResetRequest.d.ts +0 -8
- package/mcp-server/tools/userPasswordResetRequest.d.ts.map +0 -1
- package/mcp-server/tools/vendorsListVendorJobTitles.d.ts +0 -8
- package/mcp-server/tools/vendorsListVendorJobTitles.d.ts.map +0 -1
- package/mcp-server/tools/vendorsListVendorJobTitles.js.map +0 -1
- package/src/__tests__/organizations.test.ts +0 -78
- package/src/__tests__/supportarticles.test.ts +0 -64
- package/src/__tests__/user.test.ts +0 -218
- package/vitest.config.ts +0 -8
|
@@ -0,0 +1,98 @@
|
|
|
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.VendorFacilityStatusView$ = exports.VendorFacilityStatusView$outboundSchema = exports.VendorFacilityStatusView$inboundSchema = void 0;
|
|
40
|
+
exports.vendorFacilityStatusViewToJSON = vendorFacilityStatusViewToJSON;
|
|
41
|
+
exports.vendorFacilityStatusViewFromJSON = vendorFacilityStatusViewFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.VendorFacilityStatusView$inboundSchema = z.object({
|
|
47
|
+
vendor_id: z.number().int().optional(),
|
|
48
|
+
facility_id: z.number().int().optional(),
|
|
49
|
+
facility_name: z.string().optional(),
|
|
50
|
+
facility_status: z.nullable(z.string()).optional(),
|
|
51
|
+
vendor_scan_id: z.nullable(z.number().int()).optional(),
|
|
52
|
+
vendor_scan_type: z.nullable(z.number().int()).optional(),
|
|
53
|
+
}).transform((v) => {
|
|
54
|
+
return (0, primitives_js_1.remap)(v, {
|
|
55
|
+
"vendor_id": "vendorId",
|
|
56
|
+
"facility_id": "facilityId",
|
|
57
|
+
"facility_name": "facilityName",
|
|
58
|
+
"facility_status": "facilityStatus",
|
|
59
|
+
"vendor_scan_id": "vendorScanId",
|
|
60
|
+
"vendor_scan_type": "vendorScanType",
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
/** @internal */
|
|
64
|
+
exports.VendorFacilityStatusView$outboundSchema = z.object({
|
|
65
|
+
vendorId: z.number().int().optional(),
|
|
66
|
+
facilityId: z.number().int().optional(),
|
|
67
|
+
facilityName: z.string().optional(),
|
|
68
|
+
facilityStatus: z.nullable(z.string()).optional(),
|
|
69
|
+
vendorScanId: z.nullable(z.number().int()).optional(),
|
|
70
|
+
vendorScanType: z.nullable(z.number().int()).optional(),
|
|
71
|
+
}).transform((v) => {
|
|
72
|
+
return (0, primitives_js_1.remap)(v, {
|
|
73
|
+
vendorId: "vendor_id",
|
|
74
|
+
facilityId: "facility_id",
|
|
75
|
+
facilityName: "facility_name",
|
|
76
|
+
facilityStatus: "facility_status",
|
|
77
|
+
vendorScanId: "vendor_scan_id",
|
|
78
|
+
vendorScanType: "vendor_scan_type",
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
84
|
+
*/
|
|
85
|
+
var VendorFacilityStatusView$;
|
|
86
|
+
(function (VendorFacilityStatusView$) {
|
|
87
|
+
/** @deprecated use `VendorFacilityStatusView$inboundSchema` instead. */
|
|
88
|
+
VendorFacilityStatusView$.inboundSchema = exports.VendorFacilityStatusView$inboundSchema;
|
|
89
|
+
/** @deprecated use `VendorFacilityStatusView$outboundSchema` instead. */
|
|
90
|
+
VendorFacilityStatusView$.outboundSchema = exports.VendorFacilityStatusView$outboundSchema;
|
|
91
|
+
})(VendorFacilityStatusView$ || (exports.VendorFacilityStatusView$ = VendorFacilityStatusView$ = {}));
|
|
92
|
+
function vendorFacilityStatusViewToJSON(vendorFacilityStatusView) {
|
|
93
|
+
return JSON.stringify(exports.VendorFacilityStatusView$outboundSchema.parse(vendorFacilityStatusView));
|
|
94
|
+
}
|
|
95
|
+
function vendorFacilityStatusViewFromJSON(jsonString) {
|
|
96
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.VendorFacilityStatusView$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VendorFacilityStatusView' from JSON`);
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=vendorfacilitystatusview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendorfacilitystatusview.js","sourceRoot":"","sources":["../../src/models/components/vendorfacilitystatusview.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyFH,wEAMC;AAED,4EAQC;AAvGD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAgBjD,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACtC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACxC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAClD,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvD,gBAAgB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;C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PD,WAAiB,yBAAyB;IACxC,wEAAwE;IAC3D,uCAAa,GAAG,8CAAsC,CAAC;IACpE,yEAAyE;IAC5D,wCAAc,GAAG,+CAAuC,CAAC;AAGxE,CAAC,EAPgB,yBAAyB,yCAAzB,yBAAyB,QAOzC;AAED,SAAgB,8BAA8B,CAC5C,wBAAkD;IAElD,OAAO,IAAI,CAAC,SAAS,CACnB,+CAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AACJ,CAAC;AAED,SAAgB,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8CAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* List of attributes of Vendor Scrub Details
|
|
6
|
+
*/
|
|
7
|
+
export type VendorScrubDetails = {
|
|
8
|
+
scrubTopSize?: string | null | undefined;
|
|
9
|
+
scrubBottomSize?: string | null | undefined;
|
|
10
|
+
scrubColor?: string | null | undefined;
|
|
11
|
+
totalCredits?: number | null | undefined;
|
|
12
|
+
totalDebits?: number | null | undefined;
|
|
13
|
+
scrubCredits?: number | null | undefined;
|
|
14
|
+
};
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const VendorScrubDetails$inboundSchema: z.ZodType<VendorScrubDetails, z.ZodTypeDef, unknown>;
|
|
17
|
+
/** @internal */
|
|
18
|
+
export type VendorScrubDetails$Outbound = {
|
|
19
|
+
scrub_top_size?: string | null | undefined;
|
|
20
|
+
scrub_bottom_size?: string | null | undefined;
|
|
21
|
+
scrub_color?: string | null | undefined;
|
|
22
|
+
total_credits?: number | null | undefined;
|
|
23
|
+
total_debits?: number | null | undefined;
|
|
24
|
+
scrub_credits?: number | null | undefined;
|
|
25
|
+
};
|
|
26
|
+
/** @internal */
|
|
27
|
+
export declare const VendorScrubDetails$outboundSchema: z.ZodType<VendorScrubDetails$Outbound, z.ZodTypeDef, VendorScrubDetails>;
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
31
|
+
*/
|
|
32
|
+
export declare namespace VendorScrubDetails$ {
|
|
33
|
+
/** @deprecated use `VendorScrubDetails$inboundSchema` instead. */
|
|
34
|
+
const inboundSchema: z.ZodType<VendorScrubDetails, z.ZodTypeDef, unknown>;
|
|
35
|
+
/** @deprecated use `VendorScrubDetails$outboundSchema` instead. */
|
|
36
|
+
const outboundSchema: z.ZodType<VendorScrubDetails$Outbound, z.ZodTypeDef, VendorScrubDetails>;
|
|
37
|
+
/** @deprecated use `VendorScrubDetails$Outbound` instead. */
|
|
38
|
+
type Outbound = VendorScrubDetails$Outbound;
|
|
39
|
+
}
|
|
40
|
+
export declare function vendorScrubDetailsToJSON(vendorScrubDetails: VendorScrubDetails): string;
|
|
41
|
+
export declare function vendorScrubDetailsFromJSON(jsonString: string): SafeParseResult<VendorScrubDetails, SDKValidationError>;
|
|
42
|
+
//# sourceMappingURL=vendorscrubdetails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendorscrubdetails.d.ts","sourceRoot":"","sources":["../../src/models/components/vendorscrubdetails.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,YAAY,CAAC,EAAE,MAAM,GA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;AAED,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR;AAED,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
@@ -0,0 +1,98 @@
|
|
|
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.VendorScrubDetails$ = exports.VendorScrubDetails$outboundSchema = exports.VendorScrubDetails$inboundSchema = void 0;
|
|
40
|
+
exports.vendorScrubDetailsToJSON = vendorScrubDetailsToJSON;
|
|
41
|
+
exports.vendorScrubDetailsFromJSON = vendorScrubDetailsFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.VendorScrubDetails$inboundSchema = z.object({
|
|
47
|
+
scrub_top_size: z.nullable(z.string()).optional(),
|
|
48
|
+
scrub_bottom_size: z.nullable(z.string()).optional(),
|
|
49
|
+
scrub_color: z.nullable(z.string()).optional(),
|
|
50
|
+
total_credits: z.nullable(z.number().int()).optional(),
|
|
51
|
+
total_debits: z.nullable(z.number().int()).optional(),
|
|
52
|
+
scrub_credits: z.nullable(z.number().int()).optional(),
|
|
53
|
+
}).transform((v) => {
|
|
54
|
+
return (0, primitives_js_1.remap)(v, {
|
|
55
|
+
"scrub_top_size": "scrubTopSize",
|
|
56
|
+
"scrub_bottom_size": "scrubBottomSize",
|
|
57
|
+
"scrub_color": "scrubColor",
|
|
58
|
+
"total_credits": "totalCredits",
|
|
59
|
+
"total_debits": "totalDebits",
|
|
60
|
+
"scrub_credits": "scrubCredits",
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
/** @internal */
|
|
64
|
+
exports.VendorScrubDetails$outboundSchema = z.object({
|
|
65
|
+
scrubTopSize: z.nullable(z.string()).optional(),
|
|
66
|
+
scrubBottomSize: z.nullable(z.string()).optional(),
|
|
67
|
+
scrubColor: z.nullable(z.string()).optional(),
|
|
68
|
+
totalCredits: z.nullable(z.number().int()).optional(),
|
|
69
|
+
totalDebits: z.nullable(z.number().int()).optional(),
|
|
70
|
+
scrubCredits: z.nullable(z.number().int()).optional(),
|
|
71
|
+
}).transform((v) => {
|
|
72
|
+
return (0, primitives_js_1.remap)(v, {
|
|
73
|
+
scrubTopSize: "scrub_top_size",
|
|
74
|
+
scrubBottomSize: "scrub_bottom_size",
|
|
75
|
+
scrubColor: "scrub_color",
|
|
76
|
+
totalCredits: "total_credits",
|
|
77
|
+
totalDebits: "total_debits",
|
|
78
|
+
scrubCredits: "scrub_credits",
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
84
|
+
*/
|
|
85
|
+
var VendorScrubDetails$;
|
|
86
|
+
(function (VendorScrubDetails$) {
|
|
87
|
+
/** @deprecated use `VendorScrubDetails$inboundSchema` instead. */
|
|
88
|
+
VendorScrubDetails$.inboundSchema = exports.VendorScrubDetails$inboundSchema;
|
|
89
|
+
/** @deprecated use `VendorScrubDetails$outboundSchema` instead. */
|
|
90
|
+
VendorScrubDetails$.outboundSchema = exports.VendorScrubDetails$outboundSchema;
|
|
91
|
+
})(VendorScrubDetails$ || (exports.VendorScrubDetails$ = VendorScrubDetails$ = {}));
|
|
92
|
+
function vendorScrubDetailsToJSON(vendorScrubDetails) {
|
|
93
|
+
return JSON.stringify(exports.VendorScrubDetails$outboundSchema.parse(vendorScrubDetails));
|
|
94
|
+
}
|
|
95
|
+
function vendorScrubDetailsFromJSON(jsonString) {
|
|
96
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.VendorScrubDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VendorScrubDetails' from JSON`);
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=vendorscrubdetails.js.map
|
|
@@ -0,0 +1 @@
|
|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K,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC;AAED,SAAgB,0BAA0B,CACxC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* Reduced list of attributes of Vendor ScrubPurchase record
|
|
6
|
+
*/
|
|
7
|
+
export type VendorScrubPurchase = {
|
|
8
|
+
id?: number | undefined;
|
|
9
|
+
purchaseDate?: string | null | undefined;
|
|
10
|
+
quantity?: number | null | undefined;
|
|
11
|
+
total?: number | null | undefined;
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const VendorScrubPurchase$inboundSchema: z.ZodType<VendorScrubPurchase, z.ZodTypeDef, unknown>;
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type VendorScrubPurchase$Outbound = {
|
|
17
|
+
id?: number | undefined;
|
|
18
|
+
purchase_date?: string | null | undefined;
|
|
19
|
+
quantity?: number | null | undefined;
|
|
20
|
+
total?: number | null | undefined;
|
|
21
|
+
};
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const VendorScrubPurchase$outboundSchema: z.ZodType<VendorScrubPurchase$Outbound, z.ZodTypeDef, VendorScrubPurchase>;
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27
|
+
*/
|
|
28
|
+
export declare namespace VendorScrubPurchase$ {
|
|
29
|
+
/** @deprecated use `VendorScrubPurchase$inboundSchema` instead. */
|
|
30
|
+
const inboundSchema: z.ZodType<VendorScrubPurchase, z.ZodTypeDef, unknown>;
|
|
31
|
+
/** @deprecated use `VendorScrubPurchase$outboundSchema` instead. */
|
|
32
|
+
const outboundSchema: z.ZodType<VendorScrubPurchase$Outbound, z.ZodTypeDef, VendorScrubPurchase>;
|
|
33
|
+
/** @deprecated use `VendorScrubPurchase$Outbound` instead. */
|
|
34
|
+
type Outbound = VendorScrubPurchase$Outbound;
|
|
35
|
+
}
|
|
36
|
+
export declare function vendorScrubPurchaseToJSON(vendorScrubPurchase: VendorScrubPurchase): string;
|
|
37
|
+
export declare function vendorScrubPurchaseFromJSON(jsonString: string): SafeParseResult<VendorScrubPurchase, SDKValidationError>;
|
|
38
|
+
//# sourceMappingURL=vendorscrubpurchase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendorscrubpurchase.d.ts","sourceRoot":"","sources":["../../src/models/components/vendorscrubpurchase.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAUnB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,oBAAoB,CAAC;IACpC,mEAAmE;IAC5D,MAAM,aAAa,uDAAoC,CAAC;IAC/D,oEAAoE;IAC7D,MAAM,cAAc,4EAAqC,CAAC;IACjE,8DAA8D;IAC9D,KAAY,QAAQ,GAAG,4BAA4B,CAAC;CACrD;AAED,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
|
|
@@ -0,0 +1,84 @@
|
|
|
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.VendorScrubPurchase$ = exports.VendorScrubPurchase$outboundSchema = exports.VendorScrubPurchase$inboundSchema = void 0;
|
|
40
|
+
exports.vendorScrubPurchaseToJSON = vendorScrubPurchaseToJSON;
|
|
41
|
+
exports.vendorScrubPurchaseFromJSON = vendorScrubPurchaseFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.VendorScrubPurchase$inboundSchema = z.object({
|
|
47
|
+
id: z.number().int().optional(),
|
|
48
|
+
purchase_date: z.nullable(z.string()).optional(),
|
|
49
|
+
quantity: z.nullable(z.number().int()).optional(),
|
|
50
|
+
total: z.nullable(z.number().int()).optional(),
|
|
51
|
+
}).transform((v) => {
|
|
52
|
+
return (0, primitives_js_1.remap)(v, {
|
|
53
|
+
"purchase_date": "purchaseDate",
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
/** @internal */
|
|
57
|
+
exports.VendorScrubPurchase$outboundSchema = z.object({
|
|
58
|
+
id: z.number().int().optional(),
|
|
59
|
+
purchaseDate: z.nullable(z.string()).optional(),
|
|
60
|
+
quantity: z.nullable(z.number().int()).optional(),
|
|
61
|
+
total: z.nullable(z.number().int()).optional(),
|
|
62
|
+
}).transform((v) => {
|
|
63
|
+
return (0, primitives_js_1.remap)(v, {
|
|
64
|
+
purchaseDate: "purchase_date",
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
/**
|
|
68
|
+
* @internal
|
|
69
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
70
|
+
*/
|
|
71
|
+
var VendorScrubPurchase$;
|
|
72
|
+
(function (VendorScrubPurchase$) {
|
|
73
|
+
/** @deprecated use `VendorScrubPurchase$inboundSchema` instead. */
|
|
74
|
+
VendorScrubPurchase$.inboundSchema = exports.VendorScrubPurchase$inboundSchema;
|
|
75
|
+
/** @deprecated use `VendorScrubPurchase$outboundSchema` instead. */
|
|
76
|
+
VendorScrubPurchase$.outboundSchema = exports.VendorScrubPurchase$outboundSchema;
|
|
77
|
+
})(VendorScrubPurchase$ || (exports.VendorScrubPurchase$ = VendorScrubPurchase$ = {}));
|
|
78
|
+
function vendorScrubPurchaseToJSON(vendorScrubPurchase) {
|
|
79
|
+
return JSON.stringify(exports.VendorScrubPurchase$outboundSchema.parse(vendorScrubPurchase));
|
|
80
|
+
}
|
|
81
|
+
function vendorScrubPurchaseFromJSON(jsonString) {
|
|
82
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.VendorScrubPurchase$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VendorScrubPurchase' from JSON`);
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=vendorscrubpurchase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendorscrubpurchase.js","sourceRoot":"","sources":["../../src/models/components/vendorscrubpurchase.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEH,8DAMC;AAED,kEAQC;AArFD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAcjD,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC/B,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChD,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjD,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,eAAe,EAAE,cAAc;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC/B,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC/C,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjD,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,oBAAoB,CAOpC;AAPD,WAAiB,oBAAoB;IACnC,mEAAmE;IACtD,kCAAa,GAAG,yCAAiC,CAAC;IAC/D,oEAAoE;IACvD,mCAAc,GAAG,0CAAkC,CAAC;AAGnE,CAAC,EAPgB,oBAAoB,oCAApB,oBAAoB,QAOpC;AAED,SAAgB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC;AAED,SAAgB,2BAA2B,CACzC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
/**
|
|
6
|
+
* The signature algorithm which will be used by you to verify the content of the webhook was actually sent by Green Security LLC.
|
|
7
|
+
*/
|
|
8
|
+
export declare const SignatureAlgo: {
|
|
9
|
+
readonly SigHmacSha256: "sig_hmac_sha256";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The signature algorithm which will be used by you to verify the content of the webhook was actually sent by Green Security LLC.
|
|
13
|
+
*/
|
|
14
|
+
export type SignatureAlgo = ClosedEnum<typeof SignatureAlgo>;
|
|
15
|
+
/**
|
|
16
|
+
* Identifies which consumers will receive events for this webhook. This should be treated as a union (meaning multiple settings are considered an OR operation).
|
|
17
|
+
*/
|
|
18
|
+
export type Consumers = {
|
|
19
|
+
/**
|
|
20
|
+
* A unique identifier for a health system. If specified, this webhook will fire for all facilities within the specified health system.
|
|
21
|
+
*/
|
|
22
|
+
systemId?: number | null | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* A unique identifier for a hospital facility. If specified, this webhook will fire for any events matching this facility.
|
|
25
|
+
*/
|
|
26
|
+
facilityId?: number | null | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* A unique identifier for a company. If specified, this webhook will fire for any event related to this company.
|
|
29
|
+
*/
|
|
30
|
+
companyId?: number | null | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* A unique identifier for a specific user. If specified, this webhook will fire for any event for this specific user.
|
|
33
|
+
*/
|
|
34
|
+
userId?: number | null | undefined;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* A simplified representation of a WebhookEndpoint, typically used in list views.
|
|
38
|
+
*/
|
|
39
|
+
export type WebhookEndpoint = {
|
|
40
|
+
/**
|
|
41
|
+
* Unique identifier for the object.
|
|
42
|
+
*/
|
|
43
|
+
id: number;
|
|
44
|
+
/**
|
|
45
|
+
* The URL of the webhook endpoint.
|
|
46
|
+
*/
|
|
47
|
+
webhookUrl: string;
|
|
48
|
+
/**
|
|
49
|
+
* The signature algorithm which will be used by you to verify the content of the webhook was actually sent by Green Security LLC.
|
|
50
|
+
*/
|
|
51
|
+
signatureAlgo?: SignatureAlgo | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* The list of events to enable for this endpoint.
|
|
54
|
+
*/
|
|
55
|
+
subscriptions: Array<string> | null;
|
|
56
|
+
/**
|
|
57
|
+
* Identifies which consumers will receive events for this webhook. This should be treated as a union (meaning multiple settings are considered an OR operation).
|
|
58
|
+
*/
|
|
59
|
+
consumers: Consumers;
|
|
60
|
+
/**
|
|
61
|
+
* The endpoint’s secret, used to generate webhook signatures. Only returned at creation.
|
|
62
|
+
*/
|
|
63
|
+
secrets?: Array<string> | null | undefined;
|
|
64
|
+
};
|
|
65
|
+
/** @internal */
|
|
66
|
+
export declare const SignatureAlgo$inboundSchema: z.ZodNativeEnum<typeof SignatureAlgo>;
|
|
67
|
+
/** @internal */
|
|
68
|
+
export declare const SignatureAlgo$outboundSchema: z.ZodNativeEnum<typeof SignatureAlgo>;
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
72
|
+
*/
|
|
73
|
+
export declare namespace SignatureAlgo$ {
|
|
74
|
+
/** @deprecated use `SignatureAlgo$inboundSchema` instead. */
|
|
75
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
76
|
+
readonly SigHmacSha256: "sig_hmac_sha256";
|
|
77
|
+
}>;
|
|
78
|
+
/** @deprecated use `SignatureAlgo$outboundSchema` instead. */
|
|
79
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
80
|
+
readonly SigHmacSha256: "sig_hmac_sha256";
|
|
81
|
+
}>;
|
|
82
|
+
}
|
|
83
|
+
/** @internal */
|
|
84
|
+
export declare const Consumers$inboundSchema: z.ZodType<Consumers, z.ZodTypeDef, unknown>;
|
|
85
|
+
/** @internal */
|
|
86
|
+
export type Consumers$Outbound = {
|
|
87
|
+
system_id?: number | null | undefined;
|
|
88
|
+
facility_id?: number | null | undefined;
|
|
89
|
+
company_id?: number | null | undefined;
|
|
90
|
+
user_id?: number | null | undefined;
|
|
91
|
+
};
|
|
92
|
+
/** @internal */
|
|
93
|
+
export declare const Consumers$outboundSchema: z.ZodType<Consumers$Outbound, z.ZodTypeDef, Consumers>;
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
97
|
+
*/
|
|
98
|
+
export declare namespace Consumers$ {
|
|
99
|
+
/** @deprecated use `Consumers$inboundSchema` instead. */
|
|
100
|
+
const inboundSchema: z.ZodType<Consumers, z.ZodTypeDef, unknown>;
|
|
101
|
+
/** @deprecated use `Consumers$outboundSchema` instead. */
|
|
102
|
+
const outboundSchema: z.ZodType<Consumers$Outbound, z.ZodTypeDef, Consumers>;
|
|
103
|
+
/** @deprecated use `Consumers$Outbound` instead. */
|
|
104
|
+
type Outbound = Consumers$Outbound;
|
|
105
|
+
}
|
|
106
|
+
export declare function consumersToJSON(consumers: Consumers): string;
|
|
107
|
+
export declare function consumersFromJSON(jsonString: string): SafeParseResult<Consumers, SDKValidationError>;
|
|
108
|
+
/** @internal */
|
|
109
|
+
export declare const WebhookEndpoint$inboundSchema: z.ZodType<WebhookEndpoint, z.ZodTypeDef, unknown>;
|
|
110
|
+
/** @internal */
|
|
111
|
+
export type WebhookEndpoint$Outbound = {
|
|
112
|
+
id: number;
|
|
113
|
+
webhook_url: string;
|
|
114
|
+
signature_algo: string;
|
|
115
|
+
subscriptions: Array<string> | null;
|
|
116
|
+
consumers: Consumers$Outbound;
|
|
117
|
+
secrets?: Array<string> | null | undefined;
|
|
118
|
+
};
|
|
119
|
+
/** @internal */
|
|
120
|
+
export declare const WebhookEndpoint$outboundSchema: z.ZodType<WebhookEndpoint$Outbound, z.ZodTypeDef, WebhookEndpoint>;
|
|
121
|
+
/**
|
|
122
|
+
* @internal
|
|
123
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
124
|
+
*/
|
|
125
|
+
export declare namespace WebhookEndpoint$ {
|
|
126
|
+
/** @deprecated use `WebhookEndpoint$inboundSchema` instead. */
|
|
127
|
+
const inboundSchema: z.ZodType<WebhookEndpoint, z.ZodTypeDef, unknown>;
|
|
128
|
+
/** @deprecated use `WebhookEndpoint$outboundSchema` instead. */
|
|
129
|
+
const outboundSchema: z.ZodType<WebhookEndpoint$Outbound, z.ZodTypeDef, WebhookEndpoint>;
|
|
130
|
+
/** @deprecated use `WebhookEndpoint$Outbound` instead. */
|
|
131
|
+
type Outbound = WebhookEndpoint$Outbound;
|
|
132
|
+
}
|
|
133
|
+
export declare function webhookEndpointToJSON(webhookEndpoint: WebhookEndpoint): string;
|
|
134
|
+
export declare function webhookEndpointFromJSON(jsonString: string): SafeParseResult<WebhookEndpoint, SDKValidationError>;
|
|
135
|
+
//# sourceMappingURL=webhookendpoint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhookendpoint.d.ts","sourceRoot":"","sources":["../../src/models/components/webhookendpoint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,aAAa;;CAEhB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B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