@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 @@
|
|
|
1
|
+
{"version":3,"file":"store-store-get.js","sourceRoot":"","sources":["../../src/funcs/store-store-get.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAIpD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;GAEG;AACH,MAAM,UAAU,aAAa,CAC3B,MAAsB,EACtB,OAAwB,EAiBxB;IACA,OAAO,IAAI,UAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,CACR,CAAC,CAAC;AAAA,CACJ;AAED,KAAK,UAAU,GAAG,CAChB,MAAsB,EACtB,OAAwB,EAoBxB;IACA,M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AG,EAAE,MAAM,CAAC,0CAA0C,CAAC,EACjE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { QuickshopsCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
|
|
4
|
+
import * as errors from "../models/errors/index.js";
|
|
5
|
+
import { QuickshopsError } from "../models/errors/quickshops-error.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Create subscription portal session
|
|
13
|
+
*/
|
|
14
|
+
export declare function subscriptionSubscriptionCreatePortalSession(client: QuickshopsCore, request: operations.SubscriptionCreatePortalSessionRequest, options?: RequestOptions): APIPromise<Result<operations.SubscriptionCreatePortalSessionResponse, errors.SubscriptionCreatePortalSessionBadRequestError | errors.SubscriptionCreatePortalSessionUnauthorizedError | errors.SubscriptionCreatePortalSessionForbiddenError | errors.SubscriptionCreatePortalSessionConflictError | errors.SubscriptionCreatePortalSessionTooManyRequestsError | QuickshopsError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
15
|
+
//# sourceMappingURL=subscription-subscription-create-portal-session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription-subscription-create-portal-session.d.ts","sourceRoot":"","sources":["../../src/funcs/subscription-subscription-create-portal-session.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAM5C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,2CAA2C,CACzD,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,UAAU,CAAC,sCAAsC,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,uCAAuC,EAChD,MAAM,CAAC,8CAA8C,GACrD,MAAM,CAAC,gDAAgD,GACvD,MAAM,CAAC,6CAA6C,GACpD,MAAM,CAAC,4CAA4C,GACnD,MAAM,CAAC,mDAAmD,GAC1D,eAAe,GACf,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
6
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
+
import { pathToFunc } from "../lib/url.js";
|
|
12
|
+
import * as errors from "../models/errors/index.js";
|
|
13
|
+
import * as operations from "../models/operations/index.js";
|
|
14
|
+
import { APIPromise } from "../types/async.js";
|
|
15
|
+
/**
|
|
16
|
+
* Create subscription portal session
|
|
17
|
+
*/
|
|
18
|
+
export function subscriptionSubscriptionCreatePortalSession(client, request, options) {
|
|
19
|
+
return new APIPromise($do(client, request, options));
|
|
20
|
+
}
|
|
21
|
+
async function $do(client, request, options) {
|
|
22
|
+
const parsed = safeParse(request, (value) => z.parse(operations.SubscriptionCreatePortalSessionRequest$outboundSchema, value), "Input validation failed");
|
|
23
|
+
if (!parsed.ok) {
|
|
24
|
+
return [parsed, { status: "invalid" }];
|
|
25
|
+
}
|
|
26
|
+
const payload = parsed.value;
|
|
27
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
28
|
+
const path = pathToFunc("/v1/subscription/portal")();
|
|
29
|
+
const headers = new Headers(compactMap({
|
|
30
|
+
"Content-Type": "application/json",
|
|
31
|
+
Accept: "application/json",
|
|
32
|
+
}));
|
|
33
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
34
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
35
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
36
|
+
const context = {
|
|
37
|
+
options: client._options,
|
|
38
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
39
|
+
operationID: "subscription.createPortalSession",
|
|
40
|
+
oAuth2Scopes: null,
|
|
41
|
+
resolvedSecurity: requestSecurity,
|
|
42
|
+
securitySource: client._options.bearerAuth,
|
|
43
|
+
retryConfig: options?.retries
|
|
44
|
+
|| client._options.retryConfig
|
|
45
|
+
|| { strategy: "none" },
|
|
46
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
47
|
+
};
|
|
48
|
+
const requestRes = client._createRequest(context, {
|
|
49
|
+
security: requestSecurity,
|
|
50
|
+
method: "POST",
|
|
51
|
+
baseURL: options?.serverURL,
|
|
52
|
+
path: path,
|
|
53
|
+
headers: headers,
|
|
54
|
+
body: body,
|
|
55
|
+
userAgent: client._options.userAgent,
|
|
56
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
57
|
+
}, options);
|
|
58
|
+
if (!requestRes.ok) {
|
|
59
|
+
return [requestRes, { status: "invalid" }];
|
|
60
|
+
}
|
|
61
|
+
const req = requestRes.value;
|
|
62
|
+
const doResult = await client._do(req, {
|
|
63
|
+
context,
|
|
64
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
65
|
+
retryConfig: context.retryConfig,
|
|
66
|
+
retryCodes: context.retryCodes,
|
|
67
|
+
});
|
|
68
|
+
if (!doResult.ok) {
|
|
69
|
+
return [doResult, { status: "request-error", request: req }];
|
|
70
|
+
}
|
|
71
|
+
const response = doResult.value;
|
|
72
|
+
const responseFields = {
|
|
73
|
+
HttpMeta: { Response: response, Request: req },
|
|
74
|
+
};
|
|
75
|
+
const [result] = await M.match(M.json(200, operations.SubscriptionCreatePortalSessionResponse$inboundSchema), M.jsonErr(400, errors.SubscriptionCreatePortalSessionBadRequestError$inboundSchema), M.jsonErr(401, errors.SubscriptionCreatePortalSessionUnauthorizedError$inboundSchema), M.jsonErr(403, errors.SubscriptionCreatePortalSessionForbiddenError$inboundSchema), M.jsonErr(409, errors.SubscriptionCreatePortalSessionConflictError$inboundSchema), M.jsonErr(429, errors.SubscriptionCreatePortalSessionTooManyRequestsError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
76
|
+
if (!result.ok) {
|
|
77
|
+
return [result, { status: "complete", request: req, response }];
|
|
78
|
+
}
|
|
79
|
+
return [result, { status: "complete", request: req, response }];
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=subscription-subscription-create-portal-session.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription-subscription-create-portal-session.js","sourceRoot":"","sources":["../../src/funcs/subscription-subscription-create-portal-session.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAIpD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;GAEG;AACH,MAAM,UAAU,2CAA2C,CACzD,MAAsB,EACtB,OAA0D,EAC1D,OAAwB,EAkBxB;IACA,OAAO,IAAI,U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Options } from "../lib/config.js";
|
|
2
|
+
import { RequestInput } from "../lib/http.js";
|
|
3
|
+
import { AfterErrorContext, AfterErrorHook, AfterSuccessContext, AfterSuccessHook, BeforeCreateRequestContext, BeforeCreateRequestHook, BeforeRequestContext, BeforeRequestHook, Hooks, SDKInitHook } from "./types.js";
|
|
4
|
+
export declare class SDKHooks implements Hooks {
|
|
5
|
+
sdkInitHooks: SDKInitHook[];
|
|
6
|
+
beforeCreateRequestHooks: BeforeCreateRequestHook[];
|
|
7
|
+
beforeRequestHooks: BeforeRequestHook[];
|
|
8
|
+
afterSuccessHooks: AfterSuccessHook[];
|
|
9
|
+
afterErrorHooks: AfterErrorHook[];
|
|
10
|
+
constructor();
|
|
11
|
+
registerSDKInitHook(hook: SDKInitHook): void;
|
|
12
|
+
registerBeforeCreateRequestHook(hook: BeforeCreateRequestHook): void;
|
|
13
|
+
registerBeforeRequestHook(hook: BeforeRequestHook): void;
|
|
14
|
+
registerAfterSuccessHook(hook: AfterSuccessHook): void;
|
|
15
|
+
registerAfterErrorHook(hook: AfterErrorHook): void;
|
|
16
|
+
sdkInit(opts: SDKOptions): SDKOptions;
|
|
17
|
+
beforeCreateRequest(hookCtx: BeforeCreateRequestContext, input: RequestInput): RequestInput;
|
|
18
|
+
beforeRequest(hookCtx: BeforeRequestContext, request: Request): Promise<Request>;
|
|
19
|
+
afterSuccess(hookCtx: AfterSuccessContext, response: Response): Promise<Response>;
|
|
20
|
+
afterError(hookCtx: AfterErrorContext, response: Response | null, error: unknown): Promise<{
|
|
21
|
+
response: Response | null;
|
|
22
|
+
error: unknown;
|
|
23
|
+
}>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/hooks/hooks.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE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;CACF"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
export class SDKHooks {
|
|
5
|
+
sdkInitHooks = [];
|
|
6
|
+
beforeCreateRequestHooks = [];
|
|
7
|
+
beforeRequestHooks = [];
|
|
8
|
+
afterSuccessHooks = [];
|
|
9
|
+
afterErrorHooks = [];
|
|
10
|
+
constructor() {
|
|
11
|
+
const presetHooks = [];
|
|
12
|
+
for (const hook of presetHooks) {
|
|
13
|
+
if ("sdkInit" in hook) {
|
|
14
|
+
this.registerSDKInitHook(hook);
|
|
15
|
+
}
|
|
16
|
+
if ("beforeCreateRequest" in hook) {
|
|
17
|
+
this.registerBeforeCreateRequestHook(hook);
|
|
18
|
+
}
|
|
19
|
+
if ("beforeRequest" in hook) {
|
|
20
|
+
this.registerBeforeRequestHook(hook);
|
|
21
|
+
}
|
|
22
|
+
if ("afterSuccess" in hook) {
|
|
23
|
+
this.registerAfterSuccessHook(hook);
|
|
24
|
+
}
|
|
25
|
+
if ("afterError" in hook) {
|
|
26
|
+
this.registerAfterErrorHook(hook);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
registerSDKInitHook(hook) {
|
|
31
|
+
this.sdkInitHooks.push(hook);
|
|
32
|
+
}
|
|
33
|
+
registerBeforeCreateRequestHook(hook) {
|
|
34
|
+
this.beforeCreateRequestHooks.push(hook);
|
|
35
|
+
}
|
|
36
|
+
registerBeforeRequestHook(hook) {
|
|
37
|
+
this.beforeRequestHooks.push(hook);
|
|
38
|
+
}
|
|
39
|
+
registerAfterSuccessHook(hook) {
|
|
40
|
+
this.afterSuccessHooks.push(hook);
|
|
41
|
+
}
|
|
42
|
+
registerAfterErrorHook(hook) {
|
|
43
|
+
this.afterErrorHooks.push(hook);
|
|
44
|
+
}
|
|
45
|
+
sdkInit(opts) {
|
|
46
|
+
return this.sdkInitHooks.reduce((opts, hook) => hook.sdkInit(opts), opts);
|
|
47
|
+
}
|
|
48
|
+
beforeCreateRequest(hookCtx, input) {
|
|
49
|
+
let inp = input;
|
|
50
|
+
for (const hook of this.beforeCreateRequestHooks) {
|
|
51
|
+
inp = hook.beforeCreateRequest(hookCtx, inp);
|
|
52
|
+
}
|
|
53
|
+
return inp;
|
|
54
|
+
}
|
|
55
|
+
async beforeRequest(hookCtx, request) {
|
|
56
|
+
let req = request;
|
|
57
|
+
for (const hook of this.beforeRequestHooks) {
|
|
58
|
+
req = await hook.beforeRequest(hookCtx, req);
|
|
59
|
+
}
|
|
60
|
+
return req;
|
|
61
|
+
}
|
|
62
|
+
async afterSuccess(hookCtx, response) {
|
|
63
|
+
let res = response;
|
|
64
|
+
for (const hook of this.afterSuccessHooks) {
|
|
65
|
+
res = await hook.afterSuccess(hookCtx, res);
|
|
66
|
+
}
|
|
67
|
+
return res;
|
|
68
|
+
}
|
|
69
|
+
async afterError(hookCtx, response, error) {
|
|
70
|
+
let res = response;
|
|
71
|
+
let err = error;
|
|
72
|
+
for (const hook of this.afterErrorHooks) {
|
|
73
|
+
const result = await hook.afterError(hookCtx, res, err);
|
|
74
|
+
res = result.response;
|
|
75
|
+
err = result.error;
|
|
76
|
+
}
|
|
77
|
+
return { response: res, error: err };
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../src/hooks/hooks.ts"],"names":[],"mappings":"AAAA;;GAEG;AAkBH,MAAM,OAAO,QAAQ;IACnB,YAAY,GAAkB,EAAE,CAAC;IACjC,wBAAwB,GAA8B,EAAE,CAAC;IACzD,kBAAkB,GAAwB,EAAE,CAAC;IAC7C,iBAAiB,GAAuB,EAAE,CAAC;IAC3C,eAAe,GAAqB,EAAE,CAAC;IAEvC,cAAc;QACZ,MAAM,WAAW,GAAgB,EAAE,CAAC;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YACxD,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC;YACtB,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC;QACrB,CAAC;QAED,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC;IAAA,CACtC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { SDKOptions } from "../lib/config.js";
|
|
2
|
+
import { RequestInput } from "../lib/http.js";
|
|
3
|
+
import { RetryConfig } from "../lib/retries.js";
|
|
4
|
+
import { SecurityState } from "../lib/security.js";
|
|
5
|
+
export type HookContext = {
|
|
6
|
+
baseURL: string | URL;
|
|
7
|
+
operationID: string;
|
|
8
|
+
oAuth2Scopes: string[] | null;
|
|
9
|
+
securitySource?: any | (() => Promise<any>);
|
|
10
|
+
retryConfig: RetryConfig;
|
|
11
|
+
resolvedSecurity: SecurityState | null;
|
|
12
|
+
options: SDKOptions;
|
|
13
|
+
timeoutMs?: number;
|
|
14
|
+
};
|
|
15
|
+
export type Awaitable<T> = T | Promise<T>;
|
|
16
|
+
export type BeforeCreateRequestContext = HookContext & {};
|
|
17
|
+
export type BeforeRequestContext = HookContext & {};
|
|
18
|
+
export type AfterSuccessContext = HookContext & {};
|
|
19
|
+
export type AfterErrorContext = HookContext & {};
|
|
20
|
+
/**
|
|
21
|
+
* SDKInitHook is called when the SDK is initializing. The
|
|
22
|
+
* hook can return a new baseURL and HTTP client to be used by the SDK.
|
|
23
|
+
*/
|
|
24
|
+
export interface SDKInitHook {
|
|
25
|
+
sdkInit: (opts: SDKOptions) => SDKOptions;
|
|
26
|
+
}
|
|
27
|
+
export interface BeforeCreateRequestHook {
|
|
28
|
+
/**
|
|
29
|
+
* A hook that is called before the SDK creates a `Request` object. The hook
|
|
30
|
+
* can modify how a request is constructed since certain modifications, like
|
|
31
|
+
* changing the request URL, cannot be done on a request object directly.
|
|
32
|
+
*/
|
|
33
|
+
beforeCreateRequest: (hookCtx: BeforeCreateRequestContext, input: RequestInput) => RequestInput;
|
|
34
|
+
}
|
|
35
|
+
export interface BeforeRequestHook {
|
|
36
|
+
/**
|
|
37
|
+
* A hook that is called before the SDK sends a request. The hook can
|
|
38
|
+
* introduce instrumentation code such as logging, tracing and metrics or
|
|
39
|
+
* replace the request before it is sent or throw an error to stop the
|
|
40
|
+
* request from being sent.
|
|
41
|
+
*/
|
|
42
|
+
beforeRequest: (hookCtx: BeforeRequestContext, request: Request) => Awaitable<Request>;
|
|
43
|
+
}
|
|
44
|
+
export interface AfterSuccessHook {
|
|
45
|
+
/**
|
|
46
|
+
* A hook that is called after the SDK receives a response. The hook can
|
|
47
|
+
* introduce instrumentation code such as logging, tracing and metrics or
|
|
48
|
+
* modify the response before it is handled or throw an error to stop the
|
|
49
|
+
* response from being handled.
|
|
50
|
+
*/
|
|
51
|
+
afterSuccess: (hookCtx: AfterSuccessContext, response: Response) => Awaitable<Response>;
|
|
52
|
+
}
|
|
53
|
+
export interface AfterErrorHook {
|
|
54
|
+
/**
|
|
55
|
+
* A hook that is called after the SDK encounters an error, or a
|
|
56
|
+
* non-successful response. The hook can introduce instrumentation code such
|
|
57
|
+
* as logging, tracing and metrics or modify the response or error values.
|
|
58
|
+
*/
|
|
59
|
+
afterError: (hookCtx: AfterErrorContext, response: Response | null, error: unknown) => Awaitable<{
|
|
60
|
+
response: Response | null;
|
|
61
|
+
error: unknown;
|
|
62
|
+
}>;
|
|
63
|
+
}
|
|
64
|
+
export interface Hooks {
|
|
65
|
+
/** Registers a hook to be used by the SDK for initialization event. */
|
|
66
|
+
registerSDKInitHook(hook: SDKInitHook): void;
|
|
67
|
+
/** Registers a hook to be used by the SDK for to modify `Request` construction. */
|
|
68
|
+
registerBeforeCreateRequestHook(hook: BeforeCreateRequestHook): void;
|
|
69
|
+
/** Registers a hook to be used by the SDK for the before request event. */
|
|
70
|
+
registerBeforeRequestHook(hook: BeforeRequestHook): void;
|
|
71
|
+
/** Registers a hook to be used by the SDK for the after success event. */
|
|
72
|
+
registerAfterSuccessHook(hook: AfterSuccessHook): void;
|
|
73
|
+
/** Registers a hook to be used by the SDK for the after error event. */
|
|
74
|
+
registerAfterErrorHook(hook: AfterErrorHook): void;
|
|
75
|
+
}
|
|
76
|
+
export type Hook = SDKInitHook | BeforeCreateRequestHook | BeforeRequestHook | AfterSuccessHook | AfterErrorHook;
|
|
77
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/hooks/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC9B,cAAc,CAAC,EAAE,GAAG,GAAG,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5C,WAAW,EAAE,WAAW,CAAC;IACzB,gBAAgB,EAAE,aAAa,GAAG,IAAI,CAAC;IACvC,OAAO,EAAE,UAAU,CAAC;IACpB,SAAS,CAA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GAAG,IAAI,CAAC;IAC7C,mFAAmF;IACnF,+BAA+B,CAAC,IAAI,EAAE,uBAAuB,GAAG,IAAI,CAAC;IACrE,2EAA2E;IAC3E,yBAAyB,CAAC,IAAI,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACzD,0EAA0E;IAC1E,wBAAwB,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACvD,wEAAwE;IACxE,sBAAsB,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,CAAC;CACpD;AAED,MAAM,MAAM,IAAI,GACZ,WAAW,GACX,uBAAuB,GACvB,iBAAiB,GACjB,gBAAgB,GAChB,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/hooks/types.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
package/esm/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC;AAChC,OAAO,KAAK,KAAK,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,YAAY,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAChE,cAAc,cAAc,CAAC"}
|
package/esm/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
export * from "./lib/config.js";
|
|
5
|
+
export * as files from "./lib/files.js";
|
|
6
|
+
export { HTTPClient } from "./lib/http.js";
|
|
7
|
+
export * from "./sdk/sdk.js";
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
package/esm/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,iBAAiB,CAAC;AAChC,OAAO,KAAK,KAAK,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
export declare function bytesToBase64(u8arr: Uint8Array): string;
|
|
3
|
+
export declare function bytesFromBase64(encoded: string): Uint8Array;
|
|
4
|
+
export declare function stringToBytes(str: string): Uint8Array;
|
|
5
|
+
export declare function stringFromBytes(u8arr: Uint8Array): string;
|
|
6
|
+
export declare function stringToBase64(str: string): string;
|
|
7
|
+
export declare function stringFromBase64(b64str: string): string;
|
|
8
|
+
export declare const zodOutbound: z.ZodMiniUnion<readonly [z.ZodMiniCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Uint8Array<ArrayBufferLike>, string>>]>;
|
|
9
|
+
export declare const zodInbound: z.ZodMiniUnion<readonly [z.ZodMiniCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Uint8Array<ArrayBufferLike>, string>>]>;
|
|
10
|
+
//# sourceMappingURL=base64.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base64.d.ts","sourceRoot":"","sources":["../../src/lib/base64.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAEvD;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,CAE3D;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAErD;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAEzD;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAElD;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED,eAAO,MAAM,WAAW,uMAGtB,CAAC;AAEH,eAAO,MAAM,UAAU,uMAGrB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
export function bytesToBase64(u8arr) {
|
|
6
|
+
return btoa(String.fromCodePoint(...u8arr));
|
|
7
|
+
}
|
|
8
|
+
export function bytesFromBase64(encoded) {
|
|
9
|
+
return Uint8Array.from(atob(encoded), (c) => c.charCodeAt(0));
|
|
10
|
+
}
|
|
11
|
+
export function stringToBytes(str) {
|
|
12
|
+
return new TextEncoder().encode(str);
|
|
13
|
+
}
|
|
14
|
+
export function stringFromBytes(u8arr) {
|
|
15
|
+
return new TextDecoder().decode(u8arr);
|
|
16
|
+
}
|
|
17
|
+
export function stringToBase64(str) {
|
|
18
|
+
return bytesToBase64(stringToBytes(str));
|
|
19
|
+
}
|
|
20
|
+
export function stringFromBase64(b64str) {
|
|
21
|
+
return stringFromBytes(bytesFromBase64(b64str));
|
|
22
|
+
}
|
|
23
|
+
export const zodOutbound = z.union([
|
|
24
|
+
z.custom(x => x instanceof Uint8Array),
|
|
25
|
+
z.pipe(z.string(), z.transform(stringToBytes)),
|
|
26
|
+
]);
|
|
27
|
+
export const zodInbound = z.union([
|
|
28
|
+
z.custom(x => x instanceof Uint8Array),
|
|
29
|
+
z.pipe(z.string(), z.transform(bytesFromBase64)),
|
|
30
|
+
]);
|
|
31
|
+
//# sourceMappingURL=base64.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base64.js","sourceRoot":"","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MAAM,CAAa,CAAC,CAAC,EAAE,CAAC,CAAC,YAAY,UAAU,CAAC;IAClD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;CACjD,CAAC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { HTTPClient } from "./http.js";
|
|
2
|
+
import { Logger } from "./logger.js";
|
|
3
|
+
import { RetryConfig } from "./retries.js";
|
|
4
|
+
export type SDKOptions = {
|
|
5
|
+
bearerAuth?: string | (() => Promise<string>) | undefined;
|
|
6
|
+
httpClient?: HTTPClient;
|
|
7
|
+
/**
|
|
8
|
+
* Specifies the server URL to be used by the SDK
|
|
9
|
+
*/
|
|
10
|
+
serverURL: string;
|
|
11
|
+
/**
|
|
12
|
+
* Allows overriding the default user agent used by the SDK
|
|
13
|
+
*/
|
|
14
|
+
userAgent?: string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Allows overriding the default retry config used by the SDK
|
|
17
|
+
*/
|
|
18
|
+
retryConfig?: RetryConfig;
|
|
19
|
+
timeoutMs?: number;
|
|
20
|
+
debugLogger?: Logger;
|
|
21
|
+
};
|
|
22
|
+
export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
23
|
+
export declare const SDK_METADATA: {
|
|
24
|
+
readonly language: "typescript";
|
|
25
|
+
readonly openapiDocVersion: "0.1.0";
|
|
26
|
+
readonly sdkVersion: "0.1.4";
|
|
27
|
+
readonly genVersion: "2.904.2";
|
|
28
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.1.4 2.904.2 0.1.0 @quickshops/sdk";
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC;IAE1D,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,UAAU,GAAG,GAAG,GAAG,IAAI,CAWpE;AAED,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { pathToFunc } from "./url.js";
|
|
5
|
+
export function serverURLFromOptions(options) {
|
|
6
|
+
const serverURL = options.serverURL;
|
|
7
|
+
if (!serverURL) {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
const params = {};
|
|
11
|
+
const u = pathToFunc(serverURL)(params);
|
|
12
|
+
return new URL(u);
|
|
13
|
+
}
|
|
14
|
+
export const SDK_METADATA = {
|
|
15
|
+
language: "typescript",
|
|
16
|
+
openapiDocVersion: "0.1.0",
|
|
17
|
+
sdkVersion: "0.1.4",
|
|
18
|
+
genVersion: "2.904.2",
|
|
19
|
+
userAgent: "speakeasy-sdk/typescript 0.1.4 2.904.2 0.1.0 @quickshops/sdk",
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAsBtC,MAAM,UAAU,oBAAoB,CAAC,OAAmB,EAAc;IACpE,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAEpC,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,MAAM,GAAuC,EAAE,CAAC;IAEtD,MAAM,CAAC,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AAAA,CACnB;AAED,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,OAAO;IAC1B,UAAU,EAAE,OAAO;IACnB,UAAU,EAAE,SAAS;IACrB,SAAS,EAAE,8DAA8D;CACjE,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare class EncodingError extends Error {
|
|
2
|
+
constructor(message: string);
|
|
3
|
+
}
|
|
4
|
+
export declare function encodeMatrix(key: string, value: unknown, options?: {
|
|
5
|
+
explode?: boolean;
|
|
6
|
+
charEncoding?: "percent" | "none";
|
|
7
|
+
}): string | undefined;
|
|
8
|
+
export declare function encodeLabel(key: string, value: unknown, options?: {
|
|
9
|
+
explode?: boolean;
|
|
10
|
+
charEncoding?: "percent" | "none";
|
|
11
|
+
}): string | undefined;
|
|
12
|
+
type FormEncoder = (key: string, value: unknown, options?: {
|
|
13
|
+
explode?: boolean;
|
|
14
|
+
charEncoding?: "percent" | "none";
|
|
15
|
+
}) => string | undefined;
|
|
16
|
+
export declare const encodeForm: FormEncoder;
|
|
17
|
+
export declare const encodeSpaceDelimited: FormEncoder;
|
|
18
|
+
export declare const encodePipeDelimited: FormEncoder;
|
|
19
|
+
export declare function encodeBodyForm(key: string, value: unknown, options?: {
|
|
20
|
+
explode?: boolean;
|
|
21
|
+
charEncoding?: "percent" | "none";
|
|
22
|
+
}): string;
|
|
23
|
+
export declare function encodeDeepObject(key: string, value: unknown, options?: {
|
|
24
|
+
charEncoding?: "percent" | "none";
|
|
25
|
+
}): string | undefined;
|
|
26
|
+
export declare function encodeDeepObjectObject(key: string, value: unknown, options?: {
|
|
27
|
+
charEncoding?: "percent" | "none";
|
|
28
|
+
}): string | undefined;
|
|
29
|
+
export declare function encodeJSON(key: string, value: unknown, options?: {
|
|
30
|
+
explode?: boolean;
|
|
31
|
+
charEncoding?: "percent" | "none";
|
|
32
|
+
}): string | undefined;
|
|
33
|
+
export declare const encodeSimple: (key: string, value: unknown, options?: {
|
|
34
|
+
explode?: boolean;
|
|
35
|
+
charEncoding?: "none" | "percent";
|
|
36
|
+
} | undefined) => string | undefined;
|
|
37
|
+
export declare function queryJoin(...args: (string | undefined)[]): string;
|
|
38
|
+
type QueryEncoderOptions = {
|
|
39
|
+
explode?: boolean;
|
|
40
|
+
charEncoding?: "percent" | "none";
|
|
41
|
+
allowEmptyValue?: string[];
|
|
42
|
+
};
|
|
43
|
+
type QueryEncoder = (key: string, value: unknown, options?: QueryEncoderOptions) => string | undefined;
|
|
44
|
+
type BulkQueryEncoder = (values: Record<string, unknown>, options?: QueryEncoderOptions) => string;
|
|
45
|
+
export declare function queryEncoder(f: QueryEncoder): BulkQueryEncoder;
|
|
46
|
+
export declare const encodeJSONQuery: BulkQueryEncoder;
|
|
47
|
+
export declare const encodeFormQuery: BulkQueryEncoder;
|
|
48
|
+
export declare const encodeSpaceDelimitedQuery: BulkQueryEncoder;
|
|
49
|
+
export declare const encodePipeDelimitedQuery: BulkQueryEncoder;
|
|
50
|
+
export declare const encodeDeepObjectQuery: BulkQueryEncoder;
|
|
51
|
+
export declare function appendForm(fd: FormData, key: string, value: unknown, fileName?: string): void;
|
|
52
|
+
export declare function normalizeBlob(value: Pick<Blob, "arrayBuffer" | "type">): Promise<Blob>;
|
|
53
|
+
export {};
|
|
54
|
+
//# sourceMappingURL=encodings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encodings.d.ts","sourceRoot":"","sources":["../../src/lib/encodings.ts"],"names":[],"mappings":"AAOA,qBAAa,aAAc,SAAQ,KAAK;IACtC,YAAY,OAAO,EAAE,MAAM,EAG1B;CACF;AAED,wBAAgB,YAAY,CAC1B,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,OAAO,EACd,OAAO,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,YAAY,CAAC,EAAE,SAAS,GAAG,MAAM,CAAA;CAAE,GACjE,MAAM,GAAG,SAAS,CAoDpB;AAED,wBAAgB,WAAW,CACzB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,OAAO,EACd,OAAO,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,YAAY,CAAC,EAAE,SAAS,GAAG,MAAM,CAAA;CAAE,GACjE,MAAM,GAAG,SAAS,CAsCpB;AAED,KAAK,WAAW,GAAG,CACjB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,OAAO,EACd,OAAO,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,YAAY,CAAC,EAAE,SAAS,GAAG,MAAM,CAAA;CAAE,KAC/D,MAAM,GAAG,SAAS,CAAC;AA2DxB,eAAO,MAAM,UAAU,aAAmB,CAAC;AAC3C,eAAO,MAAM,oBAAoB,aAAmB,CAAC;AACrD,eAAO,MAAM,mBAAmB,aAAmB,CAAC;AAEpD,wBAAgB,cAAc,CAC5B,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,OAAO,EACd,OAAO,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,YAAY,CAAC,EAAE,SAAS,GAAG,MAAM,CAAA;CAAE,GACjE,MAAM,CAqCR;A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