@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,286 @@
|
|
|
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 SubscriptionCreatePortalSessionTooManyRequestsErrorData = {
|
|
13
|
+
error: string;
|
|
14
|
+
code: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Response for status 429
|
|
19
|
+
*/
|
|
20
|
+
export class SubscriptionCreatePortalSessionTooManyRequestsError
|
|
21
|
+
extends QuickshopsError
|
|
22
|
+
{
|
|
23
|
+
error: string;
|
|
24
|
+
code: string;
|
|
25
|
+
|
|
26
|
+
/** The original data that was passed to this error instance. */
|
|
27
|
+
data$: SubscriptionCreatePortalSessionTooManyRequestsErrorData;
|
|
28
|
+
|
|
29
|
+
constructor(
|
|
30
|
+
err: SubscriptionCreatePortalSessionTooManyRequestsErrorData,
|
|
31
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
32
|
+
) {
|
|
33
|
+
const message = "message" in err && typeof err.message === "string"
|
|
34
|
+
? err.message
|
|
35
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
36
|
+
super(message, httpMeta);
|
|
37
|
+
this.data$ = err;
|
|
38
|
+
this.error = err.error;
|
|
39
|
+
this.code = err.code;
|
|
40
|
+
|
|
41
|
+
this.name = "SubscriptionCreatePortalSessionTooManyRequestsError";
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Response for status 409
|
|
47
|
+
*/
|
|
48
|
+
export type SubscriptionCreatePortalSessionConflictErrorData = {
|
|
49
|
+
error: string;
|
|
50
|
+
code: string;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Response for status 409
|
|
55
|
+
*/
|
|
56
|
+
export class SubscriptionCreatePortalSessionConflictError
|
|
57
|
+
extends QuickshopsError
|
|
58
|
+
{
|
|
59
|
+
error: string;
|
|
60
|
+
code: string;
|
|
61
|
+
|
|
62
|
+
/** The original data that was passed to this error instance. */
|
|
63
|
+
data$: SubscriptionCreatePortalSessionConflictErrorData;
|
|
64
|
+
|
|
65
|
+
constructor(
|
|
66
|
+
err: SubscriptionCreatePortalSessionConflictErrorData,
|
|
67
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
68
|
+
) {
|
|
69
|
+
const message = "message" in err && typeof err.message === "string"
|
|
70
|
+
? err.message
|
|
71
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
72
|
+
super(message, httpMeta);
|
|
73
|
+
this.data$ = err;
|
|
74
|
+
this.error = err.error;
|
|
75
|
+
this.code = err.code;
|
|
76
|
+
|
|
77
|
+
this.name = "SubscriptionCreatePortalSessionConflictError";
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Response for status 403
|
|
83
|
+
*/
|
|
84
|
+
export type SubscriptionCreatePortalSessionForbiddenErrorData = {
|
|
85
|
+
error: string;
|
|
86
|
+
code: string;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Response for status 403
|
|
91
|
+
*/
|
|
92
|
+
export class SubscriptionCreatePortalSessionForbiddenError
|
|
93
|
+
extends QuickshopsError
|
|
94
|
+
{
|
|
95
|
+
error: string;
|
|
96
|
+
code: string;
|
|
97
|
+
|
|
98
|
+
/** The original data that was passed to this error instance. */
|
|
99
|
+
data$: SubscriptionCreatePortalSessionForbiddenErrorData;
|
|
100
|
+
|
|
101
|
+
constructor(
|
|
102
|
+
err: SubscriptionCreatePortalSessionForbiddenErrorData,
|
|
103
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
104
|
+
) {
|
|
105
|
+
const message = "message" in err && typeof err.message === "string"
|
|
106
|
+
? err.message
|
|
107
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
108
|
+
super(message, httpMeta);
|
|
109
|
+
this.data$ = err;
|
|
110
|
+
this.error = err.error;
|
|
111
|
+
this.code = err.code;
|
|
112
|
+
|
|
113
|
+
this.name = "SubscriptionCreatePortalSessionForbiddenError";
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Response for status 401
|
|
119
|
+
*/
|
|
120
|
+
export type SubscriptionCreatePortalSessionUnauthorizedErrorData = {
|
|
121
|
+
error: string;
|
|
122
|
+
code: string;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Response for status 401
|
|
127
|
+
*/
|
|
128
|
+
export class SubscriptionCreatePortalSessionUnauthorizedError
|
|
129
|
+
extends QuickshopsError
|
|
130
|
+
{
|
|
131
|
+
error: string;
|
|
132
|
+
code: string;
|
|
133
|
+
|
|
134
|
+
/** The original data that was passed to this error instance. */
|
|
135
|
+
data$: SubscriptionCreatePortalSessionUnauthorizedErrorData;
|
|
136
|
+
|
|
137
|
+
constructor(
|
|
138
|
+
err: SubscriptionCreatePortalSessionUnauthorizedErrorData,
|
|
139
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
140
|
+
) {
|
|
141
|
+
const message = "message" in err && typeof err.message === "string"
|
|
142
|
+
? err.message
|
|
143
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
144
|
+
super(message, httpMeta);
|
|
145
|
+
this.data$ = err;
|
|
146
|
+
this.error = err.error;
|
|
147
|
+
this.code = err.code;
|
|
148
|
+
|
|
149
|
+
this.name = "SubscriptionCreatePortalSessionUnauthorizedError";
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Response for status 400
|
|
155
|
+
*/
|
|
156
|
+
export type SubscriptionCreatePortalSessionBadRequestErrorData = {
|
|
157
|
+
error: string;
|
|
158
|
+
code: string;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Response for status 400
|
|
163
|
+
*/
|
|
164
|
+
export class SubscriptionCreatePortalSessionBadRequestError
|
|
165
|
+
extends QuickshopsError
|
|
166
|
+
{
|
|
167
|
+
error: string;
|
|
168
|
+
code: string;
|
|
169
|
+
|
|
170
|
+
/** The original data that was passed to this error instance. */
|
|
171
|
+
data$: SubscriptionCreatePortalSessionBadRequestErrorData;
|
|
172
|
+
|
|
173
|
+
constructor(
|
|
174
|
+
err: SubscriptionCreatePortalSessionBadRequestErrorData,
|
|
175
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
176
|
+
) {
|
|
177
|
+
const message = "message" in err && typeof err.message === "string"
|
|
178
|
+
? err.message
|
|
179
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
180
|
+
super(message, httpMeta);
|
|
181
|
+
this.data$ = err;
|
|
182
|
+
this.error = err.error;
|
|
183
|
+
this.code = err.code;
|
|
184
|
+
|
|
185
|
+
this.name = "SubscriptionCreatePortalSessionBadRequestError";
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/** @internal */
|
|
190
|
+
export const SubscriptionCreatePortalSessionTooManyRequestsError$inboundSchema:
|
|
191
|
+
z.ZodMiniType<SubscriptionCreatePortalSessionTooManyRequestsError, unknown> =
|
|
192
|
+
z.pipe(
|
|
193
|
+
z.object({
|
|
194
|
+
error: types.string(),
|
|
195
|
+
code: types.string(),
|
|
196
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
197
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
198
|
+
body$: z.string(),
|
|
199
|
+
}),
|
|
200
|
+
z.transform((v) => {
|
|
201
|
+
return new SubscriptionCreatePortalSessionTooManyRequestsError(v, {
|
|
202
|
+
request: v.request$,
|
|
203
|
+
response: v.response$,
|
|
204
|
+
body: v.body$,
|
|
205
|
+
});
|
|
206
|
+
}),
|
|
207
|
+
);
|
|
208
|
+
|
|
209
|
+
/** @internal */
|
|
210
|
+
export const SubscriptionCreatePortalSessionConflictError$inboundSchema:
|
|
211
|
+
z.ZodMiniType<SubscriptionCreatePortalSessionConflictError, unknown> = z.pipe(
|
|
212
|
+
z.object({
|
|
213
|
+
error: types.string(),
|
|
214
|
+
code: types.string(),
|
|
215
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
216
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
217
|
+
body$: z.string(),
|
|
218
|
+
}),
|
|
219
|
+
z.transform((v) => {
|
|
220
|
+
return new SubscriptionCreatePortalSessionConflictError(v, {
|
|
221
|
+
request: v.request$,
|
|
222
|
+
response: v.response$,
|
|
223
|
+
body: v.body$,
|
|
224
|
+
});
|
|
225
|
+
}),
|
|
226
|
+
);
|
|
227
|
+
|
|
228
|
+
/** @internal */
|
|
229
|
+
export const SubscriptionCreatePortalSessionForbiddenError$inboundSchema:
|
|
230
|
+
z.ZodMiniType<SubscriptionCreatePortalSessionForbiddenError, unknown> = z
|
|
231
|
+
.pipe(
|
|
232
|
+
z.object({
|
|
233
|
+
error: types.string(),
|
|
234
|
+
code: types.string(),
|
|
235
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
236
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
237
|
+
body$: z.string(),
|
|
238
|
+
}),
|
|
239
|
+
z.transform((v) => {
|
|
240
|
+
return new SubscriptionCreatePortalSessionForbiddenError(v, {
|
|
241
|
+
request: v.request$,
|
|
242
|
+
response: v.response$,
|
|
243
|
+
body: v.body$,
|
|
244
|
+
});
|
|
245
|
+
}),
|
|
246
|
+
);
|
|
247
|
+
|
|
248
|
+
/** @internal */
|
|
249
|
+
export const SubscriptionCreatePortalSessionUnauthorizedError$inboundSchema:
|
|
250
|
+
z.ZodMiniType<SubscriptionCreatePortalSessionUnauthorizedError, unknown> = z
|
|
251
|
+
.pipe(
|
|
252
|
+
z.object({
|
|
253
|
+
error: types.string(),
|
|
254
|
+
code: types.string(),
|
|
255
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
256
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
257
|
+
body$: z.string(),
|
|
258
|
+
}),
|
|
259
|
+
z.transform((v) => {
|
|
260
|
+
return new SubscriptionCreatePortalSessionUnauthorizedError(v, {
|
|
261
|
+
request: v.request$,
|
|
262
|
+
response: v.response$,
|
|
263
|
+
body: v.body$,
|
|
264
|
+
});
|
|
265
|
+
}),
|
|
266
|
+
);
|
|
267
|
+
|
|
268
|
+
/** @internal */
|
|
269
|
+
export const SubscriptionCreatePortalSessionBadRequestError$inboundSchema:
|
|
270
|
+
z.ZodMiniType<SubscriptionCreatePortalSessionBadRequestError, unknown> = z
|
|
271
|
+
.pipe(
|
|
272
|
+
z.object({
|
|
273
|
+
error: types.string(),
|
|
274
|
+
code: types.string(),
|
|
275
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
276
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
277
|
+
body$: z.string(),
|
|
278
|
+
}),
|
|
279
|
+
z.transform((v) => {
|
|
280
|
+
return new SubscriptionCreatePortalSessionBadRequestError(v, {
|
|
281
|
+
request: v.request$,
|
|
282
|
+
response: v.response$,
|
|
283
|
+
body: v.body$,
|
|
284
|
+
});
|
|
285
|
+
}),
|
|
286
|
+
);
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
10
|
+
|
|
11
|
+
export type CartAddLineRequestBody = {
|
|
12
|
+
productId: string;
|
|
13
|
+
quantity: number;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type CartAddLineRequest = {
|
|
17
|
+
cartId: string;
|
|
18
|
+
body: CartAddLineRequestBody;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export type CartAddLineLine = {
|
|
22
|
+
productId: string;
|
|
23
|
+
quantity: number;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export type CartAddLineTotals = {
|
|
27
|
+
subtotal: number;
|
|
28
|
+
total: number;
|
|
29
|
+
currency: string;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export type CartAddLineData = {
|
|
33
|
+
id: string;
|
|
34
|
+
storeId: string;
|
|
35
|
+
lines: Array<CartAddLineLine>;
|
|
36
|
+
totals: CartAddLineTotals;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Response for status 200
|
|
41
|
+
*/
|
|
42
|
+
export type CartAddLineResponse = {
|
|
43
|
+
data: CartAddLineData;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export type CartAddLineRequestBody$Outbound = {
|
|
48
|
+
productId: string;
|
|
49
|
+
quantity: number;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const CartAddLineRequestBody$outboundSchema: z.ZodMiniType<
|
|
54
|
+
CartAddLineRequestBody$Outbound,
|
|
55
|
+
CartAddLineRequestBody
|
|
56
|
+
> = z.object({
|
|
57
|
+
productId: z.string(),
|
|
58
|
+
quantity: z.number(),
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
export function cartAddLineRequestBodyToJSON(
|
|
62
|
+
cartAddLineRequestBody: CartAddLineRequestBody,
|
|
63
|
+
): string {
|
|
64
|
+
return JSON.stringify(
|
|
65
|
+
CartAddLineRequestBody$outboundSchema.parse(cartAddLineRequestBody),
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** @internal */
|
|
70
|
+
export type CartAddLineRequest$Outbound = {
|
|
71
|
+
cartId: string;
|
|
72
|
+
body: CartAddLineRequestBody$Outbound;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const CartAddLineRequest$outboundSchema: z.ZodMiniType<
|
|
77
|
+
CartAddLineRequest$Outbound,
|
|
78
|
+
CartAddLineRequest
|
|
79
|
+
> = z.object({
|
|
80
|
+
cartId: z.string(),
|
|
81
|
+
body: z.lazy(() => CartAddLineRequestBody$outboundSchema),
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
export function cartAddLineRequestToJSON(
|
|
85
|
+
cartAddLineRequest: CartAddLineRequest,
|
|
86
|
+
): string {
|
|
87
|
+
return JSON.stringify(
|
|
88
|
+
CartAddLineRequest$outboundSchema.parse(cartAddLineRequest),
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/** @internal */
|
|
93
|
+
export const CartAddLineLine$inboundSchema: z.ZodMiniType<
|
|
94
|
+
CartAddLineLine,
|
|
95
|
+
unknown
|
|
96
|
+
> = z.object({
|
|
97
|
+
productId: types.string(),
|
|
98
|
+
quantity: types.number(),
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
export function cartAddLineLineFromJSON(
|
|
102
|
+
jsonString: string,
|
|
103
|
+
): SafeParseResult<CartAddLineLine, SDKValidationError> {
|
|
104
|
+
return safeParse(
|
|
105
|
+
jsonString,
|
|
106
|
+
(x) => CartAddLineLine$inboundSchema.parse(JSON.parse(x)),
|
|
107
|
+
`Failed to parse 'CartAddLineLine' from JSON`,
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/** @internal */
|
|
112
|
+
export const CartAddLineTotals$inboundSchema: z.ZodMiniType<
|
|
113
|
+
CartAddLineTotals,
|
|
114
|
+
unknown
|
|
115
|
+
> = z.object({
|
|
116
|
+
subtotal: types.number(),
|
|
117
|
+
total: types.number(),
|
|
118
|
+
currency: types.string(),
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
export function cartAddLineTotalsFromJSON(
|
|
122
|
+
jsonString: string,
|
|
123
|
+
): SafeParseResult<CartAddLineTotals, SDKValidationError> {
|
|
124
|
+
return safeParse(
|
|
125
|
+
jsonString,
|
|
126
|
+
(x) => CartAddLineTotals$inboundSchema.parse(JSON.parse(x)),
|
|
127
|
+
`Failed to parse 'CartAddLineTotals' from JSON`,
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/** @internal */
|
|
132
|
+
export const CartAddLineData$inboundSchema: z.ZodMiniType<
|
|
133
|
+
CartAddLineData,
|
|
134
|
+
unknown
|
|
135
|
+
> = z.object({
|
|
136
|
+
id: types.string(),
|
|
137
|
+
storeId: types.string(),
|
|
138
|
+
lines: z.array(z.lazy(() => CartAddLineLine$inboundSchema)),
|
|
139
|
+
totals: z.lazy(() => CartAddLineTotals$inboundSchema),
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
export function cartAddLineDataFromJSON(
|
|
143
|
+
jsonString: string,
|
|
144
|
+
): SafeParseResult<CartAddLineData, SDKValidationError> {
|
|
145
|
+
return safeParse(
|
|
146
|
+
jsonString,
|
|
147
|
+
(x) => CartAddLineData$inboundSchema.parse(JSON.parse(x)),
|
|
148
|
+
`Failed to parse 'CartAddLineData' from JSON`,
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/** @internal */
|
|
153
|
+
export const CartAddLineResponse$inboundSchema: z.ZodMiniType<
|
|
154
|
+
CartAddLineResponse,
|
|
155
|
+
unknown
|
|
156
|
+
> = z.object({
|
|
157
|
+
data: z.lazy(() => CartAddLineData$inboundSchema),
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
export function cartAddLineResponseFromJSON(
|
|
161
|
+
jsonString: string,
|
|
162
|
+
): SafeParseResult<CartAddLineResponse, SDKValidationError> {
|
|
163
|
+
return safeParse(
|
|
164
|
+
jsonString,
|
|
165
|
+
(x) => CartAddLineResponse$inboundSchema.parse(JSON.parse(x)),
|
|
166
|
+
`Failed to parse 'CartAddLineResponse' from JSON`,
|
|
167
|
+
);
|
|
168
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
10
|
+
|
|
11
|
+
export type CartClearRequest = {
|
|
12
|
+
cartId: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type CartClearLine = {
|
|
16
|
+
productId: string;
|
|
17
|
+
quantity: number;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export type CartClearTotals = {
|
|
21
|
+
subtotal: number;
|
|
22
|
+
total: number;
|
|
23
|
+
currency: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export type CartClearData = {
|
|
27
|
+
id: string;
|
|
28
|
+
storeId: string;
|
|
29
|
+
lines: Array<CartClearLine>;
|
|
30
|
+
totals: CartClearTotals;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Response for status 200
|
|
35
|
+
*/
|
|
36
|
+
export type CartClearResponse = {
|
|
37
|
+
data: CartClearData;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export type CartClearRequest$Outbound = {
|
|
42
|
+
cartId: string;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const CartClearRequest$outboundSchema: z.ZodMiniType<
|
|
47
|
+
CartClearRequest$Outbound,
|
|
48
|
+
CartClearRequest
|
|
49
|
+
> = z.object({
|
|
50
|
+
cartId: z.string(),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export function cartClearRequestToJSON(
|
|
54
|
+
cartClearRequest: CartClearRequest,
|
|
55
|
+
): string {
|
|
56
|
+
return JSON.stringify(
|
|
57
|
+
CartClearRequest$outboundSchema.parse(cartClearRequest),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const CartClearLine$inboundSchema: z.ZodMiniType<
|
|
63
|
+
CartClearLine,
|
|
64
|
+
unknown
|
|
65
|
+
> = z.object({
|
|
66
|
+
productId: types.string(),
|
|
67
|
+
quantity: types.number(),
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
export function cartClearLineFromJSON(
|
|
71
|
+
jsonString: string,
|
|
72
|
+
): SafeParseResult<CartClearLine, SDKValidationError> {
|
|
73
|
+
return safeParse(
|
|
74
|
+
jsonString,
|
|
75
|
+
(x) => CartClearLine$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
+
`Failed to parse 'CartClearLine' from JSON`,
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const CartClearTotals$inboundSchema: z.ZodMiniType<
|
|
82
|
+
CartClearTotals,
|
|
83
|
+
unknown
|
|
84
|
+
> = z.object({
|
|
85
|
+
subtotal: types.number(),
|
|
86
|
+
total: types.number(),
|
|
87
|
+
currency: types.string(),
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
export function cartClearTotalsFromJSON(
|
|
91
|
+
jsonString: string,
|
|
92
|
+
): SafeParseResult<CartClearTotals, SDKValidationError> {
|
|
93
|
+
return safeParse(
|
|
94
|
+
jsonString,
|
|
95
|
+
(x) => CartClearTotals$inboundSchema.parse(JSON.parse(x)),
|
|
96
|
+
`Failed to parse 'CartClearTotals' from JSON`,
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/** @internal */
|
|
101
|
+
export const CartClearData$inboundSchema: z.ZodMiniType<
|
|
102
|
+
CartClearData,
|
|
103
|
+
unknown
|
|
104
|
+
> = z.object({
|
|
105
|
+
id: types.string(),
|
|
106
|
+
storeId: types.string(),
|
|
107
|
+
lines: z.array(z.lazy(() => CartClearLine$inboundSchema)),
|
|
108
|
+
totals: z.lazy(() => CartClearTotals$inboundSchema),
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
export function cartClearDataFromJSON(
|
|
112
|
+
jsonString: string,
|
|
113
|
+
): SafeParseResult<CartClearData, SDKValidationError> {
|
|
114
|
+
return safeParse(
|
|
115
|
+
jsonString,
|
|
116
|
+
(x) => CartClearData$inboundSchema.parse(JSON.parse(x)),
|
|
117
|
+
`Failed to parse 'CartClearData' from JSON`,
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/** @internal */
|
|
122
|
+
export const CartClearResponse$inboundSchema: z.ZodMiniType<
|
|
123
|
+
CartClearResponse,
|
|
124
|
+
unknown
|
|
125
|
+
> = z.object({
|
|
126
|
+
data: z.lazy(() => CartClearData$inboundSchema),
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
export function cartClearResponseFromJSON(
|
|
130
|
+
jsonString: string,
|
|
131
|
+
): SafeParseResult<CartClearResponse, SDKValidationError> {
|
|
132
|
+
return safeParse(
|
|
133
|
+
jsonString,
|
|
134
|
+
(x) => CartClearResponse$inboundSchema.parse(JSON.parse(x)),
|
|
135
|
+
`Failed to parse 'CartClearResponse' from JSON`,
|
|
136
|
+
);
|
|
137
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
10
|
+
|
|
11
|
+
export type CartCreateLine = {
|
|
12
|
+
productId: string;
|
|
13
|
+
quantity: number;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type CartCreateTotals = {
|
|
17
|
+
subtotal: number;
|
|
18
|
+
total: number;
|
|
19
|
+
currency: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export type CartCreateData = {
|
|
23
|
+
id: string;
|
|
24
|
+
storeId: string;
|
|
25
|
+
lines: Array<CartCreateLine>;
|
|
26
|
+
totals: CartCreateTotals;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Response for status 200
|
|
31
|
+
*/
|
|
32
|
+
export type CartCreateResponse = {
|
|
33
|
+
data: CartCreateData;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const CartCreateLine$inboundSchema: z.ZodMiniType<
|
|
38
|
+
CartCreateLine,
|
|
39
|
+
unknown
|
|
40
|
+
> = z.object({
|
|
41
|
+
productId: types.string(),
|
|
42
|
+
quantity: types.number(),
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export function cartCreateLineFromJSON(
|
|
46
|
+
jsonString: string,
|
|
47
|
+
): SafeParseResult<CartCreateLine, SDKValidationError> {
|
|
48
|
+
return safeParse(
|
|
49
|
+
jsonString,
|
|
50
|
+
(x) => CartCreateLine$inboundSchema.parse(JSON.parse(x)),
|
|
51
|
+
`Failed to parse 'CartCreateLine' from JSON`,
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const CartCreateTotals$inboundSchema: z.ZodMiniType<
|
|
57
|
+
CartCreateTotals,
|
|
58
|
+
unknown
|
|
59
|
+
> = z.object({
|
|
60
|
+
subtotal: types.number(),
|
|
61
|
+
total: types.number(),
|
|
62
|
+
currency: types.string(),
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
export function cartCreateTotalsFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<CartCreateTotals, SDKValidationError> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) => CartCreateTotals$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
+
`Failed to parse 'CartCreateTotals' from JSON`,
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const CartCreateData$inboundSchema: z.ZodMiniType<
|
|
77
|
+
CartCreateData,
|
|
78
|
+
unknown
|
|
79
|
+
> = z.object({
|
|
80
|
+
id: types.string(),
|
|
81
|
+
storeId: types.string(),
|
|
82
|
+
lines: z.array(z.lazy(() => CartCreateLine$inboundSchema)),
|
|
83
|
+
totals: z.lazy(() => CartCreateTotals$inboundSchema),
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
export function cartCreateDataFromJSON(
|
|
87
|
+
jsonString: string,
|
|
88
|
+
): SafeParseResult<CartCreateData, SDKValidationError> {
|
|
89
|
+
return safeParse(
|
|
90
|
+
jsonString,
|
|
91
|
+
(x) => CartCreateData$inboundSchema.parse(JSON.parse(x)),
|
|
92
|
+
`Failed to parse 'CartCreateData' from JSON`,
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/** @internal */
|
|
97
|
+
export const CartCreateResponse$inboundSchema: z.ZodMiniType<
|
|
98
|
+
CartCreateResponse,
|
|
99
|
+
unknown
|
|
100
|
+
> = z.object({
|
|
101
|
+
data: z.lazy(() => CartCreateData$inboundSchema),
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
export function cartCreateResponseFromJSON(
|
|
105
|
+
jsonString: string,
|
|
106
|
+
): SafeParseResult<CartCreateResponse, SDKValidationError> {
|
|
107
|
+
return safeParse(
|
|
108
|
+
jsonString,
|
|
109
|
+
(x) => CartCreateResponse$inboundSchema.parse(JSON.parse(x)),
|
|
110
|
+
`Failed to parse 'CartCreateResponse' from JSON`,
|
|
111
|
+
);
|
|
112
|
+
}
|