{"_id":"@scayle/checkout-types","_rev":"6-8859ad6ad91f115ba66123ec9d503614","name":"@scayle/checkout-types","dist-tags":{"latest":"2.1.73"},"versions":{"0.0.1":{"name":"@scayle/checkout-types","version":"0.0.1","keywords":["typescript","types","scayle","ecommerce","checkout"],"author":{"name":"SCAYLE"},"license":"MIT","_id":"@scayle/checkout-types@0.0.1","maintainers":[{"name":"scayle_checkout_adamrousseau","email":"adam.rousseau@scayle.com"}],"homepage":"https://www.scayle.com","dist":{"shasum":"87333b6f4279c727b851dd12af09a6964c0cd950","tarball":"https://registry.npmjs.org/@scayle/checkout-types/-/checkout-types-0.0.1.tgz","fileCount":3,"integrity":"sha512-AmL7EeybLap/1g8bkLuvPWJ6xf4lYMFwu33rbYBfSW6+eM/VASCwUgncRUwUr0TfjfrExZ7dgCt6Gn7fVxvohg==","signatures":[{"sig":"MEUCIBlM6gmCB6XHh4MCthIvZ60AAV7jQXlwFV+6We2Sn0ioAiEAzV1e4FCxxxi448vKe1FgBfp7dnOP60hNSXm5kkKmTUg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":30212},"main":"index.d.ts","types":"index.d.ts","gitHead":"bc3dbfe911e8bb1afa08ac57d38c3bae21a9d952","private":false,"_npmUser":{"name":"scayle_checkout_adamrousseau","email":"adam.rousseau@scayle.com"},"_npmVersion":"10.9.2","description":"TypeScript definitions for SCAYLE Checkout","directories":{},"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"peerDependencies":{"typescript":">=4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/checkout-types_0.0.1_1761314512691_0.7638489331033409","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@scayle/checkout-types","version":"0.0.2","keywords":["typescript","types","scayle","ecommerce","checkout"],"author":{"name":"SCAYLE"},"license":"MIT","_id":"@scayle/checkout-types@0.0.2","maintainers":[{"name":"scayle_checkout_adamrousseau","email":"adam.rousseau@scayle.com"}],"homepage":"https://www.scayle.com","dist":{"shasum":"1b9fc6596ca622a02e7226e5b2a2c59093636836","tarball":"https://registry.npmjs.org/@scayle/checkout-types/-/checkout-types-0.0.2.tgz","fileCount":3,"integrity":"sha512-Lf5rGJD0yz6KcCY0v4JF76xRx+/ZxNV1ZZEFU/YmsvVzJ1EdsPGBRoeU6vvabwnJCwHuBT9Z2mRatZ/7zktf0Q==","signatures":[{"sig":"MEUCIQCQRb2oV5otJe1EdCMJo1w7ggKKAGdxDIBdC/XJdlQk3gIgKRBe3YhNFkl/oBKdXnDPLkaI1T7ltCXww/ohXCwaDH4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":30212},"main":"index.d.ts","types":"index.d.ts","gitHead":"bc3dbfe911e8bb1afa08ac57d38c3bae21a9d952","private":false,"_npmUser":{"name":"scayle_checkout_adamrousseau","email":"adam.rousseau@scayle.com"},"_npmVersion":"10.9.2","description":"TypeScript definitions for SCAYLE Checkout","directories":{},"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"peerDependencies":{"typescript":">=4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/checkout-types_0.0.2_1761314540979_0.3684862137232352","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@scayle/checkout-types","version":"0.1.0","keywords":["typescript","types","scayle","ecommerce","checkout"],"author":{"name":"SCAYLE"},"license":"MIT","_id":"@scayle/checkout-types@0.1.0","maintainers":[{"name":"scayle_checkout_adamrousseau","email":"adam.rousseau@scayle.com"}],"homepage":"https://www.scayle.com","dist":{"shasum":"f8aff1007f5dc4ccfbf7673e8008b9a1cfe6d92b","tarball":"https://registry.npmjs.org/@scayle/checkout-types/-/checkout-types-0.1.0.tgz","fileCount":3,"integrity":"sha512-nPm16Msx+b63rfYPodhVcDyMfb6CXhrqS8IkzJgXEnaXS1rW4UCGTpHha4hHxIRYWwlhr4vFvJq7eEz0gSb9xw==","signatures":[{"sig":"MEYCIQDBqVtzsJAIfN3FjOL8eXH5PsuKYj8Z0oUl2sH6xWYHlgIhAN4bEPcZlJUwfbX3/9M2NB9kkhz/9npklXUP5v32Q/lr","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":32221},"main":"./src/index.ts","types":"index.d.ts","gitHead":"3bda60c340486705b4aaded6e005db7e7591535e","private":false,"scripts":{"test":"echo \"Tests are not defined\"; exit 0"},"_npmUser":{"name":"scayle_checkout_adamrousseau","email":"adam.rousseau@scayle.com"},"_npmVersion":"10.9.2","description":"TypeScript definitions for SCAYLE Checkout","directories":{},"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"peerDependencies":{"typescript":">=4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/checkout-types_0.1.0_1762248940596_0.9096379374850565","host":"s3://npm-registry-packages-npm-production"}},"2.1.71":{"name":"@scayle/checkout-types","version":"2.1.71","keywords":["typescript","types","scayle","ecommerce","checkout"],"author":{"name":"SCAYLE"},"license":"MIT","_id":"@scayle/checkout-types@2.1.71","maintainers":[{"name":"scayle_checkout_adamrousseau","email":"adam.rousseau@scayle.com"}],"homepage":"https://www.scayle.com","dist":{"shasum":"8bcdf05d1dc18ada26e0a709e6fd7e30da4392db","tarball":"https://registry.npmjs.org/@scayle/checkout-types/-/checkout-types-2.1.71.tgz","fileCount":3,"integrity":"sha512-bnixPEXCIeRi6wkGB1Xui71lNj2e1dMezxsAqDXv3zyySiHlhxVPRnCMhB/yZQoSssXPRnyTQLigakS+GGrl7g==","signatures":[{"sig":"MEUCIQCK+3oLbYnlAwJ4RrWNfSYshL0pXJVaS5+/T28g9Hm0tQIgIZzf+gYmKenjUhG6+pSGhOV/OHRFXtrUR/eAf1zfJmw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":32394},"main":"./src/index.ts","types":"index.d.ts","gitHead":"3ded59b646fe1053758d2d1e7039f413b3cae054","private":false,"scripts":{"test":"echo \"Tests are not defined\"; exit 0"},"_npmUser":{"name":"scayle_checkout_adamrousseau","email":"adam.rousseau@scayle.com"},"_npmVersion":"10.9.2","description":"TypeScript definitions for SCAYLE Checkout","directories":{},"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"peerDependencies":{"typescript":">=4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/checkout-types_2.1.71_1763124654000_0.9709254436122223","host":"s3://npm-registry-packages-npm-production"}},"2.1.72":{"name":"@scayle/checkout-types","version":"2.1.72","keywords":["typescript","types","scayle","ecommerce","checkout"],"author":{"name":"SCAYLE"},"license":"MIT","_id":"@scayle/checkout-types@2.1.72","maintainers":[{"name":"scayle_checkout_adamrousseau","email":"adam.rousseau@scayle.com"}],"homepage":"https://www.scayle.com","dist":{"shasum":"983c53e7415abfc70f5d46a79d6396680a8d52ee","tarball":"https://registry.npmjs.org/@scayle/checkout-types/-/checkout-types-2.1.72.tgz","fileCount":3,"integrity":"sha512-XZRBIVKblRh4b5RA3G0Lso/kAVqVkrdGjWuP6dd6+aef34fnVSP/qCQ+kAm3spaw91IULwNTiVQMD4t7fkhpNA==","signatures":[{"sig":"MEYCIQDiCTv907WeXtJL4531Ag9jGtJPPN6i7K3j9MGqNzz0WwIhAKAFIJHTZn2Hz106PYvZEacYhkae/OY/U3Mdw7lZ8OP6","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":32517},"main":"./src/index.ts","types":"index.d.ts","gitHead":"1b8e4800ac6db319ef1a697b887f90dbf60b493e","private":false,"scripts":{"test":"echo \"Tests are not defined\"; exit 0"},"_npmUser":{"name":"scayle_checkout_adamrousseau","email":"adam.rousseau@scayle.com"},"_npmVersion":"11.6.2","description":"TypeScript definitions for SCAYLE Checkout","directories":{},"_nodeVersion":"24.11.1","_hasShrinkwrap":false,"peerDependencies":{"typescript":">=4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/checkout-types_2.1.72_1765806809314_0.8764881261955351","host":"s3://npm-registry-packages-npm-production"}},"2.1.73":{"name":"@scayle/checkout-types","version":"2.1.73","private":false,"description":"TypeScript definitions for SCAYLE Checkout","main":"./src/index.ts","types":"index.d.ts","keywords":["typescript","types","scayle","ecommerce","checkout"],"homepage":"https://www.scayle.com","author":{"name":"SCAYLE"},"license":"MIT","scripts":{"test":"echo \"Tests are not defined\"; exit 0"},"peerDependencies":{"typescript":">=4.0.0"},"gitHead":"5f21f8241c034327717456dcfc12862fc1cdc337","_id":"@scayle/checkout-types@2.1.73","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-5tHKLN2YBiAJFZjA+L98DPPtHYmvKHE2DW0LwMYtFdxGmOPCwULQWJp24sk8hnI9H03/OKvkSgcavV5kN0wBNQ==","shasum":"915e906efea735aabeb7a65a9c0b5ec1239aa12d","tarball":"https://registry.npmjs.org/@scayle/checkout-types/-/checkout-types-2.1.73.tgz","fileCount":3,"unpackedSize":43787,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHfkBGVFqQeANKUYlmstthWvqVdptN8DOVVSqGnX6RITAiEAvTbYOuVwg7XcIpo7sQhI6l7EWcX0BEc2Lk3qhkDG9SE="}]},"_npmUser":{"name":"scayle_checkout_adamrousseau","email":"adam.rousseau@scayle.com"},"directories":{},"maintainers":[{"name":"scayle_checkout_adamrousseau","email":"adam.rousseau@scayle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/checkout-types_2.1.73_1765982152676_0.5545344475893552"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-24T14:01:52.583Z","modified":"2025-12-17T14:35:53.028Z","0.0.1":"2025-10-24T14:01:52.878Z","0.0.2":"2025-10-24T14:02:21.152Z","0.1.0":"2025-11-04T09:35:40.785Z","2.1.71":"2025-11-14T12:50:54.220Z","2.1.72":"2025-12-15T13:53:29.442Z","2.1.73":"2025-12-17T14:35:52.812Z"},"author":{"name":"SCAYLE"},"license":"MIT","homepage":"https://www.scayle.com","keywords":["typescript","types","scayle","ecommerce","checkout"],"description":"TypeScript definitions for SCAYLE Checkout","maintainers":[{"name":"scayle_checkout_adamrousseau","email":"adam.rousseau@scayle.com"}],"readme":"# @scayle/checkout-types\n\n#### Documentation | Website\n\nThe SCAYLE **Checkout Types** library offers comprehensive TypeScript type definitions for developing SCAYLE applications and components.\n\n## What is Scayle ?\n\nSCAYLE is a full-featured e-commerce software solution that comes with flexible APIs. Within SCAYLE, you can manage all aspects of your shop, such as products, stocks, customers, and transactions.\n\nLearn more about SCAYLE's architecture and commerce modules in the Docs.\n\n## Installation\n\n```bash\nnpm i -S @scayle/checkout-types\n```\n\n## Usage\n\nAll types\n\n```typescript\nimport * as types from '@scayle/checkout-types';\n\n// Use the types in your application\nconst checkoutState: types.CheckoutState = {\n  // ... your checkout state\n};\n```\n\nIndividual types\n\n```typescript\nimport { CheckoutState, PaymentMethod, AddressForm, DynamicField } from '@scayle/checkout-types';\n\n// Use specific types\nconst checkoutState: CheckoutState = {\n  // ... your checkout state\n};\n```\n\n### SDK & Authentication Types\n\n```typescript\nimport type {\n  Scayle, // Main SDK type for window.scayle\n  RefreshTokenHook, // Token refresh hook\n  ExchangeAuthCodeHook, // Auth code exchange hook\n  AuthEvents, // Authentication events\n  DeviceType // Express checkout device type\n} from '@scayle/checkout-types';\n\n// Type the global window.scayle\ndeclare global {\n  interface Window {\n    scayle: Scayle;\n  }\n}\n\n// Implement custom auth hooks\nconst refreshTokenHook: RefreshTokenHook = async params => {\n  // Your implementation\n  return { accessToken: 'new-token' };\n};\n\n// Use SDK with full type safety\nwindow.scayle.auth.V3.init({\n  clientId: 123,\n  hooks: { refreshTokenHook, exchangeAuthCodeHook }\n});\n\n// Listen to events\nwindow.scayle.auth.V3.events.listen(AuthEvents.AUTH_SUCCESS, payload => {\n  console.log('Authenticated:', payload.accessToken);\n});\n```\n\n## Available Types\n\nThis package provides comprehensive TypeScript definitions for:\n\n### Checkout & Configuration\n\n- **Checkout**: Checkout state, steps, and flow types\n- **Payment**: Payment methods, providers, and processing\n- **Address**: Address forms and validation\n- **Basket**: Shopping cart and basket management\n- **Configuration**: App configuration and settings\n- **Validation**: Form validation and field types\n- **Dynamic Fields**: Dynamic form field definitions\n\n### SDK Types (NEW)\n\n- **Scayle SDK**: Main SDK type for `window.scayle`\n- **Authentication**: Auth hooks, requests, responses, events, and error types\n- **Express Checkout**: Express SDK types and device types\n- **Internal API**: Internal endpoints and event types\n- **Event System**: Event bus and event listener types\n\n## Other channels\n\n- LinkedIn\n- Jobs\n- SCAYLE\n\n## License\n\nLicensed under the MIT\n","readmeFilename":"README.md"}