@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,71 @@
|
|
|
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.VendorJobTitle$ = exports.VendorJobTitle$outboundSchema = exports.VendorJobTitle$inboundSchema = void 0;
|
|
40
|
+
exports.vendorJobTitleToJSON = vendorJobTitleToJSON;
|
|
41
|
+
exports.vendorJobTitleFromJSON = vendorJobTitleFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.VendorJobTitle$inboundSchema = z.object({
|
|
46
|
+
id: z.number().int(),
|
|
47
|
+
job: z.string(),
|
|
48
|
+
});
|
|
49
|
+
/** @internal */
|
|
50
|
+
exports.VendorJobTitle$outboundSchema = z.object({
|
|
51
|
+
id: z.number().int(),
|
|
52
|
+
job: z.string(),
|
|
53
|
+
});
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
|
+
*/
|
|
58
|
+
var VendorJobTitle$;
|
|
59
|
+
(function (VendorJobTitle$) {
|
|
60
|
+
/** @deprecated use `VendorJobTitle$inboundSchema` instead. */
|
|
61
|
+
VendorJobTitle$.inboundSchema = exports.VendorJobTitle$inboundSchema;
|
|
62
|
+
/** @deprecated use `VendorJobTitle$outboundSchema` instead. */
|
|
63
|
+
VendorJobTitle$.outboundSchema = exports.VendorJobTitle$outboundSchema;
|
|
64
|
+
})(VendorJobTitle$ || (exports.VendorJobTitle$ = VendorJobTitle$ = {}));
|
|
65
|
+
function vendorJobTitleToJSON(vendorJobTitle) {
|
|
66
|
+
return JSON.stringify(exports.VendorJobTitle$outboundSchema.parse(vendorJobTitle));
|
|
67
|
+
}
|
|
68
|
+
function vendorJobTitleFromJSON(jsonString) {
|
|
69
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.VendorJobTitle$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VendorJobTitle' from JSON`);
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=vendorjobtitle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendorjobtitle.js","sourceRoot":"","sources":["../../src/models/components/vendorjobtitle.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6DH,oDAEC;AAED,wDAQC;AAvED,uCAAyB;AACzB,qDAAiD;AAmBjD,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACpB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACpB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,eAAe,CAO/B;AAPD,WAAiB,eAAe;IAC9B,8DAA8D;IACjD,6BAAa,GAAG,oCAA4B,CAAC;IAC1D,+DAA+D;IAClD,8BAAc,GAAG,qCAA6B,CAAC;AAG9D,CAAC,EAPgB,eAAe,+BAAf,eAAe,QAO/B;AAED,SAAgB,oBAAoB,CAAC,cAA8B;IACjE,OAAO,IAAI,CAAC,SAAS,CAAC,qCAA6B,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;AAC7E,CAAC;AAED,SAAgB,sBAAsB,CACpC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
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 AppliesTo = {
|
|
5
|
+
companyId?: number | undefined;
|
|
6
|
+
companyGroupId?: number | undefined;
|
|
7
|
+
vendorGroupId?: number | undefined;
|
|
8
|
+
everyoneElse: boolean;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* An object which represents a specific `level` or type of vendor. These can be customized by `Company`, `VendorGroup`, or `CompanyGroup`.
|
|
12
|
+
*/
|
|
13
|
+
export type VendorType = {
|
|
14
|
+
name: string;
|
|
15
|
+
shortName: string;
|
|
16
|
+
sortOrder: number;
|
|
17
|
+
appliesTo: AppliesTo;
|
|
18
|
+
};
|
|
19
|
+
/** @internal */
|
|
20
|
+
export declare const AppliesTo$inboundSchema: z.ZodType<AppliesTo, z.ZodTypeDef, unknown>;
|
|
21
|
+
/** @internal */
|
|
22
|
+
export type AppliesTo$Outbound = {
|
|
23
|
+
company_id?: number | undefined;
|
|
24
|
+
company_group_id?: number | undefined;
|
|
25
|
+
vendor_group_id?: number | undefined;
|
|
26
|
+
everyone_else: boolean;
|
|
27
|
+
};
|
|
28
|
+
/** @internal */
|
|
29
|
+
export declare const AppliesTo$outboundSchema: z.ZodType<AppliesTo$Outbound, z.ZodTypeDef, AppliesTo>;
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
33
|
+
*/
|
|
34
|
+
export declare namespace AppliesTo$ {
|
|
35
|
+
/** @deprecated use `AppliesTo$inboundSchema` instead. */
|
|
36
|
+
const inboundSchema: z.ZodType<AppliesTo, z.ZodTypeDef, unknown>;
|
|
37
|
+
/** @deprecated use `AppliesTo$outboundSchema` instead. */
|
|
38
|
+
const outboundSchema: z.ZodType<AppliesTo$Outbound, z.ZodTypeDef, AppliesTo>;
|
|
39
|
+
/** @deprecated use `AppliesTo$Outbound` instead. */
|
|
40
|
+
type Outbound = AppliesTo$Outbound;
|
|
41
|
+
}
|
|
42
|
+
export declare function appliesToToJSON(appliesTo: AppliesTo): string;
|
|
43
|
+
export declare function appliesToFromJSON(jsonString: string): SafeParseResult<AppliesTo, SDKValidationError>;
|
|
44
|
+
/** @internal */
|
|
45
|
+
export declare const VendorType$inboundSchema: z.ZodType<VendorType, z.ZodTypeDef, unknown>;
|
|
46
|
+
/** @internal */
|
|
47
|
+
export type VendorType$Outbound = {
|
|
48
|
+
name: string;
|
|
49
|
+
short_name: string;
|
|
50
|
+
sort_order: number;
|
|
51
|
+
applies_to: AppliesTo$Outbound;
|
|
52
|
+
};
|
|
53
|
+
/** @internal */
|
|
54
|
+
export declare const VendorType$outboundSchema: z.ZodType<VendorType$Outbound, z.ZodTypeDef, VendorType>;
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
58
|
+
*/
|
|
59
|
+
export declare namespace VendorType$ {
|
|
60
|
+
/** @deprecated use `VendorType$inboundSchema` instead. */
|
|
61
|
+
const inboundSchema: z.ZodType<VendorType, z.ZodTypeDef, unknown>;
|
|
62
|
+
/** @deprecated use `VendorType$outboundSchema` instead. */
|
|
63
|
+
const outboundSchema: z.ZodType<VendorType$Outbound, z.ZodTypeDef, VendorType>;
|
|
64
|
+
/** @deprecated use `VendorType$Outbound` instead. */
|
|
65
|
+
type Outbound = VendorType$Outbound;
|
|
66
|
+
}
|
|
67
|
+
export declare function vendorTypeToJSON(vendorType: VendorType): string;
|
|
68
|
+
export declare function vendorTypeFromJSON(jsonString: string): SafeParseResult<VendorType, SDKValidationError>;
|
|
69
|
+
//# sourceMappingURL=vendortype.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendortype.d.ts","sourceRoot":"","sources":["../../src/models/components/vendortype.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,SAAS,GAAG;IACtB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAC7C,SAAS,EACT,CAAC,CAAC,UAAU,EACZ,OAAO,CAaP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,gBAAgB,CAAC,EAA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AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAE/D;AAED,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAMjD"}
|
|
@@ -0,0 +1,135 @@
|
|
|
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.VendorType$ = exports.VendorType$outboundSchema = exports.VendorType$inboundSchema = exports.AppliesTo$ = exports.AppliesTo$outboundSchema = exports.AppliesTo$inboundSchema = void 0;
|
|
40
|
+
exports.appliesToToJSON = appliesToToJSON;
|
|
41
|
+
exports.appliesToFromJSON = appliesToFromJSON;
|
|
42
|
+
exports.vendorTypeToJSON = vendorTypeToJSON;
|
|
43
|
+
exports.vendorTypeFromJSON = vendorTypeFromJSON;
|
|
44
|
+
const z = __importStar(require("zod"));
|
|
45
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
46
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
47
|
+
/** @internal */
|
|
48
|
+
exports.AppliesTo$inboundSchema = z.object({
|
|
49
|
+
company_id: z.number().int().optional(),
|
|
50
|
+
company_group_id: z.number().int().optional(),
|
|
51
|
+
vendor_group_id: z.number().int().optional(),
|
|
52
|
+
everyone_else: z.boolean(),
|
|
53
|
+
}).transform((v) => {
|
|
54
|
+
return (0, primitives_js_1.remap)(v, {
|
|
55
|
+
"company_id": "companyId",
|
|
56
|
+
"company_group_id": "companyGroupId",
|
|
57
|
+
"vendor_group_id": "vendorGroupId",
|
|
58
|
+
"everyone_else": "everyoneElse",
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
/** @internal */
|
|
62
|
+
exports.AppliesTo$outboundSchema = z.object({
|
|
63
|
+
companyId: z.number().int().optional(),
|
|
64
|
+
companyGroupId: z.number().int().optional(),
|
|
65
|
+
vendorGroupId: z.number().int().optional(),
|
|
66
|
+
everyoneElse: z.boolean(),
|
|
67
|
+
}).transform((v) => {
|
|
68
|
+
return (0, primitives_js_1.remap)(v, {
|
|
69
|
+
companyId: "company_id",
|
|
70
|
+
companyGroupId: "company_group_id",
|
|
71
|
+
vendorGroupId: "vendor_group_id",
|
|
72
|
+
everyoneElse: "everyone_else",
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
78
|
+
*/
|
|
79
|
+
var AppliesTo$;
|
|
80
|
+
(function (AppliesTo$) {
|
|
81
|
+
/** @deprecated use `AppliesTo$inboundSchema` instead. */
|
|
82
|
+
AppliesTo$.inboundSchema = exports.AppliesTo$inboundSchema;
|
|
83
|
+
/** @deprecated use `AppliesTo$outboundSchema` instead. */
|
|
84
|
+
AppliesTo$.outboundSchema = exports.AppliesTo$outboundSchema;
|
|
85
|
+
})(AppliesTo$ || (exports.AppliesTo$ = AppliesTo$ = {}));
|
|
86
|
+
function appliesToToJSON(appliesTo) {
|
|
87
|
+
return JSON.stringify(exports.AppliesTo$outboundSchema.parse(appliesTo));
|
|
88
|
+
}
|
|
89
|
+
function appliesToFromJSON(jsonString) {
|
|
90
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AppliesTo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AppliesTo' from JSON`);
|
|
91
|
+
}
|
|
92
|
+
/** @internal */
|
|
93
|
+
exports.VendorType$inboundSchema = z.object({
|
|
94
|
+
name: z.string(),
|
|
95
|
+
short_name: z.string(),
|
|
96
|
+
sort_order: z.number().int(),
|
|
97
|
+
applies_to: z.lazy(() => exports.AppliesTo$inboundSchema),
|
|
98
|
+
}).transform((v) => {
|
|
99
|
+
return (0, primitives_js_1.remap)(v, {
|
|
100
|
+
"short_name": "shortName",
|
|
101
|
+
"sort_order": "sortOrder",
|
|
102
|
+
"applies_to": "appliesTo",
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
/** @internal */
|
|
106
|
+
exports.VendorType$outboundSchema = z.object({
|
|
107
|
+
name: z.string(),
|
|
108
|
+
shortName: z.string(),
|
|
109
|
+
sortOrder: z.number().int(),
|
|
110
|
+
appliesTo: z.lazy(() => exports.AppliesTo$outboundSchema),
|
|
111
|
+
}).transform((v) => {
|
|
112
|
+
return (0, primitives_js_1.remap)(v, {
|
|
113
|
+
shortName: "short_name",
|
|
114
|
+
sortOrder: "sort_order",
|
|
115
|
+
appliesTo: "applies_to",
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
/**
|
|
119
|
+
* @internal
|
|
120
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
121
|
+
*/
|
|
122
|
+
var VendorType$;
|
|
123
|
+
(function (VendorType$) {
|
|
124
|
+
/** @deprecated use `VendorType$inboundSchema` instead. */
|
|
125
|
+
VendorType$.inboundSchema = exports.VendorType$inboundSchema;
|
|
126
|
+
/** @deprecated use `VendorType$outboundSchema` instead. */
|
|
127
|
+
VendorType$.outboundSchema = exports.VendorType$outboundSchema;
|
|
128
|
+
})(VendorType$ || (exports.VendorType$ = VendorType$ = {}));
|
|
129
|
+
function vendorTypeToJSON(vendorType) {
|
|
130
|
+
return JSON.stringify(exports.VendorType$outboundSchema.parse(vendorType));
|
|
131
|
+
}
|
|
132
|
+
function vendorTypeFromJSON(jsonString) {
|
|
133
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.VendorType$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VendorType' from JSON`);
|
|
134
|
+
}
|
|
135
|
+
//# sourceMappingURL=vendortype.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendortype.js","sourceRoot":"","sources":["../../src/models/components/vendortype.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoFH,0CAEC;AAED,8CAQC;AA2DD,4CAEC;AAED,gDAQC;AArKD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAqBjD,gBAAgB;AACH,QAAA,uBA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wB,CAAC;CAClD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;QACvB,SAAS,EAAE,YAAY;QACvB,SAAS,EAAE,YAAY;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,WAAW,CAO3B;AAPD,WAAiB,WAAW;IAC1B,0DAA0D;IAC7C,yBAAa,GAAG,gCAAwB,CAAC;IACtD,2DAA2D;IAC9C,0BAAc,GAAG,iCAAyB,CAAC;AAG1D,CAAC,EAPgB,WAAW,2BAAX,WAAW,QAO3B;AAED,SAAgB,gBAAgB,CAAC,UAAsB;IACrD,OAAO,IAAI,CAAC,SAAS,CAAC,iCAAyB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;AACrE,CAAC;AAED,SAAgB,kBAAkB,CAChC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpD,wCAAwC,CACzC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare class APIError extends Error {
|
|
2
|
+
readonly rawResponse: Response;
|
|
3
|
+
readonly body: string;
|
|
4
|
+
readonly statusCode: number;
|
|
5
|
+
readonly contentType: string;
|
|
6
|
+
constructor(message: string, rawResponse: Response, body?: string);
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=apierror.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apierror.d.ts","sourceRoot":"","sources":["../../src/models/errors/apierror.ts"],"names":[],"mappings":"AAIA,qBAAa,QAAS,SAAQ,KAAK;aAMf,WAAW,EAAE,QAAQ;aACrB,IAAI,EAAE,MAAM;IAN9B,SAAgB,UAAU,EAAE,MAAM,CAAC;IACnC,SAAgB,WAAW,EAAE,MAAM,CAAC;gBAGlC,OAAO,EAAE,MAAM,EACC,WAAW,EAAE,QAAQ,EACrB,IAAI,GAAE,MAAW;CAepC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.APIError = void 0;
|
|
7
|
+
class APIError extends Error {
|
|
8
|
+
constructor(message, rawResponse, body = "") {
|
|
9
|
+
const statusCode = rawResponse.status;
|
|
10
|
+
const contentType = rawResponse.headers.get("content-type") || "";
|
|
11
|
+
const bodyString = body.length > 0 ? `\n${body}` : "";
|
|
12
|
+
super(`${message}: Status ${statusCode} Content-Type ${contentType} Body ${bodyString}`);
|
|
13
|
+
this.rawResponse = rawResponse;
|
|
14
|
+
this.body = body;
|
|
15
|
+
this.statusCode = statusCode;
|
|
16
|
+
this.contentType = contentType;
|
|
17
|
+
this.name = "APIError";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.APIError = APIError;
|
|
21
|
+
//# sourceMappingURL=apierror.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apierror.js","sourceRoot":"","sources":["../../src/models/errors/apierror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,MAAa,QAAS,SAAQ,KAAK;IAIjC,YACE,OAAe,EACC,WAAqB,EACrB,OAAe,EAAE;QAEjC,MAAM,UAAU,GAAG,WAAW,CAAC,MAAM,CAAC;QACtC,MAAM,WAAW,GAAG,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;QAClE,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAEtD,KAAK,CACH,GAAG,OAAO,YAAY,UAAU,iBAAiB,WAAW,SAAS,UAAU,EAAE,CAClF,CAAC;QATc,gBAAW,GAAX,WAAW,CAAU;QACrB,SAAI,GAAJ,IAAI,CAAa;QAUjC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;IACzB,CAAC;CACF;AAtBD,4BAsBC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Green Security uses conventional HTTP response codes to indicate the success or failure of an API request. In general: Codes in the 2xx range indicate success. Codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted, a charge failed, etc.). Codes in the 5xx range indicate an error with Stripe’s servers (these are rare).
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
*
|
|
7
|
+
* Some 4xx errors that could be handled programmatically (e.g., invalid input) include an error description that briefly explains the error reported.
|
|
8
|
+
*/
|
|
9
|
+
export type ApiErrorResponseData = {
|
|
10
|
+
error: string;
|
|
11
|
+
success: boolean;
|
|
12
|
+
code?: number | null | undefined;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Green Security uses conventional HTTP response codes to indicate the success or failure of an API request. In general: Codes in the 2xx range indicate success. Codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted, a charge failed, etc.). Codes in the 5xx range indicate an error with Stripe’s servers (these are rare).
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
*
|
|
19
|
+
* Some 4xx errors that could be handled programmatically (e.g., invalid input) include an error description that briefly explains the error reported.
|
|
20
|
+
*/
|
|
21
|
+
export declare class ApiErrorResponse extends Error {
|
|
22
|
+
error: string;
|
|
23
|
+
success: boolean;
|
|
24
|
+
code?: number | null | undefined;
|
|
25
|
+
/** The original data that was passed to this error instance. */
|
|
26
|
+
data$: ApiErrorResponseData;
|
|
27
|
+
constructor(err: ApiErrorResponseData);
|
|
28
|
+
}
|
|
29
|
+
/** @internal */
|
|
30
|
+
export declare const ApiErrorResponse$inboundSchema: z.ZodType<ApiErrorResponse, z.ZodTypeDef, unknown>;
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type ApiErrorResponse$Outbound = {
|
|
33
|
+
error: string;
|
|
34
|
+
success: boolean;
|
|
35
|
+
code?: number | null | undefined;
|
|
36
|
+
};
|
|
37
|
+
/** @internal */
|
|
38
|
+
export declare const ApiErrorResponse$outboundSchema: z.ZodType<ApiErrorResponse$Outbound, z.ZodTypeDef, ApiErrorResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* @internal
|
|
41
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
42
|
+
*/
|
|
43
|
+
export declare namespace ApiErrorResponse$ {
|
|
44
|
+
/** @deprecated use `ApiErrorResponse$inboundSchema` instead. */
|
|
45
|
+
const inboundSchema: z.ZodType<ApiErrorResponse, z.ZodTypeDef, unknown>;
|
|
46
|
+
/** @deprecated use `ApiErrorResponse$outboundSchema` instead. */
|
|
47
|
+
const outboundSchema: z.ZodType<ApiErrorResponse$Outbound, z.ZodTypeDef, ApiErrorResponse>;
|
|
48
|
+
/** @deprecated use `ApiErrorResponse$Outbound` instead. */
|
|
49
|
+
type Outbound = ApiErrorResponse$Outbound;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=apierrorresponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apierrorresponse.d.ts","sourceRoot":"","sources":["../../src/models/errors/apierrorresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF;;;;;;GAMG;AACH,qBAAa,gBAAiB,SAAQ,KAAK;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAEjC,gEAAgE;IAChE,KAAK,EAAE,oBAAoB,CAAC;gBAEhB,GAAG,EAAE,oBAAoB;CAatC;AAED,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAQL,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,yBAAyB,GAAG;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,gBAAgB,CAOb,CAAC;AAEN;;;GAGG;AACH,yBAAiB,iBAAiB,CAAC;IACjC,gEAAgE;IACzD,MAAM,aAAa,oDAAiC,CAAC;IAC5D,iEAAiE;IAC1D,MAAM,cAAc,sEAAkC,CAAC;IAC9D,2DAA2D;IAC3D,KAAY,QAAQ,GAAG,yBAAyB,CAAC;CAClD"}
|
|
@@ -0,0 +1,91 @@
|
|
|
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.ApiErrorResponse$ = exports.ApiErrorResponse$outboundSchema = exports.ApiErrorResponse$inboundSchema = exports.ApiErrorResponse = void 0;
|
|
40
|
+
const z = __importStar(require("zod"));
|
|
41
|
+
/**
|
|
42
|
+
* Green Security uses conventional HTTP response codes to indicate the success or failure of an API request. In general: Codes in the 2xx range indicate success. Codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted, a charge failed, etc.). Codes in the 5xx range indicate an error with Stripe’s servers (these are rare).
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
*
|
|
46
|
+
* Some 4xx errors that could be handled programmatically (e.g., invalid input) include an error description that briefly explains the error reported.
|
|
47
|
+
*/
|
|
48
|
+
class ApiErrorResponse extends Error {
|
|
49
|
+
constructor(err) {
|
|
50
|
+
const message = "message" in err && typeof err.message === "string"
|
|
51
|
+
? err.message
|
|
52
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
53
|
+
super(message);
|
|
54
|
+
this.data$ = err;
|
|
55
|
+
this.error = err.error;
|
|
56
|
+
this.success = err.success;
|
|
57
|
+
if (err.code != null)
|
|
58
|
+
this.code = err.code;
|
|
59
|
+
this.name = "ApiErrorResponse";
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.ApiErrorResponse = ApiErrorResponse;
|
|
63
|
+
/** @internal */
|
|
64
|
+
exports.ApiErrorResponse$inboundSchema = z.object({
|
|
65
|
+
error: z.string(),
|
|
66
|
+
success: z.boolean(),
|
|
67
|
+
code: z.nullable(z.number().int()).optional(),
|
|
68
|
+
})
|
|
69
|
+
.transform((v) => {
|
|
70
|
+
return new ApiErrorResponse(v);
|
|
71
|
+
});
|
|
72
|
+
/** @internal */
|
|
73
|
+
exports.ApiErrorResponse$outboundSchema = z.instanceof(ApiErrorResponse)
|
|
74
|
+
.transform(v => v.data$)
|
|
75
|
+
.pipe(z.object({
|
|
76
|
+
error: z.string(),
|
|
77
|
+
success: z.boolean(),
|
|
78
|
+
code: z.nullable(z.number().int()).optional(),
|
|
79
|
+
}));
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
83
|
+
*/
|
|
84
|
+
var ApiErrorResponse$;
|
|
85
|
+
(function (ApiErrorResponse$) {
|
|
86
|
+
/** @deprecated use `ApiErrorResponse$inboundSchema` instead. */
|
|
87
|
+
ApiErrorResponse$.inboundSchema = exports.ApiErrorResponse$inboundSchema;
|
|
88
|
+
/** @deprecated use `ApiErrorResponse$outboundSchema` instead. */
|
|
89
|
+
ApiErrorResponse$.outboundSchema = exports.ApiErrorResponse$outboundSchema;
|
|
90
|
+
})(ApiErrorResponse$ || (exports.ApiErrorResponse$ = ApiErrorResponse$ = {}));
|
|
91
|
+
//# sourceMappingURL=apierrorresponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apierrorresponse.js","sourceRoot":"","sources":["../../src/models/errors/apierrorresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAezB;;;;;;GAMG;AACH,MAAa,gBAAiB,SAAQ,KAAK;IAQzC,YAAY,GAAyB;QACnC,MAAM,OAAO,GAAG,SAAS,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ;YACjE,CAAC,CAAC,GAAG,CAAC,OAAO;YACb,CAAC,CAAC,uBAAuB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;QACjD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QAEjB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC;QAC3B,IAAI,GAAG,CAAC,IAAI,IAAI,IAAI;YAAE,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;QAE3C,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;IACjC,CAAC;CACF;AArBD,4CAqBC;AAED,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC9C,CAAC;KACC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACf,OAAO,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAC;AACjC,CAAC,CAAC,CAAC;AASL,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,UAAU,CAAC,gBAAgB,CAAC;KAC/B,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;KACvB,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;IACb,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC,CAAC;AAEN;;;GAGG;AACH,IAAiB,iBAAiB,CAOjC;AAPD,WAAiB,iBAAiB;IAChC,gEAAgE;IACnD,+BAAa,GAAG,sCAA8B,CAAC;IAC5D,iEAAiE;IACpD,gCAAc,GAAG,uCAA+B,CAAC;AAGhE,CAAC,EAPgB,iBAAiB,iCAAjB,iBAAiB,QAOjC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base class for all HTTP errors.
|
|
3
|
+
*/
|
|
4
|
+
export declare class HTTPClientError extends Error {
|
|
5
|
+
/** The underlying cause of the error. */
|
|
6
|
+
readonly cause: unknown;
|
|
7
|
+
name: string;
|
|
8
|
+
constructor(message: string, opts?: {
|
|
9
|
+
cause?: unknown;
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* An error to capture unrecognised or unexpected errors when making HTTP calls.
|
|
14
|
+
*/
|
|
15
|
+
export declare class UnexpectedClientError extends HTTPClientError {
|
|
16
|
+
name: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* An error that is raised when any inputs used to create a request are invalid.
|
|
20
|
+
*/
|
|
21
|
+
export declare class InvalidRequestError extends HTTPClientError {
|
|
22
|
+
name: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* An error that is raised when a HTTP request was aborted by the client error.
|
|
26
|
+
*/
|
|
27
|
+
export declare class RequestAbortedError extends HTTPClientError {
|
|
28
|
+
readonly name = "RequestAbortedError";
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* An error that is raised when a HTTP request timed out due to an AbortSignal
|
|
32
|
+
* signal timeout.
|
|
33
|
+
*/
|
|
34
|
+
export declare class RequestTimeoutError extends HTTPClientError {
|
|
35
|
+
readonly name = "RequestTimeoutError";
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* An error that is raised when a HTTP client is unable to make a request to
|
|
39
|
+
* a server.
|
|
40
|
+
*/
|
|
41
|
+
export declare class ConnectionError extends HTTPClientError {
|
|
42
|
+
readonly name = "ConnectionError";
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=httpclienterrors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"httpclienterrors.d.ts","sourceRoot":"","sources":["../../src/models/errors/httpclienterrors.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,qBAAa,eAAgB,SAAQ,KAAK;IACxC,yCAAyC;IACzC,SAAkB,KAAK,EAAE,OAAO,CAAC;IACxB,IAAI,SAAqB;gBACtB,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE;CAaxD;AAED;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,eAAe;IAC/C,IAAI,SAA2B;CACzC;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,eAAe;IAC7C,IAAI,SAAyB;CACvC;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,eAAe;IACtD,SAAkB,IAAI,yBAAyB;CAChD;AAED;;;GAGG;AACH,qBAAa,mBAAoB,SAAQ,eAAe;IACtD,SAAkB,IAAI,yBAAyB;CAChD;AAED;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,eAAe;IAClD,SAAkB,IAAI,qBAAqB;CAC5C"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ConnectionError = exports.RequestTimeoutError = exports.RequestAbortedError = exports.InvalidRequestError = exports.UnexpectedClientError = exports.HTTPClientError = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Base class for all HTTP errors.
|
|
9
|
+
*/
|
|
10
|
+
class HTTPClientError extends Error {
|
|
11
|
+
constructor(message, opts) {
|
|
12
|
+
let msg = message;
|
|
13
|
+
if (opts?.cause) {
|
|
14
|
+
msg += `: ${opts.cause}`;
|
|
15
|
+
}
|
|
16
|
+
super(msg, opts);
|
|
17
|
+
this.name = "HTTPClientError";
|
|
18
|
+
// In older runtimes, the cause field would not have been assigned through
|
|
19
|
+
// the super() call.
|
|
20
|
+
if (typeof this.cause === "undefined") {
|
|
21
|
+
this.cause = opts?.cause;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.HTTPClientError = HTTPClientError;
|
|
26
|
+
/**
|
|
27
|
+
* An error to capture unrecognised or unexpected errors when making HTTP calls.
|
|
28
|
+
*/
|
|
29
|
+
class UnexpectedClientError extends HTTPClientError {
|
|
30
|
+
constructor() {
|
|
31
|
+
super(...arguments);
|
|
32
|
+
this.name = "UnexpectedClientError";
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.UnexpectedClientError = UnexpectedClientError;
|
|
36
|
+
/**
|
|
37
|
+
* An error that is raised when any inputs used to create a request are invalid.
|
|
38
|
+
*/
|
|
39
|
+
class InvalidRequestError extends HTTPClientError {
|
|
40
|
+
constructor() {
|
|
41
|
+
super(...arguments);
|
|
42
|
+
this.name = "InvalidRequestError";
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.InvalidRequestError = InvalidRequestError;
|
|
46
|
+
/**
|
|
47
|
+
* An error that is raised when a HTTP request was aborted by the client error.
|
|
48
|
+
*/
|
|
49
|
+
class RequestAbortedError extends HTTPClientError {
|
|
50
|
+
constructor() {
|
|
51
|
+
super(...arguments);
|
|
52
|
+
this.name = "RequestAbortedError";
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.RequestAbortedError = RequestAbortedError;
|
|
56
|
+
/**
|
|
57
|
+
* An error that is raised when a HTTP request timed out due to an AbortSignal
|
|
58
|
+
* signal timeout.
|
|
59
|
+
*/
|
|
60
|
+
class RequestTimeoutError extends HTTPClientError {
|
|
61
|
+
constructor() {
|
|
62
|
+
super(...arguments);
|
|
63
|
+
this.name = "RequestTimeoutError";
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.RequestTimeoutError = RequestTimeoutError;
|
|
67
|
+
/**
|
|
68
|
+
* An error that is raised when a HTTP client is unable to make a request to
|
|
69
|
+
* a server.
|
|
70
|
+
*/
|
|
71
|
+
class ConnectionError extends HTTPClientError {
|
|
72
|
+
constructor() {
|
|
73
|
+
super(...arguments);
|
|
74
|
+
this.name = "ConnectionError";
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.ConnectionError = ConnectionError;
|
|
78
|
+
//# sourceMappingURL=httpclienterrors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"httpclienterrors.js","sourceRoot":"","sources":["../../src/models/errors/httpclienterrors.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH;;GAEG;AACH,MAAa,eAAgB,SAAQ,KAAK;IAIxC,YAAY,OAAe,EAAE,IA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1,24 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
__exportStar(require("./apierror.js"), exports);
|
|
21
|
+
__exportStar(require("./apierrorresponse.js"), exports);
|
|
22
|
+
__exportStar(require("./httpclienterrors.js"), exports);
|
|
23
|
+
__exportStar(require("./sdkvalidationerror.js"), exports);
|
|
24
|
+
//# sourceMappingURL=index.js.map
|