@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
|
@@ -0,0 +1,266 @@
|
|
|
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/shops/get-products/operation.d.ts
|
|
7
|
+
declare const shopsGetProductsOperation: HttpOperationDef<"shops", "getProducts", Simplify<Omit<{
|
|
8
|
+
readonly method: "GET";
|
|
9
|
+
readonly path: {
|
|
10
|
+
readonly template: "/api/v2/shops/{shopId}/products";
|
|
11
|
+
readonly schema: _$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
12
|
+
readonly shopId: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Unique identifier of the shop">]>;
|
|
13
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
14
|
+
shopId: number;
|
|
15
|
+
}, "Path parameters for fetching products from a shop.">]>;
|
|
16
|
+
};
|
|
17
|
+
readonly query: {
|
|
18
|
+
readonly schema: _$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
19
|
+
readonly pageNumber: _$valibot.SchemaWithPipe<readonly [_$valibot.NullishSchema<_$valibot.NumberSchema<undefined>, undefined>, _$valibot.DescriptionAction<number | null | undefined, "Number of the page to retrieve">]>;
|
|
20
|
+
readonly pageSize: _$valibot.SchemaWithPipe<readonly [_$valibot.NullishSchema<_$valibot.NumberSchema<undefined>, undefined>, _$valibot.DescriptionAction<number | null | undefined, "Number of items per page">]>;
|
|
21
|
+
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">]>;
|
|
22
|
+
readonly categoryId: _$valibot.SchemaWithPipe<readonly [_$valibot.NullishSchema<_$valibot.NumberSchema<undefined>, undefined>, _$valibot.DescriptionAction<number | null | undefined, "Filter by category ID">]>;
|
|
23
|
+
readonly brandIds: _$valibot.SchemaWithPipe<readonly [_$valibot.NullishSchema<_$valibot.ArraySchema<_$valibot.NumberSchema<undefined>, undefined>, undefined>, _$valibot.DescriptionAction<number[] | null | undefined, "Filter by brand IDs">]>;
|
|
24
|
+
readonly minPrice: _$valibot.SchemaWithPipe<readonly [_$valibot.NullishSchema<_$valibot.NumberSchema<undefined>, undefined>, _$valibot.DescriptionAction<number | null | undefined, "Minimum price filter">]>;
|
|
25
|
+
readonly maxPrice: _$valibot.SchemaWithPipe<readonly [_$valibot.NullishSchema<_$valibot.NumberSchema<undefined>, undefined>, _$valibot.DescriptionAction<number | null | undefined, "Maximum price filter">]>;
|
|
26
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
27
|
+
pageNumber?: number | null | undefined;
|
|
28
|
+
pageSize?: number | null | undefined;
|
|
29
|
+
sortBy?: "byRelevance" | "popularity" | "highestRated" | "new" | "price" | "priceDesc" | null | undefined;
|
|
30
|
+
categoryId?: number | null | undefined;
|
|
31
|
+
brandIds?: number[] | null | undefined;
|
|
32
|
+
minPrice?: number | null | undefined;
|
|
33
|
+
maxPrice?: number | null | undefined;
|
|
34
|
+
}, "Query parameters for fetching products from a shop.">]>;
|
|
35
|
+
};
|
|
36
|
+
}, "path"> & {
|
|
37
|
+
readonly path: {
|
|
38
|
+
readonly template: "/api/v2/shops/{shopId}/products";
|
|
39
|
+
readonly schema: _$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
40
|
+
readonly shopId: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Unique identifier of the shop">]>;
|
|
41
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
42
|
+
shopId: number;
|
|
43
|
+
}, "Path parameters for fetching products from a shop.">]>;
|
|
44
|
+
};
|
|
45
|
+
}>, {
|
|
46
|
+
readonly 200: HttpOperationJsonResponse<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
47
|
+
readonly pageNumber: _$valibot.NumberSchema<undefined>;
|
|
48
|
+
readonly totalPages: _$valibot.NumberSchema<undefined>;
|
|
49
|
+
readonly totalCount: _$valibot.NumberSchema<undefined>;
|
|
50
|
+
readonly hasPreviousPage: _$valibot.BooleanSchema<undefined>;
|
|
51
|
+
readonly hasNextPage: _$valibot.BooleanSchema<undefined>;
|
|
52
|
+
readonly filters: _$valibot.SchemaWithPipe<readonly [_$valibot.ArraySchema<_$valibot.SchemaWithPipe<readonly [_$valibot.VariantSchema<"type", [_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
53
|
+
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">]>;
|
|
54
|
+
readonly name: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Localized display name of the filter">]>;
|
|
55
|
+
readonly code: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Unique code identifying the filter type">]>;
|
|
56
|
+
readonly options: _$valibot.SchemaWithPipe<readonly [_$valibot.ArraySchema<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
57
|
+
readonly min: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Minimum value for range filters">]>;
|
|
58
|
+
readonly max: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Maximum value for range filters">]>;
|
|
59
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
60
|
+
min: number;
|
|
61
|
+
max: number;
|
|
62
|
+
}, "Schema for range filter options (e.g., price slider).\nCommon schema used by multiple APIs.">]>, undefined>, _$valibot.DescriptionAction<{
|
|
63
|
+
min: number;
|
|
64
|
+
max: number;
|
|
65
|
+
}[], "List of available options for this filter">]>;
|
|
66
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
67
|
+
type: "range";
|
|
68
|
+
name: string;
|
|
69
|
+
code: string;
|
|
70
|
+
options: {
|
|
71
|
+
min: number;
|
|
72
|
+
max: number;
|
|
73
|
+
}[];
|
|
74
|
+
}, "Schema for range filters (e.g., price slider).\nUse this in discriminatedUnion-based filter schemas.">]>, _$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
75
|
+
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">]>;
|
|
76
|
+
readonly name: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Localized display name of the filter">]>;
|
|
77
|
+
readonly code: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Unique code identifying the filter type">]>;
|
|
78
|
+
readonly options: _$valibot.SchemaWithPipe<readonly [_$valibot.ArraySchema<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
79
|
+
readonly label: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Display label for the filter option">]>;
|
|
80
|
+
readonly value: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Value for the filter option">]>;
|
|
81
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
82
|
+
label: string;
|
|
83
|
+
value: number;
|
|
84
|
+
}, "Schema for category/brand filter options.\nCommon schema used by multiple APIs.">]>, undefined>, _$valibot.DescriptionAction<{
|
|
85
|
+
label: string;
|
|
86
|
+
value: number;
|
|
87
|
+
}[], "List of available options for this filter">]>;
|
|
88
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
89
|
+
type: "category" | "alphabetic_search_list";
|
|
90
|
+
name: string;
|
|
91
|
+
code: string;
|
|
92
|
+
options: {
|
|
93
|
+
label: string;
|
|
94
|
+
value: number;
|
|
95
|
+
}[];
|
|
96
|
+
}, "Schema for category/brand filters.\nUse this in discriminatedUnion-based filter schemas.">]>], 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
|
+
}, "Union filter schema that can be either range or category filter.\nThis is the recommended pattern for type-safe filters.">]>, undefined>, _$valibot.DescriptionAction<({
|
|
113
|
+
type: "category" | "alphabetic_search_list";
|
|
114
|
+
name: string;
|
|
115
|
+
code: string;
|
|
116
|
+
options: {
|
|
117
|
+
label: string;
|
|
118
|
+
value: number;
|
|
119
|
+
}[];
|
|
120
|
+
} | {
|
|
121
|
+
type: "range";
|
|
122
|
+
name: string;
|
|
123
|
+
code: string;
|
|
124
|
+
options: {
|
|
125
|
+
min: number;
|
|
126
|
+
max: number;
|
|
127
|
+
}[];
|
|
128
|
+
})[], "List of applicable filters">]>;
|
|
129
|
+
readonly items: _$valibot.SchemaWithPipe<readonly [_$valibot.ArraySchema<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
130
|
+
readonly productId: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Unique product identifier">]>;
|
|
131
|
+
readonly skuId: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Unique stock keeping unit identifier">]>;
|
|
132
|
+
readonly imageUrl: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "URL for the full-size image">]>;
|
|
133
|
+
readonly name: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Full display name of the product">]>;
|
|
134
|
+
readonly shortDescription: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Brief description of the product">]>;
|
|
135
|
+
readonly thumbnailUrl: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "URL for the small preview image">]>;
|
|
136
|
+
readonly originalPrice: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Original price before discounts">]>;
|
|
137
|
+
readonly price: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Current selling price">]>;
|
|
138
|
+
readonly inStock: _$valibot.SchemaWithPipe<readonly [_$valibot.BooleanSchema<undefined>, _$valibot.DescriptionAction<boolean, "Indicates if the item is in stock">]>;
|
|
139
|
+
readonly qty: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Quantity available in stock">]>;
|
|
140
|
+
readonly stockAvailability: _$valibot.SchemaWithPipe<readonly [NullishToUndefinedSchema<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
141
|
+
readonly type: _$valibot.SchemaWithPipe<readonly [_$valibot.SchemaWithPipe<readonly [_$valibot.LiteralSchema<"stock", undefined>, _$valibot.DescriptionAction<"stock", "Type literal for products stock availability type">]>, _$valibot.DescriptionAction<"stock", "Type of stock status (known value: \"stock\")">]>;
|
|
142
|
+
readonly svg: _$valibot.SchemaWithPipe<readonly [NullishToUndefinedSchema<_$valibot.StringSchema<undefined>>, _$valibot.DescriptionAction<string | undefined, "SVG icon representing stock status">]>;
|
|
143
|
+
readonly text: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Localized text describing stock status (e.g., \"В наличии - осталось всего 16 штук\")">]>;
|
|
144
|
+
readonly maxQty: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Maximum quantity available">]>;
|
|
145
|
+
readonly maxQtyReason: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Localized reason text for quantity limit (e.g., \"В наличии только 16 штук\")">]>;
|
|
146
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
147
|
+
type: "stock";
|
|
148
|
+
svg: string | undefined;
|
|
149
|
+
text: string;
|
|
150
|
+
maxQty: number;
|
|
151
|
+
maxQtyReason: string;
|
|
152
|
+
}, "Schema for stock availability information.">]>>, _$valibot.DescriptionAction<{
|
|
153
|
+
type: "stock";
|
|
154
|
+
svg: string | undefined;
|
|
155
|
+
text: string;
|
|
156
|
+
maxQty: number;
|
|
157
|
+
maxQtyReason: string;
|
|
158
|
+
} | undefined, "Stock availability details">]>;
|
|
159
|
+
readonly isPromo: _$valibot.SchemaWithPipe<readonly [_$valibot.BooleanSchema<undefined>, _$valibot.DescriptionAction<boolean, "Indicates if the product is on promotion">]>;
|
|
160
|
+
readonly promoName: _$valibot.SchemaWithPipe<readonly [NullishToUndefinedSchema<_$valibot.StringSchema<undefined>>, _$valibot.DescriptionAction<string | undefined, "Name of the promotion">]>;
|
|
161
|
+
readonly qtyPurchasedInfo: _$valibot.SchemaWithPipe<readonly [NullishToUndefinedSchema<_$valibot.StringSchema<undefined>>, _$valibot.DescriptionAction<string | undefined, "Popularity text indicating purchase frequency (e.g., \"Часто покупают\")">]>;
|
|
162
|
+
readonly rating: _$valibot.SchemaWithPipe<readonly [NullishToUndefinedSchema<_$valibot.NumberSchema<undefined>>, _$valibot.DescriptionAction<number | undefined, "Average rating score">]>;
|
|
163
|
+
readonly scoreQuantity: _$valibot.SchemaWithPipe<readonly [NullishToUndefinedSchema<_$valibot.NumberSchema<undefined>>, _$valibot.DescriptionAction<number | undefined, "Total number of ratings">]>;
|
|
164
|
+
readonly moderationStatus: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Moderation status code">]>;
|
|
165
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
166
|
+
productId: number;
|
|
167
|
+
skuId: number;
|
|
168
|
+
imageUrl: string;
|
|
169
|
+
name: string;
|
|
170
|
+
shortDescription: string;
|
|
171
|
+
thumbnailUrl: string;
|
|
172
|
+
originalPrice: number;
|
|
173
|
+
price: number;
|
|
174
|
+
inStock: boolean;
|
|
175
|
+
qty: number;
|
|
176
|
+
stockAvailability: {
|
|
177
|
+
type: "stock";
|
|
178
|
+
svg: string | undefined;
|
|
179
|
+
text: string;
|
|
180
|
+
maxQty: number;
|
|
181
|
+
maxQtyReason: string;
|
|
182
|
+
} | undefined;
|
|
183
|
+
isPromo: boolean;
|
|
184
|
+
promoName: string | undefined;
|
|
185
|
+
qtyPurchasedInfo: string | undefined;
|
|
186
|
+
rating: number | undefined;
|
|
187
|
+
scoreQuantity: number | undefined;
|
|
188
|
+
moderationStatus: number;
|
|
189
|
+
}, "Product card returned by the shop products endpoint.">]>, undefined>, _$valibot.DescriptionAction<{
|
|
190
|
+
productId: number;
|
|
191
|
+
skuId: number;
|
|
192
|
+
imageUrl: string;
|
|
193
|
+
name: string;
|
|
194
|
+
shortDescription: string;
|
|
195
|
+
thumbnailUrl: string;
|
|
196
|
+
originalPrice: number;
|
|
197
|
+
price: number;
|
|
198
|
+
inStock: boolean;
|
|
199
|
+
qty: number;
|
|
200
|
+
stockAvailability: {
|
|
201
|
+
type: "stock";
|
|
202
|
+
svg: string | undefined;
|
|
203
|
+
text: string;
|
|
204
|
+
maxQty: number;
|
|
205
|
+
maxQtyReason: string;
|
|
206
|
+
} | undefined;
|
|
207
|
+
isPromo: boolean;
|
|
208
|
+
promoName: string | undefined;
|
|
209
|
+
qtyPurchasedInfo: string | undefined;
|
|
210
|
+
rating: number | undefined;
|
|
211
|
+
scoreQuantity: number | undefined;
|
|
212
|
+
moderationStatus: number;
|
|
213
|
+
}[], "List of product items">]>;
|
|
214
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
215
|
+
pageNumber: number;
|
|
216
|
+
totalPages: number;
|
|
217
|
+
totalCount: number;
|
|
218
|
+
hasPreviousPage: boolean;
|
|
219
|
+
hasNextPage: boolean;
|
|
220
|
+
filters: ({
|
|
221
|
+
type: "category" | "alphabetic_search_list";
|
|
222
|
+
name: string;
|
|
223
|
+
code: string;
|
|
224
|
+
options: {
|
|
225
|
+
label: string;
|
|
226
|
+
value: number;
|
|
227
|
+
}[];
|
|
228
|
+
} | {
|
|
229
|
+
type: "range";
|
|
230
|
+
name: string;
|
|
231
|
+
code: string;
|
|
232
|
+
options: {
|
|
233
|
+
min: number;
|
|
234
|
+
max: number;
|
|
235
|
+
}[];
|
|
236
|
+
})[];
|
|
237
|
+
items: {
|
|
238
|
+
productId: number;
|
|
239
|
+
skuId: number;
|
|
240
|
+
imageUrl: string;
|
|
241
|
+
name: string;
|
|
242
|
+
shortDescription: string;
|
|
243
|
+
thumbnailUrl: string;
|
|
244
|
+
originalPrice: number;
|
|
245
|
+
price: number;
|
|
246
|
+
inStock: boolean;
|
|
247
|
+
qty: number;
|
|
248
|
+
stockAvailability: {
|
|
249
|
+
type: "stock";
|
|
250
|
+
svg: string | undefined;
|
|
251
|
+
text: string;
|
|
252
|
+
maxQty: number;
|
|
253
|
+
maxQtyReason: string;
|
|
254
|
+
} | undefined;
|
|
255
|
+
isPromo: boolean;
|
|
256
|
+
promoName: string | undefined;
|
|
257
|
+
qtyPurchasedInfo: string | undefined;
|
|
258
|
+
rating: number | undefined;
|
|
259
|
+
scoreQuantity: number | undefined;
|
|
260
|
+
moderationStatus: number;
|
|
261
|
+
}[];
|
|
262
|
+
}, "Paginated shop product response with filters, product cards, and pagination metadata.">]>>;
|
|
263
|
+
}>;
|
|
264
|
+
//#endregion
|
|
265
|
+
export { shopsGetProductsOperation };
|
|
266
|
+
//# sourceMappingURL=operation.d.cts.map
|
|
@@ -0,0 +1,266 @@
|
|
|
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/shops/get-products/operation.d.ts
|
|
7
|
+
declare const shopsGetProductsOperation: HttpOperationDef<"shops", "getProducts", Simplify<Omit<{
|
|
8
|
+
readonly method: "GET";
|
|
9
|
+
readonly path: {
|
|
10
|
+
readonly template: "/api/v2/shops/{shopId}/products";
|
|
11
|
+
readonly schema: _$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
12
|
+
readonly shopId: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Unique identifier of the shop">]>;
|
|
13
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
14
|
+
shopId: number;
|
|
15
|
+
}, "Path parameters for fetching products from a shop.">]>;
|
|
16
|
+
};
|
|
17
|
+
readonly query: {
|
|
18
|
+
readonly schema: _$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
19
|
+
readonly pageNumber: _$valibot.SchemaWithPipe<readonly [_$valibot.NullishSchema<_$valibot.NumberSchema<undefined>, undefined>, _$valibot.DescriptionAction<number | null | undefined, "Number of the page to retrieve">]>;
|
|
20
|
+
readonly pageSize: _$valibot.SchemaWithPipe<readonly [_$valibot.NullishSchema<_$valibot.NumberSchema<undefined>, undefined>, _$valibot.DescriptionAction<number | null | undefined, "Number of items per page">]>;
|
|
21
|
+
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">]>;
|
|
22
|
+
readonly categoryId: _$valibot.SchemaWithPipe<readonly [_$valibot.NullishSchema<_$valibot.NumberSchema<undefined>, undefined>, _$valibot.DescriptionAction<number | null | undefined, "Filter by category ID">]>;
|
|
23
|
+
readonly brandIds: _$valibot.SchemaWithPipe<readonly [_$valibot.NullishSchema<_$valibot.ArraySchema<_$valibot.NumberSchema<undefined>, undefined>, undefined>, _$valibot.DescriptionAction<number[] | null | undefined, "Filter by brand IDs">]>;
|
|
24
|
+
readonly minPrice: _$valibot.SchemaWithPipe<readonly [_$valibot.NullishSchema<_$valibot.NumberSchema<undefined>, undefined>, _$valibot.DescriptionAction<number | null | undefined, "Minimum price filter">]>;
|
|
25
|
+
readonly maxPrice: _$valibot.SchemaWithPipe<readonly [_$valibot.NullishSchema<_$valibot.NumberSchema<undefined>, undefined>, _$valibot.DescriptionAction<number | null | undefined, "Maximum price filter">]>;
|
|
26
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
27
|
+
pageNumber?: number | null | undefined;
|
|
28
|
+
pageSize?: number | null | undefined;
|
|
29
|
+
sortBy?: "byRelevance" | "popularity" | "highestRated" | "new" | "price" | "priceDesc" | null | undefined;
|
|
30
|
+
categoryId?: number | null | undefined;
|
|
31
|
+
brandIds?: number[] | null | undefined;
|
|
32
|
+
minPrice?: number | null | undefined;
|
|
33
|
+
maxPrice?: number | null | undefined;
|
|
34
|
+
}, "Query parameters for fetching products from a shop.">]>;
|
|
35
|
+
};
|
|
36
|
+
}, "path"> & {
|
|
37
|
+
readonly path: {
|
|
38
|
+
readonly template: "/api/v2/shops/{shopId}/products";
|
|
39
|
+
readonly schema: _$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
40
|
+
readonly shopId: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Unique identifier of the shop">]>;
|
|
41
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
42
|
+
shopId: number;
|
|
43
|
+
}, "Path parameters for fetching products from a shop.">]>;
|
|
44
|
+
};
|
|
45
|
+
}>, {
|
|
46
|
+
readonly 200: HttpOperationJsonResponse<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
47
|
+
readonly pageNumber: _$valibot.NumberSchema<undefined>;
|
|
48
|
+
readonly totalPages: _$valibot.NumberSchema<undefined>;
|
|
49
|
+
readonly totalCount: _$valibot.NumberSchema<undefined>;
|
|
50
|
+
readonly hasPreviousPage: _$valibot.BooleanSchema<undefined>;
|
|
51
|
+
readonly hasNextPage: _$valibot.BooleanSchema<undefined>;
|
|
52
|
+
readonly filters: _$valibot.SchemaWithPipe<readonly [_$valibot.ArraySchema<_$valibot.SchemaWithPipe<readonly [_$valibot.VariantSchema<"type", [_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
53
|
+
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">]>;
|
|
54
|
+
readonly name: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Localized display name of the filter">]>;
|
|
55
|
+
readonly code: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Unique code identifying the filter type">]>;
|
|
56
|
+
readonly options: _$valibot.SchemaWithPipe<readonly [_$valibot.ArraySchema<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
57
|
+
readonly min: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Minimum value for range filters">]>;
|
|
58
|
+
readonly max: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Maximum value for range filters">]>;
|
|
59
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
60
|
+
min: number;
|
|
61
|
+
max: number;
|
|
62
|
+
}, "Schema for range filter options (e.g., price slider).\nCommon schema used by multiple APIs.">]>, undefined>, _$valibot.DescriptionAction<{
|
|
63
|
+
min: number;
|
|
64
|
+
max: number;
|
|
65
|
+
}[], "List of available options for this filter">]>;
|
|
66
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
67
|
+
type: "range";
|
|
68
|
+
name: string;
|
|
69
|
+
code: string;
|
|
70
|
+
options: {
|
|
71
|
+
min: number;
|
|
72
|
+
max: number;
|
|
73
|
+
}[];
|
|
74
|
+
}, "Schema for range filters (e.g., price slider).\nUse this in discriminatedUnion-based filter schemas.">]>, _$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
75
|
+
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">]>;
|
|
76
|
+
readonly name: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Localized display name of the filter">]>;
|
|
77
|
+
readonly code: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Unique code identifying the filter type">]>;
|
|
78
|
+
readonly options: _$valibot.SchemaWithPipe<readonly [_$valibot.ArraySchema<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
79
|
+
readonly label: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Display label for the filter option">]>;
|
|
80
|
+
readonly value: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Value for the filter option">]>;
|
|
81
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
82
|
+
label: string;
|
|
83
|
+
value: number;
|
|
84
|
+
}, "Schema for category/brand filter options.\nCommon schema used by multiple APIs.">]>, undefined>, _$valibot.DescriptionAction<{
|
|
85
|
+
label: string;
|
|
86
|
+
value: number;
|
|
87
|
+
}[], "List of available options for this filter">]>;
|
|
88
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
89
|
+
type: "category" | "alphabetic_search_list";
|
|
90
|
+
name: string;
|
|
91
|
+
code: string;
|
|
92
|
+
options: {
|
|
93
|
+
label: string;
|
|
94
|
+
value: number;
|
|
95
|
+
}[];
|
|
96
|
+
}, "Schema for category/brand filters.\nUse this in discriminatedUnion-based filter schemas.">]>], 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
|
+
}, "Union filter schema that can be either range or category filter.\nThis is the recommended pattern for type-safe filters.">]>, undefined>, _$valibot.DescriptionAction<({
|
|
113
|
+
type: "category" | "alphabetic_search_list";
|
|
114
|
+
name: string;
|
|
115
|
+
code: string;
|
|
116
|
+
options: {
|
|
117
|
+
label: string;
|
|
118
|
+
value: number;
|
|
119
|
+
}[];
|
|
120
|
+
} | {
|
|
121
|
+
type: "range";
|
|
122
|
+
name: string;
|
|
123
|
+
code: string;
|
|
124
|
+
options: {
|
|
125
|
+
min: number;
|
|
126
|
+
max: number;
|
|
127
|
+
}[];
|
|
128
|
+
})[], "List of applicable filters">]>;
|
|
129
|
+
readonly items: _$valibot.SchemaWithPipe<readonly [_$valibot.ArraySchema<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
130
|
+
readonly productId: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Unique product identifier">]>;
|
|
131
|
+
readonly skuId: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Unique stock keeping unit identifier">]>;
|
|
132
|
+
readonly imageUrl: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "URL for the full-size image">]>;
|
|
133
|
+
readonly name: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Full display name of the product">]>;
|
|
134
|
+
readonly shortDescription: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Brief description of the product">]>;
|
|
135
|
+
readonly thumbnailUrl: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "URL for the small preview image">]>;
|
|
136
|
+
readonly originalPrice: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Original price before discounts">]>;
|
|
137
|
+
readonly price: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Current selling price">]>;
|
|
138
|
+
readonly inStock: _$valibot.SchemaWithPipe<readonly [_$valibot.BooleanSchema<undefined>, _$valibot.DescriptionAction<boolean, "Indicates if the item is in stock">]>;
|
|
139
|
+
readonly qty: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Quantity available in stock">]>;
|
|
140
|
+
readonly stockAvailability: _$valibot.SchemaWithPipe<readonly [NullishToUndefinedSchema<_$valibot.SchemaWithPipe<readonly [_$valibot.ObjectSchema<{
|
|
141
|
+
readonly type: _$valibot.SchemaWithPipe<readonly [_$valibot.SchemaWithPipe<readonly [_$valibot.LiteralSchema<"stock", undefined>, _$valibot.DescriptionAction<"stock", "Type literal for products stock availability type">]>, _$valibot.DescriptionAction<"stock", "Type of stock status (known value: \"stock\")">]>;
|
|
142
|
+
readonly svg: _$valibot.SchemaWithPipe<readonly [NullishToUndefinedSchema<_$valibot.StringSchema<undefined>>, _$valibot.DescriptionAction<string | undefined, "SVG icon representing stock status">]>;
|
|
143
|
+
readonly text: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Localized text describing stock status (e.g., \"В наличии - осталось всего 16 штук\")">]>;
|
|
144
|
+
readonly maxQty: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Maximum quantity available">]>;
|
|
145
|
+
readonly maxQtyReason: _$valibot.SchemaWithPipe<readonly [_$valibot.StringSchema<undefined>, _$valibot.DescriptionAction<string, "Localized reason text for quantity limit (e.g., \"В наличии только 16 штук\")">]>;
|
|
146
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
147
|
+
type: "stock";
|
|
148
|
+
svg: string | undefined;
|
|
149
|
+
text: string;
|
|
150
|
+
maxQty: number;
|
|
151
|
+
maxQtyReason: string;
|
|
152
|
+
}, "Schema for stock availability information.">]>>, _$valibot.DescriptionAction<{
|
|
153
|
+
type: "stock";
|
|
154
|
+
svg: string | undefined;
|
|
155
|
+
text: string;
|
|
156
|
+
maxQty: number;
|
|
157
|
+
maxQtyReason: string;
|
|
158
|
+
} | undefined, "Stock availability details">]>;
|
|
159
|
+
readonly isPromo: _$valibot.SchemaWithPipe<readonly [_$valibot.BooleanSchema<undefined>, _$valibot.DescriptionAction<boolean, "Indicates if the product is on promotion">]>;
|
|
160
|
+
readonly promoName: _$valibot.SchemaWithPipe<readonly [NullishToUndefinedSchema<_$valibot.StringSchema<undefined>>, _$valibot.DescriptionAction<string | undefined, "Name of the promotion">]>;
|
|
161
|
+
readonly qtyPurchasedInfo: _$valibot.SchemaWithPipe<readonly [NullishToUndefinedSchema<_$valibot.StringSchema<undefined>>, _$valibot.DescriptionAction<string | undefined, "Popularity text indicating purchase frequency (e.g., \"Часто покупают\")">]>;
|
|
162
|
+
readonly rating: _$valibot.SchemaWithPipe<readonly [NullishToUndefinedSchema<_$valibot.NumberSchema<undefined>>, _$valibot.DescriptionAction<number | undefined, "Average rating score">]>;
|
|
163
|
+
readonly scoreQuantity: _$valibot.SchemaWithPipe<readonly [NullishToUndefinedSchema<_$valibot.NumberSchema<undefined>>, _$valibot.DescriptionAction<number | undefined, "Total number of ratings">]>;
|
|
164
|
+
readonly moderationStatus: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.DescriptionAction<number, "Moderation status code">]>;
|
|
165
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
166
|
+
productId: number;
|
|
167
|
+
skuId: number;
|
|
168
|
+
imageUrl: string;
|
|
169
|
+
name: string;
|
|
170
|
+
shortDescription: string;
|
|
171
|
+
thumbnailUrl: string;
|
|
172
|
+
originalPrice: number;
|
|
173
|
+
price: number;
|
|
174
|
+
inStock: boolean;
|
|
175
|
+
qty: number;
|
|
176
|
+
stockAvailability: {
|
|
177
|
+
type: "stock";
|
|
178
|
+
svg: string | undefined;
|
|
179
|
+
text: string;
|
|
180
|
+
maxQty: number;
|
|
181
|
+
maxQtyReason: string;
|
|
182
|
+
} | undefined;
|
|
183
|
+
isPromo: boolean;
|
|
184
|
+
promoName: string | undefined;
|
|
185
|
+
qtyPurchasedInfo: string | undefined;
|
|
186
|
+
rating: number | undefined;
|
|
187
|
+
scoreQuantity: number | undefined;
|
|
188
|
+
moderationStatus: number;
|
|
189
|
+
}, "Product card returned by the shop products endpoint.">]>, undefined>, _$valibot.DescriptionAction<{
|
|
190
|
+
productId: number;
|
|
191
|
+
skuId: number;
|
|
192
|
+
imageUrl: string;
|
|
193
|
+
name: string;
|
|
194
|
+
shortDescription: string;
|
|
195
|
+
thumbnailUrl: string;
|
|
196
|
+
originalPrice: number;
|
|
197
|
+
price: number;
|
|
198
|
+
inStock: boolean;
|
|
199
|
+
qty: number;
|
|
200
|
+
stockAvailability: {
|
|
201
|
+
type: "stock";
|
|
202
|
+
svg: string | undefined;
|
|
203
|
+
text: string;
|
|
204
|
+
maxQty: number;
|
|
205
|
+
maxQtyReason: string;
|
|
206
|
+
} | undefined;
|
|
207
|
+
isPromo: boolean;
|
|
208
|
+
promoName: string | undefined;
|
|
209
|
+
qtyPurchasedInfo: string | undefined;
|
|
210
|
+
rating: number | undefined;
|
|
211
|
+
scoreQuantity: number | undefined;
|
|
212
|
+
moderationStatus: number;
|
|
213
|
+
}[], "List of product items">]>;
|
|
214
|
+
}, undefined>, _$valibot.DescriptionAction<{
|
|
215
|
+
pageNumber: number;
|
|
216
|
+
totalPages: number;
|
|
217
|
+
totalCount: number;
|
|
218
|
+
hasPreviousPage: boolean;
|
|
219
|
+
hasNextPage: boolean;
|
|
220
|
+
filters: ({
|
|
221
|
+
type: "category" | "alphabetic_search_list";
|
|
222
|
+
name: string;
|
|
223
|
+
code: string;
|
|
224
|
+
options: {
|
|
225
|
+
label: string;
|
|
226
|
+
value: number;
|
|
227
|
+
}[];
|
|
228
|
+
} | {
|
|
229
|
+
type: "range";
|
|
230
|
+
name: string;
|
|
231
|
+
code: string;
|
|
232
|
+
options: {
|
|
233
|
+
min: number;
|
|
234
|
+
max: number;
|
|
235
|
+
}[];
|
|
236
|
+
})[];
|
|
237
|
+
items: {
|
|
238
|
+
productId: number;
|
|
239
|
+
skuId: number;
|
|
240
|
+
imageUrl: string;
|
|
241
|
+
name: string;
|
|
242
|
+
shortDescription: string;
|
|
243
|
+
thumbnailUrl: string;
|
|
244
|
+
originalPrice: number;
|
|
245
|
+
price: number;
|
|
246
|
+
inStock: boolean;
|
|
247
|
+
qty: number;
|
|
248
|
+
stockAvailability: {
|
|
249
|
+
type: "stock";
|
|
250
|
+
svg: string | undefined;
|
|
251
|
+
text: string;
|
|
252
|
+
maxQty: number;
|
|
253
|
+
maxQtyReason: string;
|
|
254
|
+
} | undefined;
|
|
255
|
+
isPromo: boolean;
|
|
256
|
+
promoName: string | undefined;
|
|
257
|
+
qtyPurchasedInfo: string | undefined;
|
|
258
|
+
rating: number | undefined;
|
|
259
|
+
scoreQuantity: number | undefined;
|
|
260
|
+
moderationStatus: number;
|
|
261
|
+
}[];
|
|
262
|
+
}, "Paginated shop product response with filters, product cards, and pagination metadata.">]>>;
|
|
263
|
+
}>;
|
|
264
|
+
//#endregion
|
|
265
|
+
export { shopsGetProductsOperation };
|
|
266
|
+
//# sourceMappingURL=operation.d.mts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineHttpOperation } from "../../../http-operation/define.mjs";
|
|
2
|
+
import { response } from "../../../http-operation/response-helpers.mjs";
|
|
3
|
+
import { shopsGetProductsRequestPathSchema, shopsGetProductsRequestQuerySchema } from "./request.mjs";
|
|
4
|
+
import { shopsGetProductsResponse200Schema } from "./responses.mjs";
|
|
5
|
+
//#region src/api/shops/get-products/operation.ts
|
|
6
|
+
const shopsGetProductsOperation = defineHttpOperation({
|
|
7
|
+
domain: "shops",
|
|
8
|
+
action: "getProducts",
|
|
9
|
+
auth: "none",
|
|
10
|
+
safety: "read",
|
|
11
|
+
summary: "Retrieve products for a shop.",
|
|
12
|
+
description: "Returns a paginated product listing for a specific shop, including filters and product card metadata.",
|
|
13
|
+
request: {
|
|
14
|
+
method: "GET",
|
|
15
|
+
path: {
|
|
16
|
+
template: "/api/v2/shops/{shopId}/products",
|
|
17
|
+
schema: shopsGetProductsRequestPathSchema
|
|
18
|
+
},
|
|
19
|
+
query: { schema: shopsGetProductsRequestQuerySchema }
|
|
20
|
+
},
|
|
21
|
+
responses: { 200: response({ schema: shopsGetProductsResponse200Schema }) }
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
export { shopsGetProductsOperation };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=operation.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation.mjs","names":[],"sources":["../../../../src/api/shops/get-products/operation.ts"],"sourcesContent":["import { defineHttpOperation } from \"../../../http-operation/define\";\nimport { response } from \"../../../http-operation/response-helpers\";\nimport {\n\tshopsGetProductsRequestPathSchema,\n\tshopsGetProductsRequestQuerySchema,\n} from \"./request\";\nimport { shopsGetProductsResponse200Schema } from \"./responses\";\n\nexport const shopsGetProductsOperation = defineHttpOperation({\n\tdomain: \"shops\",\n\taction: \"getProducts\",\n\tauth: \"none\",\n\tsafety: \"read\",\n\tsummary: \"Retrieve products for a shop.\",\n\tdescription:\n\t\t\"Returns a paginated product listing for a specific shop, including filters and product card metadata.\",\n\trequest: {\n\t\tmethod: \"GET\",\n\t\tpath: {\n\t\t\ttemplate: \"/api/v2/shops/{shopId}/products\",\n\t\t\tschema: shopsGetProductsRequestPathSchema,\n\t\t},\n\t\tquery: {\n\t\t\tschema: shopsGetProductsRequestQuerySchema,\n\t\t},\n\t},\n\tresponses: {\n\t\t200: response({\n\t\t\tschema: shopsGetProductsResponse200Schema,\n\t\t}),\n\t},\n});\n"],"mappings":";;;;;AAQA,MAAa,4BAA4B,oBAAoB;CAC5D,QAAQ;CACR,QAAQ;CACR,MAAM;CACN,QAAQ;CACR,SAAS;CACT,aACC;CACD,SAAS;EACR,QAAQ;EACR,MAAM;GACL,UAAU;GACV,QAAQ;GACR;EACD,OAAO,EACN,QAAQ,oCACR;EACD;CACD,WAAW,EACV,KAAK,SAAS,EACb,QAAQ,mCACR,CAAC,EACF;CACD,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const require_runtime = require("../../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
let valibot = require("valibot");
|
|
3
|
+
valibot = require_runtime.__toESM(valibot);
|
|
4
|
+
//#region src/api/shops/get-products/request.ts
|
|
5
|
+
const shopsGetProductsRequestPathSchema = valibot.pipe(valibot.object({ shopId: valibot.pipe(valibot.number(), valibot.description("Unique identifier of the shop")) }), valibot.description("Path parameters for fetching products from a shop."));
|
|
6
|
+
const shopsGetProductsRequestQuerySortKeySchema = valibot.pipe(valibot.union([
|
|
7
|
+
valibot.literal("byRelevance"),
|
|
8
|
+
valibot.literal("popularity"),
|
|
9
|
+
valibot.literal("highestRated"),
|
|
10
|
+
valibot.literal("new"),
|
|
11
|
+
valibot.literal("price"),
|
|
12
|
+
valibot.literal("priceDesc")
|
|
13
|
+
]), valibot.description("Type union for product sort keys"));
|
|
14
|
+
const shopsGetProductsRequestQuerySchema = valibot.pipe(valibot.object({
|
|
15
|
+
pageNumber: valibot.pipe(valibot.nullish(valibot.number()), valibot.description("Number of the page to retrieve")),
|
|
16
|
+
pageSize: valibot.pipe(valibot.nullish(valibot.number()), valibot.description("Number of items per page")),
|
|
17
|
+
sortBy: valibot.pipe(valibot.nullish(shopsGetProductsRequestQuerySortKeySchema), valibot.description("Sorting option for the results")),
|
|
18
|
+
categoryId: valibot.pipe(valibot.nullish(valibot.number()), valibot.description("Filter by category ID")),
|
|
19
|
+
brandIds: valibot.pipe(valibot.nullish(valibot.array(valibot.number())), valibot.description("Filter by brand IDs")),
|
|
20
|
+
minPrice: valibot.pipe(valibot.nullish(valibot.number()), valibot.description("Minimum price filter")),
|
|
21
|
+
maxPrice: valibot.pipe(valibot.nullish(valibot.number()), valibot.description("Maximum price filter"))
|
|
22
|
+
}), valibot.description("Query parameters for fetching products from a shop."));
|
|
23
|
+
//#endregion
|
|
24
|
+
exports.shopsGetProductsRequestPathSchema = shopsGetProductsRequestPathSchema;
|
|
25
|
+
exports.shopsGetProductsRequestQuerySchema = shopsGetProductsRequestQuerySchema;
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=request.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.cjs","names":["v"],"sources":["../../../../src/api/shops/get-products/request.ts"],"sourcesContent":["import * as v from \"valibot\";\n\nexport const shopsGetProductsRequestPathSchema = v.pipe(\n\tv.object({\n\t\tshopId: v.pipe(v.number(), v.description(\"Unique identifier of the shop\")),\n\t}),\n\tv.description(\"Path parameters for fetching products from a shop.\"),\n);\nexport const shopsGetProductsRequestQuerySortKeySchema = v.pipe(\n\tv.union([\n\t\tv.literal(\"byRelevance\"),\n\t\tv.literal(\"popularity\"),\n\t\tv.literal(\"highestRated\"),\n\t\tv.literal(\"new\"),\n\t\tv.literal(\"price\"),\n\t\tv.literal(\"priceDesc\"),\n\t]),\n\tv.description(\"Type union for product sort keys\"),\n);\nexport const shopsGetProductsRequestQuerySchema = v.pipe(\n\tv.object({\n\t\tpageNumber: v.pipe(\n\t\t\tv.nullish(v.number()),\n\t\t\tv.description(\"Number of the page to retrieve\"),\n\t\t),\n\t\tpageSize: v.pipe(\n\t\t\tv.nullish(v.number()),\n\t\t\tv.description(\"Number of items per page\"),\n\t\t),\n\t\tsortBy: v.pipe(\n\t\t\tv.nullish(shopsGetProductsRequestQuerySortKeySchema),\n\t\t\tv.description(\"Sorting option for the results\"),\n\t\t),\n\t\tcategoryId: v.pipe(\n\t\t\tv.nullish(v.number()),\n\t\t\tv.description(\"Filter by category ID\"),\n\t\t),\n\t\tbrandIds: v.pipe(\n\t\t\tv.nullish(v.array(v.number())),\n\t\t\tv.description(\"Filter by brand IDs\"),\n\t\t),\n\t\tminPrice: v.pipe(\n\t\t\tv.nullish(v.number()),\n\t\t\tv.description(\"Minimum price filter\"),\n\t\t),\n\t\tmaxPrice: v.pipe(\n\t\t\tv.nullish(v.number()),\n\t\t\tv.description(\"Maximum price filter\"),\n\t\t),\n\t}),\n\tv.description(\"Query parameters for fetching products from a shop.\"),\n);\n"],"mappings":";;;;AAEA,MAAa,oCAAoCA,QAAE,KAClDA,QAAE,OAAO,EACR,QAAQA,QAAE,KAAKA,QAAE,QAAQ,EAAEA,QAAE,YAAY,gCAAgC,CAAC,EAC1E,CAAC,EACFA,QAAE,YAAY,qDAAqD,CACnE;AACD,MAAa,4CAA4CA,QAAE,KAC1DA,QAAE,MAAM;CACPA,QAAE,QAAQ,cAAc;CACxBA,QAAE,QAAQ,aAAa;CACvBA,QAAE,QAAQ,eAAe;CACzBA,QAAE,QAAQ,MAAM;CAChBA,QAAE,QAAQ,QAAQ;CAClBA,QAAE,QAAQ,YAAY;CACtB,CAAC,EACFA,QAAE,YAAY,mCAAmC,CACjD;AACD,MAAa,qCAAqCA,QAAE,KACnDA,QAAE,OAAO;CACR,YAAYA,QAAE,KACbA,QAAE,QAAQA,QAAE,QAAQ,CAAC,EACrBA,QAAE,YAAY,iCAAiC,CAC/C;CACD,UAAUA,QAAE,KACXA,QAAE,QAAQA,QAAE,QAAQ,CAAC,EACrBA,QAAE,YAAY,2BAA2B,CACzC;CACD,QAAQA,QAAE,KACTA,QAAE,QAAQ,0CAA0C,EACpDA,QAAE,YAAY,iCAAiC,CAC/C;CACD,YAAYA,QAAE,KACbA,QAAE,QAAQA,QAAE,QAAQ,CAAC,EACrBA,QAAE,YAAY,wBAAwB,CACtC;CACD,UAAUA,QAAE,KACXA,QAAE,QAAQA,QAAE,MAAMA,QAAE,QAAQ,CAAC,CAAC,EAC9BA,QAAE,YAAY,sBAAsB,CACpC;CACD,UAAUA,QAAE,KACXA,QAAE,QAAQA,QAAE,QAAQ,CAAC,EACrBA,QAAE,YAAY,uBAAuB,CACrC;CACD,UAAUA,QAAE,KACXA,QAAE,QAAQA,QAAE,QAAQ,CAAC,EACrBA,QAAE,YAAY,uBAAuB,CACrC;CACD,CAAC,EACFA,QAAE,YAAY,sDAAsD,CACpE"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
//#region src/api/shops/get-products/request.ts
|
|
3
|
+
const shopsGetProductsRequestPathSchema = v.pipe(v.object({ shopId: v.pipe(v.number(), v.description("Unique identifier of the shop")) }), v.description("Path parameters for fetching products from a shop."));
|
|
4
|
+
const shopsGetProductsRequestQuerySortKeySchema = v.pipe(v.union([
|
|
5
|
+
v.literal("byRelevance"),
|
|
6
|
+
v.literal("popularity"),
|
|
7
|
+
v.literal("highestRated"),
|
|
8
|
+
v.literal("new"),
|
|
9
|
+
v.literal("price"),
|
|
10
|
+
v.literal("priceDesc")
|
|
11
|
+
]), v.description("Type union for product sort keys"));
|
|
12
|
+
const shopsGetProductsRequestQuerySchema = v.pipe(v.object({
|
|
13
|
+
pageNumber: v.pipe(v.nullish(v.number()), v.description("Number of the page to retrieve")),
|
|
14
|
+
pageSize: v.pipe(v.nullish(v.number()), v.description("Number of items per page")),
|
|
15
|
+
sortBy: v.pipe(v.nullish(shopsGetProductsRequestQuerySortKeySchema), v.description("Sorting option for the results")),
|
|
16
|
+
categoryId: v.pipe(v.nullish(v.number()), v.description("Filter by category ID")),
|
|
17
|
+
brandIds: v.pipe(v.nullish(v.array(v.number())), v.description("Filter by brand IDs")),
|
|
18
|
+
minPrice: v.pipe(v.nullish(v.number()), v.description("Minimum price filter")),
|
|
19
|
+
maxPrice: v.pipe(v.nullish(v.number()), v.description("Maximum price filter"))
|
|
20
|
+
}), v.description("Query parameters for fetching products from a shop."));
|
|
21
|
+
//#endregion
|
|
22
|
+
export { shopsGetProductsRequestPathSchema, shopsGetProductsRequestQuerySchema };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=request.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.mjs","names":[],"sources":["../../../../src/api/shops/get-products/request.ts"],"sourcesContent":["import * as v from \"valibot\";\n\nexport const shopsGetProductsRequestPathSchema = v.pipe(\n\tv.object({\n\t\tshopId: v.pipe(v.number(), v.description(\"Unique identifier of the shop\")),\n\t}),\n\tv.description(\"Path parameters for fetching products from a shop.\"),\n);\nexport const shopsGetProductsRequestQuerySortKeySchema = v.pipe(\n\tv.union([\n\t\tv.literal(\"byRelevance\"),\n\t\tv.literal(\"popularity\"),\n\t\tv.literal(\"highestRated\"),\n\t\tv.literal(\"new\"),\n\t\tv.literal(\"price\"),\n\t\tv.literal(\"priceDesc\"),\n\t]),\n\tv.description(\"Type union for product sort keys\"),\n);\nexport const shopsGetProductsRequestQuerySchema = v.pipe(\n\tv.object({\n\t\tpageNumber: v.pipe(\n\t\t\tv.nullish(v.number()),\n\t\t\tv.description(\"Number of the page to retrieve\"),\n\t\t),\n\t\tpageSize: v.pipe(\n\t\t\tv.nullish(v.number()),\n\t\t\tv.description(\"Number of items per page\"),\n\t\t),\n\t\tsortBy: v.pipe(\n\t\t\tv.nullish(shopsGetProductsRequestQuerySortKeySchema),\n\t\t\tv.description(\"Sorting option for the results\"),\n\t\t),\n\t\tcategoryId: v.pipe(\n\t\t\tv.nullish(v.number()),\n\t\t\tv.description(\"Filter by category ID\"),\n\t\t),\n\t\tbrandIds: v.pipe(\n\t\t\tv.nullish(v.array(v.number())),\n\t\t\tv.description(\"Filter by brand IDs\"),\n\t\t),\n\t\tminPrice: v.pipe(\n\t\t\tv.nullish(v.number()),\n\t\t\tv.description(\"Minimum price filter\"),\n\t\t),\n\t\tmaxPrice: v.pipe(\n\t\t\tv.nullish(v.number()),\n\t\t\tv.description(\"Maximum price filter\"),\n\t\t),\n\t}),\n\tv.description(\"Query parameters for fetching products from a shop.\"),\n);\n"],"mappings":";;AAEA,MAAa,oCAAoC,EAAE,KAClD,EAAE,OAAO,EACR,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,YAAY,gCAAgC,CAAC,EAC1E,CAAC,EACF,EAAE,YAAY,qDAAqD,CACnE;AACD,MAAa,4CAA4C,EAAE,KAC1D,EAAE,MAAM;CACP,EAAE,QAAQ,cAAc;CACxB,EAAE,QAAQ,aAAa;CACvB,EAAE,QAAQ,eAAe;CACzB,EAAE,QAAQ,MAAM;CAChB,EAAE,QAAQ,QAAQ;CAClB,EAAE,QAAQ,YAAY;CACtB,CAAC,EACF,EAAE,YAAY,mCAAmC,CACjD;AACD,MAAa,qCAAqC,EAAE,KACnD,EAAE,OAAO;CACR,YAAY,EAAE,KACb,EAAE,QAAQ,EAAE,QAAQ,CAAC,EACrB,EAAE,YAAY,iCAAiC,CAC/C;CACD,UAAU,EAAE,KACX,EAAE,QAAQ,EAAE,QAAQ,CAAC,EACrB,EAAE,YAAY,2BAA2B,CACzC;CACD,QAAQ,EAAE,KACT,EAAE,QAAQ,0CAA0C,EACpD,EAAE,YAAY,iCAAiC,CAC/C;CACD,YAAY,EAAE,KACb,EAAE,QAAQ,EAAE,QAAQ,CAAC,EACrB,EAAE,YAAY,wBAAwB,CACtC;CACD,UAAU,EAAE,KACX,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,EAC9B,EAAE,YAAY,sBAAsB,CACpC;CACD,UAAU,EAAE,KACX,EAAE,QAAQ,EAAE,QAAQ,CAAC,EACrB,EAAE,YAAY,uBAAuB,CACrC;CACD,UAAU,EAAE,KACX,EAAE,QAAQ,EAAE,QAAQ,CAAC,EACrB,EAAE,YAAY,uBAAuB,CACrC;CACD,CAAC,EACF,EAAE,YAAY,sDAAsD,CACpE"}
|