@greensecurity/javascript-sdk 0.19.0 → 0.21.3
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 +93 -9
- package/bin/mcp-server.js +1734 -271
- package/bin/mcp-server.js.map +50 -26
- 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 +1 -1
- package/funcs/vendorsListVendorFacilityStatuses.d.ts.map +1 -1
- package/funcs/vendorsListVendorFacilityStatuses.js +3 -2
- package/funcs/vendorsListVendorFacilityStatuses.js.map +1 -1
- 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/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 +16 -4
- package/mcp-server/server.js.map +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/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 +1 -1
- package/mcp-server/tools/vendorsListVendorCredentials.js.map +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 +1 -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 +7 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +7 -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/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 +6 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +6 -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 +5 -0
- package/models/operations/listvendorfacilitystatuses.d.ts.map +1 -1
- package/models/operations/listvendorfacilitystatuses.js +4 -0
- package/models/operations/listvendorfacilitystatuses.js.map +1 -1
- 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 +6 -0
- package/react-query/index.d.ts.map +1 -1
- package/react-query/index.js +6 -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 +3 -0
- package/react-query/vendorsListVendorFacilityStatuses.d.ts.map +1 -1
- package/react-query/vendorsListVendorFacilityStatuses.js +2 -0
- package/react-query/vendorsListVendorFacilityStatuses.js.map +1 -1
- 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 +41 -2
- package/sdk/vendors.d.ts.map +1 -1
- package/sdk/vendors.js +47 -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 +50 -152
- 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 +7 -1
- 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/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 +16 -4
- package/src/mcp-server/tools/vendorScansVendorScanOut.ts +37 -0
- package/src/mcp-server/tools/vendorsGetVendorsDetails.ts +51 -0
- package/src/mcp-server/tools/vendorsListVendorCredentials.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/{vendorsListVendorJobTitles.ts → webhooksGetWebhookEndpoint.ts} +8 -8
- package/src/mcp-server/tools/webhooksListAllWebhookEndpoints.ts +38 -0
- package/src/mcp-server/tools.ts +1 -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 +7 -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/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 +6 -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 +9 -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 +6 -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 +5 -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 +76 -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
package/bin/mcp-server.js
CHANGED
|
@@ -34172,9 +34172,9 @@ var init_config = __esm(() => {
|
|
|
34172
34172
|
SDK_METADATA = {
|
|
34173
34173
|
language: "typescript",
|
|
34174
34174
|
openapiDocVersion: "0.0.3",
|
|
34175
|
-
sdkVersion: "0.
|
|
34176
|
-
genVersion: "2.
|
|
34177
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
34175
|
+
sdkVersion: "0.21.3",
|
|
34176
|
+
genVersion: "2.558.2",
|
|
34177
|
+
userAgent: "speakeasy-sdk/typescript 0.21.3 2.558.2 0.0.3 @greensecurity/javascript-sdk"
|
|
34178
34178
|
};
|
|
34179
34179
|
});
|
|
34180
34180
|
|
|
@@ -34976,6 +34976,30 @@ var init_core = __esm(() => {
|
|
|
34976
34976
|
};
|
|
34977
34977
|
});
|
|
34978
34978
|
|
|
34979
|
+
// src/mcp-server/prompts.ts
|
|
34980
|
+
function createRegisterPrompt(logger, server, sdk, allowedScopes) {
|
|
34981
|
+
return (prompt) => {
|
|
34982
|
+
const scopes = prompt.scopes ?? [];
|
|
34983
|
+
if (!scopes.every((s) => allowedScopes.has(s))) {
|
|
34984
|
+
return;
|
|
34985
|
+
}
|
|
34986
|
+
if (prompt.args) {
|
|
34987
|
+
if (prompt.description) {
|
|
34988
|
+
server.prompt(prompt.name, prompt.description, prompt.args, async (args, ctx) => prompt.prompt(sdk, args, ctx));
|
|
34989
|
+
} else {
|
|
34990
|
+
server.prompt(prompt.name, prompt.args, async (args, ctx) => prompt.prompt(sdk, args, ctx));
|
|
34991
|
+
}
|
|
34992
|
+
} else {
|
|
34993
|
+
if (prompt.description) {
|
|
34994
|
+
server.prompt(prompt.name, prompt.description, async (ctx) => prompt.prompt(sdk, ctx));
|
|
34995
|
+
} else {
|
|
34996
|
+
server.prompt(prompt.name, async (ctx) => prompt.prompt(sdk, ctx));
|
|
34997
|
+
}
|
|
34998
|
+
}
|
|
34999
|
+
logger.debug("Registered prompt", { name: prompt.name });
|
|
35000
|
+
};
|
|
35001
|
+
}
|
|
35002
|
+
|
|
34979
35003
|
// src/mcp-server/shared.ts
|
|
34980
35004
|
async function consumeStream(stream) {
|
|
34981
35005
|
const reader = stream.getReader();
|
|
@@ -35418,6 +35442,9 @@ function resolveSecurity(...options) {
|
|
|
35418
35442
|
} else if (o.type === "oauth2:password") {
|
|
35419
35443
|
return typeof o.value === "string" && !!o.value;
|
|
35420
35444
|
} else if (o.type === "oauth2:client_credentials") {
|
|
35445
|
+
if (typeof o.value == "string") {
|
|
35446
|
+
return !!o.value;
|
|
35447
|
+
}
|
|
35421
35448
|
return o.value.clientID != null || o.value.clientSecret != null;
|
|
35422
35449
|
} else if (typeof o.value === "string") {
|
|
35423
35450
|
return !!o.value;
|
|
@@ -35483,7 +35510,9 @@ function applyBearer(state, spec) {
|
|
|
35483
35510
|
if (value.slice(0, 7).toLowerCase() !== "bearer ") {
|
|
35484
35511
|
value = `Bearer ${value}`;
|
|
35485
35512
|
}
|
|
35486
|
-
|
|
35513
|
+
if (spec.fieldName !== undefined) {
|
|
35514
|
+
state.headers[spec.fieldName] = value;
|
|
35515
|
+
}
|
|
35487
35516
|
}
|
|
35488
35517
|
function resolveGlobalSecurity(security) {
|
|
35489
35518
|
return resolveSecurity([
|
|
@@ -35574,12 +35603,12 @@ var init_rfcdate = __esm(() => {
|
|
|
35574
35603
|
});
|
|
35575
35604
|
|
|
35576
35605
|
// src/models/components/company.ts
|
|
35577
|
-
var
|
|
35606
|
+
var CompanyLocation$inboundSchema, CompanyLocation$outboundSchema, CompanyLocation$, CompanyContact$inboundSchema, CompanyContact$outboundSchema, CompanyContact$, Tax$inboundSchema, Tax$outboundSchema, Tax$, Stats$inboundSchema, Stats$outboundSchema, Stats$, Company$inboundSchema, Company$outboundSchema, Company$;
|
|
35578
35607
|
var init_company = __esm(() => {
|
|
35579
35608
|
init_lib();
|
|
35580
35609
|
init_primitives();
|
|
35581
35610
|
init_rfcdate();
|
|
35582
|
-
|
|
35611
|
+
CompanyLocation$inboundSchema = objectType({
|
|
35583
35612
|
address: nullableType(stringType()),
|
|
35584
35613
|
phone: nullableType(stringType()).optional(),
|
|
35585
35614
|
city: nullableType(stringType()).optional(),
|
|
@@ -35587,7 +35616,7 @@ var init_company = __esm(() => {
|
|
|
35587
35616
|
zip: nullableType(stringType()).optional(),
|
|
35588
35617
|
country: nullableType(stringType()).optional()
|
|
35589
35618
|
});
|
|
35590
|
-
|
|
35619
|
+
CompanyLocation$outboundSchema = objectType({
|
|
35591
35620
|
address: nullableType(stringType()),
|
|
35592
35621
|
phone: nullableType(stringType()).optional(),
|
|
35593
35622
|
city: nullableType(stringType()).optional(),
|
|
@@ -35595,10 +35624,10 @@ var init_company = __esm(() => {
|
|
|
35595
35624
|
zip: nullableType(stringType()).optional(),
|
|
35596
35625
|
country: nullableType(stringType()).optional()
|
|
35597
35626
|
});
|
|
35598
|
-
((
|
|
35599
|
-
|
|
35600
|
-
|
|
35601
|
-
})(
|
|
35627
|
+
((CompanyLocation$) => {
|
|
35628
|
+
CompanyLocation$.inboundSchema = CompanyLocation$inboundSchema;
|
|
35629
|
+
CompanyLocation$.outboundSchema = CompanyLocation$outboundSchema;
|
|
35630
|
+
})(CompanyLocation$ ||= {});
|
|
35602
35631
|
CompanyContact$inboundSchema = objectType({
|
|
35603
35632
|
name: nullableType(stringType()),
|
|
35604
35633
|
email: nullableType(stringType()).optional()
|
|
@@ -35688,7 +35717,7 @@ var init_company = __esm(() => {
|
|
|
35688
35717
|
name: nullableType(stringType()),
|
|
35689
35718
|
status: nullableType(stringType()).optional(),
|
|
35690
35719
|
credit_balance: nullableType(stringType()).optional(),
|
|
35691
|
-
location: nullableType(lazyType(() =>
|
|
35720
|
+
location: nullableType(lazyType(() => CompanyLocation$inboundSchema)).optional(),
|
|
35692
35721
|
contact: lazyType(() => CompanyContact$inboundSchema).optional(),
|
|
35693
35722
|
tax: lazyType(() => Tax$inboundSchema).optional(),
|
|
35694
35723
|
stats: lazyType(() => Stats$inboundSchema).optional()
|
|
@@ -35702,7 +35731,7 @@ var init_company = __esm(() => {
|
|
|
35702
35731
|
name: nullableType(stringType()),
|
|
35703
35732
|
status: nullableType(stringType()).optional(),
|
|
35704
35733
|
creditBalance: nullableType(stringType()).optional(),
|
|
35705
|
-
location: nullableType(lazyType(() =>
|
|
35734
|
+
location: nullableType(lazyType(() => CompanyLocation$outboundSchema)).optional(),
|
|
35706
35735
|
contact: lazyType(() => CompanyContact$outboundSchema).optional(),
|
|
35707
35736
|
tax: lazyType(() => Tax$outboundSchema).optional(),
|
|
35708
35737
|
stats: lazyType(() => Stats$outboundSchema).optional()
|
|
@@ -35772,7 +35801,7 @@ var init_systemsummary = __esm(() => {
|
|
|
35772
35801
|
});
|
|
35773
35802
|
|
|
35774
35803
|
// src/models/components/contact.ts
|
|
35775
|
-
var Status, ContactFacility$inboundSchema, ContactFacility$outboundSchema, ContactFacility$, System$inboundSchema, System$outboundSchema, System$, Status$inboundSchema, Status$outboundSchema, Status$,
|
|
35804
|
+
var Status, ContactFacility$inboundSchema, ContactFacility$outboundSchema, ContactFacility$, System$inboundSchema, System$outboundSchema, System$, Status$inboundSchema, Status$outboundSchema, Status$, ContactDepartment$inboundSchema, ContactDepartment$outboundSchema, ContactDepartment$, Contact$inboundSchema, Contact$outboundSchema, Contact$;
|
|
35776
35805
|
var init_contact = __esm(() => {
|
|
35777
35806
|
init_lib();
|
|
35778
35807
|
init_departmentsummary();
|
|
@@ -35801,12 +35830,12 @@ var init_contact = __esm(() => {
|
|
|
35801
35830
|
Status$.inboundSchema = Status$inboundSchema;
|
|
35802
35831
|
Status$.outboundSchema = Status$outboundSchema;
|
|
35803
35832
|
})(Status$ ||= {});
|
|
35804
|
-
|
|
35805
|
-
|
|
35806
|
-
((
|
|
35807
|
-
|
|
35808
|
-
|
|
35809
|
-
})(
|
|
35833
|
+
ContactDepartment$inboundSchema = unionType([DepartmentSummary$inboundSchema, numberType().int()]);
|
|
35834
|
+
ContactDepartment$outboundSchema = unionType([DepartmentSummary$outboundSchema, numberType().int()]);
|
|
35835
|
+
((ContactDepartment$) => {
|
|
35836
|
+
ContactDepartment$.inboundSchema = ContactDepartment$inboundSchema;
|
|
35837
|
+
ContactDepartment$.outboundSchema = ContactDepartment$outboundSchema;
|
|
35838
|
+
})(ContactDepartment$ ||= {});
|
|
35810
35839
|
Contact$inboundSchema = objectType({
|
|
35811
35840
|
facility: unionType([FacilitySummary$inboundSchema, numberType().int()]).optional(),
|
|
35812
35841
|
system: unionType([SystemSummary$inboundSchema, numberType().int()]).optional(),
|
|
@@ -35848,6 +35877,24 @@ var init_credentialstatus = __esm(() => {
|
|
|
35848
35877
|
})(CredentialStatus$ ||= {});
|
|
35849
35878
|
});
|
|
35850
35879
|
|
|
35880
|
+
// src/models/components/department.ts
|
|
35881
|
+
var Department$inboundSchema, Department$outboundSchema, Department$;
|
|
35882
|
+
var init_department = __esm(() => {
|
|
35883
|
+
init_lib();
|
|
35884
|
+
Department$inboundSchema = objectType({
|
|
35885
|
+
id: numberType().int(),
|
|
35886
|
+
name: stringType()
|
|
35887
|
+
});
|
|
35888
|
+
Department$outboundSchema = objectType({
|
|
35889
|
+
id: numberType().int(),
|
|
35890
|
+
name: stringType()
|
|
35891
|
+
});
|
|
35892
|
+
((Department$) => {
|
|
35893
|
+
Department$.inboundSchema = Department$inboundSchema;
|
|
35894
|
+
Department$.outboundSchema = Department$outboundSchema;
|
|
35895
|
+
})(Department$ ||= {});
|
|
35896
|
+
});
|
|
35897
|
+
|
|
35851
35898
|
// src/models/components/desc.ts
|
|
35852
35899
|
var Desc$inboundSchema, Desc$outboundSchema, Desc$;
|
|
35853
35900
|
var init_desc = __esm(() => {
|
|
@@ -35882,6 +35929,14 @@ var init_expand = __esm(() => {
|
|
|
35882
35929
|
VendorUser: "vendor.user",
|
|
35883
35930
|
VendorVendorType: "vendor.vendor_type",
|
|
35884
35931
|
VendorPaymentProfile: "vendor.payment_profile",
|
|
35932
|
+
VendorImageUrls: "vendor.image_urls",
|
|
35933
|
+
VendorPrimaryFacility: "vendor.primary_facility",
|
|
35934
|
+
VendorPrimaryDepartment: "vendor.primary_department",
|
|
35935
|
+
VendorCompany: "vendor.company",
|
|
35936
|
+
VendorCredentialingSubscription: "vendor.credentialing_subscription",
|
|
35937
|
+
VendorScrubsSubscription: "vendor.scrubs_subscription",
|
|
35938
|
+
VendorPaymentResponsibility: "vendor.payment_responsibility",
|
|
35939
|
+
VendorBackgroundCheckDateExpires: "vendor.background_check_date_expires",
|
|
35885
35940
|
SupportArticleDescription: "support_article.description",
|
|
35886
35941
|
SupportArticlePublished: "support_article.published",
|
|
35887
35942
|
SupportArticleNotes: "support_article.notes",
|
|
@@ -35985,7 +36040,7 @@ var init_vendortype = __esm(() => {
|
|
|
35985
36040
|
});
|
|
35986
36041
|
|
|
35987
36042
|
// src/models/components/facility.ts
|
|
35988
|
-
var VendorGuestLimitAndOr, AppointmentPolicy$inboundSchema, AppointmentPolicy$outboundSchema, AppointmentPolicy$, Contacts$inboundSchema, Contacts$outboundSchema, Contacts$, VendorCounts$inboundSchema, VendorCounts$outboundSchema, VendorCounts$, FacilityFluCredential$inboundSchema, FacilityFluCredential$outboundSchema, FacilityFluCredential$, FluCredential$inboundSchema, FluCredential$outboundSchema, FluCredential$,
|
|
36043
|
+
var VendorGuestLimitAndOr, AppointmentPolicy$inboundSchema, AppointmentPolicy$outboundSchema, AppointmentPolicy$, Contacts$inboundSchema, Contacts$outboundSchema, Contacts$, VendorCounts$inboundSchema, VendorCounts$outboundSchema, VendorCounts$, FacilityFluCredential$inboundSchema, FacilityFluCredential$outboundSchema, FacilityFluCredential$, FluCredential$inboundSchema, FluCredential$outboundSchema, FluCredential$, Location$inboundSchema, Location$outboundSchema, Location$, ScrubsPolicy$inboundSchema, ScrubsPolicy$outboundSchema, ScrubsPolicy$, FacilitySystem$inboundSchema, FacilitySystem$outboundSchema, FacilitySystem$, Uses$inboundSchema, Uses$outboundSchema, Uses$, VendorGuestLimitAndOr$inboundSchema, VendorGuestLimitAndOr$outboundSchema, VendorGuestLimitAndOr$, VendorGuestPolicy$inboundSchema, VendorGuestPolicy$outboundSchema, VendorGuestPolicy$, VendorPolicy$inboundSchema, VendorPolicy$outboundSchema, VendorPolicy$, VisitorPolicy$inboundSchema, VisitorPolicy$outboundSchema, VisitorPolicy$, WorkflowPolicy$inboundSchema, WorkflowPolicy$outboundSchema, WorkflowPolicy$, Facility$inboundSchema, Facility$outboundSchema, Facility$;
|
|
35989
36044
|
var init_facility = __esm(() => {
|
|
35990
36045
|
init_lib();
|
|
35991
36046
|
init_primitives();
|
|
@@ -36150,7 +36205,7 @@ var init_facility = __esm(() => {
|
|
|
36150
36205
|
FluCredential$.inboundSchema = FluCredential$inboundSchema;
|
|
36151
36206
|
FluCredential$.outboundSchema = FluCredential$outboundSchema;
|
|
36152
36207
|
})(FluCredential$ ||= {});
|
|
36153
|
-
|
|
36208
|
+
Location$inboundSchema = objectType({
|
|
36154
36209
|
street_address: nullableType(stringType()).optional(),
|
|
36155
36210
|
city: nullableType(stringType()).optional(),
|
|
36156
36211
|
state: nullableType(stringType()).optional(),
|
|
@@ -36167,7 +36222,7 @@ var init_facility = __esm(() => {
|
|
|
36167
36222
|
utc_offset: "utcOffset"
|
|
36168
36223
|
});
|
|
36169
36224
|
});
|
|
36170
|
-
|
|
36225
|
+
Location$outboundSchema = objectType({
|
|
36171
36226
|
streetAddress: nullableType(stringType()).optional(),
|
|
36172
36227
|
city: nullableType(stringType()).optional(),
|
|
36173
36228
|
state: nullableType(stringType()).optional(),
|
|
@@ -36184,10 +36239,10 @@ var init_facility = __esm(() => {
|
|
|
36184
36239
|
utcOffset: "utc_offset"
|
|
36185
36240
|
});
|
|
36186
36241
|
});
|
|
36187
|
-
((
|
|
36188
|
-
|
|
36189
|
-
|
|
36190
|
-
})(
|
|
36242
|
+
((Location$) => {
|
|
36243
|
+
Location$.inboundSchema = Location$inboundSchema;
|
|
36244
|
+
Location$.outboundSchema = Location$outboundSchema;
|
|
36245
|
+
})(Location$ ||= {});
|
|
36191
36246
|
ScrubsPolicy$inboundSchema = objectType({
|
|
36192
36247
|
unlimited_scrubs: booleanType().optional(),
|
|
36193
36248
|
scrub_debits_per_day: numberType().int().optional(),
|
|
@@ -36406,8 +36461,8 @@ var init_facility = __esm(() => {
|
|
|
36406
36461
|
facility_type: nullableType(stringType()).optional(),
|
|
36407
36462
|
flu_credential: lazyType(() => FluCredential$inboundSchema).optional(),
|
|
36408
36463
|
id: numberType().int().optional(),
|
|
36409
|
-
image_urls: ImageSet$inboundSchema.optional(),
|
|
36410
|
-
location: lazyType(() =>
|
|
36464
|
+
image_urls: nullableType(ImageSet$inboundSchema).optional(),
|
|
36465
|
+
location: lazyType(() => Location$inboundSchema).optional(),
|
|
36411
36466
|
name: stringType().optional(),
|
|
36412
36467
|
scrubs_policy: nullableType(lazyType(() => ScrubsPolicy$inboundSchema)).optional(),
|
|
36413
36468
|
status: stringType().optional(),
|
|
@@ -36441,8 +36496,8 @@ var init_facility = __esm(() => {
|
|
|
36441
36496
|
facilityType: nullableType(stringType()).optional(),
|
|
36442
36497
|
fluCredential: lazyType(() => FluCredential$outboundSchema).optional(),
|
|
36443
36498
|
id: numberType().int().optional(),
|
|
36444
|
-
imageUrls: ImageSet$outboundSchema.optional(),
|
|
36445
|
-
location: lazyType(() =>
|
|
36499
|
+
imageUrls: nullableType(ImageSet$outboundSchema).optional(),
|
|
36500
|
+
location: lazyType(() => Location$outboundSchema).optional(),
|
|
36446
36501
|
name: stringType().optional(),
|
|
36447
36502
|
scrubsPolicy: nullableType(lazyType(() => ScrubsPolicy$outboundSchema)).optional(),
|
|
36448
36503
|
status: stringType().optional(),
|
|
@@ -36849,6 +36904,23 @@ var init_samlloginrequiredresponse = __esm(() => {
|
|
|
36849
36904
|
})(SamlLoginRequiredResponse$ ||= {});
|
|
36850
36905
|
});
|
|
36851
36906
|
|
|
36907
|
+
// src/models/components/scantype.ts
|
|
36908
|
+
var ScanType, ScanType$inboundSchema, ScanType$outboundSchema, ScanType$;
|
|
36909
|
+
var init_scantype = __esm(() => {
|
|
36910
|
+
init_lib();
|
|
36911
|
+
ScanType = {
|
|
36912
|
+
In: "In",
|
|
36913
|
+
Out: "Out",
|
|
36914
|
+
Check: "Check"
|
|
36915
|
+
};
|
|
36916
|
+
ScanType$inboundSchema = nativeEnumType(ScanType);
|
|
36917
|
+
ScanType$outboundSchema = ScanType$inboundSchema;
|
|
36918
|
+
((ScanType$) => {
|
|
36919
|
+
ScanType$.inboundSchema = ScanType$inboundSchema;
|
|
36920
|
+
ScanType$.outboundSchema = ScanType$outboundSchema;
|
|
36921
|
+
})(ScanType$ ||= {});
|
|
36922
|
+
});
|
|
36923
|
+
|
|
36852
36924
|
// src/models/components/security.ts
|
|
36853
36925
|
var Security$inboundSchema, Security$outboundSchema, Security$;
|
|
36854
36926
|
var init_security2 = __esm(() => {
|
|
@@ -36876,6 +36948,45 @@ var init_security2 = __esm(() => {
|
|
|
36876
36948
|
})(Security$ ||= {});
|
|
36877
36949
|
});
|
|
36878
36950
|
|
|
36951
|
+
// src/models/components/subscription.ts
|
|
36952
|
+
var Subscription$inboundSchema, Subscription$outboundSchema, Subscription$;
|
|
36953
|
+
var init_subscription = __esm(() => {
|
|
36954
|
+
init_lib();
|
|
36955
|
+
init_primitives();
|
|
36956
|
+
Subscription$inboundSchema = objectType({
|
|
36957
|
+
id: nullableType(numberType().int()).optional(),
|
|
36958
|
+
date_started: nullableType(stringType()).optional(),
|
|
36959
|
+
date_ends: nullableType(stringType()).optional(),
|
|
36960
|
+
status: nullableType(stringType()).optional(),
|
|
36961
|
+
locked: nullableType(booleanType()).optional(),
|
|
36962
|
+
variant_title: nullableType(anyType()).optional()
|
|
36963
|
+
}).transform((v2) => {
|
|
36964
|
+
return remap(v2, {
|
|
36965
|
+
date_started: "dateStarted",
|
|
36966
|
+
date_ends: "dateEnds",
|
|
36967
|
+
variant_title: "variantTitle"
|
|
36968
|
+
});
|
|
36969
|
+
});
|
|
36970
|
+
Subscription$outboundSchema = objectType({
|
|
36971
|
+
id: nullableType(numberType().int()).optional(),
|
|
36972
|
+
dateStarted: nullableType(stringType()).optional(),
|
|
36973
|
+
dateEnds: nullableType(stringType()).optional(),
|
|
36974
|
+
status: nullableType(stringType()).optional(),
|
|
36975
|
+
locked: nullableType(booleanType()).optional(),
|
|
36976
|
+
variantTitle: nullableType(anyType()).optional()
|
|
36977
|
+
}).transform((v2) => {
|
|
36978
|
+
return remap(v2, {
|
|
36979
|
+
dateStarted: "date_started",
|
|
36980
|
+
dateEnds: "date_ends",
|
|
36981
|
+
variantTitle: "variant_title"
|
|
36982
|
+
});
|
|
36983
|
+
});
|
|
36984
|
+
((Subscription$) => {
|
|
36985
|
+
Subscription$.inboundSchema = Subscription$inboundSchema;
|
|
36986
|
+
Subscription$.outboundSchema = Subscription$outboundSchema;
|
|
36987
|
+
})(Subscription$ ||= {});
|
|
36988
|
+
});
|
|
36989
|
+
|
|
36879
36990
|
// src/models/components/supportarticle.ts
|
|
36880
36991
|
var SupportArticle$inboundSchema, SupportArticle$outboundSchema, SupportArticle$;
|
|
36881
36992
|
var init_supportarticle = __esm(() => {
|
|
@@ -36915,14 +37026,326 @@ var init_supportarticle = __esm(() => {
|
|
|
36915
37026
|
})(SupportArticle$ ||= {});
|
|
36916
37027
|
});
|
|
36917
37028
|
|
|
37029
|
+
// src/models/components/vendor.ts
|
|
37030
|
+
var One$inboundSchema, One$outboundSchema, One$, VendorUser$inboundSchema, VendorUser$outboundSchema, VendorUser$, VendorType1$inboundSchema, VendorType1$outboundSchema, VendorType1$, VendorVendorType$inboundSchema, VendorVendorType$outboundSchema, VendorVendorType$, Supervisor$inboundSchema, Supervisor$outboundSchema, Supervisor$, PaymentProfile1$inboundSchema, PaymentProfile1$outboundSchema, PaymentProfile1$, PaymentProfilePaymentProfile$inboundSchema, PaymentProfilePaymentProfile$outboundSchema, PaymentProfilePaymentProfile$, PaymentProfile$inboundSchema, PaymentProfile$outboundSchema, PaymentProfile$, PaymentResponsibility$inboundSchema, PaymentResponsibility$outboundSchema, PaymentResponsibility$, Vendor$inboundSchema, Vendor$outboundSchema, Vendor$;
|
|
37031
|
+
var init_vendor = __esm(() => {
|
|
37032
|
+
init_lib();
|
|
37033
|
+
init_primitives();
|
|
37034
|
+
init_company();
|
|
37035
|
+
init_department();
|
|
37036
|
+
init_facility();
|
|
37037
|
+
init_imageset();
|
|
37038
|
+
init_subscription();
|
|
37039
|
+
One$inboundSchema = objectType({
|
|
37040
|
+
id: numberType().int().optional(),
|
|
37041
|
+
first_name: nullableType(stringType()).optional(),
|
|
37042
|
+
last_name: anyType().optional(),
|
|
37043
|
+
email: nullableType(stringType()).optional(),
|
|
37044
|
+
phone: nullableType(stringType()).optional(),
|
|
37045
|
+
user_type: nullableType(stringType()).optional(),
|
|
37046
|
+
timezone: nullableType(stringType()).optional(),
|
|
37047
|
+
qr_code: nullableType(stringType()).optional(),
|
|
37048
|
+
image_urls: nullableType(ImageSet$inboundSchema).optional()
|
|
37049
|
+
}).transform((v2) => {
|
|
37050
|
+
return remap(v2, {
|
|
37051
|
+
first_name: "firstName",
|
|
37052
|
+
last_name: "lastName",
|
|
37053
|
+
user_type: "userType",
|
|
37054
|
+
qr_code: "qrCode",
|
|
37055
|
+
image_urls: "imageUrls"
|
|
37056
|
+
});
|
|
37057
|
+
});
|
|
37058
|
+
One$outboundSchema = objectType({
|
|
37059
|
+
id: numberType().int().optional(),
|
|
37060
|
+
firstName: nullableType(stringType()).optional(),
|
|
37061
|
+
lastName: anyType().optional(),
|
|
37062
|
+
email: nullableType(stringType()).optional(),
|
|
37063
|
+
phone: nullableType(stringType()).optional(),
|
|
37064
|
+
userType: nullableType(stringType()).optional(),
|
|
37065
|
+
timezone: nullableType(stringType()).optional(),
|
|
37066
|
+
qrCode: nullableType(stringType()).optional(),
|
|
37067
|
+
imageUrls: nullableType(ImageSet$outboundSchema).optional()
|
|
37068
|
+
}).transform((v2) => {
|
|
37069
|
+
return remap(v2, {
|
|
37070
|
+
firstName: "first_name",
|
|
37071
|
+
lastName: "last_name",
|
|
37072
|
+
userType: "user_type",
|
|
37073
|
+
qrCode: "qr_code",
|
|
37074
|
+
imageUrls: "image_urls"
|
|
37075
|
+
});
|
|
37076
|
+
});
|
|
37077
|
+
((One$) => {
|
|
37078
|
+
One$.inboundSchema = One$inboundSchema;
|
|
37079
|
+
One$.outboundSchema = One$outboundSchema;
|
|
37080
|
+
})(One$ ||= {});
|
|
37081
|
+
VendorUser$inboundSchema = unionType([lazyType(() => One$inboundSchema), numberType().int()]);
|
|
37082
|
+
VendorUser$outboundSchema = unionType([lazyType(() => One$outboundSchema), numberType().int()]);
|
|
37083
|
+
((VendorUser$) => {
|
|
37084
|
+
VendorUser$.inboundSchema = VendorUser$inboundSchema;
|
|
37085
|
+
VendorUser$.outboundSchema = VendorUser$outboundSchema;
|
|
37086
|
+
})(VendorUser$ ||= {});
|
|
37087
|
+
VendorType1$inboundSchema = objectType({
|
|
37088
|
+
id: numberType().int().optional(),
|
|
37089
|
+
name: stringType().optional()
|
|
37090
|
+
});
|
|
37091
|
+
VendorType1$outboundSchema = objectType({
|
|
37092
|
+
id: numberType().int().optional(),
|
|
37093
|
+
name: stringType().optional()
|
|
37094
|
+
});
|
|
37095
|
+
((VendorType1$) => {
|
|
37096
|
+
VendorType1$.inboundSchema = VendorType1$inboundSchema;
|
|
37097
|
+
VendorType1$.outboundSchema = VendorType1$outboundSchema;
|
|
37098
|
+
})(VendorType1$ ||= {});
|
|
37099
|
+
VendorVendorType$inboundSchema = unionType([lazyType(() => VendorType1$inboundSchema), numberType().int()]);
|
|
37100
|
+
VendorVendorType$outboundSchema = unionType([lazyType(() => VendorType1$outboundSchema), numberType().int()]);
|
|
37101
|
+
((VendorVendorType$) => {
|
|
37102
|
+
VendorVendorType$.inboundSchema = VendorVendorType$inboundSchema;
|
|
37103
|
+
VendorVendorType$.outboundSchema = VendorVendorType$outboundSchema;
|
|
37104
|
+
})(VendorVendorType$ ||= {});
|
|
37105
|
+
Supervisor$inboundSchema = objectType({
|
|
37106
|
+
name: nullableType(stringType()).optional(),
|
|
37107
|
+
email: nullableType(stringType()).optional(),
|
|
37108
|
+
phone: nullableType(stringType()).optional()
|
|
37109
|
+
});
|
|
37110
|
+
Supervisor$outboundSchema = objectType({
|
|
37111
|
+
name: nullableType(stringType()).optional(),
|
|
37112
|
+
email: nullableType(stringType()).optional(),
|
|
37113
|
+
phone: nullableType(stringType()).optional()
|
|
37114
|
+
});
|
|
37115
|
+
((Supervisor$) => {
|
|
37116
|
+
Supervisor$.inboundSchema = Supervisor$inboundSchema;
|
|
37117
|
+
Supervisor$.outboundSchema = Supervisor$outboundSchema;
|
|
37118
|
+
})(Supervisor$ ||= {});
|
|
37119
|
+
PaymentProfile1$inboundSchema = objectType({
|
|
37120
|
+
id: numberType().int().optional(),
|
|
37121
|
+
is_valid: nullableType(booleanType()).optional(),
|
|
37122
|
+
card_type: nullableType(stringType()).optional(),
|
|
37123
|
+
card_last4: nullableType(stringType()).optional(),
|
|
37124
|
+
is_dummy: nullableType(booleanType()).optional(),
|
|
37125
|
+
profile_type: nullableType(stringType()).optional()
|
|
37126
|
+
}).transform((v2) => {
|
|
37127
|
+
return remap(v2, {
|
|
37128
|
+
is_valid: "isValid",
|
|
37129
|
+
card_type: "cardType",
|
|
37130
|
+
card_last4: "cardLast4",
|
|
37131
|
+
is_dummy: "isDummy",
|
|
37132
|
+
profile_type: "profileType"
|
|
37133
|
+
});
|
|
37134
|
+
});
|
|
37135
|
+
PaymentProfile1$outboundSchema = objectType({
|
|
37136
|
+
id: numberType().int().optional(),
|
|
37137
|
+
isValid: nullableType(booleanType()).optional(),
|
|
37138
|
+
cardType: nullableType(stringType()).optional(),
|
|
37139
|
+
cardLast4: nullableType(stringType()).optional(),
|
|
37140
|
+
isDummy: nullableType(booleanType()).optional(),
|
|
37141
|
+
profileType: nullableType(stringType()).optional()
|
|
37142
|
+
}).transform((v2) => {
|
|
37143
|
+
return remap(v2, {
|
|
37144
|
+
isValid: "is_valid",
|
|
37145
|
+
cardType: "card_type",
|
|
37146
|
+
cardLast4: "card_last4",
|
|
37147
|
+
isDummy: "is_dummy",
|
|
37148
|
+
profileType: "profile_type"
|
|
37149
|
+
});
|
|
37150
|
+
});
|
|
37151
|
+
((PaymentProfile1$) => {
|
|
37152
|
+
PaymentProfile1$.inboundSchema = PaymentProfile1$inboundSchema;
|
|
37153
|
+
PaymentProfile1$.outboundSchema = PaymentProfile1$outboundSchema;
|
|
37154
|
+
})(PaymentProfile1$ ||= {});
|
|
37155
|
+
PaymentProfilePaymentProfile$inboundSchema = unionType([lazyType(() => PaymentProfile1$inboundSchema), numberType().int()]);
|
|
37156
|
+
PaymentProfilePaymentProfile$outboundSchema = unionType([lazyType(() => PaymentProfile1$outboundSchema), numberType().int()]);
|
|
37157
|
+
((PaymentProfilePaymentProfile$) => {
|
|
37158
|
+
PaymentProfilePaymentProfile$.inboundSchema = PaymentProfilePaymentProfile$inboundSchema;
|
|
37159
|
+
PaymentProfilePaymentProfile$.outboundSchema = PaymentProfilePaymentProfile$outboundSchema;
|
|
37160
|
+
})(PaymentProfilePaymentProfile$ ||= {});
|
|
37161
|
+
PaymentProfile$inboundSchema = unionType([
|
|
37162
|
+
unionType([lazyType(() => PaymentProfile1$inboundSchema), numberType().int()]),
|
|
37163
|
+
numberType().int()
|
|
37164
|
+
]);
|
|
37165
|
+
PaymentProfile$outboundSchema = unionType([
|
|
37166
|
+
unionType([lazyType(() => PaymentProfile1$outboundSchema), numberType().int()]),
|
|
37167
|
+
numberType().int()
|
|
37168
|
+
]);
|
|
37169
|
+
((PaymentProfile$) => {
|
|
37170
|
+
PaymentProfile$.inboundSchema = PaymentProfile$inboundSchema;
|
|
37171
|
+
PaymentProfile$.outboundSchema = PaymentProfile$outboundSchema;
|
|
37172
|
+
})(PaymentProfile$ ||= {});
|
|
37173
|
+
PaymentResponsibility$inboundSchema = objectType({
|
|
37174
|
+
id: nullableType(numberType().int()).optional(),
|
|
37175
|
+
company_manager_id: nullableType(numberType().int()).optional(),
|
|
37176
|
+
credentialing_subscription: nullableType(booleanType()).optional(),
|
|
37177
|
+
scrubs_subscription: nullableType(booleanType()).optional(),
|
|
37178
|
+
scrub_credits: nullableType(booleanType()).optional(),
|
|
37179
|
+
hard_badge_initial: nullableType(booleanType()).optional(),
|
|
37180
|
+
hard_badge_extra: nullableType(booleanType()).optional(),
|
|
37181
|
+
other_invoices: nullableType(booleanType()).optional(),
|
|
37182
|
+
facility_id: nullableType(numberType().int()).optional(),
|
|
37183
|
+
company_id: nullableType(numberType().int()).optional(),
|
|
37184
|
+
credentialing_subscription_user_id: nullableType(numberType().int()).optional(),
|
|
37185
|
+
scrubs_subscription_user_id: nullableType(numberType().int()).optional(),
|
|
37186
|
+
scrub_credits_user_id: nullableType(numberType().int()).optional(),
|
|
37187
|
+
hard_badge_initial_user_id: nullableType(numberType().int()).optional(),
|
|
37188
|
+
hard_badge_extra_user_id: nullableType(numberType().int()).optional(),
|
|
37189
|
+
other_invoices_user_id: nullableType(numberType().int()).optional()
|
|
37190
|
+
}).transform((v2) => {
|
|
37191
|
+
return remap(v2, {
|
|
37192
|
+
company_manager_id: "companyManagerId",
|
|
37193
|
+
credentialing_subscription: "credentialingSubscription",
|
|
37194
|
+
scrubs_subscription: "scrubsSubscription",
|
|
37195
|
+
scrub_credits: "scrubCredits",
|
|
37196
|
+
hard_badge_initial: "hardBadgeInitial",
|
|
37197
|
+
hard_badge_extra: "hardBadgeExtra",
|
|
37198
|
+
other_invoices: "otherInvoices",
|
|
37199
|
+
facility_id: "facilityId",
|
|
37200
|
+
company_id: "companyId",
|
|
37201
|
+
credentialing_subscription_user_id: "credentialingSubscriptionUserId",
|
|
37202
|
+
scrubs_subscription_user_id: "scrubsSubscriptionUserId",
|
|
37203
|
+
scrub_credits_user_id: "scrubCreditsUserId",
|
|
37204
|
+
hard_badge_initial_user_id: "hardBadgeInitialUserId",
|
|
37205
|
+
hard_badge_extra_user_id: "hardBadgeExtraUserId",
|
|
37206
|
+
other_invoices_user_id: "otherInvoicesUserId"
|
|
37207
|
+
});
|
|
37208
|
+
});
|
|
37209
|
+
PaymentResponsibility$outboundSchema = objectType({
|
|
37210
|
+
id: nullableType(numberType().int()).optional(),
|
|
37211
|
+
companyManagerId: nullableType(numberType().int()).optional(),
|
|
37212
|
+
credentialingSubscription: nullableType(booleanType()).optional(),
|
|
37213
|
+
scrubsSubscription: nullableType(booleanType()).optional(),
|
|
37214
|
+
scrubCredits: nullableType(booleanType()).optional(),
|
|
37215
|
+
hardBadgeInitial: nullableType(booleanType()).optional(),
|
|
37216
|
+
hardBadgeExtra: nullableType(booleanType()).optional(),
|
|
37217
|
+
otherInvoices: nullableType(booleanType()).optional(),
|
|
37218
|
+
facilityId: nullableType(numberType().int()).optional(),
|
|
37219
|
+
companyId: nullableType(numberType().int()).optional(),
|
|
37220
|
+
credentialingSubscriptionUserId: nullableType(numberType().int()).optional(),
|
|
37221
|
+
scrubsSubscriptionUserId: nullableType(numberType().int()).optional(),
|
|
37222
|
+
scrubCreditsUserId: nullableType(numberType().int()).optional(),
|
|
37223
|
+
hardBadgeInitialUserId: nullableType(numberType().int()).optional(),
|
|
37224
|
+
hardBadgeExtraUserId: nullableType(numberType().int()).optional(),
|
|
37225
|
+
otherInvoicesUserId: nullableType(numberType().int()).optional()
|
|
37226
|
+
}).transform((v2) => {
|
|
37227
|
+
return remap(v2, {
|
|
37228
|
+
companyManagerId: "company_manager_id",
|
|
37229
|
+
credentialingSubscription: "credentialing_subscription",
|
|
37230
|
+
scrubsSubscription: "scrubs_subscription",
|
|
37231
|
+
scrubCredits: "scrub_credits",
|
|
37232
|
+
hardBadgeInitial: "hard_badge_initial",
|
|
37233
|
+
hardBadgeExtra: "hard_badge_extra",
|
|
37234
|
+
otherInvoices: "other_invoices",
|
|
37235
|
+
facilityId: "facility_id",
|
|
37236
|
+
companyId: "company_id",
|
|
37237
|
+
credentialingSubscriptionUserId: "credentialing_subscription_user_id",
|
|
37238
|
+
scrubsSubscriptionUserId: "scrubs_subscription_user_id",
|
|
37239
|
+
scrubCreditsUserId: "scrub_credits_user_id",
|
|
37240
|
+
hardBadgeInitialUserId: "hard_badge_initial_user_id",
|
|
37241
|
+
hardBadgeExtraUserId: "hard_badge_extra_user_id",
|
|
37242
|
+
otherInvoicesUserId: "other_invoices_user_id"
|
|
37243
|
+
});
|
|
37244
|
+
});
|
|
37245
|
+
((PaymentResponsibility$) => {
|
|
37246
|
+
PaymentResponsibility$.inboundSchema = PaymentResponsibility$inboundSchema;
|
|
37247
|
+
PaymentResponsibility$.outboundSchema = PaymentResponsibility$outboundSchema;
|
|
37248
|
+
})(PaymentResponsibility$ ||= {});
|
|
37249
|
+
Vendor$inboundSchema = objectType({
|
|
37250
|
+
id: numberType().int().optional(),
|
|
37251
|
+
email_recepient: nullableType(stringType()).optional(),
|
|
37252
|
+
send_weekly_summary_email: nullableType(booleanType()).optional(),
|
|
37253
|
+
title: nullableType(stringType()).optional(),
|
|
37254
|
+
user: unionType([lazyType(() => One$inboundSchema), numberType().int()]).optional(),
|
|
37255
|
+
vendor_type: nullableType(unionType([lazyType(() => VendorType1$inboundSchema), numberType().int()])).optional(),
|
|
37256
|
+
supervisor: lazyType(() => Supervisor$inboundSchema).optional(),
|
|
37257
|
+
qr_code: nullableType(stringType()).optional(),
|
|
37258
|
+
head_shot: nullableType(ImageSet$inboundSchema).optional(),
|
|
37259
|
+
drivers_license: nullableType(ImageSet$inboundSchema).optional(),
|
|
37260
|
+
image_urls: nullableType(ImageSet$inboundSchema).optional(),
|
|
37261
|
+
payment_profile: nullableType(unionType([
|
|
37262
|
+
unionType([
|
|
37263
|
+
lazyType(() => PaymentProfile1$inboundSchema),
|
|
37264
|
+
numberType().int()
|
|
37265
|
+
]),
|
|
37266
|
+
numberType().int()
|
|
37267
|
+
])).optional(),
|
|
37268
|
+
primary_facility: nullableType(Facility$inboundSchema).optional(),
|
|
37269
|
+
primary_department: nullableType(Department$inboundSchema).optional(),
|
|
37270
|
+
company: nullableType(Company$inboundSchema).optional(),
|
|
37271
|
+
credentialing_subscription: nullableType(Subscription$inboundSchema).optional(),
|
|
37272
|
+
scrubs_subscription: nullableType(Subscription$inboundSchema).optional(),
|
|
37273
|
+
payment_responsibility: nullableType(lazyType(() => PaymentResponsibility$inboundSchema)).optional(),
|
|
37274
|
+
background_check_date_expires: nullableType(stringType()).optional()
|
|
37275
|
+
}).transform((v2) => {
|
|
37276
|
+
return remap(v2, {
|
|
37277
|
+
email_recepient: "emailRecepient",
|
|
37278
|
+
send_weekly_summary_email: "sendWeeklySummaryEmail",
|
|
37279
|
+
vendor_type: "vendorType",
|
|
37280
|
+
qr_code: "qrCode",
|
|
37281
|
+
head_shot: "headShot",
|
|
37282
|
+
drivers_license: "driversLicense",
|
|
37283
|
+
image_urls: "imageUrls",
|
|
37284
|
+
payment_profile: "paymentProfile",
|
|
37285
|
+
primary_facility: "primaryFacility",
|
|
37286
|
+
primary_department: "primaryDepartment",
|
|
37287
|
+
credentialing_subscription: "credentialingSubscription",
|
|
37288
|
+
scrubs_subscription: "scrubsSubscription",
|
|
37289
|
+
payment_responsibility: "paymentResponsibility",
|
|
37290
|
+
background_check_date_expires: "backgroundCheckDateExpires"
|
|
37291
|
+
});
|
|
37292
|
+
});
|
|
37293
|
+
Vendor$outboundSchema = objectType({
|
|
37294
|
+
id: numberType().int().optional(),
|
|
37295
|
+
emailRecepient: nullableType(stringType()).optional(),
|
|
37296
|
+
sendWeeklySummaryEmail: nullableType(booleanType()).optional(),
|
|
37297
|
+
title: nullableType(stringType()).optional(),
|
|
37298
|
+
user: unionType([lazyType(() => One$outboundSchema), numberType().int()]).optional(),
|
|
37299
|
+
vendorType: nullableType(unionType([lazyType(() => VendorType1$outboundSchema), numberType().int()])).optional(),
|
|
37300
|
+
supervisor: lazyType(() => Supervisor$outboundSchema).optional(),
|
|
37301
|
+
qrCode: nullableType(stringType()).optional(),
|
|
37302
|
+
headShot: nullableType(ImageSet$outboundSchema).optional(),
|
|
37303
|
+
driversLicense: nullableType(ImageSet$outboundSchema).optional(),
|
|
37304
|
+
imageUrls: nullableType(ImageSet$outboundSchema).optional(),
|
|
37305
|
+
paymentProfile: nullableType(unionType([
|
|
37306
|
+
unionType([lazyType(() => PaymentProfile1$outboundSchema), numberType().int()]),
|
|
37307
|
+
numberType().int()
|
|
37308
|
+
])).optional(),
|
|
37309
|
+
primaryFacility: nullableType(Facility$outboundSchema).optional(),
|
|
37310
|
+
primaryDepartment: nullableType(Department$outboundSchema).optional(),
|
|
37311
|
+
company: nullableType(Company$outboundSchema).optional(),
|
|
37312
|
+
credentialingSubscription: nullableType(Subscription$outboundSchema).optional(),
|
|
37313
|
+
scrubsSubscription: nullableType(Subscription$outboundSchema).optional(),
|
|
37314
|
+
paymentResponsibility: nullableType(lazyType(() => PaymentResponsibility$outboundSchema)).optional(),
|
|
37315
|
+
backgroundCheckDateExpires: nullableType(stringType()).optional()
|
|
37316
|
+
}).transform((v2) => {
|
|
37317
|
+
return remap(v2, {
|
|
37318
|
+
emailRecepient: "email_recepient",
|
|
37319
|
+
sendWeeklySummaryEmail: "send_weekly_summary_email",
|
|
37320
|
+
vendorType: "vendor_type",
|
|
37321
|
+
qrCode: "qr_code",
|
|
37322
|
+
headShot: "head_shot",
|
|
37323
|
+
driversLicense: "drivers_license",
|
|
37324
|
+
imageUrls: "image_urls",
|
|
37325
|
+
paymentProfile: "payment_profile",
|
|
37326
|
+
primaryFacility: "primary_facility",
|
|
37327
|
+
primaryDepartment: "primary_department",
|
|
37328
|
+
credentialingSubscription: "credentialing_subscription",
|
|
37329
|
+
scrubsSubscription: "scrubs_subscription",
|
|
37330
|
+
paymentResponsibility: "payment_responsibility",
|
|
37331
|
+
backgroundCheckDateExpires: "background_check_date_expires"
|
|
37332
|
+
});
|
|
37333
|
+
});
|
|
37334
|
+
((Vendor$) => {
|
|
37335
|
+
Vendor$.inboundSchema = Vendor$inboundSchema;
|
|
37336
|
+
Vendor$.outboundSchema = Vendor$outboundSchema;
|
|
37337
|
+
})(Vendor$ ||= {});
|
|
37338
|
+
});
|
|
37339
|
+
|
|
36918
37340
|
// src/models/components/user.ts
|
|
36919
|
-
var UserType, TokenType, UserType$inboundSchema, UserType$outboundSchema, UserType$, UserUser$inboundSchema, UserUser$outboundSchema, UserUser$, TokenType$inboundSchema, TokenType$outboundSchema, TokenType$, UserToken$inboundSchema, UserToken$outboundSchema, UserToken$,
|
|
37341
|
+
var UserType, TokenType, UserType$inboundSchema, UserType$outboundSchema, UserType$, UserUser$inboundSchema, UserUser$outboundSchema, UserUser$, TokenType$inboundSchema, TokenType$outboundSchema, TokenType$, UserToken$inboundSchema, UserToken$outboundSchema, UserToken$, InventoryManager$inboundSchema, InventoryManager$outboundSchema, InventoryManager$, User$inboundSchema, User$outboundSchema, User$;
|
|
36920
37342
|
var init_user = __esm(() => {
|
|
36921
37343
|
init_lib();
|
|
36922
37344
|
init_primitives();
|
|
36923
37345
|
init_company();
|
|
36924
37346
|
init_contact();
|
|
36925
37347
|
init_imageset();
|
|
37348
|
+
init_vendor();
|
|
36926
37349
|
UserType = {
|
|
36927
37350
|
Api: "API",
|
|
36928
37351
|
Admin: "Admin",
|
|
@@ -36952,7 +37375,7 @@ var init_user = __esm(() => {
|
|
|
36952
37375
|
phone: nullableType(stringType()).optional(),
|
|
36953
37376
|
user_type: UserType$inboundSchema,
|
|
36954
37377
|
timezone: nullableType(stringType()).optional(),
|
|
36955
|
-
image_urls: ImageSet$inboundSchema.optional()
|
|
37378
|
+
image_urls: nullableType(ImageSet$inboundSchema).optional()
|
|
36956
37379
|
}).transform((v2) => {
|
|
36957
37380
|
return remap(v2, {
|
|
36958
37381
|
first_name: "firstName",
|
|
@@ -36969,7 +37392,7 @@ var init_user = __esm(() => {
|
|
|
36969
37392
|
phone: nullableType(stringType()).optional(),
|
|
36970
37393
|
userType: UserType$outboundSchema,
|
|
36971
37394
|
timezone: nullableType(stringType()).optional(),
|
|
36972
|
-
imageUrls: ImageSet$outboundSchema.optional()
|
|
37395
|
+
imageUrls: nullableType(ImageSet$outboundSchema).optional()
|
|
36973
37396
|
}).transform((v2) => {
|
|
36974
37397
|
return remap(v2, {
|
|
36975
37398
|
firstName: "first_name",
|
|
@@ -37008,12 +37431,6 @@ var init_user = __esm(() => {
|
|
|
37008
37431
|
UserToken$.inboundSchema = UserToken$inboundSchema;
|
|
37009
37432
|
UserToken$.outboundSchema = UserToken$outboundSchema;
|
|
37010
37433
|
})(UserToken$ ||= {});
|
|
37011
|
-
Vendor$inboundSchema = objectType({});
|
|
37012
|
-
Vendor$outboundSchema = objectType({});
|
|
37013
|
-
((Vendor$) => {
|
|
37014
|
-
Vendor$.inboundSchema = Vendor$inboundSchema;
|
|
37015
|
-
Vendor$.outboundSchema = Vendor$outboundSchema;
|
|
37016
|
-
})(Vendor$ ||= {});
|
|
37017
37434
|
InventoryManager$inboundSchema = objectType({});
|
|
37018
37435
|
InventoryManager$outboundSchema = objectType({});
|
|
37019
37436
|
((InventoryManager$) => {
|
|
@@ -37025,10 +37442,10 @@ var init_user = __esm(() => {
|
|
|
37025
37442
|
success: booleanType(),
|
|
37026
37443
|
user: lazyType(() => UserUser$inboundSchema),
|
|
37027
37444
|
user_token: lazyType(() => UserToken$inboundSchema),
|
|
37028
|
-
vendor:
|
|
37445
|
+
vendor: Vendor$inboundSchema.optional(),
|
|
37029
37446
|
inventory_manager: lazyType(() => InventoryManager$inboundSchema).optional(),
|
|
37030
37447
|
contact: Contact$inboundSchema.optional(),
|
|
37031
|
-
company: Company$inboundSchema.optional()
|
|
37448
|
+
company: nullableType(Company$inboundSchema).optional()
|
|
37032
37449
|
}).transform((v2) => {
|
|
37033
37450
|
return remap(v2, {
|
|
37034
37451
|
is_gatekeeper: "isGatekeeper",
|
|
@@ -37041,10 +37458,10 @@ var init_user = __esm(() => {
|
|
|
37041
37458
|
success: booleanType(),
|
|
37042
37459
|
user: lazyType(() => UserUser$outboundSchema),
|
|
37043
37460
|
userToken: lazyType(() => UserToken$outboundSchema),
|
|
37044
|
-
vendor:
|
|
37461
|
+
vendor: Vendor$outboundSchema.optional(),
|
|
37045
37462
|
inventoryManager: lazyType(() => InventoryManager$outboundSchema).optional(),
|
|
37046
37463
|
contact: Contact$outboundSchema.optional(),
|
|
37047
|
-
company: Company$outboundSchema.optional()
|
|
37464
|
+
company: nullableType(Company$outboundSchema).optional()
|
|
37048
37465
|
}).transform((v2) => {
|
|
37049
37466
|
return remap(v2, {
|
|
37050
37467
|
isGatekeeper: "is_gatekeeper",
|
|
@@ -37205,12 +37622,165 @@ var init_vendorrequiredcredential = __esm(() => {
|
|
|
37205
37622
|
})(VendorRequiredCredential$ ||= {});
|
|
37206
37623
|
});
|
|
37207
37624
|
|
|
37625
|
+
// src/models/components/vendorscrubdetails.ts
|
|
37626
|
+
var VendorScrubDetails$inboundSchema, VendorScrubDetails$outboundSchema, VendorScrubDetails$;
|
|
37627
|
+
var init_vendorscrubdetails = __esm(() => {
|
|
37628
|
+
init_lib();
|
|
37629
|
+
init_primitives();
|
|
37630
|
+
VendorScrubDetails$inboundSchema = objectType({
|
|
37631
|
+
scrub_top_size: nullableType(stringType()).optional(),
|
|
37632
|
+
scrub_bottom_size: nullableType(stringType()).optional(),
|
|
37633
|
+
scrub_color: nullableType(stringType()).optional(),
|
|
37634
|
+
total_credits: nullableType(numberType().int()).optional(),
|
|
37635
|
+
total_debits: nullableType(numberType().int()).optional(),
|
|
37636
|
+
scrub_credits: nullableType(numberType().int()).optional()
|
|
37637
|
+
}).transform((v2) => {
|
|
37638
|
+
return remap(v2, {
|
|
37639
|
+
scrub_top_size: "scrubTopSize",
|
|
37640
|
+
scrub_bottom_size: "scrubBottomSize",
|
|
37641
|
+
scrub_color: "scrubColor",
|
|
37642
|
+
total_credits: "totalCredits",
|
|
37643
|
+
total_debits: "totalDebits",
|
|
37644
|
+
scrub_credits: "scrubCredits"
|
|
37645
|
+
});
|
|
37646
|
+
});
|
|
37647
|
+
VendorScrubDetails$outboundSchema = objectType({
|
|
37648
|
+
scrubTopSize: nullableType(stringType()).optional(),
|
|
37649
|
+
scrubBottomSize: nullableType(stringType()).optional(),
|
|
37650
|
+
scrubColor: nullableType(stringType()).optional(),
|
|
37651
|
+
totalCredits: nullableType(numberType().int()).optional(),
|
|
37652
|
+
totalDebits: nullableType(numberType().int()).optional(),
|
|
37653
|
+
scrubCredits: nullableType(numberType().int()).optional()
|
|
37654
|
+
}).transform((v2) => {
|
|
37655
|
+
return remap(v2, {
|
|
37656
|
+
scrubTopSize: "scrub_top_size",
|
|
37657
|
+
scrubBottomSize: "scrub_bottom_size",
|
|
37658
|
+
scrubColor: "scrub_color",
|
|
37659
|
+
totalCredits: "total_credits",
|
|
37660
|
+
totalDebits: "total_debits",
|
|
37661
|
+
scrubCredits: "scrub_credits"
|
|
37662
|
+
});
|
|
37663
|
+
});
|
|
37664
|
+
((VendorScrubDetails$) => {
|
|
37665
|
+
VendorScrubDetails$.inboundSchema = VendorScrubDetails$inboundSchema;
|
|
37666
|
+
VendorScrubDetails$.outboundSchema = VendorScrubDetails$outboundSchema;
|
|
37667
|
+
})(VendorScrubDetails$ ||= {});
|
|
37668
|
+
});
|
|
37669
|
+
|
|
37670
|
+
// src/models/components/vendorscrubpurchase.ts
|
|
37671
|
+
var VendorScrubPurchase$inboundSchema, VendorScrubPurchase$outboundSchema, VendorScrubPurchase$;
|
|
37672
|
+
var init_vendorscrubpurchase = __esm(() => {
|
|
37673
|
+
init_lib();
|
|
37674
|
+
init_primitives();
|
|
37675
|
+
VendorScrubPurchase$inboundSchema = objectType({
|
|
37676
|
+
id: numberType().int().optional(),
|
|
37677
|
+
purchase_date: nullableType(stringType()).optional(),
|
|
37678
|
+
quantity: nullableType(numberType().int()).optional(),
|
|
37679
|
+
total: nullableType(numberType().int()).optional()
|
|
37680
|
+
}).transform((v2) => {
|
|
37681
|
+
return remap(v2, {
|
|
37682
|
+
purchase_date: "purchaseDate"
|
|
37683
|
+
});
|
|
37684
|
+
});
|
|
37685
|
+
VendorScrubPurchase$outboundSchema = objectType({
|
|
37686
|
+
id: numberType().int().optional(),
|
|
37687
|
+
purchaseDate: nullableType(stringType()).optional(),
|
|
37688
|
+
quantity: nullableType(numberType().int()).optional(),
|
|
37689
|
+
total: nullableType(numberType().int()).optional()
|
|
37690
|
+
}).transform((v2) => {
|
|
37691
|
+
return remap(v2, {
|
|
37692
|
+
purchaseDate: "purchase_date"
|
|
37693
|
+
});
|
|
37694
|
+
});
|
|
37695
|
+
((VendorScrubPurchase$) => {
|
|
37696
|
+
VendorScrubPurchase$.inboundSchema = VendorScrubPurchase$inboundSchema;
|
|
37697
|
+
VendorScrubPurchase$.outboundSchema = VendorScrubPurchase$outboundSchema;
|
|
37698
|
+
})(VendorScrubPurchase$ ||= {});
|
|
37699
|
+
});
|
|
37700
|
+
|
|
37701
|
+
// src/models/components/webhookendpoint.ts
|
|
37702
|
+
var SignatureAlgo, SignatureAlgo$inboundSchema, SignatureAlgo$outboundSchema, SignatureAlgo$, Consumers$inboundSchema, Consumers$outboundSchema, Consumers$, WebhookEndpoint$inboundSchema, WebhookEndpoint$outboundSchema, WebhookEndpoint$;
|
|
37703
|
+
var init_webhookendpoint = __esm(() => {
|
|
37704
|
+
init_lib();
|
|
37705
|
+
init_primitives();
|
|
37706
|
+
SignatureAlgo = {
|
|
37707
|
+
SigHmacSha256: "sig_hmac_sha256"
|
|
37708
|
+
};
|
|
37709
|
+
SignatureAlgo$inboundSchema = nativeEnumType(SignatureAlgo);
|
|
37710
|
+
SignatureAlgo$outboundSchema = SignatureAlgo$inboundSchema;
|
|
37711
|
+
((SignatureAlgo$) => {
|
|
37712
|
+
SignatureAlgo$.inboundSchema = SignatureAlgo$inboundSchema;
|
|
37713
|
+
SignatureAlgo$.outboundSchema = SignatureAlgo$outboundSchema;
|
|
37714
|
+
})(SignatureAlgo$ ||= {});
|
|
37715
|
+
Consumers$inboundSchema = objectType({
|
|
37716
|
+
system_id: nullableType(numberType().int()).optional(),
|
|
37717
|
+
facility_id: nullableType(numberType().int()).optional(),
|
|
37718
|
+
company_id: nullableType(numberType().int()).optional(),
|
|
37719
|
+
user_id: nullableType(numberType().int()).optional()
|
|
37720
|
+
}).transform((v2) => {
|
|
37721
|
+
return remap(v2, {
|
|
37722
|
+
system_id: "systemId",
|
|
37723
|
+
facility_id: "facilityId",
|
|
37724
|
+
company_id: "companyId",
|
|
37725
|
+
user_id: "userId"
|
|
37726
|
+
});
|
|
37727
|
+
});
|
|
37728
|
+
Consumers$outboundSchema = objectType({
|
|
37729
|
+
systemId: nullableType(numberType().int()).optional(),
|
|
37730
|
+
facilityId: nullableType(numberType().int()).optional(),
|
|
37731
|
+
companyId: nullableType(numberType().int()).optional(),
|
|
37732
|
+
userId: nullableType(numberType().int()).optional()
|
|
37733
|
+
}).transform((v2) => {
|
|
37734
|
+
return remap(v2, {
|
|
37735
|
+
systemId: "system_id",
|
|
37736
|
+
facilityId: "facility_id",
|
|
37737
|
+
companyId: "company_id",
|
|
37738
|
+
userId: "user_id"
|
|
37739
|
+
});
|
|
37740
|
+
});
|
|
37741
|
+
((Consumers$) => {
|
|
37742
|
+
Consumers$.inboundSchema = Consumers$inboundSchema;
|
|
37743
|
+
Consumers$.outboundSchema = Consumers$outboundSchema;
|
|
37744
|
+
})(Consumers$ ||= {});
|
|
37745
|
+
WebhookEndpoint$inboundSchema = objectType({
|
|
37746
|
+
id: numberType().int(),
|
|
37747
|
+
webhook_url: stringType(),
|
|
37748
|
+
signature_algo: SignatureAlgo$inboundSchema.default("sig_hmac_sha256"),
|
|
37749
|
+
subscriptions: nullableType(arrayType(stringType())),
|
|
37750
|
+
consumers: lazyType(() => Consumers$inboundSchema),
|
|
37751
|
+
secrets: nullableType(arrayType(stringType())).optional()
|
|
37752
|
+
}).transform((v2) => {
|
|
37753
|
+
return remap(v2, {
|
|
37754
|
+
webhook_url: "webhookUrl",
|
|
37755
|
+
signature_algo: "signatureAlgo"
|
|
37756
|
+
});
|
|
37757
|
+
});
|
|
37758
|
+
WebhookEndpoint$outboundSchema = objectType({
|
|
37759
|
+
id: numberType().int(),
|
|
37760
|
+
webhookUrl: stringType(),
|
|
37761
|
+
signatureAlgo: SignatureAlgo$outboundSchema.default("sig_hmac_sha256"),
|
|
37762
|
+
subscriptions: nullableType(arrayType(stringType())),
|
|
37763
|
+
consumers: lazyType(() => Consumers$outboundSchema),
|
|
37764
|
+
secrets: nullableType(arrayType(stringType())).optional()
|
|
37765
|
+
}).transform((v2) => {
|
|
37766
|
+
return remap(v2, {
|
|
37767
|
+
webhookUrl: "webhook_url",
|
|
37768
|
+
signatureAlgo: "signature_algo"
|
|
37769
|
+
});
|
|
37770
|
+
});
|
|
37771
|
+
((WebhookEndpoint$) => {
|
|
37772
|
+
WebhookEndpoint$.inboundSchema = WebhookEndpoint$inboundSchema;
|
|
37773
|
+
WebhookEndpoint$.outboundSchema = WebhookEndpoint$outboundSchema;
|
|
37774
|
+
})(WebhookEndpoint$ ||= {});
|
|
37775
|
+
});
|
|
37776
|
+
|
|
37208
37777
|
// src/models/components/index.ts
|
|
37209
37778
|
var init_components = __esm(() => {
|
|
37210
37779
|
init_activestatus();
|
|
37211
37780
|
init_company();
|
|
37212
37781
|
init_contact();
|
|
37213
37782
|
init_credentialstatus();
|
|
37783
|
+
init_department();
|
|
37214
37784
|
init_departmentsummary();
|
|
37215
37785
|
init_desc();
|
|
37216
37786
|
init_expand();
|
|
@@ -37226,15 +37796,21 @@ var init_components = __esm(() => {
|
|
|
37226
37796
|
init_pager();
|
|
37227
37797
|
init_passwordrequiredresponse();
|
|
37228
37798
|
init_samlloginrequiredresponse();
|
|
37799
|
+
init_scantype();
|
|
37229
37800
|
init_security2();
|
|
37801
|
+
init_subscription();
|
|
37230
37802
|
init_supportarticle();
|
|
37231
37803
|
init_systemsummary();
|
|
37232
37804
|
init_user();
|
|
37805
|
+
init_vendor();
|
|
37233
37806
|
init_vendorcredentialslim();
|
|
37234
37807
|
init_vendorfacilitystatusview();
|
|
37235
37808
|
init_vendorjobtitle();
|
|
37236
37809
|
init_vendorrequiredcredential();
|
|
37810
|
+
init_vendorscrubdetails();
|
|
37811
|
+
init_vendorscrubpurchase();
|
|
37237
37812
|
init_vendortype();
|
|
37813
|
+
init_webhookendpoint();
|
|
37238
37814
|
});
|
|
37239
37815
|
|
|
37240
37816
|
// src/models/errors/apierrorresponse.ts
|
|
@@ -37451,61 +38027,149 @@ var init_getvendorinvoicedetails = __esm(() => {
|
|
|
37451
38027
|
})(GetVendorInvoiceDetailsRequest$ ||= {});
|
|
37452
38028
|
});
|
|
37453
38029
|
|
|
37454
|
-
// src/models/operations/
|
|
37455
|
-
var
|
|
37456
|
-
var
|
|
38030
|
+
// src/models/operations/getvendorsdetails.ts
|
|
38031
|
+
var GetVendorsDetailsRequest$inboundSchema, GetVendorsDetailsRequest$outboundSchema, GetVendorsDetailsRequest$;
|
|
38032
|
+
var init_getvendorsdetails = __esm(() => {
|
|
37457
38033
|
init_lib();
|
|
37458
38034
|
init_primitives();
|
|
37459
38035
|
init_components();
|
|
37460
|
-
|
|
37461
|
-
|
|
37462
|
-
|
|
37463
|
-
page: numberType().int().optional(),
|
|
37464
|
-
items_per_page: numberType().int().optional(),
|
|
37465
|
-
expand: arrayType(Expand$inboundSchema).optional(),
|
|
37466
|
-
system_id: numberType().int().optional(),
|
|
37467
|
-
name_like: stringType().optional(),
|
|
37468
|
-
state_like: stringType().optional(),
|
|
37469
|
-
active_status: ActiveStatus$inboundSchema.default("Active")
|
|
38036
|
+
GetVendorsDetailsRequest$inboundSchema = objectType({
|
|
38037
|
+
vendor_id_or_me: stringType(),
|
|
38038
|
+
expand: arrayType(Expand$inboundSchema).optional()
|
|
37470
38039
|
}).transform((v2) => {
|
|
37471
38040
|
return remap(v2, {
|
|
37472
|
-
|
|
37473
|
-
system_id: "systemId",
|
|
37474
|
-
name_like: "nameLike",
|
|
37475
|
-
state_like: "stateLike",
|
|
37476
|
-
active_status: "activeStatus"
|
|
38041
|
+
vendor_id_or_me: "vendorIdOrMe"
|
|
37477
38042
|
});
|
|
37478
38043
|
});
|
|
37479
|
-
|
|
37480
|
-
|
|
37481
|
-
|
|
37482
|
-
page: numberType().int().optional(),
|
|
37483
|
-
itemsPerPage: numberType().int().optional(),
|
|
37484
|
-
expand: arrayType(Expand$outboundSchema).optional(),
|
|
37485
|
-
systemId: numberType().int().optional(),
|
|
37486
|
-
nameLike: stringType().optional(),
|
|
37487
|
-
stateLike: stringType().optional(),
|
|
37488
|
-
activeStatus: ActiveStatus$outboundSchema.default("Active")
|
|
38044
|
+
GetVendorsDetailsRequest$outboundSchema = objectType({
|
|
38045
|
+
vendorIdOrMe: stringType(),
|
|
38046
|
+
expand: arrayType(Expand$outboundSchema).optional()
|
|
37489
38047
|
}).transform((v2) => {
|
|
37490
38048
|
return remap(v2, {
|
|
37491
|
-
|
|
37492
|
-
systemId: "system_id",
|
|
37493
|
-
nameLike: "name_like",
|
|
37494
|
-
stateLike: "state_like",
|
|
37495
|
-
activeStatus: "active_status"
|
|
38049
|
+
vendorIdOrMe: "vendor_id_or_me"
|
|
37496
38050
|
});
|
|
37497
38051
|
});
|
|
37498
|
-
((
|
|
37499
|
-
|
|
37500
|
-
|
|
37501
|
-
})(
|
|
37502
|
-
|
|
37503
|
-
|
|
37504
|
-
|
|
38052
|
+
((GetVendorsDetailsRequest$) => {
|
|
38053
|
+
GetVendorsDetailsRequest$.inboundSchema = GetVendorsDetailsRequest$inboundSchema;
|
|
38054
|
+
GetVendorsDetailsRequest$.outboundSchema = GetVendorsDetailsRequest$outboundSchema;
|
|
38055
|
+
})(GetVendorsDetailsRequest$ ||= {});
|
|
38056
|
+
});
|
|
38057
|
+
|
|
38058
|
+
// src/models/operations/getwebhookendpoint.ts
|
|
38059
|
+
var GetWebhookEndpointRequest$inboundSchema, GetWebhookEndpointRequest$outboundSchema, GetWebhookEndpointRequest$;
|
|
38060
|
+
var init_getwebhookendpoint = __esm(() => {
|
|
38061
|
+
init_lib();
|
|
38062
|
+
GetWebhookEndpointRequest$inboundSchema = objectType({
|
|
38063
|
+
id: numberType().int()
|
|
37505
38064
|
});
|
|
37506
|
-
|
|
38065
|
+
GetWebhookEndpointRequest$outboundSchema = objectType({
|
|
38066
|
+
id: numberType().int()
|
|
38067
|
+
});
|
|
38068
|
+
((GetWebhookEndpointRequest$) => {
|
|
38069
|
+
GetWebhookEndpointRequest$.inboundSchema = GetWebhookEndpointRequest$inboundSchema;
|
|
38070
|
+
GetWebhookEndpointRequest$.outboundSchema = GetWebhookEndpointRequest$outboundSchema;
|
|
38071
|
+
})(GetWebhookEndpointRequest$ ||= {});
|
|
38072
|
+
});
|
|
38073
|
+
|
|
38074
|
+
// src/models/operations/listallwebhookendpoints.ts
|
|
38075
|
+
var ListAllWebhookEndpointsRequest$inboundSchema, ListAllWebhookEndpointsRequest$outboundSchema, ListAllWebhookEndpointsRequest$, ListAllWebhookEndpointsResponseBody$inboundSchema, ListAllWebhookEndpointsResponseBody$outboundSchema, ListAllWebhookEndpointsResponseBody$;
|
|
38076
|
+
var init_listallwebhookendpoints = __esm(() => {
|
|
38077
|
+
init_lib();
|
|
38078
|
+
init_primitives();
|
|
38079
|
+
init_components();
|
|
38080
|
+
ListAllWebhookEndpointsRequest$inboundSchema = objectType({
|
|
38081
|
+
page: numberType().int().optional(),
|
|
38082
|
+
items_per_page: numberType().int().optional(),
|
|
38083
|
+
desc: Desc$inboundSchema.optional(),
|
|
38084
|
+
sort: nullableType(stringType()).optional()
|
|
38085
|
+
}).transform((v2) => {
|
|
38086
|
+
return remap(v2, {
|
|
38087
|
+
items_per_page: "itemsPerPage"
|
|
38088
|
+
});
|
|
38089
|
+
});
|
|
38090
|
+
ListAllWebhookEndpointsRequest$outboundSchema = objectType({
|
|
38091
|
+
page: numberType().int().optional(),
|
|
38092
|
+
itemsPerPage: numberType().int().optional(),
|
|
38093
|
+
desc: Desc$outboundSchema.optional(),
|
|
38094
|
+
sort: nullableType(stringType()).optional()
|
|
38095
|
+
}).transform((v2) => {
|
|
38096
|
+
return remap(v2, {
|
|
38097
|
+
itemsPerPage: "items_per_page"
|
|
38098
|
+
});
|
|
38099
|
+
});
|
|
38100
|
+
((ListAllWebhookEndpointsRequest$) => {
|
|
38101
|
+
ListAllWebhookEndpointsRequest$.inboundSchema = ListAllWebhookEndpointsRequest$inboundSchema;
|
|
38102
|
+
ListAllWebhookEndpointsRequest$.outboundSchema = ListAllWebhookEndpointsRequest$outboundSchema;
|
|
38103
|
+
})(ListAllWebhookEndpointsRequest$ ||= {});
|
|
38104
|
+
ListAllWebhookEndpointsResponseBody$inboundSchema = objectType({
|
|
38105
|
+
pager: Pager$inboundSchema,
|
|
38106
|
+
items: arrayType(WebhookEndpoint$inboundSchema)
|
|
38107
|
+
});
|
|
38108
|
+
ListAllWebhookEndpointsResponseBody$outboundSchema = objectType({
|
|
38109
|
+
pager: Pager$outboundSchema,
|
|
38110
|
+
items: arrayType(WebhookEndpoint$outboundSchema)
|
|
38111
|
+
});
|
|
38112
|
+
((ListAllWebhookEndpointsResponseBody$) => {
|
|
38113
|
+
ListAllWebhookEndpointsResponseBody$.inboundSchema = ListAllWebhookEndpointsResponseBody$inboundSchema;
|
|
38114
|
+
ListAllWebhookEndpointsResponseBody$.outboundSchema = ListAllWebhookEndpointsResponseBody$outboundSchema;
|
|
38115
|
+
})(ListAllWebhookEndpointsResponseBody$ ||= {});
|
|
38116
|
+
});
|
|
38117
|
+
|
|
38118
|
+
// src/models/operations/listorsearchfacilities.ts
|
|
38119
|
+
var ListOrSearchFacilitiesRequest$inboundSchema, ListOrSearchFacilitiesRequest$outboundSchema, ListOrSearchFacilitiesRequest$, ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema, ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema, ListOrSearchFacilitiesListOrSearchFacilitiesOk$, ListOrSearchFacilitiesResponse$inboundSchema, ListOrSearchFacilitiesResponse$outboundSchema, ListOrSearchFacilitiesResponse$;
|
|
38120
|
+
var init_listorsearchfacilities = __esm(() => {
|
|
38121
|
+
init_lib();
|
|
38122
|
+
init_primitives();
|
|
38123
|
+
init_components();
|
|
38124
|
+
ListOrSearchFacilitiesRequest$inboundSchema = objectType({
|
|
38125
|
+
sort: nullableType(stringType()).optional(),
|
|
38126
|
+
desc: Desc$inboundSchema.optional(),
|
|
38127
|
+
page: numberType().int().optional(),
|
|
38128
|
+
items_per_page: numberType().int().optional(),
|
|
38129
|
+
expand: arrayType(Expand$inboundSchema).optional(),
|
|
38130
|
+
system_id: numberType().int().optional(),
|
|
38131
|
+
name_like: stringType().optional(),
|
|
38132
|
+
state_like: stringType().optional(),
|
|
38133
|
+
active_status: ActiveStatus$inboundSchema.default("Active")
|
|
38134
|
+
}).transform((v2) => {
|
|
38135
|
+
return remap(v2, {
|
|
38136
|
+
items_per_page: "itemsPerPage",
|
|
38137
|
+
system_id: "systemId",
|
|
38138
|
+
name_like: "nameLike",
|
|
38139
|
+
state_like: "stateLike",
|
|
38140
|
+
active_status: "activeStatus"
|
|
38141
|
+
});
|
|
38142
|
+
});
|
|
38143
|
+
ListOrSearchFacilitiesRequest$outboundSchema = objectType({
|
|
38144
|
+
sort: nullableType(stringType()).optional(),
|
|
38145
|
+
desc: Desc$outboundSchema.optional(),
|
|
38146
|
+
page: numberType().int().optional(),
|
|
38147
|
+
itemsPerPage: numberType().int().optional(),
|
|
38148
|
+
expand: arrayType(Expand$outboundSchema).optional(),
|
|
38149
|
+
systemId: numberType().int().optional(),
|
|
38150
|
+
nameLike: stringType().optional(),
|
|
38151
|
+
stateLike: stringType().optional(),
|
|
38152
|
+
activeStatus: ActiveStatus$outboundSchema.default("Active")
|
|
38153
|
+
}).transform((v2) => {
|
|
38154
|
+
return remap(v2, {
|
|
38155
|
+
itemsPerPage: "items_per_page",
|
|
38156
|
+
systemId: "system_id",
|
|
38157
|
+
nameLike: "name_like",
|
|
38158
|
+
stateLike: "state_like",
|
|
38159
|
+
activeStatus: "active_status"
|
|
38160
|
+
});
|
|
38161
|
+
});
|
|
38162
|
+
((ListOrSearchFacilitiesRequest$) => {
|
|
38163
|
+
ListOrSearchFacilitiesRequest$.inboundSchema = ListOrSearchFacilitiesRequest$inboundSchema;
|
|
38164
|
+
ListOrSearchFacilitiesRequest$.outboundSchema = ListOrSearchFacilitiesRequest$outboundSchema;
|
|
38165
|
+
})(ListOrSearchFacilitiesRequest$ ||= {});
|
|
38166
|
+
ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema = objectType({
|
|
38167
|
+
pager: Pager$inboundSchema,
|
|
38168
|
+
items: arrayType(nullableType(Facility$inboundSchema))
|
|
38169
|
+
});
|
|
38170
|
+
ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema = objectType({
|
|
37507
38171
|
pager: Pager$outboundSchema,
|
|
37508
|
-
items: arrayType(Facility$outboundSchema)
|
|
38172
|
+
items: arrayType(nullableType(Facility$outboundSchema))
|
|
37509
38173
|
});
|
|
37510
38174
|
((ListOrSearchFacilitiesListOrSearchFacilitiesOk$) => {
|
|
37511
38175
|
ListOrSearchFacilitiesListOrSearchFacilitiesOk$.inboundSchema = ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema;
|
|
@@ -37598,12 +38262,16 @@ var init_listorsearchsupportarticles = __esm(() => {
|
|
|
37598
38262
|
});
|
|
37599
38263
|
|
|
37600
38264
|
// src/models/operations/listvendorcredentials.ts
|
|
37601
|
-
var ListVendorCredentialsRequest$inboundSchema, ListVendorCredentialsRequest$outboundSchema, ListVendorCredentialsRequest$, Credentials$inboundSchema, Credentials$outboundSchema, Credentials$, ListVendorCredentialsResponseBody$inboundSchema, ListVendorCredentialsResponseBody$outboundSchema, ListVendorCredentialsResponseBody$;
|
|
38265
|
+
var ListVendorCredentialsRequest$inboundSchema, ListVendorCredentialsRequest$outboundSchema, ListVendorCredentialsRequest$, Credentials$inboundSchema, Credentials$outboundSchema, Credentials$, Pager$inboundSchema2, Pager$outboundSchema2, Pager$2, ListVendorCredentialsResponseBody$inboundSchema, ListVendorCredentialsResponseBody$outboundSchema, ListVendorCredentialsResponseBody$, ListVendorCredentialsResponse$inboundSchema, ListVendorCredentialsResponse$outboundSchema, ListVendorCredentialsResponse$;
|
|
37602
38266
|
var init_listvendorcredentials = __esm(() => {
|
|
37603
38267
|
init_lib();
|
|
37604
38268
|
init_primitives();
|
|
37605
38269
|
init_components();
|
|
37606
38270
|
ListVendorCredentialsRequest$inboundSchema = objectType({
|
|
38271
|
+
sort: nullableType(stringType()).optional(),
|
|
38272
|
+
desc: Desc$inboundSchema.optional(),
|
|
38273
|
+
page: numberType().int().optional(),
|
|
38274
|
+
items_per_page: numberType().int().optional(),
|
|
37607
38275
|
credential_status: CredentialStatus$inboundSchema.default("Pending Vendor"),
|
|
37608
38276
|
facility_id: numberType().optional(),
|
|
37609
38277
|
include_vc: numberType().optional(),
|
|
@@ -37612,6 +38280,7 @@ var init_listvendorcredentials = __esm(() => {
|
|
|
37612
38280
|
vendor_id: numberType().int()
|
|
37613
38281
|
}).transform((v2) => {
|
|
37614
38282
|
return remap(v2, {
|
|
38283
|
+
items_per_page: "itemsPerPage",
|
|
37615
38284
|
credential_status: "credentialStatus",
|
|
37616
38285
|
facility_id: "facilityId",
|
|
37617
38286
|
include_vc: "includeVc",
|
|
@@ -37620,6 +38289,10 @@ var init_listvendorcredentials = __esm(() => {
|
|
|
37620
38289
|
});
|
|
37621
38290
|
});
|
|
37622
38291
|
ListVendorCredentialsRequest$outboundSchema = objectType({
|
|
38292
|
+
sort: nullableType(stringType()).optional(),
|
|
38293
|
+
desc: Desc$outboundSchema.optional(),
|
|
38294
|
+
page: numberType().int().optional(),
|
|
38295
|
+
itemsPerPage: numberType().int().optional(),
|
|
37623
38296
|
credentialStatus: CredentialStatus$outboundSchema.default("Pending Vendor"),
|
|
37624
38297
|
facilityId: numberType().optional(),
|
|
37625
38298
|
includeVc: numberType().optional(),
|
|
@@ -37628,6 +38301,7 @@ var init_listvendorcredentials = __esm(() => {
|
|
|
37628
38301
|
vendorId: numberType().int()
|
|
37629
38302
|
}).transform((v2) => {
|
|
37630
38303
|
return remap(v2, {
|
|
38304
|
+
itemsPerPage: "items_per_page",
|
|
37631
38305
|
credentialStatus: "credential_status",
|
|
37632
38306
|
facilityId: "facility_id",
|
|
37633
38307
|
includeVc: "include_vc",
|
|
@@ -37651,11 +38325,23 @@ var init_listvendorcredentials = __esm(() => {
|
|
|
37651
38325
|
Credentials$.inboundSchema = Credentials$inboundSchema;
|
|
37652
38326
|
Credentials$.outboundSchema = Credentials$outboundSchema;
|
|
37653
38327
|
})(Credentials$ ||= {});
|
|
38328
|
+
Pager$inboundSchema2 = objectType({
|
|
38329
|
+
pager: Pager$inboundSchema,
|
|
38330
|
+
items: arrayType(VendorCredentialSlim$inboundSchema)
|
|
38331
|
+
});
|
|
38332
|
+
Pager$outboundSchema2 = objectType({
|
|
38333
|
+
pager: Pager$outboundSchema,
|
|
38334
|
+
items: arrayType(VendorCredentialSlim$outboundSchema)
|
|
38335
|
+
});
|
|
38336
|
+
((Pager$) => {
|
|
38337
|
+
Pager$.inboundSchema = Pager$inboundSchema2;
|
|
38338
|
+
Pager$.outboundSchema = Pager$outboundSchema2;
|
|
38339
|
+
})(Pager$2 ||= {});
|
|
37654
38340
|
ListVendorCredentialsResponseBody$inboundSchema = objectType({
|
|
37655
38341
|
vendor_required_credentials: arrayType(VendorRequiredCredential$inboundSchema),
|
|
37656
38342
|
credentials: arrayType(lazyType(() => Credentials$inboundSchema)),
|
|
37657
38343
|
vendor_credentials: arrayType(VendorCredentialSlim$inboundSchema),
|
|
37658
|
-
pager: Pager$
|
|
38344
|
+
pager: lazyType(() => Pager$inboundSchema2)
|
|
37659
38345
|
}).transform((v2) => {
|
|
37660
38346
|
return remap(v2, {
|
|
37661
38347
|
vendor_required_credentials: "vendorRequiredCredentials",
|
|
@@ -37666,7 +38352,7 @@ var init_listvendorcredentials = __esm(() => {
|
|
|
37666
38352
|
vendorRequiredCredentials: arrayType(VendorRequiredCredential$outboundSchema),
|
|
37667
38353
|
credentials: arrayType(lazyType(() => Credentials$outboundSchema)),
|
|
37668
38354
|
vendorCredentials: arrayType(VendorCredentialSlim$outboundSchema),
|
|
37669
|
-
pager: Pager$
|
|
38355
|
+
pager: lazyType(() => Pager$outboundSchema2)
|
|
37670
38356
|
}).transform((v2) => {
|
|
37671
38357
|
return remap(v2, {
|
|
37672
38358
|
vendorRequiredCredentials: "vendor_required_credentials",
|
|
@@ -37677,6 +38363,24 @@ var init_listvendorcredentials = __esm(() => {
|
|
|
37677
38363
|
ListVendorCredentialsResponseBody$.inboundSchema = ListVendorCredentialsResponseBody$inboundSchema;
|
|
37678
38364
|
ListVendorCredentialsResponseBody$.outboundSchema = ListVendorCredentialsResponseBody$outboundSchema;
|
|
37679
38365
|
})(ListVendorCredentialsResponseBody$ ||= {});
|
|
38366
|
+
ListVendorCredentialsResponse$inboundSchema = objectType({
|
|
38367
|
+
Result: lazyType(() => ListVendorCredentialsResponseBody$inboundSchema)
|
|
38368
|
+
}).transform((v2) => {
|
|
38369
|
+
return remap(v2, {
|
|
38370
|
+
Result: "result"
|
|
38371
|
+
});
|
|
38372
|
+
});
|
|
38373
|
+
ListVendorCredentialsResponse$outboundSchema = objectType({
|
|
38374
|
+
result: lazyType(() => ListVendorCredentialsResponseBody$outboundSchema)
|
|
38375
|
+
}).transform((v2) => {
|
|
38376
|
+
return remap(v2, {
|
|
38377
|
+
result: "Result"
|
|
38378
|
+
});
|
|
38379
|
+
});
|
|
38380
|
+
((ListVendorCredentialsResponse$) => {
|
|
38381
|
+
ListVendorCredentialsResponse$.inboundSchema = ListVendorCredentialsResponse$inboundSchema;
|
|
38382
|
+
ListVendorCredentialsResponse$.outboundSchema = ListVendorCredentialsResponse$outboundSchema;
|
|
38383
|
+
})(ListVendorCredentialsResponse$ ||= {});
|
|
37680
38384
|
});
|
|
37681
38385
|
|
|
37682
38386
|
// src/models/operations/listvendorfacilitystatuses.ts
|
|
@@ -37689,20 +38393,24 @@ var init_listvendorfacilitystatuses = __esm(() => {
|
|
|
37689
38393
|
sort: nullableType(stringType()).optional(),
|
|
37690
38394
|
desc: Desc$inboundSchema.optional(),
|
|
37691
38395
|
page: numberType().int().optional(),
|
|
37692
|
-
items_per_page: numberType().int().optional()
|
|
38396
|
+
items_per_page: numberType().int().optional(),
|
|
38397
|
+
scan_type: ScanType$inboundSchema.optional()
|
|
37693
38398
|
}).transform((v2) => {
|
|
37694
38399
|
return remap(v2, {
|
|
37695
|
-
items_per_page: "itemsPerPage"
|
|
38400
|
+
items_per_page: "itemsPerPage",
|
|
38401
|
+
scan_type: "scanType"
|
|
37696
38402
|
});
|
|
37697
38403
|
});
|
|
37698
38404
|
ListVendorFacilityStatusesRequest$outboundSchema = objectType({
|
|
37699
38405
|
sort: nullableType(stringType()).optional(),
|
|
37700
38406
|
desc: Desc$outboundSchema.optional(),
|
|
37701
38407
|
page: numberType().int().optional(),
|
|
37702
|
-
itemsPerPage: numberType().int().optional()
|
|
38408
|
+
itemsPerPage: numberType().int().optional(),
|
|
38409
|
+
scanType: ScanType$outboundSchema.optional()
|
|
37703
38410
|
}).transform((v2) => {
|
|
37704
38411
|
return remap(v2, {
|
|
37705
|
-
itemsPerPage: "items_per_page"
|
|
38412
|
+
itemsPerPage: "items_per_page",
|
|
38413
|
+
scanType: "scan_type"
|
|
37706
38414
|
});
|
|
37707
38415
|
});
|
|
37708
38416
|
((ListVendorFacilityStatusesRequest$) => {
|
|
@@ -37810,11 +38518,31 @@ var init_listvendorinvoices = __esm(() => {
|
|
|
37810
38518
|
});
|
|
37811
38519
|
|
|
37812
38520
|
// src/models/operations/listvendorjobtitles.ts
|
|
37813
|
-
var ListVendorJobTitlesRequest$inboundSchema, ListVendorJobTitlesRequest$outboundSchema, ListVendorJobTitlesRequest$, ListVendorJobTitlesListVendorJobTitlesOk$inboundSchema, ListVendorJobTitlesListVendorJobTitlesOk$outboundSchema, ListVendorJobTitlesListVendorJobTitlesOk$, ListVendorJobTitlesResponse$inboundSchema, ListVendorJobTitlesResponse$outboundSchema, ListVendorJobTitlesResponse$;
|
|
38521
|
+
var ListVendorJobTitlesSecurity$inboundSchema, ListVendorJobTitlesSecurity$outboundSchema, ListVendorJobTitlesSecurity$, ListVendorJobTitlesRequest$inboundSchema, ListVendorJobTitlesRequest$outboundSchema, ListVendorJobTitlesRequest$, ListVendorJobTitlesListVendorJobTitlesOk$inboundSchema, ListVendorJobTitlesListVendorJobTitlesOk$outboundSchema, ListVendorJobTitlesListVendorJobTitlesOk$, ListVendorJobTitlesResponse$inboundSchema, ListVendorJobTitlesResponse$outboundSchema, ListVendorJobTitlesResponse$;
|
|
37814
38522
|
var init_listvendorjobtitles = __esm(() => {
|
|
37815
38523
|
init_lib();
|
|
37816
38524
|
init_primitives();
|
|
37817
38525
|
init_components();
|
|
38526
|
+
ListVendorJobTitlesSecurity$inboundSchema = objectType({
|
|
38527
|
+
BearerJwt: stringType().optional(),
|
|
38528
|
+
token: stringType().optional()
|
|
38529
|
+
}).transform((v2) => {
|
|
38530
|
+
return remap(v2, {
|
|
38531
|
+
BearerJwt: "bearerJwt"
|
|
38532
|
+
});
|
|
38533
|
+
});
|
|
38534
|
+
ListVendorJobTitlesSecurity$outboundSchema = objectType({
|
|
38535
|
+
bearerJwt: stringType().optional(),
|
|
38536
|
+
token: stringType().optional()
|
|
38537
|
+
}).transform((v2) => {
|
|
38538
|
+
return remap(v2, {
|
|
38539
|
+
bearerJwt: "BearerJwt"
|
|
38540
|
+
});
|
|
38541
|
+
});
|
|
38542
|
+
((ListVendorJobTitlesSecurity$) => {
|
|
38543
|
+
ListVendorJobTitlesSecurity$.inboundSchema = ListVendorJobTitlesSecurity$inboundSchema;
|
|
38544
|
+
ListVendorJobTitlesSecurity$.outboundSchema = ListVendorJobTitlesSecurity$outboundSchema;
|
|
38545
|
+
})(ListVendorJobTitlesSecurity$ ||= {});
|
|
37818
38546
|
ListVendorJobTitlesRequest$inboundSchema = objectType({
|
|
37819
38547
|
sort: nullableType(stringType()).optional(),
|
|
37820
38548
|
desc: Desc$inboundSchema.optional(),
|
|
@@ -37875,6 +38603,97 @@ var init_listvendorjobtitles = __esm(() => {
|
|
|
37875
38603
|
})(ListVendorJobTitlesResponse$ ||= {});
|
|
37876
38604
|
});
|
|
37877
38605
|
|
|
38606
|
+
// src/models/operations/listvendorscrubdetails.ts
|
|
38607
|
+
var ListVendorScrubDetailsRequest$inboundSchema, ListVendorScrubDetailsRequest$outboundSchema, ListVendorScrubDetailsRequest$;
|
|
38608
|
+
var init_listvendorscrubdetails = __esm(() => {
|
|
38609
|
+
init_lib();
|
|
38610
|
+
init_primitives();
|
|
38611
|
+
ListVendorScrubDetailsRequest$inboundSchema = objectType({
|
|
38612
|
+
vendor_id_or_me: stringType()
|
|
38613
|
+
}).transform((v2) => {
|
|
38614
|
+
return remap(v2, {
|
|
38615
|
+
vendor_id_or_me: "vendorIdOrMe"
|
|
38616
|
+
});
|
|
38617
|
+
});
|
|
38618
|
+
ListVendorScrubDetailsRequest$outboundSchema = objectType({
|
|
38619
|
+
vendorIdOrMe: stringType()
|
|
38620
|
+
}).transform((v2) => {
|
|
38621
|
+
return remap(v2, {
|
|
38622
|
+
vendorIdOrMe: "vendor_id_or_me"
|
|
38623
|
+
});
|
|
38624
|
+
});
|
|
38625
|
+
((ListVendorScrubDetailsRequest$) => {
|
|
38626
|
+
ListVendorScrubDetailsRequest$.inboundSchema = ListVendorScrubDetailsRequest$inboundSchema;
|
|
38627
|
+
ListVendorScrubDetailsRequest$.outboundSchema = ListVendorScrubDetailsRequest$outboundSchema;
|
|
38628
|
+
})(ListVendorScrubDetailsRequest$ ||= {});
|
|
38629
|
+
});
|
|
38630
|
+
|
|
38631
|
+
// src/models/operations/listvendorscrubpurchases.ts
|
|
38632
|
+
var ListVendorScrubPurchasesRequest$inboundSchema, ListVendorScrubPurchasesRequest$outboundSchema, ListVendorScrubPurchasesRequest$, ListVendorScrubPurchasesResponseBody$inboundSchema, ListVendorScrubPurchasesResponseBody$outboundSchema, ListVendorScrubPurchasesResponseBody$, ListVendorScrubPurchasesResponse$inboundSchema, ListVendorScrubPurchasesResponse$outboundSchema, ListVendorScrubPurchasesResponse$;
|
|
38633
|
+
var init_listvendorscrubpurchases = __esm(() => {
|
|
38634
|
+
init_lib();
|
|
38635
|
+
init_primitives();
|
|
38636
|
+
init_components();
|
|
38637
|
+
ListVendorScrubPurchasesRequest$inboundSchema = objectType({
|
|
38638
|
+
sort: nullableType(stringType()).optional(),
|
|
38639
|
+
desc: Desc$inboundSchema.optional(),
|
|
38640
|
+
page: numberType().int().optional(),
|
|
38641
|
+
items_per_page: numberType().int().optional(),
|
|
38642
|
+
vendor_id_or_me: stringType()
|
|
38643
|
+
}).transform((v2) => {
|
|
38644
|
+
return remap(v2, {
|
|
38645
|
+
items_per_page: "itemsPerPage",
|
|
38646
|
+
vendor_id_or_me: "vendorIdOrMe"
|
|
38647
|
+
});
|
|
38648
|
+
});
|
|
38649
|
+
ListVendorScrubPurchasesRequest$outboundSchema = objectType({
|
|
38650
|
+
sort: nullableType(stringType()).optional(),
|
|
38651
|
+
desc: Desc$outboundSchema.optional(),
|
|
38652
|
+
page: numberType().int().optional(),
|
|
38653
|
+
itemsPerPage: numberType().int().optional(),
|
|
38654
|
+
vendorIdOrMe: stringType()
|
|
38655
|
+
}).transform((v2) => {
|
|
38656
|
+
return remap(v2, {
|
|
38657
|
+
itemsPerPage: "items_per_page",
|
|
38658
|
+
vendorIdOrMe: "vendor_id_or_me"
|
|
38659
|
+
});
|
|
38660
|
+
});
|
|
38661
|
+
((ListVendorScrubPurchasesRequest$) => {
|
|
38662
|
+
ListVendorScrubPurchasesRequest$.inboundSchema = ListVendorScrubPurchasesRequest$inboundSchema;
|
|
38663
|
+
ListVendorScrubPurchasesRequest$.outboundSchema = ListVendorScrubPurchasesRequest$outboundSchema;
|
|
38664
|
+
})(ListVendorScrubPurchasesRequest$ ||= {});
|
|
38665
|
+
ListVendorScrubPurchasesResponseBody$inboundSchema = objectType({
|
|
38666
|
+
pager: Pager$inboundSchema,
|
|
38667
|
+
items: arrayType(VendorScrubPurchase$inboundSchema)
|
|
38668
|
+
});
|
|
38669
|
+
ListVendorScrubPurchasesResponseBody$outboundSchema = objectType({
|
|
38670
|
+
pager: Pager$outboundSchema,
|
|
38671
|
+
items: arrayType(VendorScrubPurchase$outboundSchema)
|
|
38672
|
+
});
|
|
38673
|
+
((ListVendorScrubPurchasesResponseBody$) => {
|
|
38674
|
+
ListVendorScrubPurchasesResponseBody$.inboundSchema = ListVendorScrubPurchasesResponseBody$inboundSchema;
|
|
38675
|
+
ListVendorScrubPurchasesResponseBody$.outboundSchema = ListVendorScrubPurchasesResponseBody$outboundSchema;
|
|
38676
|
+
})(ListVendorScrubPurchasesResponseBody$ ||= {});
|
|
38677
|
+
ListVendorScrubPurchasesResponse$inboundSchema = objectType({
|
|
38678
|
+
Result: lazyType(() => ListVendorScrubPurchasesResponseBody$inboundSchema)
|
|
38679
|
+
}).transform((v2) => {
|
|
38680
|
+
return remap(v2, {
|
|
38681
|
+
Result: "result"
|
|
38682
|
+
});
|
|
38683
|
+
});
|
|
38684
|
+
ListVendorScrubPurchasesResponse$outboundSchema = objectType({
|
|
38685
|
+
result: lazyType(() => ListVendorScrubPurchasesResponseBody$outboundSchema)
|
|
38686
|
+
}).transform((v2) => {
|
|
38687
|
+
return remap(v2, {
|
|
38688
|
+
result: "Result"
|
|
38689
|
+
});
|
|
38690
|
+
});
|
|
38691
|
+
((ListVendorScrubPurchasesResponse$) => {
|
|
38692
|
+
ListVendorScrubPurchasesResponse$.inboundSchema = ListVendorScrubPurchasesResponse$inboundSchema;
|
|
38693
|
+
ListVendorScrubPurchasesResponse$.outboundSchema = ListVendorScrubPurchasesResponse$outboundSchema;
|
|
38694
|
+
})(ListVendorScrubPurchasesResponse$ ||= {});
|
|
38695
|
+
});
|
|
38696
|
+
|
|
37878
38697
|
// src/models/operations/logsuserintothesystem.ts
|
|
37879
38698
|
var LogsUserIntoTheSystemRequestBody$inboundSchema, LogsUserIntoTheSystemRequestBody$outboundSchema, LogsUserIntoTheSystemRequestBody$, LogsUserIntoTheSystemResponseBody$inboundSchema, LogsUserIntoTheSystemResponseBody$outboundSchema, LogsUserIntoTheSystemResponseBody$, LogsUserIntoTheSystemResponse$inboundSchema, LogsUserIntoTheSystemResponse$outboundSchema, LogsUserIntoTheSystemResponse$;
|
|
37880
38699
|
var init_logsuserintothesystem = __esm(() => {
|
|
@@ -38041,6 +38860,36 @@ var init_passwordresetrequest = __esm(() => {
|
|
|
38041
38860
|
})(PasswordResetRequestPasswordResetRequestOk$ ||= {});
|
|
38042
38861
|
});
|
|
38043
38862
|
|
|
38863
|
+
// src/models/operations/vendorscanout.ts
|
|
38864
|
+
var VendorScanOutRequest$inboundSchema, VendorScanOutRequest$outboundSchema, VendorScanOutRequest$, VendorScanOutResponseBody$inboundSchema, VendorScanOutResponseBody$outboundSchema, VendorScanOutResponseBody$;
|
|
38865
|
+
var init_vendorscanout = __esm(() => {
|
|
38866
|
+
init_lib();
|
|
38867
|
+
VendorScanOutRequest$inboundSchema = objectType({
|
|
38868
|
+
id: numberType().int()
|
|
38869
|
+
});
|
|
38870
|
+
VendorScanOutRequest$outboundSchema = objectType({
|
|
38871
|
+
id: numberType().int()
|
|
38872
|
+
});
|
|
38873
|
+
((VendorScanOutRequest$) => {
|
|
38874
|
+
VendorScanOutRequest$.inboundSchema = VendorScanOutRequest$inboundSchema;
|
|
38875
|
+
VendorScanOutRequest$.outboundSchema = VendorScanOutRequest$outboundSchema;
|
|
38876
|
+
})(VendorScanOutRequest$ ||= {});
|
|
38877
|
+
VendorScanOutResponseBody$inboundSchema = objectType({
|
|
38878
|
+
error: nullableType(stringType()).optional(),
|
|
38879
|
+
reason: nullableType(stringType()).optional(),
|
|
38880
|
+
success: booleanType()
|
|
38881
|
+
});
|
|
38882
|
+
VendorScanOutResponseBody$outboundSchema = objectType({
|
|
38883
|
+
error: nullableType(stringType()).optional(),
|
|
38884
|
+
reason: nullableType(stringType()).optional(),
|
|
38885
|
+
success: booleanType()
|
|
38886
|
+
});
|
|
38887
|
+
((VendorScanOutResponseBody$) => {
|
|
38888
|
+
VendorScanOutResponseBody$.inboundSchema = VendorScanOutResponseBody$inboundSchema;
|
|
38889
|
+
VendorScanOutResponseBody$.outboundSchema = VendorScanOutResponseBody$outboundSchema;
|
|
38890
|
+
})(VendorScanOutResponseBody$ ||= {});
|
|
38891
|
+
});
|
|
38892
|
+
|
|
38044
38893
|
// src/models/operations/index.ts
|
|
38045
38894
|
var init_operations = __esm(() => {
|
|
38046
38895
|
init_createvendorregistration();
|
|
@@ -38049,16 +38898,22 @@ var init_operations = __esm(() => {
|
|
|
38049
38898
|
init_getsupportarticle();
|
|
38050
38899
|
init_getuserbyid();
|
|
38051
38900
|
init_getvendorinvoicedetails();
|
|
38901
|
+
init_getvendorsdetails();
|
|
38902
|
+
init_getwebhookendpoint();
|
|
38903
|
+
init_listallwebhookendpoints();
|
|
38052
38904
|
init_listorsearchfacilities();
|
|
38053
38905
|
init_listorsearchsupportarticles();
|
|
38054
38906
|
init_listvendorcredentials();
|
|
38055
38907
|
init_listvendorfacilitystatuses();
|
|
38056
38908
|
init_listvendorinvoices();
|
|
38057
38909
|
init_listvendorjobtitles();
|
|
38910
|
+
init_listvendorscrubdetails();
|
|
38911
|
+
init_listvendorscrubpurchases();
|
|
38058
38912
|
init_logsuserintothesystem();
|
|
38059
38913
|
init_magiclink();
|
|
38060
38914
|
init_password();
|
|
38061
38915
|
init_passwordresetrequest();
|
|
38916
|
+
init_vendorscanout();
|
|
38062
38917
|
});
|
|
38063
38918
|
|
|
38064
38919
|
// src/types/async.ts
|
|
@@ -38279,7 +39134,7 @@ async function $do2(client, request, options) {
|
|
|
38279
39134
|
const req = requestRes.value;
|
|
38280
39135
|
const doResult = await client._do(req, {
|
|
38281
39136
|
context,
|
|
38282
|
-
errorCodes: ["4XX", "5XX"],
|
|
39137
|
+
errorCodes: ["401", "403", "404", "4XX", "500", "5XX"],
|
|
38283
39138
|
retryConfig: context.retryConfig,
|
|
38284
39139
|
retryCodes: context.retryCodes
|
|
38285
39140
|
});
|
|
@@ -38292,7 +39147,7 @@ async function $do2(client, request, options) {
|
|
|
38292
39147
|
};
|
|
38293
39148
|
const [result, raw] = await match(json(200, ListOrSearchFacilitiesResponse$inboundSchema, {
|
|
38294
39149
|
key: "Result"
|
|
38295
|
-
}), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
39150
|
+
}), jsonErr([401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
38296
39151
|
if (!result.ok) {
|
|
38297
39152
|
return [haltIterator(result), {
|
|
38298
39153
|
status: "complete",
|
|
@@ -38334,6 +39189,7 @@ var init_organizationsListOrSearchFacilities = __esm(() => {
|
|
|
38334
39189
|
init_schemas();
|
|
38335
39190
|
init_security();
|
|
38336
39191
|
init_url();
|
|
39192
|
+
init_errors();
|
|
38337
39193
|
init_operations();
|
|
38338
39194
|
init_async();
|
|
38339
39195
|
init_operations2();
|
|
@@ -39255,32 +40111,40 @@ It sends an email with a link for resetting a user's password.`,
|
|
|
39255
40111
|
};
|
|
39256
40112
|
});
|
|
39257
40113
|
|
|
39258
|
-
// src/funcs/
|
|
39259
|
-
function
|
|
40114
|
+
// src/funcs/vendorScansVendorScanOut.ts
|
|
40115
|
+
function vendorScansVendorScanOut(client, request, options) {
|
|
39260
40116
|
return new APIPromise($do11(client, request, options));
|
|
39261
40117
|
}
|
|
39262
40118
|
async function $do11(client, request, options) {
|
|
39263
|
-
const parsed = safeParse(request, (value) =>
|
|
40119
|
+
const parsed = safeParse(request, (value) => VendorScanOutRequest$outboundSchema.parse(value), "Input validation failed");
|
|
39264
40120
|
if (!parsed.ok) {
|
|
39265
40121
|
return [parsed, { status: "invalid" }];
|
|
39266
40122
|
}
|
|
39267
40123
|
const payload = parsed.value;
|
|
39268
|
-
const body =
|
|
39269
|
-
const
|
|
40124
|
+
const body = null;
|
|
40125
|
+
const pathParams = {
|
|
40126
|
+
id: encodeSimple("id", payload.id, {
|
|
40127
|
+
explode: false,
|
|
40128
|
+
charEncoding: "percent"
|
|
40129
|
+
})
|
|
40130
|
+
};
|
|
40131
|
+
const path = pathToFunc("/vendor-scans/{id}/scan-out")(pathParams);
|
|
39270
40132
|
const headers = new Headers(compactMap({
|
|
39271
|
-
"Content-Type": "application/json",
|
|
39272
40133
|
Accept: "application/json"
|
|
39273
40134
|
}));
|
|
40135
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
40136
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
39274
40137
|
const context = {
|
|
39275
40138
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
39276
|
-
operationID: "
|
|
40139
|
+
operationID: "vendorScanOut",
|
|
39277
40140
|
oAuth2Scopes: [],
|
|
39278
|
-
resolvedSecurity:
|
|
39279
|
-
securitySource:
|
|
40141
|
+
resolvedSecurity: requestSecurity,
|
|
40142
|
+
securitySource: client._options.security,
|
|
39280
40143
|
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
39281
40144
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
39282
40145
|
};
|
|
39283
40146
|
const requestRes = client._createRequest(context, {
|
|
40147
|
+
security: requestSecurity,
|
|
39284
40148
|
method: "POST",
|
|
39285
40149
|
baseURL: options?.serverURL,
|
|
39286
40150
|
path,
|
|
@@ -39294,7 +40158,7 @@ async function $do11(client, request, options) {
|
|
|
39294
40158
|
const req = requestRes.value;
|
|
39295
40159
|
const doResult = await client._do(req, {
|
|
39296
40160
|
context,
|
|
39297
|
-
errorCodes: ["400", "401", "403", "
|
|
40161
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
39298
40162
|
retryConfig: context.retryConfig,
|
|
39299
40163
|
retryCodes: context.retryCodes
|
|
39300
40164
|
});
|
|
@@ -39305,40 +40169,41 @@ async function $do11(client, request, options) {
|
|
|
39305
40169
|
const responseFields = {
|
|
39306
40170
|
HttpMeta: { Response: response, Request: req }
|
|
39307
40171
|
};
|
|
39308
|
-
const [result] = await match(json(
|
|
40172
|
+
const [result] = await match(json(200, VendorScanOutResponseBody$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
39309
40173
|
if (!result.ok) {
|
|
39310
40174
|
return [result, { status: "complete", request: req, response }];
|
|
39311
40175
|
}
|
|
39312
40176
|
return [result, { status: "complete", request: req, response }];
|
|
39313
40177
|
}
|
|
39314
|
-
var
|
|
40178
|
+
var init_vendorScansVendorScanOut = __esm(() => {
|
|
39315
40179
|
init_encodings();
|
|
39316
40180
|
init_matchers();
|
|
39317
40181
|
init_primitives();
|
|
39318
40182
|
init_schemas();
|
|
40183
|
+
init_security();
|
|
39319
40184
|
init_url();
|
|
39320
40185
|
init_errors();
|
|
39321
40186
|
init_operations();
|
|
39322
40187
|
init_async();
|
|
39323
40188
|
});
|
|
39324
40189
|
|
|
39325
|
-
// src/mcp-server/tools/
|
|
39326
|
-
var args10, tool$
|
|
39327
|
-
var
|
|
39328
|
-
|
|
40190
|
+
// src/mcp-server/tools/vendorScansVendorScanOut.ts
|
|
40191
|
+
var args10, tool$vendorScansVendorScanOut;
|
|
40192
|
+
var init_vendorScansVendorScanOut2 = __esm(() => {
|
|
40193
|
+
init_vendorScansVendorScanOut();
|
|
39329
40194
|
init_operations();
|
|
39330
40195
|
init_tools();
|
|
39331
40196
|
args10 = {
|
|
39332
|
-
request:
|
|
40197
|
+
request: VendorScanOutRequest$inboundSchema
|
|
39333
40198
|
};
|
|
39334
|
-
tool$
|
|
39335
|
-
name: "
|
|
39336
|
-
description: `
|
|
40199
|
+
tool$vendorScansVendorScanOut = {
|
|
40200
|
+
name: "vendor-scans-vendor-scan-out",
|
|
40201
|
+
description: `Vendor scan out
|
|
39337
40202
|
|
|
39338
|
-
|
|
40203
|
+
It scans out vendor from facility`,
|
|
39339
40204
|
args: args10,
|
|
39340
40205
|
tool: async (client, args11, ctx) => {
|
|
39341
|
-
const [result, apiCall] = await
|
|
40206
|
+
const [result, apiCall] = await vendorScansVendorScanOut(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
39342
40207
|
if (!result.ok) {
|
|
39343
40208
|
return {
|
|
39344
40209
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -39351,41 +40216,137 @@ Create an initial vendor registration. Once successful, the vendor will be able
|
|
|
39351
40216
|
};
|
|
39352
40217
|
});
|
|
39353
40218
|
|
|
39354
|
-
// src/funcs/
|
|
39355
|
-
function
|
|
40219
|
+
// src/funcs/vendorsCreateVendorRegistration.ts
|
|
40220
|
+
function vendorsCreateVendorRegistration(client, request, options) {
|
|
39356
40221
|
return new APIPromise($do12(client, request, options));
|
|
39357
40222
|
}
|
|
39358
40223
|
async function $do12(client, request, options) {
|
|
39359
|
-
const parsed = safeParse(request, (value) =>
|
|
40224
|
+
const parsed = safeParse(request, (value) => CreateVendorRegistrationRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
39360
40225
|
if (!parsed.ok) {
|
|
39361
40226
|
return [parsed, { status: "invalid" }];
|
|
39362
40227
|
}
|
|
39363
40228
|
const payload = parsed.value;
|
|
39364
|
-
const body =
|
|
39365
|
-
const
|
|
39366
|
-
vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
|
|
39367
|
-
explode: false,
|
|
39368
|
-
charEncoding: "percent"
|
|
39369
|
-
})
|
|
39370
|
-
};
|
|
39371
|
-
const path = pathToFunc("/vendors/{vendor_id_or_me}/expedite-time-remaining")(pathParams);
|
|
40229
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
40230
|
+
const path = pathToFunc("/vendors/registration")();
|
|
39372
40231
|
const headers = new Headers(compactMap({
|
|
40232
|
+
"Content-Type": "application/json",
|
|
39373
40233
|
Accept: "application/json"
|
|
39374
40234
|
}));
|
|
39375
|
-
const securityInput = await extractSecurity(client._options.security);
|
|
39376
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
39377
40235
|
const context = {
|
|
39378
40236
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
39379
|
-
operationID: "
|
|
40237
|
+
operationID: "createVendorRegistration",
|
|
39380
40238
|
oAuth2Scopes: [],
|
|
39381
|
-
resolvedSecurity:
|
|
39382
|
-
securitySource:
|
|
40239
|
+
resolvedSecurity: null,
|
|
40240
|
+
securitySource: null,
|
|
39383
40241
|
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
39384
40242
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
39385
40243
|
};
|
|
39386
40244
|
const requestRes = client._createRequest(context, {
|
|
39387
|
-
|
|
39388
|
-
|
|
40245
|
+
method: "POST",
|
|
40246
|
+
baseURL: options?.serverURL,
|
|
40247
|
+
path,
|
|
40248
|
+
headers,
|
|
40249
|
+
body,
|
|
40250
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
40251
|
+
}, options);
|
|
40252
|
+
if (!requestRes.ok) {
|
|
40253
|
+
return [requestRes, { status: "invalid" }];
|
|
40254
|
+
}
|
|
40255
|
+
const req = requestRes.value;
|
|
40256
|
+
const doResult = await client._do(req, {
|
|
40257
|
+
context,
|
|
40258
|
+
errorCodes: ["400", "401", "403", "409", "4XX", "5XX"],
|
|
40259
|
+
retryConfig: context.retryConfig,
|
|
40260
|
+
retryCodes: context.retryCodes
|
|
40261
|
+
});
|
|
40262
|
+
if (!doResult.ok) {
|
|
40263
|
+
return [doResult, { status: "request-error", request: req }];
|
|
40264
|
+
}
|
|
40265
|
+
const response = doResult.value;
|
|
40266
|
+
const responseFields = {
|
|
40267
|
+
HttpMeta: { Response: response, Request: req }
|
|
40268
|
+
};
|
|
40269
|
+
const [result] = await match(json(201, CreateVendorRegistrationCreateVendorRegistrationCreated$inboundSchema), jsonErr([400, 401, 403, 409], ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
40270
|
+
if (!result.ok) {
|
|
40271
|
+
return [result, { status: "complete", request: req, response }];
|
|
40272
|
+
}
|
|
40273
|
+
return [result, { status: "complete", request: req, response }];
|
|
40274
|
+
}
|
|
40275
|
+
var init_vendorsCreateVendorRegistration = __esm(() => {
|
|
40276
|
+
init_encodings();
|
|
40277
|
+
init_matchers();
|
|
40278
|
+
init_primitives();
|
|
40279
|
+
init_schemas();
|
|
40280
|
+
init_url();
|
|
40281
|
+
init_errors();
|
|
40282
|
+
init_operations();
|
|
40283
|
+
init_async();
|
|
40284
|
+
});
|
|
40285
|
+
|
|
40286
|
+
// src/mcp-server/tools/vendorsCreateVendorRegistration.ts
|
|
40287
|
+
var args11, tool$vendorsCreateVendorRegistration;
|
|
40288
|
+
var init_vendorsCreateVendorRegistration2 = __esm(() => {
|
|
40289
|
+
init_vendorsCreateVendorRegistration();
|
|
40290
|
+
init_operations();
|
|
40291
|
+
init_tools();
|
|
40292
|
+
args11 = {
|
|
40293
|
+
request: CreateVendorRegistrationRequestBody$inboundSchema
|
|
40294
|
+
};
|
|
40295
|
+
tool$vendorsCreateVendorRegistration = {
|
|
40296
|
+
name: "vendors-create-vendor-registration",
|
|
40297
|
+
description: `Create vendor registration
|
|
40298
|
+
|
|
40299
|
+
Create an initial vendor registration. Once successful, the vendor will be able to continue to filling out the rest of their onboarding profile.`,
|
|
40300
|
+
args: args11,
|
|
40301
|
+
tool: async (client, args12, ctx) => {
|
|
40302
|
+
const [result, apiCall] = await vendorsCreateVendorRegistration(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
40303
|
+
if (!result.ok) {
|
|
40304
|
+
return {
|
|
40305
|
+
content: [{ type: "text", text: result.error.message }],
|
|
40306
|
+
isError: true
|
|
40307
|
+
};
|
|
40308
|
+
}
|
|
40309
|
+
const value = result.value;
|
|
40310
|
+
return formatResult(value, apiCall);
|
|
40311
|
+
}
|
|
40312
|
+
};
|
|
40313
|
+
});
|
|
40314
|
+
|
|
40315
|
+
// src/funcs/vendorsExpediteTimeRemaining.ts
|
|
40316
|
+
function vendorsExpediteTimeRemaining(client, request, options) {
|
|
40317
|
+
return new APIPromise($do13(client, request, options));
|
|
40318
|
+
}
|
|
40319
|
+
async function $do13(client, request, options) {
|
|
40320
|
+
const parsed = safeParse(request, (value) => ExpediteTimeRemainingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
40321
|
+
if (!parsed.ok) {
|
|
40322
|
+
return [parsed, { status: "invalid" }];
|
|
40323
|
+
}
|
|
40324
|
+
const payload = parsed.value;
|
|
40325
|
+
const body = null;
|
|
40326
|
+
const pathParams = {
|
|
40327
|
+
vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
|
|
40328
|
+
explode: false,
|
|
40329
|
+
charEncoding: "percent"
|
|
40330
|
+
})
|
|
40331
|
+
};
|
|
40332
|
+
const path = pathToFunc("/vendors/{vendor_id_or_me}/expedite-time-remaining")(pathParams);
|
|
40333
|
+
const headers = new Headers(compactMap({
|
|
40334
|
+
Accept: "application/json"
|
|
40335
|
+
}));
|
|
40336
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
40337
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
40338
|
+
const context = {
|
|
40339
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
40340
|
+
operationID: "expediteTimeRemaining",
|
|
40341
|
+
oAuth2Scopes: [],
|
|
40342
|
+
resolvedSecurity: requestSecurity,
|
|
40343
|
+
securitySource: client._options.security,
|
|
40344
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
40345
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
40346
|
+
};
|
|
40347
|
+
const requestRes = client._createRequest(context, {
|
|
40348
|
+
security: requestSecurity,
|
|
40349
|
+
method: "GET",
|
|
39389
40350
|
baseURL: options?.serverURL,
|
|
39390
40351
|
path,
|
|
39391
40352
|
headers,
|
|
@@ -39428,12 +40389,12 @@ var init_vendorsExpediteTimeRemaining = __esm(() => {
|
|
|
39428
40389
|
});
|
|
39429
40390
|
|
|
39430
40391
|
// src/mcp-server/tools/vendorsExpediteTimeRemaining.ts
|
|
39431
|
-
var
|
|
40392
|
+
var args12, tool$vendorsExpediteTimeRemaining;
|
|
39432
40393
|
var init_vendorsExpediteTimeRemaining2 = __esm(() => {
|
|
39433
40394
|
init_vendorsExpediteTimeRemaining();
|
|
39434
40395
|
init_operations();
|
|
39435
40396
|
init_tools();
|
|
39436
|
-
|
|
40397
|
+
args12 = {
|
|
39437
40398
|
request: ExpediteTimeRemainingRequest$inboundSchema
|
|
39438
40399
|
};
|
|
39439
40400
|
tool$vendorsExpediteTimeRemaining = {
|
|
@@ -39441,9 +40402,9 @@ var init_vendorsExpediteTimeRemaining2 = __esm(() => {
|
|
|
39441
40402
|
description: `Expedite time remaining
|
|
39442
40403
|
|
|
39443
40404
|
For vendors who have a paid 24-hour expedite credentials invoice, get the remaining time (in seconds) for which submitted credentials will be expedited.`,
|
|
39444
|
-
args:
|
|
39445
|
-
tool: async (client,
|
|
39446
|
-
const [result, apiCall] = await vendorsExpediteTimeRemaining(client,
|
|
40405
|
+
args: args12,
|
|
40406
|
+
tool: async (client, args13, ctx) => {
|
|
40407
|
+
const [result, apiCall] = await vendorsExpediteTimeRemaining(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
39447
40408
|
if (!result.ok) {
|
|
39448
40409
|
return {
|
|
39449
40410
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -39458,9 +40419,9 @@ For vendors who have a paid 24-hour expedite credentials invoice, get the remain
|
|
|
39458
40419
|
|
|
39459
40420
|
// src/funcs/vendorsGetVendorInvoiceDetails.ts
|
|
39460
40421
|
function vendorsGetVendorInvoiceDetails(client, request, options) {
|
|
39461
|
-
return new APIPromise($
|
|
40422
|
+
return new APIPromise($do14(client, request, options));
|
|
39462
40423
|
}
|
|
39463
|
-
async function $
|
|
40424
|
+
async function $do14(client, request, options) {
|
|
39464
40425
|
const parsed = safeParse(request, (value) => GetVendorInvoiceDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
39465
40426
|
if (!parsed.ok) {
|
|
39466
40427
|
return [parsed, { status: "invalid" }];
|
|
@@ -39538,12 +40499,12 @@ var init_vendorsGetVendorInvoiceDetails = __esm(() => {
|
|
|
39538
40499
|
});
|
|
39539
40500
|
|
|
39540
40501
|
// src/mcp-server/tools/vendorsGetVendorInvoiceDetails.ts
|
|
39541
|
-
var
|
|
40502
|
+
var args13, tool$vendorsGetVendorInvoiceDetails;
|
|
39542
40503
|
var init_vendorsGetVendorInvoiceDetails2 = __esm(() => {
|
|
39543
40504
|
init_vendorsGetVendorInvoiceDetails();
|
|
39544
40505
|
init_operations();
|
|
39545
40506
|
init_tools();
|
|
39546
|
-
|
|
40507
|
+
args13 = {
|
|
39547
40508
|
request: GetVendorInvoiceDetailsRequest$inboundSchema
|
|
39548
40509
|
};
|
|
39549
40510
|
tool$vendorsGetVendorInvoiceDetails = {
|
|
@@ -39556,9 +40517,9 @@ Available \`expand\` scopes are:
|
|
|
39556
40517
|
|
|
39557
40518
|
invoice.line_items
|
|
39558
40519
|
invoice.invoice_transactions`,
|
|
39559
|
-
args:
|
|
39560
|
-
tool: async (client,
|
|
39561
|
-
const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client,
|
|
40520
|
+
args: args13,
|
|
40521
|
+
tool: async (client, args14, ctx) => {
|
|
40522
|
+
const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
39562
40523
|
if (!result.ok) {
|
|
39563
40524
|
return {
|
|
39564
40525
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -39571,31 +40532,27 @@ invoice.invoice_transactions`,
|
|
|
39571
40532
|
};
|
|
39572
40533
|
});
|
|
39573
40534
|
|
|
39574
|
-
// src/funcs/
|
|
39575
|
-
function
|
|
39576
|
-
return new APIPromise($
|
|
40535
|
+
// src/funcs/vendorsGetVendorsDetails.ts
|
|
40536
|
+
function vendorsGetVendorsDetails(client, request, options) {
|
|
40537
|
+
return new APIPromise($do15(client, request, options));
|
|
39577
40538
|
}
|
|
39578
|
-
async function $
|
|
39579
|
-
const parsed = safeParse(request, (value) =>
|
|
40539
|
+
async function $do15(client, request, options) {
|
|
40540
|
+
const parsed = safeParse(request, (value) => GetVendorsDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
39580
40541
|
if (!parsed.ok) {
|
|
39581
40542
|
return [parsed, { status: "invalid" }];
|
|
39582
40543
|
}
|
|
39583
40544
|
const payload = parsed.value;
|
|
39584
40545
|
const body = null;
|
|
39585
40546
|
const pathParams = {
|
|
39586
|
-
|
|
40547
|
+
vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
|
|
39587
40548
|
explode: false,
|
|
39588
40549
|
charEncoding: "percent"
|
|
39589
40550
|
})
|
|
39590
40551
|
};
|
|
39591
|
-
const path = pathToFunc("/vendors/{
|
|
40552
|
+
const path = pathToFunc("/vendors/{vendor_id_or_me}")(pathParams);
|
|
39592
40553
|
const query = encodeFormQuery({
|
|
39593
|
-
|
|
39594
|
-
|
|
39595
|
-
include_cc: payload.include_cc,
|
|
39596
|
-
include_vc: payload.include_vc,
|
|
39597
|
-
urgent: payload.urgent
|
|
39598
|
-
});
|
|
40554
|
+
expand: payload.expand
|
|
40555
|
+
}, { explode: false });
|
|
39599
40556
|
const headers = new Headers(compactMap({
|
|
39600
40557
|
Accept: "application/json"
|
|
39601
40558
|
}));
|
|
@@ -39603,7 +40560,7 @@ async function $do14(client, request, options) {
|
|
|
39603
40560
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
39604
40561
|
const context = {
|
|
39605
40562
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
39606
|
-
operationID: "
|
|
40563
|
+
operationID: "getVendorsDetails",
|
|
39607
40564
|
oAuth2Scopes: [],
|
|
39608
40565
|
resolvedSecurity: requestSecurity,
|
|
39609
40566
|
securitySource: client._options.security,
|
|
@@ -39626,7 +40583,7 @@ async function $do14(client, request, options) {
|
|
|
39626
40583
|
const req = requestRes.value;
|
|
39627
40584
|
const doResult = await client._do(req, {
|
|
39628
40585
|
context,
|
|
39629
|
-
errorCodes: ["4XX", "5XX"],
|
|
40586
|
+
errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
|
|
39630
40587
|
retryConfig: context.retryConfig,
|
|
39631
40588
|
retryCodes: context.retryCodes
|
|
39632
40589
|
});
|
|
@@ -39634,40 +40591,59 @@ async function $do14(client, request, options) {
|
|
|
39634
40591
|
return [doResult, { status: "request-error", request: req }];
|
|
39635
40592
|
}
|
|
39636
40593
|
const response = doResult.value;
|
|
39637
|
-
const
|
|
40594
|
+
const responseFields = {
|
|
40595
|
+
HttpMeta: { Response: response, Request: req }
|
|
40596
|
+
};
|
|
40597
|
+
const [result] = await match(json(200, Vendor$inboundSchema), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
39638
40598
|
if (!result.ok) {
|
|
39639
40599
|
return [result, { status: "complete", request: req, response }];
|
|
39640
40600
|
}
|
|
39641
40601
|
return [result, { status: "complete", request: req, response }];
|
|
39642
40602
|
}
|
|
39643
|
-
var
|
|
40603
|
+
var init_vendorsGetVendorsDetails = __esm(() => {
|
|
39644
40604
|
init_encodings();
|
|
39645
40605
|
init_matchers();
|
|
39646
40606
|
init_primitives();
|
|
39647
40607
|
init_schemas();
|
|
39648
40608
|
init_security();
|
|
39649
40609
|
init_url();
|
|
40610
|
+
init_components();
|
|
40611
|
+
init_errors();
|
|
39650
40612
|
init_operations();
|
|
39651
40613
|
init_async();
|
|
39652
40614
|
});
|
|
39653
40615
|
|
|
39654
|
-
// src/mcp-server/tools/
|
|
39655
|
-
var
|
|
39656
|
-
var
|
|
39657
|
-
|
|
40616
|
+
// src/mcp-server/tools/vendorsGetVendorsDetails.ts
|
|
40617
|
+
var args14, tool$vendorsGetVendorsDetails;
|
|
40618
|
+
var init_vendorsGetVendorsDetails2 = __esm(() => {
|
|
40619
|
+
init_vendorsGetVendorsDetails();
|
|
39658
40620
|
init_operations();
|
|
39659
40621
|
init_tools();
|
|
39660
|
-
|
|
39661
|
-
request:
|
|
40622
|
+
args14 = {
|
|
40623
|
+
request: GetVendorsDetailsRequest$inboundSchema
|
|
39662
40624
|
};
|
|
39663
|
-
tool$
|
|
39664
|
-
name: "vendors-
|
|
39665
|
-
description: `
|
|
40625
|
+
tool$vendorsGetVendorsDetails = {
|
|
40626
|
+
name: "vendors-get-vendors-details",
|
|
40627
|
+
description: `Get vendors details
|
|
39666
40628
|
|
|
39667
|
-
|
|
39668
|
-
|
|
39669
|
-
|
|
39670
|
-
|
|
40629
|
+
Retrieve an individual vendor detais.
|
|
40630
|
+
|
|
40631
|
+
Available \`expand\` scopes are:
|
|
40632
|
+
|
|
40633
|
+
vendor.user
|
|
40634
|
+
vendor.vendor_type
|
|
40635
|
+
vendor.image_urls
|
|
40636
|
+
vendor.payment_profile
|
|
40637
|
+
vendor.primary_facility
|
|
40638
|
+
vendor.primary_department
|
|
40639
|
+
vendor.company
|
|
40640
|
+
vendor.credentialing_subscription
|
|
40641
|
+
vendor.scrubs_subscription
|
|
40642
|
+
vendor.payment_responsibility
|
|
40643
|
+
vendor.background_check_date_expires`,
|
|
40644
|
+
args: args14,
|
|
40645
|
+
tool: async (client, args15, ctx) => {
|
|
40646
|
+
const [result, apiCall] = await vendorsGetVendorsDetails(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
39671
40647
|
if (!result.ok) {
|
|
39672
40648
|
return {
|
|
39673
40649
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -39680,23 +40656,34 @@ Lists vendor credentials, required credentials, and company credentials. Utilize
|
|
|
39680
40656
|
};
|
|
39681
40657
|
});
|
|
39682
40658
|
|
|
39683
|
-
// src/funcs/
|
|
39684
|
-
function
|
|
39685
|
-
return new APIPromise($
|
|
40659
|
+
// src/funcs/vendorsListVendorCredentials.ts
|
|
40660
|
+
function vendorsListVendorCredentials(client, request, options) {
|
|
40661
|
+
return new APIPromise($do16(client, request, options));
|
|
39686
40662
|
}
|
|
39687
|
-
async function $
|
|
39688
|
-
const parsed = safeParse(request, (value) =>
|
|
40663
|
+
async function $do16(client, request, options) {
|
|
40664
|
+
const parsed = safeParse(request, (value) => ListVendorCredentialsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
39689
40665
|
if (!parsed.ok) {
|
|
39690
40666
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
39691
40667
|
}
|
|
39692
40668
|
const payload = parsed.value;
|
|
39693
40669
|
const body = null;
|
|
39694
|
-
const
|
|
40670
|
+
const pathParams = {
|
|
40671
|
+
vendor_id: encodeSimple("vendor_id", payload.vendor_id, {
|
|
40672
|
+
explode: false,
|
|
40673
|
+
charEncoding: "percent"
|
|
40674
|
+
})
|
|
40675
|
+
};
|
|
40676
|
+
const path = pathToFunc("/vendors/{vendor_id}/credentials")(pathParams);
|
|
39695
40677
|
const query = encodeFormQuery({
|
|
40678
|
+
credential_status: payload.credential_status,
|
|
39696
40679
|
desc: payload.desc,
|
|
40680
|
+
facility_id: payload.facility_id,
|
|
40681
|
+
include_cc: payload.include_cc,
|
|
40682
|
+
include_vc: payload.include_vc,
|
|
39697
40683
|
items_per_page: payload.items_per_page,
|
|
39698
40684
|
page: payload.page,
|
|
39699
|
-
sort: payload.sort
|
|
40685
|
+
sort: payload.sort,
|
|
40686
|
+
urgent: payload.urgent
|
|
39700
40687
|
});
|
|
39701
40688
|
const headers = new Headers(compactMap({
|
|
39702
40689
|
Accept: "application/json"
|
|
@@ -39705,7 +40692,7 @@ async function $do15(client, request, options) {
|
|
|
39705
40692
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
39706
40693
|
const context = {
|
|
39707
40694
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
39708
|
-
operationID: "
|
|
40695
|
+
operationID: "listVendorCredentials",
|
|
39709
40696
|
oAuth2Scopes: [],
|
|
39710
40697
|
resolvedSecurity: requestSecurity,
|
|
39711
40698
|
securitySource: client._options.security,
|
|
@@ -39728,7 +40715,7 @@ async function $do15(client, request, options) {
|
|
|
39728
40715
|
const req = requestRes.value;
|
|
39729
40716
|
const doResult = await client._do(req, {
|
|
39730
40717
|
context,
|
|
39731
|
-
errorCodes: ["
|
|
40718
|
+
errorCodes: ["4XX", "5XX"],
|
|
39732
40719
|
retryConfig: context.retryConfig,
|
|
39733
40720
|
retryCodes: context.retryCodes
|
|
39734
40721
|
});
|
|
@@ -39739,9 +40726,9 @@ async function $do15(client, request, options) {
|
|
|
39739
40726
|
const responseFields = {
|
|
39740
40727
|
HttpMeta: { Response: response, Request: req }
|
|
39741
40728
|
};
|
|
39742
|
-
const [result, raw] = await match(json(200,
|
|
40729
|
+
const [result, raw] = await match(json(200, ListVendorCredentialsResponse$inboundSchema, {
|
|
39743
40730
|
key: "Result"
|
|
39744
|
-
}),
|
|
40731
|
+
}), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
39745
40732
|
if (!result.ok) {
|
|
39746
40733
|
return [haltIterator(result), {
|
|
39747
40734
|
status: "complete",
|
|
@@ -39755,7 +40742,7 @@ async function $do15(client, request, options) {
|
|
|
39755
40742
|
if (!responseData) {
|
|
39756
40743
|
return { next: () => null };
|
|
39757
40744
|
}
|
|
39758
|
-
const results = dlv(responseData, "items");
|
|
40745
|
+
const results = dlv(responseData, "pager.items");
|
|
39759
40746
|
if (!Array.isArray(results) || !results.length) {
|
|
39760
40747
|
return { next: () => null };
|
|
39761
40748
|
}
|
|
@@ -39763,7 +40750,7 @@ async function $do15(client, request, options) {
|
|
|
39763
40750
|
if (results.length < limit) {
|
|
39764
40751
|
return { next: () => null };
|
|
39765
40752
|
}
|
|
39766
|
-
const nextVal = () =>
|
|
40753
|
+
const nextVal = () => vendorsListVendorCredentials(client, {
|
|
39767
40754
|
...request,
|
|
39768
40755
|
page: nextPage
|
|
39769
40756
|
}, options);
|
|
@@ -39776,36 +40763,35 @@ async function $do15(client, request, options) {
|
|
|
39776
40763
|
response
|
|
39777
40764
|
}];
|
|
39778
40765
|
}
|
|
39779
|
-
var
|
|
40766
|
+
var init_vendorsListVendorCredentials = __esm(() => {
|
|
39780
40767
|
init_encodings();
|
|
39781
40768
|
init_matchers();
|
|
39782
40769
|
init_primitives();
|
|
39783
40770
|
init_schemas();
|
|
39784
40771
|
init_security();
|
|
39785
40772
|
init_url();
|
|
39786
|
-
init_errors();
|
|
39787
40773
|
init_operations();
|
|
39788
40774
|
init_async();
|
|
39789
40775
|
init_operations2();
|
|
39790
40776
|
});
|
|
39791
40777
|
|
|
39792
|
-
// src/mcp-server/tools/
|
|
39793
|
-
var
|
|
39794
|
-
var
|
|
39795
|
-
|
|
40778
|
+
// src/mcp-server/tools/vendorsListVendorCredentials.ts
|
|
40779
|
+
var args15, tool$vendorsListVendorCredentials;
|
|
40780
|
+
var init_vendorsListVendorCredentials2 = __esm(() => {
|
|
40781
|
+
init_vendorsListVendorCredentials();
|
|
39796
40782
|
init_operations();
|
|
39797
40783
|
init_tools();
|
|
39798
|
-
|
|
39799
|
-
request:
|
|
40784
|
+
args15 = {
|
|
40785
|
+
request: ListVendorCredentialsRequest$inboundSchema
|
|
39800
40786
|
};
|
|
39801
|
-
tool$
|
|
39802
|
-
name: "vendors-list-vendor-
|
|
39803
|
-
description: `List
|
|
40787
|
+
tool$vendorsListVendorCredentials = {
|
|
40788
|
+
name: "vendors-list-vendor-credentials",
|
|
40789
|
+
description: `List Vendor Credentials
|
|
39804
40790
|
|
|
39805
|
-
|
|
39806
|
-
args:
|
|
39807
|
-
tool: async (client,
|
|
39808
|
-
const [result, apiCall] = await
|
|
40791
|
+
Lists vendor credentials, required credentials, and company credentials. Utilized in Vendor Dashboard.`,
|
|
40792
|
+
args: args15,
|
|
40793
|
+
tool: async (client, args16, ctx) => {
|
|
40794
|
+
const [result, apiCall] = await vendorsListVendorCredentials(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
39809
40795
|
if (!result.ok) {
|
|
39810
40796
|
return {
|
|
39811
40797
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -39818,32 +40804,25 @@ List the facilities for the vendor`,
|
|
|
39818
40804
|
};
|
|
39819
40805
|
});
|
|
39820
40806
|
|
|
39821
|
-
// src/funcs/
|
|
39822
|
-
function
|
|
39823
|
-
return new APIPromise($
|
|
40807
|
+
// src/funcs/vendorsListVendorFacilityStatuses.ts
|
|
40808
|
+
function vendorsListVendorFacilityStatuses(client, request, options) {
|
|
40809
|
+
return new APIPromise($do17(client, request, options));
|
|
39824
40810
|
}
|
|
39825
|
-
async function $
|
|
39826
|
-
const parsed = safeParse(request, (value) =>
|
|
40811
|
+
async function $do17(client, request, options) {
|
|
40812
|
+
const parsed = safeParse(request, (value) => ListVendorFacilityStatusesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
39827
40813
|
if (!parsed.ok) {
|
|
39828
40814
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
39829
40815
|
}
|
|
39830
40816
|
const payload = parsed.value;
|
|
39831
40817
|
const body = null;
|
|
39832
|
-
const
|
|
39833
|
-
|
|
39834
|
-
explode: false,
|
|
39835
|
-
charEncoding: "percent"
|
|
39836
|
-
})
|
|
39837
|
-
};
|
|
39838
|
-
const path = pathToFunc("/vendors/{vendor_id_or_me}/invoices")(pathParams);
|
|
39839
|
-
const query = queryJoin(encodeFormQuery({
|
|
39840
|
-
expand: payload.expand
|
|
39841
|
-
}, { explode: false }), encodeFormQuery({
|
|
40818
|
+
const path = pathToFunc("/vendors/facility_statuses")();
|
|
40819
|
+
const query = encodeFormQuery({
|
|
39842
40820
|
desc: payload.desc,
|
|
39843
40821
|
items_per_page: payload.items_per_page,
|
|
39844
40822
|
page: payload.page,
|
|
40823
|
+
scan_type: payload.scan_type,
|
|
39845
40824
|
sort: payload.sort
|
|
39846
|
-
})
|
|
40825
|
+
});
|
|
39847
40826
|
const headers = new Headers(compactMap({
|
|
39848
40827
|
Accept: "application/json"
|
|
39849
40828
|
}));
|
|
@@ -39851,7 +40830,7 @@ async function $do16(client, request, options) {
|
|
|
39851
40830
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
39852
40831
|
const context = {
|
|
39853
40832
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
39854
|
-
operationID: "
|
|
40833
|
+
operationID: "listVendorFacilityStatuses",
|
|
39855
40834
|
oAuth2Scopes: [],
|
|
39856
40835
|
resolvedSecurity: requestSecurity,
|
|
39857
40836
|
securitySource: client._options.security,
|
|
@@ -39874,7 +40853,7 @@ async function $do16(client, request, options) {
|
|
|
39874
40853
|
const req = requestRes.value;
|
|
39875
40854
|
const doResult = await client._do(req, {
|
|
39876
40855
|
context,
|
|
39877
|
-
errorCodes: ["
|
|
40856
|
+
errorCodes: ["401", "4XX", "500", "5XX"],
|
|
39878
40857
|
retryConfig: context.retryConfig,
|
|
39879
40858
|
retryCodes: context.retryCodes
|
|
39880
40859
|
});
|
|
@@ -39885,9 +40864,9 @@ async function $do16(client, request, options) {
|
|
|
39885
40864
|
const responseFields = {
|
|
39886
40865
|
HttpMeta: { Response: response, Request: req }
|
|
39887
40866
|
};
|
|
39888
|
-
const [result, raw] = await match(json(200,
|
|
40867
|
+
const [result, raw] = await match(json(200, ListVendorFacilityStatusesResponse$inboundSchema, {
|
|
39889
40868
|
key: "Result"
|
|
39890
|
-
}), jsonErr(
|
|
40869
|
+
}), jsonErr(401, ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
39891
40870
|
if (!result.ok) {
|
|
39892
40871
|
return [haltIterator(result), {
|
|
39893
40872
|
status: "complete",
|
|
@@ -39909,7 +40888,7 @@ async function $do16(client, request, options) {
|
|
|
39909
40888
|
if (results.length < limit) {
|
|
39910
40889
|
return { next: () => null };
|
|
39911
40890
|
}
|
|
39912
|
-
const nextVal = () =>
|
|
40891
|
+
const nextVal = () => vendorsListVendorFacilityStatuses(client, {
|
|
39913
40892
|
...request,
|
|
39914
40893
|
page: nextPage
|
|
39915
40894
|
}, options);
|
|
@@ -39922,7 +40901,7 @@ async function $do16(client, request, options) {
|
|
|
39922
40901
|
response
|
|
39923
40902
|
}];
|
|
39924
40903
|
}
|
|
39925
|
-
var
|
|
40904
|
+
var init_vendorsListVendorFacilityStatuses = __esm(() => {
|
|
39926
40905
|
init_encodings();
|
|
39927
40906
|
init_matchers();
|
|
39928
40907
|
init_primitives();
|
|
@@ -39935,13 +40914,159 @@ var init_vendorsListVendorInvoices = __esm(() => {
|
|
|
39935
40914
|
init_operations2();
|
|
39936
40915
|
});
|
|
39937
40916
|
|
|
39938
|
-
// src/mcp-server/tools/
|
|
39939
|
-
var
|
|
39940
|
-
var
|
|
39941
|
-
|
|
39942
|
-
init_operations();
|
|
40917
|
+
// src/mcp-server/tools/vendorsListVendorFacilityStatuses.ts
|
|
40918
|
+
var args16, tool$vendorsListVendorFacilityStatuses;
|
|
40919
|
+
var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
|
|
40920
|
+
init_vendorsListVendorFacilityStatuses();
|
|
40921
|
+
init_operations();
|
|
39943
40922
|
init_tools();
|
|
39944
|
-
|
|
40923
|
+
args16 = {
|
|
40924
|
+
request: ListVendorFacilityStatusesRequest$inboundSchema
|
|
40925
|
+
};
|
|
40926
|
+
tool$vendorsListVendorFacilityStatuses = {
|
|
40927
|
+
name: "vendors-list-vendor-facility-statuses",
|
|
40928
|
+
description: `List vendor facility statuses
|
|
40929
|
+
|
|
40930
|
+
List the facilities for the vendor`,
|
|
40931
|
+
args: args16,
|
|
40932
|
+
tool: async (client, args17, ctx) => {
|
|
40933
|
+
const [result, apiCall] = await vendorsListVendorFacilityStatuses(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
40934
|
+
if (!result.ok) {
|
|
40935
|
+
return {
|
|
40936
|
+
content: [{ type: "text", text: result.error.message }],
|
|
40937
|
+
isError: true
|
|
40938
|
+
};
|
|
40939
|
+
}
|
|
40940
|
+
const value = result.value.result;
|
|
40941
|
+
return formatResult(value, apiCall);
|
|
40942
|
+
}
|
|
40943
|
+
};
|
|
40944
|
+
});
|
|
40945
|
+
|
|
40946
|
+
// src/funcs/vendorsListVendorInvoices.ts
|
|
40947
|
+
function vendorsListVendorInvoices(client, request, options) {
|
|
40948
|
+
return new APIPromise($do18(client, request, options));
|
|
40949
|
+
}
|
|
40950
|
+
async function $do18(client, request, options) {
|
|
40951
|
+
const parsed = safeParse(request, (value) => ListVendorInvoicesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
40952
|
+
if (!parsed.ok) {
|
|
40953
|
+
return [haltIterator(parsed), { status: "invalid" }];
|
|
40954
|
+
}
|
|
40955
|
+
const payload = parsed.value;
|
|
40956
|
+
const body = null;
|
|
40957
|
+
const pathParams = {
|
|
40958
|
+
vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
|
|
40959
|
+
explode: false,
|
|
40960
|
+
charEncoding: "percent"
|
|
40961
|
+
})
|
|
40962
|
+
};
|
|
40963
|
+
const path = pathToFunc("/vendors/{vendor_id_or_me}/invoices")(pathParams);
|
|
40964
|
+
const query = queryJoin(encodeFormQuery({
|
|
40965
|
+
expand: payload.expand
|
|
40966
|
+
}, { explode: false }), encodeFormQuery({
|
|
40967
|
+
desc: payload.desc,
|
|
40968
|
+
items_per_page: payload.items_per_page,
|
|
40969
|
+
page: payload.page,
|
|
40970
|
+
sort: payload.sort
|
|
40971
|
+
}));
|
|
40972
|
+
const headers = new Headers(compactMap({
|
|
40973
|
+
Accept: "application/json"
|
|
40974
|
+
}));
|
|
40975
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
40976
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
40977
|
+
const context = {
|
|
40978
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
40979
|
+
operationID: "listVendorInvoices",
|
|
40980
|
+
oAuth2Scopes: [],
|
|
40981
|
+
resolvedSecurity: requestSecurity,
|
|
40982
|
+
securitySource: client._options.security,
|
|
40983
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
40984
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
40985
|
+
};
|
|
40986
|
+
const requestRes = client._createRequest(context, {
|
|
40987
|
+
security: requestSecurity,
|
|
40988
|
+
method: "GET",
|
|
40989
|
+
baseURL: options?.serverURL,
|
|
40990
|
+
path,
|
|
40991
|
+
headers,
|
|
40992
|
+
query,
|
|
40993
|
+
body,
|
|
40994
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
40995
|
+
}, options);
|
|
40996
|
+
if (!requestRes.ok) {
|
|
40997
|
+
return [haltIterator(requestRes), { status: "invalid" }];
|
|
40998
|
+
}
|
|
40999
|
+
const req = requestRes.value;
|
|
41000
|
+
const doResult = await client._do(req, {
|
|
41001
|
+
context,
|
|
41002
|
+
errorCodes: ["400", "401", "4XX", "5XX"],
|
|
41003
|
+
retryConfig: context.retryConfig,
|
|
41004
|
+
retryCodes: context.retryCodes
|
|
41005
|
+
});
|
|
41006
|
+
if (!doResult.ok) {
|
|
41007
|
+
return [haltIterator(doResult), { status: "request-error", request: req }];
|
|
41008
|
+
}
|
|
41009
|
+
const response = doResult.value;
|
|
41010
|
+
const responseFields = {
|
|
41011
|
+
HttpMeta: { Response: response, Request: req }
|
|
41012
|
+
};
|
|
41013
|
+
const [result, raw] = await match(json(200, ListVendorInvoicesResponse$inboundSchema, {
|
|
41014
|
+
key: "Result"
|
|
41015
|
+
}), jsonErr([400, 401], ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
41016
|
+
if (!result.ok) {
|
|
41017
|
+
return [haltIterator(result), {
|
|
41018
|
+
status: "complete",
|
|
41019
|
+
request: req,
|
|
41020
|
+
response
|
|
41021
|
+
}];
|
|
41022
|
+
}
|
|
41023
|
+
const nextFunc = (responseData) => {
|
|
41024
|
+
const page2 = request?.page ?? 1;
|
|
41025
|
+
const nextPage = page2 + 1;
|
|
41026
|
+
if (!responseData) {
|
|
41027
|
+
return { next: () => null };
|
|
41028
|
+
}
|
|
41029
|
+
const results = dlv(responseData, "items");
|
|
41030
|
+
if (!Array.isArray(results) || !results.length) {
|
|
41031
|
+
return { next: () => null };
|
|
41032
|
+
}
|
|
41033
|
+
const limit = request?.itemsPerPage ?? 0;
|
|
41034
|
+
if (results.length < limit) {
|
|
41035
|
+
return { next: () => null };
|
|
41036
|
+
}
|
|
41037
|
+
const nextVal = () => vendorsListVendorInvoices(client, {
|
|
41038
|
+
...request,
|
|
41039
|
+
page: nextPage
|
|
41040
|
+
}, options);
|
|
41041
|
+
return { next: nextVal, "~next": { page: nextPage } };
|
|
41042
|
+
};
|
|
41043
|
+
const page = { ...result, ...nextFunc(raw) };
|
|
41044
|
+
return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
|
|
41045
|
+
status: "complete",
|
|
41046
|
+
request: req,
|
|
41047
|
+
response
|
|
41048
|
+
}];
|
|
41049
|
+
}
|
|
41050
|
+
var init_vendorsListVendorInvoices = __esm(() => {
|
|
41051
|
+
init_encodings();
|
|
41052
|
+
init_matchers();
|
|
41053
|
+
init_primitives();
|
|
41054
|
+
init_schemas();
|
|
41055
|
+
init_security();
|
|
41056
|
+
init_url();
|
|
41057
|
+
init_errors();
|
|
41058
|
+
init_operations();
|
|
41059
|
+
init_async();
|
|
41060
|
+
init_operations2();
|
|
41061
|
+
});
|
|
41062
|
+
|
|
41063
|
+
// src/mcp-server/tools/vendorsListVendorInvoices.ts
|
|
41064
|
+
var args17, tool$vendorsListVendorInvoices;
|
|
41065
|
+
var init_vendorsListVendorInvoices2 = __esm(() => {
|
|
41066
|
+
init_vendorsListVendorInvoices();
|
|
41067
|
+
init_operations();
|
|
41068
|
+
init_tools();
|
|
41069
|
+
args17 = {
|
|
39945
41070
|
request: ListVendorInvoicesRequest$inboundSchema
|
|
39946
41071
|
};
|
|
39947
41072
|
tool$vendorsListVendorInvoices = {
|
|
@@ -39953,9 +41078,9 @@ List invoices for Vendors
|
|
|
39953
41078
|
Available \`expand\` scopes are:
|
|
39954
41079
|
|
|
39955
41080
|
invoice.line_items`,
|
|
39956
|
-
args:
|
|
39957
|
-
tool: async (client,
|
|
39958
|
-
const [result, apiCall] = await vendorsListVendorInvoices(client,
|
|
41081
|
+
args: args17,
|
|
41082
|
+
tool: async (client, args18, ctx) => {
|
|
41083
|
+
const [result, apiCall] = await vendorsListVendorInvoices(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
39959
41084
|
if (!result.ok) {
|
|
39960
41085
|
return {
|
|
39961
41086
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -39968,38 +41093,152 @@ invoice.line_items`,
|
|
|
39968
41093
|
};
|
|
39969
41094
|
});
|
|
39970
41095
|
|
|
39971
|
-
// src/funcs/
|
|
39972
|
-
function
|
|
39973
|
-
return new APIPromise($
|
|
41096
|
+
// src/funcs/vendorsListVendorScrubDetails.ts
|
|
41097
|
+
function vendorsListVendorScrubDetails(client, request, options) {
|
|
41098
|
+
return new APIPromise($do19(client, request, options));
|
|
39974
41099
|
}
|
|
39975
|
-
async function $
|
|
39976
|
-
const parsed = safeParse(request, (value) =>
|
|
41100
|
+
async function $do19(client, request, options) {
|
|
41101
|
+
const parsed = safeParse(request, (value) => ListVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
41102
|
+
if (!parsed.ok) {
|
|
41103
|
+
return [parsed, { status: "invalid" }];
|
|
41104
|
+
}
|
|
41105
|
+
const payload = parsed.value;
|
|
41106
|
+
const body = null;
|
|
41107
|
+
const pathParams = {
|
|
41108
|
+
vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
|
|
41109
|
+
explode: false,
|
|
41110
|
+
charEncoding: "percent"
|
|
41111
|
+
})
|
|
41112
|
+
};
|
|
41113
|
+
const path = pathToFunc("/vendors/{vendor_id_or_me}/scrub_details")(pathParams);
|
|
41114
|
+
const headers = new Headers(compactMap({
|
|
41115
|
+
Accept: "application/json"
|
|
41116
|
+
}));
|
|
41117
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
41118
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
41119
|
+
const context = {
|
|
41120
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
41121
|
+
operationID: "listVendorScrubDetails",
|
|
41122
|
+
oAuth2Scopes: [],
|
|
41123
|
+
resolvedSecurity: requestSecurity,
|
|
41124
|
+
securitySource: client._options.security,
|
|
41125
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
41126
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
41127
|
+
};
|
|
41128
|
+
const requestRes = client._createRequest(context, {
|
|
41129
|
+
security: requestSecurity,
|
|
41130
|
+
method: "GET",
|
|
41131
|
+
baseURL: options?.serverURL,
|
|
41132
|
+
path,
|
|
41133
|
+
headers,
|
|
41134
|
+
body,
|
|
41135
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
41136
|
+
}, options);
|
|
41137
|
+
if (!requestRes.ok) {
|
|
41138
|
+
return [requestRes, { status: "invalid" }];
|
|
41139
|
+
}
|
|
41140
|
+
const req = requestRes.value;
|
|
41141
|
+
const doResult = await client._do(req, {
|
|
41142
|
+
context,
|
|
41143
|
+
errorCodes: ["400", "401", "4XX", "5XX"],
|
|
41144
|
+
retryConfig: context.retryConfig,
|
|
41145
|
+
retryCodes: context.retryCodes
|
|
41146
|
+
});
|
|
41147
|
+
if (!doResult.ok) {
|
|
41148
|
+
return [doResult, { status: "request-error", request: req }];
|
|
41149
|
+
}
|
|
41150
|
+
const response = doResult.value;
|
|
41151
|
+
const responseFields = {
|
|
41152
|
+
HttpMeta: { Response: response, Request: req }
|
|
41153
|
+
};
|
|
41154
|
+
const [result] = await match(json(200, VendorScrubDetails$inboundSchema), jsonErr([400, 401], ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
41155
|
+
if (!result.ok) {
|
|
41156
|
+
return [result, { status: "complete", request: req, response }];
|
|
41157
|
+
}
|
|
41158
|
+
return [result, { status: "complete", request: req, response }];
|
|
41159
|
+
}
|
|
41160
|
+
var init_vendorsListVendorScrubDetails = __esm(() => {
|
|
41161
|
+
init_encodings();
|
|
41162
|
+
init_matchers();
|
|
41163
|
+
init_primitives();
|
|
41164
|
+
init_schemas();
|
|
41165
|
+
init_security();
|
|
41166
|
+
init_url();
|
|
41167
|
+
init_components();
|
|
41168
|
+
init_errors();
|
|
41169
|
+
init_operations();
|
|
41170
|
+
init_async();
|
|
41171
|
+
});
|
|
41172
|
+
|
|
41173
|
+
// src/mcp-server/tools/vendorsListVendorScrubDetails.ts
|
|
41174
|
+
var args18, tool$vendorsListVendorScrubDetails;
|
|
41175
|
+
var init_vendorsListVendorScrubDetails2 = __esm(() => {
|
|
41176
|
+
init_vendorsListVendorScrubDetails();
|
|
41177
|
+
init_operations();
|
|
41178
|
+
init_tools();
|
|
41179
|
+
args18 = {
|
|
41180
|
+
request: ListVendorScrubDetailsRequest$inboundSchema
|
|
41181
|
+
};
|
|
41182
|
+
tool$vendorsListVendorScrubDetails = {
|
|
41183
|
+
name: "vendors-list-vendor-scrub-details",
|
|
41184
|
+
description: `List vendor scrub details
|
|
41185
|
+
|
|
41186
|
+
List vendor scrub details`,
|
|
41187
|
+
args: args18,
|
|
41188
|
+
tool: async (client, args19, ctx) => {
|
|
41189
|
+
const [result, apiCall] = await vendorsListVendorScrubDetails(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
41190
|
+
if (!result.ok) {
|
|
41191
|
+
return {
|
|
41192
|
+
content: [{ type: "text", text: result.error.message }],
|
|
41193
|
+
isError: true
|
|
41194
|
+
};
|
|
41195
|
+
}
|
|
41196
|
+
const value = result.value;
|
|
41197
|
+
return formatResult(value, apiCall);
|
|
41198
|
+
}
|
|
41199
|
+
};
|
|
41200
|
+
});
|
|
41201
|
+
|
|
41202
|
+
// src/funcs/vendorsListVendorScrubPurchases.ts
|
|
41203
|
+
function vendorsListVendorScrubPurchases(client, request, options) {
|
|
41204
|
+
return new APIPromise($do20(client, request, options));
|
|
41205
|
+
}
|
|
41206
|
+
async function $do20(client, request, options) {
|
|
41207
|
+
const parsed = safeParse(request, (value) => ListVendorScrubPurchasesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
39977
41208
|
if (!parsed.ok) {
|
|
39978
41209
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
39979
41210
|
}
|
|
39980
41211
|
const payload = parsed.value;
|
|
39981
41212
|
const body = null;
|
|
39982
|
-
const
|
|
41213
|
+
const pathParams = {
|
|
41214
|
+
vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
|
|
41215
|
+
explode: false,
|
|
41216
|
+
charEncoding: "percent"
|
|
41217
|
+
})
|
|
41218
|
+
};
|
|
41219
|
+
const path = pathToFunc("/vendors/{vendor_id_or_me}/scrub_purchases")(pathParams);
|
|
39983
41220
|
const query = encodeFormQuery({
|
|
39984
41221
|
desc: payload.desc,
|
|
39985
41222
|
items_per_page: payload.items_per_page,
|
|
39986
|
-
job_like: payload.job_like,
|
|
39987
41223
|
page: payload.page,
|
|
39988
41224
|
sort: payload.sort
|
|
39989
41225
|
});
|
|
39990
41226
|
const headers = new Headers(compactMap({
|
|
39991
41227
|
Accept: "application/json"
|
|
39992
41228
|
}));
|
|
41229
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
41230
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
39993
41231
|
const context = {
|
|
39994
41232
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
39995
|
-
operationID: "
|
|
41233
|
+
operationID: "listVendorScrubPurchases",
|
|
39996
41234
|
oAuth2Scopes: [],
|
|
39997
|
-
resolvedSecurity:
|
|
39998
|
-
securitySource:
|
|
41235
|
+
resolvedSecurity: requestSecurity,
|
|
41236
|
+
securitySource: client._options.security,
|
|
39999
41237
|
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
40000
41238
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
40001
41239
|
};
|
|
40002
41240
|
const requestRes = client._createRequest(context, {
|
|
41241
|
+
security: requestSecurity,
|
|
40003
41242
|
method: "GET",
|
|
40004
41243
|
baseURL: options?.serverURL,
|
|
40005
41244
|
path,
|
|
@@ -40014,7 +41253,7 @@ async function $do17(client, request, options) {
|
|
|
40014
41253
|
const req = requestRes.value;
|
|
40015
41254
|
const doResult = await client._do(req, {
|
|
40016
41255
|
context,
|
|
40017
|
-
errorCodes: ["
|
|
41256
|
+
errorCodes: ["400", "401", "4XX", "5XX"],
|
|
40018
41257
|
retryConfig: context.retryConfig,
|
|
40019
41258
|
retryCodes: context.retryCodes
|
|
40020
41259
|
});
|
|
@@ -40025,9 +41264,9 @@ async function $do17(client, request, options) {
|
|
|
40025
41264
|
const responseFields = {
|
|
40026
41265
|
HttpMeta: { Response: response, Request: req }
|
|
40027
41266
|
};
|
|
40028
|
-
const [result, raw] = await match(json(200,
|
|
41267
|
+
const [result, raw] = await match(json(200, ListVendorScrubPurchasesResponse$inboundSchema, {
|
|
40029
41268
|
key: "Result"
|
|
40030
|
-
}), jsonErr(
|
|
41269
|
+
}), jsonErr([400, 401], ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
40031
41270
|
if (!result.ok) {
|
|
40032
41271
|
return [haltIterator(result), {
|
|
40033
41272
|
status: "complete",
|
|
@@ -40049,7 +41288,7 @@ async function $do17(client, request, options) {
|
|
|
40049
41288
|
if (results.length < limit) {
|
|
40050
41289
|
return { next: () => null };
|
|
40051
41290
|
}
|
|
40052
|
-
const nextVal = () =>
|
|
41291
|
+
const nextVal = () => vendorsListVendorScrubPurchases(client, {
|
|
40053
41292
|
...request,
|
|
40054
41293
|
page: nextPage
|
|
40055
41294
|
}, options);
|
|
@@ -40062,11 +41301,12 @@ async function $do17(client, request, options) {
|
|
|
40062
41301
|
response
|
|
40063
41302
|
}];
|
|
40064
41303
|
}
|
|
40065
|
-
var
|
|
41304
|
+
var init_vendorsListVendorScrubPurchases = __esm(() => {
|
|
40066
41305
|
init_encodings();
|
|
40067
41306
|
init_matchers();
|
|
40068
41307
|
init_primitives();
|
|
40069
41308
|
init_schemas();
|
|
41309
|
+
init_security();
|
|
40070
41310
|
init_url();
|
|
40071
41311
|
init_errors();
|
|
40072
41312
|
init_operations();
|
|
@@ -40074,23 +41314,23 @@ var init_vendorsListVendorJobTitles = __esm(() => {
|
|
|
40074
41314
|
init_operations2();
|
|
40075
41315
|
});
|
|
40076
41316
|
|
|
40077
|
-
// src/mcp-server/tools/
|
|
40078
|
-
var
|
|
40079
|
-
var
|
|
40080
|
-
|
|
41317
|
+
// src/mcp-server/tools/vendorsListVendorScrubPurchases.ts
|
|
41318
|
+
var args19, tool$vendorsListVendorScrubPurchases;
|
|
41319
|
+
var init_vendorsListVendorScrubPurchases2 = __esm(() => {
|
|
41320
|
+
init_vendorsListVendorScrubPurchases();
|
|
40081
41321
|
init_operations();
|
|
40082
41322
|
init_tools();
|
|
40083
|
-
|
|
40084
|
-
request:
|
|
41323
|
+
args19 = {
|
|
41324
|
+
request: ListVendorScrubPurchasesRequest$inboundSchema
|
|
40085
41325
|
};
|
|
40086
|
-
tool$
|
|
40087
|
-
name: "vendors-list-vendor-
|
|
40088
|
-
description: `List vendor
|
|
41326
|
+
tool$vendorsListVendorScrubPurchases = {
|
|
41327
|
+
name: "vendors-list-vendor-scrub-purchases",
|
|
41328
|
+
description: `List vendor scrub purchases
|
|
40089
41329
|
|
|
40090
|
-
List
|
|
40091
|
-
args:
|
|
40092
|
-
tool: async (client,
|
|
40093
|
-
const [result, apiCall] = await
|
|
41330
|
+
List vendor scrub purchases`,
|
|
41331
|
+
args: args19,
|
|
41332
|
+
tool: async (client, args20, ctx) => {
|
|
41333
|
+
const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
40094
41334
|
if (!result.ok) {
|
|
40095
41335
|
return {
|
|
40096
41336
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -40103,11 +41343,223 @@ List valid job titles for Vendors. This can be used during sign up or in a filte
|
|
|
40103
41343
|
};
|
|
40104
41344
|
});
|
|
40105
41345
|
|
|
41346
|
+
// src/funcs/webhooksGetWebhookEndpoint.ts
|
|
41347
|
+
function webhooksGetWebhookEndpoint(client, request, options) {
|
|
41348
|
+
return new APIPromise($do21(client, request, options));
|
|
41349
|
+
}
|
|
41350
|
+
async function $do21(client, request, options) {
|
|
41351
|
+
const parsed = safeParse(request, (value) => GetWebhookEndpointRequest$outboundSchema.parse(value), "Input validation failed");
|
|
41352
|
+
if (!parsed.ok) {
|
|
41353
|
+
return [parsed, { status: "invalid" }];
|
|
41354
|
+
}
|
|
41355
|
+
const payload = parsed.value;
|
|
41356
|
+
const body = null;
|
|
41357
|
+
const pathParams = {
|
|
41358
|
+
id: encodeSimple("id", payload.id, {
|
|
41359
|
+
explode: false,
|
|
41360
|
+
charEncoding: "percent"
|
|
41361
|
+
})
|
|
41362
|
+
};
|
|
41363
|
+
const path = pathToFunc("/webhooks/{id}")(pathParams);
|
|
41364
|
+
const headers = new Headers(compactMap({
|
|
41365
|
+
Accept: "application/json"
|
|
41366
|
+
}));
|
|
41367
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
41368
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
41369
|
+
const context = {
|
|
41370
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
41371
|
+
operationID: "getWebhookEndpoint",
|
|
41372
|
+
oAuth2Scopes: [],
|
|
41373
|
+
resolvedSecurity: requestSecurity,
|
|
41374
|
+
securitySource: client._options.security,
|
|
41375
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
41376
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
41377
|
+
};
|
|
41378
|
+
const requestRes = client._createRequest(context, {
|
|
41379
|
+
security: requestSecurity,
|
|
41380
|
+
method: "GET",
|
|
41381
|
+
baseURL: options?.serverURL,
|
|
41382
|
+
path,
|
|
41383
|
+
headers,
|
|
41384
|
+
body,
|
|
41385
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
41386
|
+
}, options);
|
|
41387
|
+
if (!requestRes.ok) {
|
|
41388
|
+
return [requestRes, { status: "invalid" }];
|
|
41389
|
+
}
|
|
41390
|
+
const req = requestRes.value;
|
|
41391
|
+
const doResult = await client._do(req, {
|
|
41392
|
+
context,
|
|
41393
|
+
errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
|
|
41394
|
+
retryConfig: context.retryConfig,
|
|
41395
|
+
retryCodes: context.retryCodes
|
|
41396
|
+
});
|
|
41397
|
+
if (!doResult.ok) {
|
|
41398
|
+
return [doResult, { status: "request-error", request: req }];
|
|
41399
|
+
}
|
|
41400
|
+
const response = doResult.value;
|
|
41401
|
+
const responseFields = {
|
|
41402
|
+
HttpMeta: { Response: response, Request: req }
|
|
41403
|
+
};
|
|
41404
|
+
const [result] = await match(json(200, WebhookEndpoint$inboundSchema), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
41405
|
+
if (!result.ok) {
|
|
41406
|
+
return [result, { status: "complete", request: req, response }];
|
|
41407
|
+
}
|
|
41408
|
+
return [result, { status: "complete", request: req, response }];
|
|
41409
|
+
}
|
|
41410
|
+
var init_webhooksGetWebhookEndpoint = __esm(() => {
|
|
41411
|
+
init_encodings();
|
|
41412
|
+
init_matchers();
|
|
41413
|
+
init_primitives();
|
|
41414
|
+
init_schemas();
|
|
41415
|
+
init_security();
|
|
41416
|
+
init_url();
|
|
41417
|
+
init_components();
|
|
41418
|
+
init_errors();
|
|
41419
|
+
init_operations();
|
|
41420
|
+
init_async();
|
|
41421
|
+
});
|
|
41422
|
+
|
|
41423
|
+
// src/mcp-server/tools/webhooksGetWebhookEndpoint.ts
|
|
41424
|
+
var args20, tool$webhooksGetWebhookEndpoint;
|
|
41425
|
+
var init_webhooksGetWebhookEndpoint2 = __esm(() => {
|
|
41426
|
+
init_webhooksGetWebhookEndpoint();
|
|
41427
|
+
init_operations();
|
|
41428
|
+
init_tools();
|
|
41429
|
+
args20 = {
|
|
41430
|
+
request: GetWebhookEndpointRequest$inboundSchema
|
|
41431
|
+
};
|
|
41432
|
+
tool$webhooksGetWebhookEndpoint = {
|
|
41433
|
+
name: "webhooks-get-webhook-endpoint",
|
|
41434
|
+
description: `Retrieves the webhook endpoint with the given ID.
|
|
41435
|
+
|
|
41436
|
+
Returns the definition of a webhook endpoint by ID.`,
|
|
41437
|
+
args: args20,
|
|
41438
|
+
tool: async (client, args21, ctx) => {
|
|
41439
|
+
const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
41440
|
+
if (!result.ok) {
|
|
41441
|
+
return {
|
|
41442
|
+
content: [{ type: "text", text: result.error.message }],
|
|
41443
|
+
isError: true
|
|
41444
|
+
};
|
|
41445
|
+
}
|
|
41446
|
+
const value = result.value;
|
|
41447
|
+
return formatResult(value, apiCall);
|
|
41448
|
+
}
|
|
41449
|
+
};
|
|
41450
|
+
});
|
|
41451
|
+
|
|
41452
|
+
// src/funcs/webhooksListAllWebhookEndpoints.ts
|
|
41453
|
+
function webhooksListAllWebhookEndpoints(client, request, options) {
|
|
41454
|
+
return new APIPromise($do22(client, request, options));
|
|
41455
|
+
}
|
|
41456
|
+
async function $do22(client, request, options) {
|
|
41457
|
+
const parsed = safeParse(request, (value) => ListAllWebhookEndpointsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
41458
|
+
if (!parsed.ok) {
|
|
41459
|
+
return [parsed, { status: "invalid" }];
|
|
41460
|
+
}
|
|
41461
|
+
const payload = parsed.value;
|
|
41462
|
+
const body = null;
|
|
41463
|
+
const path = pathToFunc("/webhooks")();
|
|
41464
|
+
const query = encodeFormQuery({
|
|
41465
|
+
desc: payload.desc,
|
|
41466
|
+
items_per_page: payload.items_per_page,
|
|
41467
|
+
page: payload.page,
|
|
41468
|
+
sort: payload.sort
|
|
41469
|
+
});
|
|
41470
|
+
const headers = new Headers(compactMap({
|
|
41471
|
+
Accept: "application/json"
|
|
41472
|
+
}));
|
|
41473
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
41474
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
41475
|
+
const context = {
|
|
41476
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
41477
|
+
operationID: "listAllWebhookEndpoints",
|
|
41478
|
+
oAuth2Scopes: [],
|
|
41479
|
+
resolvedSecurity: requestSecurity,
|
|
41480
|
+
securitySource: client._options.security,
|
|
41481
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
41482
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
41483
|
+
};
|
|
41484
|
+
const requestRes = client._createRequest(context, {
|
|
41485
|
+
security: requestSecurity,
|
|
41486
|
+
method: "GET",
|
|
41487
|
+
baseURL: options?.serverURL,
|
|
41488
|
+
path,
|
|
41489
|
+
headers,
|
|
41490
|
+
query,
|
|
41491
|
+
body,
|
|
41492
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
41493
|
+
}, options);
|
|
41494
|
+
if (!requestRes.ok) {
|
|
41495
|
+
return [requestRes, { status: "invalid" }];
|
|
41496
|
+
}
|
|
41497
|
+
const req = requestRes.value;
|
|
41498
|
+
const doResult = await client._do(req, {
|
|
41499
|
+
context,
|
|
41500
|
+
errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
|
|
41501
|
+
retryConfig: context.retryConfig,
|
|
41502
|
+
retryCodes: context.retryCodes
|
|
41503
|
+
});
|
|
41504
|
+
if (!doResult.ok) {
|
|
41505
|
+
return [doResult, { status: "request-error", request: req }];
|
|
41506
|
+
}
|
|
41507
|
+
const response = doResult.value;
|
|
41508
|
+
const responseFields = {
|
|
41509
|
+
HttpMeta: { Response: response, Request: req }
|
|
41510
|
+
};
|
|
41511
|
+
const [result] = await match(json(200, ListAllWebhookEndpointsResponseBody$inboundSchema), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
41512
|
+
if (!result.ok) {
|
|
41513
|
+
return [result, { status: "complete", request: req, response }];
|
|
41514
|
+
}
|
|
41515
|
+
return [result, { status: "complete", request: req, response }];
|
|
41516
|
+
}
|
|
41517
|
+
var init_webhooksListAllWebhookEndpoints = __esm(() => {
|
|
41518
|
+
init_encodings();
|
|
41519
|
+
init_matchers();
|
|
41520
|
+
init_primitives();
|
|
41521
|
+
init_schemas();
|
|
41522
|
+
init_security();
|
|
41523
|
+
init_url();
|
|
41524
|
+
init_errors();
|
|
41525
|
+
init_operations();
|
|
41526
|
+
init_async();
|
|
41527
|
+
});
|
|
41528
|
+
|
|
41529
|
+
// src/mcp-server/tools/webhooksListAllWebhookEndpoints.ts
|
|
41530
|
+
var args21, tool$webhooksListAllWebhookEndpoints;
|
|
41531
|
+
var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
|
|
41532
|
+
init_webhooksListAllWebhookEndpoints();
|
|
41533
|
+
init_operations();
|
|
41534
|
+
init_tools();
|
|
41535
|
+
args21 = {
|
|
41536
|
+
request: ListAllWebhookEndpointsRequest$inboundSchema
|
|
41537
|
+
};
|
|
41538
|
+
tool$webhooksListAllWebhookEndpoints = {
|
|
41539
|
+
name: "webhooks-list-all-webhook-endpoints",
|
|
41540
|
+
description: `List all webhook endpoints
|
|
41541
|
+
|
|
41542
|
+
Returns a list of your webhook endpoints.`,
|
|
41543
|
+
args: args21,
|
|
41544
|
+
tool: async (client, args22, ctx) => {
|
|
41545
|
+
const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
41546
|
+
if (!result.ok) {
|
|
41547
|
+
return {
|
|
41548
|
+
content: [{ type: "text", text: result.error.message }],
|
|
41549
|
+
isError: true
|
|
41550
|
+
};
|
|
41551
|
+
}
|
|
41552
|
+
const value = result.value;
|
|
41553
|
+
return formatResult(value, apiCall);
|
|
41554
|
+
}
|
|
41555
|
+
};
|
|
41556
|
+
});
|
|
41557
|
+
|
|
40106
41558
|
// src/mcp-server/server.ts
|
|
40107
41559
|
function createMCPServer(deps) {
|
|
40108
41560
|
const server = new McpServer({
|
|
40109
41561
|
name: "GreenSecurity",
|
|
40110
|
-
version: "0.
|
|
41562
|
+
version: "0.21.3"
|
|
40111
41563
|
});
|
|
40112
41564
|
const client = new GreenSecurityCore({
|
|
40113
41565
|
security: deps.security,
|
|
@@ -40119,14 +41571,17 @@ function createMCPServer(deps) {
|
|
|
40119
41571
|
const tool = createRegisterTool(deps.logger, server, client, scopes, allowedTools);
|
|
40120
41572
|
const resource = createRegisterResource(deps.logger, server, client, scopes);
|
|
40121
41573
|
const resourceTemplate = createRegisterResourceTemplate(deps.logger, server, client, scopes);
|
|
40122
|
-
const
|
|
41574
|
+
const prompt = createRegisterPrompt(deps.logger, server, client, scopes);
|
|
41575
|
+
const register = { tool, resource, resourceTemplate, prompt };
|
|
40123
41576
|
tool(tool$vendorsCreateVendorRegistration);
|
|
40124
|
-
tool(tool$vendorsListVendorJobTitles);
|
|
40125
41577
|
tool(tool$vendorsListVendorCredentials);
|
|
40126
41578
|
tool(tool$vendorsExpediteTimeRemaining);
|
|
40127
41579
|
tool(tool$vendorsListVendorInvoices);
|
|
40128
41580
|
tool(tool$vendorsGetVendorInvoiceDetails);
|
|
40129
41581
|
tool(tool$vendorsListVendorFacilityStatuses);
|
|
41582
|
+
tool(tool$vendorsListVendorScrubPurchases);
|
|
41583
|
+
tool(tool$vendorsListVendorScrubDetails);
|
|
41584
|
+
tool(tool$vendorsGetVendorsDetails);
|
|
40130
41585
|
tool(tool$usersGetCurrentUser);
|
|
40131
41586
|
tool(tool$usersGetUserById);
|
|
40132
41587
|
tool(tool$usersLogsUserIntoTheSystem);
|
|
@@ -40137,6 +41592,9 @@ function createMCPServer(deps) {
|
|
|
40137
41592
|
tool(tool$organizationsGetFacility);
|
|
40138
41593
|
tool(tool$supportArticlesListOrSearchSupportArticles);
|
|
40139
41594
|
tool(tool$supportArticlesGetSupportArticle);
|
|
41595
|
+
tool(tool$webhooksListAllWebhookEndpoints);
|
|
41596
|
+
tool(tool$webhooksGetWebhookEndpoint);
|
|
41597
|
+
tool(tool$vendorScansVendorScanOut);
|
|
40140
41598
|
return server;
|
|
40141
41599
|
}
|
|
40142
41600
|
var init_server2 = __esm(() => {
|
|
@@ -40155,13 +41613,18 @@ var init_server2 = __esm(() => {
|
|
|
40155
41613
|
init_usersMagiclink2();
|
|
40156
41614
|
init_usersPassword2();
|
|
40157
41615
|
init_usersPasswordResetRequest2();
|
|
41616
|
+
init_vendorScansVendorScanOut2();
|
|
40158
41617
|
init_vendorsCreateVendorRegistration2();
|
|
40159
41618
|
init_vendorsExpediteTimeRemaining2();
|
|
40160
41619
|
init_vendorsGetVendorInvoiceDetails2();
|
|
41620
|
+
init_vendorsGetVendorsDetails2();
|
|
40161
41621
|
init_vendorsListVendorCredentials2();
|
|
40162
41622
|
init_vendorsListVendorFacilityStatuses2();
|
|
40163
41623
|
init_vendorsListVendorInvoices2();
|
|
40164
|
-
|
|
41624
|
+
init_vendorsListVendorScrubDetails2();
|
|
41625
|
+
init_vendorsListVendorScrubPurchases2();
|
|
41626
|
+
init_webhooksGetWebhookEndpoint2();
|
|
41627
|
+
init_webhooksListAllWebhookEndpoints2();
|
|
40165
41628
|
});
|
|
40166
41629
|
|
|
40167
41630
|
// src/mcp-server/cli/start/impl.ts
|
|
@@ -41359,7 +42822,7 @@ var routes = rn({
|
|
|
41359
42822
|
var app = Ve(routes, {
|
|
41360
42823
|
name: "mcp",
|
|
41361
42824
|
versionInfo: {
|
|
41362
|
-
currentVersion: "0.
|
|
42825
|
+
currentVersion: "0.21.3"
|
|
41363
42826
|
}
|
|
41364
42827
|
});
|
|
41365
42828
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -41367,5 +42830,5 @@ export {
|
|
|
41367
42830
|
app
|
|
41368
42831
|
};
|
|
41369
42832
|
|
|
41370
|
-
//# debugId=
|
|
42833
|
+
//# debugId=66845B897BDD41E364756E2164756E21
|
|
41371
42834
|
//# sourceMappingURL=mcp-server.js.map
|