@greensecurity/javascript-sdk 0.43.1-beta.124 → 0.43.1-beta.126
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/FUNCTIONS.md +2 -2
- package/README.md +12 -0
- package/dist/commonjs/__tests__/lookups.test.d.ts +2 -0
- package/dist/commonjs/__tests__/lookups.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/lookups.test.js +29 -0
- package/dist/commonjs/__tests__/lookups.test.js.map +1 -0
- package/dist/commonjs/__tests__/paymentprofile.test.js +13 -0
- package/dist/commonjs/__tests__/paymentprofile.test.js.map +1 -1
- package/dist/commonjs/__tests__/users.test.js +1 -0
- package/dist/commonjs/__tests__/users.test.js.map +1 -1
- package/dist/commonjs/__tests__/vendors.test.js +59 -2
- package/dist/commonjs/__tests__/vendors.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 +4 -29
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/funcs/lookupsListLookupSystems.d.ts +27 -0
- package/dist/commonjs/funcs/lookupsListLookupSystems.d.ts.map +1 -0
- package/dist/commonjs/funcs/lookupsListLookupSystems.js +133 -0
- package/dist/commonjs/funcs/lookupsListLookupSystems.js.map +1 -0
- package/dist/commonjs/funcs/paymentProfileDeletePaymentProfile.d.ts +22 -0
- package/dist/commonjs/funcs/paymentProfileDeletePaymentProfile.d.ts.map +1 -0
- package/dist/commonjs/funcs/paymentProfileDeletePaymentProfile.js +113 -0
- package/dist/commonjs/funcs/paymentProfileDeletePaymentProfile.js.map +1 -0
- package/dist/commonjs/funcs/usersUpdateUserProfilePicture.d.ts +1 -1
- package/dist/commonjs/funcs/usersUpdateUserProfilePicture.js +1 -1
- package/dist/commonjs/funcs/vendorsCreateVendorByCompanyManager.d.ts +24 -0
- package/dist/commonjs/funcs/vendorsCreateVendorByCompanyManager.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorsCreateVendorByCompanyManager.js +125 -0
- package/dist/commonjs/funcs/vendorsCreateVendorByCompanyManager.js.map +1 -0
- package/dist/commonjs/funcs/vendorsListVendorAdditionalFacilityFields.d.ts +10 -6
- package/dist/commonjs/funcs/vendorsListVendorAdditionalFacilityFields.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorAdditionalFacilityFields.js +50 -12
- package/dist/commonjs/funcs/vendorsListVendorAdditionalFacilityFields.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/models/components/expand.d.ts +1 -0
- package/dist/commonjs/models/components/expand.d.ts.map +1 -1
- package/dist/commonjs/models/components/expand.js +1 -0
- package/dist/commonjs/models/components/expand.js.map +1 -1
- package/dist/commonjs/models/components/facility.d.ts +4 -4
- package/dist/commonjs/models/components/facility.d.ts.map +1 -1
- package/dist/commonjs/models/components/facility.js +6 -6
- package/dist/commonjs/models/components/facility.js.map +1 -1
- package/dist/commonjs/models/components/facilitycalendarsummary.d.ts +1 -0
- package/dist/commonjs/models/components/facilitycalendarsummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/facilitycalendarsummary.js +1 -0
- package/dist/commonjs/models/components/facilitycalendarsummary.js.map +1 -1
- package/dist/commonjs/models/components/facilitysummary.d.ts +1 -0
- package/dist/commonjs/models/components/facilitysummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/facilitysummary.js +1 -0
- package/dist/commonjs/models/components/facilitysummary.js.map +1 -1
- package/dist/commonjs/models/components/systemsummary.d.ts +9 -0
- package/dist/commonjs/models/components/systemsummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/systemsummary.js +17 -1
- package/dist/commonjs/models/components/systemsummary.js.map +1 -1
- package/dist/commonjs/models/operations/createvendorbycompanymanager.d.ts +122 -0
- package/dist/commonjs/models/operations/createvendorbycompanymanager.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createvendorbycompanymanager.js +93 -0
- package/dist/commonjs/models/operations/createvendorbycompanymanager.js.map +1 -0
- package/dist/commonjs/models/operations/deletepaymentprofile.d.ts +11 -0
- package/dist/commonjs/models/operations/deletepaymentprofile.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deletepaymentprofile.js +49 -0
- package/dist/commonjs/models/operations/deletepaymentprofile.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +3 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +3 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listlocations.d.ts +4 -4
- package/dist/commonjs/models/operations/listlocations.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listlocations.js +6 -7
- package/dist/commonjs/models/operations/listlocations.js.map +1 -1
- package/dist/commonjs/models/operations/listlookupsystems.d.ts +53 -0
- package/dist/commonjs/models/operations/listlookupsystems.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listlookupsystems.js +77 -0
- package/dist/commonjs/models/operations/listlookupsystems.js.map +1 -0
- package/dist/commonjs/models/operations/listvendoradditionalfacilityfields.d.ts +50 -1
- package/dist/commonjs/models/operations/listvendoradditionalfacilityfields.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendoradditionalfacilityfields.js +34 -2
- package/dist/commonjs/models/operations/listvendoradditionalfacilityfields.js.map +1 -1
- package/dist/commonjs/models/operations/securityzonecheckin.d.ts +4 -4
- package/dist/commonjs/models/operations/securityzonecheckin.d.ts.map +1 -1
- package/dist/commonjs/models/operations/securityzonecheckin.js +5 -5
- package/dist/commonjs/models/operations/securityzonecheckin.js.map +1 -1
- package/dist/commonjs/models/operations/updateuserprofilepicture.d.ts +6 -2
- package/dist/commonjs/models/operations/updateuserprofilepicture.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updateuserprofilepicture.js +5 -0
- package/dist/commonjs/models/operations/updateuserprofilepicture.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +3 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +3 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/lookupsListLookupSystems.core.d.ts +15 -0
- package/dist/commonjs/react-query/lookupsListLookupSystems.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/lookupsListLookupSystems.core.js +43 -0
- package/dist/commonjs/react-query/lookupsListLookupSystems.core.js.map +1 -0
- package/dist/commonjs/react-query/lookupsListLookupSystems.d.ts +53 -0
- package/dist/commonjs/react-query/lookupsListLookupSystems.d.ts.map +1 -0
- package/dist/commonjs/react-query/lookupsListLookupSystems.js +80 -0
- package/dist/commonjs/react-query/lookupsListLookupSystems.js.map +1 -0
- package/dist/commonjs/react-query/paymentProfileDeletePaymentProfile.d.ts +30 -0
- package/dist/commonjs/react-query/paymentProfileDeletePaymentProfile.d.ts.map +1 -0
- package/dist/commonjs/react-query/paymentProfileDeletePaymentProfile.js +54 -0
- package/dist/commonjs/react-query/paymentProfileDeletePaymentProfile.js.map +1 -0
- package/dist/commonjs/react-query/usersUpdateUserProfilePicture.d.ts +1 -1
- package/dist/commonjs/react-query/usersUpdateUserProfilePicture.js +1 -1
- package/dist/commonjs/react-query/vendorsCreateVendorByCompanyManager.d.ts +33 -0
- package/dist/commonjs/react-query/vendorsCreateVendorByCompanyManager.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsCreateVendorByCompanyManager.js +56 -0
- package/dist/commonjs/react-query/vendorsCreateVendorByCompanyManager.js.map +1 -0
- package/dist/commonjs/react-query/vendorsListVendorAdditionalFacilityFields.core.d.ts +26 -2
- package/dist/commonjs/react-query/vendorsListVendorAdditionalFacilityFields.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsListVendorAdditionalFacilityFields.core.js +56 -2
- package/dist/commonjs/react-query/vendorsListVendorAdditionalFacilityFields.core.js.map +1 -1
- package/dist/commonjs/react-query/vendorsListVendorAdditionalFacilityFields.d.ts +67 -16
- package/dist/commonjs/react-query/vendorsListVendorAdditionalFacilityFields.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsListVendorAdditionalFacilityFields.js +66 -11
- package/dist/commonjs/react-query/vendorsListVendorAdditionalFacilityFields.js.map +1 -1
- package/dist/commonjs/sdk/lookups.d.ts +19 -0
- package/dist/commonjs/sdk/lookups.d.ts.map +1 -0
- package/dist/commonjs/sdk/lookups.js +30 -0
- package/dist/commonjs/sdk/lookups.js.map +1 -0
- package/dist/commonjs/sdk/paymentprofile.d.ts +10 -0
- package/dist/commonjs/sdk/paymentprofile.d.ts.map +1 -1
- package/dist/commonjs/sdk/paymentprofile.js +12 -0
- package/dist/commonjs/sdk/paymentprofile.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/users.d.ts +1 -1
- package/dist/commonjs/sdk/users.js +1 -1
- package/dist/commonjs/sdk/vendors.d.ts +20 -6
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +21 -6
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/commonjs/types/primitives.d.ts +1 -1
- package/dist/commonjs/types/primitives.d.ts.map +1 -1
- package/dist/commonjs/types/primitives.js +1 -2
- package/dist/commonjs/types/primitives.js.map +1 -1
- package/dist/esm/__tests__/lookups.test.d.ts +2 -0
- package/dist/esm/__tests__/lookups.test.d.ts.map +1 -0
- package/dist/esm/__tests__/lookups.test.js +27 -0
- package/dist/esm/__tests__/lookups.test.js.map +1 -0
- package/dist/esm/__tests__/paymentprofile.test.js +13 -0
- package/dist/esm/__tests__/paymentprofile.test.js.map +1 -1
- package/dist/esm/__tests__/users.test.js +1 -0
- package/dist/esm/__tests__/users.test.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +59 -2
- package/dist/esm/__tests__/vendors.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 +4 -29
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/funcs/lookupsListLookupSystems.d.ts +27 -0
- package/dist/esm/funcs/lookupsListLookupSystems.d.ts.map +1 -0
- package/dist/esm/funcs/lookupsListLookupSystems.js +97 -0
- package/dist/esm/funcs/lookupsListLookupSystems.js.map +1 -0
- package/dist/esm/funcs/paymentProfileDeletePaymentProfile.d.ts +22 -0
- package/dist/esm/funcs/paymentProfileDeletePaymentProfile.d.ts.map +1 -0
- package/dist/esm/funcs/paymentProfileDeletePaymentProfile.js +77 -0
- package/dist/esm/funcs/paymentProfileDeletePaymentProfile.js.map +1 -0
- package/dist/esm/funcs/usersUpdateUserProfilePicture.d.ts +1 -1
- package/dist/esm/funcs/usersUpdateUserProfilePicture.js +1 -1
- package/dist/esm/funcs/vendorsCreateVendorByCompanyManager.d.ts +24 -0
- package/dist/esm/funcs/vendorsCreateVendorByCompanyManager.d.ts.map +1 -0
- package/dist/esm/funcs/vendorsCreateVendorByCompanyManager.js +89 -0
- package/dist/esm/funcs/vendorsCreateVendorByCompanyManager.js.map +1 -0
- package/dist/esm/funcs/vendorsListVendorAdditionalFacilityFields.d.ts +10 -6
- package/dist/esm/funcs/vendorsListVendorAdditionalFacilityFields.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsListVendorAdditionalFacilityFields.js +51 -13
- package/dist/esm/funcs/vendorsListVendorAdditionalFacilityFields.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/models/components/expand.d.ts +1 -0
- package/dist/esm/models/components/expand.d.ts.map +1 -1
- package/dist/esm/models/components/expand.js +1 -0
- package/dist/esm/models/components/expand.js.map +1 -1
- package/dist/esm/models/components/facility.d.ts +4 -4
- package/dist/esm/models/components/facility.d.ts.map +1 -1
- package/dist/esm/models/components/facility.js +4 -4
- package/dist/esm/models/components/facility.js.map +1 -1
- package/dist/esm/models/components/facilitycalendarsummary.d.ts +1 -0
- package/dist/esm/models/components/facilitycalendarsummary.d.ts.map +1 -1
- package/dist/esm/models/components/facilitycalendarsummary.js +1 -0
- package/dist/esm/models/components/facilitycalendarsummary.js.map +1 -1
- package/dist/esm/models/components/facilitysummary.d.ts +1 -0
- package/dist/esm/models/components/facilitysummary.d.ts.map +1 -1
- package/dist/esm/models/components/facilitysummary.js +1 -0
- package/dist/esm/models/components/facilitysummary.js.map +1 -1
- package/dist/esm/models/components/systemsummary.d.ts +9 -0
- package/dist/esm/models/components/systemsummary.d.ts.map +1 -1
- package/dist/esm/models/components/systemsummary.js +15 -0
- package/dist/esm/models/components/systemsummary.js.map +1 -1
- package/dist/esm/models/operations/createvendorbycompanymanager.d.ts +122 -0
- package/dist/esm/models/operations/createvendorbycompanymanager.d.ts.map +1 -0
- package/dist/esm/models/operations/createvendorbycompanymanager.js +55 -0
- package/dist/esm/models/operations/createvendorbycompanymanager.js.map +1 -0
- package/dist/esm/models/operations/deletepaymentprofile.d.ts +11 -0
- package/dist/esm/models/operations/deletepaymentprofile.d.ts.map +1 -0
- package/dist/esm/models/operations/deletepaymentprofile.js +12 -0
- package/dist/esm/models/operations/deletepaymentprofile.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +3 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +3 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listlocations.d.ts +4 -4
- package/dist/esm/models/operations/listlocations.d.ts.map +1 -1
- package/dist/esm/models/operations/listlocations.js +4 -5
- package/dist/esm/models/operations/listlocations.js.map +1 -1
- package/dist/esm/models/operations/listlookupsystems.d.ts +53 -0
- package/dist/esm/models/operations/listlookupsystems.d.ts.map +1 -0
- package/dist/esm/models/operations/listlookupsystems.js +39 -0
- package/dist/esm/models/operations/listlookupsystems.js.map +1 -0
- package/dist/esm/models/operations/listvendoradditionalfacilityfields.d.ts +50 -1
- package/dist/esm/models/operations/listvendoradditionalfacilityfields.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendoradditionalfacilityfields.js +31 -1
- package/dist/esm/models/operations/listvendoradditionalfacilityfields.js.map +1 -1
- package/dist/esm/models/operations/securityzonecheckin.d.ts +4 -4
- package/dist/esm/models/operations/securityzonecheckin.d.ts.map +1 -1
- package/dist/esm/models/operations/securityzonecheckin.js +4 -4
- package/dist/esm/models/operations/securityzonecheckin.js.map +1 -1
- package/dist/esm/models/operations/updateuserprofilepicture.d.ts +6 -2
- package/dist/esm/models/operations/updateuserprofilepicture.d.ts.map +1 -1
- package/dist/esm/models/operations/updateuserprofilepicture.js +5 -0
- package/dist/esm/models/operations/updateuserprofilepicture.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +3 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +3 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/lookupsListLookupSystems.core.d.ts +15 -0
- package/dist/esm/react-query/lookupsListLookupSystems.core.d.ts.map +1 -0
- package/dist/esm/react-query/lookupsListLookupSystems.core.js +38 -0
- package/dist/esm/react-query/lookupsListLookupSystems.core.js.map +1 -0
- package/dist/esm/react-query/lookupsListLookupSystems.d.ts +53 -0
- package/dist/esm/react-query/lookupsListLookupSystems.d.ts.map +1 -0
- package/dist/esm/react-query/lookupsListLookupSystems.js +70 -0
- package/dist/esm/react-query/lookupsListLookupSystems.js.map +1 -0
- package/dist/esm/react-query/paymentProfileDeletePaymentProfile.d.ts +30 -0
- package/dist/esm/react-query/paymentProfileDeletePaymentProfile.d.ts.map +1 -0
- package/dist/esm/react-query/paymentProfileDeletePaymentProfile.js +49 -0
- package/dist/esm/react-query/paymentProfileDeletePaymentProfile.js.map +1 -0
- package/dist/esm/react-query/usersUpdateUserProfilePicture.d.ts +1 -1
- package/dist/esm/react-query/usersUpdateUserProfilePicture.js +1 -1
- package/dist/esm/react-query/vendorsCreateVendorByCompanyManager.d.ts +33 -0
- package/dist/esm/react-query/vendorsCreateVendorByCompanyManager.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsCreateVendorByCompanyManager.js +51 -0
- package/dist/esm/react-query/vendorsCreateVendorByCompanyManager.js.map +1 -0
- package/dist/esm/react-query/vendorsListVendorAdditionalFacilityFields.core.d.ts +26 -2
- package/dist/esm/react-query/vendorsListVendorAdditionalFacilityFields.core.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsListVendorAdditionalFacilityFields.core.js +53 -2
- package/dist/esm/react-query/vendorsListVendorAdditionalFacilityFields.core.js.map +1 -1
- package/dist/esm/react-query/vendorsListVendorAdditionalFacilityFields.d.ts +67 -16
- package/dist/esm/react-query/vendorsListVendorAdditionalFacilityFields.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsListVendorAdditionalFacilityFields.js +63 -13
- package/dist/esm/react-query/vendorsListVendorAdditionalFacilityFields.js.map +1 -1
- package/dist/esm/sdk/lookups.d.ts +19 -0
- package/dist/esm/sdk/lookups.d.ts.map +1 -0
- package/dist/esm/sdk/lookups.js +26 -0
- package/dist/esm/sdk/lookups.js.map +1 -0
- package/dist/esm/sdk/paymentprofile.d.ts +10 -0
- package/dist/esm/sdk/paymentprofile.d.ts.map +1 -1
- package/dist/esm/sdk/paymentprofile.js +12 -0
- package/dist/esm/sdk/paymentprofile.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/users.d.ts +1 -1
- package/dist/esm/sdk/users.js +1 -1
- package/dist/esm/sdk/vendors.d.ts +20 -6
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +21 -6
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/dist/esm/types/primitives.d.ts +1 -1
- package/dist/esm/types/primitives.d.ts.map +1 -1
- package/dist/esm/types/primitives.js +1 -2
- package/dist/esm/types/primitives.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/lookups.test.ts +30 -0
- package/src/__tests__/paymentprofile.test.ts +16 -0
- package/src/__tests__/users.test.ts +1 -0
- package/src/__tests__/vendors.test.ts +67 -3
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +4 -29
- package/src/funcs/lookupsListLookupSystems.ts +189 -0
- package/src/funcs/paymentProfileDeletePaymentProfile.ts +160 -0
- package/src/funcs/usersUpdateUserProfilePicture.ts +1 -1
- package/src/funcs/vendorsCreateVendorByCompanyManager.ts +183 -0
- package/src/funcs/vendorsListVendorAdditionalFacilityFields.ts +115 -37
- package/src/lib/config.ts +3 -3
- package/src/models/components/expand.ts +1 -0
- package/src/models/components/facility.ts +9 -9
- package/src/models/components/facilitycalendarsummary.ts +2 -0
- package/src/models/components/facilitysummary.ts +2 -0
- package/src/models/components/systemsummary.ts +34 -0
- package/src/models/operations/createvendorbycompanymanager.ts +203 -0
- package/src/models/operations/deletepaymentprofile.ts +35 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/listlocations.ts +15 -12
- package/src/models/operations/listlookupsystems.ts +99 -0
- package/src/models/operations/listvendoradditionalfacilityfields.ts +104 -2
- package/src/models/operations/securityzonecheckin.ts +11 -6
- package/src/models/operations/updateuserprofilepicture.ts +11 -2
- package/src/react-query/index.ts +3 -0
- package/src/react-query/lookupsListLookupSystems.core.ts +85 -0
- package/src/react-query/lookupsListLookupSystems.ts +168 -0
- package/src/react-query/paymentProfileDeletePaymentProfile.ts +115 -0
- package/src/react-query/usersUpdateUserProfilePicture.ts +1 -1
- package/src/react-query/vendorsCreateVendorByCompanyManager.ts +120 -0
- package/src/react-query/vendorsListVendorAdditionalFacilityFields.core.ts +124 -1
- package/src/react-query/vendorsListVendorAdditionalFacilityFields.ts +151 -12
- package/src/sdk/lookups.ts +35 -0
- package/src/sdk/paymentprofile.ts +19 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/users.ts +1 -1
- package/src/sdk/vendors.ts +33 -7
- package/src/types/primitives.ts +1 -3
|
@@ -42,7 +42,7 @@ export type ListLocationsRequest = {
|
|
|
42
42
|
eventId?: number | undefined;
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
export type
|
|
45
|
+
export type ListLocationsItems = {
|
|
46
46
|
id?: string | undefined;
|
|
47
47
|
label?: string | undefined;
|
|
48
48
|
};
|
|
@@ -51,7 +51,7 @@ export type Items = {
|
|
|
51
51
|
* The request was successful, and the server has returned the requested resource in the response body.
|
|
52
52
|
*/
|
|
53
53
|
export type ListLocationsListLocationsOk = {
|
|
54
|
-
items: Array<
|
|
54
|
+
items: Array<ListLocationsItems>;
|
|
55
55
|
/**
|
|
56
56
|
* Pagination information for a pageable list
|
|
57
57
|
*/
|
|
@@ -104,19 +104,22 @@ export function listLocationsRequestToJSON(
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
/** @internal */
|
|
107
|
-
export const
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
107
|
+
export const ListLocationsItems$inboundSchema: z.ZodType<
|
|
108
|
+
ListLocationsItems,
|
|
109
|
+
z.ZodTypeDef,
|
|
110
|
+
unknown
|
|
111
|
+
> = z.object({
|
|
112
|
+
id: types.optional(types.string()),
|
|
113
|
+
label: types.optional(types.string()),
|
|
114
|
+
});
|
|
112
115
|
|
|
113
|
-
export function
|
|
116
|
+
export function listLocationsItemsFromJSON(
|
|
114
117
|
jsonString: string,
|
|
115
|
-
): SafeParseResult<
|
|
118
|
+
): SafeParseResult<ListLocationsItems, SDKValidationError> {
|
|
116
119
|
return safeParse(
|
|
117
120
|
jsonString,
|
|
118
|
-
(x) =>
|
|
119
|
-
`Failed to parse '
|
|
121
|
+
(x) => ListLocationsItems$inboundSchema.parse(JSON.parse(x)),
|
|
122
|
+
`Failed to parse 'ListLocationsItems' from JSON`,
|
|
120
123
|
);
|
|
121
124
|
}
|
|
122
125
|
|
|
@@ -126,7 +129,7 @@ export const ListLocationsListLocationsOk$inboundSchema: z.ZodType<
|
|
|
126
129
|
z.ZodTypeDef,
|
|
127
130
|
unknown
|
|
128
131
|
> = z.object({
|
|
129
|
-
items: z.array(z.lazy(() =>
|
|
132
|
+
items: z.array(z.lazy(() => ListLocationsItems$inboundSchema)),
|
|
130
133
|
pager: components.Pager$inboundSchema,
|
|
131
134
|
});
|
|
132
135
|
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: d2e563b6fe83
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v3";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import * as components from "../components/index.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
+
|
|
13
|
+
export const Expand = {
|
|
14
|
+
SystemFacilities: "system.facilities",
|
|
15
|
+
SystemLocation: "system.location",
|
|
16
|
+
} as const;
|
|
17
|
+
export type Expand = ClosedEnum<typeof Expand>;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Filter systems to those with facilities of the given use type.
|
|
21
|
+
*/
|
|
22
|
+
export const Use = {
|
|
23
|
+
Credentialing: "credentialing",
|
|
24
|
+
VisitorManagement: "visitor_management",
|
|
25
|
+
} as const;
|
|
26
|
+
/**
|
|
27
|
+
* Filter systems to those with facilities of the given use type.
|
|
28
|
+
*/
|
|
29
|
+
export type Use = ClosedEnum<typeof Use>;
|
|
30
|
+
|
|
31
|
+
export type ListLookupSystemsRequest = {
|
|
32
|
+
/**
|
|
33
|
+
* Expand values to include in the response. Allowed: `system.facilities`, `system.location`
|
|
34
|
+
*/
|
|
35
|
+
expand?: Array<Expand> | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Filter systems to those with facilities of the given use type.
|
|
38
|
+
*/
|
|
39
|
+
use?: Use | undefined;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* The request was successful.
|
|
44
|
+
*/
|
|
45
|
+
export type ListLookupSystemsResponseBody = {
|
|
46
|
+
systems: Array<components.SystemSummary>;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const Expand$outboundSchema: z.ZodNativeEnum<typeof Expand> = z
|
|
51
|
+
.nativeEnum(Expand);
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const Use$outboundSchema: z.ZodNativeEnum<typeof Use> = z.nativeEnum(
|
|
55
|
+
Use,
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export type ListLookupSystemsRequest$Outbound = {
|
|
60
|
+
expand?: Array<string> | undefined;
|
|
61
|
+
use?: string | undefined;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const ListLookupSystemsRequest$outboundSchema: z.ZodType<
|
|
66
|
+
ListLookupSystemsRequest$Outbound,
|
|
67
|
+
z.ZodTypeDef,
|
|
68
|
+
ListLookupSystemsRequest
|
|
69
|
+
> = z.object({
|
|
70
|
+
expand: z.array(Expand$outboundSchema).optional(),
|
|
71
|
+
use: Use$outboundSchema.optional(),
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
export function listLookupSystemsRequestToJSON(
|
|
75
|
+
listLookupSystemsRequest: ListLookupSystemsRequest,
|
|
76
|
+
): string {
|
|
77
|
+
return JSON.stringify(
|
|
78
|
+
ListLookupSystemsRequest$outboundSchema.parse(listLookupSystemsRequest),
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/** @internal */
|
|
83
|
+
export const ListLookupSystemsResponseBody$inboundSchema: z.ZodType<
|
|
84
|
+
ListLookupSystemsResponseBody,
|
|
85
|
+
z.ZodTypeDef,
|
|
86
|
+
unknown
|
|
87
|
+
> = z.object({
|
|
88
|
+
systems: z.array(components.SystemSummary$inboundSchema),
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
export function listLookupSystemsResponseBodyFromJSON(
|
|
92
|
+
jsonString: string,
|
|
93
|
+
): SafeParseResult<ListLookupSystemsResponseBody, SDKValidationError> {
|
|
94
|
+
return safeParse(
|
|
95
|
+
jsonString,
|
|
96
|
+
(x) => ListLookupSystemsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
+
`Failed to parse 'ListLookupSystemsResponseBody' from JSON`,
|
|
98
|
+
);
|
|
99
|
+
}
|
|
@@ -7,10 +7,27 @@ import * as z from "zod/v3";
|
|
|
7
7
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
8
8
|
import { safeParse } from "../../lib/schemas.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import * as types from "../../types/primitives.js";
|
|
10
11
|
import * as components from "../components/index.js";
|
|
11
12
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
13
|
|
|
13
14
|
export type ListVendorAdditionalFacilityFieldsRequest = {
|
|
15
|
+
/**
|
|
16
|
+
* A comma-separated list of object attributes to sort on.
|
|
17
|
+
*/
|
|
18
|
+
sort?: string | null | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Sort desc
|
|
21
|
+
*/
|
|
22
|
+
desc?: components.Desc | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* A 1-based offset for which page to request (defaults to 1)
|
|
25
|
+
*/
|
|
26
|
+
page?: number | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Number of items to show in a given page
|
|
29
|
+
*/
|
|
30
|
+
itemsPerPage?: number | undefined;
|
|
14
31
|
/**
|
|
15
32
|
* Vendor identifier. Depending on the endpoint, accepts one or more of:
|
|
16
33
|
*
|
|
@@ -23,16 +40,46 @@ export type ListVendorAdditionalFacilityFieldsRequest = {
|
|
|
23
40
|
vendorIdOrMe: string;
|
|
24
41
|
};
|
|
25
42
|
|
|
43
|
+
/**
|
|
44
|
+
* Legacy VendorFieldValue row (deprecated shape).
|
|
45
|
+
*/
|
|
46
|
+
export type Items = {
|
|
47
|
+
/**
|
|
48
|
+
* VendorFieldValue id
|
|
49
|
+
*/
|
|
50
|
+
id?: number | undefined;
|
|
51
|
+
system?: string | null | undefined;
|
|
52
|
+
facility?: string | null | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Display name of the underlying VendorField
|
|
55
|
+
*/
|
|
56
|
+
field?: string | null | undefined;
|
|
57
|
+
value?: string | null | undefined;
|
|
58
|
+
};
|
|
59
|
+
|
|
26
60
|
/**
|
|
27
61
|
* The request was successful.
|
|
28
62
|
*/
|
|
29
63
|
export type ListVendorAdditionalFacilityFieldsListVendorAdditionalFacilityFieldsOk =
|
|
30
64
|
{
|
|
31
|
-
items: Array<
|
|
65
|
+
items: Array<Items>;
|
|
66
|
+
/**
|
|
67
|
+
* Pagination information for a pageable list
|
|
68
|
+
*/
|
|
69
|
+
pager: components.Pager;
|
|
32
70
|
};
|
|
33
71
|
|
|
72
|
+
export type ListVendorAdditionalFacilityFieldsResponse = {
|
|
73
|
+
result:
|
|
74
|
+
ListVendorAdditionalFacilityFieldsListVendorAdditionalFacilityFieldsOk;
|
|
75
|
+
};
|
|
76
|
+
|
|
34
77
|
/** @internal */
|
|
35
78
|
export type ListVendorAdditionalFacilityFieldsRequest$Outbound = {
|
|
79
|
+
sort?: string | null | undefined;
|
|
80
|
+
desc?: components.Desc$Outbound | undefined;
|
|
81
|
+
page?: number | undefined;
|
|
82
|
+
items_per_page?: number | undefined;
|
|
36
83
|
vendor_id_or_me: string;
|
|
37
84
|
};
|
|
38
85
|
|
|
@@ -43,9 +90,14 @@ export const ListVendorAdditionalFacilityFieldsRequest$outboundSchema:
|
|
|
43
90
|
z.ZodTypeDef,
|
|
44
91
|
ListVendorAdditionalFacilityFieldsRequest
|
|
45
92
|
> = z.object({
|
|
93
|
+
sort: z.nullable(z.string()).optional(),
|
|
94
|
+
desc: components.Desc$outboundSchema.optional(),
|
|
95
|
+
page: z.number().int().optional(),
|
|
96
|
+
itemsPerPage: z.number().int().optional(),
|
|
46
97
|
vendorIdOrMe: z.string(),
|
|
47
98
|
}).transform((v) => {
|
|
48
99
|
return remap$(v, {
|
|
100
|
+
itemsPerPage: "items_per_page",
|
|
49
101
|
vendorIdOrMe: "vendor_id_or_me",
|
|
50
102
|
});
|
|
51
103
|
});
|
|
@@ -61,6 +113,26 @@ export function listVendorAdditionalFacilityFieldsRequestToJSON(
|
|
|
61
113
|
);
|
|
62
114
|
}
|
|
63
115
|
|
|
116
|
+
/** @internal */
|
|
117
|
+
export const Items$inboundSchema: z.ZodType<Items, z.ZodTypeDef, unknown> = z
|
|
118
|
+
.object({
|
|
119
|
+
id: types.optional(types.number()),
|
|
120
|
+
system: z.nullable(types.string()).optional(),
|
|
121
|
+
facility: z.nullable(types.string()).optional(),
|
|
122
|
+
field: z.nullable(types.string()).optional(),
|
|
123
|
+
value: z.nullable(types.string()).optional(),
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
export function itemsFromJSON(
|
|
127
|
+
jsonString: string,
|
|
128
|
+
): SafeParseResult<Items, SDKValidationError> {
|
|
129
|
+
return safeParse(
|
|
130
|
+
jsonString,
|
|
131
|
+
(x) => Items$inboundSchema.parse(JSON.parse(x)),
|
|
132
|
+
`Failed to parse 'Items' from JSON`,
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
|
|
64
136
|
/** @internal */
|
|
65
137
|
export const ListVendorAdditionalFacilityFieldsListVendorAdditionalFacilityFieldsOk$inboundSchema:
|
|
66
138
|
z.ZodType<
|
|
@@ -68,7 +140,8 @@ export const ListVendorAdditionalFacilityFieldsListVendorAdditionalFacilityField
|
|
|
68
140
|
z.ZodTypeDef,
|
|
69
141
|
unknown
|
|
70
142
|
> = z.object({
|
|
71
|
-
items: z.array(
|
|
143
|
+
items: z.array(z.lazy(() => Items$inboundSchema)),
|
|
144
|
+
pager: components.Pager$inboundSchema,
|
|
72
145
|
});
|
|
73
146
|
|
|
74
147
|
export function listVendorAdditionalFacilityFieldsListVendorAdditionalFacilityFieldsOkFromJSON(
|
|
@@ -85,3 +158,32 @@ export function listVendorAdditionalFacilityFieldsListVendorAdditionalFacilityFi
|
|
|
85
158
|
`Failed to parse 'ListVendorAdditionalFacilityFieldsListVendorAdditionalFacilityFieldsOk' from JSON`,
|
|
86
159
|
);
|
|
87
160
|
}
|
|
161
|
+
|
|
162
|
+
/** @internal */
|
|
163
|
+
export const ListVendorAdditionalFacilityFieldsResponse$inboundSchema:
|
|
164
|
+
z.ZodType<ListVendorAdditionalFacilityFieldsResponse, z.ZodTypeDef, unknown> =
|
|
165
|
+
z.object({
|
|
166
|
+
Result: z.lazy(() =>
|
|
167
|
+
ListVendorAdditionalFacilityFieldsListVendorAdditionalFacilityFieldsOk$inboundSchema
|
|
168
|
+
),
|
|
169
|
+
}).transform((v) => {
|
|
170
|
+
return remap$(v, {
|
|
171
|
+
"Result": "result",
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
export function listVendorAdditionalFacilityFieldsResponseFromJSON(
|
|
176
|
+
jsonString: string,
|
|
177
|
+
): SafeParseResult<
|
|
178
|
+
ListVendorAdditionalFacilityFieldsResponse,
|
|
179
|
+
SDKValidationError
|
|
180
|
+
> {
|
|
181
|
+
return safeParse(
|
|
182
|
+
jsonString,
|
|
183
|
+
(x) =>
|
|
184
|
+
ListVendorAdditionalFacilityFieldsResponse$inboundSchema.parse(
|
|
185
|
+
JSON.parse(x),
|
|
186
|
+
),
|
|
187
|
+
`Failed to parse 'ListVendorAdditionalFacilityFieldsResponse' from JSON`,
|
|
188
|
+
);
|
|
189
|
+
}
|
|
@@ -50,10 +50,12 @@ export type SecurityZoneCheckinRequestBody2 = {
|
|
|
50
50
|
expand?: Array<RequestBodyExpand> | undefined;
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
-
export const
|
|
53
|
+
export const SecurityZoneCheckinRequestBodyExpand = {
|
|
54
54
|
VendorScanBadgeData: "vendor_scan.badge_data",
|
|
55
55
|
} as const;
|
|
56
|
-
export type
|
|
56
|
+
export type SecurityZoneCheckinRequestBodyExpand = ClosedEnum<
|
|
57
|
+
typeof SecurityZoneCheckinRequestBodyExpand
|
|
58
|
+
>;
|
|
57
59
|
|
|
58
60
|
export type One = {
|
|
59
61
|
/**
|
|
@@ -84,7 +86,7 @@ export type One = {
|
|
|
84
86
|
scanType?: components.ScanType | undefined;
|
|
85
87
|
recheckVendorScanId?: number | undefined;
|
|
86
88
|
temperature?: number | undefined;
|
|
87
|
-
expand?: Array<
|
|
89
|
+
expand?: Array<SecurityZoneCheckinRequestBodyExpand> | undefined;
|
|
88
90
|
};
|
|
89
91
|
|
|
90
92
|
export type SecurityZoneCheckinRequestBody =
|
|
@@ -231,8 +233,10 @@ export function securityZoneCheckinRequestBody2ToJSON(
|
|
|
231
233
|
}
|
|
232
234
|
|
|
233
235
|
/** @internal */
|
|
234
|
-
export const
|
|
235
|
-
.nativeEnum(
|
|
236
|
+
export const SecurityZoneCheckinRequestBodyExpand$outboundSchema:
|
|
237
|
+
z.ZodNativeEnum<typeof SecurityZoneCheckinRequestBodyExpand> = z.nativeEnum(
|
|
238
|
+
SecurityZoneCheckinRequestBodyExpand,
|
|
239
|
+
);
|
|
236
240
|
|
|
237
241
|
/** @internal */
|
|
238
242
|
export type One$Outbound = {
|
|
@@ -280,7 +284,8 @@ export const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One> = z
|
|
|
280
284
|
scanType: components.ScanType$outboundSchema.optional(),
|
|
281
285
|
recheckVendorScanId: z.number().int().optional(),
|
|
282
286
|
temperature: z.number().optional(),
|
|
283
|
-
expand: z.array(
|
|
287
|
+
expand: z.array(SecurityZoneCheckinRequestBodyExpand$outboundSchema)
|
|
288
|
+
.optional(),
|
|
284
289
|
}).transform((v) => {
|
|
285
290
|
return remap$(v, {
|
|
286
291
|
qrCode: "qr_code",
|
|
@@ -49,13 +49,17 @@ export type UpdateUserProfilePictureRequest = {
|
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* Metadata registered. Upload the file
|
|
52
|
+
* Metadata registered. Upload the file to the returned presigned S3 URL using HTTP PUT with the same Content-Type as image_content_type.
|
|
53
53
|
*/
|
|
54
54
|
export type UpdateUserProfilePictureUpdateUserProfilePictureOk = {
|
|
55
55
|
/**
|
|
56
|
-
* User ID
|
|
56
|
+
* User ID associated with the profile picture
|
|
57
57
|
*/
|
|
58
58
|
id: number;
|
|
59
|
+
/**
|
|
60
|
+
* Presigned S3 URL for uploading the image file via HTTP PUT. The URL is short-lived and tied to the image_content_type submitted in the request.
|
|
61
|
+
*/
|
|
62
|
+
uploadUrl: string;
|
|
59
63
|
};
|
|
60
64
|
|
|
61
65
|
/** @internal */
|
|
@@ -136,6 +140,11 @@ export const UpdateUserProfilePictureUpdateUserProfilePictureOk$inboundSchema:
|
|
|
136
140
|
unknown
|
|
137
141
|
> = z.object({
|
|
138
142
|
id: types.number(),
|
|
143
|
+
upload_url: types.string(),
|
|
144
|
+
}).transform((v) => {
|
|
145
|
+
return remap$(v, {
|
|
146
|
+
"upload_url": "uploadUrl",
|
|
147
|
+
});
|
|
139
148
|
});
|
|
140
149
|
|
|
141
150
|
export function updateUserProfilePictureUpdateUserProfilePictureOkFromJSON(
|
package/src/react-query/index.ts
CHANGED
|
@@ -40,11 +40,13 @@ export * from "./invoicesInvoicesExport.js";
|
|
|
40
40
|
export * from "./invoicesListInvoices.js";
|
|
41
41
|
export * from "./invoicesMakePayment.js";
|
|
42
42
|
export * from "./invoicesUpdateInvoice.js";
|
|
43
|
+
export * from "./lookupsListLookupSystems.js";
|
|
43
44
|
export * from "./mobileDevicesAddMobileDevice.js";
|
|
44
45
|
export * from "./organizationsGetFacility.js";
|
|
45
46
|
export * from "./organizationsListOrSearchDepartmentContacts.js";
|
|
46
47
|
export * from "./organizationsListOrSearchDepartments.js";
|
|
47
48
|
export * from "./organizationsListOrSearchFacilities.js";
|
|
49
|
+
export * from "./paymentProfileDeletePaymentProfile.js";
|
|
48
50
|
export * from "./paymentProfileGetPaymentProfile.js";
|
|
49
51
|
export * from "./supportArticlesGetSupportArticle.js";
|
|
50
52
|
export * from "./supportArticlesListOrSearchSupportArticles.js";
|
|
@@ -77,6 +79,7 @@ export * from "./vendorsChangeSubscription.js";
|
|
|
77
79
|
export * from "./vendorsCheckDownloadCode.js";
|
|
78
80
|
export * from "./vendorsCreateNewVendorCredentialVersion.js";
|
|
79
81
|
export * from "./vendorsCreateOrUpdateBcr.js";
|
|
82
|
+
export * from "./vendorsCreateVendorByCompanyManager.js";
|
|
80
83
|
export * from "./vendorsCreateVendorCompany.js";
|
|
81
84
|
export * from "./vendorsCreateVendorRegistration.js";
|
|
82
85
|
export * from "./vendorsDeclineVendorCredential.js";
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: dcc4b9055b7d
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
QueryClient,
|
|
8
|
+
QueryFunctionContext,
|
|
9
|
+
QueryKey,
|
|
10
|
+
} from "@tanstack/react-query";
|
|
11
|
+
import { GreenSecurityCore } from "../core.js";
|
|
12
|
+
import { lookupsListLookupSystems } from "../funcs/lookupsListLookupSystems.js";
|
|
13
|
+
import { combineSignals } from "../lib/primitives.js";
|
|
14
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
15
|
+
import * as operations from "../models/operations/index.js";
|
|
16
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
17
|
+
export type LookupsListLookupSystemsQueryData =
|
|
18
|
+
operations.ListLookupSystemsResponseBody;
|
|
19
|
+
|
|
20
|
+
export function prefetchLookupsListLookupSystems(
|
|
21
|
+
queryClient: QueryClient,
|
|
22
|
+
client$: GreenSecurityCore,
|
|
23
|
+
request: operations.ListLookupSystemsRequest,
|
|
24
|
+
options?: RequestOptions,
|
|
25
|
+
): Promise<void> {
|
|
26
|
+
return queryClient.prefetchQuery({
|
|
27
|
+
...buildLookupsListLookupSystemsQuery(
|
|
28
|
+
client$,
|
|
29
|
+
request,
|
|
30
|
+
options,
|
|
31
|
+
),
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function buildLookupsListLookupSystemsQuery(
|
|
36
|
+
client$: GreenSecurityCore,
|
|
37
|
+
request: operations.ListLookupSystemsRequest,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): {
|
|
40
|
+
queryKey: QueryKey;
|
|
41
|
+
queryFn: (
|
|
42
|
+
context: QueryFunctionContext,
|
|
43
|
+
) => Promise<LookupsListLookupSystemsQueryData>;
|
|
44
|
+
} {
|
|
45
|
+
return {
|
|
46
|
+
queryKey: queryKeyLookupsListLookupSystems({
|
|
47
|
+
expand: request.expand,
|
|
48
|
+
use: request.use,
|
|
49
|
+
}),
|
|
50
|
+
queryFn: async function lookupsListLookupSystemsQueryFn(
|
|
51
|
+
ctx,
|
|
52
|
+
): Promise<LookupsListLookupSystemsQueryData> {
|
|
53
|
+
const sig = combineSignals(
|
|
54
|
+
ctx.signal,
|
|
55
|
+
options?.signal,
|
|
56
|
+
options?.fetchOptions?.signal,
|
|
57
|
+
);
|
|
58
|
+
const mergedOptions = {
|
|
59
|
+
...options?.fetchOptions,
|
|
60
|
+
...options,
|
|
61
|
+
signal: sig,
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
return unwrapAsync(lookupsListLookupSystems(
|
|
65
|
+
client$,
|
|
66
|
+
request,
|
|
67
|
+
mergedOptions,
|
|
68
|
+
));
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function queryKeyLookupsListLookupSystems(
|
|
74
|
+
parameters: {
|
|
75
|
+
expand?: Array<operations.Expand> | undefined;
|
|
76
|
+
use?: operations.Use | undefined;
|
|
77
|
+
},
|
|
78
|
+
): QueryKey {
|
|
79
|
+
return [
|
|
80
|
+
"@greensecurity/javascript-sdk",
|
|
81
|
+
"lookups",
|
|
82
|
+
"listLookupSystems",
|
|
83
|
+
parameters,
|
|
84
|
+
];
|
|
85
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: a3c073cb1932
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
InvalidateQueryFilters,
|
|
8
|
+
QueryClient,
|
|
9
|
+
useQuery,
|
|
10
|
+
UseQueryResult,
|
|
11
|
+
useSuspenseQuery,
|
|
12
|
+
UseSuspenseQueryResult,
|
|
13
|
+
} from "@tanstack/react-query";
|
|
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 { useGreenSecurityContext } from "./_context.js";
|
|
27
|
+
import {
|
|
28
|
+
QueryHookOptions,
|
|
29
|
+
SuspenseQueryHookOptions,
|
|
30
|
+
TupleToPrefixes,
|
|
31
|
+
} from "./_types.js";
|
|
32
|
+
import {
|
|
33
|
+
buildLookupsListLookupSystemsQuery,
|
|
34
|
+
LookupsListLookupSystemsQueryData,
|
|
35
|
+
prefetchLookupsListLookupSystems,
|
|
36
|
+
queryKeyLookupsListLookupSystems,
|
|
37
|
+
} from "./lookupsListLookupSystems.core.js";
|
|
38
|
+
export {
|
|
39
|
+
buildLookupsListLookupSystemsQuery,
|
|
40
|
+
type LookupsListLookupSystemsQueryData,
|
|
41
|
+
prefetchLookupsListLookupSystems,
|
|
42
|
+
queryKeyLookupsListLookupSystems,
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export type LookupsListLookupSystemsQueryError =
|
|
46
|
+
| errors.ApiErrorResponse
|
|
47
|
+
| GreenSecurityError
|
|
48
|
+
| ResponseValidationError
|
|
49
|
+
| ConnectionError
|
|
50
|
+
| RequestAbortedError
|
|
51
|
+
| RequestTimeoutError
|
|
52
|
+
| InvalidRequestError
|
|
53
|
+
| UnexpectedClientError
|
|
54
|
+
| SDKValidationError;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* List systems for dropdown/picker use
|
|
58
|
+
*
|
|
59
|
+
* @remarks
|
|
60
|
+
* Returns all credentialing-eligible systems (and optionally their facilities) for the authenticated user.
|
|
61
|
+
* Designed for lightweight dropdown and picker UIs.
|
|
62
|
+
*
|
|
63
|
+
* - **Company manager**: returns systems scoped to their site.
|
|
64
|
+
* - **Vendor**: returns systems available to that vendor.
|
|
65
|
+
* - **API user**: returns systems scoped to their MarketplaceAppActivation (facility, system, or site level).
|
|
66
|
+
*
|
|
67
|
+
* Use `expand=system.facilities` to include the facilities array on each system.
|
|
68
|
+
*/
|
|
69
|
+
export function useLookupsListLookupSystems(
|
|
70
|
+
request: operations.ListLookupSystemsRequest,
|
|
71
|
+
options?: QueryHookOptions<
|
|
72
|
+
LookupsListLookupSystemsQueryData,
|
|
73
|
+
LookupsListLookupSystemsQueryError
|
|
74
|
+
>,
|
|
75
|
+
): UseQueryResult<
|
|
76
|
+
LookupsListLookupSystemsQueryData,
|
|
77
|
+
LookupsListLookupSystemsQueryError
|
|
78
|
+
> {
|
|
79
|
+
const client = useGreenSecurityContext();
|
|
80
|
+
return useQuery({
|
|
81
|
+
...buildLookupsListLookupSystemsQuery(
|
|
82
|
+
client,
|
|
83
|
+
request,
|
|
84
|
+
options,
|
|
85
|
+
),
|
|
86
|
+
...options,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* List systems for dropdown/picker use
|
|
92
|
+
*
|
|
93
|
+
* @remarks
|
|
94
|
+
* Returns all credentialing-eligible systems (and optionally their facilities) for the authenticated user.
|
|
95
|
+
* Designed for lightweight dropdown and picker UIs.
|
|
96
|
+
*
|
|
97
|
+
* - **Company manager**: returns systems scoped to their site.
|
|
98
|
+
* - **Vendor**: returns systems available to that vendor.
|
|
99
|
+
* - **API user**: returns systems scoped to their MarketplaceAppActivation (facility, system, or site level).
|
|
100
|
+
*
|
|
101
|
+
* Use `expand=system.facilities` to include the facilities array on each system.
|
|
102
|
+
*/
|
|
103
|
+
export function useLookupsListLookupSystemsSuspense(
|
|
104
|
+
request: operations.ListLookupSystemsRequest,
|
|
105
|
+
options?: SuspenseQueryHookOptions<
|
|
106
|
+
LookupsListLookupSystemsQueryData,
|
|
107
|
+
LookupsListLookupSystemsQueryError
|
|
108
|
+
>,
|
|
109
|
+
): UseSuspenseQueryResult<
|
|
110
|
+
LookupsListLookupSystemsQueryData,
|
|
111
|
+
LookupsListLookupSystemsQueryError
|
|
112
|
+
> {
|
|
113
|
+
const client = useGreenSecurityContext();
|
|
114
|
+
return useSuspenseQuery({
|
|
115
|
+
...buildLookupsListLookupSystemsQuery(
|
|
116
|
+
client,
|
|
117
|
+
request,
|
|
118
|
+
options,
|
|
119
|
+
),
|
|
120
|
+
...options,
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function setLookupsListLookupSystemsData(
|
|
125
|
+
client: QueryClient,
|
|
126
|
+
queryKeyBase: [
|
|
127
|
+
parameters: {
|
|
128
|
+
expand?: Array<operations.Expand> | undefined;
|
|
129
|
+
use?: operations.Use | undefined;
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
data: LookupsListLookupSystemsQueryData,
|
|
133
|
+
): LookupsListLookupSystemsQueryData | undefined {
|
|
134
|
+
const key = queryKeyLookupsListLookupSystems(...queryKeyBase);
|
|
135
|
+
|
|
136
|
+
return client.setQueryData<LookupsListLookupSystemsQueryData>(key, data);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function invalidateLookupsListLookupSystems(
|
|
140
|
+
client: QueryClient,
|
|
141
|
+
queryKeyBase: TupleToPrefixes<
|
|
142
|
+
[parameters: {
|
|
143
|
+
expand?: Array<operations.Expand> | undefined;
|
|
144
|
+
use?: operations.Use | undefined;
|
|
145
|
+
}]
|
|
146
|
+
>,
|
|
147
|
+
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
148
|
+
): Promise<void> {
|
|
149
|
+
return client.invalidateQueries({
|
|
150
|
+
...filters,
|
|
151
|
+
queryKey: [
|
|
152
|
+
"@greensecurity/javascript-sdk",
|
|
153
|
+
"lookups",
|
|
154
|
+
"listLookupSystems",
|
|
155
|
+
...queryKeyBase,
|
|
156
|
+
],
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function invalidateAllLookupsListLookupSystems(
|
|
161
|
+
client: QueryClient,
|
|
162
|
+
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
163
|
+
): Promise<void> {
|
|
164
|
+
return client.invalidateQueries({
|
|
165
|
+
...filters,
|
|
166
|
+
queryKey: ["@greensecurity/javascript-sdk", "lookups", "listLookupSystems"],
|
|
167
|
+
});
|
|
168
|
+
}
|