@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
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
export * from "./activestatus.js";
|
|
6
6
|
export * from "./backgroundcheckresult.js";
|
|
7
7
|
export * from "./company.js";
|
|
8
|
+
export * from "./companyvendortyperestriction.js";
|
|
8
9
|
export * from "./contact.js";
|
|
9
10
|
export * from "./contenttype.js";
|
|
10
11
|
export * from "./credential.js";
|
|
@@ -13,12 +14,14 @@ export * from "./credentialstatus.js";
|
|
|
13
14
|
export * from "./credit.js";
|
|
14
15
|
export * from "./datarequest.js";
|
|
15
16
|
export * from "./department.js";
|
|
17
|
+
export * from "./departmentmembership.js";
|
|
16
18
|
export * from "./departmentsummary.js";
|
|
17
19
|
export * from "./desc.js";
|
|
18
20
|
export * from "./expand.js";
|
|
19
21
|
export * from "./facility.js";
|
|
20
22
|
export * from "./facilitystatus.js";
|
|
21
23
|
export * from "./facilitysummary.js";
|
|
24
|
+
export * from "./facilityvendortype.js";
|
|
22
25
|
export * from "./financialstatus.js";
|
|
23
26
|
export * from "./handoff.js";
|
|
24
27
|
export * from "./imageset.js";
|
|
@@ -44,6 +47,7 @@ export * from "./supportarticle.js";
|
|
|
44
47
|
export * from "./systemsummary.js";
|
|
45
48
|
export * from "./user.js";
|
|
46
49
|
export * from "./userlocation.js";
|
|
50
|
+
export * from "./usersummary.js";
|
|
47
51
|
export * from "./vendor.js";
|
|
48
52
|
export * from "./vendoradditionalfacilityfields.js";
|
|
49
53
|
export * from "./vendorcredentialdatarequest.js";
|
|
@@ -51,6 +55,7 @@ export * from "./vendorcredentialfile.js";
|
|
|
51
55
|
export * from "./vendorcredentialscontainer.js";
|
|
52
56
|
export * from "./vendorcredentialsummary.js";
|
|
53
57
|
export * from "./vendorfacilitystatusview.js";
|
|
58
|
+
export * from "./vendorgroup.js";
|
|
54
59
|
export * from "./vendorjobtitle.js";
|
|
55
60
|
export * from "./vendormanagedbycompany.js";
|
|
56
61
|
export * from "./vendorrequiredcredential.js";
|
|
@@ -24,6 +24,13 @@ export type Variant = ProductVariant | number;
|
|
|
24
24
|
|
|
25
25
|
export type InvoiceItemProduct = Product | number;
|
|
26
26
|
|
|
27
|
+
export type Details = {
|
|
28
|
+
totalDays?: number | null | undefined;
|
|
29
|
+
unusedDays?: number | null | undefined;
|
|
30
|
+
usedDays?: number | null | undefined;
|
|
31
|
+
prorate?: number | null | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
27
34
|
/**
|
|
28
35
|
* Reduced list of attributes of the Invoice line item record
|
|
29
36
|
*/
|
|
@@ -39,6 +46,7 @@ export type InvoiceItem = {
|
|
|
39
46
|
subtotal?: number | null | undefined;
|
|
40
47
|
variant?: ProductVariant | number | null | undefined;
|
|
41
48
|
product?: Product | number | null | undefined;
|
|
49
|
+
details?: Details | null | undefined;
|
|
42
50
|
};
|
|
43
51
|
|
|
44
52
|
/** @internal */
|
|
@@ -130,6 +138,74 @@ export function invoiceItemProductFromJSON(
|
|
|
130
138
|
);
|
|
131
139
|
}
|
|
132
140
|
|
|
141
|
+
/** @internal */
|
|
142
|
+
export const Details$inboundSchema: z.ZodType<Details, z.ZodTypeDef, unknown> =
|
|
143
|
+
z.object({
|
|
144
|
+
total_days: z.nullable(z.number().int()).optional(),
|
|
145
|
+
unused_days: z.nullable(z.number().int()).optional(),
|
|
146
|
+
used_days: z.nullable(z.number().int()).optional(),
|
|
147
|
+
prorate: z.nullable(z.number()).optional(),
|
|
148
|
+
}).transform((v) => {
|
|
149
|
+
return remap$(v, {
|
|
150
|
+
"total_days": "totalDays",
|
|
151
|
+
"unused_days": "unusedDays",
|
|
152
|
+
"used_days": "usedDays",
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
/** @internal */
|
|
157
|
+
export type Details$Outbound = {
|
|
158
|
+
total_days?: number | null | undefined;
|
|
159
|
+
unused_days?: number | null | undefined;
|
|
160
|
+
used_days?: number | null | undefined;
|
|
161
|
+
prorate?: number | null | undefined;
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
/** @internal */
|
|
165
|
+
export const Details$outboundSchema: z.ZodType<
|
|
166
|
+
Details$Outbound,
|
|
167
|
+
z.ZodTypeDef,
|
|
168
|
+
Details
|
|
169
|
+
> = z.object({
|
|
170
|
+
totalDays: z.nullable(z.number().int()).optional(),
|
|
171
|
+
unusedDays: z.nullable(z.number().int()).optional(),
|
|
172
|
+
usedDays: z.nullable(z.number().int()).optional(),
|
|
173
|
+
prorate: z.nullable(z.number()).optional(),
|
|
174
|
+
}).transform((v) => {
|
|
175
|
+
return remap$(v, {
|
|
176
|
+
totalDays: "total_days",
|
|
177
|
+
unusedDays: "unused_days",
|
|
178
|
+
usedDays: "used_days",
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* @internal
|
|
184
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
185
|
+
*/
|
|
186
|
+
export namespace Details$ {
|
|
187
|
+
/** @deprecated use `Details$inboundSchema` instead. */
|
|
188
|
+
export const inboundSchema = Details$inboundSchema;
|
|
189
|
+
/** @deprecated use `Details$outboundSchema` instead. */
|
|
190
|
+
export const outboundSchema = Details$outboundSchema;
|
|
191
|
+
/** @deprecated use `Details$Outbound` instead. */
|
|
192
|
+
export type Outbound = Details$Outbound;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export function detailsToJSON(details: Details): string {
|
|
196
|
+
return JSON.stringify(Details$outboundSchema.parse(details));
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export function detailsFromJSON(
|
|
200
|
+
jsonString: string,
|
|
201
|
+
): SafeParseResult<Details, SDKValidationError> {
|
|
202
|
+
return safeParse(
|
|
203
|
+
jsonString,
|
|
204
|
+
(x) => Details$inboundSchema.parse(JSON.parse(x)),
|
|
205
|
+
`Failed to parse 'Details' from JSON`,
|
|
206
|
+
);
|
|
207
|
+
}
|
|
208
|
+
|
|
133
209
|
/** @internal */
|
|
134
210
|
export const InvoiceItem$inboundSchema: z.ZodType<
|
|
135
211
|
InvoiceItem,
|
|
@@ -149,6 +225,7 @@ export const InvoiceItem$inboundSchema: z.ZodType<
|
|
|
149
225
|
.optional(),
|
|
150
226
|
product: z.nullable(z.union([Product$inboundSchema, z.number().int()]))
|
|
151
227
|
.optional(),
|
|
228
|
+
details: z.nullable(z.lazy(() => Details$inboundSchema)).optional(),
|
|
152
229
|
}).transform((v) => {
|
|
153
230
|
return remap$(v, {
|
|
154
231
|
"date_starts": "dateStarts",
|
|
@@ -172,6 +249,7 @@ export type InvoiceItem$Outbound = {
|
|
|
172
249
|
subtotal?: number | null | undefined;
|
|
173
250
|
variant?: ProductVariant$Outbound | number | null | undefined;
|
|
174
251
|
product?: Product$Outbound | number | null | undefined;
|
|
252
|
+
details?: Details$Outbound | null | undefined;
|
|
175
253
|
};
|
|
176
254
|
|
|
177
255
|
/** @internal */
|
|
@@ -194,6 +272,7 @@ export const InvoiceItem$outboundSchema: z.ZodType<
|
|
|
194
272
|
).optional(),
|
|
195
273
|
product: z.nullable(z.union([Product$outboundSchema, z.number().int()]))
|
|
196
274
|
.optional(),
|
|
275
|
+
details: z.nullable(z.lazy(() => Details$outboundSchema)).optional(),
|
|
197
276
|
}).transform((v) => {
|
|
198
277
|
return remap$(v, {
|
|
199
278
|
dateStarts: "date_starts",
|
|
@@ -12,8 +12,8 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
*/
|
|
13
13
|
export type ProductVariant = {
|
|
14
14
|
id?: number | undefined;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
price?: number | undefined;
|
|
16
|
+
title?: string | null | undefined;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
/** @internal */
|
|
@@ -23,15 +23,15 @@ export const ProductVariant$inboundSchema: z.ZodType<
|
|
|
23
23
|
unknown
|
|
24
24
|
> = z.object({
|
|
25
25
|
id: z.number().int().optional(),
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
price: z.number().int().optional(),
|
|
27
|
+
title: z.nullable(z.string()).optional(),
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
/** @internal */
|
|
31
31
|
export type ProductVariant$Outbound = {
|
|
32
32
|
id?: number | undefined;
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
price?: number | undefined;
|
|
34
|
+
title?: string | null | undefined;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
/** @internal */
|
|
@@ -41,8 +41,8 @@ export const ProductVariant$outboundSchema: z.ZodType<
|
|
|
41
41
|
ProductVariant
|
|
42
42
|
> = z.object({
|
|
43
43
|
id: z.number().int().optional(),
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
price: z.number().int().optional(),
|
|
45
|
+
title: z.nullable(z.string()).optional(),
|
|
46
46
|
});
|
|
47
47
|
|
|
48
48
|
/**
|
|
@@ -18,6 +18,12 @@ import {
|
|
|
18
18
|
InvoiceItem$Outbound,
|
|
19
19
|
InvoiceItem$outboundSchema,
|
|
20
20
|
} from "./invoiceitem.js";
|
|
21
|
+
import {
|
|
22
|
+
ProductVariant,
|
|
23
|
+
ProductVariant$inboundSchema,
|
|
24
|
+
ProductVariant$Outbound,
|
|
25
|
+
ProductVariant$outboundSchema,
|
|
26
|
+
} from "./productvariant.js";
|
|
21
27
|
|
|
22
28
|
/**
|
|
23
29
|
* Reduced list of attributes of the Subscription record
|
|
@@ -39,6 +45,7 @@ export type Subscription = {
|
|
|
39
45
|
nextLineItem?: InvoiceItem | null | undefined;
|
|
40
46
|
currentFinancialStatus?: FinancialStatus | null | undefined;
|
|
41
47
|
nextFinancialStatus?: FinancialStatus | null | undefined;
|
|
48
|
+
expeditedOffer?: ProductVariant | null | undefined;
|
|
42
49
|
};
|
|
43
50
|
|
|
44
51
|
/** @internal */
|
|
@@ -58,6 +65,7 @@ export const Subscription$inboundSchema: z.ZodType<
|
|
|
58
65
|
current_financial_status: z.nullable(FinancialStatus$inboundSchema)
|
|
59
66
|
.optional(),
|
|
60
67
|
next_financial_status: z.nullable(FinancialStatus$inboundSchema).optional(),
|
|
68
|
+
expedited_offer: z.nullable(ProductVariant$inboundSchema).optional(),
|
|
61
69
|
}).transform((v) => {
|
|
62
70
|
return remap$(v, {
|
|
63
71
|
"date_started": "dateStarted",
|
|
@@ -67,6 +75,7 @@ export const Subscription$inboundSchema: z.ZodType<
|
|
|
67
75
|
"next_line_item": "nextLineItem",
|
|
68
76
|
"current_financial_status": "currentFinancialStatus",
|
|
69
77
|
"next_financial_status": "nextFinancialStatus",
|
|
78
|
+
"expedited_offer": "expeditedOffer",
|
|
70
79
|
});
|
|
71
80
|
});
|
|
72
81
|
|
|
@@ -82,6 +91,7 @@ export type Subscription$Outbound = {
|
|
|
82
91
|
next_line_item?: InvoiceItem$Outbound | null | undefined;
|
|
83
92
|
current_financial_status?: string | null | undefined;
|
|
84
93
|
next_financial_status?: string | null | undefined;
|
|
94
|
+
expedited_offer?: ProductVariant$Outbound | null | undefined;
|
|
85
95
|
};
|
|
86
96
|
|
|
87
97
|
/** @internal */
|
|
@@ -100,6 +110,7 @@ export const Subscription$outboundSchema: z.ZodType<
|
|
|
100
110
|
nextLineItem: z.nullable(InvoiceItem$outboundSchema).optional(),
|
|
101
111
|
currentFinancialStatus: z.nullable(FinancialStatus$outboundSchema).optional(),
|
|
102
112
|
nextFinancialStatus: z.nullable(FinancialStatus$outboundSchema).optional(),
|
|
113
|
+
expeditedOffer: z.nullable(ProductVariant$outboundSchema).optional(),
|
|
103
114
|
}).transform((v) => {
|
|
104
115
|
return remap$(v, {
|
|
105
116
|
dateStarted: "date_started",
|
|
@@ -109,6 +120,7 @@ export const Subscription$outboundSchema: z.ZodType<
|
|
|
109
120
|
nextLineItem: "next_line_item",
|
|
110
121
|
currentFinancialStatus: "current_financial_status",
|
|
111
122
|
nextFinancialStatus: "next_financial_status",
|
|
123
|
+
expeditedOffer: "expedited_offer",
|
|
112
124
|
});
|
|
113
125
|
});
|
|
114
126
|
|
|
@@ -6,6 +6,12 @@ import * as z from "zod";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
FacilitySummary,
|
|
11
|
+
FacilitySummary$inboundSchema,
|
|
12
|
+
FacilitySummary$Outbound,
|
|
13
|
+
FacilitySummary$outboundSchema,
|
|
14
|
+
} from "./facilitysummary.js";
|
|
9
15
|
|
|
10
16
|
/**
|
|
11
17
|
* A simplified representation of a System, typically used in list views.
|
|
@@ -13,6 +19,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
13
19
|
export type SystemSummary = {
|
|
14
20
|
id: number;
|
|
15
21
|
name: string;
|
|
22
|
+
facilities?: Array<FacilitySummary> | null | undefined;
|
|
16
23
|
};
|
|
17
24
|
|
|
18
25
|
/** @internal */
|
|
@@ -23,12 +30,14 @@ export const SystemSummary$inboundSchema: z.ZodType<
|
|
|
23
30
|
> = z.object({
|
|
24
31
|
id: z.number().int(),
|
|
25
32
|
name: z.string(),
|
|
33
|
+
facilities: z.nullable(z.array(FacilitySummary$inboundSchema)).optional(),
|
|
26
34
|
});
|
|
27
35
|
|
|
28
36
|
/** @internal */
|
|
29
37
|
export type SystemSummary$Outbound = {
|
|
30
38
|
id: number;
|
|
31
39
|
name: string;
|
|
40
|
+
facilities?: Array<FacilitySummary$Outbound> | null | undefined;
|
|
32
41
|
};
|
|
33
42
|
|
|
34
43
|
/** @internal */
|
|
@@ -39,6 +48,7 @@ export const SystemSummary$outboundSchema: z.ZodType<
|
|
|
39
48
|
> = z.object({
|
|
40
49
|
id: z.number().int(),
|
|
41
50
|
name: z.string(),
|
|
51
|
+
facilities: z.nullable(z.array(FacilitySummary$outboundSchema)).optional(),
|
|
42
52
|
});
|
|
43
53
|
|
|
44
54
|
/**
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* A simplified representation of a User, typically used in list views.
|
|
12
|
+
*/
|
|
13
|
+
export type UserSummary = {
|
|
14
|
+
id: number;
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const UserSummary$inboundSchema: z.ZodType<
|
|
20
|
+
UserSummary,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
id: z.number().int(),
|
|
25
|
+
name: z.string(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type UserSummary$Outbound = {
|
|
30
|
+
id: number;
|
|
31
|
+
name: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const UserSummary$outboundSchema: z.ZodType<
|
|
36
|
+
UserSummary$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
UserSummary
|
|
39
|
+
> = z.object({
|
|
40
|
+
id: z.number().int(),
|
|
41
|
+
name: z.string(),
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
47
|
+
*/
|
|
48
|
+
export namespace UserSummary$ {
|
|
49
|
+
/** @deprecated use `UserSummary$inboundSchema` instead. */
|
|
50
|
+
export const inboundSchema = UserSummary$inboundSchema;
|
|
51
|
+
/** @deprecated use `UserSummary$outboundSchema` instead. */
|
|
52
|
+
export const outboundSchema = UserSummary$outboundSchema;
|
|
53
|
+
/** @deprecated use `UserSummary$Outbound` instead. */
|
|
54
|
+
export type Outbound = UserSummary$Outbound;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function userSummaryToJSON(userSummary: UserSummary): string {
|
|
58
|
+
return JSON.stringify(UserSummary$outboundSchema.parse(userSummary));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function userSummaryFromJSON(
|
|
62
|
+
jsonString: string,
|
|
63
|
+
): SafeParseResult<UserSummary, SDKValidationError> {
|
|
64
|
+
return safeParse(
|
|
65
|
+
jsonString,
|
|
66
|
+
(x) => UserSummary$inboundSchema.parse(JSON.parse(x)),
|
|
67
|
+
`Failed to parse 'UserSummary' from JSON`,
|
|
68
|
+
);
|
|
69
|
+
}
|
|
@@ -31,6 +31,12 @@ import {
|
|
|
31
31
|
ImageSet$Outbound,
|
|
32
32
|
ImageSet$outboundSchema,
|
|
33
33
|
} from "./imageset.js";
|
|
34
|
+
import {
|
|
35
|
+
Invoice,
|
|
36
|
+
Invoice$inboundSchema,
|
|
37
|
+
Invoice$Outbound,
|
|
38
|
+
Invoice$outboundSchema,
|
|
39
|
+
} from "./invoice.js";
|
|
34
40
|
import {
|
|
35
41
|
Subscription,
|
|
36
42
|
Subscription$inboundSchema,
|
|
@@ -49,6 +55,12 @@ import {
|
|
|
49
55
|
UserLocation$Outbound,
|
|
50
56
|
UserLocation$outboundSchema,
|
|
51
57
|
} from "./userlocation.js";
|
|
58
|
+
import {
|
|
59
|
+
VendorGroup,
|
|
60
|
+
VendorGroup$inboundSchema,
|
|
61
|
+
VendorGroup$Outbound,
|
|
62
|
+
VendorGroup$outboundSchema,
|
|
63
|
+
} from "./vendorgroup.js";
|
|
52
64
|
import {
|
|
53
65
|
VendorJobTitle,
|
|
54
66
|
VendorJobTitle$inboundSchema,
|
|
@@ -135,6 +147,13 @@ export type PaymentResponsibility = {
|
|
|
135
147
|
otherInvoicesUserId?: number | null | undefined;
|
|
136
148
|
};
|
|
137
149
|
|
|
150
|
+
export type TargetFacilities = {
|
|
151
|
+
id?: number | undefined;
|
|
152
|
+
name?: string | null | undefined;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
export type PendingInvoice = Invoice | number;
|
|
156
|
+
|
|
138
157
|
/**
|
|
139
158
|
* Vendor details
|
|
140
159
|
*/
|
|
@@ -195,6 +214,9 @@ export type Vendor = {
|
|
|
195
214
|
paymentResponsibility?: PaymentResponsibility | null | undefined;
|
|
196
215
|
backgroundCheckDateExpires?: string | null | undefined;
|
|
197
216
|
creditBalance?: number | null | undefined;
|
|
217
|
+
targetFacilities?: Array<TargetFacilities> | null | undefined;
|
|
218
|
+
pendingInvoice?: Invoice | number | null | undefined;
|
|
219
|
+
vendorGroups?: Array<VendorGroup | null> | null | undefined;
|
|
198
220
|
};
|
|
199
221
|
|
|
200
222
|
/** @internal */
|
|
@@ -863,6 +885,107 @@ export function paymentResponsibilityFromJSON(
|
|
|
863
885
|
);
|
|
864
886
|
}
|
|
865
887
|
|
|
888
|
+
/** @internal */
|
|
889
|
+
export const TargetFacilities$inboundSchema: z.ZodType<
|
|
890
|
+
TargetFacilities,
|
|
891
|
+
z.ZodTypeDef,
|
|
892
|
+
unknown
|
|
893
|
+
> = z.object({
|
|
894
|
+
id: z.number().int().optional(),
|
|
895
|
+
name: z.nullable(z.string()).optional(),
|
|
896
|
+
});
|
|
897
|
+
|
|
898
|
+
/** @internal */
|
|
899
|
+
export type TargetFacilities$Outbound = {
|
|
900
|
+
id?: number | undefined;
|
|
901
|
+
name?: string | null | undefined;
|
|
902
|
+
};
|
|
903
|
+
|
|
904
|
+
/** @internal */
|
|
905
|
+
export const TargetFacilities$outboundSchema: z.ZodType<
|
|
906
|
+
TargetFacilities$Outbound,
|
|
907
|
+
z.ZodTypeDef,
|
|
908
|
+
TargetFacilities
|
|
909
|
+
> = z.object({
|
|
910
|
+
id: z.number().int().optional(),
|
|
911
|
+
name: z.nullable(z.string()).optional(),
|
|
912
|
+
});
|
|
913
|
+
|
|
914
|
+
/**
|
|
915
|
+
* @internal
|
|
916
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
917
|
+
*/
|
|
918
|
+
export namespace TargetFacilities$ {
|
|
919
|
+
/** @deprecated use `TargetFacilities$inboundSchema` instead. */
|
|
920
|
+
export const inboundSchema = TargetFacilities$inboundSchema;
|
|
921
|
+
/** @deprecated use `TargetFacilities$outboundSchema` instead. */
|
|
922
|
+
export const outboundSchema = TargetFacilities$outboundSchema;
|
|
923
|
+
/** @deprecated use `TargetFacilities$Outbound` instead. */
|
|
924
|
+
export type Outbound = TargetFacilities$Outbound;
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
export function targetFacilitiesToJSON(
|
|
928
|
+
targetFacilities: TargetFacilities,
|
|
929
|
+
): string {
|
|
930
|
+
return JSON.stringify(
|
|
931
|
+
TargetFacilities$outboundSchema.parse(targetFacilities),
|
|
932
|
+
);
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
export function targetFacilitiesFromJSON(
|
|
936
|
+
jsonString: string,
|
|
937
|
+
): SafeParseResult<TargetFacilities, SDKValidationError> {
|
|
938
|
+
return safeParse(
|
|
939
|
+
jsonString,
|
|
940
|
+
(x) => TargetFacilities$inboundSchema.parse(JSON.parse(x)),
|
|
941
|
+
`Failed to parse 'TargetFacilities' from JSON`,
|
|
942
|
+
);
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
/** @internal */
|
|
946
|
+
export const PendingInvoice$inboundSchema: z.ZodType<
|
|
947
|
+
PendingInvoice,
|
|
948
|
+
z.ZodTypeDef,
|
|
949
|
+
unknown
|
|
950
|
+
> = z.union([Invoice$inboundSchema, z.number().int()]);
|
|
951
|
+
|
|
952
|
+
/** @internal */
|
|
953
|
+
export type PendingInvoice$Outbound = Invoice$Outbound | number;
|
|
954
|
+
|
|
955
|
+
/** @internal */
|
|
956
|
+
export const PendingInvoice$outboundSchema: z.ZodType<
|
|
957
|
+
PendingInvoice$Outbound,
|
|
958
|
+
z.ZodTypeDef,
|
|
959
|
+
PendingInvoice
|
|
960
|
+
> = z.union([Invoice$outboundSchema, z.number().int()]);
|
|
961
|
+
|
|
962
|
+
/**
|
|
963
|
+
* @internal
|
|
964
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
965
|
+
*/
|
|
966
|
+
export namespace PendingInvoice$ {
|
|
967
|
+
/** @deprecated use `PendingInvoice$inboundSchema` instead. */
|
|
968
|
+
export const inboundSchema = PendingInvoice$inboundSchema;
|
|
969
|
+
/** @deprecated use `PendingInvoice$outboundSchema` instead. */
|
|
970
|
+
export const outboundSchema = PendingInvoice$outboundSchema;
|
|
971
|
+
/** @deprecated use `PendingInvoice$Outbound` instead. */
|
|
972
|
+
export type Outbound = PendingInvoice$Outbound;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
export function pendingInvoiceToJSON(pendingInvoice: PendingInvoice): string {
|
|
976
|
+
return JSON.stringify(PendingInvoice$outboundSchema.parse(pendingInvoice));
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
export function pendingInvoiceFromJSON(
|
|
980
|
+
jsonString: string,
|
|
981
|
+
): SafeParseResult<PendingInvoice, SDKValidationError> {
|
|
982
|
+
return safeParse(
|
|
983
|
+
jsonString,
|
|
984
|
+
(x) => PendingInvoice$inboundSchema.parse(JSON.parse(x)),
|
|
985
|
+
`Failed to parse 'PendingInvoice' from JSON`,
|
|
986
|
+
);
|
|
987
|
+
}
|
|
988
|
+
|
|
866
989
|
/** @internal */
|
|
867
990
|
export const Vendor$inboundSchema: z.ZodType<Vendor, z.ZodTypeDef, unknown> = z
|
|
868
991
|
.object({
|
|
@@ -905,6 +1028,14 @@ export const Vendor$inboundSchema: z.ZodType<Vendor, z.ZodTypeDef, unknown> = z
|
|
|
905
1028
|
).optional(),
|
|
906
1029
|
background_check_date_expires: z.nullable(z.string()).optional(),
|
|
907
1030
|
credit_balance: z.nullable(z.number()).optional(),
|
|
1031
|
+
target_facilities: z.nullable(
|
|
1032
|
+
z.array(z.lazy(() => TargetFacilities$inboundSchema)),
|
|
1033
|
+
).optional(),
|
|
1034
|
+
pending_invoice: z.nullable(
|
|
1035
|
+
z.union([Invoice$inboundSchema, z.number().int()]),
|
|
1036
|
+
).optional(),
|
|
1037
|
+
vendor_groups: z.nullable(z.array(z.nullable(VendorGroup$inboundSchema)))
|
|
1038
|
+
.optional(),
|
|
908
1039
|
}).transform((v) => {
|
|
909
1040
|
return remap$(v, {
|
|
910
1041
|
"email_recepient": "emailRecepient",
|
|
@@ -925,6 +1056,9 @@ export const Vendor$inboundSchema: z.ZodType<Vendor, z.ZodTypeDef, unknown> = z
|
|
|
925
1056
|
"payment_responsibility": "paymentResponsibility",
|
|
926
1057
|
"background_check_date_expires": "backgroundCheckDateExpires",
|
|
927
1058
|
"credit_balance": "creditBalance",
|
|
1059
|
+
"target_facilities": "targetFacilities",
|
|
1060
|
+
"pending_invoice": "pendingInvoice",
|
|
1061
|
+
"vendor_groups": "vendorGroups",
|
|
928
1062
|
});
|
|
929
1063
|
});
|
|
930
1064
|
|
|
@@ -959,6 +1093,9 @@ export type Vendor$Outbound = {
|
|
|
959
1093
|
payment_responsibility?: PaymentResponsibility$Outbound | null | undefined;
|
|
960
1094
|
background_check_date_expires?: string | null | undefined;
|
|
961
1095
|
credit_balance?: number | null | undefined;
|
|
1096
|
+
target_facilities?: Array<TargetFacilities$Outbound> | null | undefined;
|
|
1097
|
+
pending_invoice?: Invoice$Outbound | number | null | undefined;
|
|
1098
|
+
vendor_groups?: Array<VendorGroup$Outbound | null> | null | undefined;
|
|
962
1099
|
};
|
|
963
1100
|
|
|
964
1101
|
/** @internal */
|
|
@@ -1004,6 +1141,14 @@ export const Vendor$outboundSchema: z.ZodType<
|
|
|
1004
1141
|
).optional(),
|
|
1005
1142
|
backgroundCheckDateExpires: z.nullable(z.string()).optional(),
|
|
1006
1143
|
creditBalance: z.nullable(z.number()).optional(),
|
|
1144
|
+
targetFacilities: z.nullable(
|
|
1145
|
+
z.array(z.lazy(() => TargetFacilities$outboundSchema)),
|
|
1146
|
+
).optional(),
|
|
1147
|
+
pendingInvoice: z.nullable(
|
|
1148
|
+
z.union([Invoice$outboundSchema, z.number().int()]),
|
|
1149
|
+
).optional(),
|
|
1150
|
+
vendorGroups: z.nullable(z.array(z.nullable(VendorGroup$outboundSchema)))
|
|
1151
|
+
.optional(),
|
|
1007
1152
|
}).transform((v) => {
|
|
1008
1153
|
return remap$(v, {
|
|
1009
1154
|
emailRecepient: "email_recepient",
|
|
@@ -1024,6 +1169,9 @@ export const Vendor$outboundSchema: z.ZodType<
|
|
|
1024
1169
|
paymentResponsibility: "payment_responsibility",
|
|
1025
1170
|
backgroundCheckDateExpires: "background_check_date_expires",
|
|
1026
1171
|
creditBalance: "credit_balance",
|
|
1172
|
+
targetFacilities: "target_facilities",
|
|
1173
|
+
pendingInvoice: "pending_invoice",
|
|
1174
|
+
vendorGroups: "vendor_groups",
|
|
1027
1175
|
});
|
|
1028
1176
|
});
|
|
1029
1177
|
|
|
@@ -0,0 +1,86 @@
|
|
|
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Reduced list of attributes of the Vendor Group record
|
|
13
|
+
*/
|
|
14
|
+
export type VendorGroup = {
|
|
15
|
+
id?: number | undefined;
|
|
16
|
+
name?: string | undefined;
|
|
17
|
+
description?: string | null | undefined;
|
|
18
|
+
vendorTypeIds?: string | null | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const VendorGroup$inboundSchema: z.ZodType<
|
|
23
|
+
VendorGroup,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
id: z.number().int().optional(),
|
|
28
|
+
name: z.string().optional(),
|
|
29
|
+
description: z.nullable(z.string()).optional(),
|
|
30
|
+
vendor_type_ids: z.nullable(z.string()).optional(),
|
|
31
|
+
}).transform((v) => {
|
|
32
|
+
return remap$(v, {
|
|
33
|
+
"vendor_type_ids": "vendorTypeIds",
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type VendorGroup$Outbound = {
|
|
39
|
+
id?: number | undefined;
|
|
40
|
+
name?: string | undefined;
|
|
41
|
+
description?: string | null | undefined;
|
|
42
|
+
vendor_type_ids?: string | null | undefined;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const VendorGroup$outboundSchema: z.ZodType<
|
|
47
|
+
VendorGroup$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
VendorGroup
|
|
50
|
+
> = z.object({
|
|
51
|
+
id: z.number().int().optional(),
|
|
52
|
+
name: z.string().optional(),
|
|
53
|
+
description: z.nullable(z.string()).optional(),
|
|
54
|
+
vendorTypeIds: z.nullable(z.string()).optional(),
|
|
55
|
+
}).transform((v) => {
|
|
56
|
+
return remap$(v, {
|
|
57
|
+
vendorTypeIds: "vendor_type_ids",
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
64
|
+
*/
|
|
65
|
+
export namespace VendorGroup$ {
|
|
66
|
+
/** @deprecated use `VendorGroup$inboundSchema` instead. */
|
|
67
|
+
export const inboundSchema = VendorGroup$inboundSchema;
|
|
68
|
+
/** @deprecated use `VendorGroup$outboundSchema` instead. */
|
|
69
|
+
export const outboundSchema = VendorGroup$outboundSchema;
|
|
70
|
+
/** @deprecated use `VendorGroup$Outbound` instead. */
|
|
71
|
+
export type Outbound = VendorGroup$Outbound;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function vendorGroupToJSON(vendorGroup: VendorGroup): string {
|
|
75
|
+
return JSON.stringify(VendorGroup$outboundSchema.parse(vendorGroup));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function vendorGroupFromJSON(
|
|
79
|
+
jsonString: string,
|
|
80
|
+
): SafeParseResult<VendorGroup, SDKValidationError> {
|
|
81
|
+
return safeParse(
|
|
82
|
+
jsonString,
|
|
83
|
+
(x) => VendorGroup$inboundSchema.parse(JSON.parse(x)),
|
|
84
|
+
`Failed to parse 'VendorGroup' from JSON`,
|
|
85
|
+
);
|
|
86
|
+
}
|