@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
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: fdcb791aabc9
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
MutationKey,
|
|
8
|
+
useMutation,
|
|
9
|
+
UseMutationResult,
|
|
10
|
+
} from "@tanstack/react-query";
|
|
11
|
+
import { GreenSecurityCore } from "../core.js";
|
|
12
|
+
import { paymentProfileDeletePaymentProfile } from "../funcs/paymentProfileDeletePaymentProfile.js";
|
|
13
|
+
import { combineSignals } from "../lib/primitives.js";
|
|
14
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
15
|
+
import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
|
|
16
|
+
import {
|
|
17
|
+
ConnectionError,
|
|
18
|
+
InvalidRequestError,
|
|
19
|
+
RequestAbortedError,
|
|
20
|
+
RequestTimeoutError,
|
|
21
|
+
UnexpectedClientError,
|
|
22
|
+
} from "../models/errors/httpclienterrors.js";
|
|
23
|
+
import * as errors from "../models/errors/index.js";
|
|
24
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
25
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
26
|
+
import * as operations from "../models/operations/index.js";
|
|
27
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
28
|
+
import { useGreenSecurityContext } from "./_context.js";
|
|
29
|
+
import { MutationHookOptions } from "./_types.js";
|
|
30
|
+
|
|
31
|
+
export type PaymentProfileDeletePaymentProfileMutationVariables = {
|
|
32
|
+
options?: RequestOptions;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type PaymentProfileDeletePaymentProfileMutationData =
|
|
36
|
+
operations.DeletePaymentProfileDeletePaymentProfileOk;
|
|
37
|
+
|
|
38
|
+
export type PaymentProfileDeletePaymentProfileMutationError =
|
|
39
|
+
| errors.ApiErrorResponse
|
|
40
|
+
| GreenSecurityError
|
|
41
|
+
| ResponseValidationError
|
|
42
|
+
| ConnectionError
|
|
43
|
+
| RequestAbortedError
|
|
44
|
+
| RequestTimeoutError
|
|
45
|
+
| InvalidRequestError
|
|
46
|
+
| UnexpectedClientError
|
|
47
|
+
| SDKValidationError;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Delete payment profile
|
|
51
|
+
*
|
|
52
|
+
* @remarks
|
|
53
|
+
* Deletes the payment profile for the logged-in user (vendor or company manager).
|
|
54
|
+
*
|
|
55
|
+
* Only vendors and company managers can access this endpoint.
|
|
56
|
+
*/
|
|
57
|
+
export function usePaymentProfileDeletePaymentProfileMutation(
|
|
58
|
+
options?: MutationHookOptions<
|
|
59
|
+
PaymentProfileDeletePaymentProfileMutationData,
|
|
60
|
+
PaymentProfileDeletePaymentProfileMutationError,
|
|
61
|
+
PaymentProfileDeletePaymentProfileMutationVariables
|
|
62
|
+
>,
|
|
63
|
+
): UseMutationResult<
|
|
64
|
+
PaymentProfileDeletePaymentProfileMutationData,
|
|
65
|
+
PaymentProfileDeletePaymentProfileMutationError,
|
|
66
|
+
PaymentProfileDeletePaymentProfileMutationVariables
|
|
67
|
+
> {
|
|
68
|
+
const client = useGreenSecurityContext();
|
|
69
|
+
return useMutation({
|
|
70
|
+
...buildPaymentProfileDeletePaymentProfileMutation(client, options),
|
|
71
|
+
...options,
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function mutationKeyPaymentProfileDeletePaymentProfile(): MutationKey {
|
|
76
|
+
return [
|
|
77
|
+
"@greensecurity/javascript-sdk",
|
|
78
|
+
"payment-profile",
|
|
79
|
+
"deletePaymentProfile",
|
|
80
|
+
];
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function buildPaymentProfileDeletePaymentProfileMutation(
|
|
84
|
+
client$: GreenSecurityCore,
|
|
85
|
+
hookOptions?: RequestOptions,
|
|
86
|
+
): {
|
|
87
|
+
mutationKey: MutationKey;
|
|
88
|
+
mutationFn: (
|
|
89
|
+
variables: PaymentProfileDeletePaymentProfileMutationVariables,
|
|
90
|
+
) => Promise<PaymentProfileDeletePaymentProfileMutationData>;
|
|
91
|
+
} {
|
|
92
|
+
return {
|
|
93
|
+
mutationKey: mutationKeyPaymentProfileDeletePaymentProfile(),
|
|
94
|
+
mutationFn: function paymentProfileDeletePaymentProfileMutationFn({
|
|
95
|
+
options,
|
|
96
|
+
}): Promise<PaymentProfileDeletePaymentProfileMutationData> {
|
|
97
|
+
const mergedOptions = {
|
|
98
|
+
...hookOptions,
|
|
99
|
+
...options,
|
|
100
|
+
fetchOptions: {
|
|
101
|
+
...hookOptions?.fetchOptions,
|
|
102
|
+
...options?.fetchOptions,
|
|
103
|
+
signal: combineSignals(
|
|
104
|
+
hookOptions?.fetchOptions?.signal,
|
|
105
|
+
options?.fetchOptions?.signal,
|
|
106
|
+
),
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
return unwrapAsync(paymentProfileDeletePaymentProfile(
|
|
110
|
+
client$,
|
|
111
|
+
mergedOptions,
|
|
112
|
+
));
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
}
|
|
@@ -51,7 +51,7 @@ export type UsersUpdateUserProfilePictureMutationError =
|
|
|
51
51
|
* Register profile picture metadata for S3 direct upload
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
|
-
* Register profile picture metadata for a user. The
|
|
54
|
+
* Register profile picture metadata for a user and obtain a presigned S3 upload URL. The flow is two-step: (1) call this endpoint with the image's file name, content type, and size; (2) PUT the file bytes to the returned upload_url with the matching Content-Type header. The file is stored at user_profile_image/{id}{ext} in the uploads bucket, where {ext} is derived from image_file_name and may be empty, and is processed asynchronously (resize to tiny/thumb/large variants). Use 'me' as the id for the authenticated user. Requires authentication and either self-ownership or 'users:edit' permission. API users must be authorized via MarketplaceAppActivation for the target user.
|
|
55
55
|
*/
|
|
56
56
|
export function useUsersUpdateUserProfilePictureMutation(
|
|
57
57
|
options?: MutationHookOptions<
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: d895f2774004
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
MutationKey,
|
|
8
|
+
useMutation,
|
|
9
|
+
UseMutationResult,
|
|
10
|
+
} from "@tanstack/react-query";
|
|
11
|
+
import { GreenSecurityCore } from "../core.js";
|
|
12
|
+
import { vendorsCreateVendorByCompanyManager } from "../funcs/vendorsCreateVendorByCompanyManager.js";
|
|
13
|
+
import { combineSignals } from "../lib/primitives.js";
|
|
14
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
15
|
+
import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
|
|
16
|
+
import {
|
|
17
|
+
ConnectionError,
|
|
18
|
+
InvalidRequestError,
|
|
19
|
+
RequestAbortedError,
|
|
20
|
+
RequestTimeoutError,
|
|
21
|
+
UnexpectedClientError,
|
|
22
|
+
} from "../models/errors/httpclienterrors.js";
|
|
23
|
+
import * as errors from "../models/errors/index.js";
|
|
24
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
25
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
26
|
+
import * as operations from "../models/operations/index.js";
|
|
27
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
28
|
+
import { useGreenSecurityContext } from "./_context.js";
|
|
29
|
+
import { MutationHookOptions } from "./_types.js";
|
|
30
|
+
|
|
31
|
+
export type VendorsCreateVendorByCompanyManagerMutationVariables = {
|
|
32
|
+
request: operations.CreateVendorByCompanyManagerRequestBody;
|
|
33
|
+
options?: RequestOptions;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type VendorsCreateVendorByCompanyManagerMutationData =
|
|
37
|
+
operations.CreateVendorByCompanyManagerResponseBody;
|
|
38
|
+
|
|
39
|
+
export type VendorsCreateVendorByCompanyManagerMutationError =
|
|
40
|
+
| errors.ApiErrorResponse
|
|
41
|
+
| GreenSecurityError
|
|
42
|
+
| ResponseValidationError
|
|
43
|
+
| ConnectionError
|
|
44
|
+
| RequestAbortedError
|
|
45
|
+
| RequestTimeoutError
|
|
46
|
+
| InvalidRequestError
|
|
47
|
+
| UnexpectedClientError
|
|
48
|
+
| SDKValidationError;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Create vendor on behalf of company manager
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* Creates a new vendor account on behalf of the authenticated company manager.
|
|
55
|
+
* The vendor is automatically linked to the company manager's company.
|
|
56
|
+
*
|
|
57
|
+
* For API users: `source_user_id` is required. The API user acts on behalf of a company manager user.
|
|
58
|
+
* The marketplace app must be activated for that user via MarketplaceAppActivation.
|
|
59
|
+
*/
|
|
60
|
+
export function useVendorsCreateVendorByCompanyManagerMutation(
|
|
61
|
+
options?: MutationHookOptions<
|
|
62
|
+
VendorsCreateVendorByCompanyManagerMutationData,
|
|
63
|
+
VendorsCreateVendorByCompanyManagerMutationError,
|
|
64
|
+
VendorsCreateVendorByCompanyManagerMutationVariables
|
|
65
|
+
>,
|
|
66
|
+
): UseMutationResult<
|
|
67
|
+
VendorsCreateVendorByCompanyManagerMutationData,
|
|
68
|
+
VendorsCreateVendorByCompanyManagerMutationError,
|
|
69
|
+
VendorsCreateVendorByCompanyManagerMutationVariables
|
|
70
|
+
> {
|
|
71
|
+
const client = useGreenSecurityContext();
|
|
72
|
+
return useMutation({
|
|
73
|
+
...buildVendorsCreateVendorByCompanyManagerMutation(client, options),
|
|
74
|
+
...options,
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function mutationKeyVendorsCreateVendorByCompanyManager(): MutationKey {
|
|
79
|
+
return [
|
|
80
|
+
"@greensecurity/javascript-sdk",
|
|
81
|
+
"vendors",
|
|
82
|
+
"createVendorByCompanyManager",
|
|
83
|
+
];
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function buildVendorsCreateVendorByCompanyManagerMutation(
|
|
87
|
+
client$: GreenSecurityCore,
|
|
88
|
+
hookOptions?: RequestOptions,
|
|
89
|
+
): {
|
|
90
|
+
mutationKey: MutationKey;
|
|
91
|
+
mutationFn: (
|
|
92
|
+
variables: VendorsCreateVendorByCompanyManagerMutationVariables,
|
|
93
|
+
) => Promise<VendorsCreateVendorByCompanyManagerMutationData>;
|
|
94
|
+
} {
|
|
95
|
+
return {
|
|
96
|
+
mutationKey: mutationKeyVendorsCreateVendorByCompanyManager(),
|
|
97
|
+
mutationFn: function vendorsCreateVendorByCompanyManagerMutationFn({
|
|
98
|
+
request,
|
|
99
|
+
options,
|
|
100
|
+
}): Promise<VendorsCreateVendorByCompanyManagerMutationData> {
|
|
101
|
+
const mergedOptions = {
|
|
102
|
+
...hookOptions,
|
|
103
|
+
...options,
|
|
104
|
+
fetchOptions: {
|
|
105
|
+
...hookOptions?.fetchOptions,
|
|
106
|
+
...options?.fetchOptions,
|
|
107
|
+
signal: combineSignals(
|
|
108
|
+
hookOptions?.fetchOptions?.signal,
|
|
109
|
+
options?.fetchOptions?.signal,
|
|
110
|
+
),
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
return unwrapAsync(vendorsCreateVendorByCompanyManager(
|
|
114
|
+
client$,
|
|
115
|
+
request,
|
|
116
|
+
mergedOptions,
|
|
117
|
+
));
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
}
|
|
@@ -12,10 +12,24 @@ import { GreenSecurityCore } from "../core.js";
|
|
|
12
12
|
import { vendorsListVendorAdditionalFacilityFields } from "../funcs/vendorsListVendorAdditionalFacilityFields.js";
|
|
13
13
|
import { combineSignals } from "../lib/primitives.js";
|
|
14
14
|
import { RequestOptions } from "../lib/sdks.js";
|
|
15
|
+
import * as components from "../models/components/index.js";
|
|
15
16
|
import * as operations from "../models/operations/index.js";
|
|
16
17
|
import { unwrapAsync } from "../types/fp.js";
|
|
18
|
+
import { PageIterator, unwrapResultIterator } from "../types/operations.js";
|
|
19
|
+
import { pageIteratorToJSON } from "./_types.js";
|
|
17
20
|
export type VendorsListVendorAdditionalFacilityFieldsQueryData =
|
|
18
|
-
operations.
|
|
21
|
+
operations.ListVendorAdditionalFacilityFieldsResponse;
|
|
22
|
+
|
|
23
|
+
export type VendorsListVendorAdditionalFacilityFieldsInfiniteQueryData =
|
|
24
|
+
PageIterator<
|
|
25
|
+
operations.ListVendorAdditionalFacilityFieldsResponse,
|
|
26
|
+
{ page: number }
|
|
27
|
+
>;
|
|
28
|
+
|
|
29
|
+
export type VendorsListVendorAdditionalFacilityFieldsPageParams = PageIterator<
|
|
30
|
+
operations.ListVendorAdditionalFacilityFieldsResponse,
|
|
31
|
+
{ page: number }
|
|
32
|
+
>["~next"];
|
|
19
33
|
|
|
20
34
|
export function prefetchVendorsListVendorAdditionalFacilityFields(
|
|
21
35
|
queryClient: QueryClient,
|
|
@@ -32,6 +46,26 @@ export function prefetchVendorsListVendorAdditionalFacilityFields(
|
|
|
32
46
|
});
|
|
33
47
|
}
|
|
34
48
|
|
|
49
|
+
export function prefetchVendorsListVendorAdditionalFacilityFieldsInfinite(
|
|
50
|
+
queryClient: QueryClient,
|
|
51
|
+
client$: GreenSecurityCore,
|
|
52
|
+
request: operations.ListVendorAdditionalFacilityFieldsRequest,
|
|
53
|
+
options?: RequestOptions,
|
|
54
|
+
): Promise<void> {
|
|
55
|
+
return queryClient.prefetchInfiniteQuery({
|
|
56
|
+
...buildVendorsListVendorAdditionalFacilityFieldsInfiniteQuery(
|
|
57
|
+
client$,
|
|
58
|
+
request,
|
|
59
|
+
options,
|
|
60
|
+
),
|
|
61
|
+
initialPageParam:
|
|
62
|
+
undefined as VendorsListVendorAdditionalFacilityFieldsPageParams,
|
|
63
|
+
getNextPageParam: (
|
|
64
|
+
previousPage: VendorsListVendorAdditionalFacilityFieldsInfiniteQueryData,
|
|
65
|
+
) => previousPage["~next"],
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
|
|
35
69
|
export function buildVendorsListVendorAdditionalFacilityFieldsQuery(
|
|
36
70
|
client$: GreenSecurityCore,
|
|
37
71
|
request: operations.ListVendorAdditionalFacilityFieldsRequest,
|
|
@@ -45,6 +79,12 @@ export function buildVendorsListVendorAdditionalFacilityFieldsQuery(
|
|
|
45
79
|
return {
|
|
46
80
|
queryKey: queryKeyVendorsListVendorAdditionalFacilityFields(
|
|
47
81
|
request.vendorIdOrMe,
|
|
82
|
+
{
|
|
83
|
+
sort: request.sort,
|
|
84
|
+
desc: request.desc,
|
|
85
|
+
page: request.page,
|
|
86
|
+
itemsPerPage: request.itemsPerPage,
|
|
87
|
+
},
|
|
48
88
|
),
|
|
49
89
|
queryFn: async function vendorsListVendorAdditionalFacilityFieldsQueryFn(
|
|
50
90
|
ctx,
|
|
@@ -69,13 +109,96 @@ export function buildVendorsListVendorAdditionalFacilityFieldsQuery(
|
|
|
69
109
|
};
|
|
70
110
|
}
|
|
71
111
|
|
|
112
|
+
export function buildVendorsListVendorAdditionalFacilityFieldsInfiniteQuery(
|
|
113
|
+
client$: GreenSecurityCore,
|
|
114
|
+
request: operations.ListVendorAdditionalFacilityFieldsRequest,
|
|
115
|
+
options?: RequestOptions,
|
|
116
|
+
): {
|
|
117
|
+
queryKey: QueryKey;
|
|
118
|
+
queryFn: (
|
|
119
|
+
context: QueryFunctionContext<
|
|
120
|
+
QueryKey,
|
|
121
|
+
VendorsListVendorAdditionalFacilityFieldsPageParams
|
|
122
|
+
>,
|
|
123
|
+
) => Promise<VendorsListVendorAdditionalFacilityFieldsInfiniteQueryData>;
|
|
124
|
+
} {
|
|
125
|
+
return {
|
|
126
|
+
queryKey: queryKeyVendorsListVendorAdditionalFacilityFieldsInfinite(
|
|
127
|
+
request.vendorIdOrMe,
|
|
128
|
+
{
|
|
129
|
+
sort: request.sort,
|
|
130
|
+
desc: request.desc,
|
|
131
|
+
page: request.page,
|
|
132
|
+
itemsPerPage: request.itemsPerPage,
|
|
133
|
+
},
|
|
134
|
+
),
|
|
135
|
+
queryFn: async function vendorsListVendorAdditionalFacilityFieldsQuery(
|
|
136
|
+
ctx,
|
|
137
|
+
): Promise<VendorsListVendorAdditionalFacilityFieldsInfiniteQueryData> {
|
|
138
|
+
const sig = combineSignals(ctx.signal, options?.fetchOptions?.signal);
|
|
139
|
+
const mergedOptions = {
|
|
140
|
+
...options,
|
|
141
|
+
fetchOptions: { ...options?.fetchOptions, signal: sig },
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
if (!ctx.pageParam) {
|
|
145
|
+
const pageResult = await unwrapResultIterator(
|
|
146
|
+
vendorsListVendorAdditionalFacilityFields(
|
|
147
|
+
client$,
|
|
148
|
+
request,
|
|
149
|
+
mergedOptions,
|
|
150
|
+
),
|
|
151
|
+
);
|
|
152
|
+
return pageIteratorToJSON(pageResult);
|
|
153
|
+
}
|
|
154
|
+
const pageResult = await unwrapResultIterator(
|
|
155
|
+
vendorsListVendorAdditionalFacilityFields(
|
|
156
|
+
client$,
|
|
157
|
+
{
|
|
158
|
+
...request,
|
|
159
|
+
page: ctx.pageParam.page,
|
|
160
|
+
},
|
|
161
|
+
mergedOptions,
|
|
162
|
+
),
|
|
163
|
+
);
|
|
164
|
+
return pageIteratorToJSON(pageResult);
|
|
165
|
+
},
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
|
|
72
169
|
export function queryKeyVendorsListVendorAdditionalFacilityFields(
|
|
73
170
|
vendorIdOrMe: string,
|
|
171
|
+
parameters: {
|
|
172
|
+
sort?: string | null | undefined;
|
|
173
|
+
desc?: components.Desc | undefined;
|
|
174
|
+
page?: number | undefined;
|
|
175
|
+
itemsPerPage?: number | undefined;
|
|
176
|
+
},
|
|
177
|
+
): QueryKey {
|
|
178
|
+
return [
|
|
179
|
+
"@greensecurity/javascript-sdk",
|
|
180
|
+
"vendors",
|
|
181
|
+
"listVendorAdditionalFacilityFields",
|
|
182
|
+
vendorIdOrMe,
|
|
183
|
+
parameters,
|
|
184
|
+
];
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export function queryKeyVendorsListVendorAdditionalFacilityFieldsInfinite(
|
|
188
|
+
vendorIdOrMe: string,
|
|
189
|
+
parameters: {
|
|
190
|
+
sort?: string | null | undefined;
|
|
191
|
+
desc?: components.Desc | undefined;
|
|
192
|
+
page?: number | undefined;
|
|
193
|
+
itemsPerPage?: number | undefined;
|
|
194
|
+
},
|
|
74
195
|
): QueryKey {
|
|
75
196
|
return [
|
|
76
197
|
"@greensecurity/javascript-sdk",
|
|
77
198
|
"vendors",
|
|
78
199
|
"listVendorAdditionalFacilityFields",
|
|
200
|
+
"infinite",
|
|
79
201
|
vendorIdOrMe,
|
|
202
|
+
parameters,
|
|
80
203
|
];
|
|
81
204
|
}
|
|
@@ -4,13 +4,20 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
|
+
InfiniteData,
|
|
7
8
|
InvalidateQueryFilters,
|
|
8
9
|
QueryClient,
|
|
10
|
+
QueryKey,
|
|
11
|
+
useInfiniteQuery,
|
|
12
|
+
UseInfiniteQueryResult,
|
|
9
13
|
useQuery,
|
|
10
14
|
UseQueryResult,
|
|
15
|
+
useSuspenseInfiniteQuery,
|
|
16
|
+
UseSuspenseInfiniteQueryResult,
|
|
11
17
|
useSuspenseQuery,
|
|
12
18
|
UseSuspenseQueryResult,
|
|
13
19
|
} from "@tanstack/react-query";
|
|
20
|
+
import * as components from "../models/components/index.js";
|
|
14
21
|
import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
|
|
15
22
|
import {
|
|
16
23
|
ConnectionError,
|
|
@@ -25,20 +32,32 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
25
32
|
import * as operations from "../models/operations/index.js";
|
|
26
33
|
import { useGreenSecurityContext } from "./_context.js";
|
|
27
34
|
import {
|
|
35
|
+
InfiniteQueryHookOptions,
|
|
28
36
|
QueryHookOptions,
|
|
37
|
+
SuspenseInfiniteQueryHookOptions,
|
|
29
38
|
SuspenseQueryHookOptions,
|
|
30
39
|
TupleToPrefixes,
|
|
31
40
|
} from "./_types.js";
|
|
32
41
|
import {
|
|
42
|
+
buildVendorsListVendorAdditionalFacilityFieldsInfiniteQuery,
|
|
33
43
|
buildVendorsListVendorAdditionalFacilityFieldsQuery,
|
|
34
44
|
prefetchVendorsListVendorAdditionalFacilityFields,
|
|
45
|
+
prefetchVendorsListVendorAdditionalFacilityFieldsInfinite,
|
|
35
46
|
queryKeyVendorsListVendorAdditionalFacilityFields,
|
|
47
|
+
queryKeyVendorsListVendorAdditionalFacilityFieldsInfinite,
|
|
48
|
+
VendorsListVendorAdditionalFacilityFieldsInfiniteQueryData,
|
|
49
|
+
VendorsListVendorAdditionalFacilityFieldsPageParams,
|
|
36
50
|
VendorsListVendorAdditionalFacilityFieldsQueryData,
|
|
37
51
|
} from "./vendorsListVendorAdditionalFacilityFields.core.js";
|
|
38
52
|
export {
|
|
53
|
+
buildVendorsListVendorAdditionalFacilityFieldsInfiniteQuery,
|
|
39
54
|
buildVendorsListVendorAdditionalFacilityFieldsQuery,
|
|
40
55
|
prefetchVendorsListVendorAdditionalFacilityFields,
|
|
56
|
+
prefetchVendorsListVendorAdditionalFacilityFieldsInfinite,
|
|
41
57
|
queryKeyVendorsListVendorAdditionalFacilityFields,
|
|
58
|
+
queryKeyVendorsListVendorAdditionalFacilityFieldsInfinite,
|
|
59
|
+
type VendorsListVendorAdditionalFacilityFieldsInfiniteQueryData,
|
|
60
|
+
type VendorsListVendorAdditionalFacilityFieldsPageParams,
|
|
42
61
|
type VendorsListVendorAdditionalFacilityFieldsQueryData,
|
|
43
62
|
};
|
|
44
63
|
|
|
@@ -59,11 +78,12 @@ export type VendorsListVendorAdditionalFacilityFieldsQueryError =
|
|
|
59
78
|
* @remarks
|
|
60
79
|
* Deprecated. Use `GET /vendors/{vendor_id_or_me}/custom-fields` instead.
|
|
61
80
|
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
* `
|
|
65
|
-
*
|
|
66
|
-
*
|
|
81
|
+
* Backward-compatible shape preserved: this endpoint continues to return
|
|
82
|
+
* the legacy paginated envelope (`items` + `pager`) with the original
|
|
83
|
+
* `system` / `facility` / `field` / `value` keys per item. New consumers
|
|
84
|
+
* should migrate to `/custom-fields`, which returns an unpaginated array
|
|
85
|
+
* with the `field_for` discriminator. Scheduled for removal after SDK
|
|
86
|
+
* consumers migrate.
|
|
67
87
|
*
|
|
68
88
|
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
69
89
|
*/
|
|
@@ -94,11 +114,12 @@ export function useVendorsListVendorAdditionalFacilityFields(
|
|
|
94
114
|
* @remarks
|
|
95
115
|
* Deprecated. Use `GET /vendors/{vendor_id_or_me}/custom-fields` instead.
|
|
96
116
|
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
* `
|
|
100
|
-
*
|
|
101
|
-
*
|
|
117
|
+
* Backward-compatible shape preserved: this endpoint continues to return
|
|
118
|
+
* the legacy paginated envelope (`items` + `pager`) with the original
|
|
119
|
+
* `system` / `facility` / `field` / `value` keys per item. New consumers
|
|
120
|
+
* should migrate to `/custom-fields`, which returns an unpaginated array
|
|
121
|
+
* with the `field_for` discriminator. Scheduled for removal after SDK
|
|
122
|
+
* consumers migrate.
|
|
102
123
|
*
|
|
103
124
|
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
104
125
|
*/
|
|
@@ -123,9 +144,117 @@ export function useVendorsListVendorAdditionalFacilityFieldsSuspense(
|
|
|
123
144
|
});
|
|
124
145
|
}
|
|
125
146
|
|
|
147
|
+
/**
|
|
148
|
+
* List of vendor's additional facility fields
|
|
149
|
+
*
|
|
150
|
+
* @remarks
|
|
151
|
+
* Deprecated. Use `GET /vendors/{vendor_id_or_me}/custom-fields` instead.
|
|
152
|
+
*
|
|
153
|
+
* Backward-compatible shape preserved: this endpoint continues to return
|
|
154
|
+
* the legacy paginated envelope (`items` + `pager`) with the original
|
|
155
|
+
* `system` / `facility` / `field` / `value` keys per item. New consumers
|
|
156
|
+
* should migrate to `/custom-fields`, which returns an unpaginated array
|
|
157
|
+
* with the `field_for` discriminator. Scheduled for removal after SDK
|
|
158
|
+
* consumers migrate.
|
|
159
|
+
*
|
|
160
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
161
|
+
*/
|
|
162
|
+
export function useVendorsListVendorAdditionalFacilityFieldsInfinite(
|
|
163
|
+
request: operations.ListVendorAdditionalFacilityFieldsRequest,
|
|
164
|
+
options?: InfiniteQueryHookOptions<
|
|
165
|
+
VendorsListVendorAdditionalFacilityFieldsInfiniteQueryData,
|
|
166
|
+
VendorsListVendorAdditionalFacilityFieldsQueryError
|
|
167
|
+
>,
|
|
168
|
+
): UseInfiniteQueryResult<
|
|
169
|
+
InfiniteData<
|
|
170
|
+
VendorsListVendorAdditionalFacilityFieldsInfiniteQueryData,
|
|
171
|
+
VendorsListVendorAdditionalFacilityFieldsPageParams
|
|
172
|
+
>,
|
|
173
|
+
VendorsListVendorAdditionalFacilityFieldsQueryError
|
|
174
|
+
> {
|
|
175
|
+
const client = useGreenSecurityContext();
|
|
176
|
+
return useInfiniteQuery<
|
|
177
|
+
VendorsListVendorAdditionalFacilityFieldsInfiniteQueryData,
|
|
178
|
+
VendorsListVendorAdditionalFacilityFieldsQueryError,
|
|
179
|
+
InfiniteData<
|
|
180
|
+
VendorsListVendorAdditionalFacilityFieldsInfiniteQueryData,
|
|
181
|
+
VendorsListVendorAdditionalFacilityFieldsPageParams
|
|
182
|
+
>,
|
|
183
|
+
QueryKey,
|
|
184
|
+
VendorsListVendorAdditionalFacilityFieldsPageParams
|
|
185
|
+
>({
|
|
186
|
+
...buildVendorsListVendorAdditionalFacilityFieldsInfiniteQuery(
|
|
187
|
+
client,
|
|
188
|
+
request,
|
|
189
|
+
options,
|
|
190
|
+
),
|
|
191
|
+
initialPageParam: options?.initialPageParam,
|
|
192
|
+
getNextPageParam: (previousPage) => previousPage["~next"],
|
|
193
|
+
...options,
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* List of vendor's additional facility fields
|
|
199
|
+
*
|
|
200
|
+
* @remarks
|
|
201
|
+
* Deprecated. Use `GET /vendors/{vendor_id_or_me}/custom-fields` instead.
|
|
202
|
+
*
|
|
203
|
+
* Backward-compatible shape preserved: this endpoint continues to return
|
|
204
|
+
* the legacy paginated envelope (`items` + `pager`) with the original
|
|
205
|
+
* `system` / `facility` / `field` / `value` keys per item. New consumers
|
|
206
|
+
* should migrate to `/custom-fields`, which returns an unpaginated array
|
|
207
|
+
* with the `field_for` discriminator. Scheduled for removal after SDK
|
|
208
|
+
* consumers migrate.
|
|
209
|
+
*
|
|
210
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
211
|
+
*/
|
|
212
|
+
export function useVendorsListVendorAdditionalFacilityFieldsInfiniteSuspense(
|
|
213
|
+
request: operations.ListVendorAdditionalFacilityFieldsRequest,
|
|
214
|
+
options?: SuspenseInfiniteQueryHookOptions<
|
|
215
|
+
VendorsListVendorAdditionalFacilityFieldsInfiniteQueryData,
|
|
216
|
+
VendorsListVendorAdditionalFacilityFieldsQueryError
|
|
217
|
+
>,
|
|
218
|
+
): UseSuspenseInfiniteQueryResult<
|
|
219
|
+
InfiniteData<
|
|
220
|
+
VendorsListVendorAdditionalFacilityFieldsInfiniteQueryData,
|
|
221
|
+
VendorsListVendorAdditionalFacilityFieldsPageParams
|
|
222
|
+
>,
|
|
223
|
+
VendorsListVendorAdditionalFacilityFieldsQueryError
|
|
224
|
+
> {
|
|
225
|
+
const client = useGreenSecurityContext();
|
|
226
|
+
return useSuspenseInfiniteQuery<
|
|
227
|
+
VendorsListVendorAdditionalFacilityFieldsInfiniteQueryData,
|
|
228
|
+
VendorsListVendorAdditionalFacilityFieldsQueryError,
|
|
229
|
+
InfiniteData<
|
|
230
|
+
VendorsListVendorAdditionalFacilityFieldsInfiniteQueryData,
|
|
231
|
+
VendorsListVendorAdditionalFacilityFieldsPageParams
|
|
232
|
+
>,
|
|
233
|
+
QueryKey,
|
|
234
|
+
VendorsListVendorAdditionalFacilityFieldsPageParams
|
|
235
|
+
>({
|
|
236
|
+
...buildVendorsListVendorAdditionalFacilityFieldsInfiniteQuery(
|
|
237
|
+
client,
|
|
238
|
+
request,
|
|
239
|
+
options,
|
|
240
|
+
),
|
|
241
|
+
initialPageParam: options?.initialPageParam,
|
|
242
|
+
getNextPageParam: (previousPage) => previousPage["~next"],
|
|
243
|
+
...options,
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
|
|
126
247
|
export function setVendorsListVendorAdditionalFacilityFieldsData(
|
|
127
248
|
client: QueryClient,
|
|
128
|
-
queryKeyBase: [
|
|
249
|
+
queryKeyBase: [
|
|
250
|
+
vendorIdOrMe: string,
|
|
251
|
+
parameters: {
|
|
252
|
+
sort?: string | null | undefined;
|
|
253
|
+
desc?: components.Desc | undefined;
|
|
254
|
+
page?: number | undefined;
|
|
255
|
+
itemsPerPage?: number | undefined;
|
|
256
|
+
},
|
|
257
|
+
],
|
|
129
258
|
data: VendorsListVendorAdditionalFacilityFieldsQueryData,
|
|
130
259
|
): VendorsListVendorAdditionalFacilityFieldsQueryData | undefined {
|
|
131
260
|
const key = queryKeyVendorsListVendorAdditionalFacilityFields(
|
|
@@ -139,7 +268,17 @@ export function setVendorsListVendorAdditionalFacilityFieldsData(
|
|
|
139
268
|
|
|
140
269
|
export function invalidateVendorsListVendorAdditionalFacilityFields(
|
|
141
270
|
client: QueryClient,
|
|
142
|
-
queryKeyBase: TupleToPrefixes<
|
|
271
|
+
queryKeyBase: TupleToPrefixes<
|
|
272
|
+
[
|
|
273
|
+
vendorIdOrMe: string,
|
|
274
|
+
parameters: {
|
|
275
|
+
sort?: string | null | undefined;
|
|
276
|
+
desc?: components.Desc | undefined;
|
|
277
|
+
page?: number | undefined;
|
|
278
|
+
itemsPerPage?: number | undefined;
|
|
279
|
+
},
|
|
280
|
+
]
|
|
281
|
+
>,
|
|
143
282
|
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
144
283
|
): Promise<void> {
|
|
145
284
|
return client.invalidateQueries({
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: dbd41af78da6
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { lookupsListLookupSystems } from "../funcs/lookupsListLookupSystems.js";
|
|
7
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
10
|
+
|
|
11
|
+
export class Lookups extends ClientSDK {
|
|
12
|
+
/**
|
|
13
|
+
* List systems for dropdown/picker use
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Returns all credentialing-eligible systems (and optionally their facilities) for the authenticated user.
|
|
17
|
+
* Designed for lightweight dropdown and picker UIs.
|
|
18
|
+
*
|
|
19
|
+
* - **Company manager**: returns systems scoped to their site.
|
|
20
|
+
* - **Vendor**: returns systems available to that vendor.
|
|
21
|
+
* - **API user**: returns systems scoped to their MarketplaceAppActivation (facility, system, or site level).
|
|
22
|
+
*
|
|
23
|
+
* Use `expand=system.facilities` to include the facilities array on each system.
|
|
24
|
+
*/
|
|
25
|
+
async listLookupSystems(
|
|
26
|
+
request: operations.ListLookupSystemsRequest,
|
|
27
|
+
options?: RequestOptions,
|
|
28
|
+
): Promise<operations.ListLookupSystemsResponseBody> {
|
|
29
|
+
return unwrapAsync(lookupsListLookupSystems(
|
|
30
|
+
this,
|
|
31
|
+
request,
|
|
32
|
+
options,
|
|
33
|
+
));
|
|
34
|
+
}
|
|
35
|
+
}
|