@greensecurity/javascript-sdk 0.44.0-beta.56 → 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__/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__/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
|
@@ -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";
|
|
@@ -0,0 +1,87 @@
|
|
|
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 { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type InitiateScheduledReportRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* The scheduled report to generate a run for.
|
|
15
|
+
*/
|
|
16
|
+
scheduledReportId: number;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* A new report run was queued for generation.
|
|
21
|
+
*/
|
|
22
|
+
export type InitiateScheduledReportInitiateScheduledReportOk = {
|
|
23
|
+
/**
|
|
24
|
+
* URL to poll for the generated report's status via `GET /reports/{full_report_id}`.
|
|
25
|
+
*/
|
|
26
|
+
pollUrl: string;
|
|
27
|
+
success: boolean;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export type InitiateScheduledReportRequest$Outbound = {
|
|
32
|
+
scheduled_report_id: number;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const InitiateScheduledReportRequest$outboundSchema: z.ZodType<
|
|
37
|
+
InitiateScheduledReportRequest$Outbound,
|
|
38
|
+
z.ZodTypeDef,
|
|
39
|
+
InitiateScheduledReportRequest
|
|
40
|
+
> = z.object({
|
|
41
|
+
scheduledReportId: z.number().int(),
|
|
42
|
+
}).transform((v) => {
|
|
43
|
+
return remap$(v, {
|
|
44
|
+
scheduledReportId: "scheduled_report_id",
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export function initiateScheduledReportRequestToJSON(
|
|
49
|
+
initiateScheduledReportRequest: InitiateScheduledReportRequest,
|
|
50
|
+
): string {
|
|
51
|
+
return JSON.stringify(
|
|
52
|
+
InitiateScheduledReportRequest$outboundSchema.parse(
|
|
53
|
+
initiateScheduledReportRequest,
|
|
54
|
+
),
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const InitiateScheduledReportInitiateScheduledReportOk$inboundSchema:
|
|
60
|
+
z.ZodType<
|
|
61
|
+
InitiateScheduledReportInitiateScheduledReportOk,
|
|
62
|
+
z.ZodTypeDef,
|
|
63
|
+
unknown
|
|
64
|
+
> = z.object({
|
|
65
|
+
poll_url: types.string(),
|
|
66
|
+
success: types.boolean(),
|
|
67
|
+
}).transform((v) => {
|
|
68
|
+
return remap$(v, {
|
|
69
|
+
"poll_url": "pollUrl",
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
export function initiateScheduledReportInitiateScheduledReportOkFromJSON(
|
|
74
|
+
jsonString: string,
|
|
75
|
+
): SafeParseResult<
|
|
76
|
+
InitiateScheduledReportInitiateScheduledReportOk,
|
|
77
|
+
SDKValidationError
|
|
78
|
+
> {
|
|
79
|
+
return safeParse(
|
|
80
|
+
jsonString,
|
|
81
|
+
(x) =>
|
|
82
|
+
InitiateScheduledReportInitiateScheduledReportOk$inboundSchema.parse(
|
|
83
|
+
JSON.parse(x),
|
|
84
|
+
),
|
|
85
|
+
`Failed to parse 'InitiateScheduledReportInitiateScheduledReportOk' from JSON`,
|
|
86
|
+
);
|
|
87
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
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 VendorScanGpsCheckoutConfigRequest = {
|
|
15
|
+
/**
|
|
16
|
+
* The identifier of the object
|
|
17
|
+
*/
|
|
18
|
+
id: number;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Which level the geofence came from.
|
|
23
|
+
*/
|
|
24
|
+
export const Level = {
|
|
25
|
+
Facility: "facility",
|
|
26
|
+
Zone: "zone",
|
|
27
|
+
} as const;
|
|
28
|
+
/**
|
|
29
|
+
* Which level the geofence came from.
|
|
30
|
+
*/
|
|
31
|
+
export type Level = OpenEnum<typeof Level>;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The request was successful, and the server has returned the requested resource in the response body.
|
|
35
|
+
*/
|
|
36
|
+
export type VendorScanGpsCheckoutConfigVendorScanGpsCheckoutConfigOk = {
|
|
37
|
+
/**
|
|
38
|
+
* Whether automatic GPS check-out is configured for this scan's location. The remaining fields are null when false.
|
|
39
|
+
*/
|
|
40
|
+
enabled: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Which level the geofence came from.
|
|
43
|
+
*/
|
|
44
|
+
level: Level | null;
|
|
45
|
+
latitude: number | null;
|
|
46
|
+
longitude: number | null;
|
|
47
|
+
/**
|
|
48
|
+
* Geofence radius in feet.
|
|
49
|
+
*/
|
|
50
|
+
radiusFt: number | null;
|
|
51
|
+
/**
|
|
52
|
+
* Name of the facility or zone the vendor is checked in to, for display in the check-out notification.
|
|
53
|
+
*/
|
|
54
|
+
locationName: string | null;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export type VendorScanGpsCheckoutConfigRequest$Outbound = {
|
|
59
|
+
id: number;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const VendorScanGpsCheckoutConfigRequest$outboundSchema: z.ZodType<
|
|
64
|
+
VendorScanGpsCheckoutConfigRequest$Outbound,
|
|
65
|
+
z.ZodTypeDef,
|
|
66
|
+
VendorScanGpsCheckoutConfigRequest
|
|
67
|
+
> = z.object({
|
|
68
|
+
id: z.number().int(),
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
export function vendorScanGpsCheckoutConfigRequestToJSON(
|
|
72
|
+
vendorScanGpsCheckoutConfigRequest: VendorScanGpsCheckoutConfigRequest,
|
|
73
|
+
): string {
|
|
74
|
+
return JSON.stringify(
|
|
75
|
+
VendorScanGpsCheckoutConfigRequest$outboundSchema.parse(
|
|
76
|
+
vendorScanGpsCheckoutConfigRequest,
|
|
77
|
+
),
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/** @internal */
|
|
82
|
+
export const Level$inboundSchema: z.ZodType<Level, z.ZodTypeDef, unknown> =
|
|
83
|
+
openEnums.inboundSchema(Level);
|
|
84
|
+
|
|
85
|
+
/** @internal */
|
|
86
|
+
export const VendorScanGpsCheckoutConfigVendorScanGpsCheckoutConfigOk$inboundSchema:
|
|
87
|
+
z.ZodType<
|
|
88
|
+
VendorScanGpsCheckoutConfigVendorScanGpsCheckoutConfigOk,
|
|
89
|
+
z.ZodTypeDef,
|
|
90
|
+
unknown
|
|
91
|
+
> = z.object({
|
|
92
|
+
enabled: types.boolean(),
|
|
93
|
+
level: types.nullable(Level$inboundSchema),
|
|
94
|
+
latitude: types.nullable(types.number()),
|
|
95
|
+
longitude: types.nullable(types.number()),
|
|
96
|
+
radius_ft: types.nullable(types.number()),
|
|
97
|
+
location_name: types.nullable(types.string()),
|
|
98
|
+
}).transform((v) => {
|
|
99
|
+
return remap$(v, {
|
|
100
|
+
"radius_ft": "radiusFt",
|
|
101
|
+
"location_name": "locationName",
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
export function vendorScanGpsCheckoutConfigVendorScanGpsCheckoutConfigOkFromJSON(
|
|
106
|
+
jsonString: string,
|
|
107
|
+
): SafeParseResult<
|
|
108
|
+
VendorScanGpsCheckoutConfigVendorScanGpsCheckoutConfigOk,
|
|
109
|
+
SDKValidationError
|
|
110
|
+
> {
|
|
111
|
+
return safeParse(
|
|
112
|
+
jsonString,
|
|
113
|
+
(x) =>
|
|
114
|
+
VendorScanGpsCheckoutConfigVendorScanGpsCheckoutConfigOk$inboundSchema
|
|
115
|
+
.parse(JSON.parse(x)),
|
|
116
|
+
`Failed to parse 'VendorScanGpsCheckoutConfigVendorScanGpsCheckoutConfigOk' from JSON`,
|
|
117
|
+
);
|
|
118
|
+
}
|