@greensecurity/javascript-sdk 0.37.10 → 0.37.14
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/README.md +16 -1
- package/bin/mcp-server.js +1744 -618
- package/bin/mcp-server.js.map +39 -22
- package/dist/commonjs/__tests__/organizations.test.js +42 -0
- package/dist/commonjs/__tests__/organizations.test.js.map +1 -1
- package/dist/commonjs/__tests__/systems.test.d.ts +2 -0
- package/dist/commonjs/__tests__/systems.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/systems.test.js +46 -0
- package/dist/commonjs/__tests__/systems.test.js.map +1 -0
- package/dist/commonjs/__tests__/vendors.test.js +49 -0
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +28 -3
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/funcs/organizationsListOrSearchDepartmentContacts.d.ts +26 -0
- package/dist/commonjs/funcs/organizationsListOrSearchDepartmentContacts.d.ts.map +1 -0
- package/dist/commonjs/funcs/organizationsListOrSearchDepartmentContacts.js +168 -0
- package/dist/commonjs/funcs/organizationsListOrSearchDepartmentContacts.js.map +1 -0
- package/dist/commonjs/funcs/systemsListSystems.d.ts +25 -0
- package/dist/commonjs/funcs/systemsListSystems.d.ts.map +1 -0
- package/dist/commonjs/funcs/systemsListSystems.js +163 -0
- package/dist/commonjs/funcs/systemsListSystems.js.map +1 -0
- package/dist/commonjs/funcs/vendorsGetSubscription.d.ts +22 -0
- package/dist/commonjs/funcs/vendorsGetSubscription.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorsGetSubscription.js +130 -0
- package/dist/commonjs/funcs/vendorsGetSubscription.js.map +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts +3 -0
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.js +3 -0
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorTypes.d.ts +21 -0
- package/dist/commonjs/funcs/vendorsListVendorTypes.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorsListVendorTypes.js +156 -0
- package/dist/commonjs/funcs/vendorsListVendorTypes.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +10 -2
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/organizationsListOrSearchDepartmentContacts.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/organizationsListOrSearchDepartmentContacts.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/organizationsListOrSearchDepartmentContacts.js +69 -0
- package/dist/commonjs/mcp-server/tools/organizationsListOrSearchDepartmentContacts.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/systemsListSystems.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/systemsListSystems.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/systemsListSystems.js +68 -0
- package/dist/commonjs/mcp-server/tools/systemsListSystems.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetSubscription.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetSubscription.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetSubscription.js +68 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetSubscription.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorsDetails.js +4 -1
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/vendorsListVendorTypes.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/vendorsListVendorTypes.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsListVendorTypes.js +64 -0
- package/dist/commonjs/mcp-server/tools/vendorsListVendorTypes.js.map +1 -0
- package/dist/commonjs/models/components/company.d.ts +3 -0
- package/dist/commonjs/models/components/company.d.ts.map +1 -1
- package/dist/commonjs/models/components/company.js +5 -0
- package/dist/commonjs/models/components/company.js.map +1 -1
- package/dist/commonjs/models/components/companyvendortyperestriction.d.ts +80 -0
- package/dist/commonjs/models/components/companyvendortyperestriction.d.ts.map +1 -0
- package/dist/commonjs/models/components/companyvendortyperestriction.js +132 -0
- package/dist/commonjs/models/components/companyvendortyperestriction.js.map +1 -0
- package/dist/commonjs/models/components/contact.d.ts +30 -4
- package/dist/commonjs/models/components/contact.d.ts.map +1 -1
- package/dist/commonjs/models/components/contact.js +35 -5
- package/dist/commonjs/models/components/contact.js.map +1 -1
- package/dist/commonjs/models/components/departmentmembership.d.ts +80 -0
- package/dist/commonjs/models/components/departmentmembership.d.ts.map +1 -0
- package/dist/commonjs/models/components/departmentmembership.js +123 -0
- package/dist/commonjs/models/components/departmentmembership.js.map +1 -0
- package/dist/commonjs/models/components/expand.d.ts +21 -0
- package/dist/commonjs/models/components/expand.d.ts.map +1 -1
- package/dist/commonjs/models/components/expand.js +7 -0
- package/dist/commonjs/models/components/expand.js.map +1 -1
- package/dist/commonjs/models/components/facility.d.ts +18 -18
- package/dist/commonjs/models/components/facility.d.ts.map +1 -1
- package/dist/commonjs/models/components/facility.js +21 -21
- package/dist/commonjs/models/components/facility.js.map +1 -1
- package/dist/commonjs/models/components/facilitysummary.d.ts +28 -0
- package/dist/commonjs/models/components/facilitysummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/facilitysummary.js +50 -1
- package/dist/commonjs/models/components/facilitysummary.js.map +1 -1
- package/dist/commonjs/models/components/facilityvendortype.d.ts +71 -0
- package/dist/commonjs/models/components/facilityvendortype.d.ts.map +1 -0
- package/dist/commonjs/models/components/facilityvendortype.js +137 -0
- package/dist/commonjs/models/components/facilityvendortype.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +5 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +5 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/invoiceitem.d.ts +33 -0
- package/dist/commonjs/models/components/invoiceitem.d.ts.map +1 -1
- package/dist/commonjs/models/components/invoiceitem.js +48 -1
- package/dist/commonjs/models/components/invoiceitem.js.map +1 -1
- package/dist/commonjs/models/components/productvariant.d.ts +4 -4
- package/dist/commonjs/models/components/productvariant.d.ts.map +1 -1
- package/dist/commonjs/models/components/productvariant.js +4 -4
- package/dist/commonjs/models/components/productvariant.js.map +1 -1
- package/dist/commonjs/models/components/subscription.d.ts +3 -0
- package/dist/commonjs/models/components/subscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/subscription.js +5 -0
- package/dist/commonjs/models/components/subscription.js.map +1 -1
- package/dist/commonjs/models/components/systemsummary.d.ts +3 -0
- package/dist/commonjs/models/components/systemsummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/systemsummary.js +3 -0
- package/dist/commonjs/models/components/systemsummary.js.map +1 -1
- package/dist/commonjs/models/components/usersummary.d.ts +34 -0
- package/dist/commonjs/models/components/usersummary.d.ts.map +1 -0
- package/dist/commonjs/models/components/usersummary.js +71 -0
- package/dist/commonjs/models/components/usersummary.js.map +1 -0
- package/dist/commonjs/models/components/vendor.d.ts +56 -0
- package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendor.js +69 -1
- package/dist/commonjs/models/components/vendor.js.map +1 -1
- package/dist/commonjs/models/components/vendorgroup.d.ts +38 -0
- package/dist/commonjs/models/components/vendorgroup.d.ts.map +1 -0
- package/dist/commonjs/models/components/vendorgroup.js +84 -0
- package/dist/commonjs/models/components/vendorgroup.js.map +1 -0
- package/dist/commonjs/models/components/zoneconfig.d.ts +15 -15
- package/dist/commonjs/models/components/zoneconfig.d.ts.map +1 -1
- package/dist/commonjs/models/components/zoneconfig.js +18 -18
- package/dist/commonjs/models/components/zoneconfig.js.map +1 -1
- package/dist/commonjs/models/operations/getsubscription.d.ts +69 -0
- package/dist/commonjs/models/operations/getsubscription.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getsubscription.js +108 -0
- package/dist/commonjs/models/operations/getsubscription.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +4 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +4 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listorsearchdepartmentcontacts.d.ts +121 -0
- package/dist/commonjs/models/operations/listorsearchdepartmentcontacts.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listorsearchdepartmentcontacts.js +155 -0
- package/dist/commonjs/models/operations/listorsearchdepartmentcontacts.js.map +1 -0
- package/dist/commonjs/models/operations/listsystems.d.ts +116 -0
- package/dist/commonjs/models/operations/listsystems.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listsystems.js +155 -0
- package/dist/commonjs/models/operations/listsystems.js.map +1 -0
- package/dist/commonjs/models/operations/listvendortypes.d.ts +106 -0
- package/dist/commonjs/models/operations/listvendortypes.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listvendortypes.js +149 -0
- package/dist/commonjs/models/operations/listvendortypes.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +4 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +4 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/organizationsListOrSearchDepartmentContacts.d.ts +103 -0
- package/dist/commonjs/react-query/organizationsListOrSearchDepartmentContacts.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsListOrSearchDepartmentContacts.js +184 -0
- package/dist/commonjs/react-query/organizationsListOrSearchDepartmentContacts.js.map +1 -0
- package/dist/commonjs/react-query/systemsListSystems.d.ts +97 -0
- package/dist/commonjs/react-query/systemsListSystems.d.ts.map +1 -0
- package/dist/commonjs/react-query/systemsListSystems.js +175 -0
- package/dist/commonjs/react-query/systemsListSystems.js.map +1 -0
- package/dist/commonjs/react-query/vendorsGetSubscription.d.ts +51 -0
- package/dist/commonjs/react-query/vendorsGetSubscription.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsGetSubscription.js +103 -0
- package/dist/commonjs/react-query/vendorsGetSubscription.js.map +1 -0
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.d.ts +6 -0
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.js +6 -0
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/commonjs/react-query/vendorsListVendorTypes.d.ts +75 -0
- package/dist/commonjs/react-query/vendorsListVendorTypes.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsListVendorTypes.js +155 -0
- package/dist/commonjs/react-query/vendorsListVendorTypes.js.map +1 -0
- package/dist/commonjs/sdk/organizations.d.ts +14 -0
- package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
- package/dist/commonjs/sdk/organizations.js +15 -0
- package/dist/commonjs/sdk/organizations.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/systems.d.ts +19 -0
- package/dist/commonjs/sdk/systems.d.ts.map +1 -0
- package/dist/commonjs/sdk/systems.js +26 -0
- package/dist/commonjs/sdk/systems.js.map +1 -0
- package/dist/commonjs/sdk/vendors.d.ts +30 -7
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +36 -9
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/esm/__tests__/organizations.test.js +42 -0
- package/dist/esm/__tests__/organizations.test.js.map +1 -1
- package/dist/esm/__tests__/systems.test.d.ts +2 -0
- package/dist/esm/__tests__/systems.test.d.ts.map +1 -0
- package/dist/esm/__tests__/systems.test.js +44 -0
- package/dist/esm/__tests__/systems.test.js.map +1 -0
- package/dist/esm/__tests__/vendors.test.js +49 -0
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +28 -3
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/funcs/organizationsListOrSearchDepartmentContacts.d.ts +26 -0
- package/dist/esm/funcs/organizationsListOrSearchDepartmentContacts.d.ts.map +1 -0
- package/dist/esm/funcs/organizationsListOrSearchDepartmentContacts.js +132 -0
- package/dist/esm/funcs/organizationsListOrSearchDepartmentContacts.js.map +1 -0
- package/dist/esm/funcs/systemsListSystems.d.ts +25 -0
- package/dist/esm/funcs/systemsListSystems.d.ts.map +1 -0
- package/dist/esm/funcs/systemsListSystems.js +127 -0
- package/dist/esm/funcs/systemsListSystems.js.map +1 -0
- package/dist/esm/funcs/vendorsGetSubscription.d.ts +22 -0
- package/dist/esm/funcs/vendorsGetSubscription.d.ts.map +1 -0
- package/dist/esm/funcs/vendorsGetSubscription.js +94 -0
- package/dist/esm/funcs/vendorsGetSubscription.js.map +1 -0
- package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts +3 -0
- package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorsDetails.js +3 -0
- package/dist/esm/funcs/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorTypes.d.ts +21 -0
- package/dist/esm/funcs/vendorsListVendorTypes.d.ts.map +1 -0
- package/dist/esm/funcs/vendorsListVendorTypes.js +120 -0
- package/dist/esm/funcs/vendorsListVendorTypes.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +10 -2
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/organizationsListOrSearchDepartmentContacts.d.ts +8 -0
- package/dist/esm/mcp-server/tools/organizationsListOrSearchDepartmentContacts.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/organizationsListOrSearchDepartmentContacts.js +33 -0
- package/dist/esm/mcp-server/tools/organizationsListOrSearchDepartmentContacts.js.map +1 -0
- package/dist/esm/mcp-server/tools/systemsListSystems.d.ts +8 -0
- package/dist/esm/mcp-server/tools/systemsListSystems.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/systemsListSystems.js +32 -0
- package/dist/esm/mcp-server/tools/systemsListSystems.js.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsGetSubscription.d.ts +8 -0
- package/dist/esm/mcp-server/tools/vendorsGetSubscription.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsGetSubscription.js +32 -0
- package/dist/esm/mcp-server/tools/vendorsGetSubscription.js.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/vendorsGetVendorsDetails.js +4 -1
- package/dist/esm/mcp-server/tools/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/esm/mcp-server/tools/vendorsListVendorTypes.d.ts +8 -0
- package/dist/esm/mcp-server/tools/vendorsListVendorTypes.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsListVendorTypes.js +28 -0
- package/dist/esm/mcp-server/tools/vendorsListVendorTypes.js.map +1 -0
- package/dist/esm/models/components/company.d.ts +3 -0
- package/dist/esm/models/components/company.d.ts.map +1 -1
- package/dist/esm/models/components/company.js +5 -0
- package/dist/esm/models/components/company.js.map +1 -1
- package/dist/esm/models/components/companyvendortyperestriction.d.ts +80 -0
- package/dist/esm/models/components/companyvendortyperestriction.d.ts.map +1 -0
- package/dist/esm/models/components/companyvendortyperestriction.js +90 -0
- package/dist/esm/models/components/companyvendortyperestriction.js.map +1 -0
- package/dist/esm/models/components/contact.d.ts +30 -4
- package/dist/esm/models/components/contact.d.ts.map +1 -1
- package/dist/esm/models/components/contact.js +32 -4
- package/dist/esm/models/components/contact.js.map +1 -1
- package/dist/esm/models/components/departmentmembership.d.ts +80 -0
- package/dist/esm/models/components/departmentmembership.d.ts.map +1 -0
- package/dist/esm/models/components/departmentmembership.js +81 -0
- package/dist/esm/models/components/departmentmembership.js.map +1 -0
- package/dist/esm/models/components/expand.d.ts +21 -0
- package/dist/esm/models/components/expand.d.ts.map +1 -1
- package/dist/esm/models/components/expand.js +7 -0
- package/dist/esm/models/components/expand.js.map +1 -1
- package/dist/esm/models/components/facility.d.ts +18 -18
- package/dist/esm/models/components/facility.d.ts.map +1 -1
- package/dist/esm/models/components/facility.js +18 -18
- package/dist/esm/models/components/facility.js.map +1 -1
- package/dist/esm/models/components/facilitysummary.d.ts +28 -0
- package/dist/esm/models/components/facilitysummary.d.ts.map +1 -1
- package/dist/esm/models/components/facilitysummary.js +47 -0
- package/dist/esm/models/components/facilitysummary.js.map +1 -1
- package/dist/esm/models/components/facilityvendortype.d.ts +71 -0
- package/dist/esm/models/components/facilityvendortype.d.ts.map +1 -0
- package/dist/esm/models/components/facilityvendortype.js +97 -0
- package/dist/esm/models/components/facilityvendortype.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +5 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +5 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/invoiceitem.d.ts +33 -0
- package/dist/esm/models/components/invoiceitem.d.ts.map +1 -1
- package/dist/esm/models/components/invoiceitem.js +45 -0
- package/dist/esm/models/components/invoiceitem.js.map +1 -1
- package/dist/esm/models/components/productvariant.d.ts +4 -4
- package/dist/esm/models/components/productvariant.d.ts.map +1 -1
- package/dist/esm/models/components/productvariant.js +4 -4
- package/dist/esm/models/components/productvariant.js.map +1 -1
- package/dist/esm/models/components/subscription.d.ts +3 -0
- package/dist/esm/models/components/subscription.d.ts.map +1 -1
- package/dist/esm/models/components/subscription.js +5 -0
- package/dist/esm/models/components/subscription.js.map +1 -1
- package/dist/esm/models/components/systemsummary.d.ts +3 -0
- package/dist/esm/models/components/systemsummary.d.ts.map +1 -1
- package/dist/esm/models/components/systemsummary.js +3 -0
- package/dist/esm/models/components/systemsummary.js.map +1 -1
- package/dist/esm/models/components/usersummary.d.ts +34 -0
- package/dist/esm/models/components/usersummary.d.ts.map +1 -0
- package/dist/esm/models/components/usersummary.js +33 -0
- package/dist/esm/models/components/usersummary.js.map +1 -0
- package/dist/esm/models/components/vendor.d.ts +56 -0
- package/dist/esm/models/components/vendor.d.ts.map +1 -1
- package/dist/esm/models/components/vendor.js +64 -0
- package/dist/esm/models/components/vendor.js.map +1 -1
- package/dist/esm/models/components/vendorgroup.d.ts +38 -0
- package/dist/esm/models/components/vendorgroup.d.ts.map +1 -0
- package/dist/esm/models/components/vendorgroup.js +46 -0
- package/dist/esm/models/components/vendorgroup.js.map +1 -0
- package/dist/esm/models/components/zoneconfig.d.ts +15 -15
- package/dist/esm/models/components/zoneconfig.d.ts.map +1 -1
- package/dist/esm/models/components/zoneconfig.js +15 -15
- package/dist/esm/models/components/zoneconfig.js.map +1 -1
- package/dist/esm/models/operations/getsubscription.d.ts +69 -0
- package/dist/esm/models/operations/getsubscription.d.ts.map +1 -0
- package/dist/esm/models/operations/getsubscription.js +68 -0
- package/dist/esm/models/operations/getsubscription.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +4 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +4 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listorsearchdepartmentcontacts.d.ts +121 -0
- package/dist/esm/models/operations/listorsearchdepartmentcontacts.d.ts.map +1 -0
- package/dist/esm/models/operations/listorsearchdepartmentcontacts.js +113 -0
- package/dist/esm/models/operations/listorsearchdepartmentcontacts.js.map +1 -0
- package/dist/esm/models/operations/listsystems.d.ts +116 -0
- package/dist/esm/models/operations/listsystems.d.ts.map +1 -0
- package/dist/esm/models/operations/listsystems.js +113 -0
- package/dist/esm/models/operations/listsystems.js.map +1 -0
- package/dist/esm/models/operations/listvendortypes.d.ts +106 -0
- package/dist/esm/models/operations/listvendortypes.d.ts.map +1 -0
- package/dist/esm/models/operations/listvendortypes.js +107 -0
- package/dist/esm/models/operations/listvendortypes.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +4 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +4 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/organizationsListOrSearchDepartmentContacts.d.ts +103 -0
- package/dist/esm/react-query/organizationsListOrSearchDepartmentContacts.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsListOrSearchDepartmentContacts.js +171 -0
- package/dist/esm/react-query/organizationsListOrSearchDepartmentContacts.js.map +1 -0
- package/dist/esm/react-query/systemsListSystems.d.ts +97 -0
- package/dist/esm/react-query/systemsListSystems.d.ts.map +1 -0
- package/dist/esm/react-query/systemsListSystems.js +162 -0
- package/dist/esm/react-query/systemsListSystems.js.map +1 -0
- package/dist/esm/react-query/vendorsGetSubscription.d.ts +51 -0
- package/dist/esm/react-query/vendorsGetSubscription.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsGetSubscription.js +93 -0
- package/dist/esm/react-query/vendorsGetSubscription.js.map +1 -0
- package/dist/esm/react-query/vendorsGetVendorsDetails.d.ts +6 -0
- package/dist/esm/react-query/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorsDetails.js +6 -0
- package/dist/esm/react-query/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/esm/react-query/vendorsListVendorTypes.d.ts +75 -0
- package/dist/esm/react-query/vendorsListVendorTypes.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsListVendorTypes.js +142 -0
- package/dist/esm/react-query/vendorsListVendorTypes.js.map +1 -0
- package/dist/esm/sdk/organizations.d.ts +14 -0
- package/dist/esm/sdk/organizations.d.ts.map +1 -1
- package/dist/esm/sdk/organizations.js +15 -0
- package/dist/esm/sdk/organizations.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/systems.d.ts +19 -0
- package/dist/esm/sdk/systems.d.ts.map +1 -0
- package/dist/esm/sdk/systems.js +22 -0
- package/dist/esm/sdk/systems.js.map +1 -0
- package/dist/esm/sdk/vendors.d.ts +30 -7
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +36 -9
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/organizations.test.ts +45 -0
- package/src/__tests__/systems.test.ts +47 -0
- package/src/__tests__/vendors.test.ts +55 -0
- package/src/__tests__/zones.test.ts +28 -3
- package/src/funcs/organizationsListOrSearchDepartmentContacts.ts +270 -0
- package/src/funcs/systemsListSystems.ts +257 -0
- package/src/funcs/vendorsGetSubscription.ts +186 -0
- package/src/funcs/vendorsGetVendorsDetails.ts +3 -0
- package/src/funcs/vendorsListVendorTypes.ts +247 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +10 -2
- package/src/mcp-server/tools/organizationsListOrSearchDepartmentContacts.ts +44 -0
- package/src/mcp-server/tools/systemsListSystems.ts +41 -0
- package/src/mcp-server/tools/vendorsGetSubscription.ts +41 -0
- package/src/mcp-server/tools/vendorsGetVendorsDetails.ts +4 -1
- package/src/mcp-server/tools/vendorsListVendorTypes.ts +37 -0
- package/src/models/components/company.ts +22 -0
- package/src/models/components/companyvendortyperestriction.ts +221 -0
- package/src/models/components/contact.ts +74 -8
- package/src/models/components/departmentmembership.ts +201 -0
- package/src/models/components/expand.ts +7 -0
- package/src/models/components/facility.ts +38 -34
- package/src/models/components/facilitysummary.ts +83 -0
- package/src/models/components/facilityvendortype.ts +178 -0
- package/src/models/components/index.ts +5 -0
- package/src/models/components/invoiceitem.ts +79 -0
- package/src/models/components/productvariant.ts +8 -8
- package/src/models/components/subscription.ts +12 -0
- package/src/models/components/systemsummary.ts +10 -0
- package/src/models/components/usersummary.ts +69 -0
- package/src/models/components/vendor.ts +148 -0
- package/src/models/components/vendorgroup.ts +86 -0
- package/src/models/components/zoneconfig.ts +28 -24
- package/src/models/operations/getsubscription.ts +152 -0
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/listorsearchdepartmentcontacts.ts +280 -0
- package/src/models/operations/listsystems.ts +250 -0
- package/src/models/operations/listvendortypes.ts +236 -0
- package/src/react-query/index.ts +4 -0
- package/src/react-query/organizationsListOrSearchDepartmentContacts.ts +386 -0
- package/src/react-query/systemsListSystems.ts +353 -0
- package/src/react-query/vendorsGetSubscription.ts +182 -0
- package/src/react-query/vendorsGetVendorsDetails.ts +6 -0
- package/src/react-query/vendorsListVendorTypes.ts +328 -0
- package/src/sdk/organizations.ts +28 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/systems.ts +31 -0
- package/src/sdk/vendors.ts +62 -17
package/bin/mcp-server.js
CHANGED
|
@@ -34160,9 +34160,9 @@ var init_config = __esm(() => {
|
|
|
34160
34160
|
SDK_METADATA = {
|
|
34161
34161
|
language: "typescript",
|
|
34162
34162
|
openapiDocVersion: "0.0.3",
|
|
34163
|
-
sdkVersion: "0.37.
|
|
34164
|
-
genVersion: "2.
|
|
34165
|
-
userAgent: "speakeasy-sdk/typescript 0.37.
|
|
34163
|
+
sdkVersion: "0.37.14",
|
|
34164
|
+
genVersion: "2.657.1",
|
|
34165
|
+
userAgent: "speakeasy-sdk/typescript 0.37.14 2.657.1 0.0.3 @greensecurity/javascript-sdk"
|
|
34166
34166
|
};
|
|
34167
34167
|
});
|
|
34168
34168
|
|
|
@@ -35753,13 +35753,13 @@ var init_productvariant = __esm(() => {
|
|
|
35753
35753
|
init_esm();
|
|
35754
35754
|
ProductVariant$inboundSchema = objectType({
|
|
35755
35755
|
id: numberType().int().optional(),
|
|
35756
|
-
|
|
35757
|
-
|
|
35756
|
+
price: numberType().int().optional(),
|
|
35757
|
+
title: nullableType(stringType()).optional()
|
|
35758
35758
|
});
|
|
35759
35759
|
ProductVariant$outboundSchema = objectType({
|
|
35760
35760
|
id: numberType().int().optional(),
|
|
35761
|
-
|
|
35762
|
-
|
|
35761
|
+
price: numberType().int().optional(),
|
|
35762
|
+
title: nullableType(stringType()).optional()
|
|
35763
35763
|
});
|
|
35764
35764
|
((ProductVariant$) => {
|
|
35765
35765
|
ProductVariant$.inboundSchema = ProductVariant$inboundSchema;
|
|
@@ -35768,7 +35768,7 @@ var init_productvariant = __esm(() => {
|
|
|
35768
35768
|
});
|
|
35769
35769
|
|
|
35770
35770
|
// src/models/components/invoiceitem.ts
|
|
35771
|
-
var Variant$inboundSchema, Variant$outboundSchema, Variant$, InvoiceItemProduct$inboundSchema, InvoiceItemProduct$outboundSchema, InvoiceItemProduct$, InvoiceItem$inboundSchema, InvoiceItem$outboundSchema, InvoiceItem$;
|
|
35771
|
+
var Variant$inboundSchema, Variant$outboundSchema, Variant$, InvoiceItemProduct$inboundSchema, InvoiceItemProduct$outboundSchema, InvoiceItemProduct$, Details$inboundSchema, Details$outboundSchema, Details$, InvoiceItem$inboundSchema, InvoiceItem$outboundSchema, InvoiceItem$;
|
|
35772
35772
|
var init_invoiceitem = __esm(() => {
|
|
35773
35773
|
init_esm();
|
|
35774
35774
|
init_primitives();
|
|
@@ -35786,6 +35786,34 @@ var init_invoiceitem = __esm(() => {
|
|
|
35786
35786
|
InvoiceItemProduct$.inboundSchema = InvoiceItemProduct$inboundSchema;
|
|
35787
35787
|
InvoiceItemProduct$.outboundSchema = InvoiceItemProduct$outboundSchema;
|
|
35788
35788
|
})(InvoiceItemProduct$ ||= {});
|
|
35789
|
+
Details$inboundSchema = objectType({
|
|
35790
|
+
total_days: nullableType(numberType().int()).optional(),
|
|
35791
|
+
unused_days: nullableType(numberType().int()).optional(),
|
|
35792
|
+
used_days: nullableType(numberType().int()).optional(),
|
|
35793
|
+
prorate: nullableType(numberType()).optional()
|
|
35794
|
+
}).transform((v2) => {
|
|
35795
|
+
return remap(v2, {
|
|
35796
|
+
total_days: "totalDays",
|
|
35797
|
+
unused_days: "unusedDays",
|
|
35798
|
+
used_days: "usedDays"
|
|
35799
|
+
});
|
|
35800
|
+
});
|
|
35801
|
+
Details$outboundSchema = objectType({
|
|
35802
|
+
totalDays: nullableType(numberType().int()).optional(),
|
|
35803
|
+
unusedDays: nullableType(numberType().int()).optional(),
|
|
35804
|
+
usedDays: nullableType(numberType().int()).optional(),
|
|
35805
|
+
prorate: nullableType(numberType()).optional()
|
|
35806
|
+
}).transform((v2) => {
|
|
35807
|
+
return remap(v2, {
|
|
35808
|
+
totalDays: "total_days",
|
|
35809
|
+
unusedDays: "unused_days",
|
|
35810
|
+
usedDays: "used_days"
|
|
35811
|
+
});
|
|
35812
|
+
});
|
|
35813
|
+
((Details$) => {
|
|
35814
|
+
Details$.inboundSchema = Details$inboundSchema;
|
|
35815
|
+
Details$.outboundSchema = Details$outboundSchema;
|
|
35816
|
+
})(Details$ ||= {});
|
|
35789
35817
|
InvoiceItem$inboundSchema = objectType({
|
|
35790
35818
|
id: numberType().int().optional(),
|
|
35791
35819
|
date_starts: nullableType(stringType()).optional(),
|
|
@@ -35797,7 +35825,8 @@ var init_invoiceitem = __esm(() => {
|
|
|
35797
35825
|
unit_price: nullableType(numberType().int()).optional(),
|
|
35798
35826
|
subtotal: nullableType(numberType().int()).optional(),
|
|
35799
35827
|
variant: nullableType(unionType([ProductVariant$inboundSchema, numberType().int()])).optional(),
|
|
35800
|
-
product: nullableType(unionType([Product$inboundSchema, numberType().int()])).optional()
|
|
35828
|
+
product: nullableType(unionType([Product$inboundSchema, numberType().int()])).optional(),
|
|
35829
|
+
details: nullableType(lazyType(() => Details$inboundSchema)).optional()
|
|
35801
35830
|
}).transform((v2) => {
|
|
35802
35831
|
return remap(v2, {
|
|
35803
35832
|
date_starts: "dateStarts",
|
|
@@ -35818,7 +35847,8 @@ var init_invoiceitem = __esm(() => {
|
|
|
35818
35847
|
unitPrice: nullableType(numberType().int()).optional(),
|
|
35819
35848
|
subtotal: nullableType(numberType().int()).optional(),
|
|
35820
35849
|
variant: nullableType(unionType([ProductVariant$outboundSchema, numberType().int()])).optional(),
|
|
35821
|
-
product: nullableType(unionType([Product$outboundSchema, numberType().int()])).optional()
|
|
35850
|
+
product: nullableType(unionType([Product$outboundSchema, numberType().int()])).optional(),
|
|
35851
|
+
details: nullableType(lazyType(() => Details$outboundSchema)).optional()
|
|
35822
35852
|
}).transform((v2) => {
|
|
35823
35853
|
return remap(v2, {
|
|
35824
35854
|
dateStarts: "date_starts",
|
|
@@ -36162,12 +36192,189 @@ var init_rfcdate = __esm(() => {
|
|
|
36162
36192
|
dateRE = /^\d{4}-\d{2}-\d{2}$/;
|
|
36163
36193
|
});
|
|
36164
36194
|
|
|
36195
|
+
// src/models/components/facilityvendortype.ts
|
|
36196
|
+
var AppliesTo$inboundSchema, AppliesTo$outboundSchema, AppliesTo$, FacilityVendorType$inboundSchema, FacilityVendorType$outboundSchema, FacilityVendorType$;
|
|
36197
|
+
var init_facilityvendortype = __esm(() => {
|
|
36198
|
+
init_esm();
|
|
36199
|
+
init_primitives();
|
|
36200
|
+
AppliesTo$inboundSchema = objectType({
|
|
36201
|
+
company_id: nullableType(numberType().int()).optional(),
|
|
36202
|
+
company_group_id: nullableType(numberType().int()).optional(),
|
|
36203
|
+
vendor_group_id: nullableType(numberType().int()).optional(),
|
|
36204
|
+
everyone_else: booleanType()
|
|
36205
|
+
}).transform((v2) => {
|
|
36206
|
+
return remap(v2, {
|
|
36207
|
+
company_id: "companyId",
|
|
36208
|
+
company_group_id: "companyGroupId",
|
|
36209
|
+
vendor_group_id: "vendorGroupId",
|
|
36210
|
+
everyone_else: "everyoneElse"
|
|
36211
|
+
});
|
|
36212
|
+
});
|
|
36213
|
+
AppliesTo$outboundSchema = objectType({
|
|
36214
|
+
companyId: nullableType(numberType().int()).optional(),
|
|
36215
|
+
companyGroupId: nullableType(numberType().int()).optional(),
|
|
36216
|
+
vendorGroupId: nullableType(numberType().int()).optional(),
|
|
36217
|
+
everyoneElse: booleanType()
|
|
36218
|
+
}).transform((v2) => {
|
|
36219
|
+
return remap(v2, {
|
|
36220
|
+
companyId: "company_id",
|
|
36221
|
+
companyGroupId: "company_group_id",
|
|
36222
|
+
vendorGroupId: "vendor_group_id",
|
|
36223
|
+
everyoneElse: "everyone_else"
|
|
36224
|
+
});
|
|
36225
|
+
});
|
|
36226
|
+
((AppliesTo$) => {
|
|
36227
|
+
AppliesTo$.inboundSchema = AppliesTo$inboundSchema;
|
|
36228
|
+
AppliesTo$.outboundSchema = AppliesTo$outboundSchema;
|
|
36229
|
+
})(AppliesTo$ ||= {});
|
|
36230
|
+
FacilityVendorType$inboundSchema = objectType({
|
|
36231
|
+
id: numberType().int().optional(),
|
|
36232
|
+
name: stringType(),
|
|
36233
|
+
short_name: stringType(),
|
|
36234
|
+
sort_order: numberType().int(),
|
|
36235
|
+
applies_to: lazyType(() => AppliesTo$inboundSchema)
|
|
36236
|
+
}).transform((v2) => {
|
|
36237
|
+
return remap(v2, {
|
|
36238
|
+
short_name: "shortName",
|
|
36239
|
+
sort_order: "sortOrder",
|
|
36240
|
+
applies_to: "appliesTo"
|
|
36241
|
+
});
|
|
36242
|
+
});
|
|
36243
|
+
FacilityVendorType$outboundSchema = objectType({
|
|
36244
|
+
id: numberType().int().optional(),
|
|
36245
|
+
name: stringType(),
|
|
36246
|
+
shortName: stringType(),
|
|
36247
|
+
sortOrder: numberType().int(),
|
|
36248
|
+
appliesTo: lazyType(() => AppliesTo$outboundSchema)
|
|
36249
|
+
}).transform((v2) => {
|
|
36250
|
+
return remap(v2, {
|
|
36251
|
+
shortName: "short_name",
|
|
36252
|
+
sortOrder: "sort_order",
|
|
36253
|
+
appliesTo: "applies_to"
|
|
36254
|
+
});
|
|
36255
|
+
});
|
|
36256
|
+
((FacilityVendorType$) => {
|
|
36257
|
+
FacilityVendorType$.inboundSchema = FacilityVendorType$inboundSchema;
|
|
36258
|
+
FacilityVendorType$.outboundSchema = FacilityVendorType$outboundSchema;
|
|
36259
|
+
})(FacilityVendorType$ ||= {});
|
|
36260
|
+
});
|
|
36261
|
+
|
|
36262
|
+
// src/models/components/facilitysummary.ts
|
|
36263
|
+
var VendorPolicy$inboundSchema, VendorPolicy$outboundSchema, VendorPolicy$, FacilitySummary$inboundSchema, FacilitySummary$outboundSchema, FacilitySummary$;
|
|
36264
|
+
var init_facilitysummary = __esm(() => {
|
|
36265
|
+
init_esm();
|
|
36266
|
+
init_primitives();
|
|
36267
|
+
init_facilityvendortype();
|
|
36268
|
+
VendorPolicy$inboundSchema = objectType({
|
|
36269
|
+
vendor_types: arrayType(FacilityVendorType$inboundSchema).optional()
|
|
36270
|
+
}).transform((v2) => {
|
|
36271
|
+
return remap(v2, {
|
|
36272
|
+
vendor_types: "vendorTypes"
|
|
36273
|
+
});
|
|
36274
|
+
});
|
|
36275
|
+
VendorPolicy$outboundSchema = objectType({
|
|
36276
|
+
vendorTypes: arrayType(FacilityVendorType$outboundSchema).optional()
|
|
36277
|
+
}).transform((v2) => {
|
|
36278
|
+
return remap(v2, {
|
|
36279
|
+
vendorTypes: "vendor_types"
|
|
36280
|
+
});
|
|
36281
|
+
});
|
|
36282
|
+
((VendorPolicy$) => {
|
|
36283
|
+
VendorPolicy$.inboundSchema = VendorPolicy$inboundSchema;
|
|
36284
|
+
VendorPolicy$.outboundSchema = VendorPolicy$outboundSchema;
|
|
36285
|
+
})(VendorPolicy$ ||= {});
|
|
36286
|
+
FacilitySummary$inboundSchema = objectType({
|
|
36287
|
+
id: numberType().int().optional(),
|
|
36288
|
+
name: stringType().optional(),
|
|
36289
|
+
vendor_policy: nullableType(lazyType(() => VendorPolicy$inboundSchema)).optional()
|
|
36290
|
+
}).transform((v2) => {
|
|
36291
|
+
return remap(v2, {
|
|
36292
|
+
vendor_policy: "vendorPolicy"
|
|
36293
|
+
});
|
|
36294
|
+
});
|
|
36295
|
+
FacilitySummary$outboundSchema = objectType({
|
|
36296
|
+
id: numberType().int().optional(),
|
|
36297
|
+
name: stringType().optional(),
|
|
36298
|
+
vendorPolicy: nullableType(lazyType(() => VendorPolicy$outboundSchema)).optional()
|
|
36299
|
+
}).transform((v2) => {
|
|
36300
|
+
return remap(v2, {
|
|
36301
|
+
vendorPolicy: "vendor_policy"
|
|
36302
|
+
});
|
|
36303
|
+
});
|
|
36304
|
+
((FacilitySummary$) => {
|
|
36305
|
+
FacilitySummary$.inboundSchema = FacilitySummary$inboundSchema;
|
|
36306
|
+
FacilitySummary$.outboundSchema = FacilitySummary$outboundSchema;
|
|
36307
|
+
})(FacilitySummary$ ||= {});
|
|
36308
|
+
});
|
|
36309
|
+
|
|
36310
|
+
// src/models/components/vendortype.ts
|
|
36311
|
+
var VendorType$inboundSchema, VendorType$outboundSchema, VendorType$;
|
|
36312
|
+
var init_vendortype = __esm(() => {
|
|
36313
|
+
init_esm();
|
|
36314
|
+
VendorType$inboundSchema = objectType({
|
|
36315
|
+
id: numberType().int().optional(),
|
|
36316
|
+
name: stringType().optional()
|
|
36317
|
+
});
|
|
36318
|
+
VendorType$outboundSchema = objectType({
|
|
36319
|
+
id: numberType().int().optional(),
|
|
36320
|
+
name: stringType().optional()
|
|
36321
|
+
});
|
|
36322
|
+
((VendorType$) => {
|
|
36323
|
+
VendorType$.inboundSchema = VendorType$inboundSchema;
|
|
36324
|
+
VendorType$.outboundSchema = VendorType$outboundSchema;
|
|
36325
|
+
})(VendorType$ ||= {});
|
|
36326
|
+
});
|
|
36327
|
+
|
|
36328
|
+
// src/models/components/companyvendortyperestriction.ts
|
|
36329
|
+
var CompanyVendorTypeRestrictionFacility$inboundSchema, CompanyVendorTypeRestrictionFacility$outboundSchema, CompanyVendorTypeRestrictionFacility$, CompanyVendorTypeRestrictionVendorType$inboundSchema, CompanyVendorTypeRestrictionVendorType$outboundSchema, CompanyVendorTypeRestrictionVendorType$, CompanyVendorTypeRestriction$inboundSchema, CompanyVendorTypeRestriction$outboundSchema, CompanyVendorTypeRestriction$;
|
|
36330
|
+
var init_companyvendortyperestriction = __esm(() => {
|
|
36331
|
+
init_esm();
|
|
36332
|
+
init_primitives();
|
|
36333
|
+
init_facilitysummary();
|
|
36334
|
+
init_vendortype();
|
|
36335
|
+
CompanyVendorTypeRestrictionFacility$inboundSchema = unionType([FacilitySummary$inboundSchema, numberType().int()]);
|
|
36336
|
+
CompanyVendorTypeRestrictionFacility$outboundSchema = unionType([FacilitySummary$outboundSchema, numberType().int()]);
|
|
36337
|
+
((CompanyVendorTypeRestrictionFacility$) => {
|
|
36338
|
+
CompanyVendorTypeRestrictionFacility$.inboundSchema = CompanyVendorTypeRestrictionFacility$inboundSchema;
|
|
36339
|
+
CompanyVendorTypeRestrictionFacility$.outboundSchema = CompanyVendorTypeRestrictionFacility$outboundSchema;
|
|
36340
|
+
})(CompanyVendorTypeRestrictionFacility$ ||= {});
|
|
36341
|
+
CompanyVendorTypeRestrictionVendorType$inboundSchema = unionType([VendorType$inboundSchema, numberType().int()]);
|
|
36342
|
+
CompanyVendorTypeRestrictionVendorType$outboundSchema = unionType([VendorType$outboundSchema, numberType().int()]);
|
|
36343
|
+
((CompanyVendorTypeRestrictionVendorType$) => {
|
|
36344
|
+
CompanyVendorTypeRestrictionVendorType$.inboundSchema = CompanyVendorTypeRestrictionVendorType$inboundSchema;
|
|
36345
|
+
CompanyVendorTypeRestrictionVendorType$.outboundSchema = CompanyVendorTypeRestrictionVendorType$outboundSchema;
|
|
36346
|
+
})(CompanyVendorTypeRestrictionVendorType$ ||= {});
|
|
36347
|
+
CompanyVendorTypeRestriction$inboundSchema = objectType({
|
|
36348
|
+
id: numberType().int().optional(),
|
|
36349
|
+
facility: nullableType(unionType([FacilitySummary$inboundSchema, numberType().int()])).optional(),
|
|
36350
|
+
vendor_type: nullableType(unionType([VendorType$inboundSchema, numberType().int()])).optional()
|
|
36351
|
+
}).transform((v2) => {
|
|
36352
|
+
return remap(v2, {
|
|
36353
|
+
vendor_type: "vendorType"
|
|
36354
|
+
});
|
|
36355
|
+
});
|
|
36356
|
+
CompanyVendorTypeRestriction$outboundSchema = objectType({
|
|
36357
|
+
id: numberType().int().optional(),
|
|
36358
|
+
facility: nullableType(unionType([FacilitySummary$outboundSchema, numberType().int()])).optional(),
|
|
36359
|
+
vendorType: nullableType(unionType([VendorType$outboundSchema, numberType().int()])).optional()
|
|
36360
|
+
}).transform((v2) => {
|
|
36361
|
+
return remap(v2, {
|
|
36362
|
+
vendorType: "vendor_type"
|
|
36363
|
+
});
|
|
36364
|
+
});
|
|
36365
|
+
((CompanyVendorTypeRestriction$) => {
|
|
36366
|
+
CompanyVendorTypeRestriction$.inboundSchema = CompanyVendorTypeRestriction$inboundSchema;
|
|
36367
|
+
CompanyVendorTypeRestriction$.outboundSchema = CompanyVendorTypeRestriction$outboundSchema;
|
|
36368
|
+
})(CompanyVendorTypeRestriction$ ||= {});
|
|
36369
|
+
});
|
|
36370
|
+
|
|
36165
36371
|
// src/models/components/company.ts
|
|
36166
36372
|
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$;
|
|
36167
36373
|
var init_company = __esm(() => {
|
|
36168
36374
|
init_esm();
|
|
36169
36375
|
init_primitives();
|
|
36170
36376
|
init_rfcdate();
|
|
36377
|
+
init_companyvendortyperestriction();
|
|
36171
36378
|
CompanyLocation$inboundSchema = objectType({
|
|
36172
36379
|
address: nullableType(stringType()).optional(),
|
|
36173
36380
|
phone: nullableType(stringType()).optional(),
|
|
@@ -36280,10 +36487,12 @@ var init_company = __esm(() => {
|
|
|
36280
36487
|
location: nullableType(lazyType(() => CompanyLocation$inboundSchema)).optional(),
|
|
36281
36488
|
contact: lazyType(() => CompanyContact$inboundSchema).optional(),
|
|
36282
36489
|
tax: lazyType(() => Tax$inboundSchema).optional(),
|
|
36283
|
-
stats: lazyType(() => Stats$inboundSchema).optional()
|
|
36490
|
+
stats: lazyType(() => Stats$inboundSchema).optional(),
|
|
36491
|
+
vendor_type_restrictions: nullableType(arrayType(nullableType(CompanyVendorTypeRestriction$inboundSchema))).optional()
|
|
36284
36492
|
}).transform((v2) => {
|
|
36285
36493
|
return remap(v2, {
|
|
36286
|
-
credit_balance: "creditBalance"
|
|
36494
|
+
credit_balance: "creditBalance",
|
|
36495
|
+
vendor_type_restrictions: "vendorTypeRestrictions"
|
|
36287
36496
|
});
|
|
36288
36497
|
});
|
|
36289
36498
|
Company$outboundSchema = objectType({
|
|
@@ -36294,10 +36503,12 @@ var init_company = __esm(() => {
|
|
|
36294
36503
|
location: nullableType(lazyType(() => CompanyLocation$outboundSchema)).optional(),
|
|
36295
36504
|
contact: lazyType(() => CompanyContact$outboundSchema).optional(),
|
|
36296
36505
|
tax: lazyType(() => Tax$outboundSchema).optional(),
|
|
36297
|
-
stats: lazyType(() => Stats$outboundSchema).optional()
|
|
36506
|
+
stats: lazyType(() => Stats$outboundSchema).optional(),
|
|
36507
|
+
vendorTypeRestrictions: nullableType(arrayType(nullableType(CompanyVendorTypeRestriction$outboundSchema))).optional()
|
|
36298
36508
|
}).transform((v2) => {
|
|
36299
36509
|
return remap(v2, {
|
|
36300
|
-
creditBalance: "credit_balance"
|
|
36510
|
+
creditBalance: "credit_balance",
|
|
36511
|
+
vendorTypeRestrictions: "vendor_type_restrictions"
|
|
36301
36512
|
});
|
|
36302
36513
|
});
|
|
36303
36514
|
((Company$) => {
|
|
@@ -36324,35 +36535,20 @@ var init_departmentsummary = __esm(() => {
|
|
|
36324
36535
|
})(DepartmentSummary$ ||= {});
|
|
36325
36536
|
});
|
|
36326
36537
|
|
|
36327
|
-
// src/models/components/facilitysummary.ts
|
|
36328
|
-
var FacilitySummary$inboundSchema, FacilitySummary$outboundSchema, FacilitySummary$;
|
|
36329
|
-
var init_facilitysummary = __esm(() => {
|
|
36330
|
-
init_esm();
|
|
36331
|
-
FacilitySummary$inboundSchema = objectType({
|
|
36332
|
-
id: numberType().int().optional(),
|
|
36333
|
-
name: stringType().optional()
|
|
36334
|
-
});
|
|
36335
|
-
FacilitySummary$outboundSchema = objectType({
|
|
36336
|
-
id: numberType().int().optional(),
|
|
36337
|
-
name: stringType().optional()
|
|
36338
|
-
});
|
|
36339
|
-
((FacilitySummary$) => {
|
|
36340
|
-
FacilitySummary$.inboundSchema = FacilitySummary$inboundSchema;
|
|
36341
|
-
FacilitySummary$.outboundSchema = FacilitySummary$outboundSchema;
|
|
36342
|
-
})(FacilitySummary$ ||= {});
|
|
36343
|
-
});
|
|
36344
|
-
|
|
36345
36538
|
// src/models/components/systemsummary.ts
|
|
36346
36539
|
var SystemSummary$inboundSchema, SystemSummary$outboundSchema, SystemSummary$;
|
|
36347
36540
|
var init_systemsummary = __esm(() => {
|
|
36348
36541
|
init_esm();
|
|
36542
|
+
init_facilitysummary();
|
|
36349
36543
|
SystemSummary$inboundSchema = objectType({
|
|
36350
36544
|
id: numberType().int(),
|
|
36351
|
-
name: stringType()
|
|
36545
|
+
name: stringType(),
|
|
36546
|
+
facilities: nullableType(arrayType(FacilitySummary$inboundSchema)).optional()
|
|
36352
36547
|
});
|
|
36353
36548
|
SystemSummary$outboundSchema = objectType({
|
|
36354
36549
|
id: numberType().int(),
|
|
36355
|
-
name: stringType()
|
|
36550
|
+
name: stringType(),
|
|
36551
|
+
facilities: nullableType(arrayType(FacilitySummary$outboundSchema)).optional()
|
|
36356
36552
|
});
|
|
36357
36553
|
((SystemSummary$) => {
|
|
36358
36554
|
SystemSummary$.inboundSchema = SystemSummary$inboundSchema;
|
|
@@ -36360,13 +36556,32 @@ var init_systemsummary = __esm(() => {
|
|
|
36360
36556
|
})(SystemSummary$ ||= {});
|
|
36361
36557
|
});
|
|
36362
36558
|
|
|
36559
|
+
// src/models/components/usersummary.ts
|
|
36560
|
+
var UserSummary$inboundSchema, UserSummary$outboundSchema, UserSummary$;
|
|
36561
|
+
var init_usersummary = __esm(() => {
|
|
36562
|
+
init_esm();
|
|
36563
|
+
UserSummary$inboundSchema = objectType({
|
|
36564
|
+
id: numberType().int(),
|
|
36565
|
+
name: stringType()
|
|
36566
|
+
});
|
|
36567
|
+
UserSummary$outboundSchema = objectType({
|
|
36568
|
+
id: numberType().int(),
|
|
36569
|
+
name: stringType()
|
|
36570
|
+
});
|
|
36571
|
+
((UserSummary$) => {
|
|
36572
|
+
UserSummary$.inboundSchema = UserSummary$inboundSchema;
|
|
36573
|
+
UserSummary$.outboundSchema = UserSummary$outboundSchema;
|
|
36574
|
+
})(UserSummary$ ||= {});
|
|
36575
|
+
});
|
|
36576
|
+
|
|
36363
36577
|
// src/models/components/contact.ts
|
|
36364
|
-
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$;
|
|
36578
|
+
var Status, ContactFacility$inboundSchema, ContactFacility$outboundSchema, ContactFacility$, System$inboundSchema, System$outboundSchema, System$, ContactUser$inboundSchema, ContactUser$outboundSchema, ContactUser$, Status$inboundSchema, Status$outboundSchema, Status$, ContactDepartment$inboundSchema, ContactDepartment$outboundSchema, ContactDepartment$, Contact$inboundSchema, Contact$outboundSchema, Contact$;
|
|
36365
36579
|
var init_contact = __esm(() => {
|
|
36366
36580
|
init_esm();
|
|
36367
36581
|
init_departmentsummary();
|
|
36368
36582
|
init_facilitysummary();
|
|
36369
36583
|
init_systemsummary();
|
|
36584
|
+
init_usersummary();
|
|
36370
36585
|
Status = {
|
|
36371
36586
|
Active: "Active",
|
|
36372
36587
|
Inactive: "Inactive",
|
|
@@ -36384,6 +36599,12 @@ var init_contact = __esm(() => {
|
|
|
36384
36599
|
System$.inboundSchema = System$inboundSchema;
|
|
36385
36600
|
System$.outboundSchema = System$outboundSchema;
|
|
36386
36601
|
})(System$ ||= {});
|
|
36602
|
+
ContactUser$inboundSchema = unionType([UserSummary$inboundSchema, numberType().int()]);
|
|
36603
|
+
ContactUser$outboundSchema = unionType([UserSummary$outboundSchema, numberType().int()]);
|
|
36604
|
+
((ContactUser$) => {
|
|
36605
|
+
ContactUser$.inboundSchema = ContactUser$inboundSchema;
|
|
36606
|
+
ContactUser$.outboundSchema = ContactUser$outboundSchema;
|
|
36607
|
+
})(ContactUser$ ||= {});
|
|
36387
36608
|
Status$inboundSchema = nativeEnumType(Status);
|
|
36388
36609
|
Status$outboundSchema = Status$inboundSchema;
|
|
36389
36610
|
((Status$) => {
|
|
@@ -36397,15 +36618,19 @@ var init_contact = __esm(() => {
|
|
|
36397
36618
|
ContactDepartment$.outboundSchema = ContactDepartment$outboundSchema;
|
|
36398
36619
|
})(ContactDepartment$ ||= {});
|
|
36399
36620
|
Contact$inboundSchema = objectType({
|
|
36400
|
-
|
|
36401
|
-
|
|
36621
|
+
id: numberType().int().optional(),
|
|
36622
|
+
facility: nullableType(unionType([FacilitySummary$inboundSchema, numberType().int()])).optional(),
|
|
36623
|
+
system: nullableType(unionType([SystemSummary$inboundSchema, numberType().int()])).optional(),
|
|
36624
|
+
user: nullableType(unionType([UserSummary$inboundSchema, numberType().int()])).optional(),
|
|
36402
36625
|
status: Status$inboundSchema,
|
|
36403
36626
|
position: nullableType(stringType()).optional(),
|
|
36404
36627
|
department: nullableType(unionType([DepartmentSummary$inboundSchema, numberType().int()])).optional()
|
|
36405
36628
|
});
|
|
36406
36629
|
Contact$outboundSchema = objectType({
|
|
36407
|
-
|
|
36408
|
-
|
|
36630
|
+
id: numberType().int().optional(),
|
|
36631
|
+
facility: nullableType(unionType([FacilitySummary$outboundSchema, numberType().int()])).optional(),
|
|
36632
|
+
system: nullableType(unionType([SystemSummary$outboundSchema, numberType().int()])).optional(),
|
|
36633
|
+
user: nullableType(unionType([UserSummary$outboundSchema, numberType().int()])).optional(),
|
|
36409
36634
|
status: Status$outboundSchema,
|
|
36410
36635
|
position: nullableType(stringType()).optional(),
|
|
36411
36636
|
department: nullableType(unionType([DepartmentSummary$outboundSchema, numberType().int()])).optional()
|
|
@@ -36872,6 +37097,40 @@ var init_department = __esm(() => {
|
|
|
36872
37097
|
})(Department$ ||= {});
|
|
36873
37098
|
});
|
|
36874
37099
|
|
|
37100
|
+
// src/models/components/departmentmembership.ts
|
|
37101
|
+
var DepartmentMembershipDepartment$inboundSchema, DepartmentMembershipDepartment$outboundSchema, DepartmentMembershipDepartment$, DepartmentMembershipContact$inboundSchema, DepartmentMembershipContact$outboundSchema, DepartmentMembershipContact$, DepartmentMembership$inboundSchema, DepartmentMembership$outboundSchema, DepartmentMembership$;
|
|
37102
|
+
var init_departmentmembership = __esm(() => {
|
|
37103
|
+
init_esm();
|
|
37104
|
+
init_contact();
|
|
37105
|
+
init_departmentsummary();
|
|
37106
|
+
DepartmentMembershipDepartment$inboundSchema = unionType([DepartmentSummary$inboundSchema, numberType().int()]);
|
|
37107
|
+
DepartmentMembershipDepartment$outboundSchema = unionType([DepartmentSummary$outboundSchema, numberType().int()]);
|
|
37108
|
+
((DepartmentMembershipDepartment$) => {
|
|
37109
|
+
DepartmentMembershipDepartment$.inboundSchema = DepartmentMembershipDepartment$inboundSchema;
|
|
37110
|
+
DepartmentMembershipDepartment$.outboundSchema = DepartmentMembershipDepartment$outboundSchema;
|
|
37111
|
+
})(DepartmentMembershipDepartment$ ||= {});
|
|
37112
|
+
DepartmentMembershipContact$inboundSchema = unionType([Contact$inboundSchema, numberType().int()]);
|
|
37113
|
+
DepartmentMembershipContact$outboundSchema = unionType([Contact$outboundSchema, numberType().int()]);
|
|
37114
|
+
((DepartmentMembershipContact$) => {
|
|
37115
|
+
DepartmentMembershipContact$.inboundSchema = DepartmentMembershipContact$inboundSchema;
|
|
37116
|
+
DepartmentMembershipContact$.outboundSchema = DepartmentMembershipContact$outboundSchema;
|
|
37117
|
+
})(DepartmentMembershipContact$ ||= {});
|
|
37118
|
+
DepartmentMembership$inboundSchema = objectType({
|
|
37119
|
+
id: numberType().int(),
|
|
37120
|
+
department: nullableType(unionType([DepartmentSummary$inboundSchema, numberType().int()])).optional(),
|
|
37121
|
+
contact: nullableType(unionType([Contact$inboundSchema, numberType().int()])).optional()
|
|
37122
|
+
});
|
|
37123
|
+
DepartmentMembership$outboundSchema = objectType({
|
|
37124
|
+
id: numberType().int(),
|
|
37125
|
+
department: nullableType(unionType([DepartmentSummary$outboundSchema, numberType().int()])).optional(),
|
|
37126
|
+
contact: nullableType(unionType([Contact$outboundSchema, numberType().int()])).optional()
|
|
37127
|
+
});
|
|
37128
|
+
((DepartmentMembership$) => {
|
|
37129
|
+
DepartmentMembership$.inboundSchema = DepartmentMembership$inboundSchema;
|
|
37130
|
+
DepartmentMembership$.outboundSchema = DepartmentMembership$outboundSchema;
|
|
37131
|
+
})(DepartmentMembership$ ||= {});
|
|
37132
|
+
});
|
|
37133
|
+
|
|
36875
37134
|
// src/models/components/desc.ts
|
|
36876
37135
|
var Desc$inboundSchema, Desc$outboundSchema, Desc$;
|
|
36877
37136
|
var init_desc = __esm(() => {
|
|
@@ -36918,6 +37177,9 @@ var init_expand = __esm(() => {
|
|
|
36918
37177
|
VendorCreditBalance: "vendor.credit_balance",
|
|
36919
37178
|
VendorRegistrationData: "vendor.registration_data",
|
|
36920
37179
|
VendorRegistrationFinished: "vendor.registration_finished",
|
|
37180
|
+
VendorTargetFacilities: "vendor.target_facilities",
|
|
37181
|
+
VendorPendingInvoice: "vendor.pending_invoice",
|
|
37182
|
+
VendorVendorGroups: "vendor.vendor_groups",
|
|
36921
37183
|
SupportArticleDescription: "support_article.description",
|
|
36922
37184
|
SupportArticlePublished: "support_article.published",
|
|
36923
37185
|
SupportArticleNotes: "support_article.notes",
|
|
@@ -36946,7 +37208,11 @@ var init_expand = __esm(() => {
|
|
|
36946
37208
|
VendorCredentialDataRequestDataRequest: "vendor_credential_data_request.data_request",
|
|
36947
37209
|
ZoneFacility: "zone.facility",
|
|
36948
37210
|
ZoneDepartment: "zone.department",
|
|
36949
|
-
ZoneRules: "zone.rules"
|
|
37211
|
+
ZoneRules: "zone.rules",
|
|
37212
|
+
SystemFacilities: "system.facilities",
|
|
37213
|
+
SubscriptionExpeditedOffer: "subscription.expedited_offer",
|
|
37214
|
+
DepartmentMembershipContact: "department_membership.contact",
|
|
37215
|
+
DepartmentMembershipDepartment: "department_membership.department"
|
|
36950
37216
|
};
|
|
36951
37217
|
Expand$inboundSchema = nativeEnumType(Expand);
|
|
36952
37218
|
Expand$outboundSchema = Expand$inboundSchema;
|
|
@@ -36978,34 +37244,16 @@ var init_imageset = __esm(() => {
|
|
|
36978
37244
|
})(ImageSet$ ||= {});
|
|
36979
37245
|
});
|
|
36980
37246
|
|
|
36981
|
-
// src/models/components/vendortype.ts
|
|
36982
|
-
var VendorType$inboundSchema, VendorType$outboundSchema, VendorType$;
|
|
36983
|
-
var init_vendortype = __esm(() => {
|
|
36984
|
-
init_esm();
|
|
36985
|
-
VendorType$inboundSchema = objectType({
|
|
36986
|
-
id: numberType().int().optional(),
|
|
36987
|
-
name: stringType().optional()
|
|
36988
|
-
});
|
|
36989
|
-
VendorType$outboundSchema = objectType({
|
|
36990
|
-
id: numberType().int().optional(),
|
|
36991
|
-
name: stringType().optional()
|
|
36992
|
-
});
|
|
36993
|
-
((VendorType$) => {
|
|
36994
|
-
VendorType$.inboundSchema = VendorType$inboundSchema;
|
|
36995
|
-
VendorType$.outboundSchema = VendorType$outboundSchema;
|
|
36996
|
-
})(VendorType$ ||= {});
|
|
36997
|
-
});
|
|
36998
|
-
|
|
36999
37247
|
// src/models/components/facility.ts
|
|
37000
|
-
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$,
|
|
37248
|
+
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$, FacilityVendorPolicy$inboundSchema, FacilityVendorPolicy$outboundSchema, FacilityVendorPolicy$, VisitorPolicy$inboundSchema, VisitorPolicy$outboundSchema, VisitorPolicy$, WorkflowPolicy$inboundSchema, WorkflowPolicy$outboundSchema, WorkflowPolicy$, Facility$inboundSchema, Facility$outboundSchema, Facility$;
|
|
37001
37249
|
var init_facility = __esm(() => {
|
|
37002
37250
|
init_esm();
|
|
37003
37251
|
init_primitives();
|
|
37004
37252
|
init_rfcdate();
|
|
37005
37253
|
init_contact();
|
|
37254
|
+
init_facilityvendortype();
|
|
37006
37255
|
init_imageset();
|
|
37007
37256
|
init_systemsummary();
|
|
37008
|
-
init_vendortype();
|
|
37009
37257
|
VendorGuestLimitAndOr = {
|
|
37010
37258
|
And: "and",
|
|
37011
37259
|
Or: "or"
|
|
@@ -37304,14 +37552,14 @@ var init_facility = __esm(() => {
|
|
|
37304
37552
|
VendorGuestPolicy$.inboundSchema = VendorGuestPolicy$inboundSchema;
|
|
37305
37553
|
VendorGuestPolicy$.outboundSchema = VendorGuestPolicy$outboundSchema;
|
|
37306
37554
|
})(VendorGuestPolicy$ ||= {});
|
|
37307
|
-
|
|
37555
|
+
FacilityVendorPolicy$inboundSchema = objectType({
|
|
37308
37556
|
allow_department_other: booleanType(),
|
|
37309
37557
|
allow_food: booleanType(),
|
|
37310
37558
|
allow_non_kiosk_checkouts: booleanType(),
|
|
37311
37559
|
auto_scan_out_violation: booleanType(),
|
|
37312
37560
|
contractor_guest_require_email: booleanType(),
|
|
37313
37561
|
visitor_checkin_require_phone: booleanType(),
|
|
37314
|
-
vendor_types: arrayType(
|
|
37562
|
+
vendor_types: arrayType(FacilityVendorType$inboundSchema)
|
|
37315
37563
|
}).transform((v2) => {
|
|
37316
37564
|
return remap(v2, {
|
|
37317
37565
|
allow_department_other: "allowDepartmentOther",
|
|
@@ -37323,14 +37571,14 @@ var init_facility = __esm(() => {
|
|
|
37323
37571
|
vendor_types: "vendorTypes"
|
|
37324
37572
|
});
|
|
37325
37573
|
});
|
|
37326
|
-
|
|
37574
|
+
FacilityVendorPolicy$outboundSchema = objectType({
|
|
37327
37575
|
allowDepartmentOther: booleanType(),
|
|
37328
37576
|
allowFood: booleanType(),
|
|
37329
37577
|
allowNonKioskCheckouts: booleanType(),
|
|
37330
37578
|
autoScanOutViolation: booleanType(),
|
|
37331
37579
|
contractorGuestRequireEmail: booleanType(),
|
|
37332
37580
|
visitorCheckinRequirePhone: booleanType(),
|
|
37333
|
-
vendorTypes: arrayType(
|
|
37581
|
+
vendorTypes: arrayType(FacilityVendorType$outboundSchema)
|
|
37334
37582
|
}).transform((v2) => {
|
|
37335
37583
|
return remap(v2, {
|
|
37336
37584
|
allowDepartmentOther: "allow_department_other",
|
|
@@ -37342,10 +37590,10 @@ var init_facility = __esm(() => {
|
|
|
37342
37590
|
vendorTypes: "vendor_types"
|
|
37343
37591
|
});
|
|
37344
37592
|
});
|
|
37345
|
-
((
|
|
37346
|
-
|
|
37347
|
-
|
|
37348
|
-
})(
|
|
37593
|
+
((FacilityVendorPolicy$) => {
|
|
37594
|
+
FacilityVendorPolicy$.inboundSchema = FacilityVendorPolicy$inboundSchema;
|
|
37595
|
+
FacilityVendorPolicy$.outboundSchema = FacilityVendorPolicy$outboundSchema;
|
|
37596
|
+
})(FacilityVendorPolicy$ ||= {});
|
|
37349
37597
|
VisitorPolicy$inboundSchema = objectType({
|
|
37350
37598
|
auto_checkout_visitors: booleanType(),
|
|
37351
37599
|
require_visit_request_zone: booleanType(),
|
|
@@ -37426,7 +37674,7 @@ var init_facility = __esm(() => {
|
|
|
37426
37674
|
system: unionType([SystemSummary$inboundSchema, numberType().int()]).optional(),
|
|
37427
37675
|
uses: lazyType(() => Uses$inboundSchema).optional(),
|
|
37428
37676
|
vendor_guest_policy: nullableType(lazyType(() => VendorGuestPolicy$inboundSchema)).optional(),
|
|
37429
|
-
vendor_policy: nullableType(lazyType(() =>
|
|
37677
|
+
vendor_policy: nullableType(lazyType(() => FacilityVendorPolicy$inboundSchema)).optional(),
|
|
37430
37678
|
visible: booleanType().optional(),
|
|
37431
37679
|
visitor_policy: nullableType(lazyType(() => VisitorPolicy$inboundSchema)).optional(),
|
|
37432
37680
|
workflow_policy: nullableType(lazyType(() => WorkflowPolicy$inboundSchema)).optional()
|
|
@@ -37461,7 +37709,7 @@ var init_facility = __esm(() => {
|
|
|
37461
37709
|
system: unionType([SystemSummary$outboundSchema, numberType().int()]).optional(),
|
|
37462
37710
|
uses: lazyType(() => Uses$outboundSchema).optional(),
|
|
37463
37711
|
vendorGuestPolicy: nullableType(lazyType(() => VendorGuestPolicy$outboundSchema)).optional(),
|
|
37464
|
-
vendorPolicy: nullableType(lazyType(() =>
|
|
37712
|
+
vendorPolicy: nullableType(lazyType(() => FacilityVendorPolicy$outboundSchema)).optional(),
|
|
37465
37713
|
visible: booleanType().optional(),
|
|
37466
37714
|
visitorPolicy: nullableType(lazyType(() => VisitorPolicy$outboundSchema)).optional(),
|
|
37467
37715
|
workflowPolicy: nullableType(lazyType(() => WorkflowPolicy$outboundSchema)).optional()
|
|
@@ -37534,7 +37782,7 @@ var init_financialstatus = __esm(() => {
|
|
|
37534
37782
|
});
|
|
37535
37783
|
|
|
37536
37784
|
// src/models/components/zoneconfig.ts
|
|
37537
|
-
var VendorGroupId1$inboundSchema, VendorGroupId1$outboundSchema, VendorGroupId1$, VendorGroupId$inboundSchema, VendorGroupId$outboundSchema, VendorGroupId$, CompanyGroupId1$inboundSchema, CompanyGroupId1$outboundSchema, CompanyGroupId1$, CompanyGroupId$inboundSchema, CompanyGroupId$outboundSchema, CompanyGroupId$,
|
|
37785
|
+
var VendorGroupId1$inboundSchema, VendorGroupId1$outboundSchema, VendorGroupId1$, VendorGroupId$inboundSchema, VendorGroupId$outboundSchema, VendorGroupId$, CompanyGroupId1$inboundSchema, CompanyGroupId1$outboundSchema, CompanyGroupId1$, CompanyGroupId$inboundSchema, CompanyGroupId$outboundSchema, CompanyGroupId$, ZoneConfigAppliesTo$inboundSchema, ZoneConfigAppliesTo$outboundSchema, ZoneConfigAppliesTo$, ZoneConfigVendorPolicy$inboundSchema, ZoneConfigVendorPolicy$outboundSchema, ZoneConfigVendorPolicy$, VisitorCheckinPolicy$inboundSchema, VisitorCheckinPolicy$outboundSchema, VisitorCheckinPolicy$, VisitRequestPolicy$inboundSchema, VisitRequestPolicy$outboundSchema, VisitRequestPolicy$, ZoneConfig$inboundSchema, ZoneConfig$outboundSchema, ZoneConfig$;
|
|
37538
37786
|
var init_zoneconfig = __esm(() => {
|
|
37539
37787
|
init_esm();
|
|
37540
37788
|
init_primitives();
|
|
@@ -37582,7 +37830,7 @@ var init_zoneconfig = __esm(() => {
|
|
|
37582
37830
|
CompanyGroupId$.inboundSchema = CompanyGroupId$inboundSchema;
|
|
37583
37831
|
CompanyGroupId$.outboundSchema = CompanyGroupId$outboundSchema;
|
|
37584
37832
|
})(CompanyGroupId$ ||= {});
|
|
37585
|
-
|
|
37833
|
+
ZoneConfigAppliesTo$inboundSchema = objectType({
|
|
37586
37834
|
vendor_group_id: nullableType(unionType([lazyType(() => VendorGroupId1$inboundSchema), numberType().int()])).optional(),
|
|
37587
37835
|
company_group_id: nullableType(unionType([lazyType(() => CompanyGroupId1$inboundSchema), numberType().int()])).optional(),
|
|
37588
37836
|
visitor_type: nullableType(stringType()).optional(),
|
|
@@ -37595,7 +37843,7 @@ var init_zoneconfig = __esm(() => {
|
|
|
37595
37843
|
visitor_subtype: "visitorSubtype"
|
|
37596
37844
|
});
|
|
37597
37845
|
});
|
|
37598
|
-
|
|
37846
|
+
ZoneConfigAppliesTo$outboundSchema = objectType({
|
|
37599
37847
|
vendorGroupId: nullableType(unionType([lazyType(() => VendorGroupId1$outboundSchema), numberType().int()])).optional(),
|
|
37600
37848
|
companyGroupId: nullableType(unionType([lazyType(() => CompanyGroupId1$outboundSchema), numberType().int()])).optional(),
|
|
37601
37849
|
visitorType: nullableType(stringType()).optional(),
|
|
@@ -37608,10 +37856,10 @@ var init_zoneconfig = __esm(() => {
|
|
|
37608
37856
|
visitorSubtype: "visitor_subtype"
|
|
37609
37857
|
});
|
|
37610
37858
|
});
|
|
37611
|
-
((
|
|
37612
|
-
|
|
37613
|
-
|
|
37614
|
-
})(
|
|
37859
|
+
((ZoneConfigAppliesTo$) => {
|
|
37860
|
+
ZoneConfigAppliesTo$.inboundSchema = ZoneConfigAppliesTo$inboundSchema;
|
|
37861
|
+
ZoneConfigAppliesTo$.outboundSchema = ZoneConfigAppliesTo$outboundSchema;
|
|
37862
|
+
})(ZoneConfigAppliesTo$ ||= {});
|
|
37615
37863
|
ZoneConfigVendorPolicy$inboundSchema = objectType({
|
|
37616
37864
|
allow_vendor_scans: booleanType().optional(),
|
|
37617
37865
|
print_vendor_badge: booleanType().optional(),
|
|
@@ -37764,7 +38012,7 @@ var init_zoneconfig = __esm(() => {
|
|
|
37764
38012
|
id: numberType().int().optional(),
|
|
37765
38013
|
zone_id: numberType().int().optional(),
|
|
37766
38014
|
sort_order: nullableType(numberType().int()).optional(),
|
|
37767
|
-
applies_to: lazyType(() =>
|
|
38015
|
+
applies_to: lazyType(() => ZoneConfigAppliesTo$inboundSchema).optional(),
|
|
37768
38016
|
vendor_policy: lazyType(() => ZoneConfigVendorPolicy$inboundSchema).optional(),
|
|
37769
38017
|
visitor_checkin_policy: lazyType(() => VisitorCheckinPolicy$inboundSchema).optional(),
|
|
37770
38018
|
visit_request_policy: lazyType(() => VisitRequestPolicy$inboundSchema).optional()
|
|
@@ -37782,7 +38030,7 @@ var init_zoneconfig = __esm(() => {
|
|
|
37782
38030
|
id: numberType().int().optional(),
|
|
37783
38031
|
zoneId: numberType().int().optional(),
|
|
37784
38032
|
sortOrder: nullableType(numberType().int()).optional(),
|
|
37785
|
-
appliesTo: lazyType(() =>
|
|
38033
|
+
appliesTo: lazyType(() => ZoneConfigAppliesTo$outboundSchema).optional(),
|
|
37786
38034
|
vendorPolicy: lazyType(() => ZoneConfigVendorPolicy$outboundSchema).optional(),
|
|
37787
38035
|
visitorCheckinPolicy: lazyType(() => VisitorCheckinPolicy$outboundSchema).optional(),
|
|
37788
38036
|
visitRequestPolicy: lazyType(() => VisitRequestPolicy$outboundSchema).optional()
|
|
@@ -38591,6 +38839,7 @@ var init_subscription = __esm(() => {
|
|
|
38591
38839
|
init_primitives();
|
|
38592
38840
|
init_financialstatus();
|
|
38593
38841
|
init_invoiceitem();
|
|
38842
|
+
init_productvariant();
|
|
38594
38843
|
Subscription$inboundSchema = objectType({
|
|
38595
38844
|
id: nullableType(numberType().int()).optional(),
|
|
38596
38845
|
date_started: nullableType(stringType()).optional(),
|
|
@@ -38601,7 +38850,8 @@ var init_subscription = __esm(() => {
|
|
|
38601
38850
|
current_line_item: nullableType(InvoiceItem$inboundSchema).optional(),
|
|
38602
38851
|
next_line_item: nullableType(InvoiceItem$inboundSchema).optional(),
|
|
38603
38852
|
current_financial_status: nullableType(FinancialStatus$inboundSchema).optional(),
|
|
38604
|
-
next_financial_status: nullableType(FinancialStatus$inboundSchema).optional()
|
|
38853
|
+
next_financial_status: nullableType(FinancialStatus$inboundSchema).optional(),
|
|
38854
|
+
expedited_offer: nullableType(ProductVariant$inboundSchema).optional()
|
|
38605
38855
|
}).transform((v2) => {
|
|
38606
38856
|
return remap(v2, {
|
|
38607
38857
|
date_started: "dateStarted",
|
|
@@ -38610,7 +38860,8 @@ var init_subscription = __esm(() => {
|
|
|
38610
38860
|
current_line_item: "currentLineItem",
|
|
38611
38861
|
next_line_item: "nextLineItem",
|
|
38612
38862
|
current_financial_status: "currentFinancialStatus",
|
|
38613
|
-
next_financial_status: "nextFinancialStatus"
|
|
38863
|
+
next_financial_status: "nextFinancialStatus",
|
|
38864
|
+
expedited_offer: "expeditedOffer"
|
|
38614
38865
|
});
|
|
38615
38866
|
});
|
|
38616
38867
|
Subscription$outboundSchema = objectType({
|
|
@@ -38623,7 +38874,8 @@ var init_subscription = __esm(() => {
|
|
|
38623
38874
|
currentLineItem: nullableType(InvoiceItem$outboundSchema).optional(),
|
|
38624
38875
|
nextLineItem: nullableType(InvoiceItem$outboundSchema).optional(),
|
|
38625
38876
|
currentFinancialStatus: nullableType(FinancialStatus$outboundSchema).optional(),
|
|
38626
|
-
nextFinancialStatus: nullableType(FinancialStatus$outboundSchema).optional()
|
|
38877
|
+
nextFinancialStatus: nullableType(FinancialStatus$outboundSchema).optional(),
|
|
38878
|
+
expeditedOffer: nullableType(ProductVariant$outboundSchema).optional()
|
|
38627
38879
|
}).transform((v2) => {
|
|
38628
38880
|
return remap(v2, {
|
|
38629
38881
|
dateStarted: "date_started",
|
|
@@ -38632,7 +38884,8 @@ var init_subscription = __esm(() => {
|
|
|
38632
38884
|
currentLineItem: "current_line_item",
|
|
38633
38885
|
nextLineItem: "next_line_item",
|
|
38634
38886
|
currentFinancialStatus: "current_financial_status",
|
|
38635
|
-
nextFinancialStatus: "next_financial_status"
|
|
38887
|
+
nextFinancialStatus: "next_financial_status",
|
|
38888
|
+
expeditedOffer: "expedited_offer"
|
|
38636
38889
|
});
|
|
38637
38890
|
});
|
|
38638
38891
|
((Subscription$) => {
|
|
@@ -38905,6 +39158,37 @@ var init_userlocation = __esm(() => {
|
|
|
38905
39158
|
})(UserLocation$ ||= {});
|
|
38906
39159
|
});
|
|
38907
39160
|
|
|
39161
|
+
// src/models/components/vendorgroup.ts
|
|
39162
|
+
var VendorGroup$inboundSchema, VendorGroup$outboundSchema, VendorGroup$;
|
|
39163
|
+
var init_vendorgroup = __esm(() => {
|
|
39164
|
+
init_esm();
|
|
39165
|
+
init_primitives();
|
|
39166
|
+
VendorGroup$inboundSchema = objectType({
|
|
39167
|
+
id: numberType().int().optional(),
|
|
39168
|
+
name: stringType().optional(),
|
|
39169
|
+
description: nullableType(stringType()).optional(),
|
|
39170
|
+
vendor_type_ids: nullableType(stringType()).optional()
|
|
39171
|
+
}).transform((v2) => {
|
|
39172
|
+
return remap(v2, {
|
|
39173
|
+
vendor_type_ids: "vendorTypeIds"
|
|
39174
|
+
});
|
|
39175
|
+
});
|
|
39176
|
+
VendorGroup$outboundSchema = objectType({
|
|
39177
|
+
id: numberType().int().optional(),
|
|
39178
|
+
name: stringType().optional(),
|
|
39179
|
+
description: nullableType(stringType()).optional(),
|
|
39180
|
+
vendorTypeIds: nullableType(stringType()).optional()
|
|
39181
|
+
}).transform((v2) => {
|
|
39182
|
+
return remap(v2, {
|
|
39183
|
+
vendorTypeIds: "vendor_type_ids"
|
|
39184
|
+
});
|
|
39185
|
+
});
|
|
39186
|
+
((VendorGroup$) => {
|
|
39187
|
+
VendorGroup$.inboundSchema = VendorGroup$inboundSchema;
|
|
39188
|
+
VendorGroup$.outboundSchema = VendorGroup$outboundSchema;
|
|
39189
|
+
})(VendorGroup$ ||= {});
|
|
39190
|
+
});
|
|
39191
|
+
|
|
38908
39192
|
// src/models/components/vendorjobtitle.ts
|
|
38909
39193
|
var VendorJobTitle$inboundSchema, VendorJobTitle$outboundSchema, VendorJobTitle$;
|
|
38910
39194
|
var init_vendorjobtitle = __esm(() => {
|
|
@@ -38924,7 +39208,7 @@ var init_vendorjobtitle = __esm(() => {
|
|
|
38924
39208
|
});
|
|
38925
39209
|
|
|
38926
39210
|
// src/models/components/vendor.ts
|
|
38927
|
-
var One$inboundSchema, One$outboundSchema, One$, VendorUser$inboundSchema, VendorUser$outboundSchema, VendorUser$, VendorJob$inboundSchema, VendorJob$outboundSchema, VendorJob$, VendorVendorType$inboundSchema, VendorVendorType$outboundSchema, VendorVendorType$, Vendor22$inboundSchema, Vendor22$outboundSchema, Vendor22$, VendorPaymentProfile2$inboundSchema, VendorPaymentProfile2$outboundSchema, VendorPaymentProfile2$, VendorPaymentProfile1$inboundSchema, VendorPaymentProfile1$outboundSchema, VendorPaymentProfile1$, PaymentProfilePaymentProfile$inboundSchema, PaymentProfilePaymentProfile$outboundSchema, PaymentProfilePaymentProfile$, VendorPaymentProfile$inboundSchema, VendorPaymentProfile$outboundSchema, VendorPaymentProfile$, PaymentResponsibility$inboundSchema, PaymentResponsibility$outboundSchema, PaymentResponsibility$, Vendor$inboundSchema, Vendor$outboundSchema, Vendor$;
|
|
39211
|
+
var One$inboundSchema, One$outboundSchema, One$, VendorUser$inboundSchema, VendorUser$outboundSchema, VendorUser$, VendorJob$inboundSchema, VendorJob$outboundSchema, VendorJob$, VendorVendorType$inboundSchema, VendorVendorType$outboundSchema, VendorVendorType$, Vendor22$inboundSchema, Vendor22$outboundSchema, Vendor22$, VendorPaymentProfile2$inboundSchema, VendorPaymentProfile2$outboundSchema, VendorPaymentProfile2$, VendorPaymentProfile1$inboundSchema, VendorPaymentProfile1$outboundSchema, VendorPaymentProfile1$, PaymentProfilePaymentProfile$inboundSchema, PaymentProfilePaymentProfile$outboundSchema, PaymentProfilePaymentProfile$, VendorPaymentProfile$inboundSchema, VendorPaymentProfile$outboundSchema, VendorPaymentProfile$, PaymentResponsibility$inboundSchema, PaymentResponsibility$outboundSchema, PaymentResponsibility$, TargetFacilities$inboundSchema, TargetFacilities$outboundSchema, TargetFacilities$, PendingInvoice$inboundSchema, PendingInvoice$outboundSchema, PendingInvoice$, Vendor$inboundSchema, Vendor$outboundSchema, Vendor$;
|
|
38928
39212
|
var init_vendor = __esm(() => {
|
|
38929
39213
|
init_esm();
|
|
38930
39214
|
init_primitives();
|
|
@@ -38932,9 +39216,11 @@ var init_vendor = __esm(() => {
|
|
|
38932
39216
|
init_department();
|
|
38933
39217
|
init_facility();
|
|
38934
39218
|
init_imageset();
|
|
39219
|
+
init_invoice();
|
|
38935
39220
|
init_subscription();
|
|
38936
39221
|
init_supervisor();
|
|
38937
39222
|
init_userlocation();
|
|
39223
|
+
init_vendorgroup();
|
|
38938
39224
|
init_vendorjobtitle();
|
|
38939
39225
|
init_vendortype();
|
|
38940
39226
|
One$inboundSchema = objectType({
|
|
@@ -39159,6 +39445,24 @@ var init_vendor = __esm(() => {
|
|
|
39159
39445
|
PaymentResponsibility$.inboundSchema = PaymentResponsibility$inboundSchema;
|
|
39160
39446
|
PaymentResponsibility$.outboundSchema = PaymentResponsibility$outboundSchema;
|
|
39161
39447
|
})(PaymentResponsibility$ ||= {});
|
|
39448
|
+
TargetFacilities$inboundSchema = objectType({
|
|
39449
|
+
id: numberType().int().optional(),
|
|
39450
|
+
name: nullableType(stringType()).optional()
|
|
39451
|
+
});
|
|
39452
|
+
TargetFacilities$outboundSchema = objectType({
|
|
39453
|
+
id: numberType().int().optional(),
|
|
39454
|
+
name: nullableType(stringType()).optional()
|
|
39455
|
+
});
|
|
39456
|
+
((TargetFacilities$) => {
|
|
39457
|
+
TargetFacilities$.inboundSchema = TargetFacilities$inboundSchema;
|
|
39458
|
+
TargetFacilities$.outboundSchema = TargetFacilities$outboundSchema;
|
|
39459
|
+
})(TargetFacilities$ ||= {});
|
|
39460
|
+
PendingInvoice$inboundSchema = unionType([Invoice$inboundSchema, numberType().int()]);
|
|
39461
|
+
PendingInvoice$outboundSchema = unionType([Invoice$outboundSchema, numberType().int()]);
|
|
39462
|
+
((PendingInvoice$) => {
|
|
39463
|
+
PendingInvoice$.inboundSchema = PendingInvoice$inboundSchema;
|
|
39464
|
+
PendingInvoice$.outboundSchema = PendingInvoice$outboundSchema;
|
|
39465
|
+
})(PendingInvoice$ ||= {});
|
|
39162
39466
|
Vendor$inboundSchema = objectType({
|
|
39163
39467
|
id: numberType().int().optional(),
|
|
39164
39468
|
email_recepient: nullableType(stringType()).optional(),
|
|
@@ -39188,7 +39492,10 @@ var init_vendor = __esm(() => {
|
|
|
39188
39492
|
scrubs_subscription: nullableType(Subscription$inboundSchema).optional(),
|
|
39189
39493
|
payment_responsibility: nullableType(lazyType(() => PaymentResponsibility$inboundSchema)).optional(),
|
|
39190
39494
|
background_check_date_expires: nullableType(stringType()).optional(),
|
|
39191
|
-
credit_balance: nullableType(numberType()).optional()
|
|
39495
|
+
credit_balance: nullableType(numberType()).optional(),
|
|
39496
|
+
target_facilities: nullableType(arrayType(lazyType(() => TargetFacilities$inboundSchema))).optional(),
|
|
39497
|
+
pending_invoice: nullableType(unionType([Invoice$inboundSchema, numberType().int()])).optional(),
|
|
39498
|
+
vendor_groups: nullableType(arrayType(nullableType(VendorGroup$inboundSchema))).optional()
|
|
39192
39499
|
}).transform((v2) => {
|
|
39193
39500
|
return remap(v2, {
|
|
39194
39501
|
email_recepient: "emailRecepient",
|
|
@@ -39208,7 +39515,10 @@ var init_vendor = __esm(() => {
|
|
|
39208
39515
|
scrubs_subscription: "scrubsSubscription",
|
|
39209
39516
|
payment_responsibility: "paymentResponsibility",
|
|
39210
39517
|
background_check_date_expires: "backgroundCheckDateExpires",
|
|
39211
|
-
credit_balance: "creditBalance"
|
|
39518
|
+
credit_balance: "creditBalance",
|
|
39519
|
+
target_facilities: "targetFacilities",
|
|
39520
|
+
pending_invoice: "pendingInvoice",
|
|
39521
|
+
vendor_groups: "vendorGroups"
|
|
39212
39522
|
});
|
|
39213
39523
|
});
|
|
39214
39524
|
Vendor$outboundSchema = objectType({
|
|
@@ -39240,7 +39550,10 @@ var init_vendor = __esm(() => {
|
|
|
39240
39550
|
scrubsSubscription: nullableType(Subscription$outboundSchema).optional(),
|
|
39241
39551
|
paymentResponsibility: nullableType(lazyType(() => PaymentResponsibility$outboundSchema)).optional(),
|
|
39242
39552
|
backgroundCheckDateExpires: nullableType(stringType()).optional(),
|
|
39243
|
-
creditBalance: nullableType(numberType()).optional()
|
|
39553
|
+
creditBalance: nullableType(numberType()).optional(),
|
|
39554
|
+
targetFacilities: nullableType(arrayType(lazyType(() => TargetFacilities$outboundSchema))).optional(),
|
|
39555
|
+
pendingInvoice: nullableType(unionType([Invoice$outboundSchema, numberType().int()])).optional(),
|
|
39556
|
+
vendorGroups: nullableType(arrayType(nullableType(VendorGroup$outboundSchema))).optional()
|
|
39244
39557
|
}).transform((v2) => {
|
|
39245
39558
|
return remap(v2, {
|
|
39246
39559
|
emailRecepient: "email_recepient",
|
|
@@ -39260,7 +39573,10 @@ var init_vendor = __esm(() => {
|
|
|
39260
39573
|
scrubsSubscription: "scrubs_subscription",
|
|
39261
39574
|
paymentResponsibility: "payment_responsibility",
|
|
39262
39575
|
backgroundCheckDateExpires: "background_check_date_expires",
|
|
39263
|
-
creditBalance: "credit_balance"
|
|
39576
|
+
creditBalance: "credit_balance",
|
|
39577
|
+
targetFacilities: "target_facilities",
|
|
39578
|
+
pendingInvoice: "pending_invoice",
|
|
39579
|
+
vendorGroups: "vendor_groups"
|
|
39264
39580
|
});
|
|
39265
39581
|
});
|
|
39266
39582
|
((Vendor$) => {
|
|
@@ -40274,6 +40590,7 @@ var init_components = __esm(() => {
|
|
|
40274
40590
|
init_activestatus();
|
|
40275
40591
|
init_backgroundcheckresult();
|
|
40276
40592
|
init_company();
|
|
40593
|
+
init_companyvendortyperestriction();
|
|
40277
40594
|
init_contact();
|
|
40278
40595
|
init_contenttype();
|
|
40279
40596
|
init_credential();
|
|
@@ -40282,12 +40599,14 @@ var init_components = __esm(() => {
|
|
|
40282
40599
|
init_credit();
|
|
40283
40600
|
init_datarequest();
|
|
40284
40601
|
init_department();
|
|
40602
|
+
init_departmentmembership();
|
|
40285
40603
|
init_departmentsummary();
|
|
40286
40604
|
init_desc();
|
|
40287
40605
|
init_expand();
|
|
40288
40606
|
init_facility();
|
|
40289
40607
|
init_facilitystatus();
|
|
40290
40608
|
init_facilitysummary();
|
|
40609
|
+
init_facilityvendortype();
|
|
40291
40610
|
init_financialstatus();
|
|
40292
40611
|
init_handoff();
|
|
40293
40612
|
init_imageset();
|
|
@@ -40313,6 +40632,7 @@ var init_components = __esm(() => {
|
|
|
40313
40632
|
init_systemsummary();
|
|
40314
40633
|
init_user();
|
|
40315
40634
|
init_userlocation();
|
|
40635
|
+
init_usersummary();
|
|
40316
40636
|
init_vendor();
|
|
40317
40637
|
init_vendoradditionalfacilityfields();
|
|
40318
40638
|
init_vendorcredentialdatarequest();
|
|
@@ -40320,6 +40640,7 @@ var init_components = __esm(() => {
|
|
|
40320
40640
|
init_vendorcredentialscontainer();
|
|
40321
40641
|
init_vendorcredentialsummary();
|
|
40322
40642
|
init_vendorfacilitystatusview();
|
|
40643
|
+
init_vendorgroup();
|
|
40323
40644
|
init_vendorjobtitle();
|
|
40324
40645
|
init_vendormanagedbycompany();
|
|
40325
40646
|
init_vendorrequiredcredential();
|
|
@@ -41520,6 +41841,44 @@ var init_getsecurityzone = __esm(() => {
|
|
|
41520
41841
|
})(GetSecurityZoneRequest$ ||= {});
|
|
41521
41842
|
});
|
|
41522
41843
|
|
|
41844
|
+
// src/models/operations/getsubscription.ts
|
|
41845
|
+
var GetSubscriptionRequest$inboundSchema, GetSubscriptionRequest$outboundSchema, GetSubscriptionRequest$, GetSubscriptionResponseBody$inboundSchema, GetSubscriptionResponseBody$outboundSchema, GetSubscriptionResponseBody$;
|
|
41846
|
+
var init_getsubscription = __esm(() => {
|
|
41847
|
+
init_esm();
|
|
41848
|
+
init_primitives();
|
|
41849
|
+
init_components();
|
|
41850
|
+
GetSubscriptionRequest$inboundSchema = objectType({
|
|
41851
|
+
vendor_id_or_me: stringType(),
|
|
41852
|
+
expand: arrayType(Expand$inboundSchema).optional()
|
|
41853
|
+
}).transform((v2) => {
|
|
41854
|
+
return remap(v2, {
|
|
41855
|
+
vendor_id_or_me: "vendorIdOrMe"
|
|
41856
|
+
});
|
|
41857
|
+
});
|
|
41858
|
+
GetSubscriptionRequest$outboundSchema = objectType({
|
|
41859
|
+
vendorIdOrMe: stringType(),
|
|
41860
|
+
expand: arrayType(Expand$outboundSchema).optional()
|
|
41861
|
+
}).transform((v2) => {
|
|
41862
|
+
return remap(v2, {
|
|
41863
|
+
vendorIdOrMe: "vendor_id_or_me"
|
|
41864
|
+
});
|
|
41865
|
+
});
|
|
41866
|
+
((GetSubscriptionRequest$) => {
|
|
41867
|
+
GetSubscriptionRequest$.inboundSchema = GetSubscriptionRequest$inboundSchema;
|
|
41868
|
+
GetSubscriptionRequest$.outboundSchema = GetSubscriptionRequest$outboundSchema;
|
|
41869
|
+
})(GetSubscriptionRequest$ ||= {});
|
|
41870
|
+
GetSubscriptionResponseBody$inboundSchema = objectType({
|
|
41871
|
+
subscription: nullableType(Subscription$inboundSchema).optional()
|
|
41872
|
+
});
|
|
41873
|
+
GetSubscriptionResponseBody$outboundSchema = objectType({
|
|
41874
|
+
subscription: nullableType(Subscription$outboundSchema).optional()
|
|
41875
|
+
});
|
|
41876
|
+
((GetSubscriptionResponseBody$) => {
|
|
41877
|
+
GetSubscriptionResponseBody$.inboundSchema = GetSubscriptionResponseBody$inboundSchema;
|
|
41878
|
+
GetSubscriptionResponseBody$.outboundSchema = GetSubscriptionResponseBody$outboundSchema;
|
|
41879
|
+
})(GetSubscriptionResponseBody$ ||= {});
|
|
41880
|
+
});
|
|
41881
|
+
|
|
41523
41882
|
// src/models/operations/getsupportarticle.ts
|
|
41524
41883
|
var GetSupportArticleRequest$inboundSchema, GetSupportArticleRequest$outboundSchema, GetSupportArticleRequest$;
|
|
41525
41884
|
var init_getsupportarticle = __esm(() => {
|
|
@@ -41857,13 +42216,81 @@ var init_listorsearchcompanies = __esm(() => {
|
|
|
41857
42216
|
})(ListOrSearchCompaniesResponse$ ||= {});
|
|
41858
42217
|
});
|
|
41859
42218
|
|
|
41860
|
-
// src/models/operations/
|
|
41861
|
-
var
|
|
41862
|
-
var
|
|
42219
|
+
// src/models/operations/listorsearchdepartmentcontacts.ts
|
|
42220
|
+
var ListOrSearchDepartmentContactsRequest$inboundSchema, ListOrSearchDepartmentContactsRequest$outboundSchema, ListOrSearchDepartmentContactsRequest$, ListOrSearchDepartmentContactsResponseBody$inboundSchema, ListOrSearchDepartmentContactsResponseBody$outboundSchema, ListOrSearchDepartmentContactsResponseBody$, ListOrSearchDepartmentContactsResponse$inboundSchema, ListOrSearchDepartmentContactsResponse$outboundSchema, ListOrSearchDepartmentContactsResponse$;
|
|
42221
|
+
var init_listorsearchdepartmentcontacts = __esm(() => {
|
|
41863
42222
|
init_esm();
|
|
41864
42223
|
init_primitives();
|
|
41865
42224
|
init_components();
|
|
41866
|
-
|
|
42225
|
+
ListOrSearchDepartmentContactsRequest$inboundSchema = objectType({
|
|
42226
|
+
id: numberType().int(),
|
|
42227
|
+
sort: nullableType(stringType()).optional(),
|
|
42228
|
+
desc: Desc$inboundSchema.optional(),
|
|
42229
|
+
page: numberType().int().optional(),
|
|
42230
|
+
items_per_page: numberType().int().optional(),
|
|
42231
|
+
search: stringType().optional(),
|
|
42232
|
+
expand: arrayType(Expand$inboundSchema).optional()
|
|
42233
|
+
}).transform((v2) => {
|
|
42234
|
+
return remap(v2, {
|
|
42235
|
+
items_per_page: "itemsPerPage"
|
|
42236
|
+
});
|
|
42237
|
+
});
|
|
42238
|
+
ListOrSearchDepartmentContactsRequest$outboundSchema = objectType({
|
|
42239
|
+
id: numberType().int(),
|
|
42240
|
+
sort: nullableType(stringType()).optional(),
|
|
42241
|
+
desc: Desc$outboundSchema.optional(),
|
|
42242
|
+
page: numberType().int().optional(),
|
|
42243
|
+
itemsPerPage: numberType().int().optional(),
|
|
42244
|
+
search: stringType().optional(),
|
|
42245
|
+
expand: arrayType(Expand$outboundSchema).optional()
|
|
42246
|
+
}).transform((v2) => {
|
|
42247
|
+
return remap(v2, {
|
|
42248
|
+
itemsPerPage: "items_per_page"
|
|
42249
|
+
});
|
|
42250
|
+
});
|
|
42251
|
+
((ListOrSearchDepartmentContactsRequest$) => {
|
|
42252
|
+
ListOrSearchDepartmentContactsRequest$.inboundSchema = ListOrSearchDepartmentContactsRequest$inboundSchema;
|
|
42253
|
+
ListOrSearchDepartmentContactsRequest$.outboundSchema = ListOrSearchDepartmentContactsRequest$outboundSchema;
|
|
42254
|
+
})(ListOrSearchDepartmentContactsRequest$ ||= {});
|
|
42255
|
+
ListOrSearchDepartmentContactsResponseBody$inboundSchema = objectType({
|
|
42256
|
+
pager: Pager$inboundSchema,
|
|
42257
|
+
items: arrayType(nullableType(DepartmentMembership$inboundSchema))
|
|
42258
|
+
});
|
|
42259
|
+
ListOrSearchDepartmentContactsResponseBody$outboundSchema = objectType({
|
|
42260
|
+
pager: Pager$outboundSchema,
|
|
42261
|
+
items: arrayType(nullableType(DepartmentMembership$outboundSchema))
|
|
42262
|
+
});
|
|
42263
|
+
((ListOrSearchDepartmentContactsResponseBody$) => {
|
|
42264
|
+
ListOrSearchDepartmentContactsResponseBody$.inboundSchema = ListOrSearchDepartmentContactsResponseBody$inboundSchema;
|
|
42265
|
+
ListOrSearchDepartmentContactsResponseBody$.outboundSchema = ListOrSearchDepartmentContactsResponseBody$outboundSchema;
|
|
42266
|
+
})(ListOrSearchDepartmentContactsResponseBody$ ||= {});
|
|
42267
|
+
ListOrSearchDepartmentContactsResponse$inboundSchema = objectType({
|
|
42268
|
+
Result: lazyType(() => ListOrSearchDepartmentContactsResponseBody$inboundSchema)
|
|
42269
|
+
}).transform((v2) => {
|
|
42270
|
+
return remap(v2, {
|
|
42271
|
+
Result: "result"
|
|
42272
|
+
});
|
|
42273
|
+
});
|
|
42274
|
+
ListOrSearchDepartmentContactsResponse$outboundSchema = objectType({
|
|
42275
|
+
result: lazyType(() => ListOrSearchDepartmentContactsResponseBody$outboundSchema)
|
|
42276
|
+
}).transform((v2) => {
|
|
42277
|
+
return remap(v2, {
|
|
42278
|
+
result: "Result"
|
|
42279
|
+
});
|
|
42280
|
+
});
|
|
42281
|
+
((ListOrSearchDepartmentContactsResponse$) => {
|
|
42282
|
+
ListOrSearchDepartmentContactsResponse$.inboundSchema = ListOrSearchDepartmentContactsResponse$inboundSchema;
|
|
42283
|
+
ListOrSearchDepartmentContactsResponse$.outboundSchema = ListOrSearchDepartmentContactsResponse$outboundSchema;
|
|
42284
|
+
})(ListOrSearchDepartmentContactsResponse$ ||= {});
|
|
42285
|
+
});
|
|
42286
|
+
|
|
42287
|
+
// src/models/operations/listorsearchdepartments.ts
|
|
42288
|
+
var ListOrSearchDepartmentsRequest$inboundSchema, ListOrSearchDepartmentsRequest$outboundSchema, ListOrSearchDepartmentsRequest$, ListOrSearchDepartmentsResponseBody$inboundSchema, ListOrSearchDepartmentsResponseBody$outboundSchema, ListOrSearchDepartmentsResponseBody$, ListOrSearchDepartmentsResponse$inboundSchema, ListOrSearchDepartmentsResponse$outboundSchema, ListOrSearchDepartmentsResponse$;
|
|
42289
|
+
var init_listorsearchdepartments = __esm(() => {
|
|
42290
|
+
init_esm();
|
|
42291
|
+
init_primitives();
|
|
42292
|
+
init_components();
|
|
42293
|
+
ListOrSearchDepartmentsRequest$inboundSchema = objectType({
|
|
41867
42294
|
id: numberType().int(),
|
|
41868
42295
|
sort: nullableType(stringType()).optional(),
|
|
41869
42296
|
desc: Desc$inboundSchema.optional(),
|
|
@@ -42157,6 +42584,74 @@ var init_listorsearchsupportarticles = __esm(() => {
|
|
|
42157
42584
|
})(ListOrSearchSupportArticlesResponse$ ||= {});
|
|
42158
42585
|
});
|
|
42159
42586
|
|
|
42587
|
+
// src/models/operations/listsystems.ts
|
|
42588
|
+
var ListSystemsRequest$inboundSchema, ListSystemsRequest$outboundSchema, ListSystemsRequest$, ListSystemsResponseBody$inboundSchema, ListSystemsResponseBody$outboundSchema, ListSystemsResponseBody$, ListSystemsResponse$inboundSchema, ListSystemsResponse$outboundSchema, ListSystemsResponse$;
|
|
42589
|
+
var init_listsystems = __esm(() => {
|
|
42590
|
+
init_esm();
|
|
42591
|
+
init_primitives();
|
|
42592
|
+
init_components();
|
|
42593
|
+
ListSystemsRequest$inboundSchema = objectType({
|
|
42594
|
+
sort: nullableType(stringType()).optional(),
|
|
42595
|
+
desc: Desc$inboundSchema.optional(),
|
|
42596
|
+
page: numberType().int().optional(),
|
|
42597
|
+
items_per_page: numberType().int().optional(),
|
|
42598
|
+
name_like: stringType().optional(),
|
|
42599
|
+
expand: arrayType(Expand$inboundSchema).optional()
|
|
42600
|
+
}).transform((v2) => {
|
|
42601
|
+
return remap(v2, {
|
|
42602
|
+
items_per_page: "itemsPerPage",
|
|
42603
|
+
name_like: "nameLike"
|
|
42604
|
+
});
|
|
42605
|
+
});
|
|
42606
|
+
ListSystemsRequest$outboundSchema = objectType({
|
|
42607
|
+
sort: nullableType(stringType()).optional(),
|
|
42608
|
+
desc: Desc$outboundSchema.optional(),
|
|
42609
|
+
page: numberType().int().optional(),
|
|
42610
|
+
itemsPerPage: numberType().int().optional(),
|
|
42611
|
+
nameLike: stringType().optional(),
|
|
42612
|
+
expand: arrayType(Expand$outboundSchema).optional()
|
|
42613
|
+
}).transform((v2) => {
|
|
42614
|
+
return remap(v2, {
|
|
42615
|
+
itemsPerPage: "items_per_page",
|
|
42616
|
+
nameLike: "name_like"
|
|
42617
|
+
});
|
|
42618
|
+
});
|
|
42619
|
+
((ListSystemsRequest$) => {
|
|
42620
|
+
ListSystemsRequest$.inboundSchema = ListSystemsRequest$inboundSchema;
|
|
42621
|
+
ListSystemsRequest$.outboundSchema = ListSystemsRequest$outboundSchema;
|
|
42622
|
+
})(ListSystemsRequest$ ||= {});
|
|
42623
|
+
ListSystemsResponseBody$inboundSchema = objectType({
|
|
42624
|
+
pager: Pager$inboundSchema,
|
|
42625
|
+
items: arrayType(SystemSummary$inboundSchema)
|
|
42626
|
+
});
|
|
42627
|
+
ListSystemsResponseBody$outboundSchema = objectType({
|
|
42628
|
+
pager: Pager$outboundSchema,
|
|
42629
|
+
items: arrayType(SystemSummary$outboundSchema)
|
|
42630
|
+
});
|
|
42631
|
+
((ListSystemsResponseBody$) => {
|
|
42632
|
+
ListSystemsResponseBody$.inboundSchema = ListSystemsResponseBody$inboundSchema;
|
|
42633
|
+
ListSystemsResponseBody$.outboundSchema = ListSystemsResponseBody$outboundSchema;
|
|
42634
|
+
})(ListSystemsResponseBody$ ||= {});
|
|
42635
|
+
ListSystemsResponse$inboundSchema = objectType({
|
|
42636
|
+
Result: lazyType(() => ListSystemsResponseBody$inboundSchema)
|
|
42637
|
+
}).transform((v2) => {
|
|
42638
|
+
return remap(v2, {
|
|
42639
|
+
Result: "result"
|
|
42640
|
+
});
|
|
42641
|
+
});
|
|
42642
|
+
ListSystemsResponse$outboundSchema = objectType({
|
|
42643
|
+
result: lazyType(() => ListSystemsResponseBody$outboundSchema)
|
|
42644
|
+
}).transform((v2) => {
|
|
42645
|
+
return remap(v2, {
|
|
42646
|
+
result: "Result"
|
|
42647
|
+
});
|
|
42648
|
+
});
|
|
42649
|
+
((ListSystemsResponse$) => {
|
|
42650
|
+
ListSystemsResponse$.inboundSchema = ListSystemsResponse$inboundSchema;
|
|
42651
|
+
ListSystemsResponse$.outboundSchema = ListSystemsResponse$outboundSchema;
|
|
42652
|
+
})(ListSystemsResponse$ ||= {});
|
|
42653
|
+
});
|
|
42654
|
+
|
|
42160
42655
|
// src/models/operations/listvendoradditionalfacilityfields.ts
|
|
42161
42656
|
var ListVendorAdditionalFacilityFieldsRequest$inboundSchema, ListVendorAdditionalFacilityFieldsRequest$outboundSchema, ListVendorAdditionalFacilityFieldsRequest$, ListVendorAdditionalFacilityFieldsListVendorAdditionalFacilityFieldsOk$inboundSchema, ListVendorAdditionalFacilityFieldsListVendorAdditionalFacilityFieldsOk$outboundSchema, ListVendorAdditionalFacilityFieldsListVendorAdditionalFacilityFieldsOk$, ListVendorAdditionalFacilityFieldsResponse$inboundSchema, ListVendorAdditionalFacilityFieldsResponse$outboundSchema, ListVendorAdditionalFacilityFieldsResponse$;
|
|
42162
42657
|
var init_listvendoradditionalfacilityfields = __esm(() => {
|
|
@@ -43016,6 +43511,68 @@ var init_listvendorscrubpurchases = __esm(() => {
|
|
|
43016
43511
|
})(ListVendorScrubPurchasesResponse$ ||= {});
|
|
43017
43512
|
});
|
|
43018
43513
|
|
|
43514
|
+
// src/models/operations/listvendortypes.ts
|
|
43515
|
+
var ListVendorTypesRequest$inboundSchema, ListVendorTypesRequest$outboundSchema, ListVendorTypesRequest$, ListVendorTypesResponseBody$inboundSchema, ListVendorTypesResponseBody$outboundSchema, ListVendorTypesResponseBody$, ListVendorTypesResponse$inboundSchema, ListVendorTypesResponse$outboundSchema, ListVendorTypesResponse$;
|
|
43516
|
+
var init_listvendortypes = __esm(() => {
|
|
43517
|
+
init_esm();
|
|
43518
|
+
init_primitives();
|
|
43519
|
+
init_components();
|
|
43520
|
+
ListVendorTypesRequest$inboundSchema = objectType({
|
|
43521
|
+
sort: nullableType(stringType()).optional(),
|
|
43522
|
+
desc: Desc$inboundSchema.optional(),
|
|
43523
|
+
page: numberType().int().optional(),
|
|
43524
|
+
items_per_page: numberType().int().optional()
|
|
43525
|
+
}).transform((v2) => {
|
|
43526
|
+
return remap(v2, {
|
|
43527
|
+
items_per_page: "itemsPerPage"
|
|
43528
|
+
});
|
|
43529
|
+
});
|
|
43530
|
+
ListVendorTypesRequest$outboundSchema = objectType({
|
|
43531
|
+
sort: nullableType(stringType()).optional(),
|
|
43532
|
+
desc: Desc$outboundSchema.optional(),
|
|
43533
|
+
page: numberType().int().optional(),
|
|
43534
|
+
itemsPerPage: numberType().int().optional()
|
|
43535
|
+
}).transform((v2) => {
|
|
43536
|
+
return remap(v2, {
|
|
43537
|
+
itemsPerPage: "items_per_page"
|
|
43538
|
+
});
|
|
43539
|
+
});
|
|
43540
|
+
((ListVendorTypesRequest$) => {
|
|
43541
|
+
ListVendorTypesRequest$.inboundSchema = ListVendorTypesRequest$inboundSchema;
|
|
43542
|
+
ListVendorTypesRequest$.outboundSchema = ListVendorTypesRequest$outboundSchema;
|
|
43543
|
+
})(ListVendorTypesRequest$ ||= {});
|
|
43544
|
+
ListVendorTypesResponseBody$inboundSchema = objectType({
|
|
43545
|
+
pager: Pager$inboundSchema,
|
|
43546
|
+
items: arrayType(nullableType(VendorType$inboundSchema))
|
|
43547
|
+
});
|
|
43548
|
+
ListVendorTypesResponseBody$outboundSchema = objectType({
|
|
43549
|
+
pager: Pager$outboundSchema,
|
|
43550
|
+
items: arrayType(nullableType(VendorType$outboundSchema))
|
|
43551
|
+
});
|
|
43552
|
+
((ListVendorTypesResponseBody$) => {
|
|
43553
|
+
ListVendorTypesResponseBody$.inboundSchema = ListVendorTypesResponseBody$inboundSchema;
|
|
43554
|
+
ListVendorTypesResponseBody$.outboundSchema = ListVendorTypesResponseBody$outboundSchema;
|
|
43555
|
+
})(ListVendorTypesResponseBody$ ||= {});
|
|
43556
|
+
ListVendorTypesResponse$inboundSchema = objectType({
|
|
43557
|
+
Result: lazyType(() => ListVendorTypesResponseBody$inboundSchema)
|
|
43558
|
+
}).transform((v2) => {
|
|
43559
|
+
return remap(v2, {
|
|
43560
|
+
Result: "result"
|
|
43561
|
+
});
|
|
43562
|
+
});
|
|
43563
|
+
ListVendorTypesResponse$outboundSchema = objectType({
|
|
43564
|
+
result: lazyType(() => ListVendorTypesResponseBody$outboundSchema)
|
|
43565
|
+
}).transform((v2) => {
|
|
43566
|
+
return remap(v2, {
|
|
43567
|
+
result: "Result"
|
|
43568
|
+
});
|
|
43569
|
+
});
|
|
43570
|
+
((ListVendorTypesResponse$) => {
|
|
43571
|
+
ListVendorTypesResponse$.inboundSchema = ListVendorTypesResponse$inboundSchema;
|
|
43572
|
+
ListVendorTypesResponse$.outboundSchema = ListVendorTypesResponse$outboundSchema;
|
|
43573
|
+
})(ListVendorTypesResponse$ ||= {});
|
|
43574
|
+
});
|
|
43575
|
+
|
|
43019
43576
|
// src/models/operations/magiclink.ts
|
|
43020
43577
|
var MagiclinkRequestBody$inboundSchema, MagiclinkRequestBody$outboundSchema, MagiclinkRequestBody$, MagiclinkMagiclinkOk$inboundSchema, MagiclinkMagiclinkOk$outboundSchema, MagiclinkMagiclinkOk$;
|
|
43021
43578
|
var init_magiclink = __esm(() => {
|
|
@@ -44603,6 +45160,7 @@ var init_operations = __esm(() => {
|
|
|
44603
45160
|
init_expeditetimeremaining();
|
|
44604
45161
|
init_getfacility();
|
|
44605
45162
|
init_getsecurityzone();
|
|
45163
|
+
init_getsubscription();
|
|
44606
45164
|
init_getsupportarticle();
|
|
44607
45165
|
init_getuserbyid();
|
|
44608
45166
|
init_getvendorcredentialdetails();
|
|
@@ -44613,10 +45171,12 @@ var init_operations = __esm(() => {
|
|
|
44613
45171
|
init_getwebhookendpoint();
|
|
44614
45172
|
init_listallwebhookendpoints();
|
|
44615
45173
|
init_listorsearchcompanies();
|
|
45174
|
+
init_listorsearchdepartmentcontacts();
|
|
44616
45175
|
init_listorsearchdepartments();
|
|
44617
45176
|
init_listorsearchfacilities();
|
|
44618
45177
|
init_listorsearchsecurityzones();
|
|
44619
45178
|
init_listorsearchsupportarticles();
|
|
45179
|
+
init_listsystems();
|
|
44620
45180
|
init_listvendoradditionalfacilityfields();
|
|
44621
45181
|
init_listvendorcredentialdatarequests();
|
|
44622
45182
|
init_listvendorcredentialfiles();
|
|
@@ -44630,6 +45190,7 @@ var init_operations = __esm(() => {
|
|
|
44630
45190
|
init_listvendorscrubdetails();
|
|
44631
45191
|
init_listvendorscrubpackages();
|
|
44632
45192
|
init_listvendorscrubpurchases();
|
|
45193
|
+
init_listvendortypes();
|
|
44633
45194
|
init_magiclink();
|
|
44634
45195
|
init_makepayment();
|
|
44635
45196
|
init_password();
|
|
@@ -45621,12 +46182,12 @@ Retrieve an individual facility.`,
|
|
|
45621
46182
|
};
|
|
45622
46183
|
});
|
|
45623
46184
|
|
|
45624
|
-
// src/funcs/
|
|
45625
|
-
function
|
|
46185
|
+
// src/funcs/organizationsListOrSearchDepartmentContacts.ts
|
|
46186
|
+
function organizationsListOrSearchDepartmentContacts(client, request, options) {
|
|
45626
46187
|
return new APIPromise($do9(client, request, options));
|
|
45627
46188
|
}
|
|
45628
46189
|
async function $do9(client, request, options) {
|
|
45629
|
-
const parsed = safeParse(request, (value) =>
|
|
46190
|
+
const parsed = safeParse(request, (value) => ListOrSearchDepartmentContactsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45630
46191
|
if (!parsed.ok) {
|
|
45631
46192
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
45632
46193
|
}
|
|
@@ -45638,14 +46199,16 @@ async function $do9(client, request, options) {
|
|
|
45638
46199
|
charEncoding: "percent"
|
|
45639
46200
|
})
|
|
45640
46201
|
};
|
|
45641
|
-
const path = pathToFunc("/
|
|
45642
|
-
const query = encodeFormQuery({
|
|
46202
|
+
const path = pathToFunc("/departments/{id}/contacts")(pathParams);
|
|
46203
|
+
const query = queryJoin(encodeFormQuery({
|
|
46204
|
+
expand: payload.expand
|
|
46205
|
+
}, { explode: false }), encodeFormQuery({
|
|
45643
46206
|
desc: payload.desc,
|
|
45644
46207
|
items_per_page: payload.items_per_page,
|
|
45645
|
-
name_like: payload.name_like,
|
|
45646
46208
|
page: payload.page,
|
|
46209
|
+
search: payload.search,
|
|
45647
46210
|
sort: payload.sort
|
|
45648
|
-
});
|
|
46211
|
+
}));
|
|
45649
46212
|
const headers = new Headers(compactMap({
|
|
45650
46213
|
Accept: "application/json"
|
|
45651
46214
|
}));
|
|
@@ -45654,7 +46217,7 @@ async function $do9(client, request, options) {
|
|
|
45654
46217
|
const context = {
|
|
45655
46218
|
options: client._options,
|
|
45656
46219
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45657
|
-
operationID: "
|
|
46220
|
+
operationID: "listOrSearchDepartmentContacts",
|
|
45658
46221
|
oAuth2Scopes: [],
|
|
45659
46222
|
resolvedSecurity: requestSecurity,
|
|
45660
46223
|
securitySource: client._options.security,
|
|
@@ -45689,9 +46252,7 @@ async function $do9(client, request, options) {
|
|
|
45689
46252
|
const responseFields = {
|
|
45690
46253
|
HttpMeta: { Response: response, Request: req }
|
|
45691
46254
|
};
|
|
45692
|
-
const [result, raw] = await match(json(200,
|
|
45693
|
-
key: "Result"
|
|
45694
|
-
}), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
46255
|
+
const [result, raw] = await match(json(200, ListOrSearchDepartmentContactsResponse$inboundSchema, { key: "Result" }), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
45695
46256
|
if (!result.ok) {
|
|
45696
46257
|
return [haltIterator(result), {
|
|
45697
46258
|
status: "complete",
|
|
@@ -45713,7 +46274,7 @@ async function $do9(client, request, options) {
|
|
|
45713
46274
|
if (results.length < limit) {
|
|
45714
46275
|
return { next: () => null };
|
|
45715
46276
|
}
|
|
45716
|
-
const nextVal = () =>
|
|
46277
|
+
const nextVal = () => organizationsListOrSearchDepartmentContacts(client, {
|
|
45717
46278
|
...request,
|
|
45718
46279
|
page: nextPage
|
|
45719
46280
|
}, options);
|
|
@@ -45726,7 +46287,7 @@ async function $do9(client, request, options) {
|
|
|
45726
46287
|
response
|
|
45727
46288
|
}];
|
|
45728
46289
|
}
|
|
45729
|
-
var
|
|
46290
|
+
var init_organizationsListOrSearchDepartmentContacts = __esm(() => {
|
|
45730
46291
|
init_encodings();
|
|
45731
46292
|
init_matchers();
|
|
45732
46293
|
init_primitives();
|
|
@@ -45739,23 +46300,28 @@ var init_organizationsListOrSearchDepartments = __esm(() => {
|
|
|
45739
46300
|
init_operations2();
|
|
45740
46301
|
});
|
|
45741
46302
|
|
|
45742
|
-
// src/mcp-server/tools/
|
|
45743
|
-
var args9, tool$
|
|
45744
|
-
var
|
|
45745
|
-
|
|
46303
|
+
// src/mcp-server/tools/organizationsListOrSearchDepartmentContacts.ts
|
|
46304
|
+
var args9, tool$organizationsListOrSearchDepartmentContacts;
|
|
46305
|
+
var init_organizationsListOrSearchDepartmentContacts2 = __esm(() => {
|
|
46306
|
+
init_organizationsListOrSearchDepartmentContacts();
|
|
45746
46307
|
init_operations();
|
|
45747
46308
|
init_tools();
|
|
45748
46309
|
args9 = {
|
|
45749
|
-
request:
|
|
46310
|
+
request: ListOrSearchDepartmentContactsRequest$inboundSchema
|
|
45750
46311
|
};
|
|
45751
|
-
tool$
|
|
45752
|
-
name: "organizations-list-or-search-
|
|
45753
|
-
description: `List or search
|
|
46312
|
+
tool$organizationsListOrSearchDepartmentContacts = {
|
|
46313
|
+
name: "organizations-list-or-search-department-contacts",
|
|
46314
|
+
description: `List or search department contacts
|
|
45754
46315
|
|
|
45755
|
-
List or search
|
|
46316
|
+
List or search department contacts.
|
|
46317
|
+
|
|
46318
|
+
Available \`expand\` scopes are:
|
|
46319
|
+
|
|
46320
|
+
- department_membership.contact
|
|
46321
|
+
- department_membership.department`,
|
|
45756
46322
|
args: args9,
|
|
45757
46323
|
tool: async (client, args10, ctx) => {
|
|
45758
|
-
const [result, apiCall] = await
|
|
46324
|
+
const [result, apiCall] = await organizationsListOrSearchDepartmentContacts(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45759
46325
|
if (!result.ok) {
|
|
45760
46326
|
return {
|
|
45761
46327
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45768,32 +46334,31 @@ List or search departments.`,
|
|
|
45768
46334
|
};
|
|
45769
46335
|
});
|
|
45770
46336
|
|
|
45771
|
-
// src/funcs/
|
|
45772
|
-
function
|
|
46337
|
+
// src/funcs/organizationsListOrSearchDepartments.ts
|
|
46338
|
+
function organizationsListOrSearchDepartments(client, request, options) {
|
|
45773
46339
|
return new APIPromise($do10(client, request, options));
|
|
45774
46340
|
}
|
|
45775
46341
|
async function $do10(client, request, options) {
|
|
45776
|
-
const parsed = safeParse(request, (value) =>
|
|
46342
|
+
const parsed = safeParse(request, (value) => ListOrSearchDepartmentsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45777
46343
|
if (!parsed.ok) {
|
|
45778
46344
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
45779
46345
|
}
|
|
45780
46346
|
const payload = parsed.value;
|
|
45781
46347
|
const body = null;
|
|
45782
|
-
const
|
|
45783
|
-
|
|
45784
|
-
|
|
45785
|
-
|
|
45786
|
-
|
|
46348
|
+
const pathParams = {
|
|
46349
|
+
id: encodeSimple("id", payload.id, {
|
|
46350
|
+
explode: false,
|
|
46351
|
+
charEncoding: "percent"
|
|
46352
|
+
})
|
|
46353
|
+
};
|
|
46354
|
+
const path = pathToFunc("/facilities/{id}/departments")(pathParams);
|
|
46355
|
+
const query = encodeFormQuery({
|
|
45787
46356
|
desc: payload.desc,
|
|
45788
46357
|
items_per_page: payload.items_per_page,
|
|
45789
|
-
latitude: payload.latitude,
|
|
45790
|
-
longitude: payload.longitude,
|
|
45791
46358
|
name_like: payload.name_like,
|
|
45792
46359
|
page: payload.page,
|
|
45793
|
-
sort: payload.sort
|
|
45794
|
-
|
|
45795
|
-
system_id: payload.system_id
|
|
45796
|
-
}));
|
|
46360
|
+
sort: payload.sort
|
|
46361
|
+
});
|
|
45797
46362
|
const headers = new Headers(compactMap({
|
|
45798
46363
|
Accept: "application/json"
|
|
45799
46364
|
}));
|
|
@@ -45802,7 +46367,7 @@ async function $do10(client, request, options) {
|
|
|
45802
46367
|
const context = {
|
|
45803
46368
|
options: client._options,
|
|
45804
46369
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45805
|
-
operationID: "
|
|
46370
|
+
operationID: "listOrSearchDepartments",
|
|
45806
46371
|
oAuth2Scopes: [],
|
|
45807
46372
|
resolvedSecurity: requestSecurity,
|
|
45808
46373
|
securitySource: client._options.security,
|
|
@@ -45837,7 +46402,7 @@ async function $do10(client, request, options) {
|
|
|
45837
46402
|
const responseFields = {
|
|
45838
46403
|
HttpMeta: { Response: response, Request: req }
|
|
45839
46404
|
};
|
|
45840
|
-
const [result, raw] = await match(json(200,
|
|
46405
|
+
const [result, raw] = await match(json(200, ListOrSearchDepartmentsResponse$inboundSchema, {
|
|
45841
46406
|
key: "Result"
|
|
45842
46407
|
}), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
45843
46408
|
if (!result.ok) {
|
|
@@ -45861,7 +46426,7 @@ async function $do10(client, request, options) {
|
|
|
45861
46426
|
if (results.length < limit) {
|
|
45862
46427
|
return { next: () => null };
|
|
45863
46428
|
}
|
|
45864
|
-
const nextVal = () =>
|
|
46429
|
+
const nextVal = () => organizationsListOrSearchDepartments(client, {
|
|
45865
46430
|
...request,
|
|
45866
46431
|
page: nextPage
|
|
45867
46432
|
}, options);
|
|
@@ -45874,7 +46439,7 @@ async function $do10(client, request, options) {
|
|
|
45874
46439
|
response
|
|
45875
46440
|
}];
|
|
45876
46441
|
}
|
|
45877
|
-
var
|
|
46442
|
+
var init_organizationsListOrSearchDepartments = __esm(() => {
|
|
45878
46443
|
init_encodings();
|
|
45879
46444
|
init_matchers();
|
|
45880
46445
|
init_primitives();
|
|
@@ -45887,36 +46452,23 @@ var init_organizationsListOrSearchFacilities = __esm(() => {
|
|
|
45887
46452
|
init_operations2();
|
|
45888
46453
|
});
|
|
45889
46454
|
|
|
45890
|
-
// src/mcp-server/tools/
|
|
45891
|
-
var args10, tool$
|
|
45892
|
-
var
|
|
45893
|
-
|
|
46455
|
+
// src/mcp-server/tools/organizationsListOrSearchDepartments.ts
|
|
46456
|
+
var args10, tool$organizationsListOrSearchDepartments;
|
|
46457
|
+
var init_organizationsListOrSearchDepartments2 = __esm(() => {
|
|
46458
|
+
init_organizationsListOrSearchDepartments();
|
|
45894
46459
|
init_operations();
|
|
45895
46460
|
init_tools();
|
|
45896
46461
|
args10 = {
|
|
45897
|
-
request:
|
|
46462
|
+
request: ListOrSearchDepartmentsRequest$inboundSchema
|
|
45898
46463
|
};
|
|
45899
|
-
tool$
|
|
45900
|
-
name: "organizations-list-or-search-
|
|
45901
|
-
description: `List or search
|
|
45902
|
-
|
|
45903
|
-
List or search facilities.
|
|
45904
|
-
|
|
45905
|
-
Available \`expand\` scopes are:
|
|
46464
|
+
tool$organizationsListOrSearchDepartments = {
|
|
46465
|
+
name: "organizations-list-or-search-departments",
|
|
46466
|
+
description: `List or search departments
|
|
45906
46467
|
|
|
45907
|
-
|
|
45908
|
-
- facility.contacts
|
|
45909
|
-
- facility.vendor_counts
|
|
45910
|
-
- facility.flu_credential
|
|
45911
|
-
- facility.scrubs_policy
|
|
45912
|
-
- facility.system
|
|
45913
|
-
- facility.vendor_guest_policy
|
|
45914
|
-
- facility.vendor_policy
|
|
45915
|
-
- facility.visitor_policy
|
|
45916
|
-
- facility.workflow`,
|
|
46468
|
+
List or search departments.`,
|
|
45917
46469
|
args: args10,
|
|
45918
46470
|
tool: async (client, args11, ctx) => {
|
|
45919
|
-
const [result, apiCall] = await
|
|
46471
|
+
const [result, apiCall] = await organizationsListOrSearchDepartments(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45920
46472
|
if (!result.ok) {
|
|
45921
46473
|
return {
|
|
45922
46474
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45929,27 +46481,32 @@ Available \`expand\` scopes are:
|
|
|
45929
46481
|
};
|
|
45930
46482
|
});
|
|
45931
46483
|
|
|
45932
|
-
// src/funcs/
|
|
45933
|
-
function
|
|
46484
|
+
// src/funcs/organizationsListOrSearchFacilities.ts
|
|
46485
|
+
function organizationsListOrSearchFacilities(client, request, options) {
|
|
45934
46486
|
return new APIPromise($do11(client, request, options));
|
|
45935
46487
|
}
|
|
45936
46488
|
async function $do11(client, request, options) {
|
|
45937
|
-
const parsed = safeParse(request, (value) =>
|
|
46489
|
+
const parsed = safeParse(request, (value) => ListOrSearchFacilitiesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45938
46490
|
if (!parsed.ok) {
|
|
45939
|
-
return [parsed, { status: "invalid" }];
|
|
46491
|
+
return [haltIterator(parsed), { status: "invalid" }];
|
|
45940
46492
|
}
|
|
45941
46493
|
const payload = parsed.value;
|
|
45942
46494
|
const body = null;
|
|
45943
|
-
const
|
|
45944
|
-
|
|
45945
|
-
explode: false,
|
|
45946
|
-
charEncoding: "percent"
|
|
45947
|
-
})
|
|
45948
|
-
};
|
|
45949
|
-
const path = pathToFunc("/support_articles/{id}")(pathParams);
|
|
45950
|
-
const query = encodeFormQuery({
|
|
46495
|
+
const path = pathToFunc("/facilities")();
|
|
46496
|
+
const query = queryJoin(encodeFormQuery({
|
|
45951
46497
|
expand: payload.expand
|
|
45952
|
-
}, { explode: false })
|
|
46498
|
+
}, { explode: false }), encodeFormQuery({
|
|
46499
|
+
active_status: payload.active_status,
|
|
46500
|
+
desc: payload.desc,
|
|
46501
|
+
items_per_page: payload.items_per_page,
|
|
46502
|
+
latitude: payload.latitude,
|
|
46503
|
+
longitude: payload.longitude,
|
|
46504
|
+
name_like: payload.name_like,
|
|
46505
|
+
page: payload.page,
|
|
46506
|
+
sort: payload.sort,
|
|
46507
|
+
state_like: payload.state_like,
|
|
46508
|
+
system_id: payload.system_id
|
|
46509
|
+
}));
|
|
45953
46510
|
const headers = new Headers(compactMap({
|
|
45954
46511
|
Accept: "application/json"
|
|
45955
46512
|
}));
|
|
@@ -45958,7 +46515,7 @@ async function $do11(client, request, options) {
|
|
|
45958
46515
|
const context = {
|
|
45959
46516
|
options: client._options,
|
|
45960
46517
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45961
|
-
operationID: "
|
|
46518
|
+
operationID: "listOrSearchFacilities",
|
|
45962
46519
|
oAuth2Scopes: [],
|
|
45963
46520
|
resolvedSecurity: requestSecurity,
|
|
45964
46521
|
securitySource: client._options.security,
|
|
@@ -45977,23 +46534,179 @@ async function $do11(client, request, options) {
|
|
|
45977
46534
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
45978
46535
|
}, options);
|
|
45979
46536
|
if (!requestRes.ok) {
|
|
45980
|
-
return [requestRes, { status: "invalid" }];
|
|
46537
|
+
return [haltIterator(requestRes), { status: "invalid" }];
|
|
45981
46538
|
}
|
|
45982
46539
|
const req = requestRes.value;
|
|
45983
46540
|
const doResult = await client._do(req, {
|
|
45984
46541
|
context,
|
|
45985
|
-
errorCodes: ["400", "401", "403", "
|
|
46542
|
+
errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
|
|
45986
46543
|
retryConfig: context.retryConfig,
|
|
45987
46544
|
retryCodes: context.retryCodes
|
|
45988
46545
|
});
|
|
45989
46546
|
if (!doResult.ok) {
|
|
45990
|
-
return [doResult, { status: "request-error", request: req }];
|
|
46547
|
+
return [haltIterator(doResult), { status: "request-error", request: req }];
|
|
45991
46548
|
}
|
|
45992
46549
|
const response = doResult.value;
|
|
45993
46550
|
const responseFields = {
|
|
45994
46551
|
HttpMeta: { Response: response, Request: req }
|
|
45995
46552
|
};
|
|
45996
|
-
const [result] = await match(json(200,
|
|
46553
|
+
const [result, raw] = await match(json(200, ListOrSearchFacilitiesResponse$inboundSchema, {
|
|
46554
|
+
key: "Result"
|
|
46555
|
+
}), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
46556
|
+
if (!result.ok) {
|
|
46557
|
+
return [haltIterator(result), {
|
|
46558
|
+
status: "complete",
|
|
46559
|
+
request: req,
|
|
46560
|
+
response
|
|
46561
|
+
}];
|
|
46562
|
+
}
|
|
46563
|
+
const nextFunc = (responseData) => {
|
|
46564
|
+
const page2 = request?.page ?? 1;
|
|
46565
|
+
const nextPage = page2 + 1;
|
|
46566
|
+
if (!responseData) {
|
|
46567
|
+
return { next: () => null };
|
|
46568
|
+
}
|
|
46569
|
+
const results = dlv(responseData, "items");
|
|
46570
|
+
if (!Array.isArray(results) || !results.length) {
|
|
46571
|
+
return { next: () => null };
|
|
46572
|
+
}
|
|
46573
|
+
const limit = request?.itemsPerPage ?? 0;
|
|
46574
|
+
if (results.length < limit) {
|
|
46575
|
+
return { next: () => null };
|
|
46576
|
+
}
|
|
46577
|
+
const nextVal = () => organizationsListOrSearchFacilities(client, {
|
|
46578
|
+
...request,
|
|
46579
|
+
page: nextPage
|
|
46580
|
+
}, options);
|
|
46581
|
+
return { next: nextVal, "~next": { page: nextPage } };
|
|
46582
|
+
};
|
|
46583
|
+
const page = { ...result, ...nextFunc(raw) };
|
|
46584
|
+
return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
|
|
46585
|
+
status: "complete",
|
|
46586
|
+
request: req,
|
|
46587
|
+
response
|
|
46588
|
+
}];
|
|
46589
|
+
}
|
|
46590
|
+
var init_organizationsListOrSearchFacilities = __esm(() => {
|
|
46591
|
+
init_encodings();
|
|
46592
|
+
init_matchers();
|
|
46593
|
+
init_primitives();
|
|
46594
|
+
init_schemas();
|
|
46595
|
+
init_security();
|
|
46596
|
+
init_url();
|
|
46597
|
+
init_errors2();
|
|
46598
|
+
init_operations();
|
|
46599
|
+
init_async();
|
|
46600
|
+
init_operations2();
|
|
46601
|
+
});
|
|
46602
|
+
|
|
46603
|
+
// src/mcp-server/tools/organizationsListOrSearchFacilities.ts
|
|
46604
|
+
var args11, tool$organizationsListOrSearchFacilities;
|
|
46605
|
+
var init_organizationsListOrSearchFacilities2 = __esm(() => {
|
|
46606
|
+
init_organizationsListOrSearchFacilities();
|
|
46607
|
+
init_operations();
|
|
46608
|
+
init_tools();
|
|
46609
|
+
args11 = {
|
|
46610
|
+
request: ListOrSearchFacilitiesRequest$inboundSchema
|
|
46611
|
+
};
|
|
46612
|
+
tool$organizationsListOrSearchFacilities = {
|
|
46613
|
+
name: "organizations-list-or-search-facilities",
|
|
46614
|
+
description: `List or search facilities
|
|
46615
|
+
|
|
46616
|
+
List or search facilities.
|
|
46617
|
+
|
|
46618
|
+
Available \`expand\` scopes are:
|
|
46619
|
+
|
|
46620
|
+
- facility.appointment_policy
|
|
46621
|
+
- facility.contacts
|
|
46622
|
+
- facility.vendor_counts
|
|
46623
|
+
- facility.flu_credential
|
|
46624
|
+
- facility.scrubs_policy
|
|
46625
|
+
- facility.system
|
|
46626
|
+
- facility.vendor_guest_policy
|
|
46627
|
+
- facility.vendor_policy
|
|
46628
|
+
- facility.visitor_policy
|
|
46629
|
+
- facility.workflow`,
|
|
46630
|
+
args: args11,
|
|
46631
|
+
tool: async (client, args12, ctx) => {
|
|
46632
|
+
const [result, apiCall] = await organizationsListOrSearchFacilities(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46633
|
+
if (!result.ok) {
|
|
46634
|
+
return {
|
|
46635
|
+
content: [{ type: "text", text: result.error.message }],
|
|
46636
|
+
isError: true
|
|
46637
|
+
};
|
|
46638
|
+
}
|
|
46639
|
+
const value = result.value.result;
|
|
46640
|
+
return formatResult(value, apiCall);
|
|
46641
|
+
}
|
|
46642
|
+
};
|
|
46643
|
+
});
|
|
46644
|
+
|
|
46645
|
+
// src/funcs/supportArticlesGetSupportArticle.ts
|
|
46646
|
+
function supportArticlesGetSupportArticle(client, request, options) {
|
|
46647
|
+
return new APIPromise($do12(client, request, options));
|
|
46648
|
+
}
|
|
46649
|
+
async function $do12(client, request, options) {
|
|
46650
|
+
const parsed = safeParse(request, (value) => GetSupportArticleRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46651
|
+
if (!parsed.ok) {
|
|
46652
|
+
return [parsed, { status: "invalid" }];
|
|
46653
|
+
}
|
|
46654
|
+
const payload = parsed.value;
|
|
46655
|
+
const body = null;
|
|
46656
|
+
const pathParams = {
|
|
46657
|
+
id: encodeSimple("id", payload.id, {
|
|
46658
|
+
explode: false,
|
|
46659
|
+
charEncoding: "percent"
|
|
46660
|
+
})
|
|
46661
|
+
};
|
|
46662
|
+
const path = pathToFunc("/support_articles/{id}")(pathParams);
|
|
46663
|
+
const query = encodeFormQuery({
|
|
46664
|
+
expand: payload.expand
|
|
46665
|
+
}, { explode: false });
|
|
46666
|
+
const headers = new Headers(compactMap({
|
|
46667
|
+
Accept: "application/json"
|
|
46668
|
+
}));
|
|
46669
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
46670
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
46671
|
+
const context = {
|
|
46672
|
+
options: client._options,
|
|
46673
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
46674
|
+
operationID: "getSupportArticle",
|
|
46675
|
+
oAuth2Scopes: [],
|
|
46676
|
+
resolvedSecurity: requestSecurity,
|
|
46677
|
+
securitySource: client._options.security,
|
|
46678
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
46679
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
46680
|
+
};
|
|
46681
|
+
const requestRes = client._createRequest(context, {
|
|
46682
|
+
security: requestSecurity,
|
|
46683
|
+
method: "GET",
|
|
46684
|
+
baseURL: options?.serverURL,
|
|
46685
|
+
path,
|
|
46686
|
+
headers,
|
|
46687
|
+
query,
|
|
46688
|
+
body,
|
|
46689
|
+
userAgent: client._options.userAgent,
|
|
46690
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
46691
|
+
}, options);
|
|
46692
|
+
if (!requestRes.ok) {
|
|
46693
|
+
return [requestRes, { status: "invalid" }];
|
|
46694
|
+
}
|
|
46695
|
+
const req = requestRes.value;
|
|
46696
|
+
const doResult = await client._do(req, {
|
|
46697
|
+
context,
|
|
46698
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
46699
|
+
retryConfig: context.retryConfig,
|
|
46700
|
+
retryCodes: context.retryCodes
|
|
46701
|
+
});
|
|
46702
|
+
if (!doResult.ok) {
|
|
46703
|
+
return [doResult, { status: "request-error", request: req }];
|
|
46704
|
+
}
|
|
46705
|
+
const response = doResult.value;
|
|
46706
|
+
const responseFields = {
|
|
46707
|
+
HttpMeta: { Response: response, Request: req }
|
|
46708
|
+
};
|
|
46709
|
+
const [result] = await match(json(200, SupportArticle$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
45997
46710
|
if (!result.ok) {
|
|
45998
46711
|
return [result, { status: "complete", request: req, response }];
|
|
45999
46712
|
}
|
|
@@ -46013,12 +46726,12 @@ var init_supportArticlesGetSupportArticle = __esm(() => {
|
|
|
46013
46726
|
});
|
|
46014
46727
|
|
|
46015
46728
|
// src/mcp-server/tools/supportArticlesGetSupportArticle.ts
|
|
46016
|
-
var
|
|
46729
|
+
var args12, tool$supportArticlesGetSupportArticle;
|
|
46017
46730
|
var init_supportArticlesGetSupportArticle2 = __esm(() => {
|
|
46018
46731
|
init_supportArticlesGetSupportArticle();
|
|
46019
46732
|
init_operations();
|
|
46020
46733
|
init_tools();
|
|
46021
|
-
|
|
46734
|
+
args12 = {
|
|
46022
46735
|
request: GetSupportArticleRequest$inboundSchema
|
|
46023
46736
|
};
|
|
46024
46737
|
tool$supportArticlesGetSupportArticle = {
|
|
@@ -46033,9 +46746,9 @@ Available \`expand\` scopes are:
|
|
|
46033
46746
|
- support_article.published
|
|
46034
46747
|
- support_article.notes
|
|
46035
46748
|
- support_article.support_category`,
|
|
46036
|
-
args:
|
|
46037
|
-
tool: async (client,
|
|
46038
|
-
const [result, apiCall] = await supportArticlesGetSupportArticle(client,
|
|
46749
|
+
args: args12,
|
|
46750
|
+
tool: async (client, args13, ctx) => {
|
|
46751
|
+
const [result, apiCall] = await supportArticlesGetSupportArticle(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46039
46752
|
if (!result.ok) {
|
|
46040
46753
|
return {
|
|
46041
46754
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46050,9 +46763,9 @@ Available \`expand\` scopes are:
|
|
|
46050
46763
|
|
|
46051
46764
|
// src/funcs/supportArticlesListOrSearchSupportArticles.ts
|
|
46052
46765
|
function supportArticlesListOrSearchSupportArticles(client, request, options) {
|
|
46053
|
-
return new APIPromise($
|
|
46766
|
+
return new APIPromise($do13(client, request, options));
|
|
46054
46767
|
}
|
|
46055
|
-
async function $
|
|
46768
|
+
async function $do13(client, request, options) {
|
|
46056
46769
|
const parsed = safeParse(request, (value) => ListOrSearchSupportArticlesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46057
46770
|
if (!parsed.ok) {
|
|
46058
46771
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -46162,12 +46875,12 @@ var init_supportArticlesListOrSearchSupportArticles = __esm(() => {
|
|
|
46162
46875
|
});
|
|
46163
46876
|
|
|
46164
46877
|
// src/mcp-server/tools/supportArticlesListOrSearchSupportArticles.ts
|
|
46165
|
-
var
|
|
46878
|
+
var args13, tool$supportArticlesListOrSearchSupportArticles;
|
|
46166
46879
|
var init_supportArticlesListOrSearchSupportArticles2 = __esm(() => {
|
|
46167
46880
|
init_supportArticlesListOrSearchSupportArticles();
|
|
46168
46881
|
init_operations();
|
|
46169
46882
|
init_tools();
|
|
46170
|
-
|
|
46883
|
+
args13 = {
|
|
46171
46884
|
request: ListOrSearchSupportArticlesRequest$inboundSchema
|
|
46172
46885
|
};
|
|
46173
46886
|
tool$supportArticlesListOrSearchSupportArticles = {
|
|
@@ -46175,9 +46888,156 @@ var init_supportArticlesListOrSearchSupportArticles2 = __esm(() => {
|
|
|
46175
46888
|
description: `List or search support articles
|
|
46176
46889
|
|
|
46177
46890
|
List or search support articles for FAQ.`,
|
|
46178
|
-
args:
|
|
46179
|
-
tool: async (client,
|
|
46180
|
-
const [result, apiCall] = await supportArticlesListOrSearchSupportArticles(client,
|
|
46891
|
+
args: args13,
|
|
46892
|
+
tool: async (client, args14, ctx) => {
|
|
46893
|
+
const [result, apiCall] = await supportArticlesListOrSearchSupportArticles(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46894
|
+
if (!result.ok) {
|
|
46895
|
+
return {
|
|
46896
|
+
content: [{ type: "text", text: result.error.message }],
|
|
46897
|
+
isError: true
|
|
46898
|
+
};
|
|
46899
|
+
}
|
|
46900
|
+
const value = result.value.result;
|
|
46901
|
+
return formatResult(value, apiCall);
|
|
46902
|
+
}
|
|
46903
|
+
};
|
|
46904
|
+
});
|
|
46905
|
+
|
|
46906
|
+
// src/funcs/systemsListSystems.ts
|
|
46907
|
+
function systemsListSystems(client, request, options) {
|
|
46908
|
+
return new APIPromise($do14(client, request, options));
|
|
46909
|
+
}
|
|
46910
|
+
async function $do14(client, request, options) {
|
|
46911
|
+
const parsed = safeParse(request, (value) => ListSystemsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46912
|
+
if (!parsed.ok) {
|
|
46913
|
+
return [haltIterator(parsed), { status: "invalid" }];
|
|
46914
|
+
}
|
|
46915
|
+
const payload = parsed.value;
|
|
46916
|
+
const body = null;
|
|
46917
|
+
const path = pathToFunc("/systems")();
|
|
46918
|
+
const query = queryJoin(encodeFormQuery({
|
|
46919
|
+
expand: payload.expand
|
|
46920
|
+
}, { explode: false }), encodeFormQuery({
|
|
46921
|
+
desc: payload.desc,
|
|
46922
|
+
items_per_page: payload.items_per_page,
|
|
46923
|
+
name_like: payload.name_like,
|
|
46924
|
+
page: payload.page,
|
|
46925
|
+
sort: payload.sort
|
|
46926
|
+
}));
|
|
46927
|
+
const headers = new Headers(compactMap({
|
|
46928
|
+
Accept: "application/json"
|
|
46929
|
+
}));
|
|
46930
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
46931
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
46932
|
+
const context = {
|
|
46933
|
+
options: client._options,
|
|
46934
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
46935
|
+
operationID: "listSystems",
|
|
46936
|
+
oAuth2Scopes: [],
|
|
46937
|
+
resolvedSecurity: requestSecurity,
|
|
46938
|
+
securitySource: client._options.security,
|
|
46939
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
46940
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
46941
|
+
};
|
|
46942
|
+
const requestRes = client._createRequest(context, {
|
|
46943
|
+
security: requestSecurity,
|
|
46944
|
+
method: "GET",
|
|
46945
|
+
baseURL: options?.serverURL,
|
|
46946
|
+
path,
|
|
46947
|
+
headers,
|
|
46948
|
+
query,
|
|
46949
|
+
body,
|
|
46950
|
+
userAgent: client._options.userAgent,
|
|
46951
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
46952
|
+
}, options);
|
|
46953
|
+
if (!requestRes.ok) {
|
|
46954
|
+
return [haltIterator(requestRes), { status: "invalid" }];
|
|
46955
|
+
}
|
|
46956
|
+
const req = requestRes.value;
|
|
46957
|
+
const doResult = await client._do(req, {
|
|
46958
|
+
context,
|
|
46959
|
+
errorCodes: ["403", "4XX", "500", "5XX"],
|
|
46960
|
+
retryConfig: context.retryConfig,
|
|
46961
|
+
retryCodes: context.retryCodes
|
|
46962
|
+
});
|
|
46963
|
+
if (!doResult.ok) {
|
|
46964
|
+
return [haltIterator(doResult), { status: "request-error", request: req }];
|
|
46965
|
+
}
|
|
46966
|
+
const response = doResult.value;
|
|
46967
|
+
const responseFields = {
|
|
46968
|
+
HttpMeta: { Response: response, Request: req }
|
|
46969
|
+
};
|
|
46970
|
+
const [result, raw] = await match(json(200, ListSystemsResponse$inboundSchema, {
|
|
46971
|
+
key: "Result"
|
|
46972
|
+
}), jsonErr(403, ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
46973
|
+
if (!result.ok) {
|
|
46974
|
+
return [haltIterator(result), {
|
|
46975
|
+
status: "complete",
|
|
46976
|
+
request: req,
|
|
46977
|
+
response
|
|
46978
|
+
}];
|
|
46979
|
+
}
|
|
46980
|
+
const nextFunc = (responseData) => {
|
|
46981
|
+
const page2 = request?.page ?? 1;
|
|
46982
|
+
const nextPage = page2 + 1;
|
|
46983
|
+
if (!responseData) {
|
|
46984
|
+
return { next: () => null };
|
|
46985
|
+
}
|
|
46986
|
+
const results = dlv(responseData, "items");
|
|
46987
|
+
if (!Array.isArray(results) || !results.length) {
|
|
46988
|
+
return { next: () => null };
|
|
46989
|
+
}
|
|
46990
|
+
const limit = request?.itemsPerPage ?? 0;
|
|
46991
|
+
if (results.length < limit) {
|
|
46992
|
+
return { next: () => null };
|
|
46993
|
+
}
|
|
46994
|
+
const nextVal = () => systemsListSystems(client, {
|
|
46995
|
+
...request,
|
|
46996
|
+
page: nextPage
|
|
46997
|
+
}, options);
|
|
46998
|
+
return { next: nextVal, "~next": { page: nextPage } };
|
|
46999
|
+
};
|
|
47000
|
+
const page = { ...result, ...nextFunc(raw) };
|
|
47001
|
+
return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
|
|
47002
|
+
status: "complete",
|
|
47003
|
+
request: req,
|
|
47004
|
+
response
|
|
47005
|
+
}];
|
|
47006
|
+
}
|
|
47007
|
+
var init_systemsListSystems = __esm(() => {
|
|
47008
|
+
init_encodings();
|
|
47009
|
+
init_matchers();
|
|
47010
|
+
init_primitives();
|
|
47011
|
+
init_schemas();
|
|
47012
|
+
init_security();
|
|
47013
|
+
init_url();
|
|
47014
|
+
init_errors2();
|
|
47015
|
+
init_operations();
|
|
47016
|
+
init_async();
|
|
47017
|
+
init_operations2();
|
|
47018
|
+
});
|
|
47019
|
+
|
|
47020
|
+
// src/mcp-server/tools/systemsListSystems.ts
|
|
47021
|
+
var args14, tool$systemsListSystems;
|
|
47022
|
+
var init_systemsListSystems2 = __esm(() => {
|
|
47023
|
+
init_systemsListSystems();
|
|
47024
|
+
init_operations();
|
|
47025
|
+
init_tools();
|
|
47026
|
+
args14 = {
|
|
47027
|
+
request: ListSystemsRequest$inboundSchema
|
|
47028
|
+
};
|
|
47029
|
+
tool$systemsListSystems = {
|
|
47030
|
+
name: "systems-list-systems",
|
|
47031
|
+
description: `List systems
|
|
47032
|
+
|
|
47033
|
+
List or search systems.
|
|
47034
|
+
|
|
47035
|
+
Available \`expand\` scopes are:
|
|
47036
|
+
|
|
47037
|
+
- system.facilities`,
|
|
47038
|
+
args: args14,
|
|
47039
|
+
tool: async (client, args15, ctx) => {
|
|
47040
|
+
const [result, apiCall] = await systemsListSystems(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46181
47041
|
if (!result.ok) {
|
|
46182
47042
|
return {
|
|
46183
47043
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46192,9 +47052,9 @@ List or search support articles for FAQ.`,
|
|
|
46192
47052
|
|
|
46193
47053
|
// src/funcs/usersChangePassword.ts
|
|
46194
47054
|
function usersChangePassword(client, request, options) {
|
|
46195
|
-
return new APIPromise($
|
|
47055
|
+
return new APIPromise($do15(client, request, options));
|
|
46196
47056
|
}
|
|
46197
|
-
async function $
|
|
47057
|
+
async function $do15(client, request, options) {
|
|
46198
47058
|
const parsed = safeParse(request, (value) => ChangePasswordRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46199
47059
|
if (!parsed.ok) {
|
|
46200
47060
|
return [parsed, { status: "invalid" }];
|
|
@@ -46270,12 +47130,12 @@ var init_usersChangePassword = __esm(() => {
|
|
|
46270
47130
|
});
|
|
46271
47131
|
|
|
46272
47132
|
// src/mcp-server/tools/usersChangePassword.ts
|
|
46273
|
-
var
|
|
47133
|
+
var args15, tool$usersChangePassword;
|
|
46274
47134
|
var init_usersChangePassword2 = __esm(() => {
|
|
46275
47135
|
init_usersChangePassword();
|
|
46276
47136
|
init_operations();
|
|
46277
47137
|
init_tools();
|
|
46278
|
-
|
|
47138
|
+
args15 = {
|
|
46279
47139
|
request: ChangePasswordRequest$inboundSchema
|
|
46280
47140
|
};
|
|
46281
47141
|
tool$usersChangePassword = {
|
|
@@ -46283,9 +47143,9 @@ var init_usersChangePassword2 = __esm(() => {
|
|
|
46283
47143
|
description: `Change password
|
|
46284
47144
|
|
|
46285
47145
|
Change the user's password to the new passed as parameter`,
|
|
46286
|
-
args:
|
|
46287
|
-
tool: async (client,
|
|
46288
|
-
const [result, apiCall] = await usersChangePassword(client,
|
|
47146
|
+
args: args15,
|
|
47147
|
+
tool: async (client, args16, ctx) => {
|
|
47148
|
+
const [result, apiCall] = await usersChangePassword(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46289
47149
|
if (!result.ok) {
|
|
46290
47150
|
return {
|
|
46291
47151
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46300,9 +47160,9 @@ Change the user's password to the new passed as parameter`,
|
|
|
46300
47160
|
|
|
46301
47161
|
// src/funcs/usersGetCurrentUser.ts
|
|
46302
47162
|
function usersGetCurrentUser(client, options) {
|
|
46303
|
-
return new APIPromise($
|
|
47163
|
+
return new APIPromise($do16(client, options));
|
|
46304
47164
|
}
|
|
46305
|
-
async function $
|
|
47165
|
+
async function $do16(client, options) {
|
|
46306
47166
|
const path = pathToFunc("/users/me")();
|
|
46307
47167
|
const headers = new Headers(compactMap({
|
|
46308
47168
|
Accept: "application/json"
|
|
@@ -46387,9 +47247,9 @@ Returns a user object for the user represented by the authorization token`,
|
|
|
46387
47247
|
|
|
46388
47248
|
// src/funcs/usersGetUserById.ts
|
|
46389
47249
|
function usersGetUserById(client, request, options) {
|
|
46390
|
-
return new APIPromise($
|
|
47250
|
+
return new APIPromise($do17(client, request, options));
|
|
46391
47251
|
}
|
|
46392
|
-
async function $
|
|
47252
|
+
async function $do17(client, request, options) {
|
|
46393
47253
|
const parsed = safeParse(request, (value) => GetUserByIdRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46394
47254
|
if (!parsed.ok) {
|
|
46395
47255
|
return [parsed, { status: "invalid" }];
|
|
@@ -46465,12 +47325,12 @@ var init_usersGetUserById = __esm(() => {
|
|
|
46465
47325
|
});
|
|
46466
47326
|
|
|
46467
47327
|
// src/mcp-server/tools/usersGetUserById.ts
|
|
46468
|
-
var
|
|
47328
|
+
var args16, tool$usersGetUserById;
|
|
46469
47329
|
var init_usersGetUserById2 = __esm(() => {
|
|
46470
47330
|
init_usersGetUserById();
|
|
46471
47331
|
init_operations();
|
|
46472
47332
|
init_tools();
|
|
46473
|
-
|
|
47333
|
+
args16 = {
|
|
46474
47334
|
request: GetUserByIdRequest$inboundSchema
|
|
46475
47335
|
};
|
|
46476
47336
|
tool$usersGetUserById = {
|
|
@@ -46478,9 +47338,9 @@ var init_usersGetUserById2 = __esm(() => {
|
|
|
46478
47338
|
description: `Get user by id
|
|
46479
47339
|
|
|
46480
47340
|
Returns a user object for the user represented by the identifier in the path.`,
|
|
46481
|
-
args:
|
|
46482
|
-
tool: async (client,
|
|
46483
|
-
const [result, apiCall] = await usersGetUserById(client,
|
|
47341
|
+
args: args16,
|
|
47342
|
+
tool: async (client, args17, ctx) => {
|
|
47343
|
+
const [result, apiCall] = await usersGetUserById(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46484
47344
|
if (!result.ok) {
|
|
46485
47345
|
return {
|
|
46486
47346
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46495,9 +47355,9 @@ Returns a user object for the user represented by the identifier in the path.`,
|
|
|
46495
47355
|
|
|
46496
47356
|
// src/funcs/usersMagiclink.ts
|
|
46497
47357
|
function usersMagiclink(client, request, options) {
|
|
46498
|
-
return new APIPromise($
|
|
47358
|
+
return new APIPromise($do18(client, request, options));
|
|
46499
47359
|
}
|
|
46500
|
-
async function $
|
|
47360
|
+
async function $do18(client, request, options) {
|
|
46501
47361
|
const parsed = safeParse(request, (value) => MagiclinkRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
46502
47362
|
if (!parsed.ok) {
|
|
46503
47363
|
return [parsed, { status: "invalid" }];
|
|
@@ -46567,12 +47427,12 @@ var init_usersMagiclink = __esm(() => {
|
|
|
46567
47427
|
});
|
|
46568
47428
|
|
|
46569
47429
|
// src/mcp-server/tools/usersMagiclink.ts
|
|
46570
|
-
var
|
|
47430
|
+
var args17, tool$usersMagiclink;
|
|
46571
47431
|
var init_usersMagiclink2 = __esm(() => {
|
|
46572
47432
|
init_usersMagiclink();
|
|
46573
47433
|
init_operations();
|
|
46574
47434
|
init_tools();
|
|
46575
|
-
|
|
47435
|
+
args17 = {
|
|
46576
47436
|
request: MagiclinkRequestBody$inboundSchema
|
|
46577
47437
|
};
|
|
46578
47438
|
tool$usersMagiclink = {
|
|
@@ -46580,9 +47440,9 @@ var init_usersMagiclink2 = __esm(() => {
|
|
|
46580
47440
|
description: `Magic link
|
|
46581
47441
|
|
|
46582
47442
|
It sends an email with a magic link to allow the user to log in.`,
|
|
46583
|
-
args:
|
|
46584
|
-
tool: async (client,
|
|
46585
|
-
const [result, apiCall] = await usersMagiclink(client,
|
|
47443
|
+
args: args17,
|
|
47444
|
+
tool: async (client, args18, ctx) => {
|
|
47445
|
+
const [result, apiCall] = await usersMagiclink(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46586
47446
|
if (!result.ok) {
|
|
46587
47447
|
return {
|
|
46588
47448
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46597,9 +47457,9 @@ It sends an email with a magic link to allow the user to log in.`,
|
|
|
46597
47457
|
|
|
46598
47458
|
// src/funcs/usersPassword.ts
|
|
46599
47459
|
function usersPassword(client, request, options) {
|
|
46600
|
-
return new APIPromise($
|
|
47460
|
+
return new APIPromise($do19(client, request, options));
|
|
46601
47461
|
}
|
|
46602
|
-
async function $
|
|
47462
|
+
async function $do19(client, request, options) {
|
|
46603
47463
|
const parsed = safeParse(request, (value) => PasswordRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
46604
47464
|
if (!parsed.ok) {
|
|
46605
47465
|
return [parsed, { status: "invalid" }];
|
|
@@ -46669,12 +47529,12 @@ var init_usersPassword = __esm(() => {
|
|
|
46669
47529
|
});
|
|
46670
47530
|
|
|
46671
47531
|
// src/mcp-server/tools/usersPassword.ts
|
|
46672
|
-
var
|
|
47532
|
+
var args18, tool$usersPassword;
|
|
46673
47533
|
var init_usersPassword2 = __esm(() => {
|
|
46674
47534
|
init_usersPassword();
|
|
46675
47535
|
init_operations();
|
|
46676
47536
|
init_tools();
|
|
46677
|
-
|
|
47537
|
+
args18 = {
|
|
46678
47538
|
request: PasswordRequestBody$inboundSchema
|
|
46679
47539
|
};
|
|
46680
47540
|
tool$usersPassword = {
|
|
@@ -46683,9 +47543,9 @@ var init_usersPassword2 = __esm(() => {
|
|
|
46683
47543
|
|
|
46684
47544
|
Resets the a user's password using a password_reset_id that was sent to them via email.
|
|
46685
47545
|
See /users/passwordresetrequest to initiate a password reset flow.`,
|
|
46686
|
-
args:
|
|
46687
|
-
tool: async (client,
|
|
46688
|
-
const [result, apiCall] = await usersPassword(client,
|
|
47546
|
+
args: args18,
|
|
47547
|
+
tool: async (client, args19, ctx) => {
|
|
47548
|
+
const [result, apiCall] = await usersPassword(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46689
47549
|
if (!result.ok) {
|
|
46690
47550
|
return {
|
|
46691
47551
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46700,9 +47560,9 @@ See /users/passwordresetrequest to initiate a password reset flow.`,
|
|
|
46700
47560
|
|
|
46701
47561
|
// src/funcs/usersPasswordResetRequest.ts
|
|
46702
47562
|
function usersPasswordResetRequest(client, request, options) {
|
|
46703
|
-
return new APIPromise($
|
|
47563
|
+
return new APIPromise($do20(client, request, options));
|
|
46704
47564
|
}
|
|
46705
|
-
async function $
|
|
47565
|
+
async function $do20(client, request, options) {
|
|
46706
47566
|
const parsed = safeParse(request, (value) => PasswordResetRequestRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
46707
47567
|
if (!parsed.ok) {
|
|
46708
47568
|
return [parsed, { status: "invalid" }];
|
|
@@ -46772,12 +47632,12 @@ var init_usersPasswordResetRequest = __esm(() => {
|
|
|
46772
47632
|
});
|
|
46773
47633
|
|
|
46774
47634
|
// src/mcp-server/tools/usersPasswordResetRequest.ts
|
|
46775
|
-
var
|
|
47635
|
+
var args19, tool$usersPasswordResetRequest;
|
|
46776
47636
|
var init_usersPasswordResetRequest2 = __esm(() => {
|
|
46777
47637
|
init_usersPasswordResetRequest();
|
|
46778
47638
|
init_operations();
|
|
46779
47639
|
init_tools();
|
|
46780
|
-
|
|
47640
|
+
args19 = {
|
|
46781
47641
|
request: PasswordResetRequestRequestBody$inboundSchema
|
|
46782
47642
|
};
|
|
46783
47643
|
tool$usersPasswordResetRequest = {
|
|
@@ -46785,9 +47645,9 @@ var init_usersPasswordResetRequest2 = __esm(() => {
|
|
|
46785
47645
|
description: `Password reset request
|
|
46786
47646
|
|
|
46787
47647
|
It sends an email with a link for resetting a user's password.`,
|
|
46788
|
-
args:
|
|
46789
|
-
tool: async (client,
|
|
46790
|
-
const [result, apiCall] = await usersPasswordResetRequest(client,
|
|
47648
|
+
args: args19,
|
|
47649
|
+
tool: async (client, args20, ctx) => {
|
|
47650
|
+
const [result, apiCall] = await usersPasswordResetRequest(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46791
47651
|
if (!result.ok) {
|
|
46792
47652
|
return {
|
|
46793
47653
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46802,9 +47662,9 @@ It sends an email with a link for resetting a user's password.`,
|
|
|
46802
47662
|
|
|
46803
47663
|
// src/funcs/usersPostAuthenticate.ts
|
|
46804
47664
|
function usersPostAuthenticate(client, request, options) {
|
|
46805
|
-
return new APIPromise($
|
|
47665
|
+
return new APIPromise($do21(client, request, options));
|
|
46806
47666
|
}
|
|
46807
|
-
async function $
|
|
47667
|
+
async function $do21(client, request, options) {
|
|
46808
47668
|
const parsed = safeParse(request, (value) => PostAuthenticateRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
46809
47669
|
if (!parsed.ok) {
|
|
46810
47670
|
return [parsed, { status: "invalid" }];
|
|
@@ -46870,12 +47730,12 @@ var init_usersPostAuthenticate = __esm(() => {
|
|
|
46870
47730
|
});
|
|
46871
47731
|
|
|
46872
47732
|
// src/mcp-server/tools/usersPostAuthenticate.ts
|
|
46873
|
-
var
|
|
47733
|
+
var args20, tool$usersPostAuthenticate;
|
|
46874
47734
|
var init_usersPostAuthenticate2 = __esm(() => {
|
|
46875
47735
|
init_usersPostAuthenticate();
|
|
46876
47736
|
init_operations();
|
|
46877
47737
|
init_tools();
|
|
46878
|
-
|
|
47738
|
+
args20 = {
|
|
46879
47739
|
request: PostAuthenticateRequestBody$inboundSchema
|
|
46880
47740
|
};
|
|
46881
47741
|
tool$usersPostAuthenticate = {
|
|
@@ -46913,9 +47773,9 @@ Requires: \`saml_login\`
|
|
|
46913
47773
|
3. Site redirects to your selected \`return_url\`
|
|
46914
47774
|
4. The \`user_token\` will be appended as a query string parameter to your \`return_url\` - you must parse this token and store it
|
|
46915
47775
|
5. Fetch the user object from \`/users/me\` using the token`,
|
|
46916
|
-
args:
|
|
46917
|
-
tool: async (client,
|
|
46918
|
-
const [result, apiCall] = await usersPostAuthenticate(client,
|
|
47776
|
+
args: args20,
|
|
47777
|
+
tool: async (client, args21, ctx) => {
|
|
47778
|
+
const [result, apiCall] = await usersPostAuthenticate(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46919
47779
|
if (!result.ok) {
|
|
46920
47780
|
return {
|
|
46921
47781
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46930,9 +47790,9 @@ Requires: \`saml_login\`
|
|
|
46930
47790
|
|
|
46931
47791
|
// src/funcs/usersRotateApiKey.ts
|
|
46932
47792
|
function usersRotateApiKey(client, options) {
|
|
46933
|
-
return new APIPromise($
|
|
47793
|
+
return new APIPromise($do22(client, options));
|
|
46934
47794
|
}
|
|
46935
|
-
async function $
|
|
47795
|
+
async function $do22(client, options) {
|
|
46936
47796
|
const path = pathToFunc("/users/api_key_rotator")();
|
|
46937
47797
|
const headers = new Headers(compactMap({
|
|
46938
47798
|
Accept: "application/json"
|
|
@@ -47017,9 +47877,9 @@ Allows an API user to rotate their own API key. Note, the key rotation happens i
|
|
|
47017
47877
|
|
|
47018
47878
|
// src/funcs/vendorsAcceptVendorCredential.ts
|
|
47019
47879
|
function vendorsAcceptVendorCredential(client, request, options) {
|
|
47020
|
-
return new APIPromise($
|
|
47880
|
+
return new APIPromise($do23(client, request, options));
|
|
47021
47881
|
}
|
|
47022
|
-
async function $
|
|
47882
|
+
async function $do23(client, request, options) {
|
|
47023
47883
|
const parsed = safeParse(request, (value) => AcceptVendorCredentialRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47024
47884
|
if (!parsed.ok) {
|
|
47025
47885
|
return [parsed, { status: "invalid" }];
|
|
@@ -47092,12 +47952,12 @@ var init_vendorsAcceptVendorCredential = __esm(() => {
|
|
|
47092
47952
|
});
|
|
47093
47953
|
|
|
47094
47954
|
// src/mcp-server/tools/vendorsAcceptVendorCredential.ts
|
|
47095
|
-
var
|
|
47955
|
+
var args21, tool$vendorsAcceptVendorCredential;
|
|
47096
47956
|
var init_vendorsAcceptVendorCredential2 = __esm(() => {
|
|
47097
47957
|
init_vendorsAcceptVendorCredential();
|
|
47098
47958
|
init_operations();
|
|
47099
47959
|
init_tools();
|
|
47100
|
-
|
|
47960
|
+
args21 = {
|
|
47101
47961
|
request: AcceptVendorCredentialRequest$inboundSchema
|
|
47102
47962
|
};
|
|
47103
47963
|
tool$vendorsAcceptVendorCredential = {
|
|
@@ -47105,9 +47965,9 @@ var init_vendorsAcceptVendorCredential2 = __esm(() => {
|
|
|
47105
47965
|
description: `Accept vendor credential
|
|
47106
47966
|
|
|
47107
47967
|
It will accept vendor credential`,
|
|
47108
|
-
args:
|
|
47109
|
-
tool: async (client,
|
|
47110
|
-
const [result, apiCall] = await vendorsAcceptVendorCredential(client,
|
|
47968
|
+
args: args21,
|
|
47969
|
+
tool: async (client, args22, ctx) => {
|
|
47970
|
+
const [result, apiCall] = await vendorsAcceptVendorCredential(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47111
47971
|
if (!result.ok) {
|
|
47112
47972
|
return {
|
|
47113
47973
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47122,9 +47982,9 @@ It will accept vendor credential`,
|
|
|
47122
47982
|
|
|
47123
47983
|
// src/funcs/vendorsAddVendorCredentialFile.ts
|
|
47124
47984
|
function vendorsAddVendorCredentialFile(client, request, options) {
|
|
47125
|
-
return new APIPromise($
|
|
47985
|
+
return new APIPromise($do24(client, request, options));
|
|
47126
47986
|
}
|
|
47127
|
-
async function $
|
|
47987
|
+
async function $do24(client, request, options) {
|
|
47128
47988
|
const parsed = safeParse(request, (value) => AddVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47129
47989
|
if (!parsed.ok) {
|
|
47130
47990
|
return [parsed, { status: "invalid" }];
|
|
@@ -47197,12 +48057,12 @@ var init_vendorsAddVendorCredentialFile = __esm(() => {
|
|
|
47197
48057
|
});
|
|
47198
48058
|
|
|
47199
48059
|
// src/mcp-server/tools/vendorsAddVendorCredentialFile.ts
|
|
47200
|
-
var
|
|
48060
|
+
var args22, tool$vendorsAddVendorCredentialFile;
|
|
47201
48061
|
var init_vendorsAddVendorCredentialFile2 = __esm(() => {
|
|
47202
48062
|
init_vendorsAddVendorCredentialFile();
|
|
47203
48063
|
init_operations();
|
|
47204
48064
|
init_tools();
|
|
47205
|
-
|
|
48065
|
+
args22 = {
|
|
47206
48066
|
request: AddVendorCredentialFileRequest$inboundSchema
|
|
47207
48067
|
};
|
|
47208
48068
|
tool$vendorsAddVendorCredentialFile = {
|
|
@@ -47210,9 +48070,9 @@ var init_vendorsAddVendorCredentialFile2 = __esm(() => {
|
|
|
47210
48070
|
description: `Add vendor credential file
|
|
47211
48071
|
|
|
47212
48072
|
It will add a new vendor credential file`,
|
|
47213
|
-
args:
|
|
47214
|
-
tool: async (client,
|
|
47215
|
-
const [result, apiCall] = await vendorsAddVendorCredentialFile(client,
|
|
48073
|
+
args: args22,
|
|
48074
|
+
tool: async (client, args23, ctx) => {
|
|
48075
|
+
const [result, apiCall] = await vendorsAddVendorCredentialFile(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47216
48076
|
if (!result.ok) {
|
|
47217
48077
|
return {
|
|
47218
48078
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47227,9 +48087,9 @@ It will add a new vendor credential file`,
|
|
|
47227
48087
|
|
|
47228
48088
|
// src/funcs/vendorsAddVendorManagedByCompany.ts
|
|
47229
48089
|
function vendorsAddVendorManagedByCompany(client, request, options) {
|
|
47230
|
-
return new APIPromise($
|
|
48090
|
+
return new APIPromise($do25(client, request, options));
|
|
47231
48091
|
}
|
|
47232
|
-
async function $
|
|
48092
|
+
async function $do25(client, request, options) {
|
|
47233
48093
|
const parsed = safeParse(request, (value) => AddVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47234
48094
|
if (!parsed.ok) {
|
|
47235
48095
|
return [parsed, { status: "invalid" }];
|
|
@@ -47305,12 +48165,12 @@ var init_vendorsAddVendorManagedByCompany = __esm(() => {
|
|
|
47305
48165
|
});
|
|
47306
48166
|
|
|
47307
48167
|
// src/mcp-server/tools/vendorsAddVendorManagedByCompany.ts
|
|
47308
|
-
var
|
|
48168
|
+
var args23, tool$vendorsAddVendorManagedByCompany;
|
|
47309
48169
|
var init_vendorsAddVendorManagedByCompany2 = __esm(() => {
|
|
47310
48170
|
init_vendorsAddVendorManagedByCompany();
|
|
47311
48171
|
init_operations();
|
|
47312
48172
|
init_tools();
|
|
47313
|
-
|
|
48173
|
+
args23 = {
|
|
47314
48174
|
request: AddVendorManagedByCompanyRequest$inboundSchema
|
|
47315
48175
|
};
|
|
47316
48176
|
tool$vendorsAddVendorManagedByCompany = {
|
|
@@ -47318,9 +48178,9 @@ var init_vendorsAddVendorManagedByCompany2 = __esm(() => {
|
|
|
47318
48178
|
description: `Add vendor managed by company
|
|
47319
48179
|
|
|
47320
48180
|
It will add a vendor managed by company`,
|
|
47321
|
-
args:
|
|
47322
|
-
tool: async (client,
|
|
47323
|
-
const [result, apiCall] = await vendorsAddVendorManagedByCompany(client,
|
|
48181
|
+
args: args23,
|
|
48182
|
+
tool: async (client, args24, ctx) => {
|
|
48183
|
+
const [result, apiCall] = await vendorsAddVendorManagedByCompany(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47324
48184
|
if (!result.ok) {
|
|
47325
48185
|
return {
|
|
47326
48186
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47335,9 +48195,9 @@ It will add a vendor managed by company`,
|
|
|
47335
48195
|
|
|
47336
48196
|
// src/funcs/vendorsCalculateSubscriptionPrice.ts
|
|
47337
48197
|
function vendorsCalculateSubscriptionPrice(client, request, options) {
|
|
47338
|
-
return new APIPromise($
|
|
48198
|
+
return new APIPromise($do26(client, request, options));
|
|
47339
48199
|
}
|
|
47340
|
-
async function $
|
|
48200
|
+
async function $do26(client, request, options) {
|
|
47341
48201
|
const parsed = safeParse(request, (value) => CalculateSubscriptionPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47342
48202
|
if (!parsed.ok) {
|
|
47343
48203
|
return [parsed, { status: "invalid" }];
|
|
@@ -47413,12 +48273,12 @@ var init_vendorsCalculateSubscriptionPrice = __esm(() => {
|
|
|
47413
48273
|
});
|
|
47414
48274
|
|
|
47415
48275
|
// src/mcp-server/tools/vendorsCalculateSubscriptionPrice.ts
|
|
47416
|
-
var
|
|
48276
|
+
var args24, tool$vendorsCalculateSubscriptionPrice;
|
|
47417
48277
|
var init_vendorsCalculateSubscriptionPrice2 = __esm(() => {
|
|
47418
48278
|
init_vendorsCalculateSubscriptionPrice();
|
|
47419
48279
|
init_operations();
|
|
47420
48280
|
init_tools();
|
|
47421
|
-
|
|
48281
|
+
args24 = {
|
|
47422
48282
|
request: CalculateSubscriptionPriceRequest$inboundSchema
|
|
47423
48283
|
};
|
|
47424
48284
|
tool$vendorsCalculateSubscriptionPrice = {
|
|
@@ -47426,9 +48286,9 @@ var init_vendorsCalculateSubscriptionPrice2 = __esm(() => {
|
|
|
47426
48286
|
description: `Calculate subscription price
|
|
47427
48287
|
|
|
47428
48288
|
Calculate subscription price`,
|
|
47429
|
-
args:
|
|
47430
|
-
tool: async (client,
|
|
47431
|
-
const [result, apiCall] = await vendorsCalculateSubscriptionPrice(client,
|
|
48289
|
+
args: args24,
|
|
48290
|
+
tool: async (client, args25, ctx) => {
|
|
48291
|
+
const [result, apiCall] = await vendorsCalculateSubscriptionPrice(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47432
48292
|
if (!result.ok) {
|
|
47433
48293
|
return {
|
|
47434
48294
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47443,9 +48303,9 @@ Calculate subscription price`,
|
|
|
47443
48303
|
|
|
47444
48304
|
// src/funcs/vendorScansVendorScanOut.ts
|
|
47445
48305
|
function vendorScansVendorScanOut(client, request, options) {
|
|
47446
|
-
return new APIPromise($
|
|
48306
|
+
return new APIPromise($do27(client, request, options));
|
|
47447
48307
|
}
|
|
47448
|
-
async function $
|
|
48308
|
+
async function $do27(client, request, options) {
|
|
47449
48309
|
const parsed = safeParse(request, (value) => VendorScanOutRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47450
48310
|
if (!parsed.ok) {
|
|
47451
48311
|
return [parsed, { status: "invalid" }];
|
|
@@ -47520,12 +48380,12 @@ var init_vendorScansVendorScanOut = __esm(() => {
|
|
|
47520
48380
|
});
|
|
47521
48381
|
|
|
47522
48382
|
// src/mcp-server/tools/vendorScansVendorScanOut.ts
|
|
47523
|
-
var
|
|
48383
|
+
var args25, tool$vendorScansVendorScanOut;
|
|
47524
48384
|
var init_vendorScansVendorScanOut2 = __esm(() => {
|
|
47525
48385
|
init_vendorScansVendorScanOut();
|
|
47526
48386
|
init_operations();
|
|
47527
48387
|
init_tools();
|
|
47528
|
-
|
|
48388
|
+
args25 = {
|
|
47529
48389
|
request: VendorScanOutRequest$inboundSchema
|
|
47530
48390
|
};
|
|
47531
48391
|
tool$vendorScansVendorScanOut = {
|
|
@@ -47533,9 +48393,9 @@ var init_vendorScansVendorScanOut2 = __esm(() => {
|
|
|
47533
48393
|
description: `Vendor scan out
|
|
47534
48394
|
|
|
47535
48395
|
It scans out vendor from facility`,
|
|
47536
|
-
args:
|
|
47537
|
-
tool: async (client,
|
|
47538
|
-
const [result, apiCall] = await vendorScansVendorScanOut(client,
|
|
48396
|
+
args: args25,
|
|
48397
|
+
tool: async (client, args26, ctx) => {
|
|
48398
|
+
const [result, apiCall] = await vendorScansVendorScanOut(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47539
48399
|
if (!result.ok) {
|
|
47540
48400
|
return {
|
|
47541
48401
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47550,9 +48410,9 @@ It scans out vendor from facility`,
|
|
|
47550
48410
|
|
|
47551
48411
|
// src/funcs/vendorsChangeSubscription.ts
|
|
47552
48412
|
function vendorsChangeSubscription(client, request, options) {
|
|
47553
|
-
return new APIPromise($
|
|
48413
|
+
return new APIPromise($do28(client, request, options));
|
|
47554
48414
|
}
|
|
47555
|
-
async function $
|
|
48415
|
+
async function $do28(client, request, options) {
|
|
47556
48416
|
const parsed = safeParse(request, (value) => ChangeSubscriptionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47557
48417
|
if (!parsed.ok) {
|
|
47558
48418
|
return [parsed, { status: "invalid" }];
|
|
@@ -47628,12 +48488,12 @@ var init_vendorsChangeSubscription = __esm(() => {
|
|
|
47628
48488
|
});
|
|
47629
48489
|
|
|
47630
48490
|
// src/mcp-server/tools/vendorsChangeSubscription.ts
|
|
47631
|
-
var
|
|
48491
|
+
var args26, tool$vendorsChangeSubscription;
|
|
47632
48492
|
var init_vendorsChangeSubscription2 = __esm(() => {
|
|
47633
48493
|
init_vendorsChangeSubscription();
|
|
47634
48494
|
init_operations();
|
|
47635
48495
|
init_tools();
|
|
47636
|
-
|
|
48496
|
+
args26 = {
|
|
47637
48497
|
request: ChangeSubscriptionRequest$inboundSchema
|
|
47638
48498
|
};
|
|
47639
48499
|
tool$vendorsChangeSubscription = {
|
|
@@ -47641,9 +48501,9 @@ var init_vendorsChangeSubscription2 = __esm(() => {
|
|
|
47641
48501
|
description: `Change subscription
|
|
47642
48502
|
|
|
47643
48503
|
Calculate subscription price`,
|
|
47644
|
-
args:
|
|
47645
|
-
tool: async (client,
|
|
47646
|
-
const [result, apiCall] = await vendorsChangeSubscription(client,
|
|
48504
|
+
args: args26,
|
|
48505
|
+
tool: async (client, args27, ctx) => {
|
|
48506
|
+
const [result, apiCall] = await vendorsChangeSubscription(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47647
48507
|
if (!result.ok) {
|
|
47648
48508
|
return {
|
|
47649
48509
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47658,9 +48518,9 @@ Calculate subscription price`,
|
|
|
47658
48518
|
|
|
47659
48519
|
// src/funcs/vendorsCheckDownloadCode.ts
|
|
47660
48520
|
function vendorsCheckDownloadCode(client, request, options) {
|
|
47661
|
-
return new APIPromise($
|
|
48521
|
+
return new APIPromise($do29(client, request, options));
|
|
47662
48522
|
}
|
|
47663
|
-
async function $
|
|
48523
|
+
async function $do29(client, request, options) {
|
|
47664
48524
|
const parsed = safeParse(request, (value) => CheckDownloadCodeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47665
48525
|
if (!parsed.ok) {
|
|
47666
48526
|
return [parsed, { status: "invalid" }];
|
|
@@ -47736,12 +48596,12 @@ var init_vendorsCheckDownloadCode = __esm(() => {
|
|
|
47736
48596
|
});
|
|
47737
48597
|
|
|
47738
48598
|
// src/mcp-server/tools/vendorsCheckDownloadCode.ts
|
|
47739
|
-
var
|
|
48599
|
+
var args27, tool$vendorsCheckDownloadCode;
|
|
47740
48600
|
var init_vendorsCheckDownloadCode2 = __esm(() => {
|
|
47741
48601
|
init_vendorsCheckDownloadCode();
|
|
47742
48602
|
init_operations();
|
|
47743
48603
|
init_tools();
|
|
47744
|
-
|
|
48604
|
+
args27 = {
|
|
47745
48605
|
request: CheckDownloadCodeRequest$inboundSchema
|
|
47746
48606
|
};
|
|
47747
48607
|
tool$vendorsCheckDownloadCode = {
|
|
@@ -47749,9 +48609,9 @@ var init_vendorsCheckDownloadCode2 = __esm(() => {
|
|
|
47749
48609
|
description: `Check download code for vendor credential
|
|
47750
48610
|
|
|
47751
48611
|
It will check download code for vendor credential`,
|
|
47752
|
-
args:
|
|
47753
|
-
tool: async (client,
|
|
47754
|
-
const [result, apiCall] = await vendorsCheckDownloadCode(client,
|
|
48612
|
+
args: args27,
|
|
48613
|
+
tool: async (client, args28, ctx) => {
|
|
48614
|
+
const [result, apiCall] = await vendorsCheckDownloadCode(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47755
48615
|
if (!result.ok) {
|
|
47756
48616
|
return {
|
|
47757
48617
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47766,9 +48626,9 @@ It will check download code for vendor credential`,
|
|
|
47766
48626
|
|
|
47767
48627
|
// src/funcs/vendorsCreateNewVendorCredentialVersion.ts
|
|
47768
48628
|
function vendorsCreateNewVendorCredentialVersion(client, request, options) {
|
|
47769
|
-
return new APIPromise($
|
|
48629
|
+
return new APIPromise($do30(client, request, options));
|
|
47770
48630
|
}
|
|
47771
|
-
async function $
|
|
48631
|
+
async function $do30(client, request, options) {
|
|
47772
48632
|
const parsed = safeParse(request, (value) => CreateNewVendorCredentialVersionRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
47773
48633
|
if (!parsed.ok) {
|
|
47774
48634
|
return [parsed, { status: "invalid" }];
|
|
@@ -47838,12 +48698,12 @@ var init_vendorsCreateNewVendorCredentialVersion = __esm(() => {
|
|
|
47838
48698
|
});
|
|
47839
48699
|
|
|
47840
48700
|
// src/mcp-server/tools/vendorsCreateNewVendorCredentialVersion.ts
|
|
47841
|
-
var
|
|
48701
|
+
var args28, tool$vendorsCreateNewVendorCredentialVersion;
|
|
47842
48702
|
var init_vendorsCreateNewVendorCredentialVersion2 = __esm(() => {
|
|
47843
48703
|
init_vendorsCreateNewVendorCredentialVersion();
|
|
47844
48704
|
init_operations();
|
|
47845
48705
|
init_tools();
|
|
47846
|
-
|
|
48706
|
+
args28 = {
|
|
47847
48707
|
request: CreateNewVendorCredentialVersionRequestBody$inboundSchema
|
|
47848
48708
|
};
|
|
47849
48709
|
tool$vendorsCreateNewVendorCredentialVersion = {
|
|
@@ -47851,9 +48711,9 @@ var init_vendorsCreateNewVendorCredentialVersion2 = __esm(() => {
|
|
|
47851
48711
|
description: `Create new vendor credential version
|
|
47852
48712
|
|
|
47853
48713
|
It will submit vendor credential`,
|
|
47854
|
-
args:
|
|
47855
|
-
tool: async (client,
|
|
47856
|
-
const [result, apiCall] = await vendorsCreateNewVendorCredentialVersion(client,
|
|
48714
|
+
args: args28,
|
|
48715
|
+
tool: async (client, args29, ctx) => {
|
|
48716
|
+
const [result, apiCall] = await vendorsCreateNewVendorCredentialVersion(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47857
48717
|
if (!result.ok) {
|
|
47858
48718
|
return {
|
|
47859
48719
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47868,9 +48728,9 @@ It will submit vendor credential`,
|
|
|
47868
48728
|
|
|
47869
48729
|
// src/funcs/vendorsCreateOrUpdateBcr.ts
|
|
47870
48730
|
function vendorsCreateOrUpdateBcr(client, request, options) {
|
|
47871
|
-
return new APIPromise($
|
|
48731
|
+
return new APIPromise($do31(client, request, options));
|
|
47872
48732
|
}
|
|
47873
|
-
async function $
|
|
48733
|
+
async function $do31(client, request, options) {
|
|
47874
48734
|
const parsed = safeParse(request, (value) => CreateOrUpdateBcrRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47875
48735
|
if (!parsed.ok) {
|
|
47876
48736
|
return [parsed, { status: "invalid" }];
|
|
@@ -47944,12 +48804,12 @@ var init_vendorsCreateOrUpdateBcr = __esm(() => {
|
|
|
47944
48804
|
});
|
|
47945
48805
|
|
|
47946
48806
|
// src/mcp-server/tools/vendorsCreateOrUpdateBcr.ts
|
|
47947
|
-
var
|
|
48807
|
+
var args29, tool$vendorsCreateOrUpdateBcr;
|
|
47948
48808
|
var init_vendorsCreateOrUpdateBcr2 = __esm(() => {
|
|
47949
48809
|
init_vendorsCreateOrUpdateBcr();
|
|
47950
48810
|
init_operations();
|
|
47951
48811
|
init_tools();
|
|
47952
|
-
|
|
48812
|
+
args29 = {
|
|
47953
48813
|
request: CreateOrUpdateBcrRequest$inboundSchema
|
|
47954
48814
|
};
|
|
47955
48815
|
tool$vendorsCreateOrUpdateBcr = {
|
|
@@ -47957,9 +48817,9 @@ var init_vendorsCreateOrUpdateBcr2 = __esm(() => {
|
|
|
47957
48817
|
description: `Create or update BackgroundCheckResults
|
|
47958
48818
|
|
|
47959
48819
|
It will create or update BackgroundCheckResults`,
|
|
47960
|
-
args:
|
|
47961
|
-
tool: async (client,
|
|
47962
|
-
const [result, apiCall] = await vendorsCreateOrUpdateBcr(client,
|
|
48820
|
+
args: args29,
|
|
48821
|
+
tool: async (client, args30, ctx) => {
|
|
48822
|
+
const [result, apiCall] = await vendorsCreateOrUpdateBcr(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47963
48823
|
if (!result.ok) {
|
|
47964
48824
|
return {
|
|
47965
48825
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47974,9 +48834,9 @@ It will create or update BackgroundCheckResults`,
|
|
|
47974
48834
|
|
|
47975
48835
|
// src/funcs/vendorsCreateVendorCompany.ts
|
|
47976
48836
|
function vendorsCreateVendorCompany(client, request, options) {
|
|
47977
|
-
return new APIPromise($
|
|
48837
|
+
return new APIPromise($do32(client, request, options));
|
|
47978
48838
|
}
|
|
47979
|
-
async function $
|
|
48839
|
+
async function $do32(client, request, options) {
|
|
47980
48840
|
const parsed = safeParse(request, (value) => CreateVendorCompanyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47981
48841
|
if (!parsed.ok) {
|
|
47982
48842
|
return [parsed, { status: "invalid" }];
|
|
@@ -48052,12 +48912,12 @@ var init_vendorsCreateVendorCompany = __esm(() => {
|
|
|
48052
48912
|
});
|
|
48053
48913
|
|
|
48054
48914
|
// src/mcp-server/tools/vendorsCreateVendorCompany.ts
|
|
48055
|
-
var
|
|
48915
|
+
var args30, tool$vendorsCreateVendorCompany;
|
|
48056
48916
|
var init_vendorsCreateVendorCompany2 = __esm(() => {
|
|
48057
48917
|
init_vendorsCreateVendorCompany();
|
|
48058
48918
|
init_operations();
|
|
48059
48919
|
init_tools();
|
|
48060
|
-
|
|
48920
|
+
args30 = {
|
|
48061
48921
|
request: CreateVendorCompanyRequest$inboundSchema
|
|
48062
48922
|
};
|
|
48063
48923
|
tool$vendorsCreateVendorCompany = {
|
|
@@ -48065,9 +48925,9 @@ var init_vendorsCreateVendorCompany2 = __esm(() => {
|
|
|
48065
48925
|
description: `Create vendor company
|
|
48066
48926
|
|
|
48067
48927
|
Create vendor company`,
|
|
48068
|
-
args:
|
|
48069
|
-
tool: async (client,
|
|
48070
|
-
const [result, apiCall] = await vendorsCreateVendorCompany(client,
|
|
48928
|
+
args: args30,
|
|
48929
|
+
tool: async (client, args31, ctx) => {
|
|
48930
|
+
const [result, apiCall] = await vendorsCreateVendorCompany(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48071
48931
|
if (!result.ok) {
|
|
48072
48932
|
return {
|
|
48073
48933
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48082,9 +48942,9 @@ Create vendor company`,
|
|
|
48082
48942
|
|
|
48083
48943
|
// src/funcs/vendorsCreateVendorRegistration.ts
|
|
48084
48944
|
function vendorsCreateVendorRegistration(client, request, options) {
|
|
48085
|
-
return new APIPromise($
|
|
48945
|
+
return new APIPromise($do33(client, request, options));
|
|
48086
48946
|
}
|
|
48087
|
-
async function $
|
|
48947
|
+
async function $do33(client, request, options) {
|
|
48088
48948
|
const parsed = safeParse(request, (value) => CreateVendorRegistrationRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
48089
48949
|
if (!parsed.ok) {
|
|
48090
48950
|
return [parsed, { status: "invalid" }];
|
|
@@ -48151,12 +49011,12 @@ var init_vendorsCreateVendorRegistration = __esm(() => {
|
|
|
48151
49011
|
});
|
|
48152
49012
|
|
|
48153
49013
|
// src/mcp-server/tools/vendorsCreateVendorRegistration.ts
|
|
48154
|
-
var
|
|
49014
|
+
var args31, tool$vendorsCreateVendorRegistration;
|
|
48155
49015
|
var init_vendorsCreateVendorRegistration2 = __esm(() => {
|
|
48156
49016
|
init_vendorsCreateVendorRegistration();
|
|
48157
49017
|
init_operations();
|
|
48158
49018
|
init_tools();
|
|
48159
|
-
|
|
49019
|
+
args31 = {
|
|
48160
49020
|
request: CreateVendorRegistrationRequestBody$inboundSchema
|
|
48161
49021
|
};
|
|
48162
49022
|
tool$vendorsCreateVendorRegistration = {
|
|
@@ -48164,9 +49024,9 @@ var init_vendorsCreateVendorRegistration2 = __esm(() => {
|
|
|
48164
49024
|
description: `Create vendor registration
|
|
48165
49025
|
|
|
48166
49026
|
Create an initial vendor registration. Once successful, the vendor will be able to continue to filling out the rest of their onboarding profile.`,
|
|
48167
|
-
args:
|
|
48168
|
-
tool: async (client,
|
|
48169
|
-
const [result, apiCall] = await vendorsCreateVendorRegistration(client,
|
|
49027
|
+
args: args31,
|
|
49028
|
+
tool: async (client, args32, ctx) => {
|
|
49029
|
+
const [result, apiCall] = await vendorsCreateVendorRegistration(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48170
49030
|
if (!result.ok) {
|
|
48171
49031
|
return {
|
|
48172
49032
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48181,9 +49041,9 @@ Create an initial vendor registration. Once successful, the vendor will be able
|
|
|
48181
49041
|
|
|
48182
49042
|
// src/funcs/vendorsDeclineVendorCredential.ts
|
|
48183
49043
|
function vendorsDeclineVendorCredential(client, request, options) {
|
|
48184
|
-
return new APIPromise($
|
|
49044
|
+
return new APIPromise($do34(client, request, options));
|
|
48185
49045
|
}
|
|
48186
|
-
async function $
|
|
49046
|
+
async function $do34(client, request, options) {
|
|
48187
49047
|
const parsed = safeParse(request, (value) => DeclineVendorCredentialRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48188
49048
|
if (!parsed.ok) {
|
|
48189
49049
|
return [parsed, { status: "invalid" }];
|
|
@@ -48256,12 +49116,12 @@ var init_vendorsDeclineVendorCredential = __esm(() => {
|
|
|
48256
49116
|
});
|
|
48257
49117
|
|
|
48258
49118
|
// src/mcp-server/tools/vendorsDeclineVendorCredential.ts
|
|
48259
|
-
var
|
|
49119
|
+
var args32, tool$vendorsDeclineVendorCredential;
|
|
48260
49120
|
var init_vendorsDeclineVendorCredential2 = __esm(() => {
|
|
48261
49121
|
init_vendorsDeclineVendorCredential();
|
|
48262
49122
|
init_operations();
|
|
48263
49123
|
init_tools();
|
|
48264
|
-
|
|
49124
|
+
args32 = {
|
|
48265
49125
|
request: DeclineVendorCredentialRequest$inboundSchema
|
|
48266
49126
|
};
|
|
48267
49127
|
tool$vendorsDeclineVendorCredential = {
|
|
@@ -48269,9 +49129,9 @@ var init_vendorsDeclineVendorCredential2 = __esm(() => {
|
|
|
48269
49129
|
description: `Decline vendor credential
|
|
48270
49130
|
|
|
48271
49131
|
It will decline vendor credential`,
|
|
48272
|
-
args:
|
|
48273
|
-
tool: async (client,
|
|
48274
|
-
const [result, apiCall] = await vendorsDeclineVendorCredential(client,
|
|
49132
|
+
args: args32,
|
|
49133
|
+
tool: async (client, args33, ctx) => {
|
|
49134
|
+
const [result, apiCall] = await vendorsDeclineVendorCredential(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48275
49135
|
if (!result.ok) {
|
|
48276
49136
|
return {
|
|
48277
49137
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48286,9 +49146,9 @@ It will decline vendor credential`,
|
|
|
48286
49146
|
|
|
48287
49147
|
// src/funcs/vendorsDeleteVendorCredentialFile.ts
|
|
48288
49148
|
function vendorsDeleteVendorCredentialFile(client, request, options) {
|
|
48289
|
-
return new APIPromise($
|
|
49149
|
+
return new APIPromise($do35(client, request, options));
|
|
48290
49150
|
}
|
|
48291
|
-
async function $
|
|
49151
|
+
async function $do35(client, request, options) {
|
|
48292
49152
|
const parsed = safeParse(request, (value) => DeleteVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48293
49153
|
if (!parsed.ok) {
|
|
48294
49154
|
return [parsed, { status: "invalid" }];
|
|
@@ -48365,12 +49225,12 @@ var init_vendorsDeleteVendorCredentialFile = __esm(() => {
|
|
|
48365
49225
|
});
|
|
48366
49226
|
|
|
48367
49227
|
// src/mcp-server/tools/vendorsDeleteVendorCredentialFile.ts
|
|
48368
|
-
var
|
|
49228
|
+
var args33, tool$vendorsDeleteVendorCredentialFile;
|
|
48369
49229
|
var init_vendorsDeleteVendorCredentialFile2 = __esm(() => {
|
|
48370
49230
|
init_vendorsDeleteVendorCredentialFile();
|
|
48371
49231
|
init_operations();
|
|
48372
49232
|
init_tools();
|
|
48373
|
-
|
|
49233
|
+
args33 = {
|
|
48374
49234
|
request: DeleteVendorCredentialFileRequest$inboundSchema
|
|
48375
49235
|
};
|
|
48376
49236
|
tool$vendorsDeleteVendorCredentialFile = {
|
|
@@ -48378,9 +49238,9 @@ var init_vendorsDeleteVendorCredentialFile2 = __esm(() => {
|
|
|
48378
49238
|
description: `Delete vendor credential file
|
|
48379
49239
|
|
|
48380
49240
|
It will delete the vendor credential file`,
|
|
48381
|
-
args:
|
|
48382
|
-
tool: async (client,
|
|
48383
|
-
const [result, apiCall] = await vendorsDeleteVendorCredentialFile(client,
|
|
49241
|
+
args: args33,
|
|
49242
|
+
tool: async (client, args34, ctx) => {
|
|
49243
|
+
const [result, apiCall] = await vendorsDeleteVendorCredentialFile(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48384
49244
|
if (!result.ok) {
|
|
48385
49245
|
return {
|
|
48386
49246
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48395,9 +49255,9 @@ It will delete the vendor credential file`,
|
|
|
48395
49255
|
|
|
48396
49256
|
// src/funcs/vendorsDeleteVendorManagedByCompany.ts
|
|
48397
49257
|
function vendorsDeleteVendorManagedByCompany(client, request, options) {
|
|
48398
|
-
return new APIPromise($
|
|
49258
|
+
return new APIPromise($do36(client, request, options));
|
|
48399
49259
|
}
|
|
48400
|
-
async function $
|
|
49260
|
+
async function $do36(client, request, options) {
|
|
48401
49261
|
const parsed = safeParse(request, (value) => DeleteVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48402
49262
|
if (!parsed.ok) {
|
|
48403
49263
|
return [parsed, { status: "invalid" }];
|
|
@@ -48473,12 +49333,12 @@ var init_vendorsDeleteVendorManagedByCompany = __esm(() => {
|
|
|
48473
49333
|
});
|
|
48474
49334
|
|
|
48475
49335
|
// src/mcp-server/tools/vendorsDeleteVendorManagedByCompany.ts
|
|
48476
|
-
var
|
|
49336
|
+
var args34, tool$vendorsDeleteVendorManagedByCompany;
|
|
48477
49337
|
var init_vendorsDeleteVendorManagedByCompany2 = __esm(() => {
|
|
48478
49338
|
init_vendorsDeleteVendorManagedByCompany();
|
|
48479
49339
|
init_operations();
|
|
48480
49340
|
init_tools();
|
|
48481
|
-
|
|
49341
|
+
args34 = {
|
|
48482
49342
|
request: DeleteVendorManagedByCompanyRequest$inboundSchema
|
|
48483
49343
|
};
|
|
48484
49344
|
tool$vendorsDeleteVendorManagedByCompany = {
|
|
@@ -48486,9 +49346,9 @@ var init_vendorsDeleteVendorManagedByCompany2 = __esm(() => {
|
|
|
48486
49346
|
description: `Delete vendor managed by company
|
|
48487
49347
|
|
|
48488
49348
|
It will delete the vendor managed by company`,
|
|
48489
|
-
args:
|
|
48490
|
-
tool: async (client,
|
|
48491
|
-
const [result, apiCall] = await vendorsDeleteVendorManagedByCompany(client,
|
|
49349
|
+
args: args34,
|
|
49350
|
+
tool: async (client, args35, ctx) => {
|
|
49351
|
+
const [result, apiCall] = await vendorsDeleteVendorManagedByCompany(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48492
49352
|
if (!result.ok) {
|
|
48493
49353
|
return {
|
|
48494
49354
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48503,9 +49363,9 @@ It will delete the vendor managed by company`,
|
|
|
48503
49363
|
|
|
48504
49364
|
// src/funcs/vendorsExpediteTimeRemaining.ts
|
|
48505
49365
|
function vendorsExpediteTimeRemaining(client, request, options) {
|
|
48506
|
-
return new APIPromise($
|
|
49366
|
+
return new APIPromise($do37(client, request, options));
|
|
48507
49367
|
}
|
|
48508
|
-
async function $
|
|
49368
|
+
async function $do37(client, request, options) {
|
|
48509
49369
|
const parsed = safeParse(request, (value) => ExpediteTimeRemainingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48510
49370
|
if (!parsed.ok) {
|
|
48511
49371
|
return [parsed, { status: "invalid" }];
|
|
@@ -48580,12 +49440,12 @@ var init_vendorsExpediteTimeRemaining = __esm(() => {
|
|
|
48580
49440
|
});
|
|
48581
49441
|
|
|
48582
49442
|
// src/mcp-server/tools/vendorsExpediteTimeRemaining.ts
|
|
48583
|
-
var
|
|
49443
|
+
var args35, tool$vendorsExpediteTimeRemaining;
|
|
48584
49444
|
var init_vendorsExpediteTimeRemaining2 = __esm(() => {
|
|
48585
49445
|
init_vendorsExpediteTimeRemaining();
|
|
48586
49446
|
init_operations();
|
|
48587
49447
|
init_tools();
|
|
48588
|
-
|
|
49448
|
+
args35 = {
|
|
48589
49449
|
request: ExpediteTimeRemainingRequest$inboundSchema
|
|
48590
49450
|
};
|
|
48591
49451
|
tool$vendorsExpediteTimeRemaining = {
|
|
@@ -48593,9 +49453,124 @@ var init_vendorsExpediteTimeRemaining2 = __esm(() => {
|
|
|
48593
49453
|
description: `Expedite time remaining
|
|
48594
49454
|
|
|
48595
49455
|
For vendors who have a paid 24-hour expedite credentials invoice, get the remaining time (in seconds) for which submitted credentials will be expedited.`,
|
|
48596
|
-
args:
|
|
48597
|
-
tool: async (client,
|
|
48598
|
-
const [result, apiCall] = await vendorsExpediteTimeRemaining(client,
|
|
49456
|
+
args: args35,
|
|
49457
|
+
tool: async (client, args36, ctx) => {
|
|
49458
|
+
const [result, apiCall] = await vendorsExpediteTimeRemaining(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49459
|
+
if (!result.ok) {
|
|
49460
|
+
return {
|
|
49461
|
+
content: [{ type: "text", text: result.error.message }],
|
|
49462
|
+
isError: true
|
|
49463
|
+
};
|
|
49464
|
+
}
|
|
49465
|
+
const value = result.value;
|
|
49466
|
+
return formatResult(value, apiCall);
|
|
49467
|
+
}
|
|
49468
|
+
};
|
|
49469
|
+
});
|
|
49470
|
+
|
|
49471
|
+
// src/funcs/vendorsGetSubscription.ts
|
|
49472
|
+
function vendorsGetSubscription(client, request, options) {
|
|
49473
|
+
return new APIPromise($do38(client, request, options));
|
|
49474
|
+
}
|
|
49475
|
+
async function $do38(client, request, options) {
|
|
49476
|
+
const parsed = safeParse(request, (value) => GetSubscriptionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49477
|
+
if (!parsed.ok) {
|
|
49478
|
+
return [parsed, { status: "invalid" }];
|
|
49479
|
+
}
|
|
49480
|
+
const payload = parsed.value;
|
|
49481
|
+
const body = null;
|
|
49482
|
+
const pathParams = {
|
|
49483
|
+
vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
|
|
49484
|
+
explode: false,
|
|
49485
|
+
charEncoding: "percent"
|
|
49486
|
+
})
|
|
49487
|
+
};
|
|
49488
|
+
const path = pathToFunc("/vendors/{vendor_id_or_me}/subscription")(pathParams);
|
|
49489
|
+
const query = encodeFormQuery({
|
|
49490
|
+
expand: payload.expand
|
|
49491
|
+
}, { explode: false });
|
|
49492
|
+
const headers = new Headers(compactMap({
|
|
49493
|
+
Accept: "application/json"
|
|
49494
|
+
}));
|
|
49495
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
49496
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
49497
|
+
const context = {
|
|
49498
|
+
options: client._options,
|
|
49499
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
49500
|
+
operationID: "getSubscription",
|
|
49501
|
+
oAuth2Scopes: [],
|
|
49502
|
+
resolvedSecurity: requestSecurity,
|
|
49503
|
+
securitySource: client._options.security,
|
|
49504
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
49505
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
49506
|
+
};
|
|
49507
|
+
const requestRes = client._createRequest(context, {
|
|
49508
|
+
security: requestSecurity,
|
|
49509
|
+
method: "GET",
|
|
49510
|
+
baseURL: options?.serverURL,
|
|
49511
|
+
path,
|
|
49512
|
+
headers,
|
|
49513
|
+
query,
|
|
49514
|
+
body,
|
|
49515
|
+
userAgent: client._options.userAgent,
|
|
49516
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
49517
|
+
}, options);
|
|
49518
|
+
if (!requestRes.ok) {
|
|
49519
|
+
return [requestRes, { status: "invalid" }];
|
|
49520
|
+
}
|
|
49521
|
+
const req = requestRes.value;
|
|
49522
|
+
const doResult = await client._do(req, {
|
|
49523
|
+
context,
|
|
49524
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
49525
|
+
retryConfig: context.retryConfig,
|
|
49526
|
+
retryCodes: context.retryCodes
|
|
49527
|
+
});
|
|
49528
|
+
if (!doResult.ok) {
|
|
49529
|
+
return [doResult, { status: "request-error", request: req }];
|
|
49530
|
+
}
|
|
49531
|
+
const response = doResult.value;
|
|
49532
|
+
const responseFields = {
|
|
49533
|
+
HttpMeta: { Response: response, Request: req }
|
|
49534
|
+
};
|
|
49535
|
+
const [result] = await match(json(200, GetSubscriptionResponseBody$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49536
|
+
if (!result.ok) {
|
|
49537
|
+
return [result, { status: "complete", request: req, response }];
|
|
49538
|
+
}
|
|
49539
|
+
return [result, { status: "complete", request: req, response }];
|
|
49540
|
+
}
|
|
49541
|
+
var init_vendorsGetSubscription = __esm(() => {
|
|
49542
|
+
init_encodings();
|
|
49543
|
+
init_matchers();
|
|
49544
|
+
init_primitives();
|
|
49545
|
+
init_schemas();
|
|
49546
|
+
init_security();
|
|
49547
|
+
init_url();
|
|
49548
|
+
init_errors2();
|
|
49549
|
+
init_operations();
|
|
49550
|
+
init_async();
|
|
49551
|
+
});
|
|
49552
|
+
|
|
49553
|
+
// src/mcp-server/tools/vendorsGetSubscription.ts
|
|
49554
|
+
var args36, tool$vendorsGetSubscription;
|
|
49555
|
+
var init_vendorsGetSubscription2 = __esm(() => {
|
|
49556
|
+
init_vendorsGetSubscription();
|
|
49557
|
+
init_operations();
|
|
49558
|
+
init_tools();
|
|
49559
|
+
args36 = {
|
|
49560
|
+
request: GetSubscriptionRequest$inboundSchema
|
|
49561
|
+
};
|
|
49562
|
+
tool$vendorsGetSubscription = {
|
|
49563
|
+
name: "vendors-get-subscription",
|
|
49564
|
+
description: `Vendor subscription
|
|
49565
|
+
|
|
49566
|
+
Get vendor subscription
|
|
49567
|
+
|
|
49568
|
+
Available \`expand\` scopes are:
|
|
49569
|
+
|
|
49570
|
+
subscription.expedited_offer`,
|
|
49571
|
+
args: args36,
|
|
49572
|
+
tool: async (client, args37, ctx) => {
|
|
49573
|
+
const [result, apiCall] = await vendorsGetSubscription(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48599
49574
|
if (!result.ok) {
|
|
48600
49575
|
return {
|
|
48601
49576
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48610,9 +49585,9 @@ For vendors who have a paid 24-hour expedite credentials invoice, get the remain
|
|
|
48610
49585
|
|
|
48611
49586
|
// src/funcs/vendorsGetVendorCredentialDetails.ts
|
|
48612
49587
|
function vendorsGetVendorCredentialDetails(client, request, options) {
|
|
48613
|
-
return new APIPromise($
|
|
49588
|
+
return new APIPromise($do39(client, request, options));
|
|
48614
49589
|
}
|
|
48615
|
-
async function $
|
|
49590
|
+
async function $do39(client, request, options) {
|
|
48616
49591
|
const parsed = safeParse(request, (value) => GetVendorCredentialDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48617
49592
|
if (!parsed.ok) {
|
|
48618
49593
|
return [parsed, { status: "invalid" }];
|
|
@@ -48695,12 +49670,12 @@ var init_vendorsGetVendorCredentialDetails = __esm(() => {
|
|
|
48695
49670
|
});
|
|
48696
49671
|
|
|
48697
49672
|
// src/mcp-server/tools/vendorsGetVendorCredentialDetails.ts
|
|
48698
|
-
var
|
|
49673
|
+
var args37, tool$vendorsGetVendorCredentialDetails;
|
|
48699
49674
|
var init_vendorsGetVendorCredentialDetails2 = __esm(() => {
|
|
48700
49675
|
init_vendorsGetVendorCredentialDetails();
|
|
48701
49676
|
init_operations();
|
|
48702
49677
|
init_tools();
|
|
48703
|
-
|
|
49678
|
+
args37 = {
|
|
48704
49679
|
request: GetVendorCredentialDetailsRequest$inboundSchema
|
|
48705
49680
|
};
|
|
48706
49681
|
tool$vendorsGetVendorCredentialDetails = {
|
|
@@ -48726,9 +49701,9 @@ Available \`expand\` scopes are:
|
|
|
48726
49701
|
- vendor_credential.credential_variants
|
|
48727
49702
|
- vendor_credential.targets_chop
|
|
48728
49703
|
- vendor_credential.total_pending_credentials`,
|
|
48729
|
-
args:
|
|
48730
|
-
tool: async (client,
|
|
48731
|
-
const [result, apiCall] = await vendorsGetVendorCredentialDetails(client,
|
|
49704
|
+
args: args37,
|
|
49705
|
+
tool: async (client, args38, ctx) => {
|
|
49706
|
+
const [result, apiCall] = await vendorsGetVendorCredentialDetails(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48732
49707
|
if (!result.ok) {
|
|
48733
49708
|
return {
|
|
48734
49709
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48743,9 +49718,9 @@ Available \`expand\` scopes are:
|
|
|
48743
49718
|
|
|
48744
49719
|
// src/funcs/vendorsGetVendorCredentialFile.ts
|
|
48745
49720
|
function vendorsGetVendorCredentialFile(client, request, options) {
|
|
48746
|
-
return new APIPromise($
|
|
49721
|
+
return new APIPromise($do40(client, request, options));
|
|
48747
49722
|
}
|
|
48748
|
-
async function $
|
|
49723
|
+
async function $do40(client, request, options) {
|
|
48749
49724
|
const parsed = safeParse(request, (value) => GetVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48750
49725
|
if (!parsed.ok) {
|
|
48751
49726
|
return [parsed, { status: "invalid" }];
|
|
@@ -48826,12 +49801,12 @@ var init_vendorsGetVendorCredentialFile = __esm(() => {
|
|
|
48826
49801
|
});
|
|
48827
49802
|
|
|
48828
49803
|
// src/mcp-server/tools/vendorsGetVendorCredentialFile.ts
|
|
48829
|
-
var
|
|
49804
|
+
var args38, tool$vendorsGetVendorCredentialFile;
|
|
48830
49805
|
var init_vendorsGetVendorCredentialFile2 = __esm(() => {
|
|
48831
49806
|
init_vendorsGetVendorCredentialFile();
|
|
48832
49807
|
init_operations();
|
|
48833
49808
|
init_tools();
|
|
48834
|
-
|
|
49809
|
+
args38 = {
|
|
48835
49810
|
request: GetVendorCredentialFileRequest$inboundSchema
|
|
48836
49811
|
};
|
|
48837
49812
|
tool$vendorsGetVendorCredentialFile = {
|
|
@@ -48844,9 +49819,9 @@ Available \`expand\` scopes are:
|
|
|
48844
49819
|
|
|
48845
49820
|
- vendor_credential_file.vendor_credential
|
|
48846
49821
|
- vendor_credential_file.credential_document`,
|
|
48847
|
-
args:
|
|
48848
|
-
tool: async (client,
|
|
48849
|
-
const [result, apiCall] = await vendorsGetVendorCredentialFile(client,
|
|
49822
|
+
args: args38,
|
|
49823
|
+
tool: async (client, args39, ctx) => {
|
|
49824
|
+
const [result, apiCall] = await vendorsGetVendorCredentialFile(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48850
49825
|
if (!result.ok) {
|
|
48851
49826
|
return {
|
|
48852
49827
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48861,9 +49836,9 @@ Available \`expand\` scopes are:
|
|
|
48861
49836
|
|
|
48862
49837
|
// src/funcs/vendorsGetVendorInvoiceDetails.ts
|
|
48863
49838
|
function vendorsGetVendorInvoiceDetails(client, request, options) {
|
|
48864
|
-
return new APIPromise($
|
|
49839
|
+
return new APIPromise($do41(client, request, options));
|
|
48865
49840
|
}
|
|
48866
|
-
async function $
|
|
49841
|
+
async function $do41(client, request, options) {
|
|
48867
49842
|
const parsed = safeParse(request, (value) => GetVendorInvoiceDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48868
49843
|
if (!parsed.ok) {
|
|
48869
49844
|
return [parsed, { status: "invalid" }];
|
|
@@ -48943,12 +49918,12 @@ var init_vendorsGetVendorInvoiceDetails = __esm(() => {
|
|
|
48943
49918
|
});
|
|
48944
49919
|
|
|
48945
49920
|
// src/mcp-server/tools/vendorsGetVendorInvoiceDetails.ts
|
|
48946
|
-
var
|
|
49921
|
+
var args39, tool$vendorsGetVendorInvoiceDetails;
|
|
48947
49922
|
var init_vendorsGetVendorInvoiceDetails2 = __esm(() => {
|
|
48948
49923
|
init_vendorsGetVendorInvoiceDetails();
|
|
48949
49924
|
init_operations();
|
|
48950
49925
|
init_tools();
|
|
48951
|
-
|
|
49926
|
+
args39 = {
|
|
48952
49927
|
request: GetVendorInvoiceDetailsRequest$inboundSchema
|
|
48953
49928
|
};
|
|
48954
49929
|
tool$vendorsGetVendorInvoiceDetails = {
|
|
@@ -48961,9 +49936,9 @@ Available \`expand\` scopes are:
|
|
|
48961
49936
|
|
|
48962
49937
|
invoice.line_items
|
|
48963
49938
|
invoice.invoice_transactions`,
|
|
48964
|
-
args:
|
|
48965
|
-
tool: async (client,
|
|
48966
|
-
const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client,
|
|
49939
|
+
args: args39,
|
|
49940
|
+
tool: async (client, args40, ctx) => {
|
|
49941
|
+
const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48967
49942
|
if (!result.ok) {
|
|
48968
49943
|
return {
|
|
48969
49944
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48978,9 +49953,9 @@ invoice.invoice_transactions`,
|
|
|
48978
49953
|
|
|
48979
49954
|
// src/funcs/vendorsGetVendorLegalName.ts
|
|
48980
49955
|
function vendorsGetVendorLegalName(client, request, options) {
|
|
48981
|
-
return new APIPromise($
|
|
49956
|
+
return new APIPromise($do42(client, request, options));
|
|
48982
49957
|
}
|
|
48983
|
-
async function $
|
|
49958
|
+
async function $do42(client, request, options) {
|
|
48984
49959
|
const parsed = safeParse(request, (value) => GetVendorLegalNameRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48985
49960
|
if (!parsed.ok) {
|
|
48986
49961
|
return [parsed, { status: "invalid" }];
|
|
@@ -49055,12 +50030,12 @@ var init_vendorsGetVendorLegalName = __esm(() => {
|
|
|
49055
50030
|
});
|
|
49056
50031
|
|
|
49057
50032
|
// src/mcp-server/tools/vendorsGetVendorLegalName.ts
|
|
49058
|
-
var
|
|
50033
|
+
var args40, tool$vendorsGetVendorLegalName;
|
|
49059
50034
|
var init_vendorsGetVendorLegalName2 = __esm(() => {
|
|
49060
50035
|
init_vendorsGetVendorLegalName();
|
|
49061
50036
|
init_operations();
|
|
49062
50037
|
init_tools();
|
|
49063
|
-
|
|
50038
|
+
args40 = {
|
|
49064
50039
|
request: GetVendorLegalNameRequest$inboundSchema
|
|
49065
50040
|
};
|
|
49066
50041
|
tool$vendorsGetVendorLegalName = {
|
|
@@ -49068,9 +50043,9 @@ var init_vendorsGetVendorLegalName2 = __esm(() => {
|
|
|
49068
50043
|
description: `Get Vendor legal name
|
|
49069
50044
|
|
|
49070
50045
|
Get vendor legal name`,
|
|
49071
|
-
args:
|
|
49072
|
-
tool: async (client,
|
|
49073
|
-
const [result, apiCall] = await vendorsGetVendorLegalName(client,
|
|
50046
|
+
args: args40,
|
|
50047
|
+
tool: async (client, args41, ctx) => {
|
|
50048
|
+
const [result, apiCall] = await vendorsGetVendorLegalName(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49074
50049
|
if (!result.ok) {
|
|
49075
50050
|
return {
|
|
49076
50051
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49085,9 +50060,9 @@ Get vendor legal name`,
|
|
|
49085
50060
|
|
|
49086
50061
|
// src/funcs/vendorsGetVendorsDetails.ts
|
|
49087
50062
|
function vendorsGetVendorsDetails(client, request, options) {
|
|
49088
|
-
return new APIPromise($
|
|
50063
|
+
return new APIPromise($do43(client, request, options));
|
|
49089
50064
|
}
|
|
49090
|
-
async function $
|
|
50065
|
+
async function $do43(client, request, options) {
|
|
49091
50066
|
const parsed = safeParse(request, (value) => GetVendorsDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49092
50067
|
if (!parsed.ok) {
|
|
49093
50068
|
return [parsed, { status: "invalid" }];
|
|
@@ -49167,12 +50142,12 @@ var init_vendorsGetVendorsDetails = __esm(() => {
|
|
|
49167
50142
|
});
|
|
49168
50143
|
|
|
49169
50144
|
// src/mcp-server/tools/vendorsGetVendorsDetails.ts
|
|
49170
|
-
var
|
|
50145
|
+
var args41, tool$vendorsGetVendorsDetails;
|
|
49171
50146
|
var init_vendorsGetVendorsDetails2 = __esm(() => {
|
|
49172
50147
|
init_vendorsGetVendorsDetails();
|
|
49173
50148
|
init_operations();
|
|
49174
50149
|
init_tools();
|
|
49175
|
-
|
|
50150
|
+
args41 = {
|
|
49176
50151
|
request: GetVendorsDetailsRequest$inboundSchema
|
|
49177
50152
|
};
|
|
49178
50153
|
tool$vendorsGetVendorsDetails = {
|
|
@@ -49197,10 +50172,13 @@ vendor.payment_responsibility
|
|
|
49197
50172
|
vendor.background_check_date_expires
|
|
49198
50173
|
vendor.credit_balance
|
|
49199
50174
|
vendor.registration_data
|
|
49200
|
-
vendor.registration_finished
|
|
49201
|
-
|
|
49202
|
-
|
|
49203
|
-
|
|
50175
|
+
vendor.registration_finished
|
|
50176
|
+
vendor.target_facilities
|
|
50177
|
+
vendor.pending_invoice
|
|
50178
|
+
vendor.vendor_groups`,
|
|
50179
|
+
args: args41,
|
|
50180
|
+
tool: async (client, args42, ctx) => {
|
|
50181
|
+
const [result, apiCall] = await vendorsGetVendorsDetails(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49204
50182
|
if (!result.ok) {
|
|
49205
50183
|
return {
|
|
49206
50184
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49215,9 +50193,9 @@ vendor.registration_finished`,
|
|
|
49215
50193
|
|
|
49216
50194
|
// src/funcs/vendorsListVendorAdditionalFacilityFields.ts
|
|
49217
50195
|
function vendorsListVendorAdditionalFacilityFields(client, request, options) {
|
|
49218
|
-
return new APIPromise($
|
|
50196
|
+
return new APIPromise($do44(client, request, options));
|
|
49219
50197
|
}
|
|
49220
|
-
async function $
|
|
50198
|
+
async function $do44(client, request, options) {
|
|
49221
50199
|
const parsed = safeParse(request, (value) => ListVendorAdditionalFacilityFieldsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49222
50200
|
if (!parsed.ok) {
|
|
49223
50201
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -49329,12 +50307,12 @@ var init_vendorsListVendorAdditionalFacilityFields = __esm(() => {
|
|
|
49329
50307
|
});
|
|
49330
50308
|
|
|
49331
50309
|
// src/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.ts
|
|
49332
|
-
var
|
|
50310
|
+
var args42, tool$vendorsListVendorAdditionalFacilityFields;
|
|
49333
50311
|
var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
|
|
49334
50312
|
init_vendorsListVendorAdditionalFacilityFields();
|
|
49335
50313
|
init_operations();
|
|
49336
50314
|
init_tools();
|
|
49337
|
-
|
|
50315
|
+
args42 = {
|
|
49338
50316
|
request: ListVendorAdditionalFacilityFieldsRequest$inboundSchema
|
|
49339
50317
|
};
|
|
49340
50318
|
tool$vendorsListVendorAdditionalFacilityFields = {
|
|
@@ -49342,9 +50320,9 @@ var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
|
|
|
49342
50320
|
description: `List of vendor's additional facility fields
|
|
49343
50321
|
|
|
49344
50322
|
List of vendor's additional facility fields`,
|
|
49345
|
-
args:
|
|
49346
|
-
tool: async (client,
|
|
49347
|
-
const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client,
|
|
50323
|
+
args: args42,
|
|
50324
|
+
tool: async (client, args43, ctx) => {
|
|
50325
|
+
const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49348
50326
|
if (!result.ok) {
|
|
49349
50327
|
return {
|
|
49350
50328
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49359,9 +50337,9 @@ List of vendor's additional facility fields`,
|
|
|
49359
50337
|
|
|
49360
50338
|
// src/funcs/vendorsListVendorCredentialDataRequests.ts
|
|
49361
50339
|
function vendorsListVendorCredentialDataRequests(client, request, options) {
|
|
49362
|
-
return new APIPromise($
|
|
50340
|
+
return new APIPromise($do45(client, request, options));
|
|
49363
50341
|
}
|
|
49364
|
-
async function $
|
|
50342
|
+
async function $do45(client, request, options) {
|
|
49365
50343
|
const parsed = safeParse(request, (value) => ListVendorCredentialDataRequestsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49366
50344
|
if (!parsed.ok) {
|
|
49367
50345
|
return [parsed, { status: "invalid" }];
|
|
@@ -49444,12 +50422,12 @@ var init_vendorsListVendorCredentialDataRequests = __esm(() => {
|
|
|
49444
50422
|
});
|
|
49445
50423
|
|
|
49446
50424
|
// src/mcp-server/tools/vendorsListVendorCredentialDataRequests.ts
|
|
49447
|
-
var
|
|
50425
|
+
var args43, tool$vendorsListVendorCredentialDataRequests;
|
|
49448
50426
|
var init_vendorsListVendorCredentialDataRequests2 = __esm(() => {
|
|
49449
50427
|
init_vendorsListVendorCredentialDataRequests();
|
|
49450
50428
|
init_operations();
|
|
49451
50429
|
init_tools();
|
|
49452
|
-
|
|
50430
|
+
args43 = {
|
|
49453
50431
|
request: ListVendorCredentialDataRequestsRequest$inboundSchema
|
|
49454
50432
|
};
|
|
49455
50433
|
tool$vendorsListVendorCredentialDataRequests = {
|
|
@@ -49462,9 +50440,9 @@ Available \`expand\` scopes are:
|
|
|
49462
50440
|
|
|
49463
50441
|
- vendor_credential_data_request.vendor_credential
|
|
49464
50442
|
- vendor_credential_data_request.data_request`,
|
|
49465
|
-
args:
|
|
49466
|
-
tool: async (client,
|
|
49467
|
-
const [result, apiCall] = await vendorsListVendorCredentialDataRequests(client,
|
|
50443
|
+
args: args43,
|
|
50444
|
+
tool: async (client, args44, ctx) => {
|
|
50445
|
+
const [result, apiCall] = await vendorsListVendorCredentialDataRequests(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49468
50446
|
if (!result.ok) {
|
|
49469
50447
|
return {
|
|
49470
50448
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49479,9 +50457,9 @@ Available \`expand\` scopes are:
|
|
|
49479
50457
|
|
|
49480
50458
|
// src/funcs/vendorsListVendorCredentialFiles.ts
|
|
49481
50459
|
function vendorsListVendorCredentialFiles(client, request, options) {
|
|
49482
|
-
return new APIPromise($
|
|
50460
|
+
return new APIPromise($do46(client, request, options));
|
|
49483
50461
|
}
|
|
49484
|
-
async function $
|
|
50462
|
+
async function $do46(client, request, options) {
|
|
49485
50463
|
const parsed = safeParse(request, (value) => ListVendorCredentialFilesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49486
50464
|
if (!parsed.ok) {
|
|
49487
50465
|
return [parsed, { status: "invalid" }];
|
|
@@ -49564,12 +50542,12 @@ var init_vendorsListVendorCredentialFiles = __esm(() => {
|
|
|
49564
50542
|
});
|
|
49565
50543
|
|
|
49566
50544
|
// src/mcp-server/tools/vendorsListVendorCredentialFiles.ts
|
|
49567
|
-
var
|
|
50545
|
+
var args44, tool$vendorsListVendorCredentialFiles;
|
|
49568
50546
|
var init_vendorsListVendorCredentialFiles2 = __esm(() => {
|
|
49569
50547
|
init_vendorsListVendorCredentialFiles();
|
|
49570
50548
|
init_operations();
|
|
49571
50549
|
init_tools();
|
|
49572
|
-
|
|
50550
|
+
args44 = {
|
|
49573
50551
|
request: ListVendorCredentialFilesRequest$inboundSchema
|
|
49574
50552
|
};
|
|
49575
50553
|
tool$vendorsListVendorCredentialFiles = {
|
|
@@ -49582,9 +50560,9 @@ Available \`expand\` scopes are:
|
|
|
49582
50560
|
|
|
49583
50561
|
- vendor_credential_file.vendor_credential
|
|
49584
50562
|
- vendor_credential_file.credential_document`,
|
|
49585
|
-
args:
|
|
49586
|
-
tool: async (client,
|
|
49587
|
-
const [result, apiCall] = await vendorsListVendorCredentialFiles(client,
|
|
50563
|
+
args: args44,
|
|
50564
|
+
tool: async (client, args45, ctx) => {
|
|
50565
|
+
const [result, apiCall] = await vendorsListVendorCredentialFiles(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49588
50566
|
if (!result.ok) {
|
|
49589
50567
|
return {
|
|
49590
50568
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49599,9 +50577,9 @@ Available \`expand\` scopes are:
|
|
|
49599
50577
|
|
|
49600
50578
|
// src/funcs/vendorsListVendorCredentialHistory.ts
|
|
49601
50579
|
function vendorsListVendorCredentialHistory(client, request, options) {
|
|
49602
|
-
return new APIPromise($
|
|
50580
|
+
return new APIPromise($do47(client, request, options));
|
|
49603
50581
|
}
|
|
49604
|
-
async function $
|
|
50582
|
+
async function $do47(client, request, options) {
|
|
49605
50583
|
const parsed = safeParse(request, (value) => ListVendorCredentialHistoryRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49606
50584
|
if (!parsed.ok) {
|
|
49607
50585
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -49716,12 +50694,12 @@ var init_vendorsListVendorCredentialHistory = __esm(() => {
|
|
|
49716
50694
|
});
|
|
49717
50695
|
|
|
49718
50696
|
// src/mcp-server/tools/vendorsListVendorCredentialHistory.ts
|
|
49719
|
-
var
|
|
50697
|
+
var args45, tool$vendorsListVendorCredentialHistory;
|
|
49720
50698
|
var init_vendorsListVendorCredentialHistory2 = __esm(() => {
|
|
49721
50699
|
init_vendorsListVendorCredentialHistory();
|
|
49722
50700
|
init_operations();
|
|
49723
50701
|
init_tools();
|
|
49724
|
-
|
|
50702
|
+
args45 = {
|
|
49725
50703
|
request: ListVendorCredentialHistoryRequest$inboundSchema
|
|
49726
50704
|
};
|
|
49727
50705
|
tool$vendorsListVendorCredentialHistory = {
|
|
@@ -49729,9 +50707,9 @@ var init_vendorsListVendorCredentialHistory2 = __esm(() => {
|
|
|
49729
50707
|
description: `List Vendor Credential History
|
|
49730
50708
|
|
|
49731
50709
|
Lists vendor credentials history`,
|
|
49732
|
-
args:
|
|
49733
|
-
tool: async (client,
|
|
49734
|
-
const [result, apiCall] = await vendorsListVendorCredentialHistory(client,
|
|
50710
|
+
args: args45,
|
|
50711
|
+
tool: async (client, args46, ctx) => {
|
|
50712
|
+
const [result, apiCall] = await vendorsListVendorCredentialHistory(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49735
50713
|
if (!result.ok) {
|
|
49736
50714
|
return {
|
|
49737
50715
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49746,9 +50724,9 @@ Lists vendor credentials history`,
|
|
|
49746
50724
|
|
|
49747
50725
|
// src/funcs/vendorsListVendorCredentials.ts
|
|
49748
50726
|
function vendorsListVendorCredentials(client, request, options) {
|
|
49749
|
-
return new APIPromise($
|
|
50727
|
+
return new APIPromise($do48(client, request, options));
|
|
49750
50728
|
}
|
|
49751
|
-
async function $
|
|
50729
|
+
async function $do48(client, request, options) {
|
|
49752
50730
|
const parsed = safeParse(request, (value) => ListVendorCredentialsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49753
50731
|
if (!parsed.ok) {
|
|
49754
50732
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -49868,12 +50846,12 @@ var init_vendorsListVendorCredentials = __esm(() => {
|
|
|
49868
50846
|
});
|
|
49869
50847
|
|
|
49870
50848
|
// src/mcp-server/tools/vendorsListVendorCredentials.ts
|
|
49871
|
-
var
|
|
50849
|
+
var args46, tool$vendorsListVendorCredentials;
|
|
49872
50850
|
var init_vendorsListVendorCredentials2 = __esm(() => {
|
|
49873
50851
|
init_vendorsListVendorCredentials();
|
|
49874
50852
|
init_operations();
|
|
49875
50853
|
init_tools();
|
|
49876
|
-
|
|
50854
|
+
args46 = {
|
|
49877
50855
|
request: ListVendorCredentialsRequest$inboundSchema
|
|
49878
50856
|
};
|
|
49879
50857
|
tool$vendorsListVendorCredentials = {
|
|
@@ -49881,9 +50859,9 @@ var init_vendorsListVendorCredentials2 = __esm(() => {
|
|
|
49881
50859
|
description: `List Vendor Credentials
|
|
49882
50860
|
|
|
49883
50861
|
Lists vendor credentials, required credentials, and company credentials. Utilized in Vendor Dashboard.`,
|
|
49884
|
-
args:
|
|
49885
|
-
tool: async (client,
|
|
49886
|
-
const [result, apiCall] = await vendorsListVendorCredentials(client,
|
|
50862
|
+
args: args46,
|
|
50863
|
+
tool: async (client, args47, ctx) => {
|
|
50864
|
+
const [result, apiCall] = await vendorsListVendorCredentials(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49887
50865
|
if (!result.ok) {
|
|
49888
50866
|
return {
|
|
49889
50867
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49898,9 +50876,9 @@ Lists vendor credentials, required credentials, and company credentials. Utilize
|
|
|
49898
50876
|
|
|
49899
50877
|
// src/funcs/vendorsListVendorCredits.ts
|
|
49900
50878
|
function vendorsListVendorCredits(client, request, options) {
|
|
49901
|
-
return new APIPromise($
|
|
50879
|
+
return new APIPromise($do49(client, request, options));
|
|
49902
50880
|
}
|
|
49903
|
-
async function $
|
|
50881
|
+
async function $do49(client, request, options) {
|
|
49904
50882
|
const parsed = safeParse(request, (value) => ListVendorCreditsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49905
50883
|
if (!parsed.ok) {
|
|
49906
50884
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -50014,12 +50992,12 @@ var init_vendorsListVendorCredits = __esm(() => {
|
|
|
50014
50992
|
});
|
|
50015
50993
|
|
|
50016
50994
|
// src/mcp-server/tools/vendorsListVendorCredits.ts
|
|
50017
|
-
var
|
|
50995
|
+
var args47, tool$vendorsListVendorCredits;
|
|
50018
50996
|
var init_vendorsListVendorCredits2 = __esm(() => {
|
|
50019
50997
|
init_vendorsListVendorCredits();
|
|
50020
50998
|
init_operations();
|
|
50021
50999
|
init_tools();
|
|
50022
|
-
|
|
51000
|
+
args47 = {
|
|
50023
51001
|
request: ListVendorCreditsRequest$inboundSchema
|
|
50024
51002
|
};
|
|
50025
51003
|
tool$vendorsListVendorCredits = {
|
|
@@ -50027,9 +51005,9 @@ var init_vendorsListVendorCredits2 = __esm(() => {
|
|
|
50027
51005
|
description: `List vendor credits
|
|
50028
51006
|
|
|
50029
51007
|
List the credits for the vendor`,
|
|
50030
|
-
args:
|
|
50031
|
-
tool: async (client,
|
|
50032
|
-
const [result, apiCall] = await vendorsListVendorCredits(client,
|
|
51008
|
+
args: args47,
|
|
51009
|
+
tool: async (client, args48, ctx) => {
|
|
51010
|
+
const [result, apiCall] = await vendorsListVendorCredits(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50033
51011
|
if (!result.ok) {
|
|
50034
51012
|
return {
|
|
50035
51013
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50044,9 +51022,9 @@ List the credits for the vendor`,
|
|
|
50044
51022
|
|
|
50045
51023
|
// src/funcs/vendorsListVendorFacilityStatuses.ts
|
|
50046
51024
|
function vendorsListVendorFacilityStatuses(client, request, options) {
|
|
50047
|
-
return new APIPromise($
|
|
51025
|
+
return new APIPromise($do50(client, request, options));
|
|
50048
51026
|
}
|
|
50049
|
-
async function $
|
|
51027
|
+
async function $do50(client, request, options) {
|
|
50050
51028
|
const parsed = safeParse(request, (value) => ListVendorFacilityStatusesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50051
51029
|
if (!parsed.ok) {
|
|
50052
51030
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -50164,12 +51142,12 @@ var init_vendorsListVendorFacilityStatuses = __esm(() => {
|
|
|
50164
51142
|
});
|
|
50165
51143
|
|
|
50166
51144
|
// src/mcp-server/tools/vendorsListVendorFacilityStatuses.ts
|
|
50167
|
-
var
|
|
51145
|
+
var args48, tool$vendorsListVendorFacilityStatuses;
|
|
50168
51146
|
var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
|
|
50169
51147
|
init_vendorsListVendorFacilityStatuses();
|
|
50170
51148
|
init_operations();
|
|
50171
51149
|
init_tools();
|
|
50172
|
-
|
|
51150
|
+
args48 = {
|
|
50173
51151
|
request: ListVendorFacilityStatusesRequest$inboundSchema
|
|
50174
51152
|
};
|
|
50175
51153
|
tool$vendorsListVendorFacilityStatuses = {
|
|
@@ -50177,9 +51155,9 @@ var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
|
|
|
50177
51155
|
description: `List vendor facility statuses
|
|
50178
51156
|
|
|
50179
51157
|
List the facilities for the vendor`,
|
|
50180
|
-
args:
|
|
50181
|
-
tool: async (client,
|
|
50182
|
-
const [result, apiCall] = await vendorsListVendorFacilityStatuses(client,
|
|
51158
|
+
args: args48,
|
|
51159
|
+
tool: async (client, args49, ctx) => {
|
|
51160
|
+
const [result, apiCall] = await vendorsListVendorFacilityStatuses(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50183
51161
|
if (!result.ok) {
|
|
50184
51162
|
return {
|
|
50185
51163
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50194,9 +51172,9 @@ List the facilities for the vendor`,
|
|
|
50194
51172
|
|
|
50195
51173
|
// src/funcs/vendorsListVendorInvoices.ts
|
|
50196
51174
|
function vendorsListVendorInvoices(client, request, options) {
|
|
50197
|
-
return new APIPromise($
|
|
51175
|
+
return new APIPromise($do51(client, request, options));
|
|
50198
51176
|
}
|
|
50199
|
-
async function $
|
|
51177
|
+
async function $do51(client, request, options) {
|
|
50200
51178
|
const parsed = safeParse(request, (value) => ListVendorInvoicesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50201
51179
|
if (!parsed.ok) {
|
|
50202
51180
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -50314,12 +51292,12 @@ var init_vendorsListVendorInvoices = __esm(() => {
|
|
|
50314
51292
|
});
|
|
50315
51293
|
|
|
50316
51294
|
// src/mcp-server/tools/vendorsListVendorInvoices.ts
|
|
50317
|
-
var
|
|
51295
|
+
var args49, tool$vendorsListVendorInvoices;
|
|
50318
51296
|
var init_vendorsListVendorInvoices2 = __esm(() => {
|
|
50319
51297
|
init_vendorsListVendorInvoices();
|
|
50320
51298
|
init_operations();
|
|
50321
51299
|
init_tools();
|
|
50322
|
-
|
|
51300
|
+
args49 = {
|
|
50323
51301
|
request: ListVendorInvoicesRequest$inboundSchema
|
|
50324
51302
|
};
|
|
50325
51303
|
tool$vendorsListVendorInvoices = {
|
|
@@ -50331,9 +51309,9 @@ List invoices for Vendors
|
|
|
50331
51309
|
Available \`expand\` scopes are:
|
|
50332
51310
|
|
|
50333
51311
|
invoice.line_items`,
|
|
50334
|
-
args:
|
|
50335
|
-
tool: async (client,
|
|
50336
|
-
const [result, apiCall] = await vendorsListVendorInvoices(client,
|
|
51312
|
+
args: args49,
|
|
51313
|
+
tool: async (client, args50, ctx) => {
|
|
51314
|
+
const [result, apiCall] = await vendorsListVendorInvoices(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50337
51315
|
if (!result.ok) {
|
|
50338
51316
|
return {
|
|
50339
51317
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50348,9 +51326,9 @@ invoice.line_items`,
|
|
|
50348
51326
|
|
|
50349
51327
|
// src/funcs/vendorsListVendorJobTitles.ts
|
|
50350
51328
|
function vendorsListVendorJobTitles(client, request, options) {
|
|
50351
|
-
return new APIPromise($
|
|
51329
|
+
return new APIPromise($do52(client, request, options));
|
|
50352
51330
|
}
|
|
50353
|
-
async function $
|
|
51331
|
+
async function $do52(client, request, options) {
|
|
50354
51332
|
const parsed = safeParse(request, (value) => ListVendorJobTitlesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50355
51333
|
if (!parsed.ok) {
|
|
50356
51334
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -50459,12 +51437,12 @@ var init_vendorsListVendorJobTitles = __esm(() => {
|
|
|
50459
51437
|
});
|
|
50460
51438
|
|
|
50461
51439
|
// src/mcp-server/tools/vendorsListVendorJobTitles.ts
|
|
50462
|
-
var
|
|
51440
|
+
var args50, tool$vendorsListVendorJobTitles;
|
|
50463
51441
|
var init_vendorsListVendorJobTitles2 = __esm(() => {
|
|
50464
51442
|
init_vendorsListVendorJobTitles();
|
|
50465
51443
|
init_operations();
|
|
50466
51444
|
init_tools();
|
|
50467
|
-
|
|
51445
|
+
args50 = {
|
|
50468
51446
|
request: ListVendorJobTitlesRequest$inboundSchema
|
|
50469
51447
|
};
|
|
50470
51448
|
tool$vendorsListVendorJobTitles = {
|
|
@@ -50472,9 +51450,9 @@ var init_vendorsListVendorJobTitles2 = __esm(() => {
|
|
|
50472
51450
|
description: `List vendor job titles
|
|
50473
51451
|
|
|
50474
51452
|
List valid job titles for Vendors. This can be used during sign up or in a filter.`,
|
|
50475
|
-
args:
|
|
50476
|
-
tool: async (client,
|
|
50477
|
-
const [result, apiCall] = await vendorsListVendorJobTitles(client,
|
|
51453
|
+
args: args50,
|
|
51454
|
+
tool: async (client, args51, ctx) => {
|
|
51455
|
+
const [result, apiCall] = await vendorsListVendorJobTitles(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50478
51456
|
if (!result.ok) {
|
|
50479
51457
|
return {
|
|
50480
51458
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50489,9 +51467,9 @@ List valid job titles for Vendors. This can be used during sign up or in a filte
|
|
|
50489
51467
|
|
|
50490
51468
|
// src/funcs/vendorsListVendorManagedByCompanies.ts
|
|
50491
51469
|
function vendorsListVendorManagedByCompanies(client, request, options) {
|
|
50492
|
-
return new APIPromise($
|
|
51470
|
+
return new APIPromise($do53(client, request, options));
|
|
50493
51471
|
}
|
|
50494
|
-
async function $
|
|
51472
|
+
async function $do53(client, request, options) {
|
|
50495
51473
|
const parsed = safeParse(request, (value) => ListVendorManagedByCompaniesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50496
51474
|
if (!parsed.ok) {
|
|
50497
51475
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -50605,12 +51583,12 @@ var init_vendorsListVendorManagedByCompanies = __esm(() => {
|
|
|
50605
51583
|
});
|
|
50606
51584
|
|
|
50607
51585
|
// src/mcp-server/tools/vendorsListVendorManagedByCompanies.ts
|
|
50608
|
-
var
|
|
51586
|
+
var args51, tool$vendorsListVendorManagedByCompanies;
|
|
50609
51587
|
var init_vendorsListVendorManagedByCompanies2 = __esm(() => {
|
|
50610
51588
|
init_vendorsListVendorManagedByCompanies();
|
|
50611
51589
|
init_operations();
|
|
50612
51590
|
init_tools();
|
|
50613
|
-
|
|
51591
|
+
args51 = {
|
|
50614
51592
|
request: ListVendorManagedByCompaniesRequest$inboundSchema
|
|
50615
51593
|
};
|
|
50616
51594
|
tool$vendorsListVendorManagedByCompanies = {
|
|
@@ -50618,9 +51596,9 @@ var init_vendorsListVendorManagedByCompanies2 = __esm(() => {
|
|
|
50618
51596
|
description: `List of companies managing the vendor
|
|
50619
51597
|
|
|
50620
51598
|
List of companies managing the vendor`,
|
|
50621
|
-
args:
|
|
50622
|
-
tool: async (client,
|
|
50623
|
-
const [result, apiCall] = await vendorsListVendorManagedByCompanies(client,
|
|
51599
|
+
args: args51,
|
|
51600
|
+
tool: async (client, args52, ctx) => {
|
|
51601
|
+
const [result, apiCall] = await vendorsListVendorManagedByCompanies(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50624
51602
|
if (!result.ok) {
|
|
50625
51603
|
return {
|
|
50626
51604
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50635,9 +51613,9 @@ List of companies managing the vendor`,
|
|
|
50635
51613
|
|
|
50636
51614
|
// src/funcs/vendorsListVendorScrubDetails.ts
|
|
50637
51615
|
function vendorsListVendorScrubDetails(client, request, options) {
|
|
50638
|
-
return new APIPromise($
|
|
51616
|
+
return new APIPromise($do54(client, request, options));
|
|
50639
51617
|
}
|
|
50640
|
-
async function $
|
|
51618
|
+
async function $do54(client, request, options) {
|
|
50641
51619
|
const parsed = safeParse(request, (value) => ListVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50642
51620
|
if (!parsed.ok) {
|
|
50643
51621
|
return [parsed, { status: "invalid" }];
|
|
@@ -50697,56 +51675,202 @@ async function $do51(client, request, options) {
|
|
|
50697
51675
|
if (!result.ok) {
|
|
50698
51676
|
return [result, { status: "complete", request: req, response }];
|
|
50699
51677
|
}
|
|
50700
|
-
return [result, { status: "complete", request: req, response }];
|
|
51678
|
+
return [result, { status: "complete", request: req, response }];
|
|
51679
|
+
}
|
|
51680
|
+
var init_vendorsListVendorScrubDetails = __esm(() => {
|
|
51681
|
+
init_encodings();
|
|
51682
|
+
init_matchers();
|
|
51683
|
+
init_primitives();
|
|
51684
|
+
init_schemas();
|
|
51685
|
+
init_security();
|
|
51686
|
+
init_url();
|
|
51687
|
+
init_components();
|
|
51688
|
+
init_errors2();
|
|
51689
|
+
init_operations();
|
|
51690
|
+
init_async();
|
|
51691
|
+
});
|
|
51692
|
+
|
|
51693
|
+
// src/mcp-server/tools/vendorsListVendorScrubDetails.ts
|
|
51694
|
+
var args52, tool$vendorsListVendorScrubDetails;
|
|
51695
|
+
var init_vendorsListVendorScrubDetails2 = __esm(() => {
|
|
51696
|
+
init_vendorsListVendorScrubDetails();
|
|
51697
|
+
init_operations();
|
|
51698
|
+
init_tools();
|
|
51699
|
+
args52 = {
|
|
51700
|
+
request: ListVendorScrubDetailsRequest$inboundSchema
|
|
51701
|
+
};
|
|
51702
|
+
tool$vendorsListVendorScrubDetails = {
|
|
51703
|
+
name: "vendors-list-vendor-scrub-details",
|
|
51704
|
+
description: `List vendor scrub details
|
|
51705
|
+
|
|
51706
|
+
List vendor scrub details`,
|
|
51707
|
+
args: args52,
|
|
51708
|
+
tool: async (client, args53, ctx) => {
|
|
51709
|
+
const [result, apiCall] = await vendorsListVendorScrubDetails(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51710
|
+
if (!result.ok) {
|
|
51711
|
+
return {
|
|
51712
|
+
content: [{ type: "text", text: result.error.message }],
|
|
51713
|
+
isError: true
|
|
51714
|
+
};
|
|
51715
|
+
}
|
|
51716
|
+
const value = result.value;
|
|
51717
|
+
return formatResult(value, apiCall);
|
|
51718
|
+
}
|
|
51719
|
+
};
|
|
51720
|
+
});
|
|
51721
|
+
|
|
51722
|
+
// src/funcs/vendorsListVendorScrubPackages.ts
|
|
51723
|
+
function vendorsListVendorScrubPackages(client, request, options) {
|
|
51724
|
+
return new APIPromise($do55(client, request, options));
|
|
51725
|
+
}
|
|
51726
|
+
async function $do55(client, request, options) {
|
|
51727
|
+
const parsed = safeParse(request, (value) => ListVendorScrubPackagesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51728
|
+
if (!parsed.ok) {
|
|
51729
|
+
return [haltIterator(parsed), { status: "invalid" }];
|
|
51730
|
+
}
|
|
51731
|
+
const payload = parsed.value;
|
|
51732
|
+
const body = null;
|
|
51733
|
+
const pathParams = {
|
|
51734
|
+
vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
|
|
51735
|
+
explode: false,
|
|
51736
|
+
charEncoding: "percent"
|
|
51737
|
+
})
|
|
51738
|
+
};
|
|
51739
|
+
const path = pathToFunc("/vendors/{vendor_id_or_me}/scrub_packages")(pathParams);
|
|
51740
|
+
const query = encodeFormQuery({
|
|
51741
|
+
desc: payload.desc,
|
|
51742
|
+
items_per_page: payload.items_per_page,
|
|
51743
|
+
page: payload.page,
|
|
51744
|
+
sort: payload.sort
|
|
51745
|
+
});
|
|
51746
|
+
const headers = new Headers(compactMap({
|
|
51747
|
+
Accept: "application/json"
|
|
51748
|
+
}));
|
|
51749
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
51750
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
51751
|
+
const context = {
|
|
51752
|
+
options: client._options,
|
|
51753
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
51754
|
+
operationID: "listVendorScrubPackages",
|
|
51755
|
+
oAuth2Scopes: [],
|
|
51756
|
+
resolvedSecurity: requestSecurity,
|
|
51757
|
+
securitySource: client._options.security,
|
|
51758
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
51759
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
51760
|
+
};
|
|
51761
|
+
const requestRes = client._createRequest(context, {
|
|
51762
|
+
security: requestSecurity,
|
|
51763
|
+
method: "GET",
|
|
51764
|
+
baseURL: options?.serverURL,
|
|
51765
|
+
path,
|
|
51766
|
+
headers,
|
|
51767
|
+
query,
|
|
51768
|
+
body,
|
|
51769
|
+
userAgent: client._options.userAgent,
|
|
51770
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
51771
|
+
}, options);
|
|
51772
|
+
if (!requestRes.ok) {
|
|
51773
|
+
return [haltIterator(requestRes), { status: "invalid" }];
|
|
51774
|
+
}
|
|
51775
|
+
const req = requestRes.value;
|
|
51776
|
+
const doResult = await client._do(req, {
|
|
51777
|
+
context,
|
|
51778
|
+
errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
|
|
51779
|
+
retryConfig: context.retryConfig,
|
|
51780
|
+
retryCodes: context.retryCodes
|
|
51781
|
+
});
|
|
51782
|
+
if (!doResult.ok) {
|
|
51783
|
+
return [haltIterator(doResult), { status: "request-error", request: req }];
|
|
51784
|
+
}
|
|
51785
|
+
const response = doResult.value;
|
|
51786
|
+
const responseFields = {
|
|
51787
|
+
HttpMeta: { Response: response, Request: req }
|
|
51788
|
+
};
|
|
51789
|
+
const [result, raw] = await match(json(200, ListVendorScrubPackagesResponse$inboundSchema, {
|
|
51790
|
+
key: "Result"
|
|
51791
|
+
}), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
51792
|
+
if (!result.ok) {
|
|
51793
|
+
return [haltIterator(result), {
|
|
51794
|
+
status: "complete",
|
|
51795
|
+
request: req,
|
|
51796
|
+
response
|
|
51797
|
+
}];
|
|
51798
|
+
}
|
|
51799
|
+
const nextFunc = (responseData) => {
|
|
51800
|
+
const page2 = request?.page ?? 1;
|
|
51801
|
+
const nextPage = page2 + 1;
|
|
51802
|
+
if (!responseData) {
|
|
51803
|
+
return { next: () => null };
|
|
51804
|
+
}
|
|
51805
|
+
const results = dlv(responseData, "items");
|
|
51806
|
+
if (!Array.isArray(results) || !results.length) {
|
|
51807
|
+
return { next: () => null };
|
|
51808
|
+
}
|
|
51809
|
+
const limit = request?.itemsPerPage ?? 0;
|
|
51810
|
+
if (results.length < limit) {
|
|
51811
|
+
return { next: () => null };
|
|
51812
|
+
}
|
|
51813
|
+
const nextVal = () => vendorsListVendorScrubPackages(client, {
|
|
51814
|
+
...request,
|
|
51815
|
+
page: nextPage
|
|
51816
|
+
}, options);
|
|
51817
|
+
return { next: nextVal, "~next": { page: nextPage } };
|
|
51818
|
+
};
|
|
51819
|
+
const page = { ...result, ...nextFunc(raw) };
|
|
51820
|
+
return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
|
|
51821
|
+
status: "complete",
|
|
51822
|
+
request: req,
|
|
51823
|
+
response
|
|
51824
|
+
}];
|
|
50701
51825
|
}
|
|
50702
|
-
var
|
|
51826
|
+
var init_vendorsListVendorScrubPackages = __esm(() => {
|
|
50703
51827
|
init_encodings();
|
|
50704
51828
|
init_matchers();
|
|
50705
51829
|
init_primitives();
|
|
50706
51830
|
init_schemas();
|
|
50707
51831
|
init_security();
|
|
50708
51832
|
init_url();
|
|
50709
|
-
init_components();
|
|
50710
51833
|
init_errors2();
|
|
50711
51834
|
init_operations();
|
|
50712
51835
|
init_async();
|
|
51836
|
+
init_operations2();
|
|
50713
51837
|
});
|
|
50714
51838
|
|
|
50715
|
-
// src/mcp-server/tools/
|
|
50716
|
-
var
|
|
50717
|
-
var
|
|
50718
|
-
|
|
51839
|
+
// src/mcp-server/tools/vendorsListVendorScrubPackages.ts
|
|
51840
|
+
var args53, tool$vendorsListVendorScrubPackages;
|
|
51841
|
+
var init_vendorsListVendorScrubPackages2 = __esm(() => {
|
|
51842
|
+
init_vendorsListVendorScrubPackages();
|
|
50719
51843
|
init_operations();
|
|
50720
51844
|
init_tools();
|
|
50721
|
-
|
|
50722
|
-
request:
|
|
51845
|
+
args53 = {
|
|
51846
|
+
request: ListVendorScrubPackagesRequest$inboundSchema
|
|
50723
51847
|
};
|
|
50724
|
-
tool$
|
|
50725
|
-
name: "vendors-list-vendor-scrub-
|
|
50726
|
-
description: `List vendor scrub
|
|
51848
|
+
tool$vendorsListVendorScrubPackages = {
|
|
51849
|
+
name: "vendors-list-vendor-scrub-packages",
|
|
51850
|
+
description: `List vendor scrub packages
|
|
50727
51851
|
|
|
50728
|
-
List vendor scrub
|
|
50729
|
-
args:
|
|
50730
|
-
tool: async (client,
|
|
50731
|
-
const [result, apiCall] = await
|
|
51852
|
+
List vendor scrub packages`,
|
|
51853
|
+
args: args53,
|
|
51854
|
+
tool: async (client, args54, ctx) => {
|
|
51855
|
+
const [result, apiCall] = await vendorsListVendorScrubPackages(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50732
51856
|
if (!result.ok) {
|
|
50733
51857
|
return {
|
|
50734
51858
|
content: [{ type: "text", text: result.error.message }],
|
|
50735
51859
|
isError: true
|
|
50736
51860
|
};
|
|
50737
51861
|
}
|
|
50738
|
-
const value = result.value;
|
|
51862
|
+
const value = result.value.result;
|
|
50739
51863
|
return formatResult(value, apiCall);
|
|
50740
51864
|
}
|
|
50741
51865
|
};
|
|
50742
51866
|
});
|
|
50743
51867
|
|
|
50744
|
-
// src/funcs/
|
|
50745
|
-
function
|
|
50746
|
-
return new APIPromise($
|
|
51868
|
+
// src/funcs/vendorsListVendorScrubPurchases.ts
|
|
51869
|
+
function vendorsListVendorScrubPurchases(client, request, options) {
|
|
51870
|
+
return new APIPromise($do56(client, request, options));
|
|
50747
51871
|
}
|
|
50748
|
-
async function $
|
|
50749
|
-
const parsed = safeParse(request, (value) =>
|
|
51872
|
+
async function $do56(client, request, options) {
|
|
51873
|
+
const parsed = safeParse(request, (value) => ListVendorScrubPurchasesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50750
51874
|
if (!parsed.ok) {
|
|
50751
51875
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
50752
51876
|
}
|
|
@@ -50758,7 +51882,7 @@ async function $do52(client, request, options) {
|
|
|
50758
51882
|
charEncoding: "percent"
|
|
50759
51883
|
})
|
|
50760
51884
|
};
|
|
50761
|
-
const path = pathToFunc("/vendors/{vendor_id_or_me}/
|
|
51885
|
+
const path = pathToFunc("/vendors/{vendor_id_or_me}/scrub_purchases")(pathParams);
|
|
50762
51886
|
const query = encodeFormQuery({
|
|
50763
51887
|
desc: payload.desc,
|
|
50764
51888
|
items_per_page: payload.items_per_page,
|
|
@@ -50773,7 +51897,7 @@ async function $do52(client, request, options) {
|
|
|
50773
51897
|
const context = {
|
|
50774
51898
|
options: client._options,
|
|
50775
51899
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
50776
|
-
operationID: "
|
|
51900
|
+
operationID: "listVendorScrubPurchases",
|
|
50777
51901
|
oAuth2Scopes: [],
|
|
50778
51902
|
resolvedSecurity: requestSecurity,
|
|
50779
51903
|
securitySource: client._options.security,
|
|
@@ -50808,7 +51932,7 @@ async function $do52(client, request, options) {
|
|
|
50808
51932
|
const responseFields = {
|
|
50809
51933
|
HttpMeta: { Response: response, Request: req }
|
|
50810
51934
|
};
|
|
50811
|
-
const [result, raw] = await match(json(200,
|
|
51935
|
+
const [result, raw] = await match(json(200, ListVendorScrubPurchasesResponse$inboundSchema, {
|
|
50812
51936
|
key: "Result"
|
|
50813
51937
|
}), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
50814
51938
|
if (!result.ok) {
|
|
@@ -50832,7 +51956,7 @@ async function $do52(client, request, options) {
|
|
|
50832
51956
|
if (results.length < limit) {
|
|
50833
51957
|
return { next: () => null };
|
|
50834
51958
|
}
|
|
50835
|
-
const nextVal = () =>
|
|
51959
|
+
const nextVal = () => vendorsListVendorScrubPurchases(client, {
|
|
50836
51960
|
...request,
|
|
50837
51961
|
page: nextPage
|
|
50838
51962
|
}, options);
|
|
@@ -50845,7 +51969,7 @@ async function $do52(client, request, options) {
|
|
|
50845
51969
|
response
|
|
50846
51970
|
}];
|
|
50847
51971
|
}
|
|
50848
|
-
var
|
|
51972
|
+
var init_vendorsListVendorScrubPurchases = __esm(() => {
|
|
50849
51973
|
init_encodings();
|
|
50850
51974
|
init_matchers();
|
|
50851
51975
|
init_primitives();
|
|
@@ -50858,23 +51982,23 @@ var init_vendorsListVendorScrubPackages = __esm(() => {
|
|
|
50858
51982
|
init_operations2();
|
|
50859
51983
|
});
|
|
50860
51984
|
|
|
50861
|
-
// src/mcp-server/tools/
|
|
50862
|
-
var
|
|
50863
|
-
var
|
|
50864
|
-
|
|
51985
|
+
// src/mcp-server/tools/vendorsListVendorScrubPurchases.ts
|
|
51986
|
+
var args54, tool$vendorsListVendorScrubPurchases;
|
|
51987
|
+
var init_vendorsListVendorScrubPurchases2 = __esm(() => {
|
|
51988
|
+
init_vendorsListVendorScrubPurchases();
|
|
50865
51989
|
init_operations();
|
|
50866
51990
|
init_tools();
|
|
50867
|
-
|
|
50868
|
-
request:
|
|
51991
|
+
args54 = {
|
|
51992
|
+
request: ListVendorScrubPurchasesRequest$inboundSchema
|
|
50869
51993
|
};
|
|
50870
|
-
tool$
|
|
50871
|
-
name: "vendors-list-vendor-scrub-
|
|
50872
|
-
description: `List vendor scrub
|
|
51994
|
+
tool$vendorsListVendorScrubPurchases = {
|
|
51995
|
+
name: "vendors-list-vendor-scrub-purchases",
|
|
51996
|
+
description: `List vendor scrub purchases
|
|
50873
51997
|
|
|
50874
|
-
List vendor scrub
|
|
50875
|
-
args:
|
|
50876
|
-
tool: async (client,
|
|
50877
|
-
const [result, apiCall] = await
|
|
51998
|
+
List vendor scrub purchases`,
|
|
51999
|
+
args: args54,
|
|
52000
|
+
tool: async (client, args55, ctx) => {
|
|
52001
|
+
const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50878
52002
|
if (!result.ok) {
|
|
50879
52003
|
return {
|
|
50880
52004
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50887,24 +52011,18 @@ List vendor scrub packages`,
|
|
|
50887
52011
|
};
|
|
50888
52012
|
});
|
|
50889
52013
|
|
|
50890
|
-
// src/funcs/
|
|
50891
|
-
function
|
|
50892
|
-
return new APIPromise($
|
|
52014
|
+
// src/funcs/vendorsListVendorTypes.ts
|
|
52015
|
+
function vendorsListVendorTypes(client, request, options) {
|
|
52016
|
+
return new APIPromise($do57(client, request, options));
|
|
50893
52017
|
}
|
|
50894
|
-
async function $
|
|
50895
|
-
const parsed = safeParse(request, (value) =>
|
|
52018
|
+
async function $do57(client, request, options) {
|
|
52019
|
+
const parsed = safeParse(request, (value) => ListVendorTypesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50896
52020
|
if (!parsed.ok) {
|
|
50897
52021
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
50898
52022
|
}
|
|
50899
52023
|
const payload = parsed.value;
|
|
50900
52024
|
const body = null;
|
|
50901
|
-
const
|
|
50902
|
-
vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
|
|
50903
|
-
explode: false,
|
|
50904
|
-
charEncoding: "percent"
|
|
50905
|
-
})
|
|
50906
|
-
};
|
|
50907
|
-
const path = pathToFunc("/vendors/{vendor_id_or_me}/scrub_purchases")(pathParams);
|
|
52025
|
+
const path = pathToFunc("/vendors/types")();
|
|
50908
52026
|
const query = encodeFormQuery({
|
|
50909
52027
|
desc: payload.desc,
|
|
50910
52028
|
items_per_page: payload.items_per_page,
|
|
@@ -50919,7 +52037,7 @@ async function $do53(client, request, options) {
|
|
|
50919
52037
|
const context = {
|
|
50920
52038
|
options: client._options,
|
|
50921
52039
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
50922
|
-
operationID: "
|
|
52040
|
+
operationID: "listVendorTypes",
|
|
50923
52041
|
oAuth2Scopes: [],
|
|
50924
52042
|
resolvedSecurity: requestSecurity,
|
|
50925
52043
|
securitySource: client._options.security,
|
|
@@ -50943,7 +52061,7 @@ async function $do53(client, request, options) {
|
|
|
50943
52061
|
const req = requestRes.value;
|
|
50944
52062
|
const doResult = await client._do(req, {
|
|
50945
52063
|
context,
|
|
50946
|
-
errorCodes: ["
|
|
52064
|
+
errorCodes: ["403", "4XX", "500", "5XX"],
|
|
50947
52065
|
retryConfig: context.retryConfig,
|
|
50948
52066
|
retryCodes: context.retryCodes
|
|
50949
52067
|
});
|
|
@@ -50954,9 +52072,9 @@ async function $do53(client, request, options) {
|
|
|
50954
52072
|
const responseFields = {
|
|
50955
52073
|
HttpMeta: { Response: response, Request: req }
|
|
50956
52074
|
};
|
|
50957
|
-
const [result, raw] = await match(json(200,
|
|
52075
|
+
const [result, raw] = await match(json(200, ListVendorTypesResponse$inboundSchema, {
|
|
50958
52076
|
key: "Result"
|
|
50959
|
-
}), jsonErr(
|
|
52077
|
+
}), jsonErr(403, ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
50960
52078
|
if (!result.ok) {
|
|
50961
52079
|
return [haltIterator(result), {
|
|
50962
52080
|
status: "complete",
|
|
@@ -50978,7 +52096,7 @@ async function $do53(client, request, options) {
|
|
|
50978
52096
|
if (results.length < limit) {
|
|
50979
52097
|
return { next: () => null };
|
|
50980
52098
|
}
|
|
50981
|
-
const nextVal = () =>
|
|
52099
|
+
const nextVal = () => vendorsListVendorTypes(client, {
|
|
50982
52100
|
...request,
|
|
50983
52101
|
page: nextPage
|
|
50984
52102
|
}, options);
|
|
@@ -50991,7 +52109,7 @@ async function $do53(client, request, options) {
|
|
|
50991
52109
|
response
|
|
50992
52110
|
}];
|
|
50993
52111
|
}
|
|
50994
|
-
var
|
|
52112
|
+
var init_vendorsListVendorTypes = __esm(() => {
|
|
50995
52113
|
init_encodings();
|
|
50996
52114
|
init_matchers();
|
|
50997
52115
|
init_primitives();
|
|
@@ -51004,23 +52122,23 @@ var init_vendorsListVendorScrubPurchases = __esm(() => {
|
|
|
51004
52122
|
init_operations2();
|
|
51005
52123
|
});
|
|
51006
52124
|
|
|
51007
|
-
// src/mcp-server/tools/
|
|
51008
|
-
var
|
|
51009
|
-
var
|
|
51010
|
-
|
|
52125
|
+
// src/mcp-server/tools/vendorsListVendorTypes.ts
|
|
52126
|
+
var args55, tool$vendorsListVendorTypes;
|
|
52127
|
+
var init_vendorsListVendorTypes2 = __esm(() => {
|
|
52128
|
+
init_vendorsListVendorTypes();
|
|
51011
52129
|
init_operations();
|
|
51012
52130
|
init_tools();
|
|
51013
|
-
|
|
51014
|
-
request:
|
|
52131
|
+
args55 = {
|
|
52132
|
+
request: ListVendorTypesRequest$inboundSchema
|
|
51015
52133
|
};
|
|
51016
|
-
tool$
|
|
51017
|
-
name: "vendors-list-vendor-
|
|
51018
|
-
description: `List vendor
|
|
52134
|
+
tool$vendorsListVendorTypes = {
|
|
52135
|
+
name: "vendors-list-vendor-types",
|
|
52136
|
+
description: `List vendor types
|
|
51019
52137
|
|
|
51020
|
-
List vendor
|
|
51021
|
-
args:
|
|
51022
|
-
tool: async (client,
|
|
51023
|
-
const [result, apiCall] = await
|
|
52138
|
+
List vendor types.`,
|
|
52139
|
+
args: args55,
|
|
52140
|
+
tool: async (client, args56, ctx) => {
|
|
52141
|
+
const [result, apiCall] = await vendorsListVendorTypes(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51024
52142
|
if (!result.ok) {
|
|
51025
52143
|
return {
|
|
51026
52144
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51035,9 +52153,9 @@ List vendor scrub purchases`,
|
|
|
51035
52153
|
|
|
51036
52154
|
// src/funcs/vendorsPurchaseScrubCredits.ts
|
|
51037
52155
|
function vendorsPurchaseScrubCredits(client, request, options) {
|
|
51038
|
-
return new APIPromise($
|
|
52156
|
+
return new APIPromise($do58(client, request, options));
|
|
51039
52157
|
}
|
|
51040
|
-
async function $
|
|
52158
|
+
async function $do58(client, request, options) {
|
|
51041
52159
|
const parsed = safeParse(request, (value) => PurchaseScrubCreditsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51042
52160
|
if (!parsed.ok) {
|
|
51043
52161
|
return [parsed, { status: "invalid" }];
|
|
@@ -51113,12 +52231,12 @@ var init_vendorsPurchaseScrubCredits = __esm(() => {
|
|
|
51113
52231
|
});
|
|
51114
52232
|
|
|
51115
52233
|
// src/mcp-server/tools/vendorsPurchaseScrubCredits.ts
|
|
51116
|
-
var
|
|
52234
|
+
var args56, tool$vendorsPurchaseScrubCredits;
|
|
51117
52235
|
var init_vendorsPurchaseScrubCredits2 = __esm(() => {
|
|
51118
52236
|
init_vendorsPurchaseScrubCredits();
|
|
51119
52237
|
init_operations();
|
|
51120
52238
|
init_tools();
|
|
51121
|
-
|
|
52239
|
+
args56 = {
|
|
51122
52240
|
request: PurchaseScrubCreditsRequest$inboundSchema
|
|
51123
52241
|
};
|
|
51124
52242
|
tool$vendorsPurchaseScrubCredits = {
|
|
@@ -51126,9 +52244,9 @@ var init_vendorsPurchaseScrubCredits2 = __esm(() => {
|
|
|
51126
52244
|
description: `Purchase scrub credits
|
|
51127
52245
|
|
|
51128
52246
|
Purchase scrub credits`,
|
|
51129
|
-
args:
|
|
51130
|
-
tool: async (client,
|
|
51131
|
-
const [result, apiCall] = await vendorsPurchaseScrubCredits(client,
|
|
52247
|
+
args: args56,
|
|
52248
|
+
tool: async (client, args57, ctx) => {
|
|
52249
|
+
const [result, apiCall] = await vendorsPurchaseScrubCredits(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51132
52250
|
if (!result.ok) {
|
|
51133
52251
|
return {
|
|
51134
52252
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51143,9 +52261,9 @@ Purchase scrub credits`,
|
|
|
51143
52261
|
|
|
51144
52262
|
// src/funcs/vendorsSendDownloadCode.ts
|
|
51145
52263
|
function vendorsSendDownloadCode(client, request, options) {
|
|
51146
|
-
return new APIPromise($
|
|
52264
|
+
return new APIPromise($do59(client, request, options));
|
|
51147
52265
|
}
|
|
51148
|
-
async function $
|
|
52266
|
+
async function $do59(client, request, options) {
|
|
51149
52267
|
const parsed = safeParse(request, (value) => SendDownloadCodeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51150
52268
|
if (!parsed.ok) {
|
|
51151
52269
|
return [parsed, { status: "invalid" }];
|
|
@@ -51219,12 +52337,12 @@ var init_vendorsSendDownloadCode = __esm(() => {
|
|
|
51219
52337
|
});
|
|
51220
52338
|
|
|
51221
52339
|
// src/mcp-server/tools/vendorsSendDownloadCode.ts
|
|
51222
|
-
var
|
|
52340
|
+
var args57, tool$vendorsSendDownloadCode;
|
|
51223
52341
|
var init_vendorsSendDownloadCode2 = __esm(() => {
|
|
51224
52342
|
init_vendorsSendDownloadCode();
|
|
51225
52343
|
init_operations();
|
|
51226
52344
|
init_tools();
|
|
51227
|
-
|
|
52345
|
+
args57 = {
|
|
51228
52346
|
request: SendDownloadCodeRequest$inboundSchema
|
|
51229
52347
|
};
|
|
51230
52348
|
tool$vendorsSendDownloadCode = {
|
|
@@ -51232,9 +52350,9 @@ var init_vendorsSendDownloadCode2 = __esm(() => {
|
|
|
51232
52350
|
description: `Send download code for vendor credential
|
|
51233
52351
|
|
|
51234
52352
|
It will send download code for vendor credential`,
|
|
51235
|
-
args:
|
|
51236
|
-
tool: async (client,
|
|
51237
|
-
const [result, apiCall] = await vendorsSendDownloadCode(client,
|
|
52353
|
+
args: args57,
|
|
52354
|
+
tool: async (client, args58, ctx) => {
|
|
52355
|
+
const [result, apiCall] = await vendorsSendDownloadCode(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51238
52356
|
if (!result.ok) {
|
|
51239
52357
|
return {
|
|
51240
52358
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51249,9 +52367,9 @@ It will send download code for vendor credential`,
|
|
|
51249
52367
|
|
|
51250
52368
|
// src/funcs/vendorsSubmitVendorCredential.ts
|
|
51251
52369
|
function vendorsSubmitVendorCredential(client, request, options) {
|
|
51252
|
-
return new APIPromise($
|
|
52370
|
+
return new APIPromise($do60(client, request, options));
|
|
51253
52371
|
}
|
|
51254
|
-
async function $
|
|
52372
|
+
async function $do60(client, request, options) {
|
|
51255
52373
|
const parsed = safeParse(request, (value) => SubmitVendorCredentialRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51256
52374
|
if (!parsed.ok) {
|
|
51257
52375
|
return [parsed, { status: "invalid" }];
|
|
@@ -51325,12 +52443,12 @@ var init_vendorsSubmitVendorCredential = __esm(() => {
|
|
|
51325
52443
|
});
|
|
51326
52444
|
|
|
51327
52445
|
// src/mcp-server/tools/vendorsSubmitVendorCredential.ts
|
|
51328
|
-
var
|
|
52446
|
+
var args58, tool$vendorsSubmitVendorCredential;
|
|
51329
52447
|
var init_vendorsSubmitVendorCredential2 = __esm(() => {
|
|
51330
52448
|
init_vendorsSubmitVendorCredential();
|
|
51331
52449
|
init_operations();
|
|
51332
52450
|
init_tools();
|
|
51333
|
-
|
|
52451
|
+
args58 = {
|
|
51334
52452
|
request: SubmitVendorCredentialRequest$inboundSchema
|
|
51335
52453
|
};
|
|
51336
52454
|
tool$vendorsSubmitVendorCredential = {
|
|
@@ -51338,9 +52456,9 @@ var init_vendorsSubmitVendorCredential2 = __esm(() => {
|
|
|
51338
52456
|
description: `Submit vendor credential
|
|
51339
52457
|
|
|
51340
52458
|
It will submit vendor credential`,
|
|
51341
|
-
args:
|
|
51342
|
-
tool: async (client,
|
|
51343
|
-
const [result, apiCall] = await vendorsSubmitVendorCredential(client,
|
|
52459
|
+
args: args58,
|
|
52460
|
+
tool: async (client, args59, ctx) => {
|
|
52461
|
+
const [result, apiCall] = await vendorsSubmitVendorCredential(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51344
52462
|
if (!result.ok) {
|
|
51345
52463
|
return {
|
|
51346
52464
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51355,9 +52473,9 @@ It will submit vendor credential`,
|
|
|
51355
52473
|
|
|
51356
52474
|
// src/funcs/vendorsUpdateVendorCredentialData.ts
|
|
51357
52475
|
function vendorsUpdateVendorCredentialData(client, request, options) {
|
|
51358
|
-
return new APIPromise($
|
|
52476
|
+
return new APIPromise($do61(client, request, options));
|
|
51359
52477
|
}
|
|
51360
|
-
async function $
|
|
52478
|
+
async function $do61(client, request, options) {
|
|
51361
52479
|
const parsed = safeParse(request, (value) => UpdateVendorCredentialDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51362
52480
|
if (!parsed.ok) {
|
|
51363
52481
|
return [parsed, { status: "invalid" }];
|
|
@@ -51438,12 +52556,12 @@ var init_vendorsUpdateVendorCredentialData = __esm(() => {
|
|
|
51438
52556
|
});
|
|
51439
52557
|
|
|
51440
52558
|
// src/mcp-server/tools/vendorsUpdateVendorCredentialData.ts
|
|
51441
|
-
var
|
|
52559
|
+
var args59, tool$vendorsUpdateVendorCredentialData;
|
|
51442
52560
|
var init_vendorsUpdateVendorCredentialData2 = __esm(() => {
|
|
51443
52561
|
init_vendorsUpdateVendorCredentialData();
|
|
51444
52562
|
init_operations();
|
|
51445
52563
|
init_tools();
|
|
51446
|
-
|
|
52564
|
+
args59 = {
|
|
51447
52565
|
request: UpdateVendorCredentialDataRequest$inboundSchema
|
|
51448
52566
|
};
|
|
51449
52567
|
tool$vendorsUpdateVendorCredentialData = {
|
|
@@ -51451,9 +52569,9 @@ var init_vendorsUpdateVendorCredentialData2 = __esm(() => {
|
|
|
51451
52569
|
description: `Update vendor credential data
|
|
51452
52570
|
|
|
51453
52571
|
Update vendor credential data`,
|
|
51454
|
-
args:
|
|
51455
|
-
tool: async (client,
|
|
51456
|
-
const [result, apiCall] = await vendorsUpdateVendorCredentialData(client,
|
|
52572
|
+
args: args59,
|
|
52573
|
+
tool: async (client, args60, ctx) => {
|
|
52574
|
+
const [result, apiCall] = await vendorsUpdateVendorCredentialData(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51457
52575
|
if (!result.ok) {
|
|
51458
52576
|
return {
|
|
51459
52577
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51468,9 +52586,9 @@ Update vendor credential data`,
|
|
|
51468
52586
|
|
|
51469
52587
|
// src/funcs/vendorsUpdateVendorCredentialFile.ts
|
|
51470
52588
|
function vendorsUpdateVendorCredentialFile(client, request, options) {
|
|
51471
|
-
return new APIPromise($
|
|
52589
|
+
return new APIPromise($do62(client, request, options));
|
|
51472
52590
|
}
|
|
51473
|
-
async function $
|
|
52591
|
+
async function $do62(client, request, options) {
|
|
51474
52592
|
const parsed = safeParse(request, (value) => UpdateVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51475
52593
|
if (!parsed.ok) {
|
|
51476
52594
|
return [parsed, { status: "invalid" }];
|
|
@@ -51548,12 +52666,12 @@ var init_vendorsUpdateVendorCredentialFile = __esm(() => {
|
|
|
51548
52666
|
});
|
|
51549
52667
|
|
|
51550
52668
|
// src/mcp-server/tools/vendorsUpdateVendorCredentialFile.ts
|
|
51551
|
-
var
|
|
52669
|
+
var args60, tool$vendorsUpdateVendorCredentialFile;
|
|
51552
52670
|
var init_vendorsUpdateVendorCredentialFile2 = __esm(() => {
|
|
51553
52671
|
init_vendorsUpdateVendorCredentialFile();
|
|
51554
52672
|
init_operations();
|
|
51555
52673
|
init_tools();
|
|
51556
|
-
|
|
52674
|
+
args60 = {
|
|
51557
52675
|
request: UpdateVendorCredentialFileRequest$inboundSchema
|
|
51558
52676
|
};
|
|
51559
52677
|
tool$vendorsUpdateVendorCredentialFile = {
|
|
@@ -51561,9 +52679,9 @@ var init_vendorsUpdateVendorCredentialFile2 = __esm(() => {
|
|
|
51561
52679
|
description: `Update vendor credential file
|
|
51562
52680
|
|
|
51563
52681
|
It will update the vendor credential file properties`,
|
|
51564
|
-
args:
|
|
51565
|
-
tool: async (client,
|
|
51566
|
-
const [result, apiCall] = await vendorsUpdateVendorCredentialFile(client,
|
|
52682
|
+
args: args60,
|
|
52683
|
+
tool: async (client, args61, ctx) => {
|
|
52684
|
+
const [result, apiCall] = await vendorsUpdateVendorCredentialFile(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51567
52685
|
if (!result.ok) {
|
|
51568
52686
|
return {
|
|
51569
52687
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51578,9 +52696,9 @@ It will update the vendor credential file properties`,
|
|
|
51578
52696
|
|
|
51579
52697
|
// src/funcs/vendorsUpdateVendorDetails.ts
|
|
51580
52698
|
function vendorsUpdateVendorDetails(client, request, options) {
|
|
51581
|
-
return new APIPromise($
|
|
52699
|
+
return new APIPromise($do63(client, request, options));
|
|
51582
52700
|
}
|
|
51583
|
-
async function $
|
|
52701
|
+
async function $do63(client, request, options) {
|
|
51584
52702
|
const parsed = safeParse(request, (value) => UpdateVendorDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51585
52703
|
if (!parsed.ok) {
|
|
51586
52704
|
return [parsed, { status: "invalid" }];
|
|
@@ -51657,12 +52775,12 @@ var init_vendorsUpdateVendorDetails = __esm(() => {
|
|
|
51657
52775
|
});
|
|
51658
52776
|
|
|
51659
52777
|
// src/mcp-server/tools/vendorsUpdateVendorDetails.ts
|
|
51660
|
-
var
|
|
52778
|
+
var args61, tool$vendorsUpdateVendorDetails;
|
|
51661
52779
|
var init_vendorsUpdateVendorDetails2 = __esm(() => {
|
|
51662
52780
|
init_vendorsUpdateVendorDetails();
|
|
51663
52781
|
init_operations();
|
|
51664
52782
|
init_tools();
|
|
51665
|
-
|
|
52783
|
+
args61 = {
|
|
51666
52784
|
request: UpdateVendorDetailsRequest$inboundSchema
|
|
51667
52785
|
};
|
|
51668
52786
|
tool$vendorsUpdateVendorDetails = {
|
|
@@ -51670,9 +52788,9 @@ var init_vendorsUpdateVendorDetails2 = __esm(() => {
|
|
|
51670
52788
|
description: `Update vendor details
|
|
51671
52789
|
|
|
51672
52790
|
It will update the vendor details`,
|
|
51673
|
-
args:
|
|
51674
|
-
tool: async (client,
|
|
51675
|
-
const [result, apiCall] = await vendorsUpdateVendorDetails(client,
|
|
52791
|
+
args: args61,
|
|
52792
|
+
tool: async (client, args62, ctx) => {
|
|
52793
|
+
const [result, apiCall] = await vendorsUpdateVendorDetails(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51676
52794
|
if (!result.ok) {
|
|
51677
52795
|
return {
|
|
51678
52796
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51687,9 +52805,9 @@ It will update the vendor details`,
|
|
|
51687
52805
|
|
|
51688
52806
|
// src/funcs/vendorsUpdateVendorManagedByCompany.ts
|
|
51689
52807
|
function vendorsUpdateVendorManagedByCompany(client, request, options) {
|
|
51690
|
-
return new APIPromise($
|
|
52808
|
+
return new APIPromise($do64(client, request, options));
|
|
51691
52809
|
}
|
|
51692
|
-
async function $
|
|
52810
|
+
async function $do64(client, request, options) {
|
|
51693
52811
|
const parsed = safeParse(request, (value) => UpdateVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51694
52812
|
if (!parsed.ok) {
|
|
51695
52813
|
return [parsed, { status: "invalid" }];
|
|
@@ -51765,12 +52883,12 @@ var init_vendorsUpdateVendorManagedByCompany = __esm(() => {
|
|
|
51765
52883
|
});
|
|
51766
52884
|
|
|
51767
52885
|
// src/mcp-server/tools/vendorsUpdateVendorManagedByCompany.ts
|
|
51768
|
-
var
|
|
52886
|
+
var args62, tool$vendorsUpdateVendorManagedByCompany;
|
|
51769
52887
|
var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
|
|
51770
52888
|
init_vendorsUpdateVendorManagedByCompany();
|
|
51771
52889
|
init_operations();
|
|
51772
52890
|
init_tools();
|
|
51773
|
-
|
|
52891
|
+
args62 = {
|
|
51774
52892
|
request: UpdateVendorManagedByCompanyRequest$inboundSchema
|
|
51775
52893
|
};
|
|
51776
52894
|
tool$vendorsUpdateVendorManagedByCompany = {
|
|
@@ -51778,9 +52896,9 @@ var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
|
|
|
51778
52896
|
description: `Update vendor managed by company access rights
|
|
51779
52897
|
|
|
51780
52898
|
It will update the vendor managed by company access rights`,
|
|
51781
|
-
args:
|
|
51782
|
-
tool: async (client,
|
|
51783
|
-
const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client,
|
|
52899
|
+
args: args62,
|
|
52900
|
+
tool: async (client, args63, ctx) => {
|
|
52901
|
+
const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51784
52902
|
if (!result.ok) {
|
|
51785
52903
|
return {
|
|
51786
52904
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51795,9 +52913,9 @@ It will update the vendor managed by company access rights`,
|
|
|
51795
52913
|
|
|
51796
52914
|
// src/funcs/vendorsUpdateVendorScrubDetails.ts
|
|
51797
52915
|
function vendorsUpdateVendorScrubDetails(client, request, options) {
|
|
51798
|
-
return new APIPromise($
|
|
52916
|
+
return new APIPromise($do65(client, request, options));
|
|
51799
52917
|
}
|
|
51800
|
-
async function $
|
|
52918
|
+
async function $do65(client, request, options) {
|
|
51801
52919
|
const parsed = safeParse(request, (value) => UpdateVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51802
52920
|
if (!parsed.ok) {
|
|
51803
52921
|
return [parsed, { status: "invalid" }];
|
|
@@ -51874,12 +52992,12 @@ var init_vendorsUpdateVendorScrubDetails = __esm(() => {
|
|
|
51874
52992
|
});
|
|
51875
52993
|
|
|
51876
52994
|
// src/mcp-server/tools/vendorsUpdateVendorScrubDetails.ts
|
|
51877
|
-
var
|
|
52995
|
+
var args63, tool$vendorsUpdateVendorScrubDetails;
|
|
51878
52996
|
var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
|
|
51879
52997
|
init_vendorsUpdateVendorScrubDetails();
|
|
51880
52998
|
init_operations();
|
|
51881
52999
|
init_tools();
|
|
51882
|
-
|
|
53000
|
+
args63 = {
|
|
51883
53001
|
request: UpdateVendorScrubDetailsRequest$inboundSchema
|
|
51884
53002
|
};
|
|
51885
53003
|
tool$vendorsUpdateVendorScrubDetails = {
|
|
@@ -51887,9 +53005,9 @@ var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
|
|
|
51887
53005
|
description: `Update vendor scrub details
|
|
51888
53006
|
|
|
51889
53007
|
Update vendor scrub details`,
|
|
51890
|
-
args:
|
|
51891
|
-
tool: async (client,
|
|
51892
|
-
const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client,
|
|
53008
|
+
args: args63,
|
|
53009
|
+
tool: async (client, args64, ctx) => {
|
|
53010
|
+
const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51893
53011
|
if (!result.ok) {
|
|
51894
53012
|
return {
|
|
51895
53013
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51904,9 +53022,9 @@ Update vendor scrub details`,
|
|
|
51904
53022
|
|
|
51905
53023
|
// src/funcs/webhooksGetWebhookEndpoint.ts
|
|
51906
53024
|
function webhooksGetWebhookEndpoint(client, request, options) {
|
|
51907
|
-
return new APIPromise($
|
|
53025
|
+
return new APIPromise($do66(client, request, options));
|
|
51908
53026
|
}
|
|
51909
|
-
async function $
|
|
53027
|
+
async function $do66(client, request, options) {
|
|
51910
53028
|
const parsed = safeParse(request, (value) => GetWebhookEndpointRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51911
53029
|
if (!parsed.ok) {
|
|
51912
53030
|
return [parsed, { status: "invalid" }];
|
|
@@ -51982,12 +53100,12 @@ var init_webhooksGetWebhookEndpoint = __esm(() => {
|
|
|
51982
53100
|
});
|
|
51983
53101
|
|
|
51984
53102
|
// src/mcp-server/tools/webhooksGetWebhookEndpoint.ts
|
|
51985
|
-
var
|
|
53103
|
+
var args64, tool$webhooksGetWebhookEndpoint;
|
|
51986
53104
|
var init_webhooksGetWebhookEndpoint2 = __esm(() => {
|
|
51987
53105
|
init_webhooksGetWebhookEndpoint();
|
|
51988
53106
|
init_operations();
|
|
51989
53107
|
init_tools();
|
|
51990
|
-
|
|
53108
|
+
args64 = {
|
|
51991
53109
|
request: GetWebhookEndpointRequest$inboundSchema
|
|
51992
53110
|
};
|
|
51993
53111
|
tool$webhooksGetWebhookEndpoint = {
|
|
@@ -51995,9 +53113,9 @@ var init_webhooksGetWebhookEndpoint2 = __esm(() => {
|
|
|
51995
53113
|
description: `Retrieves the webhook endpoint with the given ID.
|
|
51996
53114
|
|
|
51997
53115
|
Returns the definition of a webhook endpoint by ID.`,
|
|
51998
|
-
args:
|
|
51999
|
-
tool: async (client,
|
|
52000
|
-
const [result, apiCall] = await webhooksGetWebhookEndpoint(client,
|
|
53116
|
+
args: args64,
|
|
53117
|
+
tool: async (client, args65, ctx) => {
|
|
53118
|
+
const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52001
53119
|
if (!result.ok) {
|
|
52002
53120
|
return {
|
|
52003
53121
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52012,9 +53130,9 @@ Returns the definition of a webhook endpoint by ID.`,
|
|
|
52012
53130
|
|
|
52013
53131
|
// src/funcs/webhooksListAllWebhookEndpoints.ts
|
|
52014
53132
|
function webhooksListAllWebhookEndpoints(client, request, options) {
|
|
52015
|
-
return new APIPromise($
|
|
53133
|
+
return new APIPromise($do67(client, request, options));
|
|
52016
53134
|
}
|
|
52017
|
-
async function $
|
|
53135
|
+
async function $do67(client, request, options) {
|
|
52018
53136
|
const parsed = safeParse(request, (value) => ListAllWebhookEndpointsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52019
53137
|
if (!parsed.ok) {
|
|
52020
53138
|
return [parsed, { status: "invalid" }];
|
|
@@ -52090,12 +53208,12 @@ var init_webhooksListAllWebhookEndpoints = __esm(() => {
|
|
|
52090
53208
|
});
|
|
52091
53209
|
|
|
52092
53210
|
// src/mcp-server/tools/webhooksListAllWebhookEndpoints.ts
|
|
52093
|
-
var
|
|
53211
|
+
var args65, tool$webhooksListAllWebhookEndpoints;
|
|
52094
53212
|
var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
|
|
52095
53213
|
init_webhooksListAllWebhookEndpoints();
|
|
52096
53214
|
init_operations();
|
|
52097
53215
|
init_tools();
|
|
52098
|
-
|
|
53216
|
+
args65 = {
|
|
52099
53217
|
request: ListAllWebhookEndpointsRequest$inboundSchema
|
|
52100
53218
|
};
|
|
52101
53219
|
tool$webhooksListAllWebhookEndpoints = {
|
|
@@ -52103,9 +53221,9 @@ var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
|
|
|
52103
53221
|
description: `List all webhook endpoints
|
|
52104
53222
|
|
|
52105
53223
|
Returns a list of your webhook endpoints.`,
|
|
52106
|
-
args:
|
|
52107
|
-
tool: async (client,
|
|
52108
|
-
const [result, apiCall] = await webhooksListAllWebhookEndpoints(client,
|
|
53224
|
+
args: args65,
|
|
53225
|
+
tool: async (client, args66, ctx) => {
|
|
53226
|
+
const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52109
53227
|
if (!result.ok) {
|
|
52110
53228
|
return {
|
|
52111
53229
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52120,9 +53238,9 @@ Returns a list of your webhook endpoints.`,
|
|
|
52120
53238
|
|
|
52121
53239
|
// src/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts
|
|
52122
53240
|
function webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, request, options) {
|
|
52123
|
-
return new APIPromise($
|
|
53241
|
+
return new APIPromise($do68(client, request, options));
|
|
52124
53242
|
}
|
|
52125
|
-
async function $
|
|
53243
|
+
async function $do68(client, request, options) {
|
|
52126
53244
|
const parsed = safeParse(request, (value) => UpdatesTheWebhookEndpointWithTheGivenIdRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52127
53245
|
if (!parsed.ok) {
|
|
52128
53246
|
return [parsed, { status: "invalid" }];
|
|
@@ -52199,12 +53317,12 @@ var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId = __esm(() => {
|
|
|
52199
53317
|
});
|
|
52200
53318
|
|
|
52201
53319
|
// src/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts
|
|
52202
|
-
var
|
|
53320
|
+
var args66, tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId;
|
|
52203
53321
|
var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId2 = __esm(() => {
|
|
52204
53322
|
init_webhooksUpdatesTheWebhookEndpointWithTheGivenId();
|
|
52205
53323
|
init_operations();
|
|
52206
53324
|
init_tools();
|
|
52207
|
-
|
|
53325
|
+
args66 = {
|
|
52208
53326
|
request: UpdatesTheWebhookEndpointWithTheGivenIdRequest$inboundSchema
|
|
52209
53327
|
};
|
|
52210
53328
|
tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId = {
|
|
@@ -52212,9 +53330,9 @@ var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId2 = __esm(() => {
|
|
|
52212
53330
|
description: `Updates the webhook endpoint with the given ID.
|
|
52213
53331
|
|
|
52214
53332
|
Updates the webhook endpoint with the given ID.`,
|
|
52215
|
-
args:
|
|
52216
|
-
tool: async (client,
|
|
52217
|
-
const [result, apiCall] = await webhooksUpdatesTheWebhookEndpointWithTheGivenId(client,
|
|
53333
|
+
args: args66,
|
|
53334
|
+
tool: async (client, args67, ctx) => {
|
|
53335
|
+
const [result, apiCall] = await webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52218
53336
|
if (!result.ok) {
|
|
52219
53337
|
return {
|
|
52220
53338
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52229,9 +53347,9 @@ Updates the webhook endpoint with the given ID.`,
|
|
|
52229
53347
|
|
|
52230
53348
|
// src/funcs/zonesGetSecurityZone.ts
|
|
52231
53349
|
function zonesGetSecurityZone(client, request, options) {
|
|
52232
|
-
return new APIPromise($
|
|
53350
|
+
return new APIPromise($do69(client, request, options));
|
|
52233
53351
|
}
|
|
52234
|
-
async function $
|
|
53352
|
+
async function $do69(client, request, options) {
|
|
52235
53353
|
const parsed = safeParse(request, (value) => GetSecurityZoneRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52236
53354
|
if (!parsed.ok) {
|
|
52237
53355
|
return [parsed, { status: "invalid" }];
|
|
@@ -52311,12 +53429,12 @@ var init_zonesGetSecurityZone = __esm(() => {
|
|
|
52311
53429
|
});
|
|
52312
53430
|
|
|
52313
53431
|
// src/mcp-server/tools/zonesGetSecurityZone.ts
|
|
52314
|
-
var
|
|
53432
|
+
var args67, tool$zonesGetSecurityZone;
|
|
52315
53433
|
var init_zonesGetSecurityZone2 = __esm(() => {
|
|
52316
53434
|
init_zonesGetSecurityZone();
|
|
52317
53435
|
init_operations();
|
|
52318
53436
|
init_tools();
|
|
52319
|
-
|
|
53437
|
+
args67 = {
|
|
52320
53438
|
request: GetSecurityZoneRequest$inboundSchema
|
|
52321
53439
|
};
|
|
52322
53440
|
tool$zonesGetSecurityZone = {
|
|
@@ -52330,9 +53448,9 @@ Available \`expand\` scopes are:
|
|
|
52330
53448
|
- zone.facility
|
|
52331
53449
|
- zone.department
|
|
52332
53450
|
- zone.rules`,
|
|
52333
|
-
args:
|
|
52334
|
-
tool: async (client,
|
|
52335
|
-
const [result, apiCall] = await zonesGetSecurityZone(client,
|
|
53451
|
+
args: args67,
|
|
53452
|
+
tool: async (client, args68, ctx) => {
|
|
53453
|
+
const [result, apiCall] = await zonesGetSecurityZone(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52336
53454
|
if (!result.ok) {
|
|
52337
53455
|
return {
|
|
52338
53456
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52347,9 +53465,9 @@ Available \`expand\` scopes are:
|
|
|
52347
53465
|
|
|
52348
53466
|
// src/funcs/zonesListOrSearchSecurityZones.ts
|
|
52349
53467
|
function zonesListOrSearchSecurityZones(client, request, options) {
|
|
52350
|
-
return new APIPromise($
|
|
53468
|
+
return new APIPromise($do70(client, request, options));
|
|
52351
53469
|
}
|
|
52352
|
-
async function $
|
|
53470
|
+
async function $do70(client, request, options) {
|
|
52353
53471
|
const parsed = safeParse(request, (value) => ListOrSearchSecurityZonesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52354
53472
|
if (!parsed.ok) {
|
|
52355
53473
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -52463,12 +53581,12 @@ var init_zonesListOrSearchSecurityZones = __esm(() => {
|
|
|
52463
53581
|
});
|
|
52464
53582
|
|
|
52465
53583
|
// src/mcp-server/tools/zonesListOrSearchSecurityZones.ts
|
|
52466
|
-
var
|
|
53584
|
+
var args68, tool$zonesListOrSearchSecurityZones;
|
|
52467
53585
|
var init_zonesListOrSearchSecurityZones2 = __esm(() => {
|
|
52468
53586
|
init_zonesListOrSearchSecurityZones();
|
|
52469
53587
|
init_operations();
|
|
52470
53588
|
init_tools();
|
|
52471
|
-
|
|
53589
|
+
args68 = {
|
|
52472
53590
|
request: ListOrSearchSecurityZonesRequest$inboundSchema
|
|
52473
53591
|
};
|
|
52474
53592
|
tool$zonesListOrSearchSecurityZones = {
|
|
@@ -52476,9 +53594,9 @@ var init_zonesListOrSearchSecurityZones2 = __esm(() => {
|
|
|
52476
53594
|
description: `List or search security zones
|
|
52477
53595
|
|
|
52478
53596
|
List or search security zones`,
|
|
52479
|
-
args:
|
|
52480
|
-
tool: async (client,
|
|
52481
|
-
const [result, apiCall] = await zonesListOrSearchSecurityZones(client,
|
|
53597
|
+
args: args68,
|
|
53598
|
+
tool: async (client, args69, ctx) => {
|
|
53599
|
+
const [result, apiCall] = await zonesListOrSearchSecurityZones(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52482
53600
|
if (!result.ok) {
|
|
52483
53601
|
return {
|
|
52484
53602
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52493,9 +53611,9 @@ List or search security zones`,
|
|
|
52493
53611
|
|
|
52494
53612
|
// src/funcs/zonesSecurityZoneCheckin.ts
|
|
52495
53613
|
function zonesSecurityZoneCheckin(client, request, options) {
|
|
52496
|
-
return new APIPromise($
|
|
53614
|
+
return new APIPromise($do71(client, request, options));
|
|
52497
53615
|
}
|
|
52498
|
-
async function $
|
|
53616
|
+
async function $do71(client, request, options) {
|
|
52499
53617
|
const parsed = safeParse(request, (value) => SecurityZoneCheckinRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
52500
53618
|
if (!parsed.ok) {
|
|
52501
53619
|
return [parsed, { status: "invalid" }];
|
|
@@ -52565,12 +53683,12 @@ var init_zonesSecurityZoneCheckin = __esm(() => {
|
|
|
52565
53683
|
});
|
|
52566
53684
|
|
|
52567
53685
|
// src/mcp-server/tools/zonesSecurityZoneCheckin.ts
|
|
52568
|
-
var
|
|
53686
|
+
var args69, tool$zonesSecurityZoneCheckin;
|
|
52569
53687
|
var init_zonesSecurityZoneCheckin2 = __esm(() => {
|
|
52570
53688
|
init_zonesSecurityZoneCheckin();
|
|
52571
53689
|
init_operations();
|
|
52572
53690
|
init_tools();
|
|
52573
|
-
|
|
53691
|
+
args69 = {
|
|
52574
53692
|
request: SecurityZoneCheckinRequestBody$inboundSchema
|
|
52575
53693
|
};
|
|
52576
53694
|
tool$zonesSecurityZoneCheckin = {
|
|
@@ -52578,9 +53696,9 @@ var init_zonesSecurityZoneCheckin2 = __esm(() => {
|
|
|
52578
53696
|
description: `Security zone checkin request
|
|
52579
53697
|
|
|
52580
53698
|
Security zone checkin request`,
|
|
52581
|
-
args:
|
|
52582
|
-
tool: async (client,
|
|
52583
|
-
const [result, apiCall] = await zonesSecurityZoneCheckin(client,
|
|
53699
|
+
args: args69,
|
|
53700
|
+
tool: async (client, args70, ctx) => {
|
|
53701
|
+
const [result, apiCall] = await zonesSecurityZoneCheckin(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52584
53702
|
if (!result.ok) {
|
|
52585
53703
|
return {
|
|
52586
53704
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52597,7 +53715,7 @@ Security zone checkin request`,
|
|
|
52597
53715
|
function createMCPServer(deps) {
|
|
52598
53716
|
const server = new McpServer({
|
|
52599
53717
|
name: "GreenSecurity",
|
|
52600
|
-
version: "0.37.
|
|
53718
|
+
version: "0.37.14"
|
|
52601
53719
|
});
|
|
52602
53720
|
const client = new GreenSecurityCore({
|
|
52603
53721
|
security: deps.security,
|
|
@@ -52613,6 +53731,7 @@ function createMCPServer(deps) {
|
|
|
52613
53731
|
const register = { tool, resource, resourceTemplate, prompt };
|
|
52614
53732
|
tool(tool$vendorsCreateVendorRegistration);
|
|
52615
53733
|
tool(tool$vendorsListVendorJobTitles);
|
|
53734
|
+
tool(tool$vendorsListVendorTypes);
|
|
52616
53735
|
tool(tool$vendorsListVendorCredentials);
|
|
52617
53736
|
tool(tool$vendorsGetVendorCredentialDetails);
|
|
52618
53737
|
tool(tool$vendorsUpdateVendorCredentialData);
|
|
@@ -52632,6 +53751,8 @@ function createMCPServer(deps) {
|
|
|
52632
53751
|
tool(tool$vendorsListVendorCredentialHistory);
|
|
52633
53752
|
tool(tool$vendorsListVendorCredentialDataRequests);
|
|
52634
53753
|
tool(tool$vendorsExpediteTimeRemaining);
|
|
53754
|
+
tool(tool$vendorsGetSubscription);
|
|
53755
|
+
tool(tool$vendorsChangeSubscription);
|
|
52635
53756
|
tool(tool$vendorsListVendorInvoices);
|
|
52636
53757
|
tool(tool$vendorsGetVendorInvoiceDetails);
|
|
52637
53758
|
tool(tool$vendorsListVendorFacilityStatuses);
|
|
@@ -52650,7 +53771,6 @@ function createMCPServer(deps) {
|
|
|
52650
53771
|
tool(tool$vendorsPurchaseScrubCredits);
|
|
52651
53772
|
tool(tool$vendorsCreateVendorCompany);
|
|
52652
53773
|
tool(tool$vendorsCalculateSubscriptionPrice);
|
|
52653
|
-
tool(tool$vendorsChangeSubscription);
|
|
52654
53774
|
tool(tool$usersGetCurrentUser);
|
|
52655
53775
|
tool(tool$usersGetUserById);
|
|
52656
53776
|
tool(tool$usersPostAuthenticate);
|
|
@@ -52662,6 +53782,7 @@ function createMCPServer(deps) {
|
|
|
52662
53782
|
tool(tool$organizationsListOrSearchFacilities);
|
|
52663
53783
|
tool(tool$organizationsGetFacility);
|
|
52664
53784
|
tool(tool$organizationsListOrSearchDepartments);
|
|
53785
|
+
tool(tool$organizationsListOrSearchDepartmentContacts);
|
|
52665
53786
|
tool(tool$supportArticlesListOrSearchSupportArticles);
|
|
52666
53787
|
tool(tool$supportArticlesGetSupportArticle);
|
|
52667
53788
|
tool(tool$webhooksListAllWebhookEndpoints);
|
|
@@ -52678,6 +53799,7 @@ function createMCPServer(deps) {
|
|
|
52678
53799
|
tool(tool$invoicesCreateInvoice);
|
|
52679
53800
|
tool(tool$invoicesUpdateInvoice);
|
|
52680
53801
|
tool(tool$invoicesMakePayment);
|
|
53802
|
+
tool(tool$systemsListSystems);
|
|
52681
53803
|
return server;
|
|
52682
53804
|
}
|
|
52683
53805
|
var init_server2 = __esm(() => {
|
|
@@ -52693,10 +53815,12 @@ var init_server2 = __esm(() => {
|
|
|
52693
53815
|
init_invoicesMakePayment2();
|
|
52694
53816
|
init_invoicesUpdateInvoice2();
|
|
52695
53817
|
init_organizationsGetFacility2();
|
|
53818
|
+
init_organizationsListOrSearchDepartmentContacts2();
|
|
52696
53819
|
init_organizationsListOrSearchDepartments2();
|
|
52697
53820
|
init_organizationsListOrSearchFacilities2();
|
|
52698
53821
|
init_supportArticlesGetSupportArticle2();
|
|
52699
53822
|
init_supportArticlesListOrSearchSupportArticles2();
|
|
53823
|
+
init_systemsListSystems2();
|
|
52700
53824
|
init_usersChangePassword2();
|
|
52701
53825
|
init_usersGetCurrentUser2();
|
|
52702
53826
|
init_usersGetUserById2();
|
|
@@ -52720,6 +53844,7 @@ var init_server2 = __esm(() => {
|
|
|
52720
53844
|
init_vendorsDeleteVendorCredentialFile2();
|
|
52721
53845
|
init_vendorsDeleteVendorManagedByCompany2();
|
|
52722
53846
|
init_vendorsExpediteTimeRemaining2();
|
|
53847
|
+
init_vendorsGetSubscription2();
|
|
52723
53848
|
init_vendorsGetVendorCredentialDetails2();
|
|
52724
53849
|
init_vendorsGetVendorCredentialFile2();
|
|
52725
53850
|
init_vendorsGetVendorInvoiceDetails2();
|
|
@@ -52738,6 +53863,7 @@ var init_server2 = __esm(() => {
|
|
|
52738
53863
|
init_vendorsListVendorScrubDetails2();
|
|
52739
53864
|
init_vendorsListVendorScrubPackages2();
|
|
52740
53865
|
init_vendorsListVendorScrubPurchases2();
|
|
53866
|
+
init_vendorsListVendorTypes2();
|
|
52741
53867
|
init_vendorsPurchaseScrubCredits2();
|
|
52742
53868
|
init_vendorsSendDownloadCode2();
|
|
52743
53869
|
init_vendorsSubmitVendorCredential2();
|
|
@@ -53943,7 +55069,7 @@ var routes = rn({
|
|
|
53943
55069
|
var app = Ve(routes, {
|
|
53944
55070
|
name: "mcp",
|
|
53945
55071
|
versionInfo: {
|
|
53946
|
-
currentVersion: "0.37.
|
|
55072
|
+
currentVersion: "0.37.14"
|
|
53947
55073
|
}
|
|
53948
55074
|
});
|
|
53949
55075
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -53951,5 +55077,5 @@ export {
|
|
|
53951
55077
|
app
|
|
53952
55078
|
};
|
|
53953
55079
|
|
|
53954
|
-
//# debugId=
|
|
55080
|
+
//# debugId=4F602BF9337F440464756E2164756E21
|
|
53955
55081
|
//# sourceMappingURL=mcp-server.js.map
|