@greensecurity/javascript-sdk 0.37.10 → 0.37.12
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 +13 -1
- package/bin/mcp-server.js +1427 -591
- package/bin/mcp-server.js.map +33 -21
- 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 +16 -4
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- 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 +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- 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 +8 -2
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- 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/expand.d.ts +15 -0
- package/dist/commonjs/models/components/expand.d.ts.map +1 -1
- package/dist/commonjs/models/components/expand.js +5 -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 +3 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +3 -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/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 +3 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +3 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- 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 +3 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +3 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- 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/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__/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 +16 -4
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- 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 +2 -2
- package/dist/esm/lib/config.js +2 -2
- 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 +8 -2
- package/dist/esm/mcp-server/server.js.map +1 -1
- 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/expand.d.ts +15 -0
- package/dist/esm/models/components/expand.d.ts.map +1 -1
- package/dist/esm/models/components/expand.js +5 -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 +3 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +3 -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/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 +3 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +3 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- 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 +3 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +3 -0
- package/dist/esm/react-query/index.js.map +1 -1
- 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/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__/systems.test.ts +47 -0
- package/src/__tests__/vendors.test.ts +55 -0
- package/src/__tests__/zones.test.ts +16 -4
- 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 +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +8 -2
- 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/expand.ts +5 -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 +3 -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/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 +3 -0
- package/src/models/operations/listsystems.ts +250 -0
- package/src/models/operations/listvendortypes.ts +236 -0
- package/src/react-query/index.ts +3 -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/sdk.ts +6 -0
- package/src/sdk/systems.ts +31 -0
- package/src/sdk/vendors.ts +62 -17
|
@@ -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
|
+
}
|
|
@@ -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";
|
|
@@ -36,6 +37,7 @@ export * from "./listorsearchdepartments.js";
|
|
|
36
37
|
export * from "./listorsearchfacilities.js";
|
|
37
38
|
export * from "./listorsearchsecurityzones.js";
|
|
38
39
|
export * from "./listorsearchsupportarticles.js";
|
|
40
|
+
export * from "./listsystems.js";
|
|
39
41
|
export * from "./listvendoradditionalfacilityfields.js";
|
|
40
42
|
export * from "./listvendorcredentialdatarequests.js";
|
|
41
43
|
export * from "./listvendorcredentialfiles.js";
|
|
@@ -49,6 +51,7 @@ export * from "./listvendormanagedbycompanies.js";
|
|
|
49
51
|
export * from "./listvendorscrubdetails.js";
|
|
50
52
|
export * from "./listvendorscrubpackages.js";
|
|
51
53
|
export * from "./listvendorscrubpurchases.js";
|
|
54
|
+
export * from "./listvendortypes.js";
|
|
52
55
|
export * from "./magiclink.js";
|
|
53
56
|
export * from "./makepayment.js";
|
|
54
57
|
export * from "./password.js";
|