@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,141 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
10
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
11
|
+
import * as types from "../../types/primitives.js";
|
|
12
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
13
|
+
|
|
14
|
+
export type ProductsGetByIdRequest = {
|
|
15
|
+
productId: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const ProductsGetByIdType = {
|
|
19
|
+
Digital: "digital",
|
|
20
|
+
Subscription: "subscription",
|
|
21
|
+
} as const;
|
|
22
|
+
export type ProductsGetByIdType = OpenEnum<typeof ProductsGetByIdType>;
|
|
23
|
+
|
|
24
|
+
export const ProductsGetByIdBillingInterval = {
|
|
25
|
+
Month: "month",
|
|
26
|
+
Year: "year",
|
|
27
|
+
} as const;
|
|
28
|
+
export type ProductsGetByIdBillingInterval = OpenEnum<
|
|
29
|
+
typeof ProductsGetByIdBillingInterval
|
|
30
|
+
>;
|
|
31
|
+
|
|
32
|
+
export type ProductsGetByIdData = {
|
|
33
|
+
id: string;
|
|
34
|
+
storeId: string;
|
|
35
|
+
name: string;
|
|
36
|
+
description: string | null;
|
|
37
|
+
priceInCents: number;
|
|
38
|
+
currency: string;
|
|
39
|
+
type: ProductsGetByIdType;
|
|
40
|
+
billingInterval: ProductsGetByIdBillingInterval | null;
|
|
41
|
+
imageUrl: string | null;
|
|
42
|
+
isActive: boolean;
|
|
43
|
+
category: string | null;
|
|
44
|
+
details: Array<string> | null;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Response for status 200
|
|
49
|
+
*/
|
|
50
|
+
export type ProductsGetByIdResponse = {
|
|
51
|
+
data: ProductsGetByIdData;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export type ProductsGetByIdRequest$Outbound = {
|
|
56
|
+
productId: string;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export const ProductsGetByIdRequest$outboundSchema: z.ZodMiniType<
|
|
61
|
+
ProductsGetByIdRequest$Outbound,
|
|
62
|
+
ProductsGetByIdRequest
|
|
63
|
+
> = z.object({
|
|
64
|
+
productId: z.string(),
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
export function productsGetByIdRequestToJSON(
|
|
68
|
+
productsGetByIdRequest: ProductsGetByIdRequest,
|
|
69
|
+
): string {
|
|
70
|
+
return JSON.stringify(
|
|
71
|
+
ProductsGetByIdRequest$outboundSchema.parse(productsGetByIdRequest),
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const ProductsGetByIdType$inboundSchema: z.ZodMiniType<
|
|
77
|
+
ProductsGetByIdType,
|
|
78
|
+
unknown
|
|
79
|
+
> = openEnums.inboundSchema(ProductsGetByIdType);
|
|
80
|
+
|
|
81
|
+
/** @internal */
|
|
82
|
+
export const ProductsGetByIdBillingInterval$inboundSchema: z.ZodMiniType<
|
|
83
|
+
ProductsGetByIdBillingInterval,
|
|
84
|
+
unknown
|
|
85
|
+
> = openEnums.inboundSchema(ProductsGetByIdBillingInterval);
|
|
86
|
+
|
|
87
|
+
/** @internal */
|
|
88
|
+
export const ProductsGetByIdData$inboundSchema: z.ZodMiniType<
|
|
89
|
+
ProductsGetByIdData,
|
|
90
|
+
unknown
|
|
91
|
+
> = z.pipe(
|
|
92
|
+
z.object({
|
|
93
|
+
_id: types.string(),
|
|
94
|
+
storeId: types.string(),
|
|
95
|
+
name: types.string(),
|
|
96
|
+
description: types.nullable(types.string()),
|
|
97
|
+
priceInCents: types.number(),
|
|
98
|
+
currency: types.string(),
|
|
99
|
+
type: ProductsGetByIdType$inboundSchema,
|
|
100
|
+
billingInterval: types.nullable(
|
|
101
|
+
ProductsGetByIdBillingInterval$inboundSchema,
|
|
102
|
+
),
|
|
103
|
+
imageUrl: types.nullable(types.string()),
|
|
104
|
+
isActive: types.boolean(),
|
|
105
|
+
category: types.nullable(types.string()),
|
|
106
|
+
details: types.nullable(z.array(types.string())),
|
|
107
|
+
}),
|
|
108
|
+
z.transform((v) => {
|
|
109
|
+
return remap$(v, {
|
|
110
|
+
"_id": "id",
|
|
111
|
+
});
|
|
112
|
+
}),
|
|
113
|
+
);
|
|
114
|
+
|
|
115
|
+
export function productsGetByIdDataFromJSON(
|
|
116
|
+
jsonString: string,
|
|
117
|
+
): SafeParseResult<ProductsGetByIdData, SDKValidationError> {
|
|
118
|
+
return safeParse(
|
|
119
|
+
jsonString,
|
|
120
|
+
(x) => ProductsGetByIdData$inboundSchema.parse(JSON.parse(x)),
|
|
121
|
+
`Failed to parse 'ProductsGetByIdData' from JSON`,
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/** @internal */
|
|
126
|
+
export const ProductsGetByIdResponse$inboundSchema: z.ZodMiniType<
|
|
127
|
+
ProductsGetByIdResponse,
|
|
128
|
+
unknown
|
|
129
|
+
> = z.object({
|
|
130
|
+
data: z.lazy(() => ProductsGetByIdData$inboundSchema),
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
export function productsGetByIdResponseFromJSON(
|
|
134
|
+
jsonString: string,
|
|
135
|
+
): SafeParseResult<ProductsGetByIdResponse, SDKValidationError> {
|
|
136
|
+
return safeParse(
|
|
137
|
+
jsonString,
|
|
138
|
+
(x) => ProductsGetByIdResponse$inboundSchema.parse(JSON.parse(x)),
|
|
139
|
+
`Failed to parse 'ProductsGetByIdResponse' from JSON`,
|
|
140
|
+
);
|
|
141
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
11
|
+
|
|
12
|
+
export type TemplateTexts = {};
|
|
13
|
+
|
|
14
|
+
export type StoreGetData = {
|
|
15
|
+
id: string;
|
|
16
|
+
slug: string;
|
|
17
|
+
name: string;
|
|
18
|
+
description?: string | undefined;
|
|
19
|
+
logoUrl?: string | undefined;
|
|
20
|
+
isPublished: boolean;
|
|
21
|
+
templateKey?: string | null | undefined;
|
|
22
|
+
templateTexts?: TemplateTexts | undefined;
|
|
23
|
+
paymentsConfigured: boolean;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Response for status 200
|
|
28
|
+
*/
|
|
29
|
+
export type StoreGetResponse = {
|
|
30
|
+
data: StoreGetData;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const TemplateTexts$inboundSchema: z.ZodMiniType<
|
|
35
|
+
TemplateTexts,
|
|
36
|
+
unknown
|
|
37
|
+
> = z.object({});
|
|
38
|
+
|
|
39
|
+
export function templateTextsFromJSON(
|
|
40
|
+
jsonString: string,
|
|
41
|
+
): SafeParseResult<TemplateTexts, SDKValidationError> {
|
|
42
|
+
return safeParse(
|
|
43
|
+
jsonString,
|
|
44
|
+
(x) => TemplateTexts$inboundSchema.parse(JSON.parse(x)),
|
|
45
|
+
`Failed to parse 'TemplateTexts' from JSON`,
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const StoreGetData$inboundSchema: z.ZodMiniType<StoreGetData, unknown> =
|
|
51
|
+
z.pipe(
|
|
52
|
+
z.object({
|
|
53
|
+
_id: types.string(),
|
|
54
|
+
slug: types.string(),
|
|
55
|
+
name: types.string(),
|
|
56
|
+
description: types.optional(types.string()),
|
|
57
|
+
logoUrl: types.optional(types.string()),
|
|
58
|
+
isPublished: types.boolean(),
|
|
59
|
+
templateKey: z.optional(z.nullable(types.string())),
|
|
60
|
+
templateTexts: types.optional(z.lazy(() => TemplateTexts$inboundSchema)),
|
|
61
|
+
paymentsConfigured: types.boolean(),
|
|
62
|
+
}),
|
|
63
|
+
z.transform((v) => {
|
|
64
|
+
return remap$(v, {
|
|
65
|
+
"_id": "id",
|
|
66
|
+
});
|
|
67
|
+
}),
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
export function storeGetDataFromJSON(
|
|
71
|
+
jsonString: string,
|
|
72
|
+
): SafeParseResult<StoreGetData, SDKValidationError> {
|
|
73
|
+
return safeParse(
|
|
74
|
+
jsonString,
|
|
75
|
+
(x) => StoreGetData$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
+
`Failed to parse 'StoreGetData' from JSON`,
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const StoreGetResponse$inboundSchema: z.ZodMiniType<
|
|
82
|
+
StoreGetResponse,
|
|
83
|
+
unknown
|
|
84
|
+
> = z.object({
|
|
85
|
+
data: z.lazy(() => StoreGetData$inboundSchema),
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
export function storeGetResponseFromJSON(
|
|
89
|
+
jsonString: string,
|
|
90
|
+
): SafeParseResult<StoreGetResponse, SDKValidationError> {
|
|
91
|
+
return safeParse(
|
|
92
|
+
jsonString,
|
|
93
|
+
(x) => StoreGetResponse$inboundSchema.parse(JSON.parse(x)),
|
|
94
|
+
`Failed to parse 'StoreGetResponse' from JSON`,
|
|
95
|
+
);
|
|
96
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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 SubscriptionCreatePortalSessionRequest = {
|
|
12
|
+
memberSessionId: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type SubscriptionCreatePortalSessionData = {
|
|
16
|
+
url: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Response for status 200
|
|
21
|
+
*/
|
|
22
|
+
export type SubscriptionCreatePortalSessionResponse = {
|
|
23
|
+
data: SubscriptionCreatePortalSessionData;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type SubscriptionCreatePortalSessionRequest$Outbound = {
|
|
28
|
+
memberSessionId: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const SubscriptionCreatePortalSessionRequest$outboundSchema:
|
|
33
|
+
z.ZodMiniType<
|
|
34
|
+
SubscriptionCreatePortalSessionRequest$Outbound,
|
|
35
|
+
SubscriptionCreatePortalSessionRequest
|
|
36
|
+
> = z.object({
|
|
37
|
+
memberSessionId: z.string(),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export function subscriptionCreatePortalSessionRequestToJSON(
|
|
41
|
+
subscriptionCreatePortalSessionRequest:
|
|
42
|
+
SubscriptionCreatePortalSessionRequest,
|
|
43
|
+
): string {
|
|
44
|
+
return JSON.stringify(
|
|
45
|
+
SubscriptionCreatePortalSessionRequest$outboundSchema.parse(
|
|
46
|
+
subscriptionCreatePortalSessionRequest,
|
|
47
|
+
),
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const SubscriptionCreatePortalSessionData$inboundSchema: z.ZodMiniType<
|
|
53
|
+
SubscriptionCreatePortalSessionData,
|
|
54
|
+
unknown
|
|
55
|
+
> = z.object({
|
|
56
|
+
url: types.string(),
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
export function subscriptionCreatePortalSessionDataFromJSON(
|
|
60
|
+
jsonString: string,
|
|
61
|
+
): SafeParseResult<SubscriptionCreatePortalSessionData, SDKValidationError> {
|
|
62
|
+
return safeParse(
|
|
63
|
+
jsonString,
|
|
64
|
+
(x) =>
|
|
65
|
+
SubscriptionCreatePortalSessionData$inboundSchema.parse(JSON.parse(x)),
|
|
66
|
+
`Failed to parse 'SubscriptionCreatePortalSessionData' from JSON`,
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const SubscriptionCreatePortalSessionResponse$inboundSchema:
|
|
72
|
+
z.ZodMiniType<SubscriptionCreatePortalSessionResponse, unknown> = z.object({
|
|
73
|
+
data: z.lazy(() => SubscriptionCreatePortalSessionData$inboundSchema),
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
export function subscriptionCreatePortalSessionResponseFromJSON(
|
|
77
|
+
jsonString: string,
|
|
78
|
+
): SafeParseResult<
|
|
79
|
+
SubscriptionCreatePortalSessionResponse,
|
|
80
|
+
SDKValidationError
|
|
81
|
+
> {
|
|
82
|
+
return safeParse(
|
|
83
|
+
jsonString,
|
|
84
|
+
(x) =>
|
|
85
|
+
SubscriptionCreatePortalSessionResponse$inboundSchema.parse(
|
|
86
|
+
JSON.parse(x),
|
|
87
|
+
),
|
|
88
|
+
`Failed to parse 'SubscriptionCreatePortalSessionResponse' from JSON`,
|
|
89
|
+
);
|
|
90
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type Security = {
|
|
9
|
+
bearerAuth?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type Security$Outbound = {
|
|
14
|
+
BearerAuth?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const Security$outboundSchema: z.ZodMiniType<
|
|
19
|
+
Security$Outbound,
|
|
20
|
+
Security
|
|
21
|
+
> = z.pipe(
|
|
22
|
+
z.object({
|
|
23
|
+
bearerAuth: z.optional(z.string()),
|
|
24
|
+
}),
|
|
25
|
+
z.transform((v) => {
|
|
26
|
+
return remap$(v, {
|
|
27
|
+
bearerAuth: "BearerAuth",
|
|
28
|
+
});
|
|
29
|
+
}),
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
export function securityToJSON(security: Security): string {
|
|
33
|
+
return JSON.stringify(Security$outboundSchema.parse(security));
|
|
34
|
+
}
|
package/src/sdk/cart.ts
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { cartCartAddLine } from "../funcs/cart-cart-add-line.js";
|
|
6
|
+
import { cartCartClear } from "../funcs/cart-cart-clear.js";
|
|
7
|
+
import { cartCartCreate } from "../funcs/cart-cart-create.js";
|
|
8
|
+
import { cartCartGet } from "../funcs/cart-cart-get.js";
|
|
9
|
+
import { cartCartRemoveLine } from "../funcs/cart-cart-remove-line.js";
|
|
10
|
+
import { cartCartUpdateLine } from "../funcs/cart-cart-update-line.js";
|
|
11
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import * as operations from "../models/operations/index.js";
|
|
13
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
14
|
+
|
|
15
|
+
export class Cart extends ClientSDK {
|
|
16
|
+
/**
|
|
17
|
+
* Get cart
|
|
18
|
+
*/
|
|
19
|
+
async cartGet(
|
|
20
|
+
request: operations.CartGetRequest,
|
|
21
|
+
options?: RequestOptions,
|
|
22
|
+
): Promise<operations.CartGetResponse> {
|
|
23
|
+
return unwrapAsync(cartCartGet(
|
|
24
|
+
this,
|
|
25
|
+
request,
|
|
26
|
+
options,
|
|
27
|
+
));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Clear cart
|
|
32
|
+
*/
|
|
33
|
+
async cartClear(
|
|
34
|
+
request: operations.CartClearRequest,
|
|
35
|
+
options?: RequestOptions,
|
|
36
|
+
): Promise<operations.CartClearResponse> {
|
|
37
|
+
return unwrapAsync(cartCartClear(
|
|
38
|
+
this,
|
|
39
|
+
request,
|
|
40
|
+
options,
|
|
41
|
+
));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Create cart
|
|
46
|
+
*/
|
|
47
|
+
async cartCreate(
|
|
48
|
+
options?: RequestOptions,
|
|
49
|
+
): Promise<operations.CartCreateResponse> {
|
|
50
|
+
return unwrapAsync(cartCartCreate(
|
|
51
|
+
this,
|
|
52
|
+
options,
|
|
53
|
+
));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Update cart line quantity
|
|
58
|
+
*/
|
|
59
|
+
async cartUpdateLine(
|
|
60
|
+
request: operations.CartUpdateLineRequest,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): Promise<operations.CartUpdateLineResponse> {
|
|
63
|
+
return unwrapAsync(cartCartUpdateLine(
|
|
64
|
+
this,
|
|
65
|
+
request,
|
|
66
|
+
options,
|
|
67
|
+
));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Remove cart line
|
|
72
|
+
*/
|
|
73
|
+
async cartRemoveLine(
|
|
74
|
+
request: operations.CartRemoveLineRequest,
|
|
75
|
+
options?: RequestOptions,
|
|
76
|
+
): Promise<operations.CartRemoveLineResponse> {
|
|
77
|
+
return unwrapAsync(cartCartRemoveLine(
|
|
78
|
+
this,
|
|
79
|
+
request,
|
|
80
|
+
options,
|
|
81
|
+
));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Add cart line
|
|
86
|
+
*/
|
|
87
|
+
async cartAddLine(
|
|
88
|
+
request: operations.CartAddLineRequest,
|
|
89
|
+
options?: RequestOptions,
|
|
90
|
+
): Promise<operations.CartAddLineResponse> {
|
|
91
|
+
return unwrapAsync(cartCartAddLine(
|
|
92
|
+
this,
|
|
93
|
+
request,
|
|
94
|
+
options,
|
|
95
|
+
));
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { checkoutCheckoutCreateSession } from "../funcs/checkout-checkout-create-session.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
+
|
|
10
|
+
export class Checkout extends ClientSDK {
|
|
11
|
+
/**
|
|
12
|
+
* Create checkout session
|
|
13
|
+
*/
|
|
14
|
+
async checkoutCreateSession(
|
|
15
|
+
request: operations.CheckoutCreateSessionRequest,
|
|
16
|
+
options?: RequestOptions,
|
|
17
|
+
): Promise<operations.CheckoutCreateSessionResponse> {
|
|
18
|
+
return unwrapAsync(checkoutCheckoutCreateSession(
|
|
19
|
+
this,
|
|
20
|
+
request,
|
|
21
|
+
options,
|
|
22
|
+
));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { healthHealthCheck } from "../funcs/health-health-check.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
+
|
|
10
|
+
export class Health extends ClientSDK {
|
|
11
|
+
/**
|
|
12
|
+
* Health check
|
|
13
|
+
*/
|
|
14
|
+
async healthCheck(
|
|
15
|
+
options?: RequestOptions,
|
|
16
|
+
): Promise<operations.HealthCheckResponse> {
|
|
17
|
+
return unwrapAsync(healthHealthCheck(
|
|
18
|
+
this,
|
|
19
|
+
options,
|
|
20
|
+
));
|
|
21
|
+
}
|
|
22
|
+
}
|
package/src/sdk/index.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { productsProductsGetAll } from "../funcs/products-products-get-all.js";
|
|
6
|
+
import { productsProductsGetById } from "../funcs/products-products-get-by-id.js";
|
|
7
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
10
|
+
|
|
11
|
+
export class Products extends ClientSDK {
|
|
12
|
+
/**
|
|
13
|
+
* List products
|
|
14
|
+
*/
|
|
15
|
+
async productsGetAll(
|
|
16
|
+
options?: RequestOptions,
|
|
17
|
+
): Promise<operations.ProductsGetAllResponse> {
|
|
18
|
+
return unwrapAsync(productsProductsGetAll(
|
|
19
|
+
this,
|
|
20
|
+
options,
|
|
21
|
+
));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Get product
|
|
26
|
+
*/
|
|
27
|
+
async productsGetById(
|
|
28
|
+
request: operations.ProductsGetByIdRequest,
|
|
29
|
+
options?: RequestOptions,
|
|
30
|
+
): Promise<operations.ProductsGetByIdResponse> {
|
|
31
|
+
return unwrapAsync(productsProductsGetById(
|
|
32
|
+
this,
|
|
33
|
+
request,
|
|
34
|
+
options,
|
|
35
|
+
));
|
|
36
|
+
}
|
|
37
|
+
}
|
package/src/sdk/sdk.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { ClientSDK } from "../lib/sdks.js";
|
|
6
|
+
import { Cart } from "./cart.js";
|
|
7
|
+
import { Checkout } from "./checkout.js";
|
|
8
|
+
import { Health } from "./health.js";
|
|
9
|
+
import { Products } from "./products.js";
|
|
10
|
+
import { Store } from "./store.js";
|
|
11
|
+
import { Subscription } from "./subscription.js";
|
|
12
|
+
|
|
13
|
+
export class Quickshops extends ClientSDK {
|
|
14
|
+
private _health?: Health;
|
|
15
|
+
get health(): Health {
|
|
16
|
+
return (this._health ??= new Health(this._options));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
private _store?: Store;
|
|
20
|
+
get store(): Store {
|
|
21
|
+
return (this._store ??= new Store(this._options));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
private _products?: Products;
|
|
25
|
+
get products(): Products {
|
|
26
|
+
return (this._products ??= new Products(this._options));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
private _cart?: Cart;
|
|
30
|
+
get cart(): Cart {
|
|
31
|
+
return (this._cart ??= new Cart(this._options));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
private _checkout?: Checkout;
|
|
35
|
+
get checkout(): Checkout {
|
|
36
|
+
return (this._checkout ??= new Checkout(this._options));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
private _subscription?: Subscription;
|
|
40
|
+
get subscription(): Subscription {
|
|
41
|
+
return (this._subscription ??= new Subscription(this._options));
|
|
42
|
+
}
|
|
43
|
+
}
|
package/src/sdk/store.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { storeStoreGet } from "../funcs/store-store-get.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
+
|
|
10
|
+
export class Store extends ClientSDK {
|
|
11
|
+
/**
|
|
12
|
+
* Get store for API key
|
|
13
|
+
*/
|
|
14
|
+
async storeGet(
|
|
15
|
+
options?: RequestOptions,
|
|
16
|
+
): Promise<operations.StoreGetResponse> {
|
|
17
|
+
return unwrapAsync(storeStoreGet(
|
|
18
|
+
this,
|
|
19
|
+
options,
|
|
20
|
+
));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { subscriptionSubscriptionCreatePortalSession } from "../funcs/subscription-subscription-create-portal-session.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
+
|
|
10
|
+
export class Subscription extends ClientSDK {
|
|
11
|
+
/**
|
|
12
|
+
* Create subscription portal session
|
|
13
|
+
*/
|
|
14
|
+
async subscriptionCreatePortalSession(
|
|
15
|
+
request: operations.SubscriptionCreatePortalSessionRequest,
|
|
16
|
+
options?: RequestOptions,
|
|
17
|
+
): Promise<operations.SubscriptionCreatePortalSessionResponse> {
|
|
18
|
+
return unwrapAsync(subscriptionSubscriptionCreatePortalSession(
|
|
19
|
+
this,
|
|
20
|
+
request,
|
|
21
|
+
options,
|
|
22
|
+
));
|
|
23
|
+
}
|
|
24
|
+
}
|