@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
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { GreenSecurityCore } from "../core.js";
|
|
7
|
-
import {
|
|
7
|
+
import { dlv } from "../lib/dlv.js";
|
|
8
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
8
9
|
import { matchStatusCode } from "../lib/http.js";
|
|
9
10
|
import * as M from "../lib/matchers.js";
|
|
10
11
|
import { compactMap } from "../lib/primitives.js";
|
|
@@ -26,6 +27,12 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
26
27
|
import * as operations from "../models/operations/index.js";
|
|
27
28
|
import { APICall, APIPromise } from "../types/async.js";
|
|
28
29
|
import { Result } from "../types/fp.js";
|
|
30
|
+
import {
|
|
31
|
+
createPageIterator,
|
|
32
|
+
haltIterator,
|
|
33
|
+
PageIterator,
|
|
34
|
+
Paginator,
|
|
35
|
+
} from "../types/operations.js";
|
|
29
36
|
|
|
30
37
|
/**
|
|
31
38
|
* List of vendor's additional facility fields
|
|
@@ -33,11 +40,12 @@ import { Result } from "../types/fp.js";
|
|
|
33
40
|
* @remarks
|
|
34
41
|
* Deprecated. Use `GET /vendors/{vendor_id_or_me}/custom-fields` instead.
|
|
35
42
|
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* `
|
|
39
|
-
*
|
|
40
|
-
*
|
|
43
|
+
* Backward-compatible shape preserved: this endpoint continues to return
|
|
44
|
+
* the legacy paginated envelope (`items` + `pager`) with the original
|
|
45
|
+
* `system` / `facility` / `field` / `value` keys per item. New consumers
|
|
46
|
+
* should migrate to `/custom-fields`, which returns an unpaginated array
|
|
47
|
+
* with the `field_for` discriminator. Scheduled for removal after SDK
|
|
48
|
+
* consumers migrate.
|
|
41
49
|
*
|
|
42
50
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
43
51
|
*
|
|
@@ -48,17 +56,20 @@ export function vendorsListVendorAdditionalFacilityFields(
|
|
|
48
56
|
request: operations.ListVendorAdditionalFacilityFieldsRequest,
|
|
49
57
|
options?: RequestOptions,
|
|
50
58
|
): APIPromise<
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
PageIterator<
|
|
60
|
+
Result<
|
|
61
|
+
operations.ListVendorAdditionalFacilityFieldsResponse,
|
|
62
|
+
| errors.ApiErrorResponse
|
|
63
|
+
| GreenSecurityError
|
|
64
|
+
| ResponseValidationError
|
|
65
|
+
| ConnectionError
|
|
66
|
+
| RequestAbortedError
|
|
67
|
+
| RequestTimeoutError
|
|
68
|
+
| InvalidRequestError
|
|
69
|
+
| UnexpectedClientError
|
|
70
|
+
| SDKValidationError
|
|
71
|
+
>,
|
|
72
|
+
{ page: number }
|
|
62
73
|
>
|
|
63
74
|
> {
|
|
64
75
|
return new APIPromise($do(
|
|
@@ -74,17 +85,20 @@ async function $do(
|
|
|
74
85
|
options?: RequestOptions,
|
|
75
86
|
): Promise<
|
|
76
87
|
[
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
+
PageIterator<
|
|
89
|
+
Result<
|
|
90
|
+
operations.ListVendorAdditionalFacilityFieldsResponse,
|
|
91
|
+
| errors.ApiErrorResponse
|
|
92
|
+
| GreenSecurityError
|
|
93
|
+
| ResponseValidationError
|
|
94
|
+
| ConnectionError
|
|
95
|
+
| RequestAbortedError
|
|
96
|
+
| RequestTimeoutError
|
|
97
|
+
| InvalidRequestError
|
|
98
|
+
| UnexpectedClientError
|
|
99
|
+
| SDKValidationError
|
|
100
|
+
>,
|
|
101
|
+
{ page: number }
|
|
88
102
|
>,
|
|
89
103
|
APICall,
|
|
90
104
|
]
|
|
@@ -98,7 +112,7 @@ async function $do(
|
|
|
98
112
|
"Input validation failed",
|
|
99
113
|
);
|
|
100
114
|
if (!parsed.ok) {
|
|
101
|
-
return [parsed, { status: "invalid" }];
|
|
115
|
+
return [haltIterator(parsed), { status: "invalid" }];
|
|
102
116
|
}
|
|
103
117
|
const payload = parsed.value;
|
|
104
118
|
const body = null;
|
|
@@ -113,6 +127,13 @@ async function $do(
|
|
|
113
127
|
"/vendors/{vendor_id_or_me}/additional-facility-fields",
|
|
114
128
|
)(pathParams);
|
|
115
129
|
|
|
130
|
+
const query = encodeFormQuery({
|
|
131
|
+
"desc": payload.desc,
|
|
132
|
+
"items_per_page": payload.items_per_page,
|
|
133
|
+
"page": payload.page,
|
|
134
|
+
"sort": payload.sort,
|
|
135
|
+
});
|
|
136
|
+
|
|
116
137
|
const headers = new Headers(compactMap({
|
|
117
138
|
Accept: "application/json",
|
|
118
139
|
}));
|
|
@@ -141,12 +162,13 @@ async function $do(
|
|
|
141
162
|
baseURL: options?.serverURL,
|
|
142
163
|
path: path,
|
|
143
164
|
headers: headers,
|
|
165
|
+
query: query,
|
|
144
166
|
body: body,
|
|
145
167
|
userAgent: client._options.userAgent,
|
|
146
168
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
147
169
|
}, options);
|
|
148
170
|
if (!requestRes.ok) {
|
|
149
|
-
return [requestRes, { status: "invalid" }];
|
|
171
|
+
return [haltIterator(requestRes), { status: "invalid" }];
|
|
150
172
|
}
|
|
151
173
|
const req = requestRes.value;
|
|
152
174
|
|
|
@@ -158,7 +180,7 @@ async function $do(
|
|
|
158
180
|
retryCodes: context.retryCodes,
|
|
159
181
|
});
|
|
160
182
|
if (!doResult.ok) {
|
|
161
|
-
return [doResult, { status: "request-error", request: req }];
|
|
183
|
+
return [haltIterator(doResult), { status: "request-error", request: req }];
|
|
162
184
|
}
|
|
163
185
|
const response = doResult.value;
|
|
164
186
|
|
|
@@ -166,8 +188,8 @@ async function $do(
|
|
|
166
188
|
HttpMeta: { Response: response, Request: req },
|
|
167
189
|
};
|
|
168
190
|
|
|
169
|
-
const [result] = await M.match<
|
|
170
|
-
operations.
|
|
191
|
+
const [result, raw] = await M.match<
|
|
192
|
+
operations.ListVendorAdditionalFacilityFieldsResponse,
|
|
171
193
|
| errors.ApiErrorResponse
|
|
172
194
|
| GreenSecurityError
|
|
173
195
|
| ResponseValidationError
|
|
@@ -180,16 +202,72 @@ async function $do(
|
|
|
180
202
|
>(
|
|
181
203
|
M.json(
|
|
182
204
|
200,
|
|
183
|
-
operations
|
|
184
|
-
|
|
205
|
+
operations.ListVendorAdditionalFacilityFieldsResponse$inboundSchema,
|
|
206
|
+
{ key: "Result" },
|
|
185
207
|
),
|
|
186
208
|
M.jsonErr([400, 401, 403, 404], errors.ApiErrorResponse$inboundSchema),
|
|
187
209
|
M.fail("4XX"),
|
|
188
210
|
M.fail([500, "5XX"]),
|
|
189
211
|
)(response, req, { extraFields: responseFields });
|
|
190
212
|
if (!result.ok) {
|
|
191
|
-
return [result, {
|
|
213
|
+
return [haltIterator(result), {
|
|
214
|
+
status: "complete",
|
|
215
|
+
request: req,
|
|
216
|
+
response,
|
|
217
|
+
}];
|
|
192
218
|
}
|
|
193
219
|
|
|
194
|
-
|
|
220
|
+
const nextFunc = (
|
|
221
|
+
responseData: unknown,
|
|
222
|
+
): {
|
|
223
|
+
next: Paginator<
|
|
224
|
+
Result<
|
|
225
|
+
operations.ListVendorAdditionalFacilityFieldsResponse,
|
|
226
|
+
| errors.ApiErrorResponse
|
|
227
|
+
| GreenSecurityError
|
|
228
|
+
| ResponseValidationError
|
|
229
|
+
| ConnectionError
|
|
230
|
+
| RequestAbortedError
|
|
231
|
+
| RequestTimeoutError
|
|
232
|
+
| InvalidRequestError
|
|
233
|
+
| UnexpectedClientError
|
|
234
|
+
| SDKValidationError
|
|
235
|
+
>
|
|
236
|
+
>;
|
|
237
|
+
"~next"?: { page: number };
|
|
238
|
+
} => {
|
|
239
|
+
const page = request?.page ?? 1;
|
|
240
|
+
const nextPage = page + 1;
|
|
241
|
+
|
|
242
|
+
if (!responseData) {
|
|
243
|
+
return { next: () => null };
|
|
244
|
+
}
|
|
245
|
+
const results = dlv(responseData, "items");
|
|
246
|
+
if (!Array.isArray(results) || !results.length) {
|
|
247
|
+
return { next: () => null };
|
|
248
|
+
}
|
|
249
|
+
const limit = request?.itemsPerPage ?? 0;
|
|
250
|
+
if (results.length < limit) {
|
|
251
|
+
return { next: () => null };
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
const nextVal = () =>
|
|
255
|
+
vendorsListVendorAdditionalFacilityFields(
|
|
256
|
+
client,
|
|
257
|
+
{
|
|
258
|
+
...request,
|
|
259
|
+
page: nextPage,
|
|
260
|
+
},
|
|
261
|
+
options,
|
|
262
|
+
);
|
|
263
|
+
|
|
264
|
+
return { next: nextVal, "~next": { page: nextPage } };
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
const page = { ...result, ...nextFunc(raw) };
|
|
268
|
+
return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, {
|
|
269
|
+
status: "complete",
|
|
270
|
+
request: req,
|
|
271
|
+
response,
|
|
272
|
+
}];
|
|
195
273
|
}
|
package/src/lib/config.ts
CHANGED
|
@@ -81,8 +81,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
81
81
|
export const SDK_METADATA = {
|
|
82
82
|
language: "typescript",
|
|
83
83
|
openapiDocVersion: "0.0.11",
|
|
84
|
-
sdkVersion: "0.43.1-beta.
|
|
85
|
-
genVersion: "2.881.
|
|
84
|
+
sdkVersion: "0.43.1-beta.126",
|
|
85
|
+
genVersion: "2.881.17",
|
|
86
86
|
userAgent:
|
|
87
|
-
"speakeasy-sdk/typescript 0.43.1-beta.
|
|
87
|
+
"speakeasy-sdk/typescript 0.43.1-beta.126 2.881.17 0.0.11 @greensecurity/javascript-sdk",
|
|
88
88
|
} as const;
|
|
@@ -103,6 +103,7 @@ export const Expand = {
|
|
|
103
103
|
ZoneDepartment: "zone.department",
|
|
104
104
|
ZoneRules: "zone.rules",
|
|
105
105
|
SystemFacilities: "system.facilities",
|
|
106
|
+
SystemLocation: "system.location",
|
|
106
107
|
SubscriptionExpeditedOffer: "subscription.expedited_offer",
|
|
107
108
|
DepartmentMembershipContact: "department_membership.contact",
|
|
108
109
|
DepartmentMembershipDepartment: "department_membership.department",
|
|
@@ -72,7 +72,7 @@ export type FluCredential = {
|
|
|
72
72
|
fluDateEnds?: Date | null | undefined;
|
|
73
73
|
};
|
|
74
74
|
|
|
75
|
-
export type
|
|
75
|
+
export type FacilityLocation = {
|
|
76
76
|
streetAddress?: string | null | undefined;
|
|
77
77
|
city?: string | null | undefined;
|
|
78
78
|
state?: string | null | undefined;
|
|
@@ -163,7 +163,7 @@ export type Facility = {
|
|
|
163
163
|
* A set of images in different sizes
|
|
164
164
|
*/
|
|
165
165
|
imageUrls?: ImageSet | null | undefined;
|
|
166
|
-
location?:
|
|
166
|
+
location?: FacilityLocation | undefined;
|
|
167
167
|
name?: string | undefined;
|
|
168
168
|
scrubsPolicy?: ScrubsPolicy | null | undefined;
|
|
169
169
|
status?: string | undefined;
|
|
@@ -324,8 +324,8 @@ export function fluCredentialFromJSON(
|
|
|
324
324
|
}
|
|
325
325
|
|
|
326
326
|
/** @internal */
|
|
327
|
-
export const
|
|
328
|
-
|
|
327
|
+
export const FacilityLocation$inboundSchema: z.ZodType<
|
|
328
|
+
FacilityLocation,
|
|
329
329
|
z.ZodTypeDef,
|
|
330
330
|
unknown
|
|
331
331
|
> = z.object({
|
|
@@ -346,13 +346,13 @@ export const Location$inboundSchema: z.ZodType<
|
|
|
346
346
|
});
|
|
347
347
|
});
|
|
348
348
|
|
|
349
|
-
export function
|
|
349
|
+
export function facilityLocationFromJSON(
|
|
350
350
|
jsonString: string,
|
|
351
|
-
): SafeParseResult<
|
|
351
|
+
): SafeParseResult<FacilityLocation, SDKValidationError> {
|
|
352
352
|
return safeParse(
|
|
353
353
|
jsonString,
|
|
354
|
-
(x) =>
|
|
355
|
-
`Failed to parse '
|
|
354
|
+
(x) => FacilityLocation$inboundSchema.parse(JSON.parse(x)),
|
|
355
|
+
`Failed to parse 'FacilityLocation' from JSON`,
|
|
356
356
|
);
|
|
357
357
|
}
|
|
358
358
|
|
|
@@ -576,7 +576,7 @@ export const Facility$inboundSchema: z.ZodType<
|
|
|
576
576
|
flu_credential: types.optional(z.lazy(() => FluCredential$inboundSchema)),
|
|
577
577
|
id: types.optional(types.number()),
|
|
578
578
|
image_urls: z.nullable(ImageSet$inboundSchema).optional(),
|
|
579
|
-
location: types.optional(z.lazy(() =>
|
|
579
|
+
location: types.optional(z.lazy(() => FacilityLocation$inboundSchema)),
|
|
580
580
|
name: types.optional(types.string()),
|
|
581
581
|
scrubs_policy: z.nullable(z.lazy(() => ScrubsPolicy$inboundSchema))
|
|
582
582
|
.optional(),
|
|
@@ -25,6 +25,7 @@ export type FacilityCalendarSummary = {
|
|
|
25
25
|
id?: number | undefined;
|
|
26
26
|
name?: string | undefined;
|
|
27
27
|
systemId?: number | undefined;
|
|
28
|
+
status?: string | null | undefined;
|
|
28
29
|
vendorPolicy?: FacilityCalendarSummaryVendorPolicy | null | undefined;
|
|
29
30
|
allowUserAppointments?: boolean | undefined;
|
|
30
31
|
allowDeptAppointments?: boolean | undefined;
|
|
@@ -63,6 +64,7 @@ export const FacilityCalendarSummary$inboundSchema: z.ZodType<
|
|
|
63
64
|
id: types.optional(types.number()),
|
|
64
65
|
name: types.optional(types.string()),
|
|
65
66
|
system_id: types.optional(types.number()),
|
|
67
|
+
status: z.nullable(types.string()).optional(),
|
|
66
68
|
vendor_policy: z.nullable(
|
|
67
69
|
z.lazy(() => FacilityCalendarSummaryVendorPolicy$inboundSchema),
|
|
68
70
|
).optional(),
|
|
@@ -25,6 +25,7 @@ export type FacilitySummary = {
|
|
|
25
25
|
id?: number | undefined;
|
|
26
26
|
name?: string | undefined;
|
|
27
27
|
systemId?: number | undefined;
|
|
28
|
+
status?: string | null | undefined;
|
|
28
29
|
vendorPolicy?: VendorPolicy | null | undefined;
|
|
29
30
|
};
|
|
30
31
|
|
|
@@ -60,6 +61,7 @@ export const FacilitySummary$inboundSchema: z.ZodType<
|
|
|
60
61
|
id: types.optional(types.number()),
|
|
61
62
|
name: types.optional(types.string()),
|
|
62
63
|
system_id: types.optional(types.number()),
|
|
64
|
+
status: z.nullable(types.string()).optional(),
|
|
63
65
|
vendor_policy: z.nullable(z.lazy(() => VendorPolicy$inboundSchema))
|
|
64
66
|
.optional(),
|
|
65
67
|
}).transform((v) => {
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import * as z from "zod/v3";
|
|
7
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
8
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
10
|
import * as types from "../../types/primitives.js";
|
|
@@ -13,15 +14,42 @@ import {
|
|
|
13
14
|
FacilitySummary$inboundSchema,
|
|
14
15
|
} from "./facilitysummary.js";
|
|
15
16
|
|
|
17
|
+
export type Location = {
|
|
18
|
+
city?: string | null | undefined;
|
|
19
|
+
state?: string | null | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
16
22
|
/**
|
|
17
23
|
* A simplified representation of a System, typically used in list views.
|
|
18
24
|
*/
|
|
19
25
|
export type SystemSummary = {
|
|
20
26
|
id: number;
|
|
21
27
|
name: string;
|
|
28
|
+
startDate?: string | null | undefined;
|
|
29
|
+
location?: Location | null | undefined;
|
|
22
30
|
facilities?: Array<FacilitySummary> | null | undefined;
|
|
23
31
|
};
|
|
24
32
|
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const Location$inboundSchema: z.ZodType<
|
|
35
|
+
Location,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
unknown
|
|
38
|
+
> = z.object({
|
|
39
|
+
city: z.nullable(types.string()).optional(),
|
|
40
|
+
state: z.nullable(types.string()).optional(),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export function locationFromJSON(
|
|
44
|
+
jsonString: string,
|
|
45
|
+
): SafeParseResult<Location, SDKValidationError> {
|
|
46
|
+
return safeParse(
|
|
47
|
+
jsonString,
|
|
48
|
+
(x) => Location$inboundSchema.parse(JSON.parse(x)),
|
|
49
|
+
`Failed to parse 'Location' from JSON`,
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
|
|
25
53
|
/** @internal */
|
|
26
54
|
export const SystemSummary$inboundSchema: z.ZodType<
|
|
27
55
|
SystemSummary,
|
|
@@ -30,7 +58,13 @@ export const SystemSummary$inboundSchema: z.ZodType<
|
|
|
30
58
|
> = z.object({
|
|
31
59
|
id: types.number(),
|
|
32
60
|
name: types.string(),
|
|
61
|
+
start_date: z.nullable(types.string()).optional(),
|
|
62
|
+
location: z.nullable(z.lazy(() => Location$inboundSchema)).optional(),
|
|
33
63
|
facilities: z.nullable(z.array(FacilitySummary$inboundSchema)).optional(),
|
|
64
|
+
}).transform((v) => {
|
|
65
|
+
return remap$(v, {
|
|
66
|
+
"start_date": "startDate",
|
|
67
|
+
});
|
|
34
68
|
});
|
|
35
69
|
|
|
36
70
|
export function systemSummaryFromJSON(
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 4813c9f81c74
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v3";
|
|
7
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import * as types from "../../types/primitives.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
+
|
|
13
|
+
export type CreateVendorByCompanyManagerRequestBody = {
|
|
14
|
+
/**
|
|
15
|
+
* The vendor's email address
|
|
16
|
+
*/
|
|
17
|
+
email: string;
|
|
18
|
+
/**
|
|
19
|
+
* Vendor's first name
|
|
20
|
+
*/
|
|
21
|
+
firstName: string;
|
|
22
|
+
/**
|
|
23
|
+
* Vendor's last name
|
|
24
|
+
*/
|
|
25
|
+
lastName: string;
|
|
26
|
+
/**
|
|
27
|
+
* Vendor's job title (free text)
|
|
28
|
+
*/
|
|
29
|
+
title: string;
|
|
30
|
+
/**
|
|
31
|
+
* Vendor's phone number
|
|
32
|
+
*/
|
|
33
|
+
phone: string;
|
|
34
|
+
/**
|
|
35
|
+
* Vendor's fax number (optional)
|
|
36
|
+
*/
|
|
37
|
+
fax?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Rails timezone name (e.g. Eastern Time (US & Canada))
|
|
40
|
+
*/
|
|
41
|
+
timezone?: string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the vendor has been listed by a federal agency as disbarred or excluded
|
|
44
|
+
*/
|
|
45
|
+
federal?: boolean | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* ID of the vendor's primary facility
|
|
48
|
+
*/
|
|
49
|
+
primaryFacilityId: number;
|
|
50
|
+
/**
|
|
51
|
+
* Vendor's supervisor name
|
|
52
|
+
*/
|
|
53
|
+
supervisorName: string;
|
|
54
|
+
/**
|
|
55
|
+
* Vendor's supervisor email
|
|
56
|
+
*/
|
|
57
|
+
supervisorEmail: string;
|
|
58
|
+
/**
|
|
59
|
+
* Vendor's supervisor phone
|
|
60
|
+
*/
|
|
61
|
+
supervisorPhone: string;
|
|
62
|
+
/**
|
|
63
|
+
* Country code (e.g. US, CA)
|
|
64
|
+
*/
|
|
65
|
+
country: string;
|
|
66
|
+
/**
|
|
67
|
+
* Street address line 1
|
|
68
|
+
*/
|
|
69
|
+
address1: string;
|
|
70
|
+
/**
|
|
71
|
+
* Street address line 2 (optional)
|
|
72
|
+
*/
|
|
73
|
+
address2?: string | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* City
|
|
76
|
+
*/
|
|
77
|
+
city: string;
|
|
78
|
+
/**
|
|
79
|
+
* State or province code
|
|
80
|
+
*/
|
|
81
|
+
state: string;
|
|
82
|
+
/**
|
|
83
|
+
* Zip or postal code
|
|
84
|
+
*/
|
|
85
|
+
zip: string;
|
|
86
|
+
/**
|
|
87
|
+
* Required for API users. The company manager user ID to act on behalf of.
|
|
88
|
+
*
|
|
89
|
+
* @remarks
|
|
90
|
+
* The marketplace app must be activated for this user.
|
|
91
|
+
*/
|
|
92
|
+
sourceUserId?: number | undefined;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Vendor created successfully.
|
|
97
|
+
*/
|
|
98
|
+
export type CreateVendorByCompanyManagerResponseBody = {
|
|
99
|
+
/**
|
|
100
|
+
* ID of the newly created vendor
|
|
101
|
+
*/
|
|
102
|
+
vendorId: number;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
/** @internal */
|
|
106
|
+
export type CreateVendorByCompanyManagerRequestBody$Outbound = {
|
|
107
|
+
email: string;
|
|
108
|
+
first_name: string;
|
|
109
|
+
last_name: string;
|
|
110
|
+
title: string;
|
|
111
|
+
phone: string;
|
|
112
|
+
fax?: string | undefined;
|
|
113
|
+
timezone?: string | undefined;
|
|
114
|
+
federal?: boolean | undefined;
|
|
115
|
+
primary_facility_id: number;
|
|
116
|
+
supervisor_name: string;
|
|
117
|
+
supervisor_email: string;
|
|
118
|
+
supervisor_phone: string;
|
|
119
|
+
country: string;
|
|
120
|
+
address1: string;
|
|
121
|
+
address2?: string | undefined;
|
|
122
|
+
city: string;
|
|
123
|
+
state: string;
|
|
124
|
+
zip: string;
|
|
125
|
+
source_user_id?: number | undefined;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
/** @internal */
|
|
129
|
+
export const CreateVendorByCompanyManagerRequestBody$outboundSchema: z.ZodType<
|
|
130
|
+
CreateVendorByCompanyManagerRequestBody$Outbound,
|
|
131
|
+
z.ZodTypeDef,
|
|
132
|
+
CreateVendorByCompanyManagerRequestBody
|
|
133
|
+
> = z.object({
|
|
134
|
+
email: z.string(),
|
|
135
|
+
firstName: z.string(),
|
|
136
|
+
lastName: z.string(),
|
|
137
|
+
title: z.string(),
|
|
138
|
+
phone: z.string(),
|
|
139
|
+
fax: z.string().optional(),
|
|
140
|
+
timezone: z.string().optional(),
|
|
141
|
+
federal: z.boolean().optional(),
|
|
142
|
+
primaryFacilityId: z.number().int(),
|
|
143
|
+
supervisorName: z.string(),
|
|
144
|
+
supervisorEmail: z.string(),
|
|
145
|
+
supervisorPhone: z.string(),
|
|
146
|
+
country: z.string(),
|
|
147
|
+
address1: z.string(),
|
|
148
|
+
address2: z.string().optional(),
|
|
149
|
+
city: z.string(),
|
|
150
|
+
state: z.string(),
|
|
151
|
+
zip: z.string(),
|
|
152
|
+
sourceUserId: z.number().int().optional(),
|
|
153
|
+
}).transform((v) => {
|
|
154
|
+
return remap$(v, {
|
|
155
|
+
firstName: "first_name",
|
|
156
|
+
lastName: "last_name",
|
|
157
|
+
primaryFacilityId: "primary_facility_id",
|
|
158
|
+
supervisorName: "supervisor_name",
|
|
159
|
+
supervisorEmail: "supervisor_email",
|
|
160
|
+
supervisorPhone: "supervisor_phone",
|
|
161
|
+
sourceUserId: "source_user_id",
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
export function createVendorByCompanyManagerRequestBodyToJSON(
|
|
166
|
+
createVendorByCompanyManagerRequestBody:
|
|
167
|
+
CreateVendorByCompanyManagerRequestBody,
|
|
168
|
+
): string {
|
|
169
|
+
return JSON.stringify(
|
|
170
|
+
CreateVendorByCompanyManagerRequestBody$outboundSchema.parse(
|
|
171
|
+
createVendorByCompanyManagerRequestBody,
|
|
172
|
+
),
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/** @internal */
|
|
177
|
+
export const CreateVendorByCompanyManagerResponseBody$inboundSchema: z.ZodType<
|
|
178
|
+
CreateVendorByCompanyManagerResponseBody,
|
|
179
|
+
z.ZodTypeDef,
|
|
180
|
+
unknown
|
|
181
|
+
> = z.object({
|
|
182
|
+
vendor_id: types.number(),
|
|
183
|
+
}).transform((v) => {
|
|
184
|
+
return remap$(v, {
|
|
185
|
+
"vendor_id": "vendorId",
|
|
186
|
+
});
|
|
187
|
+
});
|
|
188
|
+
|
|
189
|
+
export function createVendorByCompanyManagerResponseBodyFromJSON(
|
|
190
|
+
jsonString: string,
|
|
191
|
+
): SafeParseResult<
|
|
192
|
+
CreateVendorByCompanyManagerResponseBody,
|
|
193
|
+
SDKValidationError
|
|
194
|
+
> {
|
|
195
|
+
return safeParse(
|
|
196
|
+
jsonString,
|
|
197
|
+
(x) =>
|
|
198
|
+
CreateVendorByCompanyManagerResponseBody$inboundSchema.parse(
|
|
199
|
+
JSON.parse(x),
|
|
200
|
+
),
|
|
201
|
+
`Failed to parse 'CreateVendorByCompanyManagerResponseBody' from JSON`,
|
|
202
|
+
);
|
|
203
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 134674f5a536
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v3";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The request was successful and the payment profile has been deleted.
|
|
13
|
+
*/
|
|
14
|
+
export type DeletePaymentProfileDeletePaymentProfileOk = {};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const DeletePaymentProfileDeletePaymentProfileOk$inboundSchema:
|
|
18
|
+
z.ZodType<DeletePaymentProfileDeletePaymentProfileOk, z.ZodTypeDef, unknown> =
|
|
19
|
+
z.object({});
|
|
20
|
+
|
|
21
|
+
export function deletePaymentProfileDeletePaymentProfileOkFromJSON(
|
|
22
|
+
jsonString: string,
|
|
23
|
+
): SafeParseResult<
|
|
24
|
+
DeletePaymentProfileDeletePaymentProfileOk,
|
|
25
|
+
SDKValidationError
|
|
26
|
+
> {
|
|
27
|
+
return safeParse(
|
|
28
|
+
jsonString,
|
|
29
|
+
(x) =>
|
|
30
|
+
DeletePaymentProfileDeletePaymentProfileOk$inboundSchema.parse(
|
|
31
|
+
JSON.parse(x),
|
|
32
|
+
),
|
|
33
|
+
`Failed to parse 'DeletePaymentProfileDeletePaymentProfileOk' from JSON`,
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -19,6 +19,7 @@ export * from "./createevent.js";
|
|
|
19
19
|
export * from "./createinvoice.js";
|
|
20
20
|
export * from "./createnewvendorcredentialversion.js";
|
|
21
21
|
export * from "./createorupdatebcr.js";
|
|
22
|
+
export * from "./createvendorbycompanymanager.js";
|
|
22
23
|
export * from "./createvendorcompany.js";
|
|
23
24
|
export * from "./createvendorfield.js";
|
|
24
25
|
export * from "./createvendorregistration.js";
|
|
@@ -27,6 +28,7 @@ export * from "./declinevendorcredential.js";
|
|
|
27
28
|
export * from "./deletedatarequestfile.js";
|
|
28
29
|
export * from "./deleteevent.js";
|
|
29
30
|
export * from "./deletefhirconfigbyid.js";
|
|
31
|
+
export * from "./deletepaymentprofile.js";
|
|
30
32
|
export * from "./deletevendorcredentialfile.js";
|
|
31
33
|
export * from "./deletevendormanagedbycompany.js";
|
|
32
34
|
export * from "./downloadinvoicesexport.js";
|
|
@@ -60,6 +62,7 @@ export * from "./listcompanymanagers.js";
|
|
|
60
62
|
export * from "./listfeed.js";
|
|
61
63
|
export * from "./listinvoices.js";
|
|
62
64
|
export * from "./listlocations.js";
|
|
65
|
+
export * from "./listlookupsystems.js";
|
|
63
66
|
export * from "./listoffhirconfigurations.js";
|
|
64
67
|
export * from "./listorsearchcompanies.js";
|
|
65
68
|
export * from "./listorsearchdepartmentcontacts.js";
|