@teez-sdk/teez-b2c-api 2.2.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 -1743
- package/dist/index.d.cts +100 -5056
- package/dist/index.d.mts +100 -5056
- package/dist/index.mjs +66 -1629
- 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 +46 -35
- package/dist/index.cjs.map +0 -1
- package/dist/index.mjs.map +0 -1
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
import { Simplify } from "../../type-utils/simplify.cjs";
|
|
2
|
+
import { HttpOperationDef, HttpOperationJsonResponse } from "../../http-operation/types.cjs";
|
|
3
|
+
import { NullishToUndefinedSchema } from "../../schema/nullish.cjs";
|
|
4
|
+
import * as _$valibot from "valibot";
|
|
5
|
+
|
|
6
|
+
//#region src/api/collections/operations.d.ts
|
|
7
|
+
declare const collectionsOperations: {
|
|
8
|
+
readonly getSkus: HttpOperationDef<"collections", "getSkus", Simplify<Omit<{
|
|
9
|
+
readonly method: "GET";
|
|
10
|
+
readonly path: "/api/v2/collections/skus";
|
|
11
|
+
readonly query: {
|
|
12
|
+
readonly schema: _$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
13
|
+
readonly pageNumber: _$valibot.SchemaWithPipe<readonly [_$valibot.NullishSchema<_$valibot.NumberSchema<undefined>, undefined>, _$valibot.DescriptionAction<number | null | undefined, "Number of the page to retrieve">]>;
|
|
14
|
+
readonly pageSize: _$valibot.SchemaWithPipe<readonly [_$valibot.NullishSchema<_$valibot.NumberSchema<undefined>, undefined>, _$valibot.DescriptionAction<number | null | undefined, "Number of items per page">]>;
|
|
15
|
+
readonly collectionId: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Unique identifier of the collection">]>;
|
|
16
|
+
readonly sortBy: _$valibot.SchemaWithPipe<readonly [_$valibot.NullishSchema<_$valibot.SchemaWithPipe<readonly [_$valibot.UnionSchema<[_$valibot.LiteralSchema<"byRelevance", undefined>, _$valibot.LiteralSchema<"popularity", undefined>, _$valibot.LiteralSchema<"highestRated", undefined>, _$valibot.LiteralSchema<"new", undefined>, _$valibot.LiteralSchema<"price", undefined>, _$valibot.LiteralSchema<"priceDesc", undefined>], undefined>, _$valibot.DescriptionAction<"byRelevance" | "popularity" | "highestRated" | "new" | "price" | "priceDesc", "Type union for product sort keys">]>, undefined>, _$valibot.DescriptionAction<"byRelevance" | "popularity" | "highestRated" | "new" | "price" | "priceDesc" | null | undefined, "Sorting option for the results">]>;
|
|
17
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
18
|
+
pageNumber?: number | null | undefined;
|
|
19
|
+
pageSize?: number | null | undefined;
|
|
20
|
+
collectionId: number;
|
|
21
|
+
sortBy?: "byRelevance" | "popularity" | "highestRated" | "new" | "price" | "priceDesc" | null | undefined;
|
|
22
|
+
}, "Parameters for fetching SKUs from a collection.">]>;
|
|
23
|
+
};
|
|
24
|
+
}, "path"> & {
|
|
25
|
+
readonly path: {
|
|
26
|
+
readonly template: "/api/v2/collections/skus";
|
|
27
|
+
readonly schema?: undefined;
|
|
28
|
+
};
|
|
29
|
+
}>, {
|
|
30
|
+
readonly 200: HttpOperationJsonResponse<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
31
|
+
readonly pageNumber: _$valibot.NumberSchema<undefined>;
|
|
32
|
+
readonly totalPages: _$valibot.NumberSchema<undefined>;
|
|
33
|
+
readonly totalCount: _$valibot.NumberSchema<undefined>;
|
|
34
|
+
readonly hasPreviousPage: _$valibot.BooleanSchema<undefined>;
|
|
35
|
+
readonly hasNextPage: _$valibot.BooleanSchema<undefined>;
|
|
36
|
+
readonly filters: _$valibot.SchemaWithPipe<readonly [_$valibot.ArraySchema<_$valibot.SchemaWithPipe<readonly [_$valibot.VariantSchema<"type", [_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
37
|
+
readonly type: _$valibot.SchemaWithPipe<readonly [_$valibot.SchemaWithPipe<readonly [_$valibot.LiteralSchema<"range", undefined>, _$valibot.DescriptionAction<"range", "Type literal for range-based filters">]>, _$valibot.DescriptionAction<"range", "Filter type: range for price slider">]>;
|
|
38
|
+
readonly name: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Localized display name of the filter">]>;
|
|
39
|
+
readonly code: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Unique code identifying the filter type">]>;
|
|
40
|
+
readonly options: _$valibot.SchemaWithPipe<readonly [_$valibot.ArraySchema<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
41
|
+
readonly min: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Minimum value for range filters">]>;
|
|
42
|
+
readonly max: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Maximum value for range filters">]>;
|
|
43
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
44
|
+
min: number;
|
|
45
|
+
max: number;
|
|
46
|
+
}, "Schema for range filter options (e.g., price slider).\nCommon schema used by multiple APIs.">]>, undefined>, _$valibot.DescriptionAction<{
|
|
47
|
+
min: number;
|
|
48
|
+
max: number;
|
|
49
|
+
}[], "List of available options for this filter">]>;
|
|
50
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
51
|
+
type: "range";
|
|
52
|
+
name: string;
|
|
53
|
+
code: string;
|
|
54
|
+
options: {
|
|
55
|
+
min: number;
|
|
56
|
+
max: number;
|
|
57
|
+
}[];
|
|
58
|
+
}, "Schema for range filters (e.g., price slider).\nUse this in discriminatedUnion-based filter schemas.">]>, _$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
59
|
+
readonly type: _$valibot.SchemaWithPipe<readonly [_$valibot.SchemaWithPipe<readonly [_$valibot.UnionSchema<[_$valibot.LiteralSchema<"category", undefined>, _$valibot.LiteralSchema<"alphabetic_search_list", undefined>], undefined>, _$valibot.DescriptionAction<"category" | "alphabetic_search_list", "Type union for category filter types">]>, _$valibot.DescriptionAction<"category" | "alphabetic_search_list", "Filter type: category or alphabetic_search_list">]>;
|
|
60
|
+
readonly name: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Localized display name of the filter">]>;
|
|
61
|
+
readonly code: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Unique code identifying the filter type">]>;
|
|
62
|
+
readonly options: _$valibot.SchemaWithPipe<readonly [_$valibot.ArraySchema<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
63
|
+
readonly label: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Display label for the filter option">]>;
|
|
64
|
+
readonly value: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Value for the filter option">]>;
|
|
65
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
66
|
+
label: string;
|
|
67
|
+
value: number;
|
|
68
|
+
}, "Schema for category/brand filter options.\nCommon schema used by multiple APIs.">]>, undefined>, _$valibot.DescriptionAction<{
|
|
69
|
+
label: string;
|
|
70
|
+
value: number;
|
|
71
|
+
}[], "List of available options for this filter">]>;
|
|
72
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
73
|
+
type: "category" | "alphabetic_search_list";
|
|
74
|
+
name: string;
|
|
75
|
+
code: string;
|
|
76
|
+
options: {
|
|
77
|
+
label: string;
|
|
78
|
+
value: number;
|
|
79
|
+
}[];
|
|
80
|
+
}, "Schema for category/brand filters.\nUse this in discriminatedUnion-based filter schemas.">]>], undefined>, _$valibot.DescriptionAction<{
|
|
81
|
+
type: "category" | "alphabetic_search_list";
|
|
82
|
+
name: string;
|
|
83
|
+
code: string;
|
|
84
|
+
options: {
|
|
85
|
+
label: string;
|
|
86
|
+
value: number;
|
|
87
|
+
}[];
|
|
88
|
+
} | {
|
|
89
|
+
type: "range";
|
|
90
|
+
name: string;
|
|
91
|
+
code: string;
|
|
92
|
+
options: {
|
|
93
|
+
min: number;
|
|
94
|
+
max: number;
|
|
95
|
+
}[];
|
|
96
|
+
}, "Union filter schema that can be either range or category filter.\nThis is the recommended pattern for type-safe filters.">]>, undefined>, _$valibot.DescriptionAction<({
|
|
97
|
+
type: "category" | "alphabetic_search_list";
|
|
98
|
+
name: string;
|
|
99
|
+
code: string;
|
|
100
|
+
options: {
|
|
101
|
+
label: string;
|
|
102
|
+
value: number;
|
|
103
|
+
}[];
|
|
104
|
+
} | {
|
|
105
|
+
type: "range";
|
|
106
|
+
name: string;
|
|
107
|
+
code: string;
|
|
108
|
+
options: {
|
|
109
|
+
min: number;
|
|
110
|
+
max: number;
|
|
111
|
+
}[];
|
|
112
|
+
})[], "List of applicable filters for the collection">]>;
|
|
113
|
+
readonly items: _$valibot.SchemaWithPipe<readonly [_$valibot.ArraySchema<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
114
|
+
readonly productId: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Unique product identifier">]>;
|
|
115
|
+
readonly skuId: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Unique stock keeping unit identifier">]>;
|
|
116
|
+
readonly imageUrl: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "URL for the full-size image">]>;
|
|
117
|
+
readonly name: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Display name of the product">]>;
|
|
118
|
+
readonly shortDescription: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Brief description of the product">]>;
|
|
119
|
+
readonly thumbnailUrl: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "URL for the small preview image">]>;
|
|
120
|
+
readonly originalPrice: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Original price before discounts">]>;
|
|
121
|
+
readonly price: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Current selling price">]>;
|
|
122
|
+
readonly qty: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Quantity available in stock">]>;
|
|
123
|
+
readonly stockAvailability: _$valibot.SchemaWithPipe<readonly [NullishToUndefinedSchema<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
124
|
+
readonly type: _$valibot.SchemaWithPipe<readonly [_$valibot.SchemaWithPipe<readonly [_$valibot.LiteralSchema<"stock", undefined>, _$valibot.DescriptionAction<"stock", "Type literal for SKU stock availability type">]>, _$valibot.DescriptionAction<"stock", "Type of stock status (known value: \"stock\")">]>;
|
|
125
|
+
readonly svg: _$valibot.SchemaWithPipe<readonly [NullishToUndefinedSchema<_$valibot.StringSchema<undefined>>, _$valibot.DescriptionAction<string | undefined, "SVG icon representing stock status">]>;
|
|
126
|
+
readonly text: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Localized text describing stock status (e.g., \"В наличии - осталось всего 16 штук\")">]>;
|
|
127
|
+
readonly maxQty: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Maximum quantity available">]>;
|
|
128
|
+
readonly maxQtyReason: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Localized reason text for quantity limit (e.g., \"В наличии только 16 штук\")">]>;
|
|
129
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
130
|
+
type: "stock";
|
|
131
|
+
svg: string | undefined;
|
|
132
|
+
text: string;
|
|
133
|
+
maxQty: number;
|
|
134
|
+
maxQtyReason: string;
|
|
135
|
+
}, "Schema for stock availability information.">]>>, _$valibot.DescriptionAction<{
|
|
136
|
+
type: "stock";
|
|
137
|
+
svg: string | undefined;
|
|
138
|
+
text: string;
|
|
139
|
+
maxQty: number;
|
|
140
|
+
maxQtyReason: string;
|
|
141
|
+
} | undefined, "Stock availability details">]>;
|
|
142
|
+
readonly isPromo: _$valibot.SchemaWithPipe<readonly [_$valibot.BooleanSchema<undefined>, _$valibot.DescriptionAction<boolean, "Indicates if the item is on promotion">]>;
|
|
143
|
+
readonly promoName: _$valibot.SchemaWithPipe<readonly [NullishToUndefinedSchema<_$valibot.StringSchema<undefined>>, _$valibot.DescriptionAction<string | undefined, "Name of the promotion">]>;
|
|
144
|
+
readonly qtyPurchasedInfo: _$valibot.SchemaWithPipe<readonly [NullishToUndefinedSchema<_$valibot.StringSchema<undefined>>, _$valibot.DescriptionAction<string | undefined, "Popularity text indicating purchase frequency (e.g., \"Часто покупают\")">]>;
|
|
145
|
+
readonly rating: _$valibot.SchemaWithPipe<readonly [NullishToUndefinedSchema<_$valibot.NumberSchema<undefined>>, _$valibot.DescriptionAction<number | undefined, "Average rating score">]>;
|
|
146
|
+
readonly scoreQuantity: _$valibot.SchemaWithPipe<readonly [NullishToUndefinedSchema<_$valibot.NumberSchema<undefined>>, _$valibot.DescriptionAction<number | undefined, "Total number of ratings">]>;
|
|
147
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
148
|
+
productId: number;
|
|
149
|
+
skuId: number;
|
|
150
|
+
imageUrl: string;
|
|
151
|
+
name: string;
|
|
152
|
+
shortDescription: string;
|
|
153
|
+
thumbnailUrl: string;
|
|
154
|
+
originalPrice: number;
|
|
155
|
+
price: number;
|
|
156
|
+
qty: number;
|
|
157
|
+
stockAvailability: {
|
|
158
|
+
type: "stock";
|
|
159
|
+
svg: string | undefined;
|
|
160
|
+
text: string;
|
|
161
|
+
maxQty: number;
|
|
162
|
+
maxQtyReason: string;
|
|
163
|
+
} | undefined;
|
|
164
|
+
isPromo: boolean;
|
|
165
|
+
promoName: string | undefined;
|
|
166
|
+
qtyPurchasedInfo: string | undefined;
|
|
167
|
+
rating: number | undefined;
|
|
168
|
+
scoreQuantity: number | undefined;
|
|
169
|
+
}, "Product card returned inside collection SKU feeds.">]>, undefined>, _$valibot.DescriptionAction<{
|
|
170
|
+
productId: number;
|
|
171
|
+
skuId: number;
|
|
172
|
+
imageUrl: string;
|
|
173
|
+
name: string;
|
|
174
|
+
shortDescription: string;
|
|
175
|
+
thumbnailUrl: string;
|
|
176
|
+
originalPrice: number;
|
|
177
|
+
price: number;
|
|
178
|
+
qty: number;
|
|
179
|
+
stockAvailability: {
|
|
180
|
+
type: "stock";
|
|
181
|
+
svg: string | undefined;
|
|
182
|
+
text: string;
|
|
183
|
+
maxQty: number;
|
|
184
|
+
maxQtyReason: string;
|
|
185
|
+
} | undefined;
|
|
186
|
+
isPromo: boolean;
|
|
187
|
+
promoName: string | undefined;
|
|
188
|
+
qtyPurchasedInfo: string | undefined;
|
|
189
|
+
rating: number | undefined;
|
|
190
|
+
scoreQuantity: number | undefined;
|
|
191
|
+
}[], "List of SKU items in the collection">]>;
|
|
192
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
193
|
+
pageNumber: number;
|
|
194
|
+
totalPages: number;
|
|
195
|
+
totalCount: number;
|
|
196
|
+
hasPreviousPage: boolean;
|
|
197
|
+
hasNextPage: boolean;
|
|
198
|
+
filters: ({
|
|
199
|
+
type: "category" | "alphabetic_search_list";
|
|
200
|
+
name: string;
|
|
201
|
+
code: string;
|
|
202
|
+
options: {
|
|
203
|
+
label: string;
|
|
204
|
+
value: number;
|
|
205
|
+
}[];
|
|
206
|
+
} | {
|
|
207
|
+
type: "range";
|
|
208
|
+
name: string;
|
|
209
|
+
code: string;
|
|
210
|
+
options: {
|
|
211
|
+
min: number;
|
|
212
|
+
max: number;
|
|
213
|
+
}[];
|
|
214
|
+
})[];
|
|
215
|
+
items: {
|
|
216
|
+
productId: number;
|
|
217
|
+
skuId: number;
|
|
218
|
+
imageUrl: string;
|
|
219
|
+
name: string;
|
|
220
|
+
shortDescription: string;
|
|
221
|
+
thumbnailUrl: string;
|
|
222
|
+
originalPrice: number;
|
|
223
|
+
price: number;
|
|
224
|
+
qty: number;
|
|
225
|
+
stockAvailability: {
|
|
226
|
+
type: "stock";
|
|
227
|
+
svg: string | undefined;
|
|
228
|
+
text: string;
|
|
229
|
+
maxQty: number;
|
|
230
|
+
maxQtyReason: string;
|
|
231
|
+
} | undefined;
|
|
232
|
+
isPromo: boolean;
|
|
233
|
+
promoName: string | undefined;
|
|
234
|
+
qtyPurchasedInfo: string | undefined;
|
|
235
|
+
rating: number | undefined;
|
|
236
|
+
scoreQuantity: number | undefined;
|
|
237
|
+
}[];
|
|
238
|
+
}, "Paginated collection SKU response with filters, product cards, and pagination metadata.">]>>;
|
|
239
|
+
}>;
|
|
240
|
+
readonly list: HttpOperationDef<"collections", "list", Simplify<Omit<{
|
|
241
|
+
readonly method: "GET";
|
|
242
|
+
readonly path: "/collections";
|
|
243
|
+
readonly query: {
|
|
244
|
+
readonly schema: _$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
245
|
+
readonly type: _$valibot.SchemaWithPipe<readonly [_$valibot.NullishSchema<_$valibot.StringSchema<undefined>, undefined>, _$valibot.DescriptionAction<string | null | undefined, "Type of collections to filter by">]>;
|
|
246
|
+
readonly shopId: _$valibot.SchemaWithPipe<readonly [_$valibot.NullishSchema<_$valibot.NumberSchema<undefined>, undefined>, _$valibot.DescriptionAction<number | null | undefined, "Filter collections by shop ID">]>;
|
|
247
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
248
|
+
type?: string | null | undefined;
|
|
249
|
+
shopId?: number | null | undefined;
|
|
250
|
+
}, "Parameters for fetching the list of collections.">]>;
|
|
251
|
+
};
|
|
252
|
+
}, "path"> & {
|
|
253
|
+
readonly path: {
|
|
254
|
+
readonly template: "/collections";
|
|
255
|
+
readonly schema?: undefined;
|
|
256
|
+
};
|
|
257
|
+
}>, {
|
|
258
|
+
readonly 200: HttpOperationJsonResponse<_$valibot.SchemaWithPipe<readonly [_$valibot.ArraySchema<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
259
|
+
readonly id: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Unique identifier of the collection">]>;
|
|
260
|
+
readonly icon: _$valibot.SchemaWithPipe<readonly [NullishToUndefinedSchema<_$valibot.StringSchema<undefined>>, _$valibot.DescriptionAction<string | undefined, "URL or path to the collection's icon">]>;
|
|
261
|
+
readonly name: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Name of the collection">]>;
|
|
262
|
+
readonly priority: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Priority for sorting or display order">]>;
|
|
263
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
264
|
+
id: number;
|
|
265
|
+
icon: string | undefined;
|
|
266
|
+
name: string;
|
|
267
|
+
priority: number;
|
|
268
|
+
}, "Collection card returned by collection listing endpoints.">]>, undefined>, _$valibot.DescriptionAction<{
|
|
269
|
+
id: number;
|
|
270
|
+
icon: string | undefined;
|
|
271
|
+
name: string;
|
|
272
|
+
priority: number;
|
|
273
|
+
}[], "List of collection cards available in the storefront.">]>>;
|
|
274
|
+
}>;
|
|
275
|
+
readonly get: HttpOperationDef<"collections", "get", Simplify<Omit<{
|
|
276
|
+
readonly method: "GET";
|
|
277
|
+
readonly path: {
|
|
278
|
+
readonly template: "/collections/{collectionId}";
|
|
279
|
+
readonly schema: _$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
280
|
+
readonly collectionId: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Unique identifier of the collection">]>;
|
|
281
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
282
|
+
collectionId: number;
|
|
283
|
+
}, "Parameters for fetching a specific collection.">]>;
|
|
284
|
+
};
|
|
285
|
+
}, "path"> & {
|
|
286
|
+
readonly path: {
|
|
287
|
+
readonly template: "/collections/{collectionId}";
|
|
288
|
+
readonly schema: _$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
289
|
+
readonly collectionId: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Unique identifier of the collection">]>;
|
|
290
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
291
|
+
collectionId: number;
|
|
292
|
+
}, "Parameters for fetching a specific collection.">]>;
|
|
293
|
+
};
|
|
294
|
+
}>, {
|
|
295
|
+
readonly 200: HttpOperationJsonResponse<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
296
|
+
readonly type: _$valibot.SchemaWithPipe<readonly [_$valibot.SchemaWithPipe<readonly [_$valibot.UnionSchema<[_$valibot.LiteralSchema<"Collection", undefined>, _$valibot.LiteralSchema<"ProductShelf", undefined>], undefined>, _$valibot.DescriptionAction<"Collection" | "ProductShelf", "Type union for collection responses (observed values: \"Collection\", \"ProductShelf\")">]>, _$valibot.DescriptionAction<"Collection" | "ProductShelf", "Type of the collection container (observed values: \"Collection\", \"ProductShelf\")">]>;
|
|
297
|
+
readonly id: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Unique identifier of the collection">]>;
|
|
298
|
+
readonly cover: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "URL for the cover image">]>;
|
|
299
|
+
readonly description: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Description of the collection">]>;
|
|
300
|
+
readonly name: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Name of the collection">]>;
|
|
301
|
+
readonly priority: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Priority for sorting or display order">]>;
|
|
302
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
303
|
+
type: "Collection" | "ProductShelf";
|
|
304
|
+
id: number;
|
|
305
|
+
cover: string;
|
|
306
|
+
description: string;
|
|
307
|
+
name: string;
|
|
308
|
+
priority: number;
|
|
309
|
+
}, "Collection presentation object returned by the collection detail endpoint.">]>>;
|
|
310
|
+
}>;
|
|
311
|
+
};
|
|
312
|
+
//#endregion
|
|
313
|
+
export { collectionsOperations };
|
|
314
|
+
//# sourceMappingURL=operations.d.cts.map
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
import { Simplify } from "../../type-utils/simplify.mjs";
|
|
2
|
+
import { HttpOperationDef, HttpOperationJsonResponse } from "../../http-operation/types.mjs";
|
|
3
|
+
import { NullishToUndefinedSchema } from "../../schema/nullish.mjs";
|
|
4
|
+
import * as _$valibot from "valibot";
|
|
5
|
+
|
|
6
|
+
//#region src/api/collections/operations.d.ts
|
|
7
|
+
declare const collectionsOperations: {
|
|
8
|
+
readonly getSkus: HttpOperationDef<"collections", "getSkus", Simplify<Omit<{
|
|
9
|
+
readonly method: "GET";
|
|
10
|
+
readonly path: "/api/v2/collections/skus";
|
|
11
|
+
readonly query: {
|
|
12
|
+
readonly schema: _$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
13
|
+
readonly pageNumber: _$valibot.SchemaWithPipe<readonly [_$valibot.NullishSchema<_$valibot.NumberSchema<undefined>, undefined>, _$valibot.DescriptionAction<number | null | undefined, "Number of the page to retrieve">]>;
|
|
14
|
+
readonly pageSize: _$valibot.SchemaWithPipe<readonly [_$valibot.NullishSchema<_$valibot.NumberSchema<undefined>, undefined>, _$valibot.DescriptionAction<number | null | undefined, "Number of items per page">]>;
|
|
15
|
+
readonly collectionId: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Unique identifier of the collection">]>;
|
|
16
|
+
readonly sortBy: _$valibot.SchemaWithPipe<readonly [_$valibot.NullishSchema<_$valibot.SchemaWithPipe<readonly [_$valibot.UnionSchema<[_$valibot.LiteralSchema<"byRelevance", undefined>, _$valibot.LiteralSchema<"popularity", undefined>, _$valibot.LiteralSchema<"highestRated", undefined>, _$valibot.LiteralSchema<"new", undefined>, _$valibot.LiteralSchema<"price", undefined>, _$valibot.LiteralSchema<"priceDesc", undefined>], undefined>, _$valibot.DescriptionAction<"byRelevance" | "popularity" | "highestRated" | "new" | "price" | "priceDesc", "Type union for product sort keys">]>, undefined>, _$valibot.DescriptionAction<"byRelevance" | "popularity" | "highestRated" | "new" | "price" | "priceDesc" | null | undefined, "Sorting option for the results">]>;
|
|
17
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
18
|
+
pageNumber?: number | null | undefined;
|
|
19
|
+
pageSize?: number | null | undefined;
|
|
20
|
+
collectionId: number;
|
|
21
|
+
sortBy?: "byRelevance" | "popularity" | "highestRated" | "new" | "price" | "priceDesc" | null | undefined;
|
|
22
|
+
}, "Parameters for fetching SKUs from a collection.">]>;
|
|
23
|
+
};
|
|
24
|
+
}, "path"> & {
|
|
25
|
+
readonly path: {
|
|
26
|
+
readonly template: "/api/v2/collections/skus";
|
|
27
|
+
readonly schema?: undefined;
|
|
28
|
+
};
|
|
29
|
+
}>, {
|
|
30
|
+
readonly 200: HttpOperationJsonResponse<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
31
|
+
readonly pageNumber: _$valibot.NumberSchema<undefined>;
|
|
32
|
+
readonly totalPages: _$valibot.NumberSchema<undefined>;
|
|
33
|
+
readonly totalCount: _$valibot.NumberSchema<undefined>;
|
|
34
|
+
readonly hasPreviousPage: _$valibot.BooleanSchema<undefined>;
|
|
35
|
+
readonly hasNextPage: _$valibot.BooleanSchema<undefined>;
|
|
36
|
+
readonly filters: _$valibot.SchemaWithPipe<readonly [_$valibot.ArraySchema<_$valibot.SchemaWithPipe<readonly [_$valibot.VariantSchema<"type", [_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
37
|
+
readonly type: _$valibot.SchemaWithPipe<readonly [_$valibot.SchemaWithPipe<readonly [_$valibot.LiteralSchema<"range", undefined>, _$valibot.DescriptionAction<"range", "Type literal for range-based filters">]>, _$valibot.DescriptionAction<"range", "Filter type: range for price slider">]>;
|
|
38
|
+
readonly name: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Localized display name of the filter">]>;
|
|
39
|
+
readonly code: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Unique code identifying the filter type">]>;
|
|
40
|
+
readonly options: _$valibot.SchemaWithPipe<readonly [_$valibot.ArraySchema<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
41
|
+
readonly min: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Minimum value for range filters">]>;
|
|
42
|
+
readonly max: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Maximum value for range filters">]>;
|
|
43
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
44
|
+
min: number;
|
|
45
|
+
max: number;
|
|
46
|
+
}, "Schema for range filter options (e.g., price slider).\nCommon schema used by multiple APIs.">]>, undefined>, _$valibot.DescriptionAction<{
|
|
47
|
+
min: number;
|
|
48
|
+
max: number;
|
|
49
|
+
}[], "List of available options for this filter">]>;
|
|
50
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
51
|
+
type: "range";
|
|
52
|
+
name: string;
|
|
53
|
+
code: string;
|
|
54
|
+
options: {
|
|
55
|
+
min: number;
|
|
56
|
+
max: number;
|
|
57
|
+
}[];
|
|
58
|
+
}, "Schema for range filters (e.g., price slider).\nUse this in discriminatedUnion-based filter schemas.">]>, _$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
59
|
+
readonly type: _$valibot.SchemaWithPipe<readonly [_$valibot.SchemaWithPipe<readonly [_$valibot.UnionSchema<[_$valibot.LiteralSchema<"category", undefined>, _$valibot.LiteralSchema<"alphabetic_search_list", undefined>], undefined>, _$valibot.DescriptionAction<"category" | "alphabetic_search_list", "Type union for category filter types">]>, _$valibot.DescriptionAction<"category" | "alphabetic_search_list", "Filter type: category or alphabetic_search_list">]>;
|
|
60
|
+
readonly name: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Localized display name of the filter">]>;
|
|
61
|
+
readonly code: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Unique code identifying the filter type">]>;
|
|
62
|
+
readonly options: _$valibot.SchemaWithPipe<readonly [_$valibot.ArraySchema<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
63
|
+
readonly label: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Display label for the filter option">]>;
|
|
64
|
+
readonly value: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Value for the filter option">]>;
|
|
65
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
66
|
+
label: string;
|
|
67
|
+
value: number;
|
|
68
|
+
}, "Schema for category/brand filter options.\nCommon schema used by multiple APIs.">]>, undefined>, _$valibot.DescriptionAction<{
|
|
69
|
+
label: string;
|
|
70
|
+
value: number;
|
|
71
|
+
}[], "List of available options for this filter">]>;
|
|
72
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
73
|
+
type: "category" | "alphabetic_search_list";
|
|
74
|
+
name: string;
|
|
75
|
+
code: string;
|
|
76
|
+
options: {
|
|
77
|
+
label: string;
|
|
78
|
+
value: number;
|
|
79
|
+
}[];
|
|
80
|
+
}, "Schema for category/brand filters.\nUse this in discriminatedUnion-based filter schemas.">]>], undefined>, _$valibot.DescriptionAction<{
|
|
81
|
+
type: "category" | "alphabetic_search_list";
|
|
82
|
+
name: string;
|
|
83
|
+
code: string;
|
|
84
|
+
options: {
|
|
85
|
+
label: string;
|
|
86
|
+
value: number;
|
|
87
|
+
}[];
|
|
88
|
+
} | {
|
|
89
|
+
type: "range";
|
|
90
|
+
name: string;
|
|
91
|
+
code: string;
|
|
92
|
+
options: {
|
|
93
|
+
min: number;
|
|
94
|
+
max: number;
|
|
95
|
+
}[];
|
|
96
|
+
}, "Union filter schema that can be either range or category filter.\nThis is the recommended pattern for type-safe filters.">]>, undefined>, _$valibot.DescriptionAction<({
|
|
97
|
+
type: "category" | "alphabetic_search_list";
|
|
98
|
+
name: string;
|
|
99
|
+
code: string;
|
|
100
|
+
options: {
|
|
101
|
+
label: string;
|
|
102
|
+
value: number;
|
|
103
|
+
}[];
|
|
104
|
+
} | {
|
|
105
|
+
type: "range";
|
|
106
|
+
name: string;
|
|
107
|
+
code: string;
|
|
108
|
+
options: {
|
|
109
|
+
min: number;
|
|
110
|
+
max: number;
|
|
111
|
+
}[];
|
|
112
|
+
})[], "List of applicable filters for the collection">]>;
|
|
113
|
+
readonly items: _$valibot.SchemaWithPipe<readonly [_$valibot.ArraySchema<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
114
|
+
readonly productId: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Unique product identifier">]>;
|
|
115
|
+
readonly skuId: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Unique stock keeping unit identifier">]>;
|
|
116
|
+
readonly imageUrl: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "URL for the full-size image">]>;
|
|
117
|
+
readonly name: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Display name of the product">]>;
|
|
118
|
+
readonly shortDescription: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Brief description of the product">]>;
|
|
119
|
+
readonly thumbnailUrl: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "URL for the small preview image">]>;
|
|
120
|
+
readonly originalPrice: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Original price before discounts">]>;
|
|
121
|
+
readonly price: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Current selling price">]>;
|
|
122
|
+
readonly qty: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Quantity available in stock">]>;
|
|
123
|
+
readonly stockAvailability: _$valibot.SchemaWithPipe<readonly [NullishToUndefinedSchema<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
124
|
+
readonly type: _$valibot.SchemaWithPipe<readonly [_$valibot.SchemaWithPipe<readonly [_$valibot.LiteralSchema<"stock", undefined>, _$valibot.DescriptionAction<"stock", "Type literal for SKU stock availability type">]>, _$valibot.DescriptionAction<"stock", "Type of stock status (known value: \"stock\")">]>;
|
|
125
|
+
readonly svg: _$valibot.SchemaWithPipe<readonly [NullishToUndefinedSchema<_$valibot.StringSchema<undefined>>, _$valibot.DescriptionAction<string | undefined, "SVG icon representing stock status">]>;
|
|
126
|
+
readonly text: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Localized text describing stock status (e.g., \"В наличии - осталось всего 16 штук\")">]>;
|
|
127
|
+
readonly maxQty: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Maximum quantity available">]>;
|
|
128
|
+
readonly maxQtyReason: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Localized reason text for quantity limit (e.g., \"В наличии только 16 штук\")">]>;
|
|
129
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
130
|
+
type: "stock";
|
|
131
|
+
svg: string | undefined;
|
|
132
|
+
text: string;
|
|
133
|
+
maxQty: number;
|
|
134
|
+
maxQtyReason: string;
|
|
135
|
+
}, "Schema for stock availability information.">]>>, _$valibot.DescriptionAction<{
|
|
136
|
+
type: "stock";
|
|
137
|
+
svg: string | undefined;
|
|
138
|
+
text: string;
|
|
139
|
+
maxQty: number;
|
|
140
|
+
maxQtyReason: string;
|
|
141
|
+
} | undefined, "Stock availability details">]>;
|
|
142
|
+
readonly isPromo: _$valibot.SchemaWithPipe<readonly [_$valibot.BooleanSchema<undefined>, _$valibot.DescriptionAction<boolean, "Indicates if the item is on promotion">]>;
|
|
143
|
+
readonly promoName: _$valibot.SchemaWithPipe<readonly [NullishToUndefinedSchema<_$valibot.StringSchema<undefined>>, _$valibot.DescriptionAction<string | undefined, "Name of the promotion">]>;
|
|
144
|
+
readonly qtyPurchasedInfo: _$valibot.SchemaWithPipe<readonly [NullishToUndefinedSchema<_$valibot.StringSchema<undefined>>, _$valibot.DescriptionAction<string | undefined, "Popularity text indicating purchase frequency (e.g., \"Часто покупают\")">]>;
|
|
145
|
+
readonly rating: _$valibot.SchemaWithPipe<readonly [NullishToUndefinedSchema<_$valibot.NumberSchema<undefined>>, _$valibot.DescriptionAction<number | undefined, "Average rating score">]>;
|
|
146
|
+
readonly scoreQuantity: _$valibot.SchemaWithPipe<readonly [NullishToUndefinedSchema<_$valibot.NumberSchema<undefined>>, _$valibot.DescriptionAction<number | undefined, "Total number of ratings">]>;
|
|
147
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
148
|
+
productId: number;
|
|
149
|
+
skuId: number;
|
|
150
|
+
imageUrl: string;
|
|
151
|
+
name: string;
|
|
152
|
+
shortDescription: string;
|
|
153
|
+
thumbnailUrl: string;
|
|
154
|
+
originalPrice: number;
|
|
155
|
+
price: number;
|
|
156
|
+
qty: number;
|
|
157
|
+
stockAvailability: {
|
|
158
|
+
type: "stock";
|
|
159
|
+
svg: string | undefined;
|
|
160
|
+
text: string;
|
|
161
|
+
maxQty: number;
|
|
162
|
+
maxQtyReason: string;
|
|
163
|
+
} | undefined;
|
|
164
|
+
isPromo: boolean;
|
|
165
|
+
promoName: string | undefined;
|
|
166
|
+
qtyPurchasedInfo: string | undefined;
|
|
167
|
+
rating: number | undefined;
|
|
168
|
+
scoreQuantity: number | undefined;
|
|
169
|
+
}, "Product card returned inside collection SKU feeds.">]>, undefined>, _$valibot.DescriptionAction<{
|
|
170
|
+
productId: number;
|
|
171
|
+
skuId: number;
|
|
172
|
+
imageUrl: string;
|
|
173
|
+
name: string;
|
|
174
|
+
shortDescription: string;
|
|
175
|
+
thumbnailUrl: string;
|
|
176
|
+
originalPrice: number;
|
|
177
|
+
price: number;
|
|
178
|
+
qty: number;
|
|
179
|
+
stockAvailability: {
|
|
180
|
+
type: "stock";
|
|
181
|
+
svg: string | undefined;
|
|
182
|
+
text: string;
|
|
183
|
+
maxQty: number;
|
|
184
|
+
maxQtyReason: string;
|
|
185
|
+
} | undefined;
|
|
186
|
+
isPromo: boolean;
|
|
187
|
+
promoName: string | undefined;
|
|
188
|
+
qtyPurchasedInfo: string | undefined;
|
|
189
|
+
rating: number | undefined;
|
|
190
|
+
scoreQuantity: number | undefined;
|
|
191
|
+
}[], "List of SKU items in the collection">]>;
|
|
192
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
193
|
+
pageNumber: number;
|
|
194
|
+
totalPages: number;
|
|
195
|
+
totalCount: number;
|
|
196
|
+
hasPreviousPage: boolean;
|
|
197
|
+
hasNextPage: boolean;
|
|
198
|
+
filters: ({
|
|
199
|
+
type: "category" | "alphabetic_search_list";
|
|
200
|
+
name: string;
|
|
201
|
+
code: string;
|
|
202
|
+
options: {
|
|
203
|
+
label: string;
|
|
204
|
+
value: number;
|
|
205
|
+
}[];
|
|
206
|
+
} | {
|
|
207
|
+
type: "range";
|
|
208
|
+
name: string;
|
|
209
|
+
code: string;
|
|
210
|
+
options: {
|
|
211
|
+
min: number;
|
|
212
|
+
max: number;
|
|
213
|
+
}[];
|
|
214
|
+
})[];
|
|
215
|
+
items: {
|
|
216
|
+
productId: number;
|
|
217
|
+
skuId: number;
|
|
218
|
+
imageUrl: string;
|
|
219
|
+
name: string;
|
|
220
|
+
shortDescription: string;
|
|
221
|
+
thumbnailUrl: string;
|
|
222
|
+
originalPrice: number;
|
|
223
|
+
price: number;
|
|
224
|
+
qty: number;
|
|
225
|
+
stockAvailability: {
|
|
226
|
+
type: "stock";
|
|
227
|
+
svg: string | undefined;
|
|
228
|
+
text: string;
|
|
229
|
+
maxQty: number;
|
|
230
|
+
maxQtyReason: string;
|
|
231
|
+
} | undefined;
|
|
232
|
+
isPromo: boolean;
|
|
233
|
+
promoName: string | undefined;
|
|
234
|
+
qtyPurchasedInfo: string | undefined;
|
|
235
|
+
rating: number | undefined;
|
|
236
|
+
scoreQuantity: number | undefined;
|
|
237
|
+
}[];
|
|
238
|
+
}, "Paginated collection SKU response with filters, product cards, and pagination metadata.">]>>;
|
|
239
|
+
}>;
|
|
240
|
+
readonly list: HttpOperationDef<"collections", "list", Simplify<Omit<{
|
|
241
|
+
readonly method: "GET";
|
|
242
|
+
readonly path: "/collections";
|
|
243
|
+
readonly query: {
|
|
244
|
+
readonly schema: _$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
245
|
+
readonly type: _$valibot.SchemaWithPipe<readonly [_$valibot.NullishSchema<_$valibot.StringSchema<undefined>, undefined>, _$valibot.DescriptionAction<string | null | undefined, "Type of collections to filter by">]>;
|
|
246
|
+
readonly shopId: _$valibot.SchemaWithPipe<readonly [_$valibot.NullishSchema<_$valibot.NumberSchema<undefined>, undefined>, _$valibot.DescriptionAction<number | null | undefined, "Filter collections by shop ID">]>;
|
|
247
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
248
|
+
type?: string | null | undefined;
|
|
249
|
+
shopId?: number | null | undefined;
|
|
250
|
+
}, "Parameters for fetching the list of collections.">]>;
|
|
251
|
+
};
|
|
252
|
+
}, "path"> & {
|
|
253
|
+
readonly path: {
|
|
254
|
+
readonly template: "/collections";
|
|
255
|
+
readonly schema?: undefined;
|
|
256
|
+
};
|
|
257
|
+
}>, {
|
|
258
|
+
readonly 200: HttpOperationJsonResponse<_$valibot.SchemaWithPipe<readonly [_$valibot.ArraySchema<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
259
|
+
readonly id: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Unique identifier of the collection">]>;
|
|
260
|
+
readonly icon: _$valibot.SchemaWithPipe<readonly [NullishToUndefinedSchema<_$valibot.StringSchema<undefined>>, _$valibot.DescriptionAction<string | undefined, "URL or path to the collection's icon">]>;
|
|
261
|
+
readonly name: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Name of the collection">]>;
|
|
262
|
+
readonly priority: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Priority for sorting or display order">]>;
|
|
263
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
264
|
+
id: number;
|
|
265
|
+
icon: string | undefined;
|
|
266
|
+
name: string;
|
|
267
|
+
priority: number;
|
|
268
|
+
}, "Collection card returned by collection listing endpoints.">]>, undefined>, _$valibot.DescriptionAction<{
|
|
269
|
+
id: number;
|
|
270
|
+
icon: string | undefined;
|
|
271
|
+
name: string;
|
|
272
|
+
priority: number;
|
|
273
|
+
}[], "List of collection cards available in the storefront.">]>>;
|
|
274
|
+
}>;
|
|
275
|
+
readonly get: HttpOperationDef<"collections", "get", Simplify<Omit<{
|
|
276
|
+
readonly method: "GET";
|
|
277
|
+
readonly path: {
|
|
278
|
+
readonly template: "/collections/{collectionId}";
|
|
279
|
+
readonly schema: _$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
280
|
+
readonly collectionId: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Unique identifier of the collection">]>;
|
|
281
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
282
|
+
collectionId: number;
|
|
283
|
+
}, "Parameters for fetching a specific collection.">]>;
|
|
284
|
+
};
|
|
285
|
+
}, "path"> & {
|
|
286
|
+
readonly path: {
|
|
287
|
+
readonly template: "/collections/{collectionId}";
|
|
288
|
+
readonly schema: _$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
289
|
+
readonly collectionId: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Unique identifier of the collection">]>;
|
|
290
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
291
|
+
collectionId: number;
|
|
292
|
+
}, "Parameters for fetching a specific collection.">]>;
|
|
293
|
+
};
|
|
294
|
+
}>, {
|
|
295
|
+
readonly 200: HttpOperationJsonResponse<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
296
|
+
readonly type: _$valibot.SchemaWithPipe<readonly [_$valibot.SchemaWithPipe<readonly [_$valibot.UnionSchema<[_$valibot.LiteralSchema<"Collection", undefined>, _$valibot.LiteralSchema<"ProductShelf", undefined>], undefined>, _$valibot.DescriptionAction<"Collection" | "ProductShelf", "Type union for collection responses (observed values: \"Collection\", \"ProductShelf\")">]>, _$valibot.DescriptionAction<"Collection" | "ProductShelf", "Type of the collection container (observed values: \"Collection\", \"ProductShelf\")">]>;
|
|
297
|
+
readonly id: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Unique identifier of the collection">]>;
|
|
298
|
+
readonly cover: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "URL for the cover image">]>;
|
|
299
|
+
readonly description: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Description of the collection">]>;
|
|
300
|
+
readonly name: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Name of the collection">]>;
|
|
301
|
+
readonly priority: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Priority for sorting or display order">]>;
|
|
302
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
303
|
+
type: "Collection" | "ProductShelf";
|
|
304
|
+
id: number;
|
|
305
|
+
cover: string;
|
|
306
|
+
description: string;
|
|
307
|
+
name: string;
|
|
308
|
+
priority: number;
|
|
309
|
+
}, "Collection presentation object returned by the collection detail endpoint.">]>>;
|
|
310
|
+
}>;
|
|
311
|
+
};
|
|
312
|
+
//#endregion
|
|
313
|
+
export { collectionsOperations };
|
|
314
|
+
//# sourceMappingURL=operations.d.mts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { collectionsGetSkusOperation } from "./get-skus/operation.mjs";
|
|
2
|
+
import { collectionsListOperation } from "./list/operation.mjs";
|
|
3
|
+
import { collectionsGetOperation } from "./get/operation.mjs";
|
|
4
|
+
//#region src/api/collections/operations.ts
|
|
5
|
+
const collectionsOperations = {
|
|
6
|
+
getSkus: collectionsGetSkusOperation,
|
|
7
|
+
list: collectionsListOperation,
|
|
8
|
+
get: collectionsGetOperation
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { collectionsOperations };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=operations.mjs.map
|