@quickshops/sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +88 -0
- package/README.md +486 -0
- package/RUNTIMES.md +48 -0
- package/esm/core.d.ts +10 -0
- package/esm/core.d.ts.map +1 -0
- package/esm/core.js +13 -0
- package/esm/core.js.map +1 -0
- package/esm/funcs/cart-cart-add-line.d.ts +15 -0
- package/esm/funcs/cart-cart-add-line.d.ts.map +1 -0
- package/esm/funcs/cart-cart-add-line.js +87 -0
- package/esm/funcs/cart-cart-add-line.js.map +1 -0
- package/esm/funcs/cart-cart-clear.d.ts +15 -0
- package/esm/funcs/cart-cart-clear.d.ts.map +1 -0
- package/esm/funcs/cart-cart-clear.js +86 -0
- package/esm/funcs/cart-cart-clear.js.map +1 -0
- package/esm/funcs/cart-cart-create.d.ts +15 -0
- package/esm/funcs/cart-cart-create.d.ts.map +1 -0
- package/esm/funcs/cart-cart-create.js +70 -0
- package/esm/funcs/cart-cart-create.js.map +1 -0
- package/esm/funcs/cart-cart-get.d.ts +15 -0
- package/esm/funcs/cart-cart-get.d.ts.map +1 -0
- package/esm/funcs/cart-cart-get.js +86 -0
- package/esm/funcs/cart-cart-get.js.map +1 -0
- package/esm/funcs/cart-cart-remove-line.d.ts +15 -0
- package/esm/funcs/cart-cart-remove-line.d.ts.map +1 -0
- package/esm/funcs/cart-cart-remove-line.js +90 -0
- package/esm/funcs/cart-cart-remove-line.js.map +1 -0
- package/esm/funcs/cart-cart-update-line.d.ts +15 -0
- package/esm/funcs/cart-cart-update-line.d.ts.map +1 -0
- package/esm/funcs/cart-cart-update-line.js +91 -0
- package/esm/funcs/cart-cart-update-line.js.map +1 -0
- package/esm/funcs/checkout-checkout-create-session.d.ts +15 -0
- package/esm/funcs/checkout-checkout-create-session.d.ts.map +1 -0
- package/esm/funcs/checkout-checkout-create-session.js +81 -0
- package/esm/funcs/checkout-checkout-create-session.js.map +1 -0
- package/esm/funcs/health-health-check.d.ts +15 -0
- package/esm/funcs/health-health-check.d.ts.map +1 -0
- package/esm/funcs/health-health-check.js +70 -0
- package/esm/funcs/health-health-check.js.map +1 -0
- package/esm/funcs/products-products-get-all.d.ts +15 -0
- package/esm/funcs/products-products-get-all.d.ts.map +1 -0
- package/esm/funcs/products-products-get-all.js +70 -0
- package/esm/funcs/products-products-get-all.js.map +1 -0
- package/esm/funcs/products-products-get-by-id.d.ts +15 -0
- package/esm/funcs/products-products-get-by-id.d.ts.map +1 -0
- package/esm/funcs/products-products-get-by-id.js +86 -0
- package/esm/funcs/products-products-get-by-id.js.map +1 -0
- package/esm/funcs/store-store-get.d.ts +15 -0
- package/esm/funcs/store-store-get.d.ts.map +1 -0
- package/esm/funcs/store-store-get.js +70 -0
- package/esm/funcs/store-store-get.js.map +1 -0
- package/esm/funcs/subscription-subscription-create-portal-session.d.ts +15 -0
- package/esm/funcs/subscription-subscription-create-portal-session.d.ts.map +1 -0
- package/esm/funcs/subscription-subscription-create-portal-session.js +81 -0
- package/esm/funcs/subscription-subscription-create-portal-session.js.map +1 -0
- package/esm/hooks/hooks.d.ts +25 -0
- package/esm/hooks/hooks.d.ts.map +1 -0
- package/esm/hooks/hooks.js +80 -0
- package/esm/hooks/hooks.js.map +1 -0
- package/esm/hooks/index.d.ts +3 -0
- package/esm/hooks/index.d.ts.map +1 -0
- package/esm/hooks/index.js +6 -0
- package/esm/hooks/index.js.map +1 -0
- package/esm/hooks/types.d.ts +77 -0
- package/esm/hooks/types.d.ts.map +1 -0
- package/esm/hooks/types.js +5 -0
- package/esm/hooks/types.js.map +1 -0
- package/esm/index.d.ts +6 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +8 -0
- package/esm/index.js.map +1 -0
- package/esm/lib/base64.d.ts +10 -0
- package/esm/lib/base64.d.ts.map +1 -0
- package/esm/lib/base64.js +31 -0
- package/esm/lib/base64.js.map +1 -0
- package/esm/lib/config.d.ts +30 -0
- package/esm/lib/config.d.ts.map +1 -0
- package/esm/lib/config.js +21 -0
- package/esm/lib/config.js.map +1 -0
- package/esm/lib/encodings.d.ts +54 -0
- package/esm/lib/encodings.d.ts.map +1 -0
- package/esm/lib/encodings.js +391 -0
- package/esm/lib/encodings.js.map +1 -0
- package/esm/lib/env.d.ts +15 -0
- package/esm/lib/env.d.ts.map +1 -0
- package/esm/lib/env.js +44 -0
- package/esm/lib/env.js.map +1 -0
- package/esm/lib/files.d.ts +26 -0
- package/esm/lib/files.d.ts.map +1 -0
- package/esm/lib/files.js +91 -0
- package/esm/lib/files.js.map +1 -0
- package/esm/lib/http.d.ts +67 -0
- package/esm/lib/http.d.ts.map +1 -0
- package/esm/lib/http.js +209 -0
- package/esm/lib/http.js.map +1 -0
- package/esm/lib/logger.d.ts +6 -0
- package/esm/lib/logger.d.ts.map +1 -0
- package/esm/lib/logger.js +5 -0
- package/esm/lib/logger.js.map +1 -0
- package/esm/lib/matchers.d.ts +59 -0
- package/esm/lib/matchers.d.ts.map +1 -0
- package/esm/lib/matchers.js +202 -0
- package/esm/lib/matchers.js.map +1 -0
- package/esm/lib/primitives.d.ts +27 -0
- package/esm/lib/primitives.d.ts.map +1 -0
- package/esm/lib/primitives.js +120 -0
- package/esm/lib/primitives.js.map +1 -0
- package/esm/lib/retries.d.ts +38 -0
- package/esm/lib/retries.d.ts.map +1 -0
- package/esm/lib/retries.js +150 -0
- package/esm/lib/retries.js.map +1 -0
- package/esm/lib/schemas.d.ts +21 -0
- package/esm/lib/schemas.d.ts.map +1 -0
- package/esm/lib/schemas.js +57 -0
- package/esm/lib/schemas.js.map +1 -0
- package/esm/lib/sdks.d.ts +63 -0
- package/esm/lib/sdks.d.ts.map +1 -0
- package/esm/lib/sdks.js +294 -0
- package/esm/lib/sdks.js.map +1 -0
- package/esm/lib/security.d.ts +83 -0
- package/esm/lib/security.d.ts.map +1 -0
- package/esm/lib/security.js +149 -0
- package/esm/lib/security.js.map +1 -0
- package/esm/lib/url.d.ts +5 -0
- package/esm/lib/url.d.ts.map +1 -0
- package/esm/lib/url.js +24 -0
- package/esm/lib/url.js.map +1 -0
- package/esm/models/errors/cart-add-line.d.ts +141 -0
- package/esm/models/errors/cart-add-line.d.ts.map +1 -0
- package/esm/models/errors/cart-add-line.js +205 -0
- package/esm/models/errors/cart-add-line.js.map +1 -0
- package/esm/models/errors/cart-clear.d.ts +118 -0
- package/esm/models/errors/cart-clear.d.ts.map +1 -0
- package/esm/models/errors/cart-clear.js +172 -0
- package/esm/models/errors/cart-clear.js.map +1 -0
- package/esm/models/errors/cart-create.d.ts +118 -0
- package/esm/models/errors/cart-create.d.ts.map +1 -0
- package/esm/models/errors/cart-create.js +172 -0
- package/esm/models/errors/cart-create.js.map +1 -0
- package/esm/models/errors/cart-get.d.ts +95 -0
- package/esm/models/errors/cart-get.d.ts.map +1 -0
- package/esm/models/errors/cart-get.js +139 -0
- package/esm/models/errors/cart-get.js.map +1 -0
- package/esm/models/errors/cart-remove-line.d.ts +141 -0
- package/esm/models/errors/cart-remove-line.d.ts.map +1 -0
- package/esm/models/errors/cart-remove-line.js +205 -0
- package/esm/models/errors/cart-remove-line.js.map +1 -0
- package/esm/models/errors/cart-update-line.d.ts +141 -0
- package/esm/models/errors/cart-update-line.d.ts.map +1 -0
- package/esm/models/errors/cart-update-line.js +205 -0
- package/esm/models/errors/cart-update-line.js.map +1 -0
- package/esm/models/errors/checkout-create-session.d.ts +118 -0
- package/esm/models/errors/checkout-create-session.d.ts.map +1 -0
- package/esm/models/errors/checkout-create-session.js +172 -0
- package/esm/models/errors/checkout-create-session.js.map +1 -0
- package/esm/models/errors/health-check.d.ts +72 -0
- package/esm/models/errors/health-check.d.ts.map +1 -0
- package/esm/models/errors/health-check.js +106 -0
- package/esm/models/errors/health-check.js.map +1 -0
- package/esm/models/errors/http-client-errors.d.ts +44 -0
- package/esm/models/errors/http-client-errors.d.ts.map +1 -0
- package/esm/models/errors/http-client-errors.js +56 -0
- package/esm/models/errors/http-client-errors.js.map +1 -0
- package/esm/models/errors/index.d.ts +18 -0
- package/esm/models/errors/index.d.ts.map +1 -0
- package/esm/models/errors/index.js +21 -0
- package/esm/models/errors/index.js.map +1 -0
- package/esm/models/errors/products-get-all.d.ts +72 -0
- package/esm/models/errors/products-get-all.d.ts.map +1 -0
- package/esm/models/errors/products-get-all.js +106 -0
- package/esm/models/errors/products-get-all.js.map +1 -0
- package/esm/models/errors/products-get-by-id.d.ts +95 -0
- package/esm/models/errors/products-get-by-id.d.ts.map +1 -0
- package/esm/models/errors/products-get-by-id.js +139 -0
- package/esm/models/errors/products-get-by-id.js.map +1 -0
- package/esm/models/errors/quickshops-default-error.d.ts +10 -0
- package/esm/models/errors/quickshops-default-error.d.ts.map +1 -0
- package/esm/models/errors/quickshops-default-error.js +30 -0
- package/esm/models/errors/quickshops-default-error.js.map +1 -0
- package/esm/models/errors/quickshops-error.d.ts +19 -0
- package/esm/models/errors/quickshops-error.d.ts.map +1 -0
- package/esm/models/errors/quickshops-error.js +26 -0
- package/esm/models/errors/quickshops-error.js.map +1 -0
- package/esm/models/errors/response-validation-error.d.ts +26 -0
- package/esm/models/errors/response-validation-error.d.ts.map +1 -0
- package/esm/models/errors/response-validation-error.js +37 -0
- package/esm/models/errors/response-validation-error.js.map +1 -0
- package/esm/models/errors/sdk-validation-error.d.ts +21 -0
- package/esm/models/errors/sdk-validation-error.d.ts.map +1 -0
- package/esm/models/errors/sdk-validation-error.js +52 -0
- package/esm/models/errors/sdk-validation-error.js.map +1 -0
- package/esm/models/errors/store-get.d.ts +95 -0
- package/esm/models/errors/store-get.d.ts.map +1 -0
- package/esm/models/errors/store-get.js +139 -0
- package/esm/models/errors/store-get.js.map +1 -0
- package/esm/models/errors/subscription-create-portal-session.d.ts +118 -0
- package/esm/models/errors/subscription-create-portal-session.d.ts.map +1 -0
- package/esm/models/errors/subscription-create-portal-session.js +175 -0
- package/esm/models/errors/subscription-create-portal-session.js.map +1 -0
- package/esm/models/index.d.ts +2 -0
- package/esm/models/index.d.ts.map +1 -0
- package/esm/models/index.js +5 -0
- package/esm/models/index.js.map +1 -0
- package/esm/models/operations/cart-add-line.d.ts +61 -0
- package/esm/models/operations/cart-add-line.d.ts.map +1 -0
- package/esm/models/operations/cart-add-line.js +57 -0
- package/esm/models/operations/cart-add-line.js.map +1 -0
- package/esm/models/operations/cart-clear.d.ts +47 -0
- package/esm/models/operations/cart-clear.d.ts.map +1 -0
- package/esm/models/operations/cart-clear.js +48 -0
- package/esm/models/operations/cart-clear.js.map +1 -0
- package/esm/models/operations/cart-create.d.ts +37 -0
- package/esm/models/operations/cart-create.d.ts.map +1 -0
- package/esm/models/operations/cart-create.js +41 -0
- package/esm/models/operations/cart-create.js.map +1 -0
- package/esm/models/operations/cart-get.d.ts +47 -0
- package/esm/models/operations/cart-get.d.ts.map +1 -0
- package/esm/models/operations/cart-get.js +50 -0
- package/esm/models/operations/cart-get.js.map +1 -0
- package/esm/models/operations/cart-remove-line.d.ts +49 -0
- package/esm/models/operations/cart-remove-line.d.ts.map +1 -0
- package/esm/models/operations/cart-remove-line.js +49 -0
- package/esm/models/operations/cart-remove-line.js.map +1 -0
- package/esm/models/operations/cart-update-line.d.ts +61 -0
- package/esm/models/operations/cart-update-line.d.ts.map +1 -0
- package/esm/models/operations/cart-update-line.js +57 -0
- package/esm/models/operations/cart-update-line.js.map +1 -0
- package/esm/models/operations/checkout-create-session.d.ts +29 -0
- package/esm/models/operations/checkout-create-session.d.ts.map +1 -0
- package/esm/models/operations/checkout-create-session.js +28 -0
- package/esm/models/operations/checkout-create-session.js.map +1 -0
- package/esm/models/operations/health-check.d.ts +13 -0
- package/esm/models/operations/health-check.d.ts.map +1 -0
- package/esm/models/operations/health-check.js +14 -0
- package/esm/models/operations/health-check.js.map +1 -0
- package/esm/models/operations/index.d.ts +13 -0
- package/esm/models/operations/index.d.ts.map +1 -0
- package/esm/models/operations/index.js +16 -0
- package/esm/models/operations/index.js.map +1 -0
- package/esm/models/operations/products-get-all.d.ts +45 -0
- package/esm/models/operations/products-get-all.d.ts.map +1 -0
- package/esm/models/operations/products-get-all.js +50 -0
- package/esm/models/operations/products-get-all.js.map +1 -0
- package/esm/models/operations/products-get-by-id.d.ts +55 -0
- package/esm/models/operations/products-get-by-id.d.ts.map +1 -0
- package/esm/models/operations/products-get-by-id.js +57 -0
- package/esm/models/operations/products-get-by-id.js.map +1 -0
- package/esm/models/operations/store-get.d.ts +31 -0
- package/esm/models/operations/store-get.d.ts.map +1 -0
- package/esm/models/operations/store-get.js +39 -0
- package/esm/models/operations/store-get.js.map +1 -0
- package/esm/models/operations/subscription-create-portal-session.d.ts +29 -0
- package/esm/models/operations/subscription-create-portal-session.d.ts.map +1 -0
- package/esm/models/operations/subscription-create-portal-session.js +28 -0
- package/esm/models/operations/subscription-create-portal-session.js.map +1 -0
- package/esm/models/security.d.ts +12 -0
- package/esm/models/security.d.ts.map +1 -0
- package/esm/models/security.js +17 -0
- package/esm/models/security.js.map +1 -0
- package/esm/sdk/cart.d.ts +29 -0
- package/esm/sdk/cart.d.ts.map +1 -0
- package/esm/sdk/cart.js +50 -0
- package/esm/sdk/cart.js.map +1 -0
- package/esm/sdk/checkout.d.ts +9 -0
- package/esm/sdk/checkout.d.ts.map +1 -0
- package/esm/sdk/checkout.js +15 -0
- package/esm/sdk/checkout.js.map +1 -0
- package/esm/sdk/health.d.ts +9 -0
- package/esm/sdk/health.d.ts.map +1 -0
- package/esm/sdk/health.js +15 -0
- package/esm/sdk/health.js.map +1 -0
- package/esm/sdk/index.d.ts +2 -0
- package/esm/sdk/index.d.ts.map +1 -0
- package/esm/sdk/index.js +5 -0
- package/esm/sdk/index.js.map +1 -0
- package/esm/sdk/products.d.ts +13 -0
- package/esm/sdk/products.d.ts.map +1 -0
- package/esm/sdk/products.js +22 -0
- package/esm/sdk/products.js.map +1 -0
- package/esm/sdk/sdk.d.ts +22 -0
- package/esm/sdk/sdk.d.ts.map +1 -0
- package/esm/sdk/sdk.js +37 -0
- package/esm/sdk/sdk.js.map +1 -0
- package/esm/sdk/store.d.ts +9 -0
- package/esm/sdk/store.d.ts.map +1 -0
- package/esm/sdk/store.js +15 -0
- package/esm/sdk/store.js.map +1 -0
- package/esm/sdk/subscription.d.ts +9 -0
- package/esm/sdk/subscription.d.ts.map +1 -0
- package/esm/sdk/subscription.js +15 -0
- package/esm/sdk/subscription.js.map +1 -0
- package/esm/types/async.d.ts +23 -0
- package/esm/types/async.d.ts.map +1 -0
- package/esm/types/async.js +28 -0
- package/esm/types/async.js.map +1 -0
- package/esm/types/blobs.d.ts +4 -0
- package/esm/types/blobs.d.ts.map +1 -0
- package/esm/types/blobs.js +25 -0
- package/esm/types/blobs.js.map +1 -0
- package/esm/types/const-date-time.d.ts +3 -0
- package/esm/types/const-date-time.d.ts.map +1 -0
- package/esm/types/const-date-time.js +10 -0
- package/esm/types/const-date-time.js.map +1 -0
- package/esm/types/default-to-zero-value.d.ts +12 -0
- package/esm/types/default-to-zero-value.d.ts.map +1 -0
- package/esm/types/default-to-zero-value.js +31 -0
- package/esm/types/default-to-zero-value.js.map +1 -0
- package/esm/types/enums.d.ts +9 -0
- package/esm/types/enums.d.ts.map +1 -0
- package/esm/types/enums.js +27 -0
- package/esm/types/enums.js.map +1 -0
- package/esm/types/fp.d.ts +31 -0
- package/esm/types/fp.d.ts.map +1 -0
- package/esm/types/fp.js +31 -0
- package/esm/types/fp.js.map +1 -0
- package/esm/types/index.d.ts +10 -0
- package/esm/types/index.d.ts.map +1 -0
- package/esm/types/index.js +10 -0
- package/esm/types/index.js.map +1 -0
- package/esm/types/operations.d.ts +27 -0
- package/esm/types/operations.d.ts.map +1 -0
- package/esm/types/operations.js +77 -0
- package/esm/types/operations.js.map +1 -0
- package/esm/types/primitives.d.ts +9 -0
- package/esm/types/primitives.d.ts.map +1 -0
- package/esm/types/primitives.js +109 -0
- package/esm/types/primitives.js.map +1 -0
- package/esm/types/rfcdate.d.ts +21 -0
- package/esm/types/rfcdate.d.ts.map +1 -0
- package/esm/types/rfcdate.js +43 -0
- package/esm/types/rfcdate.js.map +1 -0
- package/esm/types/smart-union.d.ts +7 -0
- package/esm/types/smart-union.d.ts.map +1 -0
- package/esm/types/smart-union.js +117 -0
- package/esm/types/smart-union.js.map +1 -0
- package/esm/types/streams.d.ts +2 -0
- package/esm/types/streams.d.ts.map +1 -0
- package/esm/types/streams.js +15 -0
- package/esm/types/streams.js.map +1 -0
- package/esm/types/unrecognized.d.ts +16 -0
- package/esm/types/unrecognized.d.ts.map +1 -0
- package/esm/types/unrecognized.js +31 -0
- package/esm/types/unrecognized.js.map +1 -0
- package/examples/healthHealthCheck.example.ts +27 -0
- package/examples/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/examples/node_modules/@types/node/assert.d.ts +1062 -0
- package/examples/node_modules/@types/node/async_hooks.d.ts +605 -0
- package/examples/node_modules/@types/node/buffer.buffer.d.ts +471 -0
- package/examples/node_modules/@types/node/buffer.d.ts +1936 -0
- package/examples/node_modules/@types/node/child_process.d.ts +1475 -0
- package/examples/node_modules/@types/node/cluster.d.ts +577 -0
- package/examples/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/examples/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/examples/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
- package/examples/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/examples/node_modules/@types/node/console.d.ts +452 -0
- package/examples/node_modules/@types/node/constants.d.ts +21 -0
- package/examples/node_modules/@types/node/crypto.d.ts +4590 -0
- package/examples/node_modules/@types/node/dgram.d.ts +597 -0
- package/examples/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
- package/examples/node_modules/@types/node/dns/promises.d.ts +479 -0
- package/examples/node_modules/@types/node/dns.d.ts +871 -0
- package/examples/node_modules/@types/node/domain.d.ts +170 -0
- package/examples/node_modules/@types/node/events.d.ts +977 -0
- package/examples/node_modules/@types/node/fs/promises.d.ts +1270 -0
- package/examples/node_modules/@types/node/fs.d.ts +4375 -0
- package/examples/node_modules/@types/node/globals.d.ts +172 -0
- package/examples/node_modules/@types/node/globals.typedarray.d.ts +38 -0
- package/examples/node_modules/@types/node/http.d.ts +2049 -0
- package/examples/node_modules/@types/node/http2.d.ts +2712 -0
- package/examples/node_modules/@types/node/https.d.ts +578 -0
- package/examples/node_modules/@types/node/index.d.ts +93 -0
- package/examples/node_modules/@types/node/inspector.generated.d.ts +3966 -0
- package/examples/node_modules/@types/node/module.d.ts +539 -0
- package/examples/node_modules/@types/node/net.d.ts +1031 -0
- package/examples/node_modules/@types/node/os.d.ts +506 -0
- package/examples/node_modules/@types/node/path.d.ts +200 -0
- package/examples/node_modules/@types/node/perf_hooks.d.ts +961 -0
- package/examples/node_modules/@types/node/process.d.ts +1961 -0
- package/examples/node_modules/@types/node/punycode.d.ts +117 -0
- package/examples/node_modules/@types/node/querystring.d.ts +152 -0
- package/examples/node_modules/@types/node/readline/promises.d.ts +162 -0
- package/examples/node_modules/@types/node/readline.d.ts +589 -0
- package/examples/node_modules/@types/node/repl.d.ts +430 -0
- package/examples/node_modules/@types/node/sea.d.ts +153 -0
- package/examples/node_modules/@types/node/stream/consumers.d.ts +38 -0
- package/examples/node_modules/@types/node/stream/promises.d.ts +90 -0
- package/examples/node_modules/@types/node/stream/web.d.ts +533 -0
- package/examples/node_modules/@types/node/stream.d.ts +1698 -0
- package/examples/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/examples/node_modules/@types/node/test.d.ts +1787 -0
- package/examples/node_modules/@types/node/timers/promises.d.ts +108 -0
- package/examples/node_modules/@types/node/timers.d.ts +286 -0
- package/examples/node_modules/@types/node/tls.d.ts +1259 -0
- package/examples/node_modules/@types/node/trace_events.d.ts +197 -0
- package/examples/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
- package/examples/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +34 -0
- package/examples/node_modules/@types/node/ts5.6/index.d.ts +93 -0
- package/examples/node_modules/@types/node/tty.d.ts +208 -0
- package/examples/node_modules/@types/node/url.d.ts +964 -0
- package/examples/node_modules/@types/node/util.d.ts +2331 -0
- package/examples/node_modules/@types/node/v8.d.ts +809 -0
- package/examples/node_modules/@types/node/vm.d.ts +1001 -0
- package/examples/node_modules/@types/node/wasi.d.ts +181 -0
- package/examples/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/examples/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/examples/node_modules/@types/node/web-globals/events.d.ts +97 -0
- package/examples/node_modules/@types/node/web-globals/fetch.d.ts +55 -0
- package/examples/node_modules/@types/node/worker_threads.d.ts +715 -0
- package/examples/node_modules/@types/node/zlib.d.ts +598 -0
- package/examples/node_modules/dotenv/config.d.ts +1 -0
- package/examples/node_modules/dotenv/config.js +9 -0
- package/examples/node_modules/dotenv/lib/cli-options.js +17 -0
- package/examples/node_modules/dotenv/lib/env-options.js +28 -0
- package/examples/node_modules/dotenv/lib/main.d.ts +162 -0
- package/examples/node_modules/dotenv/lib/main.js +386 -0
- package/examples/node_modules/esbuild/install.js +300 -0
- package/examples/node_modules/esbuild/lib/main.d.ts +716 -0
- package/examples/node_modules/esbuild/lib/main.js +2532 -0
- package/examples/node_modules/fsevents/fsevents.d.ts +46 -0
- package/examples/node_modules/fsevents/fsevents.js +83 -0
- package/examples/node_modules/tsx/dist/cjs/api/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/cjs/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/cli.mjs +55 -0
- package/examples/node_modules/tsx/dist/client-D_mPDF5S.mjs +1 -0
- package/examples/node_modules/tsx/dist/esm/api/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/esm/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/get-pipe-path-_tAJyU_v.mjs +1 -0
- package/examples/node_modules/tsx/dist/index-XurvG3JN.mjs +14 -0
- package/examples/node_modules/tsx/dist/index-gbaejti9.mjs +1 -0
- package/examples/node_modules/tsx/dist/lexer-DQCqS3nf.mjs +3 -0
- package/examples/node_modules/tsx/dist/loader.mjs +1 -0
- package/examples/node_modules/tsx/dist/node-features-B9BBLzwu.mjs +1 -0
- package/examples/node_modules/tsx/dist/package-Bj47PlGH.mjs +1 -0
- package/examples/node_modules/tsx/dist/patch-repl.mjs +1 -0
- package/examples/node_modules/tsx/dist/preflight.mjs +1 -0
- package/examples/node_modules/tsx/dist/register-BnTWPeIB.mjs +10 -0
- package/examples/node_modules/tsx/dist/register-CqMfTiWi.mjs +2 -0
- package/examples/node_modules/tsx/dist/repl.mjs +3 -0
- package/examples/node_modules/tsx/dist/require-DzmC1hVr.mjs +1 -0
- package/examples/node_modules/tsx/dist/suppress-warnings.mjs +1 -0
- package/examples/node_modules/tsx/dist/temporary-directory-BDDVQOvU.mjs +1 -0
- package/examples/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +5 -0
- package/examples/node_modules/undici-types/agent.d.ts +31 -0
- package/examples/node_modules/undici-types/api.d.ts +43 -0
- package/examples/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/examples/node_modules/undici-types/cache.d.ts +36 -0
- package/examples/node_modules/undici-types/client.d.ts +108 -0
- package/examples/node_modules/undici-types/connector.d.ts +34 -0
- package/examples/node_modules/undici-types/content-type.d.ts +21 -0
- package/examples/node_modules/undici-types/cookies.d.ts +28 -0
- package/examples/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/examples/node_modules/undici-types/dispatcher.d.ts +256 -0
- package/examples/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/examples/node_modules/undici-types/errors.d.ts +149 -0
- package/examples/node_modules/undici-types/eventsource.d.ts +61 -0
- package/examples/node_modules/undici-types/fetch.d.ts +209 -0
- package/examples/node_modules/undici-types/file.d.ts +39 -0
- package/examples/node_modules/undici-types/filereader.d.ts +54 -0
- package/examples/node_modules/undici-types/formdata.d.ts +108 -0
- package/examples/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/examples/node_modules/undici-types/global-origin.d.ts +7 -0
- package/examples/node_modules/undici-types/handlers.d.ts +15 -0
- package/examples/node_modules/undici-types/header.d.ts +4 -0
- package/examples/node_modules/undici-types/index.d.ts +71 -0
- package/examples/node_modules/undici-types/interceptors.d.ts +17 -0
- package/examples/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/examples/node_modules/undici-types/mock-client.d.ts +25 -0
- package/examples/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/examples/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/examples/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/examples/node_modules/undici-types/patch.d.ts +33 -0
- package/examples/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/examples/node_modules/undici-types/pool.d.ts +39 -0
- package/examples/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/examples/node_modules/undici-types/readable.d.ts +65 -0
- package/examples/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/examples/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/examples/node_modules/undici-types/util.d.ts +18 -0
- package/examples/node_modules/undici-types/webidl.d.ts +228 -0
- package/examples/node_modules/undici-types/websocket.d.ts +150 -0
- package/jsr.json +27 -0
- package/package.json +63 -0
- package/src/core.ts +13 -0
- package/src/funcs/cart-cart-add-line.ts +195 -0
- package/src/funcs/cart-cart-clear.ts +190 -0
- package/src/funcs/cart-cart-create.ts +166 -0
- package/src/funcs/cart-cart-get.ts +186 -0
- package/src/funcs/cart-cart-remove-line.ts +198 -0
- package/src/funcs/cart-cart-update-line.ts +199 -0
- package/src/funcs/checkout-checkout-create-session.ts +189 -0
- package/src/funcs/health-health-check.ts +158 -0
- package/src/funcs/products-products-get-all.ts +158 -0
- package/src/funcs/products-products-get-by-id.ts +186 -0
- package/src/funcs/store-store-get.ts +162 -0
- package/src/funcs/subscription-subscription-create-portal-session.ts +207 -0
- package/src/hooks/hooks.ts +129 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/types.ts +108 -0
- package/src/index.ts +9 -0
- package/src/lib/base64.ts +39 -0
- package/src/lib/config.ts +49 -0
- package/src/lib/encodings.ts +529 -0
- package/src/lib/env.ts +61 -0
- package/src/lib/files.ts +104 -0
- package/src/lib/http.ts +323 -0
- package/src/lib/logger.ts +9 -0
- package/src/lib/matchers.ts +353 -0
- package/src/lib/primitives.ts +166 -0
- package/src/lib/retries.ts +218 -0
- package/src/lib/schemas.ts +94 -0
- package/src/lib/sdks.ts +442 -0
- package/src/lib/security.ts +275 -0
- package/src/lib/url.ts +35 -0
- package/src/models/errors/cart-add-line.ts +337 -0
- package/src/models/errors/cart-clear.ts +282 -0
- package/src/models/errors/cart-create.ts +282 -0
- package/src/models/errors/cart-get.ts +227 -0
- package/src/models/errors/cart-remove-line.ts +337 -0
- package/src/models/errors/cart-update-line.ts +337 -0
- package/src/models/errors/checkout-create-session.ts +278 -0
- package/src/models/errors/health-check.ts +172 -0
- package/src/models/errors/http-client-errors.ts +62 -0
- package/src/models/errors/index.ts +21 -0
- package/src/models/errors/products-get-all.ts +172 -0
- package/src/models/errors/products-get-by-id.ts +227 -0
- package/src/models/errors/quickshops-default-error.ts +40 -0
- package/src/models/errors/quickshops-error.ts +35 -0
- package/src/models/errors/response-validation-error.ts +50 -0
- package/src/models/errors/sdk-validation-error.ts +54 -0
- package/src/models/errors/store-get.ts +227 -0
- package/src/models/errors/subscription-create-portal-session.ts +286 -0
- package/src/models/index.ts +5 -0
- package/src/models/operations/cart-add-line.ts +168 -0
- package/src/models/operations/cart-clear.ts +137 -0
- package/src/models/operations/cart-create.ts +112 -0
- package/src/models/operations/cart-get.ts +129 -0
- package/src/models/operations/cart-remove-line.ts +140 -0
- package/src/models/operations/cart-update-line.ts +168 -0
- package/src/models/operations/checkout-create-session.ts +83 -0
- package/src/models/operations/health-check.ts +34 -0
- package/src/models/operations/index.ts +16 -0
- package/src/models/operations/products-get-all.ts +116 -0
- package/src/models/operations/products-get-by-id.ts +141 -0
- package/src/models/operations/store-get.ts +96 -0
- package/src/models/operations/subscription-create-portal-session.ts +90 -0
- package/src/models/security.ts +34 -0
- package/src/sdk/cart.ts +97 -0
- package/src/sdk/checkout.ts +24 -0
- package/src/sdk/health.ts +22 -0
- package/src/sdk/index.ts +5 -0
- package/src/sdk/products.ts +37 -0
- package/src/sdk/sdk.ts +43 -0
- package/src/sdk/store.ts +22 -0
- package/src/sdk/subscription.ts +24 -0
- package/src/types/async.ts +69 -0
- package/src/types/blobs.ts +33 -0
- package/src/types/const-date-time.ts +15 -0
- package/src/types/default-to-zero-value.ts +33 -0
- package/src/types/enums.ts +45 -0
- package/src/types/fp.ts +50 -0
- package/src/types/index.ts +13 -0
- package/src/types/operations.ts +105 -0
- package/src/types/primitives.ts +140 -0
- package/src/types/rfcdate.ts +54 -0
- package/src/types/smart-union.ts +153 -0
- package/src/types/streams.ts +21 -0
- package/src/types/unrecognized.ts +35 -0
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import * as types from "../../types/primitives.js";
|
|
7
|
+
import { QuickshopsError } from "./quickshops-error.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Response for status 429
|
|
11
|
+
*/
|
|
12
|
+
export type CheckoutCreateSessionTooManyRequestsErrorData = {
|
|
13
|
+
error: string;
|
|
14
|
+
code: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Response for status 429
|
|
19
|
+
*/
|
|
20
|
+
export class CheckoutCreateSessionTooManyRequestsError extends QuickshopsError {
|
|
21
|
+
error: string;
|
|
22
|
+
code: string;
|
|
23
|
+
|
|
24
|
+
/** The original data that was passed to this error instance. */
|
|
25
|
+
data$: CheckoutCreateSessionTooManyRequestsErrorData;
|
|
26
|
+
|
|
27
|
+
constructor(
|
|
28
|
+
err: CheckoutCreateSessionTooManyRequestsErrorData,
|
|
29
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
30
|
+
) {
|
|
31
|
+
const message = "message" in err && typeof err.message === "string"
|
|
32
|
+
? err.message
|
|
33
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
34
|
+
super(message, httpMeta);
|
|
35
|
+
this.data$ = err;
|
|
36
|
+
this.error = err.error;
|
|
37
|
+
this.code = err.code;
|
|
38
|
+
|
|
39
|
+
this.name = "CheckoutCreateSessionTooManyRequestsError";
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Response for status 409
|
|
45
|
+
*/
|
|
46
|
+
export type CheckoutCreateSessionConflictErrorData = {
|
|
47
|
+
error: string;
|
|
48
|
+
code: string;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Response for status 409
|
|
53
|
+
*/
|
|
54
|
+
export class CheckoutCreateSessionConflictError extends QuickshopsError {
|
|
55
|
+
error: string;
|
|
56
|
+
code: string;
|
|
57
|
+
|
|
58
|
+
/** The original data that was passed to this error instance. */
|
|
59
|
+
data$: CheckoutCreateSessionConflictErrorData;
|
|
60
|
+
|
|
61
|
+
constructor(
|
|
62
|
+
err: CheckoutCreateSessionConflictErrorData,
|
|
63
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
64
|
+
) {
|
|
65
|
+
const message = "message" in err && typeof err.message === "string"
|
|
66
|
+
? err.message
|
|
67
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
68
|
+
super(message, httpMeta);
|
|
69
|
+
this.data$ = err;
|
|
70
|
+
this.error = err.error;
|
|
71
|
+
this.code = err.code;
|
|
72
|
+
|
|
73
|
+
this.name = "CheckoutCreateSessionConflictError";
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Response for status 403
|
|
79
|
+
*/
|
|
80
|
+
export type CheckoutCreateSessionForbiddenErrorData = {
|
|
81
|
+
error: string;
|
|
82
|
+
code: string;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Response for status 403
|
|
87
|
+
*/
|
|
88
|
+
export class CheckoutCreateSessionForbiddenError extends QuickshopsError {
|
|
89
|
+
error: string;
|
|
90
|
+
code: string;
|
|
91
|
+
|
|
92
|
+
/** The original data that was passed to this error instance. */
|
|
93
|
+
data$: CheckoutCreateSessionForbiddenErrorData;
|
|
94
|
+
|
|
95
|
+
constructor(
|
|
96
|
+
err: CheckoutCreateSessionForbiddenErrorData,
|
|
97
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
98
|
+
) {
|
|
99
|
+
const message = "message" in err && typeof err.message === "string"
|
|
100
|
+
? err.message
|
|
101
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
102
|
+
super(message, httpMeta);
|
|
103
|
+
this.data$ = err;
|
|
104
|
+
this.error = err.error;
|
|
105
|
+
this.code = err.code;
|
|
106
|
+
|
|
107
|
+
this.name = "CheckoutCreateSessionForbiddenError";
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Response for status 401
|
|
113
|
+
*/
|
|
114
|
+
export type CheckoutCreateSessionUnauthorizedErrorData = {
|
|
115
|
+
error: string;
|
|
116
|
+
code: string;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Response for status 401
|
|
121
|
+
*/
|
|
122
|
+
export class CheckoutCreateSessionUnauthorizedError extends QuickshopsError {
|
|
123
|
+
error: string;
|
|
124
|
+
code: string;
|
|
125
|
+
|
|
126
|
+
/** The original data that was passed to this error instance. */
|
|
127
|
+
data$: CheckoutCreateSessionUnauthorizedErrorData;
|
|
128
|
+
|
|
129
|
+
constructor(
|
|
130
|
+
err: CheckoutCreateSessionUnauthorizedErrorData,
|
|
131
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
132
|
+
) {
|
|
133
|
+
const message = "message" in err && typeof err.message === "string"
|
|
134
|
+
? err.message
|
|
135
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
136
|
+
super(message, httpMeta);
|
|
137
|
+
this.data$ = err;
|
|
138
|
+
this.error = err.error;
|
|
139
|
+
this.code = err.code;
|
|
140
|
+
|
|
141
|
+
this.name = "CheckoutCreateSessionUnauthorizedError";
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Response for status 400
|
|
147
|
+
*/
|
|
148
|
+
export type CheckoutCreateSessionBadRequestErrorData = {
|
|
149
|
+
error: string;
|
|
150
|
+
code: string;
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Response for status 400
|
|
155
|
+
*/
|
|
156
|
+
export class CheckoutCreateSessionBadRequestError extends QuickshopsError {
|
|
157
|
+
error: string;
|
|
158
|
+
code: string;
|
|
159
|
+
|
|
160
|
+
/** The original data that was passed to this error instance. */
|
|
161
|
+
data$: CheckoutCreateSessionBadRequestErrorData;
|
|
162
|
+
|
|
163
|
+
constructor(
|
|
164
|
+
err: CheckoutCreateSessionBadRequestErrorData,
|
|
165
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
166
|
+
) {
|
|
167
|
+
const message = "message" in err && typeof err.message === "string"
|
|
168
|
+
? err.message
|
|
169
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
170
|
+
super(message, httpMeta);
|
|
171
|
+
this.data$ = err;
|
|
172
|
+
this.error = err.error;
|
|
173
|
+
this.code = err.code;
|
|
174
|
+
|
|
175
|
+
this.name = "CheckoutCreateSessionBadRequestError";
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/** @internal */
|
|
180
|
+
export const CheckoutCreateSessionTooManyRequestsError$inboundSchema:
|
|
181
|
+
z.ZodMiniType<CheckoutCreateSessionTooManyRequestsError, unknown> = z.pipe(
|
|
182
|
+
z.object({
|
|
183
|
+
error: types.string(),
|
|
184
|
+
code: types.string(),
|
|
185
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
186
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
187
|
+
body$: z.string(),
|
|
188
|
+
}),
|
|
189
|
+
z.transform((v) => {
|
|
190
|
+
return new CheckoutCreateSessionTooManyRequestsError(v, {
|
|
191
|
+
request: v.request$,
|
|
192
|
+
response: v.response$,
|
|
193
|
+
body: v.body$,
|
|
194
|
+
});
|
|
195
|
+
}),
|
|
196
|
+
);
|
|
197
|
+
|
|
198
|
+
/** @internal */
|
|
199
|
+
export const CheckoutCreateSessionConflictError$inboundSchema: z.ZodMiniType<
|
|
200
|
+
CheckoutCreateSessionConflictError,
|
|
201
|
+
unknown
|
|
202
|
+
> = z.pipe(
|
|
203
|
+
z.object({
|
|
204
|
+
error: types.string(),
|
|
205
|
+
code: types.string(),
|
|
206
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
207
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
208
|
+
body$: z.string(),
|
|
209
|
+
}),
|
|
210
|
+
z.transform((v) => {
|
|
211
|
+
return new CheckoutCreateSessionConflictError(v, {
|
|
212
|
+
request: v.request$,
|
|
213
|
+
response: v.response$,
|
|
214
|
+
body: v.body$,
|
|
215
|
+
});
|
|
216
|
+
}),
|
|
217
|
+
);
|
|
218
|
+
|
|
219
|
+
/** @internal */
|
|
220
|
+
export const CheckoutCreateSessionForbiddenError$inboundSchema: z.ZodMiniType<
|
|
221
|
+
CheckoutCreateSessionForbiddenError,
|
|
222
|
+
unknown
|
|
223
|
+
> = z.pipe(
|
|
224
|
+
z.object({
|
|
225
|
+
error: types.string(),
|
|
226
|
+
code: types.string(),
|
|
227
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
228
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
229
|
+
body$: z.string(),
|
|
230
|
+
}),
|
|
231
|
+
z.transform((v) => {
|
|
232
|
+
return new CheckoutCreateSessionForbiddenError(v, {
|
|
233
|
+
request: v.request$,
|
|
234
|
+
response: v.response$,
|
|
235
|
+
body: v.body$,
|
|
236
|
+
});
|
|
237
|
+
}),
|
|
238
|
+
);
|
|
239
|
+
|
|
240
|
+
/** @internal */
|
|
241
|
+
export const CheckoutCreateSessionUnauthorizedError$inboundSchema:
|
|
242
|
+
z.ZodMiniType<CheckoutCreateSessionUnauthorizedError, unknown> = z.pipe(
|
|
243
|
+
z.object({
|
|
244
|
+
error: types.string(),
|
|
245
|
+
code: types.string(),
|
|
246
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
247
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
248
|
+
body$: z.string(),
|
|
249
|
+
}),
|
|
250
|
+
z.transform((v) => {
|
|
251
|
+
return new CheckoutCreateSessionUnauthorizedError(v, {
|
|
252
|
+
request: v.request$,
|
|
253
|
+
response: v.response$,
|
|
254
|
+
body: v.body$,
|
|
255
|
+
});
|
|
256
|
+
}),
|
|
257
|
+
);
|
|
258
|
+
|
|
259
|
+
/** @internal */
|
|
260
|
+
export const CheckoutCreateSessionBadRequestError$inboundSchema: z.ZodMiniType<
|
|
261
|
+
CheckoutCreateSessionBadRequestError,
|
|
262
|
+
unknown
|
|
263
|
+
> = z.pipe(
|
|
264
|
+
z.object({
|
|
265
|
+
error: types.string(),
|
|
266
|
+
code: types.string(),
|
|
267
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
268
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
269
|
+
body$: z.string(),
|
|
270
|
+
}),
|
|
271
|
+
z.transform((v) => {
|
|
272
|
+
return new CheckoutCreateSessionBadRequestError(v, {
|
|
273
|
+
request: v.request$,
|
|
274
|
+
response: v.response$,
|
|
275
|
+
body: v.body$,
|
|
276
|
+
});
|
|
277
|
+
}),
|
|
278
|
+
);
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import * as types from "../../types/primitives.js";
|
|
7
|
+
import { QuickshopsError } from "./quickshops-error.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Response for status 429
|
|
11
|
+
*/
|
|
12
|
+
export type HealthCheckTooManyRequestsErrorData = {
|
|
13
|
+
error: string;
|
|
14
|
+
code: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Response for status 429
|
|
19
|
+
*/
|
|
20
|
+
export class HealthCheckTooManyRequestsError extends QuickshopsError {
|
|
21
|
+
error: string;
|
|
22
|
+
code: string;
|
|
23
|
+
|
|
24
|
+
/** The original data that was passed to this error instance. */
|
|
25
|
+
data$: HealthCheckTooManyRequestsErrorData;
|
|
26
|
+
|
|
27
|
+
constructor(
|
|
28
|
+
err: HealthCheckTooManyRequestsErrorData,
|
|
29
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
30
|
+
) {
|
|
31
|
+
const message = "message" in err && typeof err.message === "string"
|
|
32
|
+
? err.message
|
|
33
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
34
|
+
super(message, httpMeta);
|
|
35
|
+
this.data$ = err;
|
|
36
|
+
this.error = err.error;
|
|
37
|
+
this.code = err.code;
|
|
38
|
+
|
|
39
|
+
this.name = "HealthCheckTooManyRequestsError";
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Response for status 403
|
|
45
|
+
*/
|
|
46
|
+
export type HealthCheckForbiddenErrorData = {
|
|
47
|
+
error: string;
|
|
48
|
+
code: string;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Response for status 403
|
|
53
|
+
*/
|
|
54
|
+
export class HealthCheckForbiddenError extends QuickshopsError {
|
|
55
|
+
error: string;
|
|
56
|
+
code: string;
|
|
57
|
+
|
|
58
|
+
/** The original data that was passed to this error instance. */
|
|
59
|
+
data$: HealthCheckForbiddenErrorData;
|
|
60
|
+
|
|
61
|
+
constructor(
|
|
62
|
+
err: HealthCheckForbiddenErrorData,
|
|
63
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
64
|
+
) {
|
|
65
|
+
const message = "message" in err && typeof err.message === "string"
|
|
66
|
+
? err.message
|
|
67
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
68
|
+
super(message, httpMeta);
|
|
69
|
+
this.data$ = err;
|
|
70
|
+
this.error = err.error;
|
|
71
|
+
this.code = err.code;
|
|
72
|
+
|
|
73
|
+
this.name = "HealthCheckForbiddenError";
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Response for status 401
|
|
79
|
+
*/
|
|
80
|
+
export type HealthCheckUnauthorizedErrorData = {
|
|
81
|
+
error: string;
|
|
82
|
+
code: string;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Response for status 401
|
|
87
|
+
*/
|
|
88
|
+
export class HealthCheckUnauthorizedError extends QuickshopsError {
|
|
89
|
+
error: string;
|
|
90
|
+
code: string;
|
|
91
|
+
|
|
92
|
+
/** The original data that was passed to this error instance. */
|
|
93
|
+
data$: HealthCheckUnauthorizedErrorData;
|
|
94
|
+
|
|
95
|
+
constructor(
|
|
96
|
+
err: HealthCheckUnauthorizedErrorData,
|
|
97
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
98
|
+
) {
|
|
99
|
+
const message = "message" in err && typeof err.message === "string"
|
|
100
|
+
? err.message
|
|
101
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
102
|
+
super(message, httpMeta);
|
|
103
|
+
this.data$ = err;
|
|
104
|
+
this.error = err.error;
|
|
105
|
+
this.code = err.code;
|
|
106
|
+
|
|
107
|
+
this.name = "HealthCheckUnauthorizedError";
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/** @internal */
|
|
112
|
+
export const HealthCheckTooManyRequestsError$inboundSchema: z.ZodMiniType<
|
|
113
|
+
HealthCheckTooManyRequestsError,
|
|
114
|
+
unknown
|
|
115
|
+
> = z.pipe(
|
|
116
|
+
z.object({
|
|
117
|
+
error: types.string(),
|
|
118
|
+
code: types.string(),
|
|
119
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
120
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
121
|
+
body$: z.string(),
|
|
122
|
+
}),
|
|
123
|
+
z.transform((v) => {
|
|
124
|
+
return new HealthCheckTooManyRequestsError(v, {
|
|
125
|
+
request: v.request$,
|
|
126
|
+
response: v.response$,
|
|
127
|
+
body: v.body$,
|
|
128
|
+
});
|
|
129
|
+
}),
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
/** @internal */
|
|
133
|
+
export const HealthCheckForbiddenError$inboundSchema: z.ZodMiniType<
|
|
134
|
+
HealthCheckForbiddenError,
|
|
135
|
+
unknown
|
|
136
|
+
> = z.pipe(
|
|
137
|
+
z.object({
|
|
138
|
+
error: types.string(),
|
|
139
|
+
code: types.string(),
|
|
140
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
141
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
142
|
+
body$: z.string(),
|
|
143
|
+
}),
|
|
144
|
+
z.transform((v) => {
|
|
145
|
+
return new HealthCheckForbiddenError(v, {
|
|
146
|
+
request: v.request$,
|
|
147
|
+
response: v.response$,
|
|
148
|
+
body: v.body$,
|
|
149
|
+
});
|
|
150
|
+
}),
|
|
151
|
+
);
|
|
152
|
+
|
|
153
|
+
/** @internal */
|
|
154
|
+
export const HealthCheckUnauthorizedError$inboundSchema: z.ZodMiniType<
|
|
155
|
+
HealthCheckUnauthorizedError,
|
|
156
|
+
unknown
|
|
157
|
+
> = z.pipe(
|
|
158
|
+
z.object({
|
|
159
|
+
error: types.string(),
|
|
160
|
+
code: types.string(),
|
|
161
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
162
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
163
|
+
body$: z.string(),
|
|
164
|
+
}),
|
|
165
|
+
z.transform((v) => {
|
|
166
|
+
return new HealthCheckUnauthorizedError(v, {
|
|
167
|
+
request: v.request$,
|
|
168
|
+
response: v.response$,
|
|
169
|
+
body: v.body$,
|
|
170
|
+
});
|
|
171
|
+
}),
|
|
172
|
+
);
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Base class for all HTTP errors.
|
|
7
|
+
*/
|
|
8
|
+
export class HTTPClientError extends Error {
|
|
9
|
+
/** The underlying cause of the error. */
|
|
10
|
+
override readonly cause: unknown;
|
|
11
|
+
override name = "HTTPClientError";
|
|
12
|
+
constructor(message: string, opts?: { cause?: unknown }) {
|
|
13
|
+
let msg = message;
|
|
14
|
+
if (opts?.cause) {
|
|
15
|
+
msg += `: ${opts.cause}`;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
super(msg, opts);
|
|
19
|
+
// In older runtimes, the cause field would not have been assigned through
|
|
20
|
+
// the super() call.
|
|
21
|
+
if (typeof this.cause === "undefined") {
|
|
22
|
+
this.cause = opts?.cause;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* An error to capture unrecognised or unexpected errors when making HTTP calls.
|
|
29
|
+
*/
|
|
30
|
+
export class UnexpectedClientError extends HTTPClientError {
|
|
31
|
+
override name = "UnexpectedClientError";
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* An error that is raised when any inputs used to create a request are invalid.
|
|
36
|
+
*/
|
|
37
|
+
export class InvalidRequestError extends HTTPClientError {
|
|
38
|
+
override name = "InvalidRequestError";
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* An error that is raised when a HTTP request was aborted by the client error.
|
|
43
|
+
*/
|
|
44
|
+
export class RequestAbortedError extends HTTPClientError {
|
|
45
|
+
override readonly name = "RequestAbortedError";
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* An error that is raised when a HTTP request timed out due to an AbortSignal
|
|
50
|
+
* signal timeout.
|
|
51
|
+
*/
|
|
52
|
+
export class RequestTimeoutError extends HTTPClientError {
|
|
53
|
+
override readonly name = "RequestTimeoutError";
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* An error that is raised when a HTTP client is unable to make a request to
|
|
58
|
+
* a server.
|
|
59
|
+
*/
|
|
60
|
+
export class ConnectionError extends HTTPClientError {
|
|
61
|
+
override readonly name = "ConnectionError";
|
|
62
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export * from "./cart-add-line.js";
|
|
6
|
+
export * from "./cart-clear.js";
|
|
7
|
+
export * from "./cart-create.js";
|
|
8
|
+
export * from "./cart-get.js";
|
|
9
|
+
export * from "./cart-remove-line.js";
|
|
10
|
+
export * from "./cart-update-line.js";
|
|
11
|
+
export * from "./checkout-create-session.js";
|
|
12
|
+
export * from "./health-check.js";
|
|
13
|
+
export * from "./http-client-errors.js";
|
|
14
|
+
export * from "./products-get-all.js";
|
|
15
|
+
export * from "./products-get-by-id.js";
|
|
16
|
+
export * from "./quickshops-default-error.js";
|
|
17
|
+
export * from "./quickshops-error.js";
|
|
18
|
+
export * from "./response-validation-error.js";
|
|
19
|
+
export * from "./sdk-validation-error.js";
|
|
20
|
+
export * from "./store-get.js";
|
|
21
|
+
export * from "./subscription-create-portal-session.js";
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import * as types from "../../types/primitives.js";
|
|
7
|
+
import { QuickshopsError } from "./quickshops-error.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Response for status 429
|
|
11
|
+
*/
|
|
12
|
+
export type ProductsGetAllTooManyRequestsErrorData = {
|
|
13
|
+
error: string;
|
|
14
|
+
code: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Response for status 429
|
|
19
|
+
*/
|
|
20
|
+
export class ProductsGetAllTooManyRequestsError extends QuickshopsError {
|
|
21
|
+
error: string;
|
|
22
|
+
code: string;
|
|
23
|
+
|
|
24
|
+
/** The original data that was passed to this error instance. */
|
|
25
|
+
data$: ProductsGetAllTooManyRequestsErrorData;
|
|
26
|
+
|
|
27
|
+
constructor(
|
|
28
|
+
err: ProductsGetAllTooManyRequestsErrorData,
|
|
29
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
30
|
+
) {
|
|
31
|
+
const message = "message" in err && typeof err.message === "string"
|
|
32
|
+
? err.message
|
|
33
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
34
|
+
super(message, httpMeta);
|
|
35
|
+
this.data$ = err;
|
|
36
|
+
this.error = err.error;
|
|
37
|
+
this.code = err.code;
|
|
38
|
+
|
|
39
|
+
this.name = "ProductsGetAllTooManyRequestsError";
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Response for status 403
|
|
45
|
+
*/
|
|
46
|
+
export type ProductsGetAllForbiddenErrorData = {
|
|
47
|
+
error: string;
|
|
48
|
+
code: string;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Response for status 403
|
|
53
|
+
*/
|
|
54
|
+
export class ProductsGetAllForbiddenError extends QuickshopsError {
|
|
55
|
+
error: string;
|
|
56
|
+
code: string;
|
|
57
|
+
|
|
58
|
+
/** The original data that was passed to this error instance. */
|
|
59
|
+
data$: ProductsGetAllForbiddenErrorData;
|
|
60
|
+
|
|
61
|
+
constructor(
|
|
62
|
+
err: ProductsGetAllForbiddenErrorData,
|
|
63
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
64
|
+
) {
|
|
65
|
+
const message = "message" in err && typeof err.message === "string"
|
|
66
|
+
? err.message
|
|
67
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
68
|
+
super(message, httpMeta);
|
|
69
|
+
this.data$ = err;
|
|
70
|
+
this.error = err.error;
|
|
71
|
+
this.code = err.code;
|
|
72
|
+
|
|
73
|
+
this.name = "ProductsGetAllForbiddenError";
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Response for status 401
|
|
79
|
+
*/
|
|
80
|
+
export type ProductsGetAllUnauthorizedErrorData = {
|
|
81
|
+
error: string;
|
|
82
|
+
code: string;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Response for status 401
|
|
87
|
+
*/
|
|
88
|
+
export class ProductsGetAllUnauthorizedError extends QuickshopsError {
|
|
89
|
+
error: string;
|
|
90
|
+
code: string;
|
|
91
|
+
|
|
92
|
+
/** The original data that was passed to this error instance. */
|
|
93
|
+
data$: ProductsGetAllUnauthorizedErrorData;
|
|
94
|
+
|
|
95
|
+
constructor(
|
|
96
|
+
err: ProductsGetAllUnauthorizedErrorData,
|
|
97
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
98
|
+
) {
|
|
99
|
+
const message = "message" in err && typeof err.message === "string"
|
|
100
|
+
? err.message
|
|
101
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
102
|
+
super(message, httpMeta);
|
|
103
|
+
this.data$ = err;
|
|
104
|
+
this.error = err.error;
|
|
105
|
+
this.code = err.code;
|
|
106
|
+
|
|
107
|
+
this.name = "ProductsGetAllUnauthorizedError";
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/** @internal */
|
|
112
|
+
export const ProductsGetAllTooManyRequestsError$inboundSchema: z.ZodMiniType<
|
|
113
|
+
ProductsGetAllTooManyRequestsError,
|
|
114
|
+
unknown
|
|
115
|
+
> = z.pipe(
|
|
116
|
+
z.object({
|
|
117
|
+
error: types.string(),
|
|
118
|
+
code: types.string(),
|
|
119
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
120
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
121
|
+
body$: z.string(),
|
|
122
|
+
}),
|
|
123
|
+
z.transform((v) => {
|
|
124
|
+
return new ProductsGetAllTooManyRequestsError(v, {
|
|
125
|
+
request: v.request$,
|
|
126
|
+
response: v.response$,
|
|
127
|
+
body: v.body$,
|
|
128
|
+
});
|
|
129
|
+
}),
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
/** @internal */
|
|
133
|
+
export const ProductsGetAllForbiddenError$inboundSchema: z.ZodMiniType<
|
|
134
|
+
ProductsGetAllForbiddenError,
|
|
135
|
+
unknown
|
|
136
|
+
> = z.pipe(
|
|
137
|
+
z.object({
|
|
138
|
+
error: types.string(),
|
|
139
|
+
code: types.string(),
|
|
140
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
141
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
142
|
+
body$: z.string(),
|
|
143
|
+
}),
|
|
144
|
+
z.transform((v) => {
|
|
145
|
+
return new ProductsGetAllForbiddenError(v, {
|
|
146
|
+
request: v.request$,
|
|
147
|
+
response: v.response$,
|
|
148
|
+
body: v.body$,
|
|
149
|
+
});
|
|
150
|
+
}),
|
|
151
|
+
);
|
|
152
|
+
|
|
153
|
+
/** @internal */
|
|
154
|
+
export const ProductsGetAllUnauthorizedError$inboundSchema: z.ZodMiniType<
|
|
155
|
+
ProductsGetAllUnauthorizedError,
|
|
156
|
+
unknown
|
|
157
|
+
> = z.pipe(
|
|
158
|
+
z.object({
|
|
159
|
+
error: types.string(),
|
|
160
|
+
code: types.string(),
|
|
161
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
162
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
163
|
+
body$: z.string(),
|
|
164
|
+
}),
|
|
165
|
+
z.transform((v) => {
|
|
166
|
+
return new ProductsGetAllUnauthorizedError(v, {
|
|
167
|
+
request: v.request$,
|
|
168
|
+
response: v.response$,
|
|
169
|
+
body: v.body$,
|
|
170
|
+
});
|
|
171
|
+
}),
|
|
172
|
+
);
|