@greensecurity/javascript-sdk 0.9.1
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/.devcontainer/README.md +35 -0
- package/.devcontainer/devcontainer.json +45 -0
- package/FUNCTIONS.md +109 -0
- package/REACT_QUERY.md +318 -0
- package/README.md +561 -0
- package/RUNTIMES.md +48 -0
- package/core.d.ts +10 -0
- package/core.d.ts.map +1 -0
- package/core.js +17 -0
- package/core.js.map +1 -0
- package/docs/sdks/greensecurity/README.md +14 -0
- package/docs/sdks/organizations/README.md +252 -0
- package/docs/sdks/user/README.md +348 -0
- package/docs/sdks/vendors/README.md +219 -0
- package/funcs/organizationsGetFacility.d.ts +17 -0
- package/funcs/organizationsGetFacility.d.ts.map +1 -0
- package/funcs/organizationsGetFacility.js +117 -0
- package/funcs/organizationsGetFacility.js.map +1 -0
- package/funcs/organizationsListOrSearchFacilities.d.ts +28 -0
- package/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -0
- package/funcs/organizationsListOrSearchFacilities.js +131 -0
- package/funcs/organizationsListOrSearchFacilities.js.map +1 -0
- package/funcs/userGetCurrentUser.d.ts +16 -0
- package/funcs/userGetCurrentUser.d.ts.map +1 -0
- package/funcs/userGetCurrentUser.js +101 -0
- package/funcs/userGetCurrentUser.js.map +1 -0
- package/funcs/userGetUserById.d.ts +17 -0
- package/funcs/userGetUserById.d.ts.map +1 -0
- package/funcs/userGetUserById.js +117 -0
- package/funcs/userGetUserById.js.map +1 -0
- package/funcs/userLogsUserIntoTheSystem.d.ts +46 -0
- package/funcs/userLogsUserIntoTheSystem.d.ts.map +1 -0
- package/funcs/userLogsUserIntoTheSystem.js +137 -0
- package/funcs/userLogsUserIntoTheSystem.js.map +1 -0
- package/funcs/vendorsCreateVendorRegistration.d.ts +16 -0
- package/funcs/vendorsCreateVendorRegistration.d.ts.map +1 -0
- package/funcs/vendorsCreateVendorRegistration.js +107 -0
- package/funcs/vendorsCreateVendorRegistration.js.map +1 -0
- package/funcs/vendorsListVendorJobTitles.d.ts +16 -0
- package/funcs/vendorsListVendorJobTitles.d.ts.map +1 -0
- package/funcs/vendorsListVendorJobTitles.js +114 -0
- package/funcs/vendorsListVendorJobTitles.js.map +1 -0
- package/hooks/hooks.d.ts +24 -0
- package/hooks/hooks.d.ts.map +1 -0
- package/hooks/hooks.js +86 -0
- package/hooks/hooks.js.map +1 -0
- package/hooks/index.d.ts +3 -0
- package/hooks/index.d.ts.map +1 -0
- package/hooks/index.js +22 -0
- package/hooks/index.js.map +1 -0
- package/hooks/registration.d.ts +3 -0
- package/hooks/registration.d.ts.map +1 -0
- package/hooks/registration.js +15 -0
- package/hooks/registration.js.map +1 -0
- package/hooks/types.d.ts +78 -0
- package/hooks/types.d.ts.map +1 -0
- package/hooks/types.js +6 -0
- package/hooks/types.js.map +1 -0
- package/index.d.ts +4 -0
- package/index.d.ts.map +1 -0
- package/index.js +46 -0
- package/index.js.map +1 -0
- package/jsr.json +27 -0
- package/lib/base64.d.ts +10 -0
- package/lib/base64.d.ts.map +1 -0
- package/lib/base64.js +71 -0
- package/lib/base64.js.map +1 -0
- package/lib/config.d.ts +38 -0
- package/lib/config.d.ts.map +1 -0
- package/lib/config.js +46 -0
- package/lib/config.js.map +1 -0
- package/lib/dlv.d.ts +14 -0
- package/lib/dlv.d.ts.map +1 -0
- package/lib/dlv.js +49 -0
- package/lib/dlv.js.map +1 -0
- package/lib/encodings.d.ts +52 -0
- package/lib/encodings.d.ts.map +1 -0
- package/lib/encodings.js +368 -0
- package/lib/encodings.js.map +1 -0
- package/lib/env.d.ts +16 -0
- package/lib/env.d.ts.map +1 -0
- package/lib/env.js +66 -0
- package/lib/env.js.map +1 -0
- package/lib/files.d.ts +8 -0
- package/lib/files.d.ts.map +1 -0
- package/lib/files.js +36 -0
- package/lib/files.js.map +1 -0
- package/lib/http.d.ts +67 -0
- package/lib/http.d.ts.map +1 -0
- package/lib/http.js +217 -0
- package/lib/http.js.map +1 -0
- package/lib/is-plain-object.d.ts +2 -0
- package/lib/is-plain-object.d.ts.map +1 -0
- package/lib/is-plain-object.js +41 -0
- package/lib/is-plain-object.js.map +1 -0
- package/lib/logger.d.ts +6 -0
- package/lib/logger.d.ts.map +1 -0
- package/lib/logger.js +6 -0
- package/lib/logger.js.map +1 -0
- package/lib/matchers.d.ts +64 -0
- package/lib/matchers.d.ts.map +1 -0
- package/lib/matchers.js +204 -0
- package/lib/matchers.js.map +1 -0
- package/lib/primitives.d.ts +23 -0
- package/lib/primitives.d.ts.map +1 -0
- package/lib/primitives.js +104 -0
- package/lib/primitives.js.map +1 -0
- package/lib/retries.d.ts +38 -0
- package/lib/retries.d.ts.map +1 -0
- package/lib/retries.js +153 -0
- package/lib/retries.js.map +1 -0
- package/lib/schemas.d.ts +19 -0
- package/lib/schemas.d.ts.map +1 -0
- package/lib/schemas.js +62 -0
- package/lib/schemas.js.map +1 -0
- package/lib/sdks.d.ts +60 -0
- package/lib/sdks.d.ts.map +1 -0
- package/lib/sdks.js +280 -0
- package/lib/sdks.js.map +1 -0
- package/lib/security.d.ts +82 -0
- package/lib/security.d.ts.map +1 -0
- package/lib/security.js +145 -0
- package/lib/security.js.map +1 -0
- package/lib/url.d.ts +5 -0
- package/lib/url.d.ts.map +1 -0
- package/lib/url.js +25 -0
- package/lib/url.js.map +1 -0
- package/models/components/contact.d.ts +135 -0
- package/models/components/contact.d.ts.map +1 -0
- package/models/components/contact.js +172 -0
- package/models/components/contact.js.map +1 -0
- package/models/components/departmentsummary.d.ts +34 -0
- package/models/components/departmentsummary.d.ts.map +1 -0
- package/models/components/departmentsummary.js +71 -0
- package/models/components/departmentsummary.js.map +1 -0
- package/models/components/desc.d.ts +25 -0
- package/models/components/desc.d.ts.map +1 -0
- package/models/components/desc.js +66 -0
- package/models/components/desc.js.map +1 -0
- package/models/components/expand.d.ts +79 -0
- package/models/components/expand.d.ts.map +1 -0
- package/models/components/expand.js +79 -0
- package/models/components/expand.js.map +1 -0
- package/models/components/facility.d.ts +544 -0
- package/models/components/facility.d.ts.map +1 -0
- package/models/components/facility.js +797 -0
- package/models/components/facility.js.map +1 -0
- package/models/components/facilitysummary.d.ts +34 -0
- package/models/components/facilitysummary.d.ts.map +1 -0
- package/models/components/facilitysummary.js +71 -0
- package/models/components/facilitysummary.js.map +1 -0
- package/models/components/imageset.d.ts +38 -0
- package/models/components/imageset.d.ts.map +1 -0
- package/models/components/imageset.js +75 -0
- package/models/components/imageset.js.map +1 -0
- package/models/components/index.d.ts +20 -0
- package/models/components/index.d.ts.map +1 -0
- package/models/components/index.js +39 -0
- package/models/components/index.js.map +1 -0
- package/models/components/loginemailandpassword.d.ts +45 -0
- package/models/components/loginemailandpassword.d.ts.map +1 -0
- package/models/components/loginemailandpassword.js +82 -0
- package/models/components/loginemailandpassword.js.map +1 -0
- package/models/components/loginrequirementsfromemail.d.ts +40 -0
- package/models/components/loginrequirementsfromemail.d.ts.map +1 -0
- package/models/components/loginrequirementsfromemail.js +80 -0
- package/models/components/loginrequirementsfromemail.js.map +1 -0
- package/models/components/mfarequiredresponse.d.ts +98 -0
- package/models/components/mfarequiredresponse.d.ts.map +1 -0
- package/models/components/mfarequiredresponse.js +126 -0
- package/models/components/mfarequiredresponse.js.map +1 -0
- package/models/components/pager.d.ts +69 -0
- package/models/components/pager.d.ts.map +1 -0
- package/models/components/pager.js +97 -0
- package/models/components/pager.js.map +1 -0
- package/models/components/passwordrequiredresponse.d.ts +62 -0
- package/models/components/passwordrequiredresponse.d.ts.map +1 -0
- package/models/components/passwordrequiredresponse.js +92 -0
- package/models/components/passwordrequiredresponse.js.map +1 -0
- package/models/components/samlloginrequiredresponse.d.ts +73 -0
- package/models/components/samlloginrequiredresponse.d.ts.map +1 -0
- package/models/components/samlloginrequiredresponse.js +106 -0
- package/models/components/samlloginrequiredresponse.js.map +1 -0
- package/models/components/security.d.ts +31 -0
- package/models/components/security.d.ts.map +1 -0
- package/models/components/security.js +80 -0
- package/models/components/security.js.map +1 -0
- package/models/components/status.d.ts +37 -0
- package/models/components/status.d.ts.map +1 -0
- package/models/components/status.js +65 -0
- package/models/components/status.js.map +1 -0
- package/models/components/systemsummary.d.ts +34 -0
- package/models/components/systemsummary.d.ts.map +1 -0
- package/models/components/systemsummary.js +71 -0
- package/models/components/systemsummary.js.map +1 -0
- package/models/components/user.d.ts +265 -0
- package/models/components/user.d.ts.map +1 -0
- package/models/components/user.js +284 -0
- package/models/components/user.js.map +1 -0
- package/models/components/vendorjobtitle.d.ts +41 -0
- package/models/components/vendorjobtitle.d.ts.map +1 -0
- package/models/components/vendorjobtitle.js +71 -0
- package/models/components/vendorjobtitle.js.map +1 -0
- package/models/components/vendortype.d.ts +69 -0
- package/models/components/vendortype.d.ts.map +1 -0
- package/models/components/vendortype.js +135 -0
- package/models/components/vendortype.js.map +1 -0
- package/models/errors/apierror.d.ts +8 -0
- package/models/errors/apierror.d.ts.map +1 -0
- package/models/errors/apierror.js +21 -0
- package/models/errors/apierror.js.map +1 -0
- package/models/errors/apierrorresponse.d.ts +51 -0
- package/models/errors/apierrorresponse.d.ts.map +1 -0
- package/models/errors/apierrorresponse.js +91 -0
- package/models/errors/apierrorresponse.js.map +1 -0
- package/models/errors/httpclienterrors.d.ts +44 -0
- package/models/errors/httpclienterrors.d.ts.map +1 -0
- package/models/errors/httpclienterrors.js +78 -0
- package/models/errors/httpclienterrors.js.map +1 -0
- package/models/errors/index.d.ts +5 -0
- package/models/errors/index.d.ts.map +1 -0
- package/models/errors/index.js +24 -0
- package/models/errors/index.js.map +1 -0
- package/models/errors/sdkvalidationerror.d.ts +20 -0
- package/models/errors/sdkvalidationerror.d.ts.map +1 -0
- package/models/errors/sdkvalidationerror.js +115 -0
- package/models/errors/sdkvalidationerror.js.map +1 -0
- package/models/operations/createvendorregistration.d.ts +115 -0
- package/models/operations/createvendorregistration.d.ts.map +1 -0
- package/models/operations/createvendorregistration.js +143 -0
- package/models/operations/createvendorregistration.js.map +1 -0
- package/models/operations/getfacility.d.ts +32 -0
- package/models/operations/getfacility.d.ts.map +1 -0
- package/models/operations/getfacility.js +69 -0
- package/models/operations/getfacility.js.map +1 -0
- package/models/operations/getuserbyid.d.ts +32 -0
- package/models/operations/getuserbyid.d.ts.map +1 -0
- package/models/operations/getuserbyid.js +69 -0
- package/models/operations/getuserbyid.js.map +1 -0
- package/models/operations/index.d.ts +7 -0
- package/models/operations/index.d.ts.map +1 -0
- package/models/operations/index.js +26 -0
- package/models/operations/index.js.map +1 -0
- package/models/operations/listorsearchfacilities.d.ts +110 -0
- package/models/operations/listorsearchfacilities.d.ts.map +1 -0
- package/models/operations/listorsearchfacilities.js +130 -0
- package/models/operations/listorsearchfacilities.js.map +1 -0
- package/models/operations/listvendorjobtitles.d.ts +86 -0
- package/models/operations/listvendorjobtitles.d.ts.map +1 -0
- package/models/operations/listvendorjobtitles.js +118 -0
- package/models/operations/listvendorjobtitles.js.map +1 -0
- package/models/operations/logsuserintothesystem.d.ts +98 -0
- package/models/operations/logsuserintothesystem.d.ts.map +1 -0
- package/models/operations/logsuserintothesystem.js +164 -0
- package/models/operations/logsuserintothesystem.js.map +1 -0
- package/package.json +41 -0
- package/react-query/_context.d.ts +8 -0
- package/react-query/_context.d.ts.map +1 -0
- package/react-query/_context.js +21 -0
- package/react-query/_context.js.map +1 -0
- package/react-query/_types.d.ts +14 -0
- package/react-query/_types.d.ts.map +1 -0
- package/react-query/_types.js +6 -0
- package/react-query/_types.js.map +1 -0
- package/react-query/index.d.ts +10 -0
- package/react-query/index.d.ts.map +1 -0
- package/react-query/index.js +32 -0
- package/react-query/index.js.map +1 -0
- package/react-query/organizationsGetFacility.d.ts +31 -0
- package/react-query/organizationsGetFacility.d.ts.map +1 -0
- package/react-query/organizationsGetFacility.js +87 -0
- package/react-query/organizationsGetFacility.js.map +1 -0
- package/react-query/organizationsListOrSearchFacilities.d.ts +91 -0
- package/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -0
- package/react-query/organizationsListOrSearchFacilities.js +132 -0
- package/react-query/organizationsListOrSearchFacilities.js.map +1 -0
- package/react-query/userGetCurrentUser.d.ts +29 -0
- package/react-query/userGetCurrentUser.d.ts.map +1 -0
- package/react-query/userGetCurrentUser.js +75 -0
- package/react-query/userGetCurrentUser.js.map +1 -0
- package/react-query/userGetUserById.d.ts +31 -0
- package/react-query/userGetUserById.d.ts.map +1 -0
- package/react-query/userGetUserById.js +87 -0
- package/react-query/userGetUserById.js.map +1 -0
- package/react-query/userLogsUserIntoTheSystem.d.ts +53 -0
- package/react-query/userLogsUserIntoTheSystem.d.ts.map +1 -0
- package/react-query/userLogsUserIntoTheSystem.js +77 -0
- package/react-query/userLogsUserIntoTheSystem.js.map +1 -0
- package/react-query/vendorsCreateVendorRegistration.d.ts +23 -0
- package/react-query/vendorsCreateVendorRegistration.d.ts.map +1 -0
- package/react-query/vendorsCreateVendorRegistration.js +51 -0
- package/react-query/vendorsCreateVendorRegistration.js.map +1 -0
- package/react-query/vendorsListVendorJobTitles.d.ts +53 -0
- package/react-query/vendorsListVendorJobTitles.d.ts.map +1 -0
- package/react-query/vendorsListVendorJobTitles.js +102 -0
- package/react-query/vendorsListVendorJobTitles.js.map +1 -0
- package/sdk/index.d.ts +2 -0
- package/sdk/index.d.ts.map +1 -0
- package/sdk/index.js +21 -0
- package/sdk/index.js.map +1 -0
- package/sdk/organizations.d.ts +33 -0
- package/sdk/organizations.d.ts.map +1 -0
- package/sdk/organizations.js +45 -0
- package/sdk/organizations.js.map +1 -0
- package/sdk/sdk.d.ts +13 -0
- package/sdk/sdk.d.ts.map +1 -0
- package/sdk/sdk.js +23 -0
- package/sdk/sdk.js.map +1 -0
- package/sdk/user.d.ts +57 -0
- package/sdk/user.d.ts.map +1 -0
- package/sdk/user.js +72 -0
- package/sdk/user.js.map +1 -0
- package/sdk/vendors.d.ts +19 -0
- package/sdk/vendors.d.ts.map +1 -0
- package/sdk/vendors.js +32 -0
- package/sdk/vendors.js.map +1 -0
- package/src/core.ts +13 -0
- package/src/funcs/organizationsGetFacility.ts +144 -0
- package/src/funcs/organizationsListOrSearchFacilities.ts +152 -0
- package/src/funcs/userGetCurrentUser.ts +118 -0
- package/src/funcs/userGetUserById.ts +141 -0
- package/src/funcs/userLogsUserIntoTheSystem.ts +161 -0
- package/src/funcs/vendorsCreateVendorRegistration.ts +132 -0
- package/src/funcs/vendorsListVendorJobTitles.ts +141 -0
- package/src/hooks/hooks.ts +132 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/registration.ts +14 -0
- package/src/hooks/types.ts +110 -0
- package/src/index.ts +7 -0
- package/src/lib/base64.ts +37 -0
- package/src/lib/config.ts +76 -0
- package/src/lib/dlv.ts +53 -0
- package/src/lib/encodings.ts +483 -0
- package/src/lib/env.ts +43 -0
- package/src/lib/files.ts +40 -0
- package/src/lib/http.ts +323 -0
- package/src/lib/is-plain-object.ts +43 -0
- package/src/lib/logger.ts +9 -0
- package/src/lib/matchers.ts +322 -0
- package/src/lib/primitives.ts +136 -0
- package/src/lib/retries.ts +218 -0
- package/src/lib/schemas.ts +91 -0
- package/src/lib/sdks.ts +400 -0
- package/src/lib/security.ts +260 -0
- package/src/lib/url.ts +33 -0
- package/src/models/components/contact.ts +268 -0
- package/src/models/components/departmentsummary.ts +73 -0
- package/src/models/components/desc.ts +48 -0
- package/src/models/components/expand.ts +52 -0
- package/src/models/components/facility.ts +1334 -0
- package/src/models/components/facilitysummary.ts +71 -0
- package/src/models/components/imageset.ts +77 -0
- package/src/models/components/index.ts +23 -0
- package/src/models/components/loginemailandpassword.ts +95 -0
- package/src/models/components/loginrequirementsfromemail.ts +88 -0
- package/src/models/components/mfarequiredresponse.ts +160 -0
- package/src/models/components/pager.ts +126 -0
- package/src/models/components/passwordrequiredresponse.ts +105 -0
- package/src/models/components/samlloginrequiredresponse.ts +136 -0
- package/src/models/components/security.ts +75 -0
- package/src/models/components/status.ts +38 -0
- package/src/models/components/systemsummary.ts +69 -0
- package/src/models/components/user.ts +451 -0
- package/src/models/components/vendorjobtitle.ts +76 -0
- package/src/models/components/vendortype.ts +170 -0
- package/src/models/errors/apierror.ts +27 -0
- package/src/models/errors/apierrorresponse.ts +95 -0
- package/src/models/errors/httpclienterrors.ts +62 -0
- package/src/models/errors/index.ts +8 -0
- package/src/models/errors/sdkvalidationerror.ts +97 -0
- package/src/models/operations/createvendorregistration.ts +237 -0
- package/src/models/operations/getfacility.ts +69 -0
- package/src/models/operations/getuserbyid.ts +69 -0
- package/src/models/operations/index.ts +10 -0
- package/src/models/operations/listorsearchfacilities.ts +219 -0
- package/src/models/operations/listvendorjobtitles.ts +179 -0
- package/src/models/operations/logsuserintothesystem.ts +270 -0
- package/src/react-query/_types.ts +91 -0
- package/src/react-query/index.ts +14 -0
- package/src/react-query/organizationsGetFacility.ts +154 -0
- package/src/react-query/organizationsListOrSearchFacilities.ts +241 -0
- package/src/react-query/userGetCurrentUser.ts +124 -0
- package/src/react-query/userGetUserById.ts +152 -0
- package/src/react-query/userLogsUserIntoTheSystem.ts +119 -0
- package/src/react-query/vendorsCreateVendorRegistration.ts +93 -0
- package/src/react-query/vendorsListVendorJobTitles.ts +194 -0
- package/src/sdk/index.ts +5 -0
- package/src/sdk/organizations.ts +59 -0
- package/src/sdk/sdk.ts +25 -0
- package/src/sdk/user.ts +92 -0
- package/src/sdk/vendors.ts +45 -0
- package/src/types/blobs.ts +31 -0
- package/src/types/constdatetime.ts +15 -0
- package/src/types/enums.ts +16 -0
- package/src/types/fp.ts +50 -0
- package/src/types/index.ts +11 -0
- package/src/types/operations.ts +105 -0
- package/src/types/rfcdate.ts +54 -0
- package/src/types/streams.ts +21 -0
- package/tsconfig.json +41 -0
- package/types/blobs.d.ts +4 -0
- package/types/blobs.d.ts.map +1 -0
- package/types/blobs.js +62 -0
- package/types/blobs.js.map +1 -0
- package/types/constdatetime.d.ts +3 -0
- package/types/constdatetime.d.ts.map +1 -0
- package/types/constdatetime.js +46 -0
- package/types/constdatetime.js.map +1 -0
- package/types/enums.d.ts +12 -0
- package/types/enums.d.ts.map +1 -0
- package/types/enums.js +10 -0
- package/types/enums.js.map +1 -0
- package/types/fp.d.ts +31 -0
- package/types/fp.d.ts.map +1 -0
- package/types/fp.js +37 -0
- package/types/fp.js.map +1 -0
- package/types/index.d.ts +8 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.js +16 -0
- package/types/index.js.map +1 -0
- package/types/operations.d.ts +27 -0
- package/types/operations.d.ts.map +1 -0
- package/types/operations.js +83 -0
- package/types/operations.js.map +1 -0
- package/types/rfcdate.d.ts +21 -0
- package/types/rfcdate.d.ts.map +1 -0
- package/types/rfcdate.js +46 -0
- package/types/rfcdate.js.map +1 -0
- package/types/streams.d.ts +2 -0
- package/types/streams.d.ts.map +1 -0
- package/types/streams.js +18 -0
- package/types/streams.js.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,gDAA8B;AAC9B,wDAAsC;AACtC,wDAAsC;AACtC,0DAAwC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export declare class SDKValidationError extends Error {
|
|
3
|
+
/**
|
|
4
|
+
* The raw value that failed validation.
|
|
5
|
+
*/
|
|
6
|
+
readonly rawValue: unknown;
|
|
7
|
+
/**
|
|
8
|
+
* The raw message that failed validation.
|
|
9
|
+
*/
|
|
10
|
+
readonly rawMessage: unknown;
|
|
11
|
+
constructor(message: string, cause: unknown, rawValue: unknown);
|
|
12
|
+
/**
|
|
13
|
+
* Return a pretty-formatted error message if the underlying validation error
|
|
14
|
+
* is a ZodError or some other recognized error type, otherwise return the
|
|
15
|
+
* default error message.
|
|
16
|
+
*/
|
|
17
|
+
pretty(): string;
|
|
18
|
+
}
|
|
19
|
+
export declare function formatZodError(err: z.ZodError, level?: number): string;
|
|
20
|
+
//# sourceMappingURL=sdkvalidationerror.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdkvalidationerror.d.ts","sourceRoot":"","sources":["../../src/models/errors/sdkvalidationerror.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,qBAAa,kBAAmB,SAAQ,KAAK;IAC3C;;OAEG;IACH,SAAgB,QAAQ,EAAE,OAAO,CAAC;IAElC;;OAEG;IACH,SAAgB,UAAU,EAAE,OAAO,CAAC;gBAExB,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO;IAQ9D;;;;OAIG;IACI,MAAM,IAAI,MAAM;CAOxB;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE,KAAK,SAAI,GAAG,MAAM,CAyDjE"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.SDKValidationError = void 0;
|
|
40
|
+
exports.formatZodError = formatZodError;
|
|
41
|
+
const z = __importStar(require("zod"));
|
|
42
|
+
class SDKValidationError extends Error {
|
|
43
|
+
constructor(message, cause, rawValue) {
|
|
44
|
+
super(`${message}: ${cause}`);
|
|
45
|
+
this.name = "SDKValidationError";
|
|
46
|
+
this.cause = cause;
|
|
47
|
+
this.rawValue = rawValue;
|
|
48
|
+
this.rawMessage = message;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Return a pretty-formatted error message if the underlying validation error
|
|
52
|
+
* is a ZodError or some other recognized error type, otherwise return the
|
|
53
|
+
* default error message.
|
|
54
|
+
*/
|
|
55
|
+
pretty() {
|
|
56
|
+
if (this.cause instanceof z.ZodError) {
|
|
57
|
+
return `${this.rawMessage}\n${formatZodError(this.cause)}`;
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
return this.toString();
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.SDKValidationError = SDKValidationError;
|
|
65
|
+
function formatZodError(err, level = 0) {
|
|
66
|
+
let pre = " ".repeat(level);
|
|
67
|
+
pre = level > 0 ? `│${pre}` : pre;
|
|
68
|
+
pre += " ".repeat(level);
|
|
69
|
+
let message = "";
|
|
70
|
+
const append = (str) => (message += `\n${pre}${str}`);
|
|
71
|
+
const len = err.issues.length;
|
|
72
|
+
const headline = len === 1 ? `${len} issue found` : `${len} issues found`;
|
|
73
|
+
if (len) {
|
|
74
|
+
append(`┌ ${headline}:`);
|
|
75
|
+
}
|
|
76
|
+
for (const issue of err.issues) {
|
|
77
|
+
let path = issue.path.join(".");
|
|
78
|
+
path = path ? `<root>.${path}` : "<root>";
|
|
79
|
+
append(`│ • [${path}]: ${issue.message} (${issue.code})`);
|
|
80
|
+
switch (issue.code) {
|
|
81
|
+
case "invalid_literal":
|
|
82
|
+
case "invalid_type": {
|
|
83
|
+
append(`│ Want: ${issue.expected}`);
|
|
84
|
+
append(`│ Got: ${issue.received}`);
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
case "unrecognized_keys": {
|
|
88
|
+
append(`│ Keys: ${issue.keys.join(", ")}`);
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
case "invalid_enum_value": {
|
|
92
|
+
append(`│ Allowed: ${issue.options.join(", ")}`);
|
|
93
|
+
append(`│ Got: ${issue.received}`);
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
case "invalid_union_discriminator": {
|
|
97
|
+
append(`│ Allowed: ${issue.options.join(", ")}`);
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
case "invalid_union": {
|
|
101
|
+
const len = issue.unionErrors.length;
|
|
102
|
+
append(`│ ✖︎ Attemped to deserialize into one of ${len} union members:`);
|
|
103
|
+
issue.unionErrors.forEach((err, i) => {
|
|
104
|
+
append(`│ ✖︎ Member ${i + 1} of ${len}`);
|
|
105
|
+
append(`${formatZodError(err, level + 1)}`);
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
if (err.issues.length) {
|
|
111
|
+
append(`└─*`);
|
|
112
|
+
}
|
|
113
|
+
return message.slice(1);
|
|
114
|
+
}
|
|
115
|
+
//# sourceMappingURL=sdkvalidationerror.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdkvalidationerror.js","sourceRoot":"","sources":["../../src/models/errors/sdkvalidationerror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCH,wCAyDC;AA5FD,uCAAyB;AAEzB,MAAa,kBAAmB,SAAQ,KAAK;IAW3C,YAAY,OAAe,EAAE,KAAc,EAAE,QAAiB;QAC5D,KAAK,CAAC,GAAG,OAAO,KAAK,KAAK,EAAE,CAAC,CAAC;QAC9B,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;QACjC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC;IAC5B,CAAC;IAED;;;;OAIG;IACI,MAAM;QACX,IAAI,IAAI,CAAC,KAAK,YAAY,CAAC,CAAC,QAAQ,EAAE,CAAC;YACrC,OAAO,GAAG,IAAI,CAAC,UAAU,KAAK,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QAC7D,CAAC;aAAM,CAAC;YACN,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;QACzB,CAAC;IACH,CAAC;CACF;AA/BD,gDA+BC;AAED,SAAgB,cAAc,CAAC,GAAe,EAAE,KAAK,GAAG,CAAC;IACvD,IAAI,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC7B,GAAG,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;IAClC,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAEzB,IAAI,OAAO,G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AAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACrD,MAAM,CAAC,kBAAkB,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;gBAC3C,MAAM;YACR,CAAC;YACD,KAAK,6BAA6B,CAAC,CAAC,CAAC;gBACnC,MAAM,CAAC,kBAAkB,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACrD,MAAM;YACR,CAAC;YACD,KAAK,eAAe,CAAC,CAAC,CAAC;gBACrB,MAAM,GAAG,GAAG,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC;gBACrC,MAAM,CACJ,8CAA8C,GAAG,iBAAiB,CACnE,CAAC;gBACF,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;oBACnC,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;oBAC3C,MAAM,CAAC,GAAG,cAAc,CAAC,GAAG,EAAE,KAAK,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;gBAC9C,CAAC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;IACH,CAAC;IAED,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;QACtB,MAAM,CAAC,KAAK,CAAC,CAAC;IAChB,CAAC;IAED,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type CreateVendorRegistrationRequestBody = {
|
|
5
|
+
/**
|
|
6
|
+
* The vendor's email address
|
|
7
|
+
*/
|
|
8
|
+
email: string;
|
|
9
|
+
/**
|
|
10
|
+
* The password is required. It must meet the following complexity rules:
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
*
|
|
14
|
+
* 1. At least 8 characters long
|
|
15
|
+
* 2. Contains at least 1 upper case character
|
|
16
|
+
* 3. Contains at least 1 lower case character
|
|
17
|
+
* 4. Contains at least 1 number
|
|
18
|
+
* 5. Contains at least 1 symbol
|
|
19
|
+
* 6. Must not include the user name or email address
|
|
20
|
+
*/
|
|
21
|
+
password: string;
|
|
22
|
+
/**
|
|
23
|
+
* [IANA TimeZone Identifier](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
|
|
24
|
+
*/
|
|
25
|
+
timezone?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Leave this undefined/null unless you have been assigned an Affiliate ID by Green Security.
|
|
28
|
+
*/
|
|
29
|
+
affiliateId?: number | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* If the vendor is being invited to join a specific Vendor Group, provide the ID of that Vendor Group.
|
|
32
|
+
*/
|
|
33
|
+
vendorGroupId?: number | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* If the vendor is being invited to join a specific company that already exists, provide the company ID that was part of the invitation. Leave empty otherwise.
|
|
36
|
+
*/
|
|
37
|
+
managingCompanyId?: number | undefined;
|
|
38
|
+
};
|
|
39
|
+
export type Data = {};
|
|
40
|
+
/**
|
|
41
|
+
* The request was successful, and a new resource was created.
|
|
42
|
+
*/
|
|
43
|
+
export type CreateVendorRegistrationResponseBody = {
|
|
44
|
+
data: Data;
|
|
45
|
+
};
|
|
46
|
+
/** @internal */
|
|
47
|
+
export declare const CreateVendorRegistrationRequestBody$inboundSchema: z.ZodType<CreateVendorRegistrationRequestBody, z.ZodTypeDef, unknown>;
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type CreateVendorRegistrationRequestBody$Outbound = {
|
|
50
|
+
email: string;
|
|
51
|
+
password: string;
|
|
52
|
+
timezone?: string | undefined;
|
|
53
|
+
affiliate_id?: number | undefined;
|
|
54
|
+
vendor_group_id?: number | undefined;
|
|
55
|
+
managing_company_id?: number | undefined;
|
|
56
|
+
};
|
|
57
|
+
/** @internal */
|
|
58
|
+
export declare const CreateVendorRegistrationRequestBody$outboundSchema: z.ZodType<CreateVendorRegistrationRequestBody$Outbound, z.ZodTypeDef, CreateVendorRegistrationRequestBody>;
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
62
|
+
*/
|
|
63
|
+
export declare namespace CreateVendorRegistrationRequestBody$ {
|
|
64
|
+
/** @deprecated use `CreateVendorRegistrationRequestBody$inboundSchema` instead. */
|
|
65
|
+
const inboundSchema: z.ZodType<CreateVendorRegistrationRequestBody, z.ZodTypeDef, unknown>;
|
|
66
|
+
/** @deprecated use `CreateVendorRegistrationRequestBody$outboundSchema` instead. */
|
|
67
|
+
const outboundSchema: z.ZodType<CreateVendorRegistrationRequestBody$Outbound, z.ZodTypeDef, CreateVendorRegistrationRequestBody>;
|
|
68
|
+
/** @deprecated use `CreateVendorRegistrationRequestBody$Outbound` instead. */
|
|
69
|
+
type Outbound = CreateVendorRegistrationRequestBody$Outbound;
|
|
70
|
+
}
|
|
71
|
+
export declare function createVendorRegistrationRequestBodyToJSON(createVendorRegistrationRequestBody: CreateVendorRegistrationRequestBody): string;
|
|
72
|
+
export declare function createVendorRegistrationRequestBodyFromJSON(jsonString: string): SafeParseResult<CreateVendorRegistrationRequestBody, SDKValidationError>;
|
|
73
|
+
/** @internal */
|
|
74
|
+
export declare const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown>;
|
|
75
|
+
/** @internal */
|
|
76
|
+
export type Data$Outbound = {};
|
|
77
|
+
/** @internal */
|
|
78
|
+
export declare const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data>;
|
|
79
|
+
/**
|
|
80
|
+
* @internal
|
|
81
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
82
|
+
*/
|
|
83
|
+
export declare namespace Data$ {
|
|
84
|
+
/** @deprecated use `Data$inboundSchema` instead. */
|
|
85
|
+
const inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown>;
|
|
86
|
+
/** @deprecated use `Data$outboundSchema` instead. */
|
|
87
|
+
const outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data>;
|
|
88
|
+
/** @deprecated use `Data$Outbound` instead. */
|
|
89
|
+
type Outbound = Data$Outbound;
|
|
90
|
+
}
|
|
91
|
+
export declare function dataToJSON(data: Data): string;
|
|
92
|
+
export declare function dataFromJSON(jsonString: string): SafeParseResult<Data, SDKValidationError>;
|
|
93
|
+
/** @internal */
|
|
94
|
+
export declare const CreateVendorRegistrationResponseBody$inboundSchema: z.ZodType<CreateVendorRegistrationResponseBody, z.ZodTypeDef, unknown>;
|
|
95
|
+
/** @internal */
|
|
96
|
+
export type CreateVendorRegistrationResponseBody$Outbound = {
|
|
97
|
+
data: Data$Outbound;
|
|
98
|
+
};
|
|
99
|
+
/** @internal */
|
|
100
|
+
export declare const CreateVendorRegistrationResponseBody$outboundSchema: z.ZodType<CreateVendorRegistrationResponseBody$Outbound, z.ZodTypeDef, CreateVendorRegistrationResponseBody>;
|
|
101
|
+
/**
|
|
102
|
+
* @internal
|
|
103
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
104
|
+
*/
|
|
105
|
+
export declare namespace CreateVendorRegistrationResponseBody$ {
|
|
106
|
+
/** @deprecated use `CreateVendorRegistrationResponseBody$inboundSchema` instead. */
|
|
107
|
+
const inboundSchema: z.ZodType<CreateVendorRegistrationResponseBody, z.ZodTypeDef, unknown>;
|
|
108
|
+
/** @deprecated use `CreateVendorRegistrationResponseBody$outboundSchema` instead. */
|
|
109
|
+
const outboundSchema: z.ZodType<CreateVendorRegistrationResponseBody$Outbound, z.ZodTypeDef, CreateVendorRegistrationResponseBody>;
|
|
110
|
+
/** @deprecated use `CreateVendorRegistrationResponseBody$Outbound` instead. */
|
|
111
|
+
type Outbound = CreateVendorRegistrationResponseBody$Outbound;
|
|
112
|
+
}
|
|
113
|
+
export declare function createVendorRegistrationResponseBodyToJSON(createVendorRegistrationResponseBody: CreateVendorRegistrationResponseBody): string;
|
|
114
|
+
export declare function createVendorRegistrationResponseBodyFromJSON(jsonString: string): SafeParseResult<CreateVendorRegistrationResponseBody, SDKValidationError>;
|
|
115
|
+
//# sourceMappingURL=createvendorregistration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createvendorregistration.d.ts","sourceRoot":"","sources":["../../src/models/operations/createvendorregistration.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,mCAAmC,GAAG;IAChD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;;;;;;OAWG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG,EAAE,CAAC;AAEtB;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAAG;IACjD,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iDAAiD,EAAE,CAAC,CAAC,OAAO,CACvE,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,OAAO,CAcP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,4CAA4C,GAAG;IACzD,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Y,QAAQ,GAAG,aAAa,CAAC;CACtC;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE7C;AAED,wBAAgB,YAAY,CAC1B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAM3C;AAED,gBAAgB;AAChB,eAAO,MAAM,kDAAkD,EAAE,CAAC,CAAC,OAAO,CACxE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,6CAA6C,GAAG;IAC1D,IAAI,EAAE,aAAa,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mDAAmD,EAAE,CAAC,CAAC,OAAO,CACzE,6CAA6C,EAC7C,CAAC,CAAC,UAAU,EACZ,oCAAoC,CAGpC,CAAC;AAEH;;;GAGG;AACH,yBAAiB,qCAAqC,CAAC;IACrD,oFAAoF;IAC7E,MAAM,aAAa,wEAC0B,CAAC;IACrD,qFAAqF;IAC9E,MAAM,cAAc,8GAC0B,CAAC;IACtD,+EAA+E;IAC/E,KAAY,QAAQ,GAAG,6CAA6C,CAAC;CACtE;AAED,wBAAgB,0CAA0C,CACxD,oCAAoC,EAAE,oCAAoC,GACzE,MAAM,CAMR;AAED,wBAAgB,4CAA4C,CAC1D,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oCAAoC,EAAE,kBAAkB,CAAC,CAO3E"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.CreateVendorRegistrationResponseBody$ = exports.CreateVendorRegistrationResponseBody$outboundSchema = exports.CreateVendorRegistrationResponseBody$inboundSchema = exports.Data$ = exports.Data$outboundSchema = exports.Data$inboundSchema = exports.CreateVendorRegistrationRequestBody$ = exports.CreateVendorRegistrationRequestBody$outboundSchema = exports.CreateVendorRegistrationRequestBody$inboundSchema = void 0;
|
|
40
|
+
exports.createVendorRegistrationRequestBodyToJSON = createVendorRegistrationRequestBodyToJSON;
|
|
41
|
+
exports.createVendorRegistrationRequestBodyFromJSON = createVendorRegistrationRequestBodyFromJSON;
|
|
42
|
+
exports.dataToJSON = dataToJSON;
|
|
43
|
+
exports.dataFromJSON = dataFromJSON;
|
|
44
|
+
exports.createVendorRegistrationResponseBodyToJSON = createVendorRegistrationResponseBodyToJSON;
|
|
45
|
+
exports.createVendorRegistrationResponseBodyFromJSON = createVendorRegistrationResponseBodyFromJSON;
|
|
46
|
+
const z = __importStar(require("zod"));
|
|
47
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
48
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
49
|
+
/** @internal */
|
|
50
|
+
exports.CreateVendorRegistrationRequestBody$inboundSchema = z.object({
|
|
51
|
+
email: z.string(),
|
|
52
|
+
password: z.string(),
|
|
53
|
+
timezone: z.string().optional(),
|
|
54
|
+
affiliate_id: z.number().int().optional(),
|
|
55
|
+
vendor_group_id: z.number().int().optional(),
|
|
56
|
+
managing_company_id: z.number().int().optional(),
|
|
57
|
+
}).transform((v) => {
|
|
58
|
+
return (0, primitives_js_1.remap)(v, {
|
|
59
|
+
"affiliate_id": "affiliateId",
|
|
60
|
+
"vendor_group_id": "vendorGroupId",
|
|
61
|
+
"managing_company_id": "managingCompanyId",
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
/** @internal */
|
|
65
|
+
exports.CreateVendorRegistrationRequestBody$outboundSchema = z.object({
|
|
66
|
+
email: z.string(),
|
|
67
|
+
password: z.string(),
|
|
68
|
+
timezone: z.string().optional(),
|
|
69
|
+
affiliateId: z.number().int().optional(),
|
|
70
|
+
vendorGroupId: z.number().int().optional(),
|
|
71
|
+
managingCompanyId: z.number().int().optional(),
|
|
72
|
+
}).transform((v) => {
|
|
73
|
+
return (0, primitives_js_1.remap)(v, {
|
|
74
|
+
affiliateId: "affiliate_id",
|
|
75
|
+
vendorGroupId: "vendor_group_id",
|
|
76
|
+
managingCompanyId: "managing_company_id",
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
/**
|
|
80
|
+
* @internal
|
|
81
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
82
|
+
*/
|
|
83
|
+
var CreateVendorRegistrationRequestBody$;
|
|
84
|
+
(function (CreateVendorRegistrationRequestBody$) {
|
|
85
|
+
/** @deprecated use `CreateVendorRegistrationRequestBody$inboundSchema` instead. */
|
|
86
|
+
CreateVendorRegistrationRequestBody$.inboundSchema = exports.CreateVendorRegistrationRequestBody$inboundSchema;
|
|
87
|
+
/** @deprecated use `CreateVendorRegistrationRequestBody$outboundSchema` instead. */
|
|
88
|
+
CreateVendorRegistrationRequestBody$.outboundSchema = exports.CreateVendorRegistrationRequestBody$outboundSchema;
|
|
89
|
+
})(CreateVendorRegistrationRequestBody$ || (exports.CreateVendorRegistrationRequestBody$ = CreateVendorRegistrationRequestBody$ = {}));
|
|
90
|
+
function createVendorRegistrationRequestBodyToJSON(createVendorRegistrationRequestBody) {
|
|
91
|
+
return JSON.stringify(exports.CreateVendorRegistrationRequestBody$outboundSchema.parse(createVendorRegistrationRequestBody));
|
|
92
|
+
}
|
|
93
|
+
function createVendorRegistrationRequestBodyFromJSON(jsonString) {
|
|
94
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateVendorRegistrationRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateVendorRegistrationRequestBody' from JSON`);
|
|
95
|
+
}
|
|
96
|
+
/** @internal */
|
|
97
|
+
exports.Data$inboundSchema = z
|
|
98
|
+
.object({});
|
|
99
|
+
/** @internal */
|
|
100
|
+
exports.Data$outboundSchema = z.object({});
|
|
101
|
+
/**
|
|
102
|
+
* @internal
|
|
103
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
104
|
+
*/
|
|
105
|
+
var Data$;
|
|
106
|
+
(function (Data$) {
|
|
107
|
+
/** @deprecated use `Data$inboundSchema` instead. */
|
|
108
|
+
Data$.inboundSchema = exports.Data$inboundSchema;
|
|
109
|
+
/** @deprecated use `Data$outboundSchema` instead. */
|
|
110
|
+
Data$.outboundSchema = exports.Data$outboundSchema;
|
|
111
|
+
})(Data$ || (exports.Data$ = Data$ = {}));
|
|
112
|
+
function dataToJSON(data) {
|
|
113
|
+
return JSON.stringify(exports.Data$outboundSchema.parse(data));
|
|
114
|
+
}
|
|
115
|
+
function dataFromJSON(jsonString) {
|
|
116
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Data$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Data' from JSON`);
|
|
117
|
+
}
|
|
118
|
+
/** @internal */
|
|
119
|
+
exports.CreateVendorRegistrationResponseBody$inboundSchema = z.object({
|
|
120
|
+
data: z.lazy(() => exports.Data$inboundSchema),
|
|
121
|
+
});
|
|
122
|
+
/** @internal */
|
|
123
|
+
exports.CreateVendorRegistrationResponseBody$outboundSchema = z.object({
|
|
124
|
+
data: z.lazy(() => exports.Data$outboundSchema),
|
|
125
|
+
});
|
|
126
|
+
/**
|
|
127
|
+
* @internal
|
|
128
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
129
|
+
*/
|
|
130
|
+
var CreateVendorRegistrationResponseBody$;
|
|
131
|
+
(function (CreateVendorRegistrationResponseBody$) {
|
|
132
|
+
/** @deprecated use `CreateVendorRegistrationResponseBody$inboundSchema` instead. */
|
|
133
|
+
CreateVendorRegistrationResponseBody$.inboundSchema = exports.CreateVendorRegistrationResponseBody$inboundSchema;
|
|
134
|
+
/** @deprecated use `CreateVendorRegistrationResponseBody$outboundSchema` instead. */
|
|
135
|
+
CreateVendorRegistrationResponseBody$.outboundSchema = exports.CreateVendorRegistrationResponseBody$outboundSchema;
|
|
136
|
+
})(CreateVendorRegistrationResponseBody$ || (exports.CreateVendorRegistrationResponseBody$ = CreateVendorRegistrationResponseBody$ = {}));
|
|
137
|
+
function createVendorRegistrationResponseBodyToJSON(createVendorRegistrationResponseBody) {
|
|
138
|
+
return JSON.stringify(exports.CreateVendorRegistrationResponseBody$outboundSchema.parse(createVendorRegistrationResponseBody));
|
|
139
|
+
}
|
|
140
|
+
function createVendorRegistrationResponseBodyFromJSON(jsonString) {
|
|
141
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateVendorRegistrationResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateVendorRegistrationResponseBody' from JSON`);
|
|
142
|
+
}
|
|
143
|
+
//# sourceMappingURL=createvendorregistration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createvendorregistration.js","sourceRoot":"","sources":["../../src/models/operations/createvendorregistration.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsHH,8FAQC;AAED,kGASC;AA0BD,gCAEC;AAED,oCAQC;AAwCD,gGAQC;AAED,oGASC;AAxOD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAiDjD,gBAAgB;AACH,QAAA,iDAAiD,GAI1D,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACzC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC5C,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CACjD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;QAC7B,iBAAiB,EAAE,eAAe;QAClC,qBAAqB,EAAE,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AC,EATgB,qCAAqC,qDAArC,qCAAqC,QASrD;AAED,SAAgB,0CAA0C,CACxD,oCAA0E;IAE1E,OAAO,IAAI,CAAC,SAAS,CACnB,2DAAmD,CAAC,KAAK,CACvD,oCAAoC,CACrC,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,4CAA4C,CAC1D,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,0DAAkD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,kEAAkE,CACnE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type GetFacilityRequest = {
|
|
5
|
+
/**
|
|
6
|
+
* The identifier of the object
|
|
7
|
+
*/
|
|
8
|
+
id: number;
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const GetFacilityRequest$inboundSchema: z.ZodType<GetFacilityRequest, z.ZodTypeDef, unknown>;
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type GetFacilityRequest$Outbound = {
|
|
14
|
+
id: number;
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const GetFacilityRequest$outboundSchema: z.ZodType<GetFacilityRequest$Outbound, z.ZodTypeDef, GetFacilityRequest>;
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
21
|
+
*/
|
|
22
|
+
export declare namespace GetFacilityRequest$ {
|
|
23
|
+
/** @deprecated use `GetFacilityRequest$inboundSchema` instead. */
|
|
24
|
+
const inboundSchema: z.ZodType<GetFacilityRequest, z.ZodTypeDef, unknown>;
|
|
25
|
+
/** @deprecated use `GetFacilityRequest$outboundSchema` instead. */
|
|
26
|
+
const outboundSchema: z.ZodType<GetFacilityRequest$Outbound, z.ZodTypeDef, GetFacilityRequest>;
|
|
27
|
+
/** @deprecated use `GetFacilityRequest$Outbound` instead. */
|
|
28
|
+
type Outbound = GetFacilityRequest$Outbound;
|
|
29
|
+
}
|
|
30
|
+
export declare function getFacilityRequestToJSON(getFacilityRequest: GetFacilityRequest): string;
|
|
31
|
+
export declare function getFacilityRequestFromJSON(jsonString: string): SafeParseResult<GetFacilityRequest, SDKValidationError>;
|
|
32
|
+
//# sourceMappingURL=getfacility.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getfacility.d.ts","sourceRoot":"","sources":["../../src/models/operations/getfacility.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAGlB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,mBAAmB,CAAC;IACnC,kEAAkE;IAC3D,MAAM,aAAa,sDAAmC,CAAC;IAC9D,mEAAmE;IAC5D,MAAM,cAAc,0EAAoC,CAAC;IAChE,6DAA6D;IAC7D,KAAY,QAAQ,GAAG,2BAA2B,CAAC;CACpD;AAED,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR;AAED,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.GetFacilityRequest$ = exports.GetFacilityRequest$outboundSchema = exports.GetFacilityRequest$inboundSchema = void 0;
|
|
40
|
+
exports.getFacilityRequestToJSON = getFacilityRequestToJSON;
|
|
41
|
+
exports.getFacilityRequestFromJSON = getFacilityRequestFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.GetFacilityRequest$inboundSchema = z.object({
|
|
46
|
+
id: z.number().int(),
|
|
47
|
+
});
|
|
48
|
+
/** @internal */
|
|
49
|
+
exports.GetFacilityRequest$outboundSchema = z.object({
|
|
50
|
+
id: z.number().int(),
|
|
51
|
+
});
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
+
*/
|
|
56
|
+
var GetFacilityRequest$;
|
|
57
|
+
(function (GetFacilityRequest$) {
|
|
58
|
+
/** @deprecated use `GetFacilityRequest$inboundSchema` instead. */
|
|
59
|
+
GetFacilityRequest$.inboundSchema = exports.GetFacilityRequest$inboundSchema;
|
|
60
|
+
/** @deprecated use `GetFacilityRequest$outboundSchema` instead. */
|
|
61
|
+
GetFacilityRequest$.outboundSchema = exports.GetFacilityRequest$outboundSchema;
|
|
62
|
+
})(GetFacilityRequest$ || (exports.GetFacilityRequest$ = GetFacilityRequest$ = {}));
|
|
63
|
+
function getFacilityRequestToJSON(getFacilityRequest) {
|
|
64
|
+
return JSON.stringify(exports.GetFacilityRequest$outboundSchema.parse(getFacilityRequest));
|
|
65
|
+
}
|
|
66
|
+
function getFacilityRequestFromJSON(jsonString) {
|
|
67
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetFacilityRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetFacilityRequest' from JSON`);
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=getfacility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getfacility.js","sourceRoot":"","sources":["../../src/models/operations/getfacility.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDH,4DAMC;AAED,gEAQC;AAhED,uCAAyB;AACzB,qDAAiD;AAWjD,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACrB,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACrB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,mBAAmB,CAOnC;AAPD,WAAiB,mBAAmB;IAClC,kEAAkE;IACrD,iCAAa,GAAG,wCAAgC,CAAC;IAC9D,mEAAmE;IACtD,kCAAc,GAAG,yCAAiC,CAAC;AAGlE,CAAC,EAPgB,mBAAmB,mCAAnB,mBAAmB,QAOnC;AAED,SAAgB,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC;AAED,SAAgB,0BAA0B,CACxC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type GetUserByIdRequest = {
|
|
5
|
+
/**
|
|
6
|
+
* The identifier of the object
|
|
7
|
+
*/
|
|
8
|
+
id: number;
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const GetUserByIdRequest$inboundSchema: z.ZodType<GetUserByIdRequest, z.ZodTypeDef, unknown>;
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type GetUserByIdRequest$Outbound = {
|
|
14
|
+
id: number;
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const GetUserByIdRequest$outboundSchema: z.ZodType<GetUserByIdRequest$Outbound, z.ZodTypeDef, GetUserByIdRequest>;
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
21
|
+
*/
|
|
22
|
+
export declare namespace GetUserByIdRequest$ {
|
|
23
|
+
/** @deprecated use `GetUserByIdRequest$inboundSchema` instead. */
|
|
24
|
+
const inboundSchema: z.ZodType<GetUserByIdRequest, z.ZodTypeDef, unknown>;
|
|
25
|
+
/** @deprecated use `GetUserByIdRequest$outboundSchema` instead. */
|
|
26
|
+
const outboundSchema: z.ZodType<GetUserByIdRequest$Outbound, z.ZodTypeDef, GetUserByIdRequest>;
|
|
27
|
+
/** @deprecated use `GetUserByIdRequest$Outbound` instead. */
|
|
28
|
+
type Outbound = GetUserByIdRequest$Outbound;
|
|
29
|
+
}
|
|
30
|
+
export declare function getUserByIdRequestToJSON(getUserByIdRequest: GetUserByIdRequest): string;
|
|
31
|
+
export declare function getUserByIdRequestFromJSON(jsonString: string): SafeParseResult<GetUserByIdRequest, SDKValidationError>;
|
|
32
|
+
//# sourceMappingURL=getuserbyid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getuserbyid.d.ts","sourceRoot":"","sources":["../../src/models/operations/getuserbyid.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAGlB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,mBAAmB,CAAC;IACnC,kEAAkE;IAC3D,MAAM,aAAa,sDAAmC,CAAC;IAC9D,mEAAmE;IAC5D,MAAM,cAAc,0EAAoC,CAAC;IAChE,6DAA6D;IAC7D,KAAY,QAAQ,GAAG,2BAA2B,CAAC;CACpD;AAED,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR;AAED,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.GetUserByIdRequest$ = exports.GetUserByIdRequest$outboundSchema = exports.GetUserByIdRequest$inboundSchema = void 0;
|
|
40
|
+
exports.getUserByIdRequestToJSON = getUserByIdRequestToJSON;
|
|
41
|
+
exports.getUserByIdRequestFromJSON = getUserByIdRequestFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.GetUserByIdRequest$inboundSchema = z.object({
|
|
46
|
+
id: z.number().int(),
|
|
47
|
+
});
|
|
48
|
+
/** @internal */
|
|
49
|
+
exports.GetUserByIdRequest$outboundSchema = z.object({
|
|
50
|
+
id: z.number().int(),
|
|
51
|
+
});
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
+
*/
|
|
56
|
+
var GetUserByIdRequest$;
|
|
57
|
+
(function (GetUserByIdRequest$) {
|
|
58
|
+
/** @deprecated use `GetUserByIdRequest$inboundSchema` instead. */
|
|
59
|
+
GetUserByIdRequest$.inboundSchema = exports.GetUserByIdRequest$inboundSchema;
|
|
60
|
+
/** @deprecated use `GetUserByIdRequest$outboundSchema` instead. */
|
|
61
|
+
GetUserByIdRequest$.outboundSchema = exports.GetUserByIdRequest$outboundSchema;
|
|
62
|
+
})(GetUserByIdRequest$ || (exports.GetUserByIdRequest$ = GetUserByIdRequest$ = {}));
|
|
63
|
+
function getUserByIdRequestToJSON(getUserByIdRequest) {
|
|
64
|
+
return JSON.stringify(exports.GetUserByIdRequest$outboundSchema.parse(getUserByIdRequest));
|
|
65
|
+
}
|
|
66
|
+
function getUserByIdRequestFromJSON(jsonString) {
|
|
67
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetUserByIdRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetUserByIdRequest' from JSON`);
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=getuserbyid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getuserbyid.js","sourceRoot":"","sources":["../../src/models/operations/getuserbyid.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDH,4DAMC;AAED,gEAQC;AAhED,uCAAyB;AACzB,qDAAiD;AAWjD,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACrB,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACrB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,mBAAmB,CAOnC;AAPD,WAAiB,mBAAmB;IAClC,kEAAkE;IACrD,iCAAa,GAAG,wCAAgC,CAAC;IAC9D,mEAAmE;IACtD,kCAAc,GAAG,yCAAiC,CAAC;AAGlE,CAAC,EAPgB,mBAAmB,mCAAnB,mBAAmB,QAOnC;AAED,SAAgB,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC;AAED,SAAgB,0BAA0B,CACxC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
|