@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
|
@@ -26,7 +26,7 @@ export type CompanyGroupId1 = {
|
|
|
26
26
|
|
|
27
27
|
export type CompanyGroupId = CompanyGroupId1 | number;
|
|
28
28
|
|
|
29
|
-
export type
|
|
29
|
+
export type ZoneConfigAppliesTo = {
|
|
30
30
|
vendorGroupId?: VendorGroupId1 | number | null | undefined;
|
|
31
31
|
companyGroupId?: CompanyGroupId1 | number | null | undefined;
|
|
32
32
|
visitorType?: string | null | undefined;
|
|
@@ -76,7 +76,7 @@ export type ZoneConfig = {
|
|
|
76
76
|
id?: number | undefined;
|
|
77
77
|
zoneId?: number | undefined;
|
|
78
78
|
sortOrder?: number | null | undefined;
|
|
79
|
-
appliesTo?:
|
|
79
|
+
appliesTo?: ZoneConfigAppliesTo | undefined;
|
|
80
80
|
vendorPolicy?: ZoneConfigVendorPolicy | undefined;
|
|
81
81
|
visitorCheckinPolicy?: VisitorCheckinPolicy | undefined;
|
|
82
82
|
visitRequestPolicy?: VisitRequestPolicy | undefined;
|
|
@@ -291,8 +291,8 @@ export function companyGroupIdFromJSON(
|
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
/** @internal */
|
|
294
|
-
export const
|
|
295
|
-
|
|
294
|
+
export const ZoneConfigAppliesTo$inboundSchema: z.ZodType<
|
|
295
|
+
ZoneConfigAppliesTo,
|
|
296
296
|
z.ZodTypeDef,
|
|
297
297
|
unknown
|
|
298
298
|
> = z.object({
|
|
@@ -314,7 +314,7 @@ export const AppliesTo$inboundSchema: z.ZodType<
|
|
|
314
314
|
});
|
|
315
315
|
|
|
316
316
|
/** @internal */
|
|
317
|
-
export type
|
|
317
|
+
export type ZoneConfigAppliesTo$Outbound = {
|
|
318
318
|
vendor_group_id?: VendorGroupId1$Outbound | number | null | undefined;
|
|
319
319
|
company_group_id?: CompanyGroupId1$Outbound | number | null | undefined;
|
|
320
320
|
visitor_type?: string | null | undefined;
|
|
@@ -322,10 +322,10 @@ export type AppliesTo$Outbound = {
|
|
|
322
322
|
};
|
|
323
323
|
|
|
324
324
|
/** @internal */
|
|
325
|
-
export const
|
|
326
|
-
|
|
325
|
+
export const ZoneConfigAppliesTo$outboundSchema: z.ZodType<
|
|
326
|
+
ZoneConfigAppliesTo$Outbound,
|
|
327
327
|
z.ZodTypeDef,
|
|
328
|
-
|
|
328
|
+
ZoneConfigAppliesTo
|
|
329
329
|
> = z.object({
|
|
330
330
|
vendorGroupId: z.nullable(
|
|
331
331
|
z.union([z.lazy(() => VendorGroupId1$outboundSchema), z.number().int()]),
|
|
@@ -348,26 +348,30 @@ export const AppliesTo$outboundSchema: z.ZodType<
|
|
|
348
348
|
* @internal
|
|
349
349
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
350
350
|
*/
|
|
351
|
-
export namespace
|
|
352
|
-
/** @deprecated use `
|
|
353
|
-
export const inboundSchema =
|
|
354
|
-
/** @deprecated use `
|
|
355
|
-
export const outboundSchema =
|
|
356
|
-
/** @deprecated use `
|
|
357
|
-
export type Outbound =
|
|
351
|
+
export namespace ZoneConfigAppliesTo$ {
|
|
352
|
+
/** @deprecated use `ZoneConfigAppliesTo$inboundSchema` instead. */
|
|
353
|
+
export const inboundSchema = ZoneConfigAppliesTo$inboundSchema;
|
|
354
|
+
/** @deprecated use `ZoneConfigAppliesTo$outboundSchema` instead. */
|
|
355
|
+
export const outboundSchema = ZoneConfigAppliesTo$outboundSchema;
|
|
356
|
+
/** @deprecated use `ZoneConfigAppliesTo$Outbound` instead. */
|
|
357
|
+
export type Outbound = ZoneConfigAppliesTo$Outbound;
|
|
358
358
|
}
|
|
359
359
|
|
|
360
|
-
export function
|
|
361
|
-
|
|
360
|
+
export function zoneConfigAppliesToToJSON(
|
|
361
|
+
zoneConfigAppliesTo: ZoneConfigAppliesTo,
|
|
362
|
+
): string {
|
|
363
|
+
return JSON.stringify(
|
|
364
|
+
ZoneConfigAppliesTo$outboundSchema.parse(zoneConfigAppliesTo),
|
|
365
|
+
);
|
|
362
366
|
}
|
|
363
367
|
|
|
364
|
-
export function
|
|
368
|
+
export function zoneConfigAppliesToFromJSON(
|
|
365
369
|
jsonString: string,
|
|
366
|
-
): SafeParseResult<
|
|
370
|
+
): SafeParseResult<ZoneConfigAppliesTo, SDKValidationError> {
|
|
367
371
|
return safeParse(
|
|
368
372
|
jsonString,
|
|
369
|
-
(x) =>
|
|
370
|
-
`Failed to parse '
|
|
373
|
+
(x) => ZoneConfigAppliesTo$inboundSchema.parse(JSON.parse(x)),
|
|
374
|
+
`Failed to parse 'ZoneConfigAppliesTo' from JSON`,
|
|
371
375
|
);
|
|
372
376
|
}
|
|
373
377
|
|
|
@@ -687,7 +691,7 @@ export const ZoneConfig$inboundSchema: z.ZodType<
|
|
|
687
691
|
id: z.number().int().optional(),
|
|
688
692
|
zone_id: z.number().int().optional(),
|
|
689
693
|
sort_order: z.nullable(z.number().int()).optional(),
|
|
690
|
-
applies_to: z.lazy(() =>
|
|
694
|
+
applies_to: z.lazy(() => ZoneConfigAppliesTo$inboundSchema).optional(),
|
|
691
695
|
vendor_policy: z.lazy(() => ZoneConfigVendorPolicy$inboundSchema).optional(),
|
|
692
696
|
visitor_checkin_policy: z.lazy(() => VisitorCheckinPolicy$inboundSchema)
|
|
693
697
|
.optional(),
|
|
@@ -709,7 +713,7 @@ export type ZoneConfig$Outbound = {
|
|
|
709
713
|
id?: number | undefined;
|
|
710
714
|
zone_id?: number | undefined;
|
|
711
715
|
sort_order?: number | null | undefined;
|
|
712
|
-
applies_to?:
|
|
716
|
+
applies_to?: ZoneConfigAppliesTo$Outbound | undefined;
|
|
713
717
|
vendor_policy?: ZoneConfigVendorPolicy$Outbound | undefined;
|
|
714
718
|
visitor_checkin_policy?: VisitorCheckinPolicy$Outbound | undefined;
|
|
715
719
|
visit_request_policy?: VisitRequestPolicy$Outbound | undefined;
|
|
@@ -724,7 +728,7 @@ export const ZoneConfig$outboundSchema: z.ZodType<
|
|
|
724
728
|
id: z.number().int().optional(),
|
|
725
729
|
zoneId: z.number().int().optional(),
|
|
726
730
|
sortOrder: z.nullable(z.number().int()).optional(),
|
|
727
|
-
appliesTo: z.lazy(() =>
|
|
731
|
+
appliesTo: z.lazy(() => ZoneConfigAppliesTo$outboundSchema).optional(),
|
|
728
732
|
vendorPolicy: z.lazy(() => ZoneConfigVendorPolicy$outboundSchema).optional(),
|
|
729
733
|
visitorCheckinPolicy: z.lazy(() => VisitorCheckinPolicy$outboundSchema)
|
|
730
734
|
.optional(),
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type GetSubscriptionRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* Either the ID of the vendor rep or the keyword "me" to represent the current vendor.
|
|
15
|
+
*/
|
|
16
|
+
vendorIdOrMe: string;
|
|
17
|
+
/**
|
|
18
|
+
* An array-style parameter to identify which sections of an object to expand. See documentation for the endpoint for a list of valid expansion values.
|
|
19
|
+
*/
|
|
20
|
+
expand?: Array<components.Expand> | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The request was successful, and the server has returned the requested resource in the response body.
|
|
25
|
+
*/
|
|
26
|
+
export type GetSubscriptionResponseBody = {
|
|
27
|
+
/**
|
|
28
|
+
* Reduced list of attributes of the Subscription record
|
|
29
|
+
*/
|
|
30
|
+
subscription?: components.Subscription | null | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const GetSubscriptionRequest$inboundSchema: z.ZodType<
|
|
35
|
+
GetSubscriptionRequest,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
unknown
|
|
38
|
+
> = z.object({
|
|
39
|
+
vendor_id_or_me: z.string(),
|
|
40
|
+
expand: z.array(components.Expand$inboundSchema).optional(),
|
|
41
|
+
}).transform((v) => {
|
|
42
|
+
return remap$(v, {
|
|
43
|
+
"vendor_id_or_me": "vendorIdOrMe",
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export type GetSubscriptionRequest$Outbound = {
|
|
49
|
+
vendor_id_or_me: string;
|
|
50
|
+
expand?: Array<string> | undefined;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const GetSubscriptionRequest$outboundSchema: z.ZodType<
|
|
55
|
+
GetSubscriptionRequest$Outbound,
|
|
56
|
+
z.ZodTypeDef,
|
|
57
|
+
GetSubscriptionRequest
|
|
58
|
+
> = z.object({
|
|
59
|
+
vendorIdOrMe: z.string(),
|
|
60
|
+
expand: z.array(components.Expand$outboundSchema).optional(),
|
|
61
|
+
}).transform((v) => {
|
|
62
|
+
return remap$(v, {
|
|
63
|
+
vendorIdOrMe: "vendor_id_or_me",
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @internal
|
|
69
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
70
|
+
*/
|
|
71
|
+
export namespace GetSubscriptionRequest$ {
|
|
72
|
+
/** @deprecated use `GetSubscriptionRequest$inboundSchema` instead. */
|
|
73
|
+
export const inboundSchema = GetSubscriptionRequest$inboundSchema;
|
|
74
|
+
/** @deprecated use `GetSubscriptionRequest$outboundSchema` instead. */
|
|
75
|
+
export const outboundSchema = GetSubscriptionRequest$outboundSchema;
|
|
76
|
+
/** @deprecated use `GetSubscriptionRequest$Outbound` instead. */
|
|
77
|
+
export type Outbound = GetSubscriptionRequest$Outbound;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function getSubscriptionRequestToJSON(
|
|
81
|
+
getSubscriptionRequest: GetSubscriptionRequest,
|
|
82
|
+
): string {
|
|
83
|
+
return JSON.stringify(
|
|
84
|
+
GetSubscriptionRequest$outboundSchema.parse(getSubscriptionRequest),
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function getSubscriptionRequestFromJSON(
|
|
89
|
+
jsonString: string,
|
|
90
|
+
): SafeParseResult<GetSubscriptionRequest, SDKValidationError> {
|
|
91
|
+
return safeParse(
|
|
92
|
+
jsonString,
|
|
93
|
+
(x) => GetSubscriptionRequest$inboundSchema.parse(JSON.parse(x)),
|
|
94
|
+
`Failed to parse 'GetSubscriptionRequest' from JSON`,
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/** @internal */
|
|
99
|
+
export const GetSubscriptionResponseBody$inboundSchema: z.ZodType<
|
|
100
|
+
GetSubscriptionResponseBody,
|
|
101
|
+
z.ZodTypeDef,
|
|
102
|
+
unknown
|
|
103
|
+
> = z.object({
|
|
104
|
+
subscription: z.nullable(components.Subscription$inboundSchema).optional(),
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
/** @internal */
|
|
108
|
+
export type GetSubscriptionResponseBody$Outbound = {
|
|
109
|
+
subscription?: components.Subscription$Outbound | null | undefined;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
/** @internal */
|
|
113
|
+
export const GetSubscriptionResponseBody$outboundSchema: z.ZodType<
|
|
114
|
+
GetSubscriptionResponseBody$Outbound,
|
|
115
|
+
z.ZodTypeDef,
|
|
116
|
+
GetSubscriptionResponseBody
|
|
117
|
+
> = z.object({
|
|
118
|
+
subscription: z.nullable(components.Subscription$outboundSchema).optional(),
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @internal
|
|
123
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
124
|
+
*/
|
|
125
|
+
export namespace GetSubscriptionResponseBody$ {
|
|
126
|
+
/** @deprecated use `GetSubscriptionResponseBody$inboundSchema` instead. */
|
|
127
|
+
export const inboundSchema = GetSubscriptionResponseBody$inboundSchema;
|
|
128
|
+
/** @deprecated use `GetSubscriptionResponseBody$outboundSchema` instead. */
|
|
129
|
+
export const outboundSchema = GetSubscriptionResponseBody$outboundSchema;
|
|
130
|
+
/** @deprecated use `GetSubscriptionResponseBody$Outbound` instead. */
|
|
131
|
+
export type Outbound = GetSubscriptionResponseBody$Outbound;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function getSubscriptionResponseBodyToJSON(
|
|
135
|
+
getSubscriptionResponseBody: GetSubscriptionResponseBody,
|
|
136
|
+
): string {
|
|
137
|
+
return JSON.stringify(
|
|
138
|
+
GetSubscriptionResponseBody$outboundSchema.parse(
|
|
139
|
+
getSubscriptionResponseBody,
|
|
140
|
+
),
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export function getSubscriptionResponseBodyFromJSON(
|
|
145
|
+
jsonString: string,
|
|
146
|
+
): SafeParseResult<GetSubscriptionResponseBody, SDKValidationError> {
|
|
147
|
+
return safeParse(
|
|
148
|
+
jsonString,
|
|
149
|
+
(x) => GetSubscriptionResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
150
|
+
`Failed to parse 'GetSubscriptionResponseBody' from JSON`,
|
|
151
|
+
);
|
|
152
|
+
}
|
|
@@ -22,6 +22,7 @@ export * from "./deletevendormanagedbycompany.js";
|
|
|
22
22
|
export * from "./expeditetimeremaining.js";
|
|
23
23
|
export * from "./getfacility.js";
|
|
24
24
|
export * from "./getsecurityzone.js";
|
|
25
|
+
export * from "./getsubscription.js";
|
|
25
26
|
export * from "./getsupportarticle.js";
|
|
26
27
|
export * from "./getuserbyid.js";
|
|
27
28
|
export * from "./getvendorcredentialdetails.js";
|
|
@@ -32,10 +33,12 @@ export * from "./getvendorsdetails.js";
|
|
|
32
33
|
export * from "./getwebhookendpoint.js";
|
|
33
34
|
export * from "./listallwebhookendpoints.js";
|
|
34
35
|
export * from "./listorsearchcompanies.js";
|
|
36
|
+
export * from "./listorsearchdepartmentcontacts.js";
|
|
35
37
|
export * from "./listorsearchdepartments.js";
|
|
36
38
|
export * from "./listorsearchfacilities.js";
|
|
37
39
|
export * from "./listorsearchsecurityzones.js";
|
|
38
40
|
export * from "./listorsearchsupportarticles.js";
|
|
41
|
+
export * from "./listsystems.js";
|
|
39
42
|
export * from "./listvendoradditionalfacilityfields.js";
|
|
40
43
|
export * from "./listvendorcredentialdatarequests.js";
|
|
41
44
|
export * from "./listvendorcredentialfiles.js";
|
|
@@ -49,6 +52,7 @@ export * from "./listvendormanagedbycompanies.js";
|
|
|
49
52
|
export * from "./listvendorscrubdetails.js";
|
|
50
53
|
export * from "./listvendorscrubpackages.js";
|
|
51
54
|
export * from "./listvendorscrubpurchases.js";
|
|
55
|
+
export * from "./listvendortypes.js";
|
|
52
56
|
export * from "./magiclink.js";
|
|
53
57
|
export * from "./makepayment.js";
|
|
54
58
|
export * from "./password.js";
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type ListOrSearchDepartmentContactsRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* The identifier of the object
|
|
15
|
+
*/
|
|
16
|
+
id: number;
|
|
17
|
+
/**
|
|
18
|
+
* A comma-separated list of object attributes to sort on.
|
|
19
|
+
*/
|
|
20
|
+
sort?: string | null | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Sort desc
|
|
23
|
+
*/
|
|
24
|
+
desc?: components.Desc | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* A 1-based offset for which page to request (defaults to 1)
|
|
27
|
+
*/
|
|
28
|
+
page?: number | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Number of items to show in a given page
|
|
31
|
+
*/
|
|
32
|
+
itemsPerPage?: number | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Search for objects by the search string
|
|
35
|
+
*/
|
|
36
|
+
search?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* An array-style parameter to identify which sections of an object to expand. See documentation for the endpoint for a list of valid expansion values.
|
|
39
|
+
*/
|
|
40
|
+
expand?: Array<components.Expand> | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The request was successful, and the server has returned the requested resource in the response body.
|
|
45
|
+
*/
|
|
46
|
+
export type ListOrSearchDepartmentContactsResponseBody = {
|
|
47
|
+
/**
|
|
48
|
+
* Pagination information for a pageable list
|
|
49
|
+
*/
|
|
50
|
+
pager: components.Pager;
|
|
51
|
+
items: Array<components.DepartmentMembership | null>;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export type ListOrSearchDepartmentContactsResponse = {
|
|
55
|
+
result: ListOrSearchDepartmentContactsResponseBody;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const ListOrSearchDepartmentContactsRequest$inboundSchema: z.ZodType<
|
|
60
|
+
ListOrSearchDepartmentContactsRequest,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
unknown
|
|
63
|
+
> = z.object({
|
|
64
|
+
id: z.number().int(),
|
|
65
|
+
sort: z.nullable(z.string()).optional(),
|
|
66
|
+
desc: components.Desc$inboundSchema.optional(),
|
|
67
|
+
page: z.number().int().optional(),
|
|
68
|
+
items_per_page: z.number().int().optional(),
|
|
69
|
+
search: z.string().optional(),
|
|
70
|
+
expand: z.array(components.Expand$inboundSchema).optional(),
|
|
71
|
+
}).transform((v) => {
|
|
72
|
+
return remap$(v, {
|
|
73
|
+
"items_per_page": "itemsPerPage",
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
/** @internal */
|
|
78
|
+
export type ListOrSearchDepartmentContactsRequest$Outbound = {
|
|
79
|
+
id: number;
|
|
80
|
+
sort?: string | null | undefined;
|
|
81
|
+
desc?: components.Desc$Outbound | undefined;
|
|
82
|
+
page?: number | undefined;
|
|
83
|
+
items_per_page?: number | undefined;
|
|
84
|
+
search?: string | undefined;
|
|
85
|
+
expand?: Array<string> | undefined;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const ListOrSearchDepartmentContactsRequest$outboundSchema: z.ZodType<
|
|
90
|
+
ListOrSearchDepartmentContactsRequest$Outbound,
|
|
91
|
+
z.ZodTypeDef,
|
|
92
|
+
ListOrSearchDepartmentContactsRequest
|
|
93
|
+
> = z.object({
|
|
94
|
+
id: z.number().int(),
|
|
95
|
+
sort: z.nullable(z.string()).optional(),
|
|
96
|
+
desc: components.Desc$outboundSchema.optional(),
|
|
97
|
+
page: z.number().int().optional(),
|
|
98
|
+
itemsPerPage: z.number().int().optional(),
|
|
99
|
+
search: z.string().optional(),
|
|
100
|
+
expand: z.array(components.Expand$outboundSchema).optional(),
|
|
101
|
+
}).transform((v) => {
|
|
102
|
+
return remap$(v, {
|
|
103
|
+
itemsPerPage: "items_per_page",
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* @internal
|
|
109
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
110
|
+
*/
|
|
111
|
+
export namespace ListOrSearchDepartmentContactsRequest$ {
|
|
112
|
+
/** @deprecated use `ListOrSearchDepartmentContactsRequest$inboundSchema` instead. */
|
|
113
|
+
export const inboundSchema =
|
|
114
|
+
ListOrSearchDepartmentContactsRequest$inboundSchema;
|
|
115
|
+
/** @deprecated use `ListOrSearchDepartmentContactsRequest$outboundSchema` instead. */
|
|
116
|
+
export const outboundSchema =
|
|
117
|
+
ListOrSearchDepartmentContactsRequest$outboundSchema;
|
|
118
|
+
/** @deprecated use `ListOrSearchDepartmentContactsRequest$Outbound` instead. */
|
|
119
|
+
export type Outbound = ListOrSearchDepartmentContactsRequest$Outbound;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function listOrSearchDepartmentContactsRequestToJSON(
|
|
123
|
+
listOrSearchDepartmentContactsRequest: ListOrSearchDepartmentContactsRequest,
|
|
124
|
+
): string {
|
|
125
|
+
return JSON.stringify(
|
|
126
|
+
ListOrSearchDepartmentContactsRequest$outboundSchema.parse(
|
|
127
|
+
listOrSearchDepartmentContactsRequest,
|
|
128
|
+
),
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function listOrSearchDepartmentContactsRequestFromJSON(
|
|
133
|
+
jsonString: string,
|
|
134
|
+
): SafeParseResult<ListOrSearchDepartmentContactsRequest, SDKValidationError> {
|
|
135
|
+
return safeParse(
|
|
136
|
+
jsonString,
|
|
137
|
+
(x) =>
|
|
138
|
+
ListOrSearchDepartmentContactsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
139
|
+
`Failed to parse 'ListOrSearchDepartmentContactsRequest' from JSON`,
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/** @internal */
|
|
144
|
+
export const ListOrSearchDepartmentContactsResponseBody$inboundSchema:
|
|
145
|
+
z.ZodType<ListOrSearchDepartmentContactsResponseBody, z.ZodTypeDef, unknown> =
|
|
146
|
+
z.object({
|
|
147
|
+
pager: components.Pager$inboundSchema,
|
|
148
|
+
items: z.array(z.nullable(components.DepartmentMembership$inboundSchema)),
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
/** @internal */
|
|
152
|
+
export type ListOrSearchDepartmentContactsResponseBody$Outbound = {
|
|
153
|
+
pager: components.Pager$Outbound;
|
|
154
|
+
items: Array<components.DepartmentMembership$Outbound | null>;
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
/** @internal */
|
|
158
|
+
export const ListOrSearchDepartmentContactsResponseBody$outboundSchema:
|
|
159
|
+
z.ZodType<
|
|
160
|
+
ListOrSearchDepartmentContactsResponseBody$Outbound,
|
|
161
|
+
z.ZodTypeDef,
|
|
162
|
+
ListOrSearchDepartmentContactsResponseBody
|
|
163
|
+
> = z.object({
|
|
164
|
+
pager: components.Pager$outboundSchema,
|
|
165
|
+
items: z.array(z.nullable(components.DepartmentMembership$outboundSchema)),
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* @internal
|
|
170
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
171
|
+
*/
|
|
172
|
+
export namespace ListOrSearchDepartmentContactsResponseBody$ {
|
|
173
|
+
/** @deprecated use `ListOrSearchDepartmentContactsResponseBody$inboundSchema` instead. */
|
|
174
|
+
export const inboundSchema =
|
|
175
|
+
ListOrSearchDepartmentContactsResponseBody$inboundSchema;
|
|
176
|
+
/** @deprecated use `ListOrSearchDepartmentContactsResponseBody$outboundSchema` instead. */
|
|
177
|
+
export const outboundSchema =
|
|
178
|
+
ListOrSearchDepartmentContactsResponseBody$outboundSchema;
|
|
179
|
+
/** @deprecated use `ListOrSearchDepartmentContactsResponseBody$Outbound` instead. */
|
|
180
|
+
export type Outbound = ListOrSearchDepartmentContactsResponseBody$Outbound;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export function listOrSearchDepartmentContactsResponseBodyToJSON(
|
|
184
|
+
listOrSearchDepartmentContactsResponseBody:
|
|
185
|
+
ListOrSearchDepartmentContactsResponseBody,
|
|
186
|
+
): string {
|
|
187
|
+
return JSON.stringify(
|
|
188
|
+
ListOrSearchDepartmentContactsResponseBody$outboundSchema.parse(
|
|
189
|
+
listOrSearchDepartmentContactsResponseBody,
|
|
190
|
+
),
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export function listOrSearchDepartmentContactsResponseBodyFromJSON(
|
|
195
|
+
jsonString: string,
|
|
196
|
+
): SafeParseResult<
|
|
197
|
+
ListOrSearchDepartmentContactsResponseBody,
|
|
198
|
+
SDKValidationError
|
|
199
|
+
> {
|
|
200
|
+
return safeParse(
|
|
201
|
+
jsonString,
|
|
202
|
+
(x) =>
|
|
203
|
+
ListOrSearchDepartmentContactsResponseBody$inboundSchema.parse(
|
|
204
|
+
JSON.parse(x),
|
|
205
|
+
),
|
|
206
|
+
`Failed to parse 'ListOrSearchDepartmentContactsResponseBody' from JSON`,
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/** @internal */
|
|
211
|
+
export const ListOrSearchDepartmentContactsResponse$inboundSchema: z.ZodType<
|
|
212
|
+
ListOrSearchDepartmentContactsResponse,
|
|
213
|
+
z.ZodTypeDef,
|
|
214
|
+
unknown
|
|
215
|
+
> = z.object({
|
|
216
|
+
Result: z.lazy(() =>
|
|
217
|
+
ListOrSearchDepartmentContactsResponseBody$inboundSchema
|
|
218
|
+
),
|
|
219
|
+
}).transform((v) => {
|
|
220
|
+
return remap$(v, {
|
|
221
|
+
"Result": "result",
|
|
222
|
+
});
|
|
223
|
+
});
|
|
224
|
+
|
|
225
|
+
/** @internal */
|
|
226
|
+
export type ListOrSearchDepartmentContactsResponse$Outbound = {
|
|
227
|
+
Result: ListOrSearchDepartmentContactsResponseBody$Outbound;
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
/** @internal */
|
|
231
|
+
export const ListOrSearchDepartmentContactsResponse$outboundSchema: z.ZodType<
|
|
232
|
+
ListOrSearchDepartmentContactsResponse$Outbound,
|
|
233
|
+
z.ZodTypeDef,
|
|
234
|
+
ListOrSearchDepartmentContactsResponse
|
|
235
|
+
> = z.object({
|
|
236
|
+
result: z.lazy(() =>
|
|
237
|
+
ListOrSearchDepartmentContactsResponseBody$outboundSchema
|
|
238
|
+
),
|
|
239
|
+
}).transform((v) => {
|
|
240
|
+
return remap$(v, {
|
|
241
|
+
result: "Result",
|
|
242
|
+
});
|
|
243
|
+
});
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* @internal
|
|
247
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
248
|
+
*/
|
|
249
|
+
export namespace ListOrSearchDepartmentContactsResponse$ {
|
|
250
|
+
/** @deprecated use `ListOrSearchDepartmentContactsResponse$inboundSchema` instead. */
|
|
251
|
+
export const inboundSchema =
|
|
252
|
+
ListOrSearchDepartmentContactsResponse$inboundSchema;
|
|
253
|
+
/** @deprecated use `ListOrSearchDepartmentContactsResponse$outboundSchema` instead. */
|
|
254
|
+
export const outboundSchema =
|
|
255
|
+
ListOrSearchDepartmentContactsResponse$outboundSchema;
|
|
256
|
+
/** @deprecated use `ListOrSearchDepartmentContactsResponse$Outbound` instead. */
|
|
257
|
+
export type Outbound = ListOrSearchDepartmentContactsResponse$Outbound;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export function listOrSearchDepartmentContactsResponseToJSON(
|
|
261
|
+
listOrSearchDepartmentContactsResponse:
|
|
262
|
+
ListOrSearchDepartmentContactsResponse,
|
|
263
|
+
): string {
|
|
264
|
+
return JSON.stringify(
|
|
265
|
+
ListOrSearchDepartmentContactsResponse$outboundSchema.parse(
|
|
266
|
+
listOrSearchDepartmentContactsResponse,
|
|
267
|
+
),
|
|
268
|
+
);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export function listOrSearchDepartmentContactsResponseFromJSON(
|
|
272
|
+
jsonString: string,
|
|
273
|
+
): SafeParseResult<ListOrSearchDepartmentContactsResponse, SDKValidationError> {
|
|
274
|
+
return safeParse(
|
|
275
|
+
jsonString,
|
|
276
|
+
(x) =>
|
|
277
|
+
ListOrSearchDepartmentContactsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
278
|
+
`Failed to parse 'ListOrSearchDepartmentContactsResponse' from JSON`,
|
|
279
|
+
);
|
|
280
|
+
}
|