@greensecurity/javascript-sdk 0.43.1-beta.122 → 0.43.1-beta.124
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -3
- package/dist/commonjs/__tests__/vendors.test.js +22 -43
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +29 -3
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/admin-funcs/smartBadgePairBadge.d.ts +6 -0
- package/dist/commonjs/admin-funcs/smartBadgePairBadge.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/smartBadgePairBadge.js +9 -0
- package/dist/commonjs/admin-funcs/smartBadgePairBadge.js.map +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.js +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorAdditionalFacilityFields.d.ts +10 -5
- package/dist/commonjs/funcs/vendorsListVendorAdditionalFacilityFields.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorAdditionalFacilityFields.js +17 -46
- package/dist/commonjs/funcs/vendorsListVendorAdditionalFacilityFields.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCustomFields.d.ts +14 -6
- package/dist/commonjs/funcs/vendorsListVendorCustomFields.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCustomFields.js +20 -49
- package/dist/commonjs/funcs/vendorsListVendorCustomFields.js.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.d.ts +28 -0
- package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.js +135 -0
- package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.js.map +1 -0
- package/dist/commonjs/index.extras.d.ts +4 -0
- package/dist/commonjs/index.extras.d.ts.map +1 -1
- package/dist/commonjs/index.extras.js +4 -0
- package/dist/commonjs/index.extras.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/vendor.d.ts +5 -0
- package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendor.js +4 -0
- package/dist/commonjs/models/components/vendor.js.map +1 -1
- package/dist/commonjs/models/components/vendorcustomfields.d.ts +65 -3
- package/dist/commonjs/models/components/vendorcustomfields.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendorcustomfields.js +45 -4
- package/dist/commonjs/models/components/vendorcustomfields.js.map +1 -1
- package/dist/commonjs/models/operations/addvendormanagedbycompany.d.ts +7 -1
- package/dist/commonjs/models/operations/addvendormanagedbycompany.d.ts.map +1 -1
- package/dist/commonjs/models/operations/addvendormanagedbycompany.js.map +1 -1
- package/dist/commonjs/models/operations/calculatesubscriptionprice.d.ts +7 -1
- package/dist/commonjs/models/operations/calculatesubscriptionprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/calculatesubscriptionprice.js.map +1 -1
- package/dist/commonjs/models/operations/changesubscription.d.ts +7 -1
- package/dist/commonjs/models/operations/changesubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/changesubscription.js.map +1 -1
- package/dist/commonjs/models/operations/createvendorcompany.d.ts +7 -1
- package/dist/commonjs/models/operations/createvendorcompany.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createvendorcompany.js.map +1 -1
- package/dist/commonjs/models/operations/deletevendormanagedbycompany.d.ts +7 -1
- package/dist/commonjs/models/operations/deletevendormanagedbycompany.d.ts.map +1 -1
- package/dist/commonjs/models/operations/deletevendormanagedbycompany.js.map +1 -1
- package/dist/commonjs/models/operations/expeditetimeremaining.d.ts +7 -1
- package/dist/commonjs/models/operations/expeditetimeremaining.d.ts.map +1 -1
- package/dist/commonjs/models/operations/expeditetimeremaining.js.map +1 -1
- package/dist/commonjs/models/operations/getnextunansweredscreeningquestion.d.ts +7 -1
- package/dist/commonjs/models/operations/getnextunansweredscreeningquestion.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getnextunansweredscreeningquestion.js.map +1 -1
- package/dist/commonjs/models/operations/getsubscription.d.ts +7 -1
- package/dist/commonjs/models/operations/getsubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getsubscription.js.map +1 -1
- package/dist/commonjs/models/operations/getvendorcredentialdetails.d.ts +7 -1
- package/dist/commonjs/models/operations/getvendorcredentialdetails.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getvendorcredentialdetails.js.map +1 -1
- package/dist/commonjs/models/operations/getvendorlegalname.d.ts +7 -1
- package/dist/commonjs/models/operations/getvendorlegalname.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getvendorlegalname.js.map +1 -1
- package/dist/commonjs/models/operations/getvendorsdetails.d.ts +7 -1
- package/dist/commonjs/models/operations/getvendorsdetails.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getvendorsdetails.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listvendoradditionalfacilityfields.d.ts +8 -32
- package/dist/commonjs/models/operations/listvendoradditionalfacilityfields.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendoradditionalfacilityfields.js +1 -19
- package/dist/commonjs/models/operations/listvendoradditionalfacilityfields.js.map +1 -1
- package/dist/commonjs/models/operations/listvendorcredentialhistory.d.ts +7 -1
- package/dist/commonjs/models/operations/listvendorcredentialhistory.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendorcredentialhistory.js.map +1 -1
- package/dist/commonjs/models/operations/listvendorcredits.d.ts +7 -1
- package/dist/commonjs/models/operations/listvendorcredits.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendorcredits.js.map +1 -1
- package/dist/commonjs/models/operations/listvendorcustomfields.d.ts +8 -32
- package/dist/commonjs/models/operations/listvendorcustomfields.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendorcustomfields.js +1 -19
- package/dist/commonjs/models/operations/listvendorcustomfields.js.map +1 -1
- package/dist/commonjs/models/operations/listvendorfacilitystatuses.d.ts +7 -1
- package/dist/commonjs/models/operations/listvendorfacilitystatuses.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendorfacilitystatuses.js.map +1 -1
- package/dist/commonjs/models/operations/listvendorinvoices.d.ts +7 -1
- package/dist/commonjs/models/operations/listvendorinvoices.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendorinvoices.js.map +1 -1
- package/dist/commonjs/models/operations/listvendormanagedbycompanies.d.ts +7 -1
- package/dist/commonjs/models/operations/listvendormanagedbycompanies.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendormanagedbycompanies.js.map +1 -1
- package/dist/commonjs/models/operations/listvendorscrubdetails.d.ts +7 -1
- package/dist/commonjs/models/operations/listvendorscrubdetails.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendorscrubdetails.js.map +1 -1
- package/dist/commonjs/models/operations/listvendorscrubpackages.d.ts +7 -1
- package/dist/commonjs/models/operations/listvendorscrubpackages.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendorscrubpackages.js.map +1 -1
- package/dist/commonjs/models/operations/listvendorscrubpurchases.d.ts +7 -1
- package/dist/commonjs/models/operations/listvendorscrubpurchases.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendorscrubpurchases.js.map +1 -1
- package/dist/commonjs/models/operations/purchasescrubcredits.d.ts +7 -1
- package/dist/commonjs/models/operations/purchasescrubcredits.d.ts.map +1 -1
- package/dist/commonjs/models/operations/purchasescrubcredits.js.map +1 -1
- package/dist/commonjs/models/operations/updatevendorcredentialdata.d.ts +7 -1
- package/dist/commonjs/models/operations/updatevendorcredentialdata.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatevendorcredentialdata.js.map +1 -1
- package/dist/commonjs/models/operations/updatevendorcustomfield.d.ts +41 -0
- package/dist/commonjs/models/operations/updatevendorcustomfield.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updatevendorcustomfield.js +70 -0
- package/dist/commonjs/models/operations/updatevendorcustomfield.js.map +1 -0
- package/dist/commonjs/models/operations/updatevendordetails.d.ts +7 -1
- package/dist/commonjs/models/operations/updatevendordetails.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatevendordetails.js.map +1 -1
- package/dist/commonjs/models/operations/updatevendormanagedbycompany.d.ts +7 -1
- package/dist/commonjs/models/operations/updatevendormanagedbycompany.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatevendormanagedbycompany.js.map +1 -1
- package/dist/commonjs/models/operations/updatevendorscrubdetails.d.ts +7 -1
- package/dist/commonjs/models/operations/updatevendorscrubdetails.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatevendorscrubdetails.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +1 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +1 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.d.ts +2 -0
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.js +2 -0
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/commonjs/react-query/vendorsListVendorAdditionalFacilityFields.core.d.ts +2 -26
- package/dist/commonjs/react-query/vendorsListVendorAdditionalFacilityFields.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsListVendorAdditionalFacilityFields.core.js +2 -56
- package/dist/commonjs/react-query/vendorsListVendorAdditionalFacilityFields.core.js.map +1 -1
- package/dist/commonjs/react-query/vendorsListVendorAdditionalFacilityFields.d.ts +20 -43
- package/dist/commonjs/react-query/vendorsListVendorAdditionalFacilityFields.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsListVendorAdditionalFacilityFields.js +15 -42
- package/dist/commonjs/react-query/vendorsListVendorAdditionalFacilityFields.js.map +1 -1
- package/dist/commonjs/react-query/vendorsListVendorCustomFields.core.d.ts +2 -26
- package/dist/commonjs/react-query/vendorsListVendorCustomFields.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsListVendorCustomFields.core.js +2 -56
- package/dist/commonjs/react-query/vendorsListVendorCustomFields.core.js.map +1 -1
- package/dist/commonjs/react-query/vendorsListVendorCustomFields.d.ts +27 -40
- package/dist/commonjs/react-query/vendorsListVendorCustomFields.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsListVendorCustomFields.js +23 -40
- package/dist/commonjs/react-query/vendorsListVendorCustomFields.js.map +1 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.d.ts +37 -0
- package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.js +59 -0
- package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.js.map +1 -0
- package/dist/commonjs/sdk/vendors.d.ts +35 -9
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +38 -5
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +22 -43
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +29 -3
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/admin-funcs/smartBadgePairBadge.d.ts +6 -0
- package/dist/esm/admin-funcs/smartBadgePairBadge.d.ts.map +1 -0
- package/dist/esm/admin-funcs/smartBadgePairBadge.js +6 -0
- package/dist/esm/admin-funcs/smartBadgePairBadge.js.map +1 -0
- package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts +1 -0
- package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorsDetails.js +1 -0
- package/dist/esm/funcs/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorAdditionalFacilityFields.d.ts +10 -5
- package/dist/esm/funcs/vendorsListVendorAdditionalFacilityFields.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsListVendorAdditionalFacilityFields.js +18 -47
- package/dist/esm/funcs/vendorsListVendorAdditionalFacilityFields.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorCustomFields.d.ts +14 -6
- package/dist/esm/funcs/vendorsListVendorCustomFields.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsListVendorCustomFields.js +21 -50
- package/dist/esm/funcs/vendorsListVendorCustomFields.js.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorCustomField.d.ts +28 -0
- package/dist/esm/funcs/vendorsUpdateVendorCustomField.d.ts.map +1 -0
- package/dist/esm/funcs/vendorsUpdateVendorCustomField.js +99 -0
- package/dist/esm/funcs/vendorsUpdateVendorCustomField.js.map +1 -0
- package/dist/esm/index.extras.d.ts +4 -0
- package/dist/esm/index.extras.d.ts.map +1 -1
- package/dist/esm/index.extras.js +4 -0
- package/dist/esm/index.extras.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/vendor.d.ts +5 -0
- package/dist/esm/models/components/vendor.d.ts.map +1 -1
- package/dist/esm/models/components/vendor.js +4 -0
- package/dist/esm/models/components/vendor.js.map +1 -1
- package/dist/esm/models/components/vendorcustomfields.d.ts +65 -3
- package/dist/esm/models/components/vendorcustomfields.d.ts.map +1 -1
- package/dist/esm/models/components/vendorcustomfields.js +43 -3
- package/dist/esm/models/components/vendorcustomfields.js.map +1 -1
- package/dist/esm/models/operations/addvendormanagedbycompany.d.ts +7 -1
- package/dist/esm/models/operations/addvendormanagedbycompany.d.ts.map +1 -1
- package/dist/esm/models/operations/addvendormanagedbycompany.js.map +1 -1
- package/dist/esm/models/operations/calculatesubscriptionprice.d.ts +7 -1
- package/dist/esm/models/operations/calculatesubscriptionprice.d.ts.map +1 -1
- package/dist/esm/models/operations/calculatesubscriptionprice.js.map +1 -1
- package/dist/esm/models/operations/changesubscription.d.ts +7 -1
- package/dist/esm/models/operations/changesubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/changesubscription.js.map +1 -1
- package/dist/esm/models/operations/createvendorcompany.d.ts +7 -1
- package/dist/esm/models/operations/createvendorcompany.d.ts.map +1 -1
- package/dist/esm/models/operations/createvendorcompany.js.map +1 -1
- package/dist/esm/models/operations/deletevendormanagedbycompany.d.ts +7 -1
- package/dist/esm/models/operations/deletevendormanagedbycompany.d.ts.map +1 -1
- package/dist/esm/models/operations/deletevendormanagedbycompany.js.map +1 -1
- package/dist/esm/models/operations/expeditetimeremaining.d.ts +7 -1
- package/dist/esm/models/operations/expeditetimeremaining.d.ts.map +1 -1
- package/dist/esm/models/operations/expeditetimeremaining.js.map +1 -1
- package/dist/esm/models/operations/getnextunansweredscreeningquestion.d.ts +7 -1
- package/dist/esm/models/operations/getnextunansweredscreeningquestion.d.ts.map +1 -1
- package/dist/esm/models/operations/getnextunansweredscreeningquestion.js.map +1 -1
- package/dist/esm/models/operations/getsubscription.d.ts +7 -1
- package/dist/esm/models/operations/getsubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/getsubscription.js.map +1 -1
- package/dist/esm/models/operations/getvendorcredentialdetails.d.ts +7 -1
- package/dist/esm/models/operations/getvendorcredentialdetails.d.ts.map +1 -1
- package/dist/esm/models/operations/getvendorcredentialdetails.js.map +1 -1
- package/dist/esm/models/operations/getvendorlegalname.d.ts +7 -1
- package/dist/esm/models/operations/getvendorlegalname.d.ts.map +1 -1
- package/dist/esm/models/operations/getvendorlegalname.js.map +1 -1
- package/dist/esm/models/operations/getvendorsdetails.d.ts +7 -1
- package/dist/esm/models/operations/getvendorsdetails.d.ts.map +1 -1
- package/dist/esm/models/operations/getvendorsdetails.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listvendoradditionalfacilityfields.d.ts +8 -32
- package/dist/esm/models/operations/listvendoradditionalfacilityfields.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendoradditionalfacilityfields.js +0 -17
- package/dist/esm/models/operations/listvendoradditionalfacilityfields.js.map +1 -1
- package/dist/esm/models/operations/listvendorcredentialhistory.d.ts +7 -1
- package/dist/esm/models/operations/listvendorcredentialhistory.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendorcredentialhistory.js.map +1 -1
- package/dist/esm/models/operations/listvendorcredits.d.ts +7 -1
- package/dist/esm/models/operations/listvendorcredits.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendorcredits.js.map +1 -1
- package/dist/esm/models/operations/listvendorcustomfields.d.ts +8 -32
- package/dist/esm/models/operations/listvendorcustomfields.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendorcustomfields.js +0 -17
- package/dist/esm/models/operations/listvendorcustomfields.js.map +1 -1
- package/dist/esm/models/operations/listvendorfacilitystatuses.d.ts +7 -1
- package/dist/esm/models/operations/listvendorfacilitystatuses.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendorfacilitystatuses.js.map +1 -1
- package/dist/esm/models/operations/listvendorinvoices.d.ts +7 -1
- package/dist/esm/models/operations/listvendorinvoices.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendorinvoices.js.map +1 -1
- package/dist/esm/models/operations/listvendormanagedbycompanies.d.ts +7 -1
- package/dist/esm/models/operations/listvendormanagedbycompanies.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendormanagedbycompanies.js.map +1 -1
- package/dist/esm/models/operations/listvendorscrubdetails.d.ts +7 -1
- package/dist/esm/models/operations/listvendorscrubdetails.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendorscrubdetails.js.map +1 -1
- package/dist/esm/models/operations/listvendorscrubpackages.d.ts +7 -1
- package/dist/esm/models/operations/listvendorscrubpackages.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendorscrubpackages.js.map +1 -1
- package/dist/esm/models/operations/listvendorscrubpurchases.d.ts +7 -1
- package/dist/esm/models/operations/listvendorscrubpurchases.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendorscrubpurchases.js.map +1 -1
- package/dist/esm/models/operations/purchasescrubcredits.d.ts +7 -1
- package/dist/esm/models/operations/purchasescrubcredits.d.ts.map +1 -1
- package/dist/esm/models/operations/purchasescrubcredits.js.map +1 -1
- package/dist/esm/models/operations/updatevendorcredentialdata.d.ts +7 -1
- package/dist/esm/models/operations/updatevendorcredentialdata.d.ts.map +1 -1
- package/dist/esm/models/operations/updatevendorcredentialdata.js.map +1 -1
- package/dist/esm/models/operations/updatevendorcustomfield.d.ts +41 -0
- package/dist/esm/models/operations/updatevendorcustomfield.d.ts.map +1 -0
- package/dist/esm/models/operations/updatevendorcustomfield.js +32 -0
- package/dist/esm/models/operations/updatevendorcustomfield.js.map +1 -0
- package/dist/esm/models/operations/updatevendordetails.d.ts +7 -1
- package/dist/esm/models/operations/updatevendordetails.d.ts.map +1 -1
- package/dist/esm/models/operations/updatevendordetails.js.map +1 -1
- package/dist/esm/models/operations/updatevendormanagedbycompany.d.ts +7 -1
- package/dist/esm/models/operations/updatevendormanagedbycompany.d.ts.map +1 -1
- package/dist/esm/models/operations/updatevendormanagedbycompany.js.map +1 -1
- package/dist/esm/models/operations/updatevendorscrubdetails.d.ts +7 -1
- package/dist/esm/models/operations/updatevendorscrubdetails.d.ts.map +1 -1
- package/dist/esm/models/operations/updatevendorscrubdetails.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +1 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +1 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorsDetails.d.ts +2 -0
- package/dist/esm/react-query/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorsDetails.js +2 -0
- package/dist/esm/react-query/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/esm/react-query/vendorsListVendorAdditionalFacilityFields.core.d.ts +2 -26
- package/dist/esm/react-query/vendorsListVendorAdditionalFacilityFields.core.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsListVendorAdditionalFacilityFields.core.js +2 -53
- package/dist/esm/react-query/vendorsListVendorAdditionalFacilityFields.core.js.map +1 -1
- package/dist/esm/react-query/vendorsListVendorAdditionalFacilityFields.d.ts +20 -43
- package/dist/esm/react-query/vendorsListVendorAdditionalFacilityFields.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsListVendorAdditionalFacilityFields.js +17 -39
- package/dist/esm/react-query/vendorsListVendorAdditionalFacilityFields.js.map +1 -1
- package/dist/esm/react-query/vendorsListVendorCustomFields.core.d.ts +2 -26
- package/dist/esm/react-query/vendorsListVendorCustomFields.core.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsListVendorCustomFields.core.js +2 -53
- package/dist/esm/react-query/vendorsListVendorCustomFields.core.js.map +1 -1
- package/dist/esm/react-query/vendorsListVendorCustomFields.d.ts +27 -40
- package/dist/esm/react-query/vendorsListVendorCustomFields.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsListVendorCustomFields.js +25 -37
- package/dist/esm/react-query/vendorsListVendorCustomFields.js.map +1 -1
- package/dist/esm/react-query/vendorsUpdateVendorCustomField.d.ts +37 -0
- package/dist/esm/react-query/vendorsUpdateVendorCustomField.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsUpdateVendorCustomField.js +54 -0
- package/dist/esm/react-query/vendorsUpdateVendorCustomField.js.map +1 -0
- package/dist/esm/sdk/vendors.d.ts +35 -9
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +38 -5
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/vendors.test.ts +26 -48
- package/src/__tests__/zones.test.ts +29 -3
- package/src/admin-funcs/smartBadgePairBadge.ts +13 -0
- package/src/funcs/vendorsGetVendorsDetails.ts +1 -0
- package/src/funcs/vendorsListVendorAdditionalFacilityFields.ts +42 -111
- package/src/funcs/vendorsListVendorCustomFields.ts +48 -113
- package/src/funcs/vendorsUpdateVendorCustomField.ts +190 -0
- package/src/index.extras.ts +6 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/vendor.ts +11 -0
- package/src/models/components/vendorcustomfields.ts +111 -6
- package/src/models/operations/addvendormanagedbycompany.ts +7 -1
- package/src/models/operations/calculatesubscriptionprice.ts +7 -1
- package/src/models/operations/changesubscription.ts +7 -1
- package/src/models/operations/createvendorcompany.ts +7 -1
- package/src/models/operations/deletevendormanagedbycompany.ts +7 -1
- package/src/models/operations/expeditetimeremaining.ts +7 -1
- package/src/models/operations/getnextunansweredscreeningquestion.ts +7 -1
- package/src/models/operations/getsubscription.ts +7 -1
- package/src/models/operations/getvendorcredentialdetails.ts +7 -1
- package/src/models/operations/getvendorlegalname.ts +7 -1
- package/src/models/operations/getvendorsdetails.ts +7 -1
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listvendoradditionalfacilityfields.ts +8 -66
- package/src/models/operations/listvendorcredentialhistory.ts +7 -1
- package/src/models/operations/listvendorcredits.ts +7 -1
- package/src/models/operations/listvendorcustomfields.ts +8 -61
- package/src/models/operations/listvendorfacilitystatuses.ts +7 -1
- package/src/models/operations/listvendorinvoices.ts +7 -1
- package/src/models/operations/listvendormanagedbycompanies.ts +7 -1
- package/src/models/operations/listvendorscrubdetails.ts +7 -1
- package/src/models/operations/listvendorscrubpackages.ts +7 -1
- package/src/models/operations/listvendorscrubpurchases.ts +7 -1
- package/src/models/operations/purchasescrubcredits.ts +7 -1
- package/src/models/operations/updatevendorcredentialdata.ts +7 -1
- package/src/models/operations/updatevendorcustomfield.ts +93 -0
- package/src/models/operations/updatevendordetails.ts +7 -1
- package/src/models/operations/updatevendormanagedbycompany.ts +7 -1
- package/src/models/operations/updatevendorscrubdetails.ts +7 -1
- package/src/react-query/index.ts +1 -0
- package/src/react-query/vendorsGetVendorsDetails.ts +2 -0
- package/src/react-query/vendorsListVendorAdditionalFacilityFields.core.ts +1 -124
- package/src/react-query/vendorsListVendorAdditionalFacilityFields.ts +16 -127
- package/src/react-query/vendorsListVendorCustomFields.core.ts +2 -122
- package/src/react-query/vendorsListVendorCustomFields.ts +24 -125
- package/src/react-query/vendorsUpdateVendorCustomField.ts +124 -0
- package/src/sdk/vendors.ts +48 -12
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.
|
|
84
|
+
sdkVersion: "0.43.1-beta.124",
|
|
85
85
|
genVersion: "2.881.4",
|
|
86
86
|
userAgent:
|
|
87
|
-
"speakeasy-sdk/typescript 0.43.1-beta.
|
|
87
|
+
"speakeasy-sdk/typescript 0.43.1-beta.124 2.881.4 0.0.11 @greensecurity/javascript-sdk",
|
|
88
88
|
} as const;
|
|
@@ -26,6 +26,10 @@ import { Invoice, Invoice$inboundSchema } from "./invoice.js";
|
|
|
26
26
|
import { Subscription, Subscription$inboundSchema } from "./subscription.js";
|
|
27
27
|
import { Supervisor, Supervisor$inboundSchema } from "./supervisor.js";
|
|
28
28
|
import { UserLocation, UserLocation$inboundSchema } from "./userlocation.js";
|
|
29
|
+
import {
|
|
30
|
+
VendorCustomFields,
|
|
31
|
+
VendorCustomFields$inboundSchema,
|
|
32
|
+
} from "./vendorcustomfields.js";
|
|
29
33
|
import { VendorGroup, VendorGroup$inboundSchema } from "./vendorgroup.js";
|
|
30
34
|
import {
|
|
31
35
|
VendorJobTitle,
|
|
@@ -189,6 +193,10 @@ export type Vendor = {
|
|
|
189
193
|
vendorGroups?: Array<VendorGroup | null> | null | undefined;
|
|
190
194
|
hasCredentialedFacilities?: boolean | null | undefined;
|
|
191
195
|
targetFacilitiesUpdated?: string | null | undefined;
|
|
196
|
+
/**
|
|
197
|
+
* All custom fields (company-level and facility-level) associated with the vendor. Returned when expand includes vendor.custom_fields.
|
|
198
|
+
*/
|
|
199
|
+
customFields?: Array<VendorCustomFields> | null | undefined;
|
|
192
200
|
};
|
|
193
201
|
|
|
194
202
|
/** @internal */
|
|
@@ -586,6 +594,8 @@ export const Vendor$inboundSchema: z.ZodType<Vendor, z.ZodTypeDef, unknown> = z
|
|
|
586
594
|
).optional(),
|
|
587
595
|
has_credentialed_facilities: z.nullable(types.boolean()).optional(),
|
|
588
596
|
target_facilities_updated: z.nullable(types.string()).optional(),
|
|
597
|
+
custom_fields: z.nullable(z.array(VendorCustomFields$inboundSchema))
|
|
598
|
+
.optional(),
|
|
589
599
|
}).transform((v) => {
|
|
590
600
|
return remap$(v, {
|
|
591
601
|
"email_recepient": "emailRecepient",
|
|
@@ -613,6 +623,7 @@ export const Vendor$inboundSchema: z.ZodType<Vendor, z.ZodTypeDef, unknown> = z
|
|
|
613
623
|
"vendor_groups": "vendorGroups",
|
|
614
624
|
"has_credentialed_facilities": "hasCredentialedFacilities",
|
|
615
625
|
"target_facilities_updated": "targetFacilitiesUpdated",
|
|
626
|
+
"custom_fields": "customFields",
|
|
616
627
|
});
|
|
617
628
|
});
|
|
618
629
|
|
|
@@ -4,19 +4,119 @@
|
|
|
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";
|
|
9
|
+
import * as openEnums from "../../types/enums.js";
|
|
10
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
11
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
12
|
import * as types from "../../types/primitives.js";
|
|
10
13
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
14
|
|
|
15
|
+
/**
|
|
16
|
+
* The type of the custom field
|
|
17
|
+
*/
|
|
18
|
+
export const FieldType = {
|
|
19
|
+
Text: "text",
|
|
20
|
+
Date: "date",
|
|
21
|
+
Select: "select",
|
|
22
|
+
} as const;
|
|
23
|
+
/**
|
|
24
|
+
* The type of the custom field
|
|
25
|
+
*/
|
|
26
|
+
export type FieldType = OpenEnum<typeof FieldType>;
|
|
27
|
+
|
|
28
|
+
export const ForType = {
|
|
29
|
+
Company: "company",
|
|
30
|
+
Facility: "facility",
|
|
31
|
+
} as const;
|
|
32
|
+
export type ForType = OpenEnum<typeof ForType>;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Indicates whether this field belongs to a company or facility
|
|
36
|
+
*/
|
|
37
|
+
export type FieldFor = {
|
|
38
|
+
forType?: ForType | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Company name (present when for_type is company)
|
|
41
|
+
*/
|
|
42
|
+
company?: string | null | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Company ID (present when for_type is company)
|
|
45
|
+
*/
|
|
46
|
+
companyId?: number | null | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Facility name (present when for_type is facility)
|
|
49
|
+
*/
|
|
50
|
+
facility?: string | null | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Facility ID (present when for_type is facility)
|
|
53
|
+
*/
|
|
54
|
+
facilityId?: number | null | undefined;
|
|
55
|
+
};
|
|
56
|
+
|
|
12
57
|
export type VendorCustomFields = {
|
|
58
|
+
/**
|
|
59
|
+
* The vendor field ID
|
|
60
|
+
*/
|
|
13
61
|
id?: number | undefined;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
62
|
+
/**
|
|
63
|
+
* Display name of the custom field
|
|
64
|
+
*/
|
|
65
|
+
name?: string | null | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* The type of the custom field
|
|
68
|
+
*/
|
|
69
|
+
fieldType?: FieldType | null | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* The current value for this vendor
|
|
72
|
+
*/
|
|
17
73
|
value?: string | null | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Indicates whether this field belongs to a company or facility
|
|
76
|
+
*/
|
|
77
|
+
fieldFor?: FieldFor | null | undefined;
|
|
18
78
|
};
|
|
19
79
|
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const FieldType$inboundSchema: z.ZodType<
|
|
82
|
+
FieldType,
|
|
83
|
+
z.ZodTypeDef,
|
|
84
|
+
unknown
|
|
85
|
+
> = openEnums.inboundSchema(FieldType);
|
|
86
|
+
|
|
87
|
+
/** @internal */
|
|
88
|
+
export const ForType$inboundSchema: z.ZodType<ForType, z.ZodTypeDef, unknown> =
|
|
89
|
+
openEnums.inboundSchema(ForType);
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export const FieldFor$inboundSchema: z.ZodType<
|
|
93
|
+
FieldFor,
|
|
94
|
+
z.ZodTypeDef,
|
|
95
|
+
unknown
|
|
96
|
+
> = z.object({
|
|
97
|
+
for_type: types.optional(ForType$inboundSchema),
|
|
98
|
+
company: z.nullable(types.string()).optional(),
|
|
99
|
+
company_id: z.nullable(types.number()).optional(),
|
|
100
|
+
facility: z.nullable(types.string()).optional(),
|
|
101
|
+
facility_id: z.nullable(types.number()).optional(),
|
|
102
|
+
}).transform((v) => {
|
|
103
|
+
return remap$(v, {
|
|
104
|
+
"for_type": "forType",
|
|
105
|
+
"company_id": "companyId",
|
|
106
|
+
"facility_id": "facilityId",
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
export function fieldForFromJSON(
|
|
111
|
+
jsonString: string,
|
|
112
|
+
): SafeParseResult<FieldFor, SDKValidationError> {
|
|
113
|
+
return safeParse(
|
|
114
|
+
jsonString,
|
|
115
|
+
(x) => FieldFor$inboundSchema.parse(JSON.parse(x)),
|
|
116
|
+
`Failed to parse 'FieldFor' from JSON`,
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
|
|
20
120
|
/** @internal */
|
|
21
121
|
export const VendorCustomFields$inboundSchema: z.ZodType<
|
|
22
122
|
VendorCustomFields,
|
|
@@ -24,10 +124,15 @@ export const VendorCustomFields$inboundSchema: z.ZodType<
|
|
|
24
124
|
unknown
|
|
25
125
|
> = z.object({
|
|
26
126
|
id: types.optional(types.number()),
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
field: z.nullable(types.string()).optional(),
|
|
127
|
+
name: z.nullable(types.string()).optional(),
|
|
128
|
+
field_type: z.nullable(FieldType$inboundSchema).optional(),
|
|
30
129
|
value: z.nullable(types.string()).optional(),
|
|
130
|
+
field_for: z.nullable(z.lazy(() => FieldFor$inboundSchema)).optional(),
|
|
131
|
+
}).transform((v) => {
|
|
132
|
+
return remap$(v, {
|
|
133
|
+
"field_type": "fieldType",
|
|
134
|
+
"field_for": "fieldFor",
|
|
135
|
+
});
|
|
31
136
|
});
|
|
32
137
|
|
|
33
138
|
export function vendorCustomFieldsFromJSON(
|
|
@@ -19,7 +19,13 @@ export type AddVendorManagedByCompanyRequestBody = {
|
|
|
19
19
|
|
|
20
20
|
export type AddVendorManagedByCompanyRequest = {
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Vendor identifier. Depending on the endpoint, accepts one or more of:
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* - A numeric vendor ID (positive integer, e.g. `42`)
|
|
26
|
+
* - The keyword `me` to represent the authenticated vendor
|
|
27
|
+
* - An active QR code (alphanumeric, hyphen-separated, e.g. `ABC-123-DEF`) —
|
|
28
|
+
* supported only on endpoints that explicitly document QR-code lookup
|
|
23
29
|
*/
|
|
24
30
|
vendorIdOrMe: string;
|
|
25
31
|
requestBody: AddVendorManagedByCompanyRequestBody;
|
|
@@ -17,7 +17,13 @@ export type CalculateSubscriptionPriceRequestBody = {
|
|
|
17
17
|
|
|
18
18
|
export type CalculateSubscriptionPriceRequest = {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Vendor identifier. Depending on the endpoint, accepts one or more of:
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* - A numeric vendor ID (positive integer, e.g. `42`)
|
|
24
|
+
* - The keyword `me` to represent the authenticated vendor
|
|
25
|
+
* - An active QR code (alphanumeric, hyphen-separated, e.g. `ABC-123-DEF`) —
|
|
26
|
+
* supported only on endpoints that explicitly document QR-code lookup
|
|
21
27
|
*/
|
|
22
28
|
vendorIdOrMe: string;
|
|
23
29
|
requestBody: CalculateSubscriptionPriceRequestBody;
|
|
@@ -17,7 +17,13 @@ export type ChangeSubscriptionRequestBody = {
|
|
|
17
17
|
|
|
18
18
|
export type ChangeSubscriptionRequest = {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Vendor identifier. Depending on the endpoint, accepts one or more of:
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* - A numeric vendor ID (positive integer, e.g. `42`)
|
|
24
|
+
* - The keyword `me` to represent the authenticated vendor
|
|
25
|
+
* - An active QR code (alphanumeric, hyphen-separated, e.g. `ABC-123-DEF`) —
|
|
26
|
+
* supported only on endpoints that explicitly document QR-code lookup
|
|
21
27
|
*/
|
|
22
28
|
vendorIdOrMe: string;
|
|
23
29
|
requestBody: ChangeSubscriptionRequestBody;
|
|
@@ -40,7 +40,13 @@ export type CreateVendorCompanyRequestBody = {
|
|
|
40
40
|
|
|
41
41
|
export type CreateVendorCompanyRequest = {
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Vendor identifier. Depending on the endpoint, accepts one or more of:
|
|
44
|
+
*
|
|
45
|
+
* @remarks
|
|
46
|
+
* - A numeric vendor ID (positive integer, e.g. `42`)
|
|
47
|
+
* - The keyword `me` to represent the authenticated vendor
|
|
48
|
+
* - An active QR code (alphanumeric, hyphen-separated, e.g. `ABC-123-DEF`) —
|
|
49
|
+
* supported only on endpoints that explicitly document QR-code lookup
|
|
44
50
|
*/
|
|
45
51
|
vendorIdOrMe: string;
|
|
46
52
|
requestBody: CreateVendorCompanyRequestBody;
|
|
@@ -15,7 +15,13 @@ export type DeleteVendorManagedByCompanyRequestBody = {
|
|
|
15
15
|
|
|
16
16
|
export type DeleteVendorManagedByCompanyRequest = {
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Vendor identifier. Depending on the endpoint, accepts one or more of:
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* - A numeric vendor ID (positive integer, e.g. `42`)
|
|
22
|
+
* - The keyword `me` to represent the authenticated vendor
|
|
23
|
+
* - An active QR code (alphanumeric, hyphen-separated, e.g. `ABC-123-DEF`) —
|
|
24
|
+
* supported only on endpoints that explicitly document QR-code lookup
|
|
19
25
|
*/
|
|
20
26
|
vendorIdOrMe: string;
|
|
21
27
|
requestBody: DeleteVendorManagedByCompanyRequestBody;
|
|
@@ -12,7 +12,13 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
|
|
13
13
|
export type ExpediteTimeRemainingRequest = {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Vendor identifier. Depending on the endpoint, accepts one or more of:
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* - A numeric vendor ID (positive integer, e.g. `42`)
|
|
19
|
+
* - The keyword `me` to represent the authenticated vendor
|
|
20
|
+
* - An active QR code (alphanumeric, hyphen-separated, e.g. `ABC-123-DEF`) —
|
|
21
|
+
* supported only on endpoints that explicitly document QR-code lookup
|
|
16
22
|
*/
|
|
17
23
|
vendorIdOrMe: string;
|
|
18
24
|
};
|
|
@@ -13,7 +13,13 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
13
13
|
|
|
14
14
|
export type GetNextUnansweredScreeningQuestionRequest = {
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Vendor identifier. Depending on the endpoint, accepts one or more of:
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* - A numeric vendor ID (positive integer, e.g. `42`)
|
|
20
|
+
* - The keyword `me` to represent the authenticated vendor
|
|
21
|
+
* - An active QR code (alphanumeric, hyphen-separated, e.g. `ABC-123-DEF`) —
|
|
22
|
+
* supported only on endpoints that explicitly document QR-code lookup
|
|
17
23
|
*/
|
|
18
24
|
vendorIdOrMe: string;
|
|
19
25
|
/**
|
|
@@ -12,7 +12,13 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
|
|
13
13
|
export type GetSubscriptionRequest = {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Vendor identifier. Depending on the endpoint, accepts one or more of:
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* - A numeric vendor ID (positive integer, e.g. `42`)
|
|
19
|
+
* - The keyword `me` to represent the authenticated vendor
|
|
20
|
+
* - An active QR code (alphanumeric, hyphen-separated, e.g. `ABC-123-DEF`) —
|
|
21
|
+
* supported only on endpoints that explicitly document QR-code lookup
|
|
16
22
|
*/
|
|
17
23
|
vendorIdOrMe: string;
|
|
18
24
|
/**
|
|
@@ -12,7 +12,13 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
|
|
13
13
|
export type GetVendorCredentialDetailsRequest = {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Vendor identifier. Depending on the endpoint, accepts one or more of:
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* - A numeric vendor ID (positive integer, e.g. `42`)
|
|
19
|
+
* - The keyword `me` to represent the authenticated vendor
|
|
20
|
+
* - An active QR code (alphanumeric, hyphen-separated, e.g. `ABC-123-DEF`) —
|
|
21
|
+
* supported only on endpoints that explicitly document QR-code lookup
|
|
16
22
|
*/
|
|
17
23
|
vendorIdOrMe: string;
|
|
18
24
|
/**
|
|
@@ -12,7 +12,13 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
|
|
13
13
|
export type GetVendorLegalNameRequest = {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Vendor identifier. Depending on the endpoint, accepts one or more of:
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* - A numeric vendor ID (positive integer, e.g. `42`)
|
|
19
|
+
* - The keyword `me` to represent the authenticated vendor
|
|
20
|
+
* - An active QR code (alphanumeric, hyphen-separated, e.g. `ABC-123-DEF`) —
|
|
21
|
+
* supported only on endpoints that explicitly document QR-code lookup
|
|
16
22
|
*/
|
|
17
23
|
vendorIdOrMe: string;
|
|
18
24
|
};
|
|
@@ -9,7 +9,13 @@ import * as components from "../components/index.js";
|
|
|
9
9
|
|
|
10
10
|
export type GetVendorsDetailsRequest = {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Vendor identifier. Depending on the endpoint, accepts one or more of:
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* - A numeric vendor ID (positive integer, e.g. `42`)
|
|
16
|
+
* - The keyword `me` to represent the authenticated vendor
|
|
17
|
+
* - An active QR code (alphanumeric, hyphen-separated, e.g. `ABC-123-DEF`) —
|
|
18
|
+
* supported only on endpoints that explicitly document QR-code lookup
|
|
13
19
|
*/
|
|
14
20
|
vendorIdOrMe: string;
|
|
15
21
|
/**
|
|
@@ -110,6 +110,7 @@ export * from "./updateuseralerts.js";
|
|
|
110
110
|
export * from "./updateuserprofilepicture.js";
|
|
111
111
|
export * from "./updatevendorcredentialdata.js";
|
|
112
112
|
export * from "./updatevendorcredentialfile.js";
|
|
113
|
+
export * from "./updatevendorcustomfield.js";
|
|
113
114
|
export * from "./updatevendordetails.js";
|
|
114
115
|
export * from "./updatevendorfield.js";
|
|
115
116
|
export * from "./updatevendormanagedbycompany.js";
|
|
@@ -12,50 +12,27 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
|
|
13
13
|
export type ListVendorAdditionalFacilityFieldsRequest = {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
*
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* A 1-based offset for which page to request (defaults to 1)
|
|
24
|
-
*/
|
|
25
|
-
page?: number | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Number of items to show in a given page
|
|
28
|
-
*/
|
|
29
|
-
itemsPerPage?: number | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* Either the ID of the vendor rep or the keyword "me" to represent the current vendor.
|
|
15
|
+
* Vendor identifier. Depending on the endpoint, accepts one or more of:
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* - A numeric vendor ID (positive integer, e.g. `42`)
|
|
19
|
+
* - The keyword `me` to represent the authenticated vendor
|
|
20
|
+
* - An active QR code (alphanumeric, hyphen-separated, e.g. `ABC-123-DEF`) —
|
|
21
|
+
* supported only on endpoints that explicitly document QR-code lookup
|
|
32
22
|
*/
|
|
33
23
|
vendorIdOrMe: string;
|
|
34
24
|
};
|
|
35
25
|
|
|
36
26
|
/**
|
|
37
|
-
* The request was successful
|
|
27
|
+
* The request was successful.
|
|
38
28
|
*/
|
|
39
29
|
export type ListVendorAdditionalFacilityFieldsListVendorAdditionalFacilityFieldsOk =
|
|
40
30
|
{
|
|
41
31
|
items: Array<components.VendorCustomFields>;
|
|
42
|
-
/**
|
|
43
|
-
* Pagination information for a pageable list
|
|
44
|
-
*/
|
|
45
|
-
pager: components.Pager;
|
|
46
32
|
};
|
|
47
33
|
|
|
48
|
-
export type ListVendorAdditionalFacilityFieldsResponse = {
|
|
49
|
-
result:
|
|
50
|
-
ListVendorAdditionalFacilityFieldsListVendorAdditionalFacilityFieldsOk;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
34
|
/** @internal */
|
|
54
35
|
export type ListVendorAdditionalFacilityFieldsRequest$Outbound = {
|
|
55
|
-
sort?: string | null | undefined;
|
|
56
|
-
desc?: components.Desc$Outbound | undefined;
|
|
57
|
-
page?: number | undefined;
|
|
58
|
-
items_per_page?: number | undefined;
|
|
59
36
|
vendor_id_or_me: string;
|
|
60
37
|
};
|
|
61
38
|
|
|
@@ -66,14 +43,9 @@ export const ListVendorAdditionalFacilityFieldsRequest$outboundSchema:
|
|
|
66
43
|
z.ZodTypeDef,
|
|
67
44
|
ListVendorAdditionalFacilityFieldsRequest
|
|
68
45
|
> = z.object({
|
|
69
|
-
sort: z.nullable(z.string()).optional(),
|
|
70
|
-
desc: components.Desc$outboundSchema.optional(),
|
|
71
|
-
page: z.number().int().optional(),
|
|
72
|
-
itemsPerPage: z.number().int().optional(),
|
|
73
46
|
vendorIdOrMe: z.string(),
|
|
74
47
|
}).transform((v) => {
|
|
75
48
|
return remap$(v, {
|
|
76
|
-
itemsPerPage: "items_per_page",
|
|
77
49
|
vendorIdOrMe: "vendor_id_or_me",
|
|
78
50
|
});
|
|
79
51
|
});
|
|
@@ -97,7 +69,6 @@ export const ListVendorAdditionalFacilityFieldsListVendorAdditionalFacilityField
|
|
|
97
69
|
unknown
|
|
98
70
|
> = z.object({
|
|
99
71
|
items: z.array(components.VendorCustomFields$inboundSchema),
|
|
100
|
-
pager: components.Pager$inboundSchema,
|
|
101
72
|
});
|
|
102
73
|
|
|
103
74
|
export function listVendorAdditionalFacilityFieldsListVendorAdditionalFacilityFieldsOkFromJSON(
|
|
@@ -114,32 +85,3 @@ export function listVendorAdditionalFacilityFieldsListVendorAdditionalFacilityFi
|
|
|
114
85
|
`Failed to parse 'ListVendorAdditionalFacilityFieldsListVendorAdditionalFacilityFieldsOk' from JSON`,
|
|
115
86
|
);
|
|
116
87
|
}
|
|
117
|
-
|
|
118
|
-
/** @internal */
|
|
119
|
-
export const ListVendorAdditionalFacilityFieldsResponse$inboundSchema:
|
|
120
|
-
z.ZodType<ListVendorAdditionalFacilityFieldsResponse, z.ZodTypeDef, unknown> =
|
|
121
|
-
z.object({
|
|
122
|
-
Result: z.lazy(() =>
|
|
123
|
-
ListVendorAdditionalFacilityFieldsListVendorAdditionalFacilityFieldsOk$inboundSchema
|
|
124
|
-
),
|
|
125
|
-
}).transform((v) => {
|
|
126
|
-
return remap$(v, {
|
|
127
|
-
"Result": "result",
|
|
128
|
-
});
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
export function listVendorAdditionalFacilityFieldsResponseFromJSON(
|
|
132
|
-
jsonString: string,
|
|
133
|
-
): SafeParseResult<
|
|
134
|
-
ListVendorAdditionalFacilityFieldsResponse,
|
|
135
|
-
SDKValidationError
|
|
136
|
-
> {
|
|
137
|
-
return safeParse(
|
|
138
|
-
jsonString,
|
|
139
|
-
(x) =>
|
|
140
|
-
ListVendorAdditionalFacilityFieldsResponse$inboundSchema.parse(
|
|
141
|
-
JSON.parse(x),
|
|
142
|
-
),
|
|
143
|
-
`Failed to parse 'ListVendorAdditionalFacilityFieldsResponse' from JSON`,
|
|
144
|
-
);
|
|
145
|
-
}
|
|
@@ -29,7 +29,13 @@ export type ListVendorCredentialHistoryRequest = {
|
|
|
29
29
|
*/
|
|
30
30
|
itemsPerPage?: number | undefined;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Vendor identifier. Depending on the endpoint, accepts one or more of:
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* - A numeric vendor ID (positive integer, e.g. `42`)
|
|
36
|
+
* - The keyword `me` to represent the authenticated vendor
|
|
37
|
+
* - An active QR code (alphanumeric, hyphen-separated, e.g. `ABC-123-DEF`) —
|
|
38
|
+
* supported only on endpoints that explicitly document QR-code lookup
|
|
33
39
|
*/
|
|
34
40
|
vendorIdOrMe: string;
|
|
35
41
|
/**
|
|
@@ -28,7 +28,13 @@ export type ListVendorCreditsRequest = {
|
|
|
28
28
|
*/
|
|
29
29
|
itemsPerPage?: number | undefined;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Vendor identifier. Depending on the endpoint, accepts one or more of:
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* - A numeric vendor ID (positive integer, e.g. `42`)
|
|
35
|
+
* - The keyword `me` to represent the authenticated vendor
|
|
36
|
+
* - An active QR code (alphanumeric, hyphen-separated, e.g. `ABC-123-DEF`) —
|
|
37
|
+
* supported only on endpoints that explicitly document QR-code lookup
|
|
32
38
|
*/
|
|
33
39
|
vendorIdOrMe: string;
|
|
34
40
|
};
|
|
@@ -12,48 +12,26 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
|
|
13
13
|
export type ListVendorCustomFieldsRequest = {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
*
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* A 1-based offset for which page to request (defaults to 1)
|
|
24
|
-
*/
|
|
25
|
-
page?: number | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Number of items to show in a given page
|
|
28
|
-
*/
|
|
29
|
-
itemsPerPage?: number | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* Either the ID of the vendor rep or the keyword "me" to represent the current vendor.
|
|
15
|
+
* Vendor identifier. Depending on the endpoint, accepts one or more of:
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* - A numeric vendor ID (positive integer, e.g. `42`)
|
|
19
|
+
* - The keyword `me` to represent the authenticated vendor
|
|
20
|
+
* - An active QR code (alphanumeric, hyphen-separated, e.g. `ABC-123-DEF`) —
|
|
21
|
+
* supported only on endpoints that explicitly document QR-code lookup
|
|
32
22
|
*/
|
|
33
23
|
vendorIdOrMe: string;
|
|
34
24
|
};
|
|
35
25
|
|
|
36
26
|
/**
|
|
37
|
-
* The request was successful
|
|
27
|
+
* The request was successful.
|
|
38
28
|
*/
|
|
39
29
|
export type ListVendorCustomFieldsListVendorCustomFieldsOk = {
|
|
40
30
|
items: Array<components.VendorCustomFields>;
|
|
41
|
-
/**
|
|
42
|
-
* Pagination information for a pageable list
|
|
43
|
-
*/
|
|
44
|
-
pager: components.Pager;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export type ListVendorCustomFieldsResponse = {
|
|
48
|
-
result: ListVendorCustomFieldsListVendorCustomFieldsOk;
|
|
49
31
|
};
|
|
50
32
|
|
|
51
33
|
/** @internal */
|
|
52
34
|
export type ListVendorCustomFieldsRequest$Outbound = {
|
|
53
|
-
sort?: string | null | undefined;
|
|
54
|
-
desc?: components.Desc$Outbound | undefined;
|
|
55
|
-
page?: number | undefined;
|
|
56
|
-
items_per_page?: number | undefined;
|
|
57
35
|
vendor_id_or_me: string;
|
|
58
36
|
};
|
|
59
37
|
|
|
@@ -63,14 +41,9 @@ export const ListVendorCustomFieldsRequest$outboundSchema: z.ZodType<
|
|
|
63
41
|
z.ZodTypeDef,
|
|
64
42
|
ListVendorCustomFieldsRequest
|
|
65
43
|
> = z.object({
|
|
66
|
-
sort: z.nullable(z.string()).optional(),
|
|
67
|
-
desc: components.Desc$outboundSchema.optional(),
|
|
68
|
-
page: z.number().int().optional(),
|
|
69
|
-
itemsPerPage: z.number().int().optional(),
|
|
70
44
|
vendorIdOrMe: z.string(),
|
|
71
45
|
}).transform((v) => {
|
|
72
46
|
return remap$(v, {
|
|
73
|
-
itemsPerPage: "items_per_page",
|
|
74
47
|
vendorIdOrMe: "vendor_id_or_me",
|
|
75
48
|
});
|
|
76
49
|
});
|
|
@@ -93,7 +66,6 @@ export const ListVendorCustomFieldsListVendorCustomFieldsOk$inboundSchema:
|
|
|
93
66
|
unknown
|
|
94
67
|
> = z.object({
|
|
95
68
|
items: z.array(components.VendorCustomFields$inboundSchema),
|
|
96
|
-
pager: components.Pager$inboundSchema,
|
|
97
69
|
});
|
|
98
70
|
|
|
99
71
|
export function listVendorCustomFieldsListVendorCustomFieldsOkFromJSON(
|
|
@@ -111,28 +83,3 @@ export function listVendorCustomFieldsListVendorCustomFieldsOkFromJSON(
|
|
|
111
83
|
`Failed to parse 'ListVendorCustomFieldsListVendorCustomFieldsOk' from JSON`,
|
|
112
84
|
);
|
|
113
85
|
}
|
|
114
|
-
|
|
115
|
-
/** @internal */
|
|
116
|
-
export const ListVendorCustomFieldsResponse$inboundSchema: z.ZodType<
|
|
117
|
-
ListVendorCustomFieldsResponse,
|
|
118
|
-
z.ZodTypeDef,
|
|
119
|
-
unknown
|
|
120
|
-
> = z.object({
|
|
121
|
-
Result: z.lazy(() =>
|
|
122
|
-
ListVendorCustomFieldsListVendorCustomFieldsOk$inboundSchema
|
|
123
|
-
),
|
|
124
|
-
}).transform((v) => {
|
|
125
|
-
return remap$(v, {
|
|
126
|
-
"Result": "result",
|
|
127
|
-
});
|
|
128
|
-
});
|
|
129
|
-
|
|
130
|
-
export function listVendorCustomFieldsResponseFromJSON(
|
|
131
|
-
jsonString: string,
|
|
132
|
-
): SafeParseResult<ListVendorCustomFieldsResponse, SDKValidationError> {
|
|
133
|
-
return safeParse(
|
|
134
|
-
jsonString,
|
|
135
|
-
(x) => ListVendorCustomFieldsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
136
|
-
`Failed to parse 'ListVendorCustomFieldsResponse' from JSON`,
|
|
137
|
-
);
|
|
138
|
-
}
|
|
@@ -12,7 +12,13 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
|
|
13
13
|
export type ListVendorFacilityStatusesRequest = {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Vendor identifier. Depending on the endpoint, accepts one or more of:
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* - A numeric vendor ID (positive integer, e.g. `42`)
|
|
19
|
+
* - The keyword `me` to represent the authenticated vendor
|
|
20
|
+
* - An active QR code (alphanumeric, hyphen-separated, e.g. `ABC-123-DEF`) —
|
|
21
|
+
* supported only on endpoints that explicitly document QR-code lookup
|
|
16
22
|
*/
|
|
17
23
|
vendorIdOrMe: string;
|
|
18
24
|
/**
|
|
@@ -33,7 +33,13 @@ export type ListVendorInvoicesRequest = {
|
|
|
33
33
|
*/
|
|
34
34
|
expand?: Array<components.Expand> | undefined;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Vendor identifier. Depending on the endpoint, accepts one or more of:
|
|
37
|
+
*
|
|
38
|
+
* @remarks
|
|
39
|
+
* - A numeric vendor ID (positive integer, e.g. `42`)
|
|
40
|
+
* - The keyword `me` to represent the authenticated vendor
|
|
41
|
+
* - An active QR code (alphanumeric, hyphen-separated, e.g. `ABC-123-DEF`) —
|
|
42
|
+
* supported only on endpoints that explicitly document QR-code lookup
|
|
37
43
|
*/
|
|
38
44
|
vendorIdOrMe: string;
|
|
39
45
|
/**
|