@teez-sdk/teez-b2c-api 3.0.0 → 4.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/LICENSE +21 -0
- package/README.md +228 -114
- package/dist/_virtual/_rolldown/runtime.cjs +23 -0
- package/dist/api/auth/check-token/index.d.cts +2 -0
- package/dist/api/auth/check-token/index.d.mts +2 -0
- package/dist/api/auth/check-token/operation.cjs +25 -0
- package/dist/api/auth/check-token/operation.cjs.map +1 -0
- package/dist/api/auth/check-token/operation.d.cts +44 -0
- package/dist/api/auth/check-token/operation.d.mts +44 -0
- package/dist/api/auth/check-token/operation.mjs +25 -0
- package/dist/api/auth/check-token/operation.mjs.map +1 -0
- package/dist/api/auth/check-token/responses.cjs +19 -0
- package/dist/api/auth/check-token/responses.cjs.map +1 -0
- package/dist/api/auth/check-token/responses.mjs +17 -0
- package/dist/api/auth/check-token/responses.mjs.map +1 -0
- package/dist/api/auth/check-token/types.d.cts +17 -0
- package/dist/api/auth/check-token/types.d.mts +17 -0
- package/dist/api/auth/index.d.cts +7 -0
- package/dist/api/auth/index.d.mts +7 -0
- package/dist/api/auth/login/index.d.cts +2 -0
- package/dist/api/auth/login/index.d.mts +2 -0
- package/dist/api/auth/login/operation.cjs +27 -0
- package/dist/api/auth/login/operation.cjs.map +1 -0
- package/dist/api/auth/login/operation.d.cts +34 -0
- package/dist/api/auth/login/operation.d.mts +34 -0
- package/dist/api/auth/login/operation.mjs +27 -0
- package/dist/api/auth/login/operation.mjs.map +1 -0
- package/dist/api/auth/login/request.cjs +9 -0
- package/dist/api/auth/login/request.cjs.map +1 -0
- package/dist/api/auth/login/request.mjs +7 -0
- package/dist/api/auth/login/request.mjs.map +1 -0
- package/dist/api/auth/login/types.d.cts +17 -0
- package/dist/api/auth/login/types.d.mts +17 -0
- package/dist/api/auth/operations.cjs +13 -0
- package/dist/api/auth/operations.cjs.map +1 -0
- package/dist/api/auth/operations.d.cts +118 -0
- package/dist/api/auth/operations.d.mts +118 -0
- package/dist/api/auth/operations.mjs +13 -0
- package/dist/api/auth/operations.mjs.map +1 -0
- package/dist/api/auth/verify/index.d.cts +2 -0
- package/dist/api/auth/verify/index.d.mts +2 -0
- package/dist/api/auth/verify/operation.cjs +27 -0
- package/dist/api/auth/verify/operation.cjs.map +1 -0
- package/dist/api/auth/verify/operation.d.cts +54 -0
- package/dist/api/auth/verify/operation.d.mts +54 -0
- package/dist/api/auth/verify/operation.mjs +27 -0
- package/dist/api/auth/verify/operation.mjs.map +1 -0
- package/dist/api/auth/verify/request.cjs +12 -0
- package/dist/api/auth/verify/request.cjs.map +1 -0
- package/dist/api/auth/verify/request.mjs +10 -0
- package/dist/api/auth/verify/request.mjs.map +1 -0
- package/dist/api/auth/verify/responses.cjs +19 -0
- package/dist/api/auth/verify/responses.cjs.map +1 -0
- package/dist/api/auth/verify/responses.mjs +17 -0
- package/dist/api/auth/verify/responses.mjs.map +1 -0
- package/dist/api/auth/verify/types.d.cts +17 -0
- package/dist/api/auth/verify/types.d.mts +17 -0
- package/dist/api/banners/index.d.cts +3 -0
- package/dist/api/banners/index.d.mts +3 -0
- package/dist/api/banners/list/index.d.cts +2 -0
- package/dist/api/banners/list/index.d.mts +2 -0
- package/dist/api/banners/list/operation.cjs +23 -0
- package/dist/api/banners/list/operation.cjs.map +1 -0
- package/dist/api/banners/list/operation.d.cts +71 -0
- package/dist/api/banners/list/operation.d.mts +71 -0
- package/dist/api/banners/list/operation.mjs +23 -0
- package/dist/api/banners/list/operation.mjs.map +1 -0
- package/dist/api/banners/list/request.cjs +9 -0
- package/dist/api/banners/list/request.cjs.map +1 -0
- package/dist/api/banners/list/request.mjs +7 -0
- package/dist/api/banners/list/request.mjs.map +1 -0
- package/dist/api/banners/list/responses.cjs +30 -0
- package/dist/api/banners/list/responses.cjs.map +1 -0
- package/dist/api/banners/list/responses.mjs +28 -0
- package/dist/api/banners/list/responses.mjs.map +1 -0
- package/dist/api/banners/list/types.d.cts +17 -0
- package/dist/api/banners/list/types.d.mts +17 -0
- package/dist/api/banners/operations.cjs +6 -0
- package/dist/api/banners/operations.cjs.map +1 -0
- package/dist/api/banners/operations.d.cts +73 -0
- package/dist/api/banners/operations.d.mts +73 -0
- package/dist/api/banners/operations.mjs +7 -0
- package/dist/api/banners/operations.mjs.map +1 -0
- package/dist/api/categories/get/index.d.cts +2 -0
- package/dist/api/categories/get/index.d.mts +2 -0
- package/dist/api/categories/get/operation.cjs +25 -0
- package/dist/api/categories/get/operation.cjs.map +1 -0
- package/dist/api/categories/get/operation.d.cts +31 -0
- package/dist/api/categories/get/operation.d.mts +31 -0
- package/dist/api/categories/get/operation.mjs +25 -0
- package/dist/api/categories/get/operation.mjs.map +1 -0
- package/dist/api/categories/get/request.cjs +9 -0
- package/dist/api/categories/get/request.cjs.map +1 -0
- package/dist/api/categories/get/request.mjs +7 -0
- package/dist/api/categories/get/request.mjs.map +1 -0
- package/dist/api/categories/get/responses.cjs +22 -0
- package/dist/api/categories/get/responses.cjs.map +1 -0
- package/dist/api/categories/get/responses.d.cts +22 -0
- package/dist/api/categories/get/responses.d.mts +22 -0
- package/dist/api/categories/get/responses.mjs +20 -0
- package/dist/api/categories/get/responses.mjs.map +1 -0
- package/dist/api/categories/get/types.d.cts +17 -0
- package/dist/api/categories/get/types.d.mts +17 -0
- package/dist/api/categories/get-parents/index.d.cts +2 -0
- package/dist/api/categories/get-parents/index.d.mts +2 -0
- package/dist/api/categories/get-parents/operation.cjs +23 -0
- package/dist/api/categories/get-parents/operation.cjs.map +1 -0
- package/dist/api/categories/get-parents/operation.d.cts +29 -0
- package/dist/api/categories/get-parents/operation.d.mts +29 -0
- package/dist/api/categories/get-parents/operation.mjs +23 -0
- package/dist/api/categories/get-parents/operation.mjs.map +1 -0
- package/dist/api/categories/get-parents/request.cjs +12 -0
- package/dist/api/categories/get-parents/request.cjs.map +1 -0
- package/dist/api/categories/get-parents/request.mjs +10 -0
- package/dist/api/categories/get-parents/request.mjs.map +1 -0
- package/dist/api/categories/get-parents/responses.cjs +20 -0
- package/dist/api/categories/get-parents/responses.cjs.map +1 -0
- package/dist/api/categories/get-parents/responses.d.cts +18 -0
- package/dist/api/categories/get-parents/responses.d.mts +18 -0
- package/dist/api/categories/get-parents/responses.mjs +18 -0
- package/dist/api/categories/get-parents/responses.mjs.map +1 -0
- package/dist/api/categories/get-parents/types.d.cts +17 -0
- package/dist/api/categories/get-parents/types.d.mts +17 -0
- package/dist/api/categories/index.d.cts +7 -0
- package/dist/api/categories/index.d.mts +7 -0
- package/dist/api/categories/list/index.d.cts +2 -0
- package/dist/api/categories/list/index.d.mts +2 -0
- package/dist/api/categories/list/operation.cjs +21 -0
- package/dist/api/categories/list/operation.cjs.map +1 -0
- package/dist/api/categories/list/operation.d.cts +40 -0
- package/dist/api/categories/list/operation.d.mts +40 -0
- package/dist/api/categories/list/operation.mjs +21 -0
- package/dist/api/categories/list/operation.mjs.map +1 -0
- package/dist/api/categories/list/responses.cjs +17 -0
- package/dist/api/categories/list/responses.cjs.map +1 -0
- package/dist/api/categories/list/responses.mjs +15 -0
- package/dist/api/categories/list/responses.mjs.map +1 -0
- package/dist/api/categories/list/types.d.cts +17 -0
- package/dist/api/categories/list/types.d.mts +17 -0
- package/dist/api/categories/operations.cjs +13 -0
- package/dist/api/categories/operations.cjs.map +1 -0
- package/dist/api/categories/operations.d.cts +86 -0
- package/dist/api/categories/operations.d.mts +86 -0
- package/dist/api/categories/operations.mjs +13 -0
- package/dist/api/categories/operations.mjs.map +1 -0
- package/dist/api/collections/get/index.d.cts +2 -0
- package/dist/api/collections/get/index.d.mts +2 -0
- package/dist/api/collections/get/operation.cjs +25 -0
- package/dist/api/collections/get/operation.cjs.map +1 -0
- package/dist/api/collections/get/operation.d.cts +44 -0
- package/dist/api/collections/get/operation.d.mts +44 -0
- package/dist/api/collections/get/operation.mjs +25 -0
- package/dist/api/collections/get/operation.mjs.map +1 -0
- package/dist/api/collections/get/request.cjs +9 -0
- package/dist/api/collections/get/request.cjs.map +1 -0
- package/dist/api/collections/get/request.mjs +7 -0
- package/dist/api/collections/get/request.mjs.map +1 -0
- package/dist/api/collections/get/responses.cjs +17 -0
- package/dist/api/collections/get/responses.cjs.map +1 -0
- package/dist/api/collections/get/responses.mjs +15 -0
- package/dist/api/collections/get/responses.mjs.map +1 -0
- package/dist/api/collections/get/types.d.cts +17 -0
- package/dist/api/collections/get/types.d.mts +17 -0
- package/dist/api/collections/get-skus/index.d.cts +2 -0
- package/dist/api/collections/get-skus/index.d.mts +2 -0
- package/dist/api/collections/get-skus/operation.cjs +23 -0
- package/dist/api/collections/get-skus/operation.cjs.map +1 -0
- package/dist/api/collections/get-skus/operation.d.cts +241 -0
- package/dist/api/collections/get-skus/operation.d.mts +241 -0
- package/dist/api/collections/get-skus/operation.mjs +23 -0
- package/dist/api/collections/get-skus/operation.mjs.map +1 -0
- package/dist/api/collections/get-skus/request.cjs +22 -0
- package/dist/api/collections/get-skus/request.cjs.map +1 -0
- package/dist/api/collections/get-skus/request.mjs +20 -0
- package/dist/api/collections/get-skus/request.mjs.map +1 -0
- package/dist/api/collections/get-skus/responses.cjs +41 -0
- package/dist/api/collections/get-skus/responses.cjs.map +1 -0
- package/dist/api/collections/get-skus/responses.mjs +39 -0
- package/dist/api/collections/get-skus/responses.mjs.map +1 -0
- package/dist/api/collections/get-skus/types.d.cts +17 -0
- package/dist/api/collections/get-skus/types.d.mts +17 -0
- package/dist/api/collections/index.d.cts +7 -0
- package/dist/api/collections/index.d.mts +7 -0
- package/dist/api/collections/list/index.d.cts +2 -0
- package/dist/api/collections/list/index.d.mts +2 -0
- package/dist/api/collections/list/operation.cjs +23 -0
- package/dist/api/collections/list/operation.cjs.map +1 -0
- package/dist/api/collections/list/operation.d.cts +44 -0
- package/dist/api/collections/list/operation.d.mts +44 -0
- package/dist/api/collections/list/operation.mjs +23 -0
- package/dist/api/collections/list/operation.mjs.map +1 -0
- package/dist/api/collections/list/request.cjs +12 -0
- package/dist/api/collections/list/request.cjs.map +1 -0
- package/dist/api/collections/list/request.mjs +10 -0
- package/dist/api/collections/list/request.mjs.map +1 -0
- package/dist/api/collections/list/responses.cjs +16 -0
- package/dist/api/collections/list/responses.cjs.map +1 -0
- package/dist/api/collections/list/responses.mjs +14 -0
- package/dist/api/collections/list/responses.mjs.map +1 -0
- package/dist/api/collections/list/types.d.cts +17 -0
- package/dist/api/collections/list/types.d.mts +17 -0
- package/dist/api/collections/operations.cjs +13 -0
- package/dist/api/collections/operations.cjs.map +1 -0
- package/dist/api/collections/operations.d.cts +314 -0
- package/dist/api/collections/operations.d.mts +314 -0
- package/dist/api/collections/operations.mjs +13 -0
- package/dist/api/collections/operations.mjs.map +1 -0
- package/dist/api/favorites/add/index.d.cts +2 -0
- package/dist/api/favorites/add/index.d.mts +2 -0
- package/dist/api/favorites/add/operation.cjs +27 -0
- package/dist/api/favorites/add/operation.cjs.map +1 -0
- package/dist/api/favorites/add/operation.d.cts +30 -0
- package/dist/api/favorites/add/operation.d.mts +30 -0
- package/dist/api/favorites/add/operation.mjs +27 -0
- package/dist/api/favorites/add/operation.mjs.map +1 -0
- package/dist/api/favorites/add/request.cjs +9 -0
- package/dist/api/favorites/add/request.cjs.map +1 -0
- package/dist/api/favorites/add/request.mjs +7 -0
- package/dist/api/favorites/add/request.mjs.map +1 -0
- package/dist/api/favorites/add/types.d.cts +17 -0
- package/dist/api/favorites/add/types.d.mts +17 -0
- package/dist/api/favorites/get-ids/index.d.cts +2 -0
- package/dist/api/favorites/get-ids/index.d.mts +2 -0
- package/dist/api/favorites/get-ids/operation.cjs +25 -0
- package/dist/api/favorites/get-ids/operation.cjs.map +1 -0
- package/dist/api/favorites/get-ids/operation.d.cts +30 -0
- package/dist/api/favorites/get-ids/operation.d.mts +30 -0
- package/dist/api/favorites/get-ids/operation.mjs +25 -0
- package/dist/api/favorites/get-ids/operation.mjs.map +1 -0
- package/dist/api/favorites/get-ids/responses.cjs +9 -0
- package/dist/api/favorites/get-ids/responses.cjs.map +1 -0
- package/dist/api/favorites/get-ids/responses.mjs +7 -0
- package/dist/api/favorites/get-ids/responses.mjs.map +1 -0
- package/dist/api/favorites/get-ids/types.d.cts +17 -0
- package/dist/api/favorites/get-ids/types.d.mts +17 -0
- package/dist/api/favorites/index.d.cts +7 -0
- package/dist/api/favorites/index.d.mts +7 -0
- package/dist/api/favorites/operations.cjs +13 -0
- package/dist/api/favorites/operations.cjs.map +1 -0
- package/dist/api/favorites/operations.d.cts +76 -0
- package/dist/api/favorites/operations.d.mts +76 -0
- package/dist/api/favorites/operations.mjs +13 -0
- package/dist/api/favorites/operations.mjs.map +1 -0
- package/dist/api/favorites/remove/index.d.cts +2 -0
- package/dist/api/favorites/remove/index.d.mts +2 -0
- package/dist/api/favorites/remove/operation.cjs +27 -0
- package/dist/api/favorites/remove/operation.cjs.map +1 -0
- package/dist/api/favorites/remove/operation.d.cts +30 -0
- package/dist/api/favorites/remove/operation.d.mts +30 -0
- package/dist/api/favorites/remove/operation.mjs +27 -0
- package/dist/api/favorites/remove/operation.mjs.map +1 -0
- package/dist/api/favorites/remove/request.cjs +9 -0
- package/dist/api/favorites/remove/request.cjs.map +1 -0
- package/dist/api/favorites/remove/request.mjs +7 -0
- package/dist/api/favorites/remove/request.mjs.map +1 -0
- package/dist/api/favorites/remove/types.d.cts +17 -0
- package/dist/api/favorites/remove/types.d.mts +17 -0
- package/dist/api/feature-flags/index.d.cts +3 -0
- package/dist/api/feature-flags/index.d.mts +3 -0
- package/dist/api/feature-flags/list/index.d.cts +2 -0
- package/dist/api/feature-flags/list/index.d.mts +2 -0
- package/dist/api/feature-flags/list/operation.cjs +21 -0
- package/dist/api/feature-flags/list/operation.cjs.map +1 -0
- package/dist/api/feature-flags/list/operation.d.cts +28 -0
- package/dist/api/feature-flags/list/operation.d.mts +28 -0
- package/dist/api/feature-flags/list/operation.mjs +21 -0
- package/dist/api/feature-flags/list/operation.mjs.map +1 -0
- package/dist/api/feature-flags/list/responses.cjs +13 -0
- package/dist/api/feature-flags/list/responses.cjs.map +1 -0
- package/dist/api/feature-flags/list/responses.mjs +11 -0
- package/dist/api/feature-flags/list/responses.mjs.map +1 -0
- package/dist/api/feature-flags/list/types.d.cts +17 -0
- package/dist/api/feature-flags/list/types.d.mts +17 -0
- package/dist/api/feature-flags/operations.cjs +6 -0
- package/dist/api/feature-flags/operations.cjs.map +1 -0
- package/dist/api/feature-flags/operations.d.cts +30 -0
- package/dist/api/feature-flags/operations.d.mts +30 -0
- package/dist/api/feature-flags/operations.mjs +7 -0
- package/dist/api/feature-flags/operations.mjs.map +1 -0
- package/dist/api/products/autocomplete/index.d.cts +2 -0
- package/dist/api/products/autocomplete/index.d.mts +2 -0
- package/dist/api/products/autocomplete/operation.cjs +23 -0
- package/dist/api/products/autocomplete/operation.cjs.map +1 -0
- package/dist/api/products/autocomplete/operation.d.cts +35 -0
- package/dist/api/products/autocomplete/operation.d.mts +35 -0
- package/dist/api/products/autocomplete/operation.mjs +23 -0
- package/dist/api/products/autocomplete/operation.mjs.map +1 -0
- package/dist/api/products/autocomplete/request.cjs +9 -0
- package/dist/api/products/autocomplete/request.cjs.map +1 -0
- package/dist/api/products/autocomplete/request.mjs +7 -0
- package/dist/api/products/autocomplete/request.mjs.map +1 -0
- package/dist/api/products/autocomplete/responses.cjs +13 -0
- package/dist/api/products/autocomplete/responses.cjs.map +1 -0
- package/dist/api/products/autocomplete/responses.mjs +11 -0
- package/dist/api/products/autocomplete/responses.mjs.map +1 -0
- package/dist/api/products/autocomplete/types.d.cts +17 -0
- package/dist/api/products/autocomplete/types.d.mts +17 -0
- package/dist/api/products/get-reviews/index.d.cts +2 -0
- package/dist/api/products/get-reviews/index.d.mts +2 -0
- package/dist/api/products/get-reviews/operation.cjs +26 -0
- package/dist/api/products/get-reviews/operation.cjs.map +1 -0
- package/dist/api/products/get-reviews/operation.d.cts +85 -0
- package/dist/api/products/get-reviews/operation.d.mts +85 -0
- package/dist/api/products/get-reviews/operation.mjs +26 -0
- package/dist/api/products/get-reviews/operation.mjs.map +1 -0
- package/dist/api/products/get-reviews/request.cjs +14 -0
- package/dist/api/products/get-reviews/request.cjs.map +1 -0
- package/dist/api/products/get-reviews/request.mjs +11 -0
- package/dist/api/products/get-reviews/request.mjs.map +1 -0
- package/dist/api/products/get-reviews/responses.cjs +20 -0
- package/dist/api/products/get-reviews/responses.cjs.map +1 -0
- package/dist/api/products/get-reviews/responses.mjs +18 -0
- package/dist/api/products/get-reviews/responses.mjs.map +1 -0
- package/dist/api/products/get-reviews/types.d.cts +17 -0
- package/dist/api/products/get-reviews/types.d.mts +17 -0
- package/dist/api/products/get-sort-options/index.d.cts +2 -0
- package/dist/api/products/get-sort-options/index.d.mts +2 -0
- package/dist/api/products/get-sort-options/operation.cjs +23 -0
- package/dist/api/products/get-sort-options/operation.cjs.map +1 -0
- package/dist/api/products/get-sort-options/operation.d.cts +37 -0
- package/dist/api/products/get-sort-options/operation.d.mts +37 -0
- package/dist/api/products/get-sort-options/operation.mjs +23 -0
- package/dist/api/products/get-sort-options/operation.mjs.map +1 -0
- package/dist/api/products/get-sort-options/request.cjs +12 -0
- package/dist/api/products/get-sort-options/request.cjs.map +1 -0
- package/dist/api/products/get-sort-options/request.mjs +10 -0
- package/dist/api/products/get-sort-options/request.mjs.map +1 -0
- package/dist/api/products/get-sort-options/responses.cjs +21 -0
- package/dist/api/products/get-sort-options/responses.cjs.map +1 -0
- package/dist/api/products/get-sort-options/responses.mjs +19 -0
- package/dist/api/products/get-sort-options/responses.mjs.map +1 -0
- package/dist/api/products/get-sort-options/types.d.cts +17 -0
- package/dist/api/products/get-sort-options/types.d.mts +17 -0
- package/dist/api/products/index.d.cts +9 -0
- package/dist/api/products/index.d.mts +9 -0
- package/dist/api/products/list/index.d.cts +2 -0
- package/dist/api/products/list/index.d.mts +2 -0
- package/dist/api/products/list/operation.cjs +23 -0
- package/dist/api/products/list/operation.cjs.map +1 -0
- package/dist/api/products/list/operation.d.cts +287 -0
- package/dist/api/products/list/operation.d.mts +287 -0
- package/dist/api/products/list/operation.mjs +23 -0
- package/dist/api/products/list/operation.mjs.map +1 -0
- package/dist/api/products/list/request.cjs +27 -0
- package/dist/api/products/list/request.cjs.map +1 -0
- package/dist/api/products/list/request.mjs +25 -0
- package/dist/api/products/list/request.mjs.map +1 -0
- package/dist/api/products/list/responses.cjs +49 -0
- package/dist/api/products/list/responses.cjs.map +1 -0
- package/dist/api/products/list/responses.mjs +47 -0
- package/dist/api/products/list/responses.mjs.map +1 -0
- package/dist/api/products/list/types.d.cts +17 -0
- package/dist/api/products/list/types.d.mts +17 -0
- package/dist/api/products/operations.cjs +15 -0
- package/dist/api/products/operations.cjs.map +1 -0
- package/dist/api/products/operations.d.cts +422 -0
- package/dist/api/products/operations.d.mts +422 -0
- package/dist/api/products/operations.mjs +15 -0
- package/dist/api/products/operations.mjs.map +1 -0
- package/dist/api/promo/index.d.cts +3 -0
- package/dist/api/promo/index.d.mts +3 -0
- package/dist/api/promo/list/index.d.cts +2 -0
- package/dist/api/promo/list/index.d.mts +2 -0
- package/dist/api/promo/list/operation.cjs +21 -0
- package/dist/api/promo/list/operation.cjs.map +1 -0
- package/dist/api/promo/list/operation.d.cts +41 -0
- package/dist/api/promo/list/operation.d.mts +41 -0
- package/dist/api/promo/list/operation.mjs +21 -0
- package/dist/api/promo/list/operation.mjs.map +1 -0
- package/dist/api/promo/list/responses.cjs +18 -0
- package/dist/api/promo/list/responses.cjs.map +1 -0
- package/dist/api/promo/list/responses.mjs +16 -0
- package/dist/api/promo/list/responses.mjs.map +1 -0
- package/dist/api/promo/list/types.d.cts +17 -0
- package/dist/api/promo/list/types.d.mts +17 -0
- package/dist/api/promo/operations.cjs +6 -0
- package/dist/api/promo/operations.cjs.map +1 -0
- package/dist/api/promo/operations.d.cts +43 -0
- package/dist/api/promo/operations.d.mts +43 -0
- package/dist/api/promo/operations.mjs +7 -0
- package/dist/api/promo/operations.mjs.map +1 -0
- package/dist/api/promocodes/index.d.cts +3 -0
- package/dist/api/promocodes/index.d.mts +3 -0
- package/dist/api/promocodes/operations.cjs +6 -0
- package/dist/api/promocodes/operations.cjs.map +1 -0
- package/dist/api/promocodes/operations.d.cts +106 -0
- package/dist/api/promocodes/operations.d.mts +106 -0
- package/dist/api/promocodes/operations.mjs +7 -0
- package/dist/api/promocodes/operations.mjs.map +1 -0
- package/dist/api/promocodes/validate/index.d.cts +2 -0
- package/dist/api/promocodes/validate/index.d.mts +2 -0
- package/dist/api/promocodes/validate/operation.cjs +27 -0
- package/dist/api/promocodes/validate/operation.cjs.map +1 -0
- package/dist/api/promocodes/validate/operation.d.cts +104 -0
- package/dist/api/promocodes/validate/operation.d.mts +104 -0
- package/dist/api/promocodes/validate/operation.mjs +27 -0
- package/dist/api/promocodes/validate/operation.mjs.map +1 -0
- package/dist/api/promocodes/validate/request.cjs +21 -0
- package/dist/api/promocodes/validate/request.cjs.map +1 -0
- package/dist/api/promocodes/validate/request.mjs +19 -0
- package/dist/api/promocodes/validate/request.mjs.map +1 -0
- package/dist/api/promocodes/validate/responses.cjs +27 -0
- package/dist/api/promocodes/validate/responses.cjs.map +1 -0
- package/dist/api/promocodes/validate/responses.mjs +25 -0
- package/dist/api/promocodes/validate/responses.mjs.map +1 -0
- package/dist/api/promocodes/validate/types.d.cts +17 -0
- package/dist/api/promocodes/validate/types.d.mts +17 -0
- package/dist/api/shops/get/index.d.cts +2 -0
- package/dist/api/shops/get/index.d.mts +2 -0
- package/dist/api/shops/get/operation.cjs +25 -0
- package/dist/api/shops/get/operation.cjs.map +1 -0
- package/dist/api/shops/get/operation.d.cts +95 -0
- package/dist/api/shops/get/operation.d.mts +95 -0
- package/dist/api/shops/get/operation.mjs +25 -0
- package/dist/api/shops/get/operation.mjs.map +1 -0
- package/dist/api/shops/get/request.cjs +9 -0
- package/dist/api/shops/get/request.cjs.map +1 -0
- package/dist/api/shops/get/request.mjs +7 -0
- package/dist/api/shops/get/request.mjs.map +1 -0
- package/dist/api/shops/get/responses.cjs +34 -0
- package/dist/api/shops/get/responses.cjs.map +1 -0
- package/dist/api/shops/get/responses.mjs +32 -0
- package/dist/api/shops/get/responses.mjs.map +1 -0
- package/dist/api/shops/get/types.d.cts +17 -0
- package/dist/api/shops/get/types.d.mts +17 -0
- package/dist/api/shops/get-monobrand/index.d.cts +2 -0
- package/dist/api/shops/get-monobrand/index.d.mts +2 -0
- package/dist/api/shops/get-monobrand/operation.cjs +23 -0
- package/dist/api/shops/get-monobrand/operation.cjs.map +1 -0
- package/dist/api/shops/get-monobrand/operation.d.cts +56 -0
- package/dist/api/shops/get-monobrand/operation.d.mts +56 -0
- package/dist/api/shops/get-monobrand/operation.mjs +23 -0
- package/dist/api/shops/get-monobrand/operation.mjs.map +1 -0
- package/dist/api/shops/get-monobrand/request.cjs +13 -0
- package/dist/api/shops/get-monobrand/request.cjs.map +1 -0
- package/dist/api/shops/get-monobrand/request.mjs +11 -0
- package/dist/api/shops/get-monobrand/request.mjs.map +1 -0
- package/dist/api/shops/get-monobrand/responses.cjs +17 -0
- package/dist/api/shops/get-monobrand/responses.cjs.map +1 -0
- package/dist/api/shops/get-monobrand/responses.mjs +15 -0
- package/dist/api/shops/get-monobrand/responses.mjs.map +1 -0
- package/dist/api/shops/get-monobrand/types.d.cts +17 -0
- package/dist/api/shops/get-monobrand/types.d.mts +17 -0
- package/dist/api/shops/get-products/index.d.cts +2 -0
- package/dist/api/shops/get-products/index.d.mts +2 -0
- package/dist/api/shops/get-products/operation.cjs +26 -0
- package/dist/api/shops/get-products/operation.cjs.map +1 -0
- package/dist/api/shops/get-products/operation.d.cts +266 -0
- package/dist/api/shops/get-products/operation.d.mts +266 -0
- package/dist/api/shops/get-products/operation.mjs +26 -0
- package/dist/api/shops/get-products/operation.mjs.map +1 -0
- package/dist/api/shops/get-products/request.cjs +27 -0
- package/dist/api/shops/get-products/request.cjs.map +1 -0
- package/dist/api/shops/get-products/request.mjs +24 -0
- package/dist/api/shops/get-products/request.mjs.map +1 -0
- package/dist/api/shops/get-products/responses.cjs +43 -0
- package/dist/api/shops/get-products/responses.cjs.map +1 -0
- package/dist/api/shops/get-products/responses.mjs +41 -0
- package/dist/api/shops/get-products/responses.mjs.map +1 -0
- package/dist/api/shops/get-products/types.d.cts +17 -0
- package/dist/api/shops/get-products/types.d.mts +17 -0
- package/dist/api/shops/index.d.cts +7 -0
- package/dist/api/shops/index.d.mts +7 -0
- package/dist/api/shops/operations.cjs +13 -0
- package/dist/api/shops/operations.cjs.map +1 -0
- package/dist/api/shops/operations.d.cts +402 -0
- package/dist/api/shops/operations.d.mts +402 -0
- package/dist/api/shops/operations.mjs +13 -0
- package/dist/api/shops/operations.mjs.map +1 -0
- package/dist/api/sku/get/index.d.cts +2 -0
- package/dist/api/sku/get/index.d.mts +2 -0
- package/dist/api/sku/get/operation.cjs +25 -0
- package/dist/api/sku/get/operation.cjs.map +1 -0
- package/dist/api/sku/get/operation.d.cts +275 -0
- package/dist/api/sku/get/operation.d.mts +275 -0
- package/dist/api/sku/get/operation.mjs +25 -0
- package/dist/api/sku/get/operation.mjs.map +1 -0
- package/dist/api/sku/get/request.cjs +9 -0
- package/dist/api/sku/get/request.cjs.map +1 -0
- package/dist/api/sku/get/request.mjs +7 -0
- package/dist/api/sku/get/request.mjs.map +1 -0
- package/dist/api/sku/get/responses.cjs +89 -0
- package/dist/api/sku/get/responses.cjs.map +1 -0
- package/dist/api/sku/get/responses.mjs +87 -0
- package/dist/api/sku/get/responses.mjs.map +1 -0
- package/dist/api/sku/get/types.d.cts +17 -0
- package/dist/api/sku/get/types.d.mts +17 -0
- package/dist/api/sku/get-collections/index.d.cts +2 -0
- package/dist/api/sku/get-collections/index.d.mts +2 -0
- package/dist/api/sku/get-collections/operation.cjs +25 -0
- package/dist/api/sku/get-collections/operation.cjs.map +1 -0
- package/dist/api/sku/get-collections/operation.d.cts +51 -0
- package/dist/api/sku/get-collections/operation.d.mts +51 -0
- package/dist/api/sku/get-collections/operation.mjs +25 -0
- package/dist/api/sku/get-collections/operation.mjs.map +1 -0
- package/dist/api/sku/get-collections/request.cjs +9 -0
- package/dist/api/sku/get-collections/request.cjs.map +1 -0
- package/dist/api/sku/get-collections/request.mjs +7 -0
- package/dist/api/sku/get-collections/request.mjs.map +1 -0
- package/dist/api/sku/get-collections/responses.cjs +17 -0
- package/dist/api/sku/get-collections/responses.cjs.map +1 -0
- package/dist/api/sku/get-collections/responses.mjs +15 -0
- package/dist/api/sku/get-collections/responses.mjs.map +1 -0
- package/dist/api/sku/get-collections/types.d.cts +17 -0
- package/dist/api/sku/get-collections/types.d.mts +17 -0
- package/dist/api/sku/get-review-available/index.d.cts +2 -0
- package/dist/api/sku/get-review-available/index.d.mts +2 -0
- package/dist/api/sku/get-review-available/operation.cjs +29 -0
- package/dist/api/sku/get-review-available/operation.cjs.map +1 -0
- package/dist/api/sku/get-review-available/operation.d.cts +43 -0
- package/dist/api/sku/get-review-available/operation.d.mts +43 -0
- package/dist/api/sku/get-review-available/operation.mjs +29 -0
- package/dist/api/sku/get-review-available/operation.mjs.map +1 -0
- package/dist/api/sku/get-review-available/request.cjs +9 -0
- package/dist/api/sku/get-review-available/request.cjs.map +1 -0
- package/dist/api/sku/get-review-available/request.mjs +7 -0
- package/dist/api/sku/get-review-available/request.mjs.map +1 -0
- package/dist/api/sku/get-review-available/responses.cjs +12 -0
- package/dist/api/sku/get-review-available/responses.cjs.map +1 -0
- package/dist/api/sku/get-review-available/responses.mjs +10 -0
- package/dist/api/sku/get-review-available/responses.mjs.map +1 -0
- package/dist/api/sku/get-review-available/types.d.cts +17 -0
- package/dist/api/sku/get-review-available/types.d.mts +17 -0
- package/dist/api/sku/get-similar/index.d.cts +2 -0
- package/dist/api/sku/get-similar/index.d.mts +2 -0
- package/dist/api/sku/get-similar/operation.cjs +23 -0
- package/dist/api/sku/get-similar/operation.cjs.map +1 -0
- package/dist/api/sku/get-similar/operation.d.cts +109 -0
- package/dist/api/sku/get-similar/operation.d.mts +109 -0
- package/dist/api/sku/get-similar/operation.mjs +23 -0
- package/dist/api/sku/get-similar/operation.mjs.map +1 -0
- package/dist/api/sku/get-similar/request.cjs +13 -0
- package/dist/api/sku/get-similar/request.cjs.map +1 -0
- package/dist/api/sku/get-similar/request.mjs +11 -0
- package/dist/api/sku/get-similar/request.mjs.map +1 -0
- package/dist/api/sku/get-similar/responses.cjs +31 -0
- package/dist/api/sku/get-similar/responses.cjs.map +1 -0
- package/dist/api/sku/get-similar/responses.mjs +29 -0
- package/dist/api/sku/get-similar/responses.mjs.map +1 -0
- package/dist/api/sku/get-similar/types.d.cts +17 -0
- package/dist/api/sku/get-similar/types.d.mts +17 -0
- package/dist/api/sku/index.d.cts +9 -0
- package/dist/api/sku/index.d.mts +9 -0
- package/dist/api/sku/operations.cjs +15 -0
- package/dist/api/sku/operations.cjs.map +1 -0
- package/dist/api/sku/operations.d.cts +455 -0
- package/dist/api/sku/operations.d.mts +455 -0
- package/dist/api/sku/operations.mjs +15 -0
- package/dist/api/sku/operations.mjs.map +1 -0
- package/dist/api/users/index.d.cts +5 -0
- package/dist/api/users/index.d.mts +5 -0
- package/dist/api/users/operations.cjs +11 -0
- package/dist/api/users/operations.cjs.map +1 -0
- package/dist/api/users/operations.d.cts +96 -0
- package/dist/api/users/operations.d.mts +96 -0
- package/dist/api/users/operations.mjs +11 -0
- package/dist/api/users/operations.mjs.map +1 -0
- package/dist/api/users/register-device/index.d.cts +2 -0
- package/dist/api/users/register-device/index.d.mts +2 -0
- package/dist/api/users/register-device/operation.cjs +28 -0
- package/dist/api/users/register-device/operation.cjs.map +1 -0
- package/dist/api/users/register-device/operation.d.cts +61 -0
- package/dist/api/users/register-device/operation.d.mts +61 -0
- package/dist/api/users/register-device/operation.mjs +28 -0
- package/dist/api/users/register-device/operation.mjs.map +1 -0
- package/dist/api/users/register-device/request.cjs +14 -0
- package/dist/api/users/register-device/request.cjs.map +1 -0
- package/dist/api/users/register-device/request.mjs +12 -0
- package/dist/api/users/register-device/request.mjs.map +1 -0
- package/dist/api/users/register-device/types.d.cts +17 -0
- package/dist/api/users/register-device/types.d.mts +17 -0
- package/dist/api/users/update-language/index.d.cts +2 -0
- package/dist/api/users/update-language/index.d.mts +2 -0
- package/dist/api/users/update-language/operation.cjs +27 -0
- package/dist/api/users/update-language/operation.cjs.map +1 -0
- package/dist/api/users/update-language/operation.d.cts +41 -0
- package/dist/api/users/update-language/operation.d.mts +41 -0
- package/dist/api/users/update-language/operation.mjs +27 -0
- package/dist/api/users/update-language/operation.mjs.map +1 -0
- package/dist/api/users/update-language/request.cjs +11 -0
- package/dist/api/users/update-language/request.cjs.map +1 -0
- package/dist/api/users/update-language/request.mjs +8 -0
- package/dist/api/users/update-language/request.mjs.map +1 -0
- package/dist/api/users/update-language/responses.cjs +14 -0
- package/dist/api/users/update-language/responses.cjs.map +1 -0
- package/dist/api/users/update-language/responses.mjs +12 -0
- package/dist/api/users/update-language/responses.mjs.map +1 -0
- package/dist/api/users/update-language/types.d.cts +17 -0
- package/dist/api/users/update-language/types.d.mts +17 -0
- package/dist/config/defaults.cjs +12 -0
- package/dist/config/defaults.cjs.map +1 -0
- package/dist/config/defaults.d.cts +10 -0
- package/dist/config/defaults.d.mts +10 -0
- package/dist/config/defaults.mjs +9 -0
- package/dist/config/defaults.mjs.map +1 -0
- package/dist/config/headers.cjs +17 -0
- package/dist/config/headers.cjs.map +1 -0
- package/dist/config/headers.d.cts +8 -0
- package/dist/config/headers.d.mts +8 -0
- package/dist/config/headers.mjs +16 -0
- package/dist/config/headers.mjs.map +1 -0
- package/dist/config/resolve.cjs +28 -0
- package/dist/config/resolve.cjs.map +1 -0
- package/dist/config/resolve.d.cts +8 -0
- package/dist/config/resolve.d.mts +8 -0
- package/dist/config/resolve.mjs +27 -0
- package/dist/config/resolve.mjs.map +1 -0
- package/dist/config/types.d.cts +25 -0
- package/dist/config/types.d.mts +25 -0
- package/dist/contracts/api-error-response.cjs +12 -0
- package/dist/contracts/api-error-response.cjs.map +1 -0
- package/dist/contracts/api-error-response.d.cts +13 -0
- package/dist/contracts/api-error-response.d.mts +13 -0
- package/dist/contracts/api-error-response.mjs +10 -0
- package/dist/contracts/api-error-response.mjs.map +1 -0
- package/dist/contracts/filters/category.cjs +21 -0
- package/dist/contracts/filters/category.cjs.map +1 -0
- package/dist/contracts/filters/category.d.cts +37 -0
- package/dist/contracts/filters/category.d.mts +37 -0
- package/dist/contracts/filters/category.mjs +17 -0
- package/dist/contracts/filters/category.mjs.map +1 -0
- package/dist/contracts/filters/filter.cjs +11 -0
- package/dist/contracts/filters/filter.cjs.map +1 -0
- package/dist/contracts/filters/filter.d.cts +67 -0
- package/dist/contracts/filters/filter.d.mts +67 -0
- package/dist/contracts/filters/filter.mjs +9 -0
- package/dist/contracts/filters/filter.mjs.map +1 -0
- package/dist/contracts/filters/range.cjs +21 -0
- package/dist/contracts/filters/range.cjs.map +1 -0
- package/dist/contracts/filters/range.d.cts +37 -0
- package/dist/contracts/filters/range.d.mts +37 -0
- package/dist/contracts/filters/range.mjs +17 -0
- package/dist/contracts/filters/range.mjs.map +1 -0
- package/dist/contracts/pagination.cjs +17 -0
- package/dist/contracts/pagination.cjs.map +1 -0
- package/dist/contracts/pagination.d.cts +27 -0
- package/dist/contracts/pagination.d.mts +27 -0
- package/dist/contracts/pagination.mjs +15 -0
- package/dist/contracts/pagination.mjs.map +1 -0
- package/dist/errors/teez-api-error.cjs +26 -0
- package/dist/errors/teez-api-error.cjs.map +1 -0
- package/dist/errors/teez-api-error.d.cts +35 -0
- package/dist/errors/teez-api-error.d.mts +35 -0
- package/dist/errors/teez-api-error.mjs +26 -0
- package/dist/errors/teez-api-error.mjs.map +1 -0
- package/dist/errors/teez-error.cjs +8 -0
- package/dist/errors/teez-error.cjs.map +1 -0
- package/dist/errors/teez-error.d.cts +7 -0
- package/dist/errors/teez-error.d.mts +7 -0
- package/dist/errors/teez-error.mjs +8 -0
- package/dist/errors/teez-error.mjs.map +1 -0
- package/dist/errors/teez-network-error.cjs +18 -0
- package/dist/errors/teez-network-error.cjs.map +1 -0
- package/dist/errors/teez-network-error.d.cts +23 -0
- package/dist/errors/teez-network-error.d.mts +23 -0
- package/dist/errors/teez-network-error.mjs +18 -0
- package/dist/errors/teez-network-error.mjs.map +1 -0
- package/dist/errors/teez-timeout-error.cjs +20 -0
- package/dist/errors/teez-timeout-error.cjs.map +1 -0
- package/dist/errors/teez-timeout-error.d.cts +26 -0
- package/dist/errors/teez-timeout-error.d.mts +26 -0
- package/dist/errors/teez-timeout-error.mjs +20 -0
- package/dist/errors/teez-timeout-error.mjs.map +1 -0
- package/dist/errors/teez-validation-error.cjs +16 -0
- package/dist/errors/teez-validation-error.cjs.map +1 -0
- package/dist/errors/teez-validation-error.d.cts +25 -0
- package/dist/errors/teez-validation-error.d.mts +25 -0
- package/dist/errors/teez-validation-error.mjs +16 -0
- package/dist/errors/teez-validation-error.mjs.map +1 -0
- package/dist/http-operation/api-error.cjs +15 -0
- package/dist/http-operation/api-error.cjs.map +1 -0
- package/dist/http-operation/api-error.d.cts +15 -0
- package/dist/http-operation/api-error.d.mts +15 -0
- package/dist/http-operation/api-error.mjs +14 -0
- package/dist/http-operation/api-error.mjs.map +1 -0
- package/dist/http-operation/define.cjs +33 -0
- package/dist/http-operation/define.cjs.map +1 -0
- package/dist/http-operation/define.d.cts +7 -0
- package/dist/http-operation/define.d.mts +7 -0
- package/dist/http-operation/define.mjs +33 -0
- package/dist/http-operation/define.mjs.map +1 -0
- package/dist/http-operation/flattenability.cjs +24 -0
- package/dist/http-operation/flattenability.cjs.map +1 -0
- package/dist/http-operation/flattenability.d.cts +7 -0
- package/dist/http-operation/flattenability.d.mts +7 -0
- package/dist/http-operation/flattenability.mjs +24 -0
- package/dist/http-operation/flattenability.mjs.map +1 -0
- package/dist/http-operation/inference.d.cts +63 -0
- package/dist/http-operation/inference.d.mts +63 -0
- package/dist/http-operation/response-helpers.cjs +20 -0
- package/dist/http-operation/response-helpers.cjs.map +1 -0
- package/dist/http-operation/response-helpers.d.cts +15 -0
- package/dist/http-operation/response-helpers.d.mts +15 -0
- package/dist/http-operation/response-helpers.mjs +19 -0
- package/dist/http-operation/response-helpers.mjs.map +1 -0
- package/dist/http-operation/status.cjs +8 -0
- package/dist/http-operation/status.cjs.map +1 -0
- package/dist/http-operation/status.d.cts +6 -0
- package/dist/http-operation/status.d.mts +6 -0
- package/dist/http-operation/status.mjs +8 -0
- package/dist/http-operation/status.mjs.map +1 -0
- package/dist/http-operation/types.d.cts +92 -0
- package/dist/http-operation/types.d.mts +92 -0
- package/dist/http-operation/validation.cjs +32 -0
- package/dist/http-operation/validation.cjs.map +1 -0
- package/dist/http-operation/validation.mjs +31 -0
- package/dist/http-operation/validation.mjs.map +1 -0
- package/dist/index.cjs +147 -1875
- package/dist/index.d.cts +100 -5571
- package/dist/index.d.mts +100 -5571
- package/dist/index.mjs +66 -1753
- package/dist/language.cjs +6 -0
- package/dist/language.cjs.map +1 -0
- package/dist/language.d.cts +6 -0
- package/dist/language.d.mts +6 -0
- package/dist/language.mjs +6 -0
- package/dist/language.mjs.map +1 -0
- package/dist/registry.cjs +44 -0
- package/dist/registry.cjs.map +1 -0
- package/dist/registry.d.cts +4198 -0
- package/dist/registry.d.mts +4198 -0
- package/dist/registry.mjs +41 -0
- package/dist/registry.mjs.map +1 -0
- package/dist/schema/nullish.cjs +11 -0
- package/dist/schema/nullish.cjs.map +1 -0
- package/dist/schema/nullish.d.cts +11 -0
- package/dist/schema/nullish.d.mts +11 -0
- package/dist/schema/nullish.mjs +9 -0
- package/dist/schema/nullish.mjs.map +1 -0
- package/dist/schema/object-schema.cjs +12 -0
- package/dist/schema/object-schema.cjs.map +1 -0
- package/dist/schema/object-schema.d.cts +10 -0
- package/dist/schema/object-schema.d.mts +10 -0
- package/dist/schema/object-schema.mjs +11 -0
- package/dist/schema/object-schema.mjs.map +1 -0
- package/dist/schema/types.d.cts +7 -0
- package/dist/schema/types.d.mts +7 -0
- package/dist/sdk/create-client.cjs +20 -0
- package/dist/sdk/create-client.cjs.map +1 -0
- package/dist/sdk/create-client.d.cts +11 -0
- package/dist/sdk/create-client.d.mts +11 -0
- package/dist/sdk/create-client.mjs +19 -0
- package/dist/sdk/create-client.mjs.map +1 -0
- package/dist/sdk/flat-request.cjs +25 -0
- package/dist/sdk/flat-request.cjs.map +1 -0
- package/dist/sdk/flat-request.mjs +25 -0
- package/dist/sdk/flat-request.mjs.map +1 -0
- package/dist/sdk/operation-entry.cjs +30 -0
- package/dist/sdk/operation-entry.cjs.map +1 -0
- package/dist/sdk/operation-entry.mjs +30 -0
- package/dist/sdk/operation-entry.mjs.map +1 -0
- package/dist/sdk/runtime.cjs +15 -0
- package/dist/sdk/runtime.cjs.map +1 -0
- package/dist/sdk/runtime.d.cts +8 -0
- package/dist/sdk/runtime.d.mts +8 -0
- package/dist/sdk/runtime.mjs +15 -0
- package/dist/sdk/runtime.mjs.map +1 -0
- package/dist/sdk/types.d.cts +15 -0
- package/dist/sdk/types.d.mts +15 -0
- package/dist/transport/headers.cjs +12 -0
- package/dist/transport/headers.cjs.map +1 -0
- package/dist/transport/headers.mjs +12 -0
- package/dist/transport/headers.mjs.map +1 -0
- package/dist/transport/http-client.cjs +109 -0
- package/dist/transport/http-client.cjs.map +1 -0
- package/dist/transport/http-client.mjs +109 -0
- package/dist/transport/http-client.mjs.map +1 -0
- package/dist/transport/parsing.cjs +43 -0
- package/dist/transport/parsing.cjs.map +1 -0
- package/dist/transport/parsing.mjs +38 -0
- package/dist/transport/parsing.mjs.map +1 -0
- package/dist/transport/path.cjs +11 -0
- package/dist/transport/path.cjs.map +1 -0
- package/dist/transport/path.mjs +11 -0
- package/dist/transport/path.mjs.map +1 -0
- package/dist/transport/query.cjs +21 -0
- package/dist/transport/query.cjs.map +1 -0
- package/dist/transport/query.mjs +21 -0
- package/dist/transport/query.mjs.map +1 -0
- package/dist/transport/response-body.cjs +17 -0
- package/dist/transport/response-body.cjs.map +1 -0
- package/dist/transport/response-body.mjs +17 -0
- package/dist/transport/response-body.mjs.map +1 -0
- package/dist/transport/types.d.cts +6 -0
- package/dist/transport/types.d.mts +6 -0
- package/dist/type-utils/simplify.d.cts +5 -0
- package/dist/type-utils/simplify.d.mts +5 -0
- package/package.json +45 -34
- package/dist/index.cjs.map +0 -1
- package/dist/index.mjs.map +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025-2026
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,187 +1,301 @@
|
|
|
1
1
|
# @teez-sdk/teez-b2c-api
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Typed SDK for the Teez B2C API built around operation definitions, `valibot` schemas, runtime validation, and an operation catalog that can be reused for SDK, MCP, and documentation generation.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
- **Fully Typed:** Written in TypeScript with complete type definitions.
|
|
8
|
-
- **Runtime Validation:** Uses [Zod](https://zod.dev) to validate API responses.
|
|
9
|
-
- **Modular:** API endpoints are organized into logical modules (Products, Banners, etc.).
|
|
10
|
-
- **Error Handling:** Custom error classes for fine-grained control over API, network, and validation errors.
|
|
5
|
+
Use `createTeezClient()` for the full client, or `createTeezClientFromOperations(...)` to assemble a smaller client from selected operation groups for better tree-shaking.
|
|
11
6
|
|
|
12
7
|
## Installation
|
|
13
8
|
|
|
14
9
|
```bash
|
|
15
10
|
npm install @teez-sdk/teez-b2c-api
|
|
16
|
-
# or
|
|
17
|
-
yarn add @teez-sdk/teez-b2c-api
|
|
18
|
-
# or
|
|
19
|
-
pnpm add @teez-sdk/teez-b2c-api
|
|
20
|
-
|
|
21
11
|
```
|
|
22
12
|
|
|
23
|
-
|
|
13
|
+
Runtime requirements:
|
|
24
14
|
|
|
25
|
-
|
|
15
|
+
- Node.js 20.9+ when relying on the built-in global `fetch`
|
|
16
|
+
- or any runtime where `fetch`, `Request`, `Response`, and `Headers` are available
|
|
17
|
+
- or a custom `fetch` implementation passed via `createTeezClient({ fetch })`
|
|
26
18
|
|
|
27
|
-
|
|
28
|
-
import { TeezClient } from "@teez-sdk/teez-b2c-api";
|
|
19
|
+
## Quick Start
|
|
29
20
|
|
|
30
|
-
|
|
31
|
-
|
|
21
|
+
```ts
|
|
22
|
+
import { createTeezClient } from "@teez-sdk/teez-b2c-api";
|
|
32
23
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
timeout:
|
|
36
|
-
language: "kk", // Request responses in Kazakh
|
|
24
|
+
const client = createTeezClient({
|
|
25
|
+
language: "kz",
|
|
26
|
+
timeout: 5_000,
|
|
37
27
|
});
|
|
38
28
|
|
|
39
|
-
|
|
40
|
-
// Fetch products
|
|
41
|
-
const products = await client.products.list({
|
|
42
|
-
pageSize: 10,
|
|
43
|
-
pageNumber: 1,
|
|
44
|
-
});
|
|
29
|
+
const featureFlags = await client.featureFlags.list();
|
|
45
30
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
31
|
+
const suggestions = await client.products.autocomplete({
|
|
32
|
+
search: "sam",
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
const searchResults = await client.products.list({
|
|
36
|
+
query: suggestions[0]?.name ?? "samsung",
|
|
37
|
+
pageNumber: 1,
|
|
38
|
+
pageSize: 10,
|
|
39
|
+
});
|
|
50
40
|
```
|
|
51
41
|
|
|
52
|
-
|
|
42
|
+
Operations without an `input` section can be called without arguments:
|
|
53
43
|
|
|
54
|
-
|
|
44
|
+
```ts
|
|
45
|
+
await client.categories.list();
|
|
46
|
+
await client.promo.list();
|
|
47
|
+
await client.featureFlags.list();
|
|
48
|
+
```
|
|
55
49
|
|
|
56
|
-
|
|
57
|
-
interface TeezClientConfig {
|
|
58
|
-
/** Base URL for the API. Default: "[https://b2c-api.teez.kz](https://b2c-api.teez.kz)" */
|
|
59
|
-
baseUrl?: string;
|
|
50
|
+
Operations with input schemas always require an object, even when all fields are optional:
|
|
60
51
|
|
|
61
|
-
|
|
62
|
-
|
|
52
|
+
```ts
|
|
53
|
+
await client.products.getSortOptions({});
|
|
54
|
+
await client.banners.list({});
|
|
55
|
+
```
|
|
63
56
|
|
|
64
|
-
|
|
65
|
-
language?: "ru" | "kk";
|
|
57
|
+
Operations whose successful response uses `emptyResponse()` resolve with `undefined`:
|
|
66
58
|
|
|
67
|
-
|
|
68
|
-
|
|
59
|
+
```ts
|
|
60
|
+
await client.auth.login({
|
|
61
|
+
phone: "+77071234567",
|
|
62
|
+
});
|
|
69
63
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
64
|
+
await client.favorites.add.request({
|
|
65
|
+
body: [12345],
|
|
66
|
+
});
|
|
73
67
|
```
|
|
74
68
|
|
|
75
|
-
|
|
69
|
+
## Auth Flow
|
|
70
|
+
|
|
71
|
+
Use `auth.login` to send the OTP code, `auth.verify` to exchange it for tokens, then create an authenticated client with the returned `accessToken`:
|
|
72
|
+
|
|
73
|
+
```ts
|
|
74
|
+
import { createTeezClient } from "@teez-sdk/teez-b2c-api";
|
|
76
75
|
|
|
77
|
-
|
|
76
|
+
const publicClient = createTeezClient();
|
|
78
77
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
appVersion: "200", // User-agent will be "android;kz.teez.customer;200"
|
|
78
|
+
await publicClient.auth.login({
|
|
79
|
+
phone: "+77071234567",
|
|
82
80
|
});
|
|
83
|
-
```
|
|
84
81
|
|
|
85
|
-
|
|
82
|
+
const { accessToken, refreshToken } = await publicClient.auth.verify({
|
|
83
|
+
phone: "+77071234567",
|
|
84
|
+
otpCode: "1234",
|
|
85
|
+
});
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
headers: {
|
|
90
|
-
"user-agent": "my-custom-client/1.0",
|
|
91
|
-
},
|
|
87
|
+
const authClient = createTeezClient({
|
|
88
|
+
token: accessToken,
|
|
92
89
|
});
|
|
90
|
+
|
|
91
|
+
const profile = await authClient.auth.checkToken();
|
|
93
92
|
```
|
|
94
93
|
|
|
95
|
-
|
|
94
|
+
`refreshToken` is returned by the API, but this SDK does not currently provide a refresh-token operation. Persist it only if your application uses it outside the SDK.
|
|
96
95
|
|
|
97
|
-
|
|
96
|
+
## Client Shapes and Tree-Shaking
|
|
98
97
|
|
|
99
|
-
|
|
100
|
-
import { TeezClient } from "@teez-sdk/teez-b2c-api";
|
|
98
|
+
`createTeezClient()` gives you the complete SDK with every operation group attached.
|
|
101
99
|
|
|
102
|
-
|
|
100
|
+
Create the full client:
|
|
103
101
|
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
```ts
|
|
103
|
+
import { createTeezClient } from "@teez-sdk/teez-b2c-api";
|
|
106
104
|
|
|
107
|
-
|
|
105
|
+
const client = createTeezClient();
|
|
106
|
+
```
|
|
108
107
|
|
|
109
|
-
|
|
110
|
-
const electronics = await client.categories.get({
|
|
111
|
-
categoryId: 3472,
|
|
112
|
-
});
|
|
108
|
+
If your application only needs part of the API, prefer `createTeezClientFromOperations(...)`. It lets bundlers drop unused operation groups instead of pulling in the full operation catalog:
|
|
113
109
|
|
|
114
|
-
|
|
110
|
+
```ts
|
|
111
|
+
import {
|
|
112
|
+
authOperations,
|
|
113
|
+
createTeezClientFromOperations,
|
|
114
|
+
} from "@teez-sdk/teez-b2c-api";
|
|
115
115
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
categoryId: [3472, 7665, 3431],
|
|
119
|
-
level: 1, // Optional: filter by hierarchy level
|
|
116
|
+
const authClient = createTeezClientFromOperations({
|
|
117
|
+
auth: authOperations,
|
|
120
118
|
});
|
|
121
119
|
|
|
122
|
-
|
|
120
|
+
await authClient.auth.login({
|
|
121
|
+
phone: "+77071234567",
|
|
122
|
+
});
|
|
123
123
|
```
|
|
124
124
|
|
|
125
|
-
|
|
125
|
+
This is the recommended entry point when bundle size matters, for example in browser apps that only use a few Teez domains.
|
|
126
126
|
|
|
127
|
-
|
|
128
|
-
// List products with pagination
|
|
129
|
-
const products = await client.products.list({
|
|
130
|
-
pageSize: 20,
|
|
131
|
-
pageNumber: 1,
|
|
132
|
-
});
|
|
127
|
+
## Configuration
|
|
133
128
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
129
|
+
```ts
|
|
130
|
+
interface TeezClientConfig {
|
|
131
|
+
baseUrl?: string;
|
|
132
|
+
token?: string;
|
|
133
|
+
appVersion?: string;
|
|
134
|
+
language?: "ru" | "kz";
|
|
135
|
+
timeout?: number;
|
|
136
|
+
headers?: HeadersInit;
|
|
137
|
+
fetch?: typeof globalThis.fetch;
|
|
138
|
+
}
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
Defaults:
|
|
142
|
+
|
|
143
|
+
- `baseUrl`: `https://b2c-api.teez.kz`
|
|
144
|
+
- `appVersion`: `"200"`
|
|
145
|
+
- `language`: `"ru"`
|
|
146
|
+
- `timeout`: `30_000`
|
|
139
147
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
148
|
+
Notes:
|
|
149
|
+
|
|
150
|
+
- `token` becomes an `Authorization: Bearer ...` header.
|
|
151
|
+
- `appVersion` is used for both `User-Agent` and `X-App-Version`.
|
|
152
|
+
- `headers` are merged on top of the SDK defaults.
|
|
153
|
+
- `fetch` defaults to `globalThis.fetch`; pass your own implementation when the runtime does not provide one.
|
|
154
|
+
- Kazakh is standardized as `"kz"` in request config and typed responses.
|
|
155
|
+
|
|
156
|
+
If you need the fully separated request shape instead of the flattened convenience call, use `.request(...)`:
|
|
157
|
+
|
|
158
|
+
```ts
|
|
159
|
+
await client.products.list.request({
|
|
160
|
+
query: {
|
|
161
|
+
pageNumber: 1,
|
|
162
|
+
pageSize: 10,
|
|
163
|
+
},
|
|
144
164
|
});
|
|
145
165
|
```
|
|
146
166
|
|
|
147
|
-
##
|
|
167
|
+
## Runtime Validation
|
|
168
|
+
|
|
169
|
+
Every operation validates:
|
|
170
|
+
|
|
171
|
+
- input before the request is sent
|
|
172
|
+
- success payloads after the response is received
|
|
173
|
+
- error response bodies before they are attached to `TeezApiError.parsedBody`
|
|
174
|
+
|
|
175
|
+
The package keeps its `valibot` schemas as internal validation details. Public type exports stay at the operation level:
|
|
176
|
+
|
|
177
|
+
```ts
|
|
178
|
+
import {
|
|
179
|
+
productsListOperation,
|
|
180
|
+
type ProductsListRequest,
|
|
181
|
+
type ProductsListRequestParts,
|
|
182
|
+
type ProductsListSuccessResponse,
|
|
183
|
+
} from "@teez-sdk/teez-b2c-api";
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
`FooRequest` follows the preferred client call shape, so flattenable operations use the top-level object passed to `client.foo.bar(...)`. `FooRequestParts` matches `client.foo.bar.request(...)`.
|
|
187
|
+
|
|
188
|
+
Generated schema-derived model types are intentionally not part of the package contract. If an application needs its own domain models, define them locally.
|
|
189
|
+
|
|
190
|
+
## Operation Catalog
|
|
191
|
+
|
|
192
|
+
The SDK exposes the grouped operation catalog, a flat list, and name lookup helpers:
|
|
148
193
|
|
|
149
|
-
|
|
194
|
+
```ts
|
|
195
|
+
import {
|
|
196
|
+
getTeezOperation,
|
|
197
|
+
teezOperationList,
|
|
198
|
+
teezOperations,
|
|
199
|
+
} from "@teez-sdk/teez-b2c-api";
|
|
150
200
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
201
|
+
const operation = getTeezOperation("products.list");
|
|
202
|
+
|
|
203
|
+
console.log(operation.auth);
|
|
204
|
+
console.log(operation.safety);
|
|
205
|
+
console.log(operation.summary);
|
|
206
|
+
console.log(operation.description);
|
|
207
|
+
console.log(teezOperationList.length);
|
|
208
|
+
console.log(teezOperations.products.list === operation);
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
Operations are the main source of truth for:
|
|
212
|
+
|
|
213
|
+
- HTTP method and request mapping
|
|
214
|
+
- input and output schemas
|
|
215
|
+
- auth requirements
|
|
216
|
+
- read/write safety metadata
|
|
217
|
+
- MCP and doc-generation metadata
|
|
159
218
|
|
|
160
219
|
## Error Handling
|
|
161
220
|
|
|
162
|
-
The SDK throws
|
|
221
|
+
The SDK throws dedicated error classes:
|
|
222
|
+
|
|
223
|
+
- `TeezApiError` for non-2xx responses
|
|
224
|
+
- `TeezNetworkError` for transport failures
|
|
225
|
+
- `TeezTimeoutError` for aborted requests due to timeout
|
|
226
|
+
- `TeezValidationError` for input, output, or error-body schema mismatches
|
|
163
227
|
|
|
164
|
-
|
|
165
|
-
- `TeezNetworkError`: Network failure (e.g., DNS resolution, offline).
|
|
166
|
-
- `TeezTimeoutError`: The request exceeded the configured timeout.
|
|
167
|
-
- `TeezValidationError`: The API response did not match the expected schema (Zod validation failed).
|
|
228
|
+
`TeezApiError` keeps transport metadata and may also include a typed `parsedBody` when the matching error response in `responses` defines a schema.
|
|
168
229
|
|
|
169
|
-
```
|
|
170
|
-
import {
|
|
230
|
+
```ts
|
|
231
|
+
import {
|
|
232
|
+
getOperationApiError,
|
|
233
|
+
skuGetReviewAvailableOperation,
|
|
234
|
+
TeezApiError,
|
|
235
|
+
TeezTimeoutError,
|
|
236
|
+
} from "@teez-sdk/teez-b2c-api";
|
|
171
237
|
|
|
172
238
|
try {
|
|
173
|
-
await client.
|
|
239
|
+
await client.sku.getReviewAvailable({
|
|
240
|
+
skuId: 12345,
|
|
241
|
+
});
|
|
174
242
|
} catch (error) {
|
|
175
243
|
if (error instanceof TeezTimeoutError) {
|
|
176
244
|
console.error("Request timed out");
|
|
177
245
|
} else if (error instanceof TeezApiError) {
|
|
178
|
-
console.error(
|
|
179
|
-
|
|
180
|
-
|
|
246
|
+
console.error(error.status, error.message);
|
|
247
|
+
|
|
248
|
+
const apiError = getOperationApiError(
|
|
249
|
+
error,
|
|
250
|
+
skuGetReviewAvailableOperation,
|
|
251
|
+
);
|
|
252
|
+
|
|
253
|
+
if (apiError != undefined) {
|
|
254
|
+
console.error(apiError.parsedBody.message);
|
|
255
|
+
}
|
|
181
256
|
}
|
|
182
257
|
}
|
|
183
258
|
```
|
|
184
259
|
|
|
260
|
+
## Auth Notes
|
|
261
|
+
|
|
262
|
+
Live probes without a token confirmed these operations require authentication:
|
|
263
|
+
|
|
264
|
+
- `auth.checkToken`
|
|
265
|
+
- `favorites.add`
|
|
266
|
+
- `favorites.getIds`
|
|
267
|
+
- `favorites.remove`
|
|
268
|
+
- `promocodes.validate`
|
|
269
|
+
- `sku.getReviewAvailable`
|
|
270
|
+
- `users.registerDevice`
|
|
271
|
+
- `users.updateLanguage`
|
|
272
|
+
|
|
273
|
+
Public read-only operations such as `banners.list`, `categories.*`, `collections.*`, `featureFlags.list`, `products.*`, `promo.list`, `shops.*`, `sku.get`, `sku.getCollections`, and `sku.getSimilar` were successfully exercised without a token.
|
|
274
|
+
|
|
275
|
+
## Package Exports
|
|
276
|
+
|
|
277
|
+
The package exports:
|
|
278
|
+
|
|
279
|
+
- `createTeezClient`, `createTeezClientFromOperations`, `createRuntime`
|
|
280
|
+
- `teezOperations`, `teezOperationList`, `teezOperationsByName`, `getTeezOperation`
|
|
281
|
+
- operation definitions for every endpoint
|
|
282
|
+
- type aliases from `types.ts`
|
|
283
|
+
- shared contracts and filter schemas such as `apiErrorResponseSchema`, `filterSchema`, `rangeFilterSchema`, and `categoryFilterSchema`
|
|
284
|
+
|
|
285
|
+
## Development
|
|
286
|
+
|
|
287
|
+
Run these commands from `packages/teez-b2c-api`. From the repository root, append `-w @teez-sdk/teez-b2c-api`.
|
|
288
|
+
|
|
289
|
+
```bash
|
|
290
|
+
npm run generate:types
|
|
291
|
+
npm run typecheck
|
|
292
|
+
npm run typecheck:test
|
|
293
|
+
npm run test
|
|
294
|
+
npm run lint
|
|
295
|
+
npm run test:coverage
|
|
296
|
+
npm run build
|
|
297
|
+
```
|
|
298
|
+
|
|
185
299
|
## License
|
|
186
300
|
|
|
187
301
|
MIT
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
+
key = keys[i];
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
+
get: ((k) => from[k]).bind(null, key),
|
|
13
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
+
value: mod,
|
|
20
|
+
enumerable: true
|
|
21
|
+
}) : target, mod));
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.__toESM = __toESM;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { authCheckTokenOperation } from "./operation.cjs";
|
|
2
|
+
import { AuthCheckTokenApiError, AuthCheckTokenErrorResponseBody, AuthCheckTokenErrorStatus, AuthCheckTokenOperation, AuthCheckTokenRequest, AuthCheckTokenRequestParts, AuthCheckTokenResponseByStatus, AuthCheckTokenResponseStatus, AuthCheckTokenSuccessResponse } from "./types.cjs";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { authCheckTokenOperation } from "./operation.mjs";
|
|
2
|
+
import { AuthCheckTokenApiError, AuthCheckTokenErrorResponseBody, AuthCheckTokenErrorStatus, AuthCheckTokenOperation, AuthCheckTokenRequest, AuthCheckTokenRequestParts, AuthCheckTokenResponseByStatus, AuthCheckTokenResponseStatus, AuthCheckTokenSuccessResponse } from "./types.mjs";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const require_api_error_response = require("../../../contracts/api-error-response.cjs");
|
|
2
|
+
const require_define = require("../../../http-operation/define.cjs");
|
|
3
|
+
const require_response_helpers = require("../../../http-operation/response-helpers.cjs");
|
|
4
|
+
const require_responses = require("./responses.cjs");
|
|
5
|
+
//#region src/api/auth/check-token/operation.ts
|
|
6
|
+
const authCheckTokenOperation = require_define.defineHttpOperation({
|
|
7
|
+
domain: "auth",
|
|
8
|
+
action: "checkToken",
|
|
9
|
+
auth: "required",
|
|
10
|
+
safety: "read",
|
|
11
|
+
summary: "Validate the current JWT token.",
|
|
12
|
+
description: "Returns the authenticated user's profile summary, preferred language, and order history flags for the current access token.",
|
|
13
|
+
request: {
|
|
14
|
+
method: "GET",
|
|
15
|
+
path: "/auth/check-token"
|
|
16
|
+
},
|
|
17
|
+
responses: {
|
|
18
|
+
200: require_response_helpers.response({ schema: require_responses.authCheckTokenResponse200Schema }),
|
|
19
|
+
401: require_response_helpers.response({ schema: require_api_error_response.apiErrorResponseSchema })
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.authCheckTokenOperation = authCheckTokenOperation;
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=operation.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation.cjs","names":["defineHttpOperation","response","authCheckTokenResponse200Schema","apiErrorResponseSchema"],"sources":["../../../../src/api/auth/check-token/operation.ts"],"sourcesContent":["import { apiErrorResponseSchema } from \"../../../contracts/api-error-response\";\nimport { defineHttpOperation } from \"../../../http-operation/define\";\nimport { response } from \"../../../http-operation/response-helpers\";\nimport { authCheckTokenResponse200Schema } from \"./responses\";\n\nexport const authCheckTokenOperation = defineHttpOperation({\n\tdomain: \"auth\",\n\taction: \"checkToken\",\n\tauth: \"required\",\n\tsafety: \"read\",\n\tsummary: \"Validate the current JWT token.\",\n\tdescription:\n\t\t\"Returns the authenticated user's profile summary, preferred language, and order history flags for the current access token.\",\n\trequest: {\n\t\tmethod: \"GET\",\n\t\tpath: \"/auth/check-token\",\n\t},\n\tresponses: {\n\t\t200: response({\n\t\t\tschema: authCheckTokenResponse200Schema,\n\t\t}),\n\t\t401: response({\n\t\t\tschema: apiErrorResponseSchema,\n\t\t}),\n\t},\n});\n"],"mappings":";;;;;AAKA,MAAa,0BAA0BA,eAAAA,oBAAoB;CAC1D,QAAQ;CACR,QAAQ;CACR,MAAM;CACN,QAAQ;CACR,SAAS;CACT,aACC;CACD,SAAS;EACR,QAAQ;EACR,MAAM;EACN;CACD,WAAW;EACV,KAAKC,yBAAAA,SAAS,EACb,QAAQC,kBAAAA,iCACR,CAAC;EACF,KAAKD,yBAAAA,SAAS,EACb,QAAQE,2BAAAA,wBACR,CAAC;EACF;CACD,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Simplify } from "../../../type-utils/simplify.cjs";
|
|
2
|
+
import { HttpOperationDef, HttpOperationJsonResponse } from "../../../http-operation/types.cjs";
|
|
3
|
+
import * as _$valibot from "valibot";
|
|
4
|
+
|
|
5
|
+
//#region src/api/auth/check-token/operation.d.ts
|
|
6
|
+
declare const authCheckTokenOperation: HttpOperationDef<"auth", "checkToken", Simplify<Omit<{
|
|
7
|
+
readonly method: "GET";
|
|
8
|
+
readonly path: "/auth/check-token";
|
|
9
|
+
}, "path"> & {
|
|
10
|
+
readonly path: {
|
|
11
|
+
readonly template: "/auth/check-token";
|
|
12
|
+
readonly schema?: undefined;
|
|
13
|
+
};
|
|
14
|
+
}>, {
|
|
15
|
+
readonly 200: HttpOperationJsonResponse<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
16
|
+
readonly userId: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Unique user identifier">]>;
|
|
17
|
+
readonly phoneNumber: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "User's phone number in E.164 format">]>;
|
|
18
|
+
readonly fullName: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "User's full name">]>;
|
|
19
|
+
readonly email: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "User's email address">]>;
|
|
20
|
+
readonly expiredTokenDate: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Token expiration datetime in ISO 8601 format (e.g., \"2025-12-30T13:08:44+00:00\")">]>;
|
|
21
|
+
readonly language: _$valibot.SchemaWithPipe<readonly [_$valibot.SchemaWithPipe<readonly [_$valibot.UnionSchema<[_$valibot.LiteralSchema<"ru", undefined>, _$valibot.LiteralSchema<"kz", undefined>], undefined>, _$valibot.DescriptionAction<"ru" | "kz", "Language code returned for the authenticated user: \"ru\" or \"kz\".">]>, _$valibot.DescriptionAction<"ru" | "kz", "User's preferred language: \"ru\" or \"kz\".">]>;
|
|
22
|
+
readonly hasOrders: _$valibot.SchemaWithPipe<readonly [_$valibot.BooleanSchema<undefined>, _$valibot.DescriptionAction<boolean, "Whether user has active orders in progress">]>;
|
|
23
|
+
readonly hasAnyOrders: _$valibot.SchemaWithPipe<readonly [_$valibot.BooleanSchema<undefined>, _$valibot.DescriptionAction<boolean, "Whether user has any order history (including completed orders)">]>;
|
|
24
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
25
|
+
userId: string;
|
|
26
|
+
phoneNumber: string;
|
|
27
|
+
fullName: string;
|
|
28
|
+
email: string;
|
|
29
|
+
expiredTokenDate: string;
|
|
30
|
+
language: "ru" | "kz";
|
|
31
|
+
hasOrders: boolean;
|
|
32
|
+
hasAnyOrders: boolean;
|
|
33
|
+
}, "Authenticated user profile returned by the token validation endpoint.">]>>;
|
|
34
|
+
readonly 401: HttpOperationJsonResponse<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
35
|
+
readonly description: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Short backend error description or machine-readable reason.">]>;
|
|
36
|
+
readonly message: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Localized human-readable error message.">]>;
|
|
37
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
38
|
+
description: string;
|
|
39
|
+
message: string;
|
|
40
|
+
}, "Default API error body returned by many non-2xx responses, including unauthorized and validation errors.">]>>;
|
|
41
|
+
}>;
|
|
42
|
+
//#endregion
|
|
43
|
+
export { authCheckTokenOperation };
|
|
44
|
+
//# sourceMappingURL=operation.d.cts.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Simplify } from "../../../type-utils/simplify.mjs";
|
|
2
|
+
import { HttpOperationDef, HttpOperationJsonResponse } from "../../../http-operation/types.mjs";
|
|
3
|
+
import * as _$valibot from "valibot";
|
|
4
|
+
|
|
5
|
+
//#region src/api/auth/check-token/operation.d.ts
|
|
6
|
+
declare const authCheckTokenOperation: HttpOperationDef<"auth", "checkToken", Simplify<Omit<{
|
|
7
|
+
readonly method: "GET";
|
|
8
|
+
readonly path: "/auth/check-token";
|
|
9
|
+
}, "path"> & {
|
|
10
|
+
readonly path: {
|
|
11
|
+
readonly template: "/auth/check-token";
|
|
12
|
+
readonly schema?: undefined;
|
|
13
|
+
};
|
|
14
|
+
}>, {
|
|
15
|
+
readonly 200: HttpOperationJsonResponse<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
16
|
+
readonly userId: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Unique user identifier">]>;
|
|
17
|
+
readonly phoneNumber: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "User's phone number in E.164 format">]>;
|
|
18
|
+
readonly fullName: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "User's full name">]>;
|
|
19
|
+
readonly email: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "User's email address">]>;
|
|
20
|
+
readonly expiredTokenDate: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Token expiration datetime in ISO 8601 format (e.g., \"2025-12-30T13:08:44+00:00\")">]>;
|
|
21
|
+
readonly language: _$valibot.SchemaWithPipe<readonly [_$valibot.SchemaWithPipe<readonly [_$valibot.UnionSchema<[_$valibot.LiteralSchema<"ru", undefined>, _$valibot.LiteralSchema<"kz", undefined>], undefined>, _$valibot.DescriptionAction<"ru" | "kz", "Language code returned for the authenticated user: \"ru\" or \"kz\".">]>, _$valibot.DescriptionAction<"ru" | "kz", "User's preferred language: \"ru\" or \"kz\".">]>;
|
|
22
|
+
readonly hasOrders: _$valibot.SchemaWithPipe<readonly [_$valibot.BooleanSchema<undefined>, _$valibot.DescriptionAction<boolean, "Whether user has active orders in progress">]>;
|
|
23
|
+
readonly hasAnyOrders: _$valibot.SchemaWithPipe<readonly [_$valibot.BooleanSchema<undefined>, _$valibot.DescriptionAction<boolean, "Whether user has any order history (including completed orders)">]>;
|
|
24
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
25
|
+
userId: string;
|
|
26
|
+
phoneNumber: string;
|
|
27
|
+
fullName: string;
|
|
28
|
+
email: string;
|
|
29
|
+
expiredTokenDate: string;
|
|
30
|
+
language: "ru" | "kz";
|
|
31
|
+
hasOrders: boolean;
|
|
32
|
+
hasAnyOrders: boolean;
|
|
33
|
+
}, "Authenticated user profile returned by the token validation endpoint.">]>>;
|
|
34
|
+
readonly 401: HttpOperationJsonResponse<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
35
|
+
readonly description: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Short backend error description or machine-readable reason.">]>;
|
|
36
|
+
readonly message: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Localized human-readable error message.">]>;
|
|
37
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
38
|
+
description: string;
|
|
39
|
+
message: string;
|
|
40
|
+
}, "Default API error body returned by many non-2xx responses, including unauthorized and validation errors.">]>>;
|
|
41
|
+
}>;
|
|
42
|
+
//#endregion
|
|
43
|
+
export { authCheckTokenOperation };
|
|
44
|
+
//# sourceMappingURL=operation.d.mts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { apiErrorResponseSchema } from "../../../contracts/api-error-response.mjs";
|
|
2
|
+
import { defineHttpOperation } from "../../../http-operation/define.mjs";
|
|
3
|
+
import { response } from "../../../http-operation/response-helpers.mjs";
|
|
4
|
+
import { authCheckTokenResponse200Schema } from "./responses.mjs";
|
|
5
|
+
//#region src/api/auth/check-token/operation.ts
|
|
6
|
+
const authCheckTokenOperation = defineHttpOperation({
|
|
7
|
+
domain: "auth",
|
|
8
|
+
action: "checkToken",
|
|
9
|
+
auth: "required",
|
|
10
|
+
safety: "read",
|
|
11
|
+
summary: "Validate the current JWT token.",
|
|
12
|
+
description: "Returns the authenticated user's profile summary, preferred language, and order history flags for the current access token.",
|
|
13
|
+
request: {
|
|
14
|
+
method: "GET",
|
|
15
|
+
path: "/auth/check-token"
|
|
16
|
+
},
|
|
17
|
+
responses: {
|
|
18
|
+
200: response({ schema: authCheckTokenResponse200Schema }),
|
|
19
|
+
401: response({ schema: apiErrorResponseSchema })
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { authCheckTokenOperation };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=operation.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation.mjs","names":[],"sources":["../../../../src/api/auth/check-token/operation.ts"],"sourcesContent":["import { apiErrorResponseSchema } from \"../../../contracts/api-error-response\";\nimport { defineHttpOperation } from \"../../../http-operation/define\";\nimport { response } from \"../../../http-operation/response-helpers\";\nimport { authCheckTokenResponse200Schema } from \"./responses\";\n\nexport const authCheckTokenOperation = defineHttpOperation({\n\tdomain: \"auth\",\n\taction: \"checkToken\",\n\tauth: \"required\",\n\tsafety: \"read\",\n\tsummary: \"Validate the current JWT token.\",\n\tdescription:\n\t\t\"Returns the authenticated user's profile summary, preferred language, and order history flags for the current access token.\",\n\trequest: {\n\t\tmethod: \"GET\",\n\t\tpath: \"/auth/check-token\",\n\t},\n\tresponses: {\n\t\t200: response({\n\t\t\tschema: authCheckTokenResponse200Schema,\n\t\t}),\n\t\t401: response({\n\t\t\tschema: apiErrorResponseSchema,\n\t\t}),\n\t},\n});\n"],"mappings":";;;;;AAKA,MAAa,0BAA0B,oBAAoB;CAC1D,QAAQ;CACR,QAAQ;CACR,MAAM;CACN,QAAQ;CACR,SAAS;CACT,aACC;CACD,SAAS;EACR,QAAQ;EACR,MAAM;EACN;CACD,WAAW;EACV,KAAK,SAAS,EACb,QAAQ,iCACR,CAAC;EACF,KAAK,SAAS,EACb,QAAQ,wBACR,CAAC;EACF;CACD,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_runtime = require("../../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
let valibot = require("valibot");
|
|
3
|
+
valibot = require_runtime.__toESM(valibot);
|
|
4
|
+
//#region src/api/auth/check-token/responses.ts
|
|
5
|
+
const authCheckTokenLanguageSchema = valibot.pipe(valibot.union([valibot.literal("ru"), valibot.literal("kz")]), valibot.description("Language code returned for the authenticated user: \"ru\" or \"kz\"."));
|
|
6
|
+
const authCheckTokenResponse200Schema = valibot.pipe(valibot.object({
|
|
7
|
+
userId: valibot.pipe(valibot.string(), valibot.description("Unique user identifier")),
|
|
8
|
+
phoneNumber: valibot.pipe(valibot.string(), valibot.description("User's phone number in E.164 format")),
|
|
9
|
+
fullName: valibot.pipe(valibot.string(), valibot.description("User's full name")),
|
|
10
|
+
email: valibot.pipe(valibot.string(), valibot.description("User's email address")),
|
|
11
|
+
expiredTokenDate: valibot.pipe(valibot.string(), valibot.description("Token expiration datetime in ISO 8601 format (e.g., \"2025-12-30T13:08:44+00:00\")")),
|
|
12
|
+
language: valibot.pipe(authCheckTokenLanguageSchema, valibot.description("User's preferred language: \"ru\" or \"kz\".")),
|
|
13
|
+
hasOrders: valibot.pipe(valibot.boolean(), valibot.description("Whether user has active orders in progress")),
|
|
14
|
+
hasAnyOrders: valibot.pipe(valibot.boolean(), valibot.description("Whether user has any order history (including completed orders)"))
|
|
15
|
+
}), valibot.description("Authenticated user profile returned by the token validation endpoint."));
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.authCheckTokenResponse200Schema = authCheckTokenResponse200Schema;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=responses.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responses.cjs","names":["v"],"sources":["../../../../src/api/auth/check-token/responses.ts"],"sourcesContent":["import * as v from \"valibot\";\n\nexport const authCheckTokenLanguageSchema = v.pipe(\n\tv.union([v.literal(\"ru\"), v.literal(\"kz\")]),\n\tv.description(\n\t\t'Language code returned for the authenticated user: \"ru\" or \"kz\".',\n\t),\n);\nexport const authCheckTokenResponse200Schema = v.pipe(\n\tv.object({\n\t\tuserId: v.pipe(v.string(), v.description(\"Unique user identifier\")),\n\t\tphoneNumber: v.pipe(\n\t\t\tv.string(),\n\t\t\tv.description(\"User's phone number in E.164 format\"),\n\t\t),\n\t\tfullName: v.pipe(v.string(), v.description(\"User's full name\")),\n\t\temail: v.pipe(v.string(), v.description(\"User's email address\")),\n\t\texpiredTokenDate: v.pipe(\n\t\t\tv.string(),\n\t\t\tv.description(\n\t\t\t\t'Token expiration datetime in ISO 8601 format (e.g., \"2025-12-30T13:08:44+00:00\")',\n\t\t\t),\n\t\t),\n\t\tlanguage: v.pipe(\n\t\t\tauthCheckTokenLanguageSchema,\n\t\t\tv.description('User\\'s preferred language: \"ru\" or \"kz\".'),\n\t\t),\n\t\thasOrders: v.pipe(\n\t\t\tv.boolean(),\n\t\t\tv.description(\"Whether user has active orders in progress\"),\n\t\t),\n\t\thasAnyOrders: v.pipe(\n\t\t\tv.boolean(),\n\t\t\tv.description(\n\t\t\t\t\"Whether user has any order history (including completed orders)\",\n\t\t\t),\n\t\t),\n\t}),\n\tv.description(\n\t\t\"Authenticated user profile returned by the token validation endpoint.\",\n\t),\n);\n"],"mappings":";;;;AAEA,MAAa,+BAA+BA,QAAE,KAC7CA,QAAE,MAAM,CAACA,QAAE,QAAQ,KAAK,EAAEA,QAAE,QAAQ,KAAK,CAAC,CAAC,EAC3CA,QAAE,YACD,uEACA,CACD;AACD,MAAa,kCAAkCA,QAAE,KAChDA,QAAE,OAAO;CACR,QAAQA,QAAE,KAAKA,QAAE,QAAQ,EAAEA,QAAE,YAAY,yBAAyB,CAAC;CACnE,aAAaA,QAAE,KACdA,QAAE,QAAQ,EACVA,QAAE,YAAY,sCAAsC,CACpD;CACD,UAAUA,QAAE,KAAKA,QAAE,QAAQ,EAAEA,QAAE,YAAY,mBAAmB,CAAC;CAC/D,OAAOA,QAAE,KAAKA,QAAE,QAAQ,EAAEA,QAAE,YAAY,uBAAuB,CAAC;CAChE,kBAAkBA,QAAE,KACnBA,QAAE,QAAQ,EACVA,QAAE,YACD,qFACA,CACD;CACD,UAAUA,QAAE,KACX,8BACAA,QAAE,YAAY,+CAA4C,CAC1D;CACD,WAAWA,QAAE,KACZA,QAAE,SAAS,EACXA,QAAE,YAAY,6CAA6C,CAC3D;CACD,cAAcA,QAAE,KACfA,QAAE,SAAS,EACXA,QAAE,YACD,kEACA,CACD;CACD,CAAC,EACFA,QAAE,YACD,wEACA,CACD"}
|