@greensecurity/javascript-sdk 0.44.0-beta.57 → 0.44.0-beta.58
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 +19 -1
- package/dist/commonjs/__tests__/reports.test.d.ts +2 -0
- package/dist/commonjs/__tests__/reports.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/reports.test.js +53 -0
- package/dist/commonjs/__tests__/reports.test.js.map +1 -0
- package/dist/commonjs/__tests__/smartBadgeGetPsks.test.d.ts +2 -0
- package/dist/commonjs/__tests__/smartBadgeGetPsks.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/smartBadgeGetPsks.test.js +60 -0
- package/dist/commonjs/__tests__/smartBadgeGetPsks.test.js.map +1 -0
- package/dist/commonjs/__tests__/smartBadgeReportVerifiedPsk.test.d.ts +2 -0
- package/dist/commonjs/__tests__/smartBadgeReportVerifiedPsk.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/smartBadgeReportVerifiedPsk.test.js +46 -0
- package/dist/commonjs/__tests__/smartBadgeReportVerifiedPsk.test.js.map +1 -0
- package/dist/commonjs/__tests__/vendors.test.js +1 -1
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/vendorscans.test.js +44 -0
- package/dist/commonjs/__tests__/vendorscans.test.js.map +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +12 -15
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/admin-funcs/smartBadgeGetPsks.d.ts +3 -0
- package/dist/commonjs/admin-funcs/smartBadgeGetPsks.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/smartBadgeGetPsks.js +23 -0
- package/dist/commonjs/admin-funcs/smartBadgeGetPsks.js.map +1 -0
- package/dist/commonjs/admin-funcs/smartBadgeMacAddress.d.ts +2 -0
- package/dist/commonjs/admin-funcs/smartBadgeMacAddress.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/smartBadgeMacAddress.js +25 -0
- package/dist/commonjs/admin-funcs/smartBadgeMacAddress.js.map +1 -0
- package/dist/commonjs/admin-funcs/smartBadgeReportVerifiedPsk.d.ts +6 -0
- package/dist/commonjs/admin-funcs/smartBadgeReportVerifiedPsk.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/smartBadgeReportVerifiedPsk.js +18 -0
- package/dist/commonjs/admin-funcs/smartBadgeReportVerifiedPsk.js.map +1 -0
- package/dist/commonjs/funcs/reportsGetFullReport.d.ts +43 -0
- package/dist/commonjs/funcs/reportsGetFullReport.d.ts.map +1 -0
- package/dist/commonjs/funcs/reportsGetFullReport.js +148 -0
- package/dist/commonjs/funcs/reportsGetFullReport.js.map +1 -0
- package/dist/commonjs/funcs/reportsInitiateScheduledReport.d.ts +37 -0
- package/dist/commonjs/funcs/reportsInitiateScheduledReport.d.ts.map +1 -0
- package/dist/commonjs/funcs/reportsInitiateScheduledReport.js +139 -0
- package/dist/commonjs/funcs/reportsInitiateScheduledReport.js.map +1 -0
- package/dist/commonjs/funcs/vendorScansVendorScanGpsCheckoutConfig.d.ts +18 -0
- package/dist/commonjs/funcs/vendorScansVendorScanGpsCheckoutConfig.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorScansVendorScanGpsCheckoutConfig.js +124 -0
- package/dist/commonjs/funcs/vendorScansVendorScanGpsCheckoutConfig.js.map +1 -0
- package/dist/commonjs/funcs/vendorScansVendorScanGpsScanOut.d.ts +20 -0
- package/dist/commonjs/funcs/vendorScansVendorScanGpsScanOut.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorScansVendorScanGpsScanOut.js +126 -0
- package/dist/commonjs/funcs/vendorScansVendorScanGpsScanOut.js.map +1 -0
- package/dist/commonjs/funcs/vendorsUpdateVendorDetails.d.ts +14 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorDetails.js +14 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorDetails.js.map +1 -1
- package/dist/commonjs/index.extras.d.ts +4 -0
- package/dist/commonjs/index.extras.d.ts.map +1 -1
- package/dist/commonjs/index.extras.js +5 -1
- package/dist/commonjs/index.extras.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/components/facility.d.ts +10 -0
- package/dist/commonjs/models/components/facility.d.ts.map +1 -1
- package/dist/commonjs/models/components/facility.js +8 -0
- package/dist/commonjs/models/components/facility.js.map +1 -1
- package/dist/commonjs/models/components/zone.d.ts +7 -0
- package/dist/commonjs/models/components/zone.d.ts.map +1 -1
- package/dist/commonjs/models/components/zone.js +8 -0
- package/dist/commonjs/models/components/zone.js.map +1 -1
- package/dist/commonjs/models/errors/apivalidationerrorresponse.d.ts +38 -0
- package/dist/commonjs/models/errors/apivalidationerrorresponse.d.ts.map +1 -0
- package/dist/commonjs/models/errors/apivalidationerrorresponse.js +78 -0
- package/dist/commonjs/models/errors/apivalidationerrorresponse.js.map +1 -0
- package/dist/commonjs/models/errors/index.d.ts +2 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +2 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/errors/unprocessableentityorvalidationerror.d.ts +13 -0
- package/dist/commonjs/models/errors/unprocessableentityorvalidationerror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/unprocessableentityorvalidationerror.js +20 -0
- package/dist/commonjs/models/errors/unprocessableentityorvalidationerror.js.map +1 -0
- package/dist/commonjs/models/operations/getfullreport.d.ts +73 -0
- package/dist/commonjs/models/operations/getfullreport.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getfullreport.js +107 -0
- package/dist/commonjs/models/operations/getfullreport.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/initiatescheduledreport.d.ts +30 -0
- package/dist/commonjs/models/operations/initiatescheduledreport.d.ts.map +1 -0
- package/dist/commonjs/models/operations/initiatescheduledreport.js +69 -0
- package/dist/commonjs/models/operations/initiatescheduledreport.js.map +1 -0
- package/dist/commonjs/models/operations/vendorscangpscheckoutconfig.d.ts +57 -0
- package/dist/commonjs/models/operations/vendorscangpscheckoutconfig.d.ts.map +1 -0
- package/dist/commonjs/models/operations/vendorscangpscheckoutconfig.js +81 -0
- package/dist/commonjs/models/operations/vendorscangpscheckoutconfig.js.map +1 -0
- package/dist/commonjs/models/operations/vendorscangpsscanout.d.ts +81 -0
- package/dist/commonjs/models/operations/vendorscangpsscanout.d.ts.map +1 -0
- package/dist/commonjs/models/operations/vendorscangpsscanout.js +96 -0
- package/dist/commonjs/models/operations/vendorscangpsscanout.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/reportsGetFullReport.core.d.ts +12 -0
- package/dist/commonjs/react-query/reportsGetFullReport.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/reportsGetFullReport.core.js +39 -0
- package/dist/commonjs/react-query/reportsGetFullReport.core.js.map +1 -0
- package/dist/commonjs/react-query/reportsGetFullReport.d.ts +75 -0
- package/dist/commonjs/react-query/reportsGetFullReport.d.ts.map +1 -0
- package/dist/commonjs/react-query/reportsGetFullReport.js +111 -0
- package/dist/commonjs/react-query/reportsGetFullReport.js.map +1 -0
- package/dist/commonjs/react-query/reportsInitiateScheduledReport.d.ts +46 -0
- package/dist/commonjs/react-query/reportsInitiateScheduledReport.d.ts.map +1 -0
- package/dist/commonjs/react-query/reportsInitiateScheduledReport.js +68 -0
- package/dist/commonjs/react-query/reportsInitiateScheduledReport.js.map +1 -0
- package/dist/commonjs/react-query/vendorScansVendorScanGpsCheckoutConfig.core.d.ts +12 -0
- package/dist/commonjs/react-query/vendorScansVendorScanGpsCheckoutConfig.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorScansVendorScanGpsCheckoutConfig.core.js +39 -0
- package/dist/commonjs/react-query/vendorScansVendorScanGpsCheckoutConfig.core.js.map +1 -0
- package/dist/commonjs/react-query/vendorScansVendorScanGpsCheckoutConfig.d.ts +29 -0
- package/dist/commonjs/react-query/vendorScansVendorScanGpsCheckoutConfig.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorScansVendorScanGpsCheckoutConfig.js +69 -0
- package/dist/commonjs/react-query/vendorScansVendorScanGpsCheckoutConfig.js.map +1 -0
- package/dist/commonjs/react-query/vendorScansVendorScanGpsScanOut.d.ts +31 -0
- package/dist/commonjs/react-query/vendorScansVendorScanGpsScanOut.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorScansVendorScanGpsScanOut.js +53 -0
- package/dist/commonjs/react-query/vendorScansVendorScanGpsScanOut.js.map +1 -0
- package/dist/commonjs/react-query/vendorsUpdateVendorDetails.d.ts +14 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorDetails.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorDetails.js +14 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorDetails.js.map +1 -1
- package/dist/commonjs/sdk/reports.d.ts +59 -0
- package/dist/commonjs/sdk/reports.d.ts.map +1 -0
- package/dist/commonjs/sdk/reports.js +72 -0
- package/dist/commonjs/sdk/reports.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/vendors.d.ts +14 -1
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +14 -1
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/commonjs/sdk/vendorscans.d.ts +16 -0
- package/dist/commonjs/sdk/vendorscans.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendorscans.js +22 -0
- package/dist/commonjs/sdk/vendorscans.js.map +1 -1
- package/dist/esm/__tests__/reports.test.d.ts +2 -0
- package/dist/esm/__tests__/reports.test.d.ts.map +1 -0
- package/dist/esm/__tests__/reports.test.js +51 -0
- package/dist/esm/__tests__/reports.test.js.map +1 -0
- package/dist/esm/__tests__/smartBadgeGetPsks.test.d.ts +2 -0
- package/dist/esm/__tests__/smartBadgeGetPsks.test.d.ts.map +1 -0
- package/dist/esm/__tests__/smartBadgeGetPsks.test.js +58 -0
- package/dist/esm/__tests__/smartBadgeGetPsks.test.js.map +1 -0
- package/dist/esm/__tests__/smartBadgeReportVerifiedPsk.test.d.ts +2 -0
- package/dist/esm/__tests__/smartBadgeReportVerifiedPsk.test.d.ts.map +1 -0
- package/dist/esm/__tests__/smartBadgeReportVerifiedPsk.test.js +44 -0
- package/dist/esm/__tests__/smartBadgeReportVerifiedPsk.test.js.map +1 -0
- package/dist/esm/__tests__/vendors.test.js +1 -1
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/vendorscans.test.js +44 -0
- package/dist/esm/__tests__/vendorscans.test.js.map +1 -1
- package/dist/esm/__tests__/webhooks.test.js +1 -1
- package/dist/esm/__tests__/webhooks.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +12 -15
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/admin-funcs/smartBadgeGetPsks.d.ts +3 -0
- package/dist/esm/admin-funcs/smartBadgeGetPsks.d.ts.map +1 -0
- package/dist/esm/admin-funcs/smartBadgeGetPsks.js +20 -0
- package/dist/esm/admin-funcs/smartBadgeGetPsks.js.map +1 -0
- package/dist/esm/admin-funcs/smartBadgeMacAddress.d.ts +2 -0
- package/dist/esm/admin-funcs/smartBadgeMacAddress.d.ts.map +1 -0
- package/dist/esm/admin-funcs/smartBadgeMacAddress.js +22 -0
- package/dist/esm/admin-funcs/smartBadgeMacAddress.js.map +1 -0
- package/dist/esm/admin-funcs/smartBadgeReportVerifiedPsk.d.ts +6 -0
- package/dist/esm/admin-funcs/smartBadgeReportVerifiedPsk.d.ts.map +1 -0
- package/dist/esm/admin-funcs/smartBadgeReportVerifiedPsk.js +15 -0
- package/dist/esm/admin-funcs/smartBadgeReportVerifiedPsk.js.map +1 -0
- package/dist/esm/funcs/reportsGetFullReport.d.ts +43 -0
- package/dist/esm/funcs/reportsGetFullReport.d.ts.map +1 -0
- package/dist/esm/funcs/reportsGetFullReport.js +112 -0
- package/dist/esm/funcs/reportsGetFullReport.js.map +1 -0
- package/dist/esm/funcs/reportsInitiateScheduledReport.d.ts +37 -0
- package/dist/esm/funcs/reportsInitiateScheduledReport.d.ts.map +1 -0
- package/dist/esm/funcs/reportsInitiateScheduledReport.js +103 -0
- package/dist/esm/funcs/reportsInitiateScheduledReport.js.map +1 -0
- package/dist/esm/funcs/vendorScansVendorScanGpsCheckoutConfig.d.ts +18 -0
- package/dist/esm/funcs/vendorScansVendorScanGpsCheckoutConfig.d.ts.map +1 -0
- package/dist/esm/funcs/vendorScansVendorScanGpsCheckoutConfig.js +88 -0
- package/dist/esm/funcs/vendorScansVendorScanGpsCheckoutConfig.js.map +1 -0
- package/dist/esm/funcs/vendorScansVendorScanGpsScanOut.d.ts +20 -0
- package/dist/esm/funcs/vendorScansVendorScanGpsScanOut.d.ts.map +1 -0
- package/dist/esm/funcs/vendorScansVendorScanGpsScanOut.js +90 -0
- package/dist/esm/funcs/vendorScansVendorScanGpsScanOut.js.map +1 -0
- package/dist/esm/funcs/vendorsUpdateVendorDetails.d.ts +14 -1
- package/dist/esm/funcs/vendorsUpdateVendorDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorDetails.js +14 -1
- package/dist/esm/funcs/vendorsUpdateVendorDetails.js.map +1 -1
- package/dist/esm/index.extras.d.ts +4 -0
- package/dist/esm/index.extras.d.ts.map +1 -1
- package/dist/esm/index.extras.js +5 -1
- package/dist/esm/index.extras.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/components/facility.d.ts +10 -0
- package/dist/esm/models/components/facility.d.ts.map +1 -1
- package/dist/esm/models/components/facility.js +8 -0
- package/dist/esm/models/components/facility.js.map +1 -1
- package/dist/esm/models/components/zone.d.ts +7 -0
- package/dist/esm/models/components/zone.d.ts.map +1 -1
- package/dist/esm/models/components/zone.js +8 -0
- package/dist/esm/models/components/zone.js.map +1 -1
- package/dist/esm/models/errors/apivalidationerrorresponse.d.ts +38 -0
- package/dist/esm/models/errors/apivalidationerrorresponse.d.ts.map +1 -0
- package/dist/esm/models/errors/apivalidationerrorresponse.js +41 -0
- package/dist/esm/models/errors/apivalidationerrorresponse.js.map +1 -0
- package/dist/esm/models/errors/index.d.ts +2 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +2 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/errors/unprocessableentityorvalidationerror.d.ts +13 -0
- package/dist/esm/models/errors/unprocessableentityorvalidationerror.d.ts.map +1 -0
- package/dist/esm/models/errors/unprocessableentityorvalidationerror.js +16 -0
- package/dist/esm/models/errors/unprocessableentityorvalidationerror.js.map +1 -0
- package/dist/esm/models/operations/getfullreport.d.ts +73 -0
- package/dist/esm/models/operations/getfullreport.d.ts.map +1 -0
- package/dist/esm/models/operations/getfullreport.js +68 -0
- package/dist/esm/models/operations/getfullreport.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/initiatescheduledreport.d.ts +30 -0
- package/dist/esm/models/operations/initiatescheduledreport.d.ts.map +1 -0
- package/dist/esm/models/operations/initiatescheduledreport.js +31 -0
- package/dist/esm/models/operations/initiatescheduledreport.js.map +1 -0
- package/dist/esm/models/operations/vendorscangpscheckoutconfig.d.ts +57 -0
- package/dist/esm/models/operations/vendorscangpscheckoutconfig.d.ts.map +1 -0
- package/dist/esm/models/operations/vendorscangpscheckoutconfig.js +43 -0
- package/dist/esm/models/operations/vendorscangpscheckoutconfig.js.map +1 -0
- package/dist/esm/models/operations/vendorscangpsscanout.d.ts +81 -0
- package/dist/esm/models/operations/vendorscangpsscanout.d.ts.map +1 -0
- package/dist/esm/models/operations/vendorscangpsscanout.js +57 -0
- package/dist/esm/models/operations/vendorscangpsscanout.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/reportsGetFullReport.core.d.ts +12 -0
- package/dist/esm/react-query/reportsGetFullReport.core.d.ts.map +1 -0
- package/dist/esm/react-query/reportsGetFullReport.core.js +34 -0
- package/dist/esm/react-query/reportsGetFullReport.core.js.map +1 -0
- package/dist/esm/react-query/reportsGetFullReport.d.ts +75 -0
- package/dist/esm/react-query/reportsGetFullReport.d.ts.map +1 -0
- package/dist/esm/react-query/reportsGetFullReport.js +101 -0
- package/dist/esm/react-query/reportsGetFullReport.js.map +1 -0
- package/dist/esm/react-query/reportsInitiateScheduledReport.d.ts +46 -0
- package/dist/esm/react-query/reportsInitiateScheduledReport.d.ts.map +1 -0
- package/dist/esm/react-query/reportsInitiateScheduledReport.js +63 -0
- package/dist/esm/react-query/reportsInitiateScheduledReport.js.map +1 -0
- package/dist/esm/react-query/vendorScansVendorScanGpsCheckoutConfig.core.d.ts +12 -0
- package/dist/esm/react-query/vendorScansVendorScanGpsCheckoutConfig.core.d.ts.map +1 -0
- package/dist/esm/react-query/vendorScansVendorScanGpsCheckoutConfig.core.js +34 -0
- package/dist/esm/react-query/vendorScansVendorScanGpsCheckoutConfig.core.js.map +1 -0
- package/dist/esm/react-query/vendorScansVendorScanGpsCheckoutConfig.d.ts +29 -0
- package/dist/esm/react-query/vendorScansVendorScanGpsCheckoutConfig.d.ts.map +1 -0
- package/dist/esm/react-query/vendorScansVendorScanGpsCheckoutConfig.js +59 -0
- package/dist/esm/react-query/vendorScansVendorScanGpsCheckoutConfig.js.map +1 -0
- package/dist/esm/react-query/vendorScansVendorScanGpsScanOut.d.ts +31 -0
- package/dist/esm/react-query/vendorScansVendorScanGpsScanOut.d.ts.map +1 -0
- package/dist/esm/react-query/vendorScansVendorScanGpsScanOut.js +48 -0
- package/dist/esm/react-query/vendorScansVendorScanGpsScanOut.js.map +1 -0
- package/dist/esm/react-query/vendorsUpdateVendorDetails.d.ts +14 -1
- package/dist/esm/react-query/vendorsUpdateVendorDetails.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsUpdateVendorDetails.js +14 -1
- package/dist/esm/react-query/vendorsUpdateVendorDetails.js.map +1 -1
- package/dist/esm/sdk/reports.d.ts +59 -0
- package/dist/esm/sdk/reports.d.ts.map +1 -0
- package/dist/esm/sdk/reports.js +68 -0
- package/dist/esm/sdk/reports.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/vendors.d.ts +14 -1
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +14 -1
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/dist/esm/sdk/vendorscans.d.ts +16 -0
- package/dist/esm/sdk/vendorscans.d.ts.map +1 -1
- package/dist/esm/sdk/vendorscans.js +22 -0
- package/dist/esm/sdk/vendorscans.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/reports.test.ts +57 -0
- package/src/__tests__/smartBadgeGetPsks.test.ts +76 -0
- package/src/__tests__/smartBadgeReportVerifiedPsk.test.ts +61 -0
- package/src/__tests__/vendors.test.ts +1 -1
- package/src/__tests__/vendorscans.test.ts +50 -0
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +12 -15
- package/src/admin-funcs/smartBadgeGetPsks.ts +23 -0
- package/src/admin-funcs/smartBadgeMacAddress.ts +25 -0
- package/src/admin-funcs/smartBadgeReportVerifiedPsk.ts +25 -0
- package/src/funcs/reportsGetFullReport.ts +204 -0
- package/src/funcs/reportsInitiateScheduledReport.ts +205 -0
- package/src/funcs/vendorScansVendorScanGpsCheckoutConfig.ts +180 -0
- package/src/funcs/vendorScansVendorScanGpsScanOut.ts +182 -0
- package/src/funcs/vendorsUpdateVendorDetails.ts +14 -1
- package/src/index.extras.ts +5 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/facility.ts +18 -0
- package/src/models/components/zone.ts +15 -0
- package/src/models/errors/apivalidationerrorresponse.ts +71 -0
- package/src/models/errors/index.ts +2 -0
- package/src/models/errors/unprocessableentityorvalidationerror.ts +45 -0
- package/src/models/operations/getfullreport.ts +159 -0
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/initiatescheduledreport.ts +87 -0
- package/src/models/operations/vendorscangpscheckoutconfig.ts +118 -0
- package/src/models/operations/vendorscangpsscanout.ts +167 -0
- package/src/react-query/index.ts +4 -0
- package/src/react-query/reportsGetFullReport.core.ts +76 -0
- package/src/react-query/reportsGetFullReport.ts +190 -0
- package/src/react-query/reportsInitiateScheduledReport.ts +133 -0
- package/src/react-query/vendorScansVendorScanGpsCheckoutConfig.core.ts +78 -0
- package/src/react-query/vendorScansVendorScanGpsCheckoutConfig.ts +150 -0
- package/src/react-query/vendorScansVendorScanGpsScanOut.ts +117 -0
- package/src/react-query/vendorsUpdateVendorDetails.ts +14 -1
- package/src/sdk/reports.ts +85 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/vendors.ts +14 -1
- package/src/sdk/vendorscans.ts +40 -0
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { GreenSecurityCore } from "../core.js";
|
|
6
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Automatic GPS check-out
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Reports the device's current position and scans the vendor out when it lies outside the geofence returned by the GPS check-out configuration endpoint. The distance is always recomputed server-side. Reporting the same exit twice is a no-op.
|
|
34
|
+
*
|
|
35
|
+
* When an accuracy radius is supplied it is discounted from the distance before the comparison. The vendor is checked out only when the entire error margin clears the geofence AND the reported accuracy is at most 328 ft (100 m). When only half the margin clears it — or the margin clears it entirely but is wider than that ceiling — the visit is left open and the vendor is sent a reminder to check out instead, once per check-in; the response then reports `success: false` with `outcome: possibly_left`.
|
|
36
|
+
*/
|
|
37
|
+
export function vendorScansVendorScanGpsScanOut(
|
|
38
|
+
client: GreenSecurityCore,
|
|
39
|
+
request: operations.VendorScanGpsScanOutRequest,
|
|
40
|
+
options?: RequestOptions,
|
|
41
|
+
): APIPromise<
|
|
42
|
+
Result<
|
|
43
|
+
operations.VendorScanGpsScanOutVendorScanGpsScanOutOk,
|
|
44
|
+
| errors.ApiErrorResponse
|
|
45
|
+
| GreenSecurityError
|
|
46
|
+
| ResponseValidationError
|
|
47
|
+
| ConnectionError
|
|
48
|
+
| RequestAbortedError
|
|
49
|
+
| RequestTimeoutError
|
|
50
|
+
| InvalidRequestError
|
|
51
|
+
| UnexpectedClientError
|
|
52
|
+
| SDKValidationError
|
|
53
|
+
>
|
|
54
|
+
> {
|
|
55
|
+
return new APIPromise($do(
|
|
56
|
+
client,
|
|
57
|
+
request,
|
|
58
|
+
options,
|
|
59
|
+
));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
async function $do(
|
|
63
|
+
client: GreenSecurityCore,
|
|
64
|
+
request: operations.VendorScanGpsScanOutRequest,
|
|
65
|
+
options?: RequestOptions,
|
|
66
|
+
): Promise<
|
|
67
|
+
[
|
|
68
|
+
Result<
|
|
69
|
+
operations.VendorScanGpsScanOutVendorScanGpsScanOutOk,
|
|
70
|
+
| errors.ApiErrorResponse
|
|
71
|
+
| GreenSecurityError
|
|
72
|
+
| ResponseValidationError
|
|
73
|
+
| ConnectionError
|
|
74
|
+
| RequestAbortedError
|
|
75
|
+
| RequestTimeoutError
|
|
76
|
+
| InvalidRequestError
|
|
77
|
+
| UnexpectedClientError
|
|
78
|
+
| SDKValidationError
|
|
79
|
+
>,
|
|
80
|
+
APICall,
|
|
81
|
+
]
|
|
82
|
+
> {
|
|
83
|
+
const parsed = safeParse(
|
|
84
|
+
request,
|
|
85
|
+
(value) =>
|
|
86
|
+
operations.VendorScanGpsScanOutRequest$outboundSchema.parse(value),
|
|
87
|
+
"Input validation failed",
|
|
88
|
+
);
|
|
89
|
+
if (!parsed.ok) {
|
|
90
|
+
return [parsed, { status: "invalid" }];
|
|
91
|
+
}
|
|
92
|
+
const payload = parsed.value;
|
|
93
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
94
|
+
|
|
95
|
+
const pathParams = {
|
|
96
|
+
id: encodeSimple("id", payload.id, {
|
|
97
|
+
explode: false,
|
|
98
|
+
charEncoding: "percent",
|
|
99
|
+
}),
|
|
100
|
+
};
|
|
101
|
+
const path = pathToFunc("/vendor-scans/{id}/gps-scan-out")(pathParams);
|
|
102
|
+
|
|
103
|
+
const headers = new Headers(compactMap({
|
|
104
|
+
"Content-Type": "application/json",
|
|
105
|
+
Accept: "application/json",
|
|
106
|
+
}));
|
|
107
|
+
|
|
108
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
109
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
110
|
+
|
|
111
|
+
const context = {
|
|
112
|
+
options: client._options,
|
|
113
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
114
|
+
operationID: "vendorScanGpsScanOut",
|
|
115
|
+
oAuth2Scopes: null,
|
|
116
|
+
|
|
117
|
+
resolvedSecurity: requestSecurity,
|
|
118
|
+
|
|
119
|
+
securitySource: client._options.security,
|
|
120
|
+
retryConfig: options?.retries
|
|
121
|
+
|| client._options.retryConfig
|
|
122
|
+
|| { strategy: "none" },
|
|
123
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
const requestRes = client._createRequest(context, {
|
|
127
|
+
security: requestSecurity,
|
|
128
|
+
method: "POST",
|
|
129
|
+
baseURL: options?.serverURL,
|
|
130
|
+
path: path,
|
|
131
|
+
headers: headers,
|
|
132
|
+
body: body,
|
|
133
|
+
userAgent: client._options.userAgent,
|
|
134
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
135
|
+
}, options);
|
|
136
|
+
if (!requestRes.ok) {
|
|
137
|
+
return [requestRes, { status: "invalid" }];
|
|
138
|
+
}
|
|
139
|
+
const req = requestRes.value;
|
|
140
|
+
|
|
141
|
+
const doResult = await client._do(req, {
|
|
142
|
+
context,
|
|
143
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
144
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
145
|
+
retryConfig: context.retryConfig,
|
|
146
|
+
retryCodes: context.retryCodes,
|
|
147
|
+
});
|
|
148
|
+
if (!doResult.ok) {
|
|
149
|
+
return [doResult, { status: "request-error", request: req }];
|
|
150
|
+
}
|
|
151
|
+
const response = doResult.value;
|
|
152
|
+
|
|
153
|
+
const responseFields = {
|
|
154
|
+
HttpMeta: { Response: response, Request: req },
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
const [result] = await M.match<
|
|
158
|
+
operations.VendorScanGpsScanOutVendorScanGpsScanOutOk,
|
|
159
|
+
| errors.ApiErrorResponse
|
|
160
|
+
| GreenSecurityError
|
|
161
|
+
| ResponseValidationError
|
|
162
|
+
| ConnectionError
|
|
163
|
+
| RequestAbortedError
|
|
164
|
+
| RequestTimeoutError
|
|
165
|
+
| InvalidRequestError
|
|
166
|
+
| UnexpectedClientError
|
|
167
|
+
| SDKValidationError
|
|
168
|
+
>(
|
|
169
|
+
M.json(
|
|
170
|
+
200,
|
|
171
|
+
operations.VendorScanGpsScanOutVendorScanGpsScanOutOk$inboundSchema,
|
|
172
|
+
),
|
|
173
|
+
M.jsonErr([400, 401, 403, 404, 422], errors.ApiErrorResponse$inboundSchema),
|
|
174
|
+
M.fail("4XX"),
|
|
175
|
+
M.fail([500, "5XX"]),
|
|
176
|
+
)(response, req, { extraFields: responseFields });
|
|
177
|
+
if (!result.ok) {
|
|
178
|
+
return [result, { status: "complete", request: req, response }];
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
return [result, { status: "complete", request: req, response }];
|
|
182
|
+
}
|
|
@@ -31,7 +31,20 @@ import * as types$ from "../types/primitives.js";
|
|
|
31
31
|
* Update vendor details
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* Update an individual vendor's profile — title, location, supervisor, email
|
|
34
|
+
* Update an individual vendor's profile — title, location, supervisor, email
|
|
35
|
+
* preferences, primary department, and primary sales state. A company manager
|
|
36
|
+
* can also remove the vendor from their company by sending `company_id: null`.
|
|
37
|
+
*
|
|
38
|
+
* From `location` this endpoint reads only `timezone`, `address1`, `address2`,
|
|
39
|
+
* `city`, `state`, `zip`, `phone`, `mobile_phone` and `fax`. The `address` and
|
|
40
|
+
* `country` properties of the shared `UserLocation` schema are ignored here and
|
|
41
|
+
* updating them is not supported.
|
|
42
|
+
*
|
|
43
|
+
* For `title`, the `supervisor` fields, and every `location` field except
|
|
44
|
+
* `timezone`, the value sent is the value stored: omit a field to leave it
|
|
45
|
+
* unchanged, or send an empty string to clear it. `timezone` is the one
|
|
46
|
+
* exception — it accepts only the values in its enum, so send one of those to
|
|
47
|
+
* change it and omit it to leave it unchanged.
|
|
35
48
|
*
|
|
36
49
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
37
50
|
*/
|
package/src/index.extras.ts
CHANGED
|
@@ -32,6 +32,8 @@ import { submitCompany } from "./admin-funcs/registerCompanies.js";
|
|
|
32
32
|
|
|
33
33
|
import { smartBadgePairBadge } from "./admin-funcs/smartBadgePairBadge.js";
|
|
34
34
|
import { smartBadgeUnpairBadge } from "./admin-funcs/smartBadgeUnpairBadge.js";
|
|
35
|
+
import { smartBadgeGetPsks } from "./admin-funcs/smartBadgeGetPsks.js";
|
|
36
|
+
import { smartBadgeReportVerifiedPsk } from "./admin-funcs/smartBadgeReportVerifiedPsk.js";
|
|
35
37
|
|
|
36
38
|
import { notifyVendorCredentialFileUploaded } from "./admin-funcs/notifyVendorCredentialFileUploaded.js";
|
|
37
39
|
import { companyManagerGetPaymentForm } from "./admin-funcs/companyManagerGetPaymentForm.js";
|
|
@@ -82,7 +84,9 @@ export const __internal = {
|
|
|
82
84
|
|
|
83
85
|
smartBadge: {
|
|
84
86
|
pairBadge: smartBadgePairBadge,
|
|
85
|
-
unpairBadge: smartBadgeUnpairBadge
|
|
87
|
+
unpairBadge: smartBadgeUnpairBadge,
|
|
88
|
+
getPsks: smartBadgeGetPsks,
|
|
89
|
+
reportVerifiedPsk: smartBadgeReportVerifiedPsk
|
|
86
90
|
},
|
|
87
91
|
|
|
88
92
|
vendorCredentialFile: {
|
package/src/lib/config.ts
CHANGED
|
@@ -80,8 +80,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
80
80
|
export const SDK_METADATA = {
|
|
81
81
|
language: "typescript",
|
|
82
82
|
openapiDocVersion: "0.43.5",
|
|
83
|
-
sdkVersion: "0.44.0-beta.
|
|
84
|
-
genVersion: "2.
|
|
83
|
+
sdkVersion: "0.44.0-beta.58",
|
|
84
|
+
genVersion: "2.926.2",
|
|
85
85
|
userAgent:
|
|
86
|
-
"speakeasy-sdk/typescript 0.44.0-beta.
|
|
86
|
+
"speakeasy-sdk/typescript 0.44.0-beta.58 2.926.2 0.43.5 @greensecurity/javascript-sdk",
|
|
87
87
|
} as const;
|
|
@@ -142,9 +142,17 @@ export type VendorGuestPolicy = {
|
|
|
142
142
|
export type FacilityVendorPolicy = {
|
|
143
143
|
allowDepartmentOther: boolean;
|
|
144
144
|
allowFood: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* Whether automatic GPS check-out is enabled for the whole facility. When it is, it supersedes the per-zone allow_gps_checkout setting for every zone in the facility. Only takes effect once gps_checkout_radius and the facility coordinates are all set.
|
|
147
|
+
*/
|
|
148
|
+
allowGpsCheckout: boolean;
|
|
145
149
|
allowNonKioskCheckouts: boolean;
|
|
146
150
|
autoScanOutViolation: boolean;
|
|
147
151
|
contractorGuestRequireEmail: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* Radius in feet around the facility coordinates used for facility-level automatic GPS check-out.
|
|
154
|
+
*/
|
|
155
|
+
gpsCheckoutRadius?: number | null | undefined;
|
|
148
156
|
visitorCheckinRequirePhone: boolean;
|
|
149
157
|
vendorTypes: Array<FacilityVendorType>;
|
|
150
158
|
};
|
|
@@ -803,18 +811,22 @@ export const FacilityVendorPolicy$inboundSchema: z.ZodType<
|
|
|
803
811
|
> = z.object({
|
|
804
812
|
allow_department_other: types.boolean(),
|
|
805
813
|
allow_food: types.boolean(),
|
|
814
|
+
allow_gps_checkout: types.boolean(),
|
|
806
815
|
allow_non_kiosk_checkouts: types.boolean(),
|
|
807
816
|
auto_scan_out_violation: types.boolean(),
|
|
808
817
|
contractor_guest_require_email: types.boolean(),
|
|
818
|
+
gps_checkout_radius: z.nullable(types.number()).optional(),
|
|
809
819
|
visitor_checkin_require_phone: types.boolean(),
|
|
810
820
|
vendor_types: z.array(FacilityVendorType$inboundSchema),
|
|
811
821
|
}).transform((v) => {
|
|
812
822
|
return remap$(v, {
|
|
813
823
|
"allow_department_other": "allowDepartmentOther",
|
|
814
824
|
"allow_food": "allowFood",
|
|
825
|
+
"allow_gps_checkout": "allowGpsCheckout",
|
|
815
826
|
"allow_non_kiosk_checkouts": "allowNonKioskCheckouts",
|
|
816
827
|
"auto_scan_out_violation": "autoScanOutViolation",
|
|
817
828
|
"contractor_guest_require_email": "contractorGuestRequireEmail",
|
|
829
|
+
"gps_checkout_radius": "gpsCheckoutRadius",
|
|
818
830
|
"visitor_checkin_require_phone": "visitorCheckinRequirePhone",
|
|
819
831
|
"vendor_types": "vendorTypes",
|
|
820
832
|
});
|
|
@@ -823,9 +835,11 @@ export const FacilityVendorPolicy$inboundSchema: z.ZodType<
|
|
|
823
835
|
export type FacilityVendorPolicy$Outbound = {
|
|
824
836
|
allow_department_other: boolean;
|
|
825
837
|
allow_food: boolean;
|
|
838
|
+
allow_gps_checkout: boolean;
|
|
826
839
|
allow_non_kiosk_checkouts: boolean;
|
|
827
840
|
auto_scan_out_violation: boolean;
|
|
828
841
|
contractor_guest_require_email: boolean;
|
|
842
|
+
gps_checkout_radius?: number | null | undefined;
|
|
829
843
|
visitor_checkin_require_phone: boolean;
|
|
830
844
|
vendor_types: Array<FacilityVendorType$Outbound>;
|
|
831
845
|
};
|
|
@@ -838,18 +852,22 @@ export const FacilityVendorPolicy$outboundSchema: z.ZodType<
|
|
|
838
852
|
> = z.object({
|
|
839
853
|
allowDepartmentOther: z.boolean(),
|
|
840
854
|
allowFood: z.boolean(),
|
|
855
|
+
allowGpsCheckout: z.boolean(),
|
|
841
856
|
allowNonKioskCheckouts: z.boolean(),
|
|
842
857
|
autoScanOutViolation: z.boolean(),
|
|
843
858
|
contractorGuestRequireEmail: z.boolean(),
|
|
859
|
+
gpsCheckoutRadius: z.nullable(z.number().int()).optional(),
|
|
844
860
|
visitorCheckinRequirePhone: z.boolean(),
|
|
845
861
|
vendorTypes: z.array(FacilityVendorType$outboundSchema),
|
|
846
862
|
}).transform((v) => {
|
|
847
863
|
return remap$(v, {
|
|
848
864
|
allowDepartmentOther: "allow_department_other",
|
|
849
865
|
allowFood: "allow_food",
|
|
866
|
+
allowGpsCheckout: "allow_gps_checkout",
|
|
850
867
|
allowNonKioskCheckouts: "allow_non_kiosk_checkouts",
|
|
851
868
|
autoScanOutViolation: "auto_scan_out_violation",
|
|
852
869
|
contractorGuestRequireEmail: "contractor_guest_require_email",
|
|
870
|
+
gpsCheckoutRadius: "gps_checkout_radius",
|
|
853
871
|
visitorCheckinRequirePhone: "visitor_checkin_require_phone",
|
|
854
872
|
vendorTypes: "vendor_types",
|
|
855
873
|
});
|
|
@@ -98,6 +98,11 @@ export type GpsCheckinPolicy = {
|
|
|
98
98
|
latitude?: string | null | undefined;
|
|
99
99
|
longitude?: string | null | undefined;
|
|
100
100
|
gpsCheckinRadius?: number | null | undefined;
|
|
101
|
+
allowGpsCheckout?: boolean | null | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* Radius in feet around the zone coordinates used for zone-level automatic GPS check-out.
|
|
104
|
+
*/
|
|
105
|
+
gpsCheckoutRadius?: number | null | undefined;
|
|
101
106
|
geocodeError?: string | null | undefined;
|
|
102
107
|
};
|
|
103
108
|
|
|
@@ -646,10 +651,14 @@ export const GpsCheckinPolicy$inboundSchema: z.ZodType<
|
|
|
646
651
|
latitude: z.nullable(types.string()).optional(),
|
|
647
652
|
longitude: z.nullable(types.string()).optional(),
|
|
648
653
|
gps_checkin_radius: z.nullable(types.number()).optional(),
|
|
654
|
+
allow_gps_checkout: z.nullable(types.boolean()).optional(),
|
|
655
|
+
gps_checkout_radius: z.nullable(types.number()).optional(),
|
|
649
656
|
geocode_error: z.nullable(types.string()).optional(),
|
|
650
657
|
}).transform((v) => {
|
|
651
658
|
return remap$(v, {
|
|
652
659
|
"gps_checkin_radius": "gpsCheckinRadius",
|
|
660
|
+
"allow_gps_checkout": "allowGpsCheckout",
|
|
661
|
+
"gps_checkout_radius": "gpsCheckoutRadius",
|
|
653
662
|
"geocode_error": "geocodeError",
|
|
654
663
|
});
|
|
655
664
|
});
|
|
@@ -658,6 +667,8 @@ export type GpsCheckinPolicy$Outbound = {
|
|
|
658
667
|
latitude?: string | null | undefined;
|
|
659
668
|
longitude?: string | null | undefined;
|
|
660
669
|
gps_checkin_radius?: number | null | undefined;
|
|
670
|
+
allow_gps_checkout?: boolean | null | undefined;
|
|
671
|
+
gps_checkout_radius?: number | null | undefined;
|
|
661
672
|
geocode_error?: string | null | undefined;
|
|
662
673
|
};
|
|
663
674
|
|
|
@@ -670,10 +681,14 @@ export const GpsCheckinPolicy$outboundSchema: z.ZodType<
|
|
|
670
681
|
latitude: z.nullable(z.string()).optional(),
|
|
671
682
|
longitude: z.nullable(z.string()).optional(),
|
|
672
683
|
gpsCheckinRadius: z.nullable(z.number().int()).optional(),
|
|
684
|
+
allowGpsCheckout: z.nullable(z.boolean()).optional(),
|
|
685
|
+
gpsCheckoutRadius: z.nullable(z.number().int()).optional(),
|
|
673
686
|
geocodeError: z.nullable(z.string()).optional(),
|
|
674
687
|
}).transform((v) => {
|
|
675
688
|
return remap$(v, {
|
|
676
689
|
gpsCheckinRadius: "gps_checkin_radius",
|
|
690
|
+
allowGpsCheckout: "allow_gps_checkout",
|
|
691
|
+
gpsCheckoutRadius: "gps_checkout_radius",
|
|
677
692
|
geocodeError: "geocode_error",
|
|
678
693
|
});
|
|
679
694
|
});
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import * as types from "../../types/primitives.js";
|
|
7
|
+
import { GreenSecurityError } from "./greensecurityerror.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Returned when path, query or body parameters fail validation, which happens before the endpoint's own logic runs. Note that `error` is an array of field-to-messages objects here, not the plain string carried by `ApiErrorResponse` — a client that models the 422 body must handle both shapes.
|
|
11
|
+
*/
|
|
12
|
+
export type ApiValidationErrorResponseData = {
|
|
13
|
+
/**
|
|
14
|
+
* One entry per validated section (path/query parameters, then request body). Each entry maps a field name to the list of messages that field failed on.
|
|
15
|
+
*/
|
|
16
|
+
error: Array<{ [k: string]: Array<string> }>;
|
|
17
|
+
success?: boolean | undefined;
|
|
18
|
+
code?: number | null | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Returned when path, query or body parameters fail validation, which happens before the endpoint's own logic runs. Note that `error` is an array of field-to-messages objects here, not the plain string carried by `ApiErrorResponse` — a client that models the 422 body must handle both shapes.
|
|
23
|
+
*/
|
|
24
|
+
export class ApiValidationErrorResponse extends GreenSecurityError {
|
|
25
|
+
/**
|
|
26
|
+
* One entry per validated section (path/query parameters, then request body). Each entry maps a field name to the list of messages that field failed on.
|
|
27
|
+
*/
|
|
28
|
+
error: Array<{ [k: string]: Array<string> }>;
|
|
29
|
+
success?: boolean | undefined;
|
|
30
|
+
code?: number | null | undefined;
|
|
31
|
+
|
|
32
|
+
/** The original data that was passed to this error instance. */
|
|
33
|
+
data$: ApiValidationErrorResponseData;
|
|
34
|
+
|
|
35
|
+
constructor(
|
|
36
|
+
err: ApiValidationErrorResponseData,
|
|
37
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
38
|
+
) {
|
|
39
|
+
const message = "message" in err && typeof err.message === "string"
|
|
40
|
+
? err.message
|
|
41
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
42
|
+
super(message, httpMeta);
|
|
43
|
+
this.data$ = err;
|
|
44
|
+
this.error = err.error;
|
|
45
|
+
if (err.success != null) this.success = err.success;
|
|
46
|
+
if (err.code != null) this.code = err.code;
|
|
47
|
+
|
|
48
|
+
this.name = "ApiValidationErrorResponse";
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const ApiValidationErrorResponse$inboundSchema: z.ZodType<
|
|
54
|
+
ApiValidationErrorResponse,
|
|
55
|
+
z.ZodTypeDef,
|
|
56
|
+
unknown
|
|
57
|
+
> = z.object({
|
|
58
|
+
error: z.array(z.record(z.array(types.string()))),
|
|
59
|
+
success: types.optional(types.boolean()),
|
|
60
|
+
code: z.nullable(types.number()).optional(),
|
|
61
|
+
request$: z.instanceof(Request),
|
|
62
|
+
response$: z.instanceof(Response),
|
|
63
|
+
body$: z.string(),
|
|
64
|
+
})
|
|
65
|
+
.transform((v) => {
|
|
66
|
+
return new ApiValidationErrorResponse(v, {
|
|
67
|
+
request: v.request$,
|
|
68
|
+
response: v.response$,
|
|
69
|
+
body: v.body$,
|
|
70
|
+
});
|
|
71
|
+
});
|
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
export * from "./apierror.js";
|
|
6
6
|
export * from "./apierrorresponse.js";
|
|
7
|
+
export * from "./apivalidationerrorresponse.js";
|
|
7
8
|
export * from "./greensecurityerror.js";
|
|
8
9
|
export * from "./httpclienterrors.js";
|
|
9
10
|
export * from "./responsevalidationerror.js";
|
|
10
11
|
export * from "./sdkvalidationerror.js";
|
|
12
|
+
export * from "./unprocessableentityorvalidationerror.js";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { smartUnion } from "../../types/smartUnion.js";
|
|
9
|
+
import {
|
|
10
|
+
ApiErrorResponse,
|
|
11
|
+
ApiErrorResponse$inboundSchema,
|
|
12
|
+
} from "./apierrorresponse.js";
|
|
13
|
+
import {
|
|
14
|
+
ApiValidationErrorResponse,
|
|
15
|
+
ApiValidationErrorResponse$inboundSchema,
|
|
16
|
+
} from "./apivalidationerrorresponse.js";
|
|
17
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The request could not be processed. Carries either the standard error envelope (a string `error`, used when the endpoint's own logic rejects the request) or the validation envelope (an array of field-to-messages objects, used when a parameter fails validation before the endpoint runs).
|
|
21
|
+
*/
|
|
22
|
+
export type UnprocessableEntityOrValidationError =
|
|
23
|
+
| ApiErrorResponse
|
|
24
|
+
| ApiValidationErrorResponse;
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const UnprocessableEntityOrValidationError$inboundSchema: z.ZodType<
|
|
28
|
+
UnprocessableEntityOrValidationError,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = smartUnion([
|
|
32
|
+
ApiErrorResponse$inboundSchema,
|
|
33
|
+
ApiValidationErrorResponse$inboundSchema,
|
|
34
|
+
]);
|
|
35
|
+
|
|
36
|
+
export function unprocessableEntityOrValidationErrorFromJSON(
|
|
37
|
+
jsonString: string,
|
|
38
|
+
): SafeParseResult<UnprocessableEntityOrValidationError, SDKValidationError> {
|
|
39
|
+
return safeParse(
|
|
40
|
+
jsonString,
|
|
41
|
+
(x) =>
|
|
42
|
+
UnprocessableEntityOrValidationError$inboundSchema.parse(JSON.parse(x)),
|
|
43
|
+
`Failed to parse 'UnprocessableEntityOrValidationError' from JSON`,
|
|
44
|
+
);
|
|
45
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
10
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
11
|
+
import * as types from "../../types/primitives.js";
|
|
12
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
|
+
|
|
14
|
+
export type GetFullReportRequest = {
|
|
15
|
+
/**
|
|
16
|
+
* The report run to look up.
|
|
17
|
+
*/
|
|
18
|
+
fullReportId: number;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Lifecycle status of the run. A `200` only ever carries `completed`; the
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* other values are the states a run passes through or ends in, which this
|
|
26
|
+
* endpoint surfaces as `409` (pending, processing) or `422` (canceled).
|
|
27
|
+
*/
|
|
28
|
+
export const GetFullReportStatus = {
|
|
29
|
+
Pending: "pending",
|
|
30
|
+
Processing: "processing",
|
|
31
|
+
Completed: "completed",
|
|
32
|
+
Canceled: "canceled",
|
|
33
|
+
} as const;
|
|
34
|
+
/**
|
|
35
|
+
* Lifecycle status of the run. A `200` only ever carries `completed`; the
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
* other values are the states a run passes through or ends in, which this
|
|
39
|
+
* endpoint surfaces as `409` (pending, processing) or `422` (canceled).
|
|
40
|
+
*/
|
|
41
|
+
export type GetFullReportStatus = OpenEnum<typeof GetFullReportStatus>;
|
|
42
|
+
|
|
43
|
+
export type FullReport = {
|
|
44
|
+
id: number;
|
|
45
|
+
reportClass: string;
|
|
46
|
+
dataType: string;
|
|
47
|
+
dateSubmitted: Date | null;
|
|
48
|
+
userId: number | null;
|
|
49
|
+
/**
|
|
50
|
+
* Lifecycle status of the run. A `200` only ever carries `completed`; the
|
|
51
|
+
*
|
|
52
|
+
* @remarks
|
|
53
|
+
* other values are the states a run passes through or ends in, which this
|
|
54
|
+
* endpoint surfaces as `409` (pending, processing) or `422` (canceled).
|
|
55
|
+
*/
|
|
56
|
+
status: GetFullReportStatus;
|
|
57
|
+
/**
|
|
58
|
+
* Short-lived signed download URL, valid for 5 minutes.
|
|
59
|
+
*/
|
|
60
|
+
reportUrl: string;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The report exists and has finished generating.
|
|
65
|
+
*/
|
|
66
|
+
export type GetFullReportGetFullReportOk = {
|
|
67
|
+
fullReport: FullReport;
|
|
68
|
+
success: boolean;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export type GetFullReportRequest$Outbound = {
|
|
73
|
+
full_report_id: number;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const GetFullReportRequest$outboundSchema: z.ZodType<
|
|
78
|
+
GetFullReportRequest$Outbound,
|
|
79
|
+
z.ZodTypeDef,
|
|
80
|
+
GetFullReportRequest
|
|
81
|
+
> = z.object({
|
|
82
|
+
fullReportId: z.number().int(),
|
|
83
|
+
}).transform((v) => {
|
|
84
|
+
return remap$(v, {
|
|
85
|
+
fullReportId: "full_report_id",
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
export function getFullReportRequestToJSON(
|
|
90
|
+
getFullReportRequest: GetFullReportRequest,
|
|
91
|
+
): string {
|
|
92
|
+
return JSON.stringify(
|
|
93
|
+
GetFullReportRequest$outboundSchema.parse(getFullReportRequest),
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/** @internal */
|
|
98
|
+
export const GetFullReportStatus$inboundSchema: z.ZodType<
|
|
99
|
+
GetFullReportStatus,
|
|
100
|
+
z.ZodTypeDef,
|
|
101
|
+
unknown
|
|
102
|
+
> = openEnums.inboundSchema(GetFullReportStatus);
|
|
103
|
+
|
|
104
|
+
/** @internal */
|
|
105
|
+
export const FullReport$inboundSchema: z.ZodType<
|
|
106
|
+
FullReport,
|
|
107
|
+
z.ZodTypeDef,
|
|
108
|
+
unknown
|
|
109
|
+
> = z.object({
|
|
110
|
+
id: types.number(),
|
|
111
|
+
report_class: types.string(),
|
|
112
|
+
data_type: types.string(),
|
|
113
|
+
date_submitted: types.nullable(types.date()),
|
|
114
|
+
user_id: types.nullable(types.number()),
|
|
115
|
+
status: GetFullReportStatus$inboundSchema,
|
|
116
|
+
report_url: types.string(),
|
|
117
|
+
}).transform((v) => {
|
|
118
|
+
return remap$(v, {
|
|
119
|
+
"report_class": "reportClass",
|
|
120
|
+
"data_type": "dataType",
|
|
121
|
+
"date_submitted": "dateSubmitted",
|
|
122
|
+
"user_id": "userId",
|
|
123
|
+
"report_url": "reportUrl",
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
export function fullReportFromJSON(
|
|
128
|
+
jsonString: string,
|
|
129
|
+
): SafeParseResult<FullReport, SDKValidationError> {
|
|
130
|
+
return safeParse(
|
|
131
|
+
jsonString,
|
|
132
|
+
(x) => FullReport$inboundSchema.parse(JSON.parse(x)),
|
|
133
|
+
`Failed to parse 'FullReport' from JSON`,
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/** @internal */
|
|
138
|
+
export const GetFullReportGetFullReportOk$inboundSchema: z.ZodType<
|
|
139
|
+
GetFullReportGetFullReportOk,
|
|
140
|
+
z.ZodTypeDef,
|
|
141
|
+
unknown
|
|
142
|
+
> = z.object({
|
|
143
|
+
full_report: z.lazy(() => FullReport$inboundSchema),
|
|
144
|
+
success: types.boolean(),
|
|
145
|
+
}).transform((v) => {
|
|
146
|
+
return remap$(v, {
|
|
147
|
+
"full_report": "fullReport",
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
export function getFullReportGetFullReportOkFromJSON(
|
|
152
|
+
jsonString: string,
|
|
153
|
+
): SafeParseResult<GetFullReportGetFullReportOk, SDKValidationError> {
|
|
154
|
+
return safeParse(
|
|
155
|
+
jsonString,
|
|
156
|
+
(x) => GetFullReportGetFullReportOk$inboundSchema.parse(JSON.parse(x)),
|
|
157
|
+
`Failed to parse 'GetFullReportGetFullReportOk' from JSON`,
|
|
158
|
+
);
|
|
159
|
+
}
|
|
@@ -50,6 +50,7 @@ export * from "./getevent.js";
|
|
|
50
50
|
export * from "./getfacility.js";
|
|
51
51
|
export * from "./getfacilityvendorsexportstatus.js";
|
|
52
52
|
export * from "./getfhirconfig.js";
|
|
53
|
+
export * from "./getfullreport.js";
|
|
53
54
|
export * from "./getinvoice.js";
|
|
54
55
|
export * from "./getinvoicesexportstatus.js";
|
|
55
56
|
export * from "./getlinkedusers.js";
|
|
@@ -72,6 +73,7 @@ export * from "./getvendorsexportstatus.js";
|
|
|
72
73
|
export * from "./getvendortargetfacilities.js";
|
|
73
74
|
export * from "./getvendoruploadhistory.js";
|
|
74
75
|
export * from "./getwebhookendpoint.js";
|
|
76
|
+
export * from "./initiatescheduledreport.js";
|
|
75
77
|
export * from "./invoicesexport.js";
|
|
76
78
|
export * from "./listalerts.js";
|
|
77
79
|
export * from "./listallwebhookendpoints.js";
|
|
@@ -141,5 +143,7 @@ export * from "./updatevendorfield.js";
|
|
|
141
143
|
export * from "./updatevendormanagedbycompany.js";
|
|
142
144
|
export * from "./updatevendorpaymentresponsibility.js";
|
|
143
145
|
export * from "./updatevendorscrubdetails.js";
|
|
146
|
+
export * from "./vendorscangpscheckoutconfig.js";
|
|
147
|
+
export * from "./vendorscangpsscanout.js";
|
|
144
148
|
export * from "./vendorscanout.js";
|
|
145
149
|
export * from "./vendorsexport.js";
|