qeai-sdk 2.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/dist/constants/auth-commands.constant.d.ts +25 -0
- package/dist/constants/auth-commands.constant.js +25 -0
- package/dist/constants/category-commands.constant.d.ts +35 -0
- package/dist/constants/category-commands.constant.js +35 -0
- package/dist/constants/chain-commands.constant.d.ts +35 -0
- package/dist/constants/chain-commands.constant.js +35 -0
- package/dist/constants/index.d.ts +29 -0
- package/dist/constants/index.js +39 -0
- package/dist/constants/ingredient-commands.constant.d.ts +38 -0
- package/dist/constants/ingredient-commands.constant.js +38 -0
- package/dist/constants/order-commands.constant.d.ts +34 -0
- package/dist/constants/order-commands.constant.js +34 -0
- package/dist/constants/payment-commands.constant.d.ts +31 -0
- package/dist/constants/payment-commands.constant.js +31 -0
- package/dist/constants/payment-events.constant.d.ts +17 -0
- package/dist/constants/payment-events.constant.js +17 -0
- package/dist/constants/product-commands.constant.d.ts +119 -0
- package/dist/constants/product-commands.constant.js +126 -0
- package/dist/constants/product-events.constant.d.ts +32 -0
- package/dist/constants/product-events.constant.js +32 -0
- package/dist/constants/question-commands.constant.d.ts +43 -0
- package/dist/constants/question-commands.constant.js +43 -0
- package/dist/constants/restaurant-commands.constant.d.ts +33 -0
- package/dist/constants/restaurant-commands.constant.js +33 -0
- package/dist/constants/tag-commands.constant.d.ts +44 -0
- package/dist/constants/tag-commands.constant.js +44 -0
- package/dist/dtos/auth/index.d.ts +10 -0
- package/dist/dtos/auth/index.js +10 -0
- package/dist/dtos/auth/login-user.dto.d.ts +24 -0
- package/dist/dtos/auth/login-user.dto.js +44 -0
- package/dist/dtos/auth/register-user.dto.d.ts +30 -0
- package/dist/dtos/auth/register-user.dto.js +56 -0
- package/dist/dtos/categories/create-category.dto.d.ts +38 -0
- package/dist/dtos/categories/create-category.dto.js +69 -0
- package/dist/dtos/categories/delete-category.dto.d.ts +24 -0
- package/dist/dtos/categories/delete-category.dto.js +44 -0
- package/dist/dtos/categories/index.d.ts +11 -0
- package/dist/dtos/categories/index.js +11 -0
- package/dist/dtos/categories/update-category.dto.d.ts +26 -0
- package/dist/dtos/categories/update-category.dto.js +48 -0
- package/dist/dtos/chain/create-chain.dto.d.ts +43 -0
- package/dist/dtos/chain/create-chain.dto.js +75 -0
- package/dist/dtos/chain/delete-chain.dto.d.ts +24 -0
- package/dist/dtos/chain/delete-chain.dto.js +44 -0
- package/dist/dtos/chain/index.d.ts +11 -0
- package/dist/dtos/chain/index.js +11 -0
- package/dist/dtos/chain/update-chain.dto.d.ts +26 -0
- package/dist/dtos/chain/update-chain.dto.js +48 -0
- package/dist/dtos/common/index.d.ts +9 -0
- package/dist/dtos/common/index.js +9 -0
- package/dist/dtos/common/pagination.dto.d.ts +27 -0
- package/dist/dtos/common/pagination.dto.js +50 -0
- package/dist/dtos/index.d.ts +28 -0
- package/dist/dtos/index.js +40 -0
- package/dist/dtos/ingredients/create-ingredient.dto.d.ts +31 -0
- package/dist/dtos/ingredients/create-ingredient.dto.js +58 -0
- package/dist/dtos/ingredients/delete-ingredient.dto.d.ts +24 -0
- package/dist/dtos/ingredients/delete-ingredient.dto.js +44 -0
- package/dist/dtos/ingredients/index.d.ts +12 -0
- package/dist/dtos/ingredients/index.js +12 -0
- package/dist/dtos/ingredients/search-by-name.dto.d.ts +18 -0
- package/dist/dtos/ingredients/search-by-name.dto.js +33 -0
- package/dist/dtos/ingredients/update-ingredient.dto.d.ts +26 -0
- package/dist/dtos/ingredients/update-ingredient.dto.js +48 -0
- package/dist/dtos/orders/change-order-status.dto.d.ts +25 -0
- package/dist/dtos/orders/change-order-status.dto.js +43 -0
- package/dist/dtos/orders/create-order.dto.d.ts +62 -0
- package/dist/dtos/orders/create-order.dto.js +111 -0
- package/dist/dtos/orders/index.d.ts +14 -0
- package/dist/dtos/orders/index.js +14 -0
- package/dist/dtos/orders/order-item.dto.d.ts +65 -0
- package/dist/dtos/orders/order-item.dto.js +120 -0
- package/dist/dtos/orders/order-pagination.dto.d.ts +19 -0
- package/dist/dtos/orders/order-pagination.dto.js +34 -0
- package/dist/dtos/orders/paid-order.dto.d.ts +30 -0
- package/dist/dtos/orders/paid-order.dto.js +54 -0
- package/dist/dtos/orders/update-order.dto.d.ts +13 -0
- package/dist/dtos/orders/update-order.dto.js +13 -0
- package/dist/dtos/payments/index.d.ts +11 -0
- package/dist/dtos/payments/index.js +11 -0
- package/dist/dtos/payments/payment-session-item.dto.d.ts +70 -0
- package/dist/dtos/payments/payment-session-item.dto.js +129 -0
- package/dist/dtos/payments/payment-session.dto.d.ts +63 -0
- package/dist/dtos/payments/payment-session.dto.js +111 -0
- package/dist/dtos/payments/webhook-data.dto.d.ts +39 -0
- package/dist/dtos/payments/webhook-data.dto.js +68 -0
- package/dist/dtos/products/create-product.dto.d.ts +54 -0
- package/dist/dtos/products/create-product.dto.js +99 -0
- package/dist/dtos/products/delete-product.dto.d.ts +24 -0
- package/dist/dtos/products/delete-product.dto.js +44 -0
- package/dist/dtos/products/index.d.ts +12 -0
- package/dist/dtos/products/index.js +13 -0
- package/dist/dtos/products/submodules/index.d.ts +6 -0
- package/dist/dtos/products/submodules/index.js +7 -0
- package/dist/dtos/products/submodules/product-image/bulk-create-product-image.dto.d.ts +26 -0
- package/dist/dtos/products/submodules/product-image/bulk-create-product-image.dto.js +50 -0
- package/dist/dtos/products/submodules/product-image/create-product-image.dto.d.ts +32 -0
- package/dist/dtos/products/submodules/product-image/create-product-image.dto.js +59 -0
- package/dist/dtos/products/submodules/product-image/index.d.ts +12 -0
- package/dist/dtos/products/submodules/product-image/index.js +12 -0
- package/dist/dtos/products/submodules/product-image/set-primary-image.dto.d.ts +24 -0
- package/dist/dtos/products/submodules/product-image/set-primary-image.dto.js +46 -0
- package/dist/dtos/products/submodules/product-image/update-product-image.dto.d.ts +30 -0
- package/dist/dtos/products/submodules/product-image/update-product-image.dto.js +57 -0
- package/dist/dtos/products/submodules/product-question/create-product-question.dto.d.ts +40 -0
- package/dist/dtos/products/submodules/product-question/create-product-question.dto.js +76 -0
- package/dist/dtos/products/submodules/product-question/find-by-product-id-and-type.dto.d.ts +25 -0
- package/dist/dtos/products/submodules/product-question/find-by-product-id-and-type.dto.js +47 -0
- package/dist/dtos/products/submodules/product-question/index.d.ts +12 -0
- package/dist/dtos/products/submodules/product-question/index.js +12 -0
- package/dist/dtos/products/submodules/product-question/replace-by-product-id.dto.d.ts +27 -0
- package/dist/dtos/products/submodules/product-question/replace-by-product-id.dto.js +51 -0
- package/dist/dtos/products/submodules/product-question/update-product-question.dto.d.ts +32 -0
- package/dist/dtos/products/submodules/product-question/update-product-question.dto.js +63 -0
- package/dist/dtos/products/submodules/product-recipe/create-product-recipe.dto.d.ts +38 -0
- package/dist/dtos/products/submodules/product-recipe/create-product-recipe.dto.js +70 -0
- package/dist/dtos/products/submodules/product-recipe/index.d.ts +11 -0
- package/dist/dtos/products/submodules/product-recipe/index.js +11 -0
- package/dist/dtos/products/submodules/product-recipe/replace-by-product-id.dto.d.ts +27 -0
- package/dist/dtos/products/submodules/product-recipe/replace-by-product-id.dto.js +51 -0
- package/dist/dtos/products/submodules/product-recipe/update-product-recipe.dto.d.ts +37 -0
- package/dist/dtos/products/submodules/product-recipe/update-product-recipe.dto.js +71 -0
- package/dist/dtos/products/submodules/product-schedule/create-product-schedule.dto.d.ts +38 -0
- package/dist/dtos/products/submodules/product-schedule/create-product-schedule.dto.js +78 -0
- package/dist/dtos/products/submodules/product-schedule/index.d.ts +12 -0
- package/dist/dtos/products/submodules/product-schedule/index.js +12 -0
- package/dist/dtos/products/submodules/product-schedule/is-available-at-time.dto.d.ts +31 -0
- package/dist/dtos/products/submodules/product-schedule/is-available-at-time.dto.js +60 -0
- package/dist/dtos/products/submodules/product-schedule/replace-by-product-id.dto.d.ts +27 -0
- package/dist/dtos/products/submodules/product-schedule/replace-by-product-id.dto.js +51 -0
- package/dist/dtos/products/submodules/product-schedule/update-product-schedule.dto.d.ts +38 -0
- package/dist/dtos/products/submodules/product-schedule/update-product-schedule.dto.js +79 -0
- package/dist/dtos/products/submodules/product-size/create-product-size.dto.d.ts +39 -0
- package/dist/dtos/products/submodules/product-size/create-product-size.dto.js +73 -0
- package/dist/dtos/products/submodules/product-size/index.d.ts +12 -0
- package/dist/dtos/products/submodules/product-size/index.js +12 -0
- package/dist/dtos/products/submodules/product-size/product-size-data.dto.d.ts +32 -0
- package/dist/dtos/products/submodules/product-size/product-size-data.dto.js +60 -0
- package/dist/dtos/products/submodules/product-size/replace-by-product-id.dto.d.ts +27 -0
- package/dist/dtos/products/submodules/product-size/replace-by-product-id.dto.js +51 -0
- package/dist/dtos/products/submodules/product-size/update-product-size.dto.d.ts +37 -0
- package/dist/dtos/products/submodules/product-size/update-product-size.dto.js +72 -0
- package/dist/dtos/products/submodules/product-tag/create-product-tag.dto.d.ts +24 -0
- package/dist/dtos/products/submodules/product-tag/create-product-tag.dto.js +46 -0
- package/dist/dtos/products/submodules/product-tag/find-product-tag.dto.d.ts +24 -0
- package/dist/dtos/products/submodules/product-tag/find-product-tag.dto.js +46 -0
- package/dist/dtos/products/submodules/product-tag/index.d.ts +12 -0
- package/dist/dtos/products/submodules/product-tag/index.js +12 -0
- package/dist/dtos/products/submodules/product-tag/remove-product-tag.dto.d.ts +24 -0
- package/dist/dtos/products/submodules/product-tag/remove-product-tag.dto.js +46 -0
- package/dist/dtos/products/submodules/product-tag/replace-by-product-id.dto.d.ts +26 -0
- package/dist/dtos/products/submodules/product-tag/replace-by-product-id.dto.js +48 -0
- package/dist/dtos/products/update-product.dto.d.ts +27 -0
- package/dist/dtos/products/update-product.dto.js +48 -0
- package/dist/dtos/questions/create-question.dto.d.ts +54 -0
- package/dist/dtos/questions/create-question.dto.js +96 -0
- package/dist/dtos/questions/delete-question.dto.d.ts +24 -0
- package/dist/dtos/questions/delete-question.dto.js +44 -0
- package/dist/dtos/questions/index.d.ts +12 -0
- package/dist/dtos/questions/index.js +12 -0
- package/dist/dtos/questions/search-by-name.dto.d.ts +18 -0
- package/dist/dtos/questions/search-by-name.dto.js +33 -0
- package/dist/dtos/questions/update-question.dto.d.ts +26 -0
- package/dist/dtos/questions/update-question.dto.js +48 -0
- package/dist/dtos/restaurants/create-restaurant.dto.d.ts +57 -0
- package/dist/dtos/restaurants/create-restaurant.dto.js +100 -0
- package/dist/dtos/restaurants/delete-restaurant.dto.d.ts +24 -0
- package/dist/dtos/restaurants/delete-restaurant.dto.js +44 -0
- package/dist/dtos/restaurants/index.d.ts +11 -0
- package/dist/dtos/restaurants/index.js +11 -0
- package/dist/dtos/restaurants/update-restaurant.dto.d.ts +26 -0
- package/dist/dtos/restaurants/update-restaurant.dto.js +48 -0
- package/dist/dtos/tags/create-tag.dto.d.ts +24 -0
- package/dist/dtos/tags/create-tag.dto.js +46 -0
- package/dist/dtos/tags/delete-tag.dto.d.ts +24 -0
- package/dist/dtos/tags/delete-tag.dto.js +44 -0
- package/dist/dtos/tags/index.d.ts +12 -0
- package/dist/dtos/tags/index.js +12 -0
- package/dist/dtos/tags/search-by-name.dto.d.ts +18 -0
- package/dist/dtos/tags/search-by-name.dto.js +33 -0
- package/dist/dtos/tags/update-tag.dto.d.ts +26 -0
- package/dist/dtos/tags/update-tag.dto.js +48 -0
- package/dist/dtos/translations/create-translation.dto.d.ts +36 -0
- package/dist/dtos/translations/create-translation.dto.js +74 -0
- package/dist/dtos/translations/delete-translation.dto.d.ts +10 -0
- package/dist/dtos/translations/delete-translation.dto.js +25 -0
- package/dist/dtos/translations/find-translations-by-entity.dto.d.ts +16 -0
- package/dist/dtos/translations/find-translations-by-entity.dto.js +35 -0
- package/dist/dtos/translations/index.d.ts +4 -0
- package/dist/dtos/translations/index.js +4 -0
- package/dist/dtos/translations/update-translation.dto.d.ts +12 -0
- package/dist/dtos/translations/update-translation.dto.js +27 -0
- package/dist/enums/auth-provider.enum.d.ts +68 -0
- package/dist/enums/auth-provider.enum.js +69 -0
- package/dist/enums/currency.enum.d.ts +21 -0
- package/dist/enums/currency.enum.js +22 -0
- package/dist/enums/http-status-code.enum.d.ts +78 -0
- package/dist/enums/http-status-code.enum.js +84 -0
- package/dist/enums/http-status-text.enum.d.ts +91 -0
- package/dist/enums/http-status-text.enum.js +92 -0
- package/dist/enums/index.d.ts +12 -0
- package/dist/enums/index.js +12 -0
- package/dist/enums/language-code.enum.d.ts +19 -0
- package/dist/enums/language-code.enum.js +20 -0
- package/dist/enums/order-status.enum.d.ts +68 -0
- package/dist/enums/order-status.enum.js +69 -0
- package/dist/enums/order-type.enum.d.ts +45 -0
- package/dist/enums/order-type.enum.js +46 -0
- package/dist/enums/product-status.enum.d.ts +55 -0
- package/dist/enums/product-status.enum.js +56 -0
- package/dist/enums/question-product-type.enum.d.ts +37 -0
- package/dist/enums/question-product-type.enum.js +38 -0
- package/dist/enums/question-type.enum.d.ts +52 -0
- package/dist/enums/question-type.enum.js +53 -0
- package/dist/enums/role.enum.d.ts +67 -0
- package/dist/enums/role.enum.js +68 -0
- package/dist/enums/translation-entity-type.enum.d.ts +42 -0
- package/dist/enums/translation-entity-type.enum.js +43 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/interfaces/auth/access-token.interface.d.ts +24 -0
- package/dist/interfaces/auth/access-token.interface.js +1 -0
- package/dist/interfaces/auth/access-user.interface.d.ts +17 -0
- package/dist/interfaces/auth/access-user.interface.js +1 -0
- package/dist/interfaces/auth/account.interface.d.ts +85 -0
- package/dist/interfaces/auth/account.interface.js +1 -0
- package/dist/interfaces/auth/full-token.interface.d.ts +12 -0
- package/dist/interfaces/auth/full-token.interface.js +1 -0
- package/dist/interfaces/auth/index.d.ts +17 -0
- package/dist/interfaces/auth/index.js +18 -0
- package/dist/interfaces/auth/payload-jwt.interface.d.ts +39 -0
- package/dist/interfaces/auth/payload-jwt.interface.js +1 -0
- package/dist/interfaces/auth/refresh-token.interface.d.ts +25 -0
- package/dist/interfaces/auth/refresh-token.interface.js +1 -0
- package/dist/interfaces/auth/responses/auth-response.interface.d.ts +37 -0
- package/dist/interfaces/auth/responses/auth-response.interface.js +1 -0
- package/dist/interfaces/auth/responses/index.d.ts +2 -0
- package/dist/interfaces/auth/responses/index.js +2 -0
- package/dist/interfaces/auth/responses/refresh-token-response.interface.d.ts +29 -0
- package/dist/interfaces/auth/responses/refresh-token-response.interface.js +1 -0
- package/dist/interfaces/auth/user.interface.d.ts +53 -0
- package/dist/interfaces/auth/user.interface.js +1 -0
- package/dist/interfaces/auth/validate-user.interface.d.ts +36 -0
- package/dist/interfaces/auth/validate-user.interface.js +1 -0
- package/dist/interfaces/categories/categories-list-response.interface.d.ts +17 -0
- package/dist/interfaces/categories/categories-list-response.interface.js +1 -0
- package/dist/interfaces/categories/category-response.interface.d.ts +16 -0
- package/dist/interfaces/categories/category-response.interface.js +1 -0
- package/dist/interfaces/categories/category.interface.d.ts +76 -0
- package/dist/interfaces/categories/category.interface.js +1 -0
- package/dist/interfaces/categories/index.d.ts +11 -0
- package/dist/interfaces/categories/index.js +11 -0
- package/dist/interfaces/chains/chain-response.interface.d.ts +16 -0
- package/dist/interfaces/chains/chain-response.interface.js +1 -0
- package/dist/interfaces/chains/chain.interface.d.ts +79 -0
- package/dist/interfaces/chains/chain.interface.js +1 -0
- package/dist/interfaces/chains/chains-list-response.interface.d.ts +17 -0
- package/dist/interfaces/chains/chains-list-response.interface.js +1 -0
- package/dist/interfaces/chains/index.d.ts +11 -0
- package/dist/interfaces/chains/index.js +11 -0
- package/dist/interfaces/common/api-error-response.interface.d.ts +26 -0
- package/dist/interfaces/common/api-error-response.interface.js +1 -0
- package/dist/interfaces/common/api-error.interface.d.ts +43 -0
- package/dist/interfaces/common/api-error.interface.js +1 -0
- package/dist/interfaces/common/api-pagination-response.interface.d.ts +9 -0
- package/dist/interfaces/common/api-pagination-response.interface.js +1 -0
- package/dist/interfaces/common/api-response.interface.d.ts +36 -0
- package/dist/interfaces/common/api-response.interface.js +1 -0
- package/dist/interfaces/common/index.d.ts +13 -0
- package/dist/interfaces/common/index.js +13 -0
- package/dist/interfaces/common/rpc-error.interface.d.ts +36 -0
- package/dist/interfaces/common/rpc-error.interface.js +1 -0
- package/dist/interfaces/index.d.ts +30 -0
- package/dist/interfaces/index.js +42 -0
- package/dist/interfaces/ingredients/index.d.ts +11 -0
- package/dist/interfaces/ingredients/index.js +11 -0
- package/dist/interfaces/ingredients/ingredient-response.interface.d.ts +16 -0
- package/dist/interfaces/ingredients/ingredient-response.interface.js +1 -0
- package/dist/interfaces/ingredients/ingredient.interface.d.ts +79 -0
- package/dist/interfaces/ingredients/ingredient.interface.js +1 -0
- package/dist/interfaces/ingredients/ingredients-list-response.interface.d.ts +17 -0
- package/dist/interfaces/ingredients/ingredients-list-response.interface.js +1 -0
- package/dist/interfaces/orders/index.d.ts +14 -0
- package/dist/interfaces/orders/index.js +15 -0
- package/dist/interfaces/orders/order-created.interface.d.ts +46 -0
- package/dist/interfaces/orders/order-created.interface.js +1 -0
- package/dist/interfaces/orders/order-creation-strategy.interface.d.ts +17 -0
- package/dist/interfaces/orders/order-creation-strategy.interface.js +1 -0
- package/dist/interfaces/orders/order-item.interface.d.ts +70 -0
- package/dist/interfaces/orders/order-item.interface.js +1 -0
- package/dist/interfaces/orders/order-with-products.interface.d.ts +34 -0
- package/dist/interfaces/orders/order-with-products.interface.js +1 -0
- package/dist/interfaces/orders/order.interface.d.ts +114 -0
- package/dist/interfaces/orders/order.interface.js +1 -0
- package/dist/interfaces/orders/responses/change-order-status-response.interface.d.ts +5 -0
- package/dist/interfaces/orders/responses/change-order-status-response.interface.js +1 -0
- package/dist/interfaces/orders/responses/create-order-response.interface.d.ts +7 -0
- package/dist/interfaces/orders/responses/create-order-response.interface.js +1 -0
- package/dist/interfaces/orders/responses/index.d.ts +4 -0
- package/dist/interfaces/orders/responses/index.js +4 -0
- package/dist/interfaces/orders/responses/order-with-products-response.interface.d.ts +5 -0
- package/dist/interfaces/orders/responses/order-with-products-response.interface.js +1 -0
- package/dist/interfaces/orders/responses/orders-list-response.interface.d.ts +6 -0
- package/dist/interfaces/orders/responses/orders-list-response.interface.js +1 -0
- package/dist/interfaces/payments/audit-storage-strategy.interface.d.ts +19 -0
- package/dist/interfaces/payments/audit-storage-strategy.interface.js +1 -0
- package/dist/interfaces/payments/culqi-session-response.interface.d.ts +7 -0
- package/dist/interfaces/payments/culqi-session-response.interface.js +1 -0
- package/dist/interfaces/payments/index.d.ts +17 -0
- package/dist/interfaces/payments/index.js +18 -0
- package/dist/interfaces/payments/payment-audit-data.interface.d.ts +81 -0
- package/dist/interfaces/payments/payment-audit-data.interface.js +1 -0
- package/dist/interfaces/payments/payment-method-config.interface.d.ts +86 -0
- package/dist/interfaces/payments/payment-method-config.interface.js +1 -0
- package/dist/interfaces/payments/payment-provider.interface.d.ts +27 -0
- package/dist/interfaces/payments/payment-provider.interface.js +1 -0
- package/dist/interfaces/payments/payment-session-item.interface.d.ts +30 -0
- package/dist/interfaces/payments/payment-session-item.interface.js +1 -0
- package/dist/interfaces/payments/payment-succeeded-payload.interface.d.ts +29 -0
- package/dist/interfaces/payments/payment-succeeded-payload.interface.js +1 -0
- package/dist/interfaces/payments/responses/payment-callback-response.interface.d.ts +8 -0
- package/dist/interfaces/payments/responses/payment-callback-response.interface.js +1 -0
- package/dist/interfaces/payments/stripe-session-response.interface.d.ts +29 -0
- package/dist/interfaces/payments/stripe-session-response.interface.js +1 -0
- package/dist/interfaces/products/index.d.ts +16 -0
- package/dist/interfaces/products/index.js +17 -0
- package/dist/interfaces/products/product-image.interface.d.ts +55 -0
- package/dist/interfaces/products/product-image.interface.js +1 -0
- package/dist/interfaces/products/product-recipe.interface.d.ts +50 -0
- package/dist/interfaces/products/product-recipe.interface.js +1 -0
- package/dist/interfaces/products/product-schedule.interface.d.ts +45 -0
- package/dist/interfaces/products/product-schedule.interface.js +1 -0
- package/dist/interfaces/products/product-size.interface.d.ts +62 -0
- package/dist/interfaces/products/product-size.interface.js +1 -0
- package/dist/interfaces/products/product-tag.interface.d.ts +28 -0
- package/dist/interfaces/products/product-tag.interface.js +1 -0
- package/dist/interfaces/products/product-translation.interface.d.ts +43 -0
- package/dist/interfaces/products/product-translation.interface.js +1 -0
- package/dist/interfaces/products/product.interface.d.ts +113 -0
- package/dist/interfaces/products/product.interface.js +1 -0
- package/dist/interfaces/products/response/complete-product-response.interface.d.ts +5 -0
- package/dist/interfaces/products/response/complete-product-response.interface.js +1 -0
- package/dist/interfaces/products/response/index.d.ts +6 -0
- package/dist/interfaces/products/response/index.js +6 -0
- package/dist/interfaces/products/response/product-response.interface.d.ts +5 -0
- package/dist/interfaces/products/response/product-response.interface.js +1 -0
- package/dist/interfaces/products/response/products-list-response.interface.d.ts +6 -0
- package/dist/interfaces/products/response/products-list-response.interface.js +1 -0
- package/dist/interfaces/products/response/simple-product-response.interface.d.ts +3 -0
- package/dist/interfaces/products/response/simple-product-response.interface.js +1 -0
- package/dist/interfaces/products/response/sub-resources/create-tag-response.interface.d.ts +4 -0
- package/dist/interfaces/products/response/sub-resources/create-tag-response.interface.js +1 -0
- package/dist/interfaces/products/response/sub-resources/delete-sub-resource-response.interface.d.ts +9 -0
- package/dist/interfaces/products/response/sub-resources/delete-sub-resource-response.interface.js +1 -0
- package/dist/interfaces/products/response/sub-resources/find-product-image-response.interface.d.ts +4 -0
- package/dist/interfaces/products/response/sub-resources/find-product-image-response.interface.js +1 -0
- package/dist/interfaces/products/response/sub-resources/find-product-question-response.interface.d.ts +4 -0
- package/dist/interfaces/products/response/sub-resources/find-product-question-response.interface.js +1 -0
- package/dist/interfaces/products/response/sub-resources/find-product-recipe-response.interface.d.ts +4 -0
- package/dist/interfaces/products/response/sub-resources/find-product-recipe-response.interface.js +1 -0
- package/dist/interfaces/products/response/sub-resources/find-product-schedule-response.interface.d.ts +4 -0
- package/dist/interfaces/products/response/sub-resources/find-product-schedule-response.interface.js +1 -0
- package/dist/interfaces/products/response/sub-resources/find-product-size-response.interface.d.ts +4 -0
- package/dist/interfaces/products/response/sub-resources/find-product-size-response.interface.js +1 -0
- package/dist/interfaces/products/response/sub-resources/find-product-tag-response.interface.d.ts +4 -0
- package/dist/interfaces/products/response/sub-resources/find-product-tag-response.interface.js +1 -0
- package/dist/interfaces/products/response/sub-resources/find-sub-resource-response.interface.d.ts +4 -0
- package/dist/interfaces/products/response/sub-resources/find-sub-resource-response.interface.js +1 -0
- package/dist/interfaces/products/response/sub-resources/index.d.ts +25 -0
- package/dist/interfaces/products/response/sub-resources/index.js +25 -0
- package/dist/interfaces/products/response/sub-resources/list-product-images-response.interface.d.ts +4 -0
- package/dist/interfaces/products/response/sub-resources/list-product-images-response.interface.js +1 -0
- package/dist/interfaces/products/response/sub-resources/list-product-questions-response.interface.d.ts +4 -0
- package/dist/interfaces/products/response/sub-resources/list-product-questions-response.interface.js +1 -0
- package/dist/interfaces/products/response/sub-resources/list-product-recipes-response.interface.d.ts +4 -0
- package/dist/interfaces/products/response/sub-resources/list-product-recipes-response.interface.js +1 -0
- package/dist/interfaces/products/response/sub-resources/list-product-schedules-response.interface.d.ts +4 -0
- package/dist/interfaces/products/response/sub-resources/list-product-schedules-response.interface.js +1 -0
- package/dist/interfaces/products/response/sub-resources/list-product-sizes-response.interface.d.ts +4 -0
- package/dist/interfaces/products/response/sub-resources/list-product-sizes-response.interface.js +1 -0
- package/dist/interfaces/products/response/sub-resources/list-sub-resource-response.interface.d.ts +8 -0
- package/dist/interfaces/products/response/sub-resources/list-sub-resource-response.interface.js +1 -0
- package/dist/interfaces/products/response/sub-resources/product-schedule-availability.interface.d.ts +7 -0
- package/dist/interfaces/products/response/sub-resources/product-schedule-availability.interface.js +1 -0
- package/dist/interfaces/products/response/sub-resources/question-relationship.interface.d.ts +7 -0
- package/dist/interfaces/products/response/sub-resources/question-relationship.interface.js +1 -0
- package/dist/interfaces/products/response/sub-resources/recipe-relationship.interface.d.ts +9 -0
- package/dist/interfaces/products/response/sub-resources/recipe-relationship.interface.js +1 -0
- package/dist/interfaces/products/response/sub-resources/replace-sub-products-response.interface.d.ts +9 -0
- package/dist/interfaces/products/response/sub-resources/replace-sub-products-response.interface.js +1 -0
- package/dist/interfaces/products/response/sub-resources/sub-resource-response.interface.d.ts +10 -0
- package/dist/interfaces/products/response/sub-resources/sub-resource-response.interface.js +1 -0
- package/dist/interfaces/products/response/sub-resources/write-image-response.interface.d.ts +12 -0
- package/dist/interfaces/products/response/sub-resources/write-image-response.interface.js +1 -0
- package/dist/interfaces/products/response/sub-resources/write-question-product-response.interface.d.ts +4 -0
- package/dist/interfaces/products/response/sub-resources/write-question-product-response.interface.js +1 -0
- package/dist/interfaces/products/response/sub-resources/write-recipe-response.interface.d.ts +4 -0
- package/dist/interfaces/products/response/sub-resources/write-recipe-response.interface.js +1 -0
- package/dist/interfaces/products/response/sub-resources/write-schedule-response.interface.d.ts +4 -0
- package/dist/interfaces/products/response/sub-resources/write-schedule-response.interface.js +1 -0
- package/dist/interfaces/products/response/sub-resources/write-size-response.interface.d.ts +4 -0
- package/dist/interfaces/products/response/sub-resources/write-size-response.interface.js +1 -0
- package/dist/interfaces/questions/index.d.ts +3 -0
- package/dist/interfaces/questions/index.js +3 -0
- package/dist/interfaces/questions/question-response.interface.d.ts +16 -0
- package/dist/interfaces/questions/question-response.interface.js +1 -0
- package/dist/interfaces/questions/question.interface.d.ts +15 -0
- package/dist/interfaces/questions/question.interface.js +1 -0
- package/dist/interfaces/questions/questions-list-response.interface.d.ts +17 -0
- package/dist/interfaces/questions/questions-list-response.interface.js +1 -0
- package/dist/interfaces/restaurants/index.d.ts +11 -0
- package/dist/interfaces/restaurants/index.js +11 -0
- package/dist/interfaces/restaurants/restaurant-response.interface.d.ts +16 -0
- package/dist/interfaces/restaurants/restaurant-response.interface.js +1 -0
- package/dist/interfaces/restaurants/restaurant.interface.d.ts +96 -0
- package/dist/interfaces/restaurants/restaurant.interface.js +1 -0
- package/dist/interfaces/restaurants/restaurants-list-response.interface.d.ts +17 -0
- package/dist/interfaces/restaurants/restaurants-list-response.interface.js +1 -0
- package/dist/interfaces/tags/index.d.ts +11 -0
- package/dist/interfaces/tags/index.js +11 -0
- package/dist/interfaces/tags/tag-response.interface.d.ts +16 -0
- package/dist/interfaces/tags/tag-response.interface.js +1 -0
- package/dist/interfaces/tags/tag.interface.d.ts +64 -0
- package/dist/interfaces/tags/tag.interface.js +1 -0
- package/dist/interfaces/tags/tags-list-response.interface.d.ts +17 -0
- package/dist/interfaces/tags/tags-list-response.interface.js +1 -0
- package/dist/interfaces/translations/index.d.ts +11 -0
- package/dist/interfaces/translations/index.js +11 -0
- package/dist/interfaces/translations/translation-response.interface.d.ts +16 -0
- package/dist/interfaces/translations/translation-response.interface.js +1 -0
- package/dist/interfaces/translations/translation.interface.d.ts +77 -0
- package/dist/interfaces/translations/translation.interface.js +1 -0
- package/dist/interfaces/translations/translations-list-response.interface.d.ts +16 -0
- package/dist/interfaces/translations/translations-list-response.interface.js +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/order-mode.type.d.ts +14 -0
- package/dist/types/order-mode.type.js +1 -0
- package/package.json +27 -0
- package/tsconfig.json +25 -0
- package/tsconfig.node.json +9 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { PartialType } from '@nestjs/mapped-types';
|
|
11
|
+
import { CreateTranslationDto } from './create-translation.dto';
|
|
12
|
+
import { IsString, IsUUID } from 'class-validator';
|
|
13
|
+
/**
|
|
14
|
+
* DTO for updating a translation
|
|
15
|
+
*/
|
|
16
|
+
export class UpdateTranslationDto extends PartialType(CreateTranslationDto) {
|
|
17
|
+
/**
|
|
18
|
+
* Translation ID to update
|
|
19
|
+
* @example "translation-uuid-123"
|
|
20
|
+
*/
|
|
21
|
+
id;
|
|
22
|
+
}
|
|
23
|
+
__decorate([
|
|
24
|
+
IsString(),
|
|
25
|
+
IsUUID(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], UpdateTranslationDto.prototype, "id", void 0);
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enumerates all available authentication providers within the QeHay platform.
|
|
3
|
+
*
|
|
4
|
+
* @enum AuthProvider
|
|
5
|
+
* @since 2.0.0
|
|
6
|
+
*
|
|
7
|
+
* @description
|
|
8
|
+
* This enum standardizes authentication provider representation across all modules.
|
|
9
|
+
* It identifies how a user authenticated (local email/password or OAuth providers).
|
|
10
|
+
* Used for user management, authentication flows, and provider-specific logic.
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* - Default provider for new users is LOCAL.
|
|
14
|
+
* - OAuth providers require additional provider ID for identity verification.
|
|
15
|
+
* - Provider information is stored in both User and Account models.
|
|
16
|
+
*
|
|
17
|
+
* @property LOCAL Local authentication using email and password.
|
|
18
|
+
* @property GOOGLE Google OAuth 2.0 authentication.
|
|
19
|
+
* @property FACEBOOK Facebook OAuth 2.0 authentication.
|
|
20
|
+
* @property APPLE Apple Sign In authentication.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```
|
|
24
|
+
* import { AuthProvider } from './auth-provider.enum';
|
|
25
|
+
*
|
|
26
|
+
* function isOAuthProvider(provider: AuthProvider): boolean {
|
|
27
|
+
* return provider !== AuthProvider.LOCAL;
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare enum AuthProvider {
|
|
32
|
+
/**
|
|
33
|
+
* Local authentication provider.
|
|
34
|
+
* Default provider for new users.
|
|
35
|
+
* Users authenticate using email and password stored in the system.
|
|
36
|
+
* Requires password hash in Account model.
|
|
37
|
+
*
|
|
38
|
+
* @example AuthProvider.LOCAL
|
|
39
|
+
*/
|
|
40
|
+
LOCAL = "LOCAL",
|
|
41
|
+
/**
|
|
42
|
+
* Google OAuth 2.0 authentication provider.
|
|
43
|
+
* Users authenticate using their Google account.
|
|
44
|
+
* Requires provider ID (Google's sub) and access/refresh tokens.
|
|
45
|
+
* Password hash is null for OAuth accounts.
|
|
46
|
+
*
|
|
47
|
+
* @example AuthProvider.GOOGLE
|
|
48
|
+
*/
|
|
49
|
+
GOOGLE = "GOOGLE",
|
|
50
|
+
/**
|
|
51
|
+
* Facebook OAuth 2.0 authentication provider.
|
|
52
|
+
* Users authenticate using their Facebook account.
|
|
53
|
+
* Requires provider ID (Facebook's user ID) and access/refresh tokens.
|
|
54
|
+
* Password hash is null for OAuth accounts.
|
|
55
|
+
*
|
|
56
|
+
* @example AuthProvider.FACEBOOK
|
|
57
|
+
*/
|
|
58
|
+
FACEBOOK = "FACEBOOK",
|
|
59
|
+
/**
|
|
60
|
+
* Apple Sign In authentication provider.
|
|
61
|
+
* Users authenticate using their Apple ID.
|
|
62
|
+
* Requires provider ID (Apple's user identifier) and access/refresh tokens.
|
|
63
|
+
* Password hash is null for OAuth accounts.
|
|
64
|
+
*
|
|
65
|
+
* @example AuthProvider.APPLE
|
|
66
|
+
*/
|
|
67
|
+
APPLE = "APPLE"
|
|
68
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enumerates all available authentication providers within the QeHay platform.
|
|
3
|
+
*
|
|
4
|
+
* @enum AuthProvider
|
|
5
|
+
* @since 2.0.0
|
|
6
|
+
*
|
|
7
|
+
* @description
|
|
8
|
+
* This enum standardizes authentication provider representation across all modules.
|
|
9
|
+
* It identifies how a user authenticated (local email/password or OAuth providers).
|
|
10
|
+
* Used for user management, authentication flows, and provider-specific logic.
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* - Default provider for new users is LOCAL.
|
|
14
|
+
* - OAuth providers require additional provider ID for identity verification.
|
|
15
|
+
* - Provider information is stored in both User and Account models.
|
|
16
|
+
*
|
|
17
|
+
* @property LOCAL Local authentication using email and password.
|
|
18
|
+
* @property GOOGLE Google OAuth 2.0 authentication.
|
|
19
|
+
* @property FACEBOOK Facebook OAuth 2.0 authentication.
|
|
20
|
+
* @property APPLE Apple Sign In authentication.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```
|
|
24
|
+
* import { AuthProvider } from './auth-provider.enum';
|
|
25
|
+
*
|
|
26
|
+
* function isOAuthProvider(provider: AuthProvider): boolean {
|
|
27
|
+
* return provider !== AuthProvider.LOCAL;
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export var AuthProvider;
|
|
32
|
+
(function (AuthProvider) {
|
|
33
|
+
/**
|
|
34
|
+
* Local authentication provider.
|
|
35
|
+
* Default provider for new users.
|
|
36
|
+
* Users authenticate using email and password stored in the system.
|
|
37
|
+
* Requires password hash in Account model.
|
|
38
|
+
*
|
|
39
|
+
* @example AuthProvider.LOCAL
|
|
40
|
+
*/
|
|
41
|
+
AuthProvider["LOCAL"] = "LOCAL";
|
|
42
|
+
/**
|
|
43
|
+
* Google OAuth 2.0 authentication provider.
|
|
44
|
+
* Users authenticate using their Google account.
|
|
45
|
+
* Requires provider ID (Google's sub) and access/refresh tokens.
|
|
46
|
+
* Password hash is null for OAuth accounts.
|
|
47
|
+
*
|
|
48
|
+
* @example AuthProvider.GOOGLE
|
|
49
|
+
*/
|
|
50
|
+
AuthProvider["GOOGLE"] = "GOOGLE";
|
|
51
|
+
/**
|
|
52
|
+
* Facebook OAuth 2.0 authentication provider.
|
|
53
|
+
* Users authenticate using their Facebook account.
|
|
54
|
+
* Requires provider ID (Facebook's user ID) and access/refresh tokens.
|
|
55
|
+
* Password hash is null for OAuth accounts.
|
|
56
|
+
*
|
|
57
|
+
* @example AuthProvider.FACEBOOK
|
|
58
|
+
*/
|
|
59
|
+
AuthProvider["FACEBOOK"] = "FACEBOOK";
|
|
60
|
+
/**
|
|
61
|
+
* Apple Sign In authentication provider.
|
|
62
|
+
* Users authenticate using their Apple ID.
|
|
63
|
+
* Requires provider ID (Apple's user identifier) and access/refresh tokens.
|
|
64
|
+
* Password hash is null for OAuth accounts.
|
|
65
|
+
*
|
|
66
|
+
* @example AuthProvider.APPLE
|
|
67
|
+
*/
|
|
68
|
+
AuthProvider["APPLE"] = "APPLE";
|
|
69
|
+
})(AuthProvider || (AuthProvider = {}));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enumerates all supported currency codes for transactions and financial records across the QeHay platform.
|
|
3
|
+
*
|
|
4
|
+
* @enum Currency
|
|
5
|
+
* @since 2.0.0
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* This enum adheres to the ISO 4217 international standard for currency codes.
|
|
9
|
+
* It ensures consistent and type-safe usage of currency identifiers throughout the system.
|
|
10
|
+
* Extend this enumeration when adding support for new currencies across product, payment, or report modules.
|
|
11
|
+
*/
|
|
12
|
+
export declare enum Currency {
|
|
13
|
+
PEN = "PEN",// Peruvian Sol
|
|
14
|
+
USD = "USD",// United States Dollar
|
|
15
|
+
EUR = "EUR",// Euro
|
|
16
|
+
BRL = "BRL",// Brazilian Real
|
|
17
|
+
COP = "COP",// Colombian Peso
|
|
18
|
+
CLP = "CLP",// Chilean Peso
|
|
19
|
+
MXN = "MXN",// Mexican Peso
|
|
20
|
+
ARS = "ARS"
|
|
21
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enumerates all supported currency codes for transactions and financial records across the QeHay platform.
|
|
3
|
+
*
|
|
4
|
+
* @enum Currency
|
|
5
|
+
* @since 2.0.0
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* This enum adheres to the ISO 4217 international standard for currency codes.
|
|
9
|
+
* It ensures consistent and type-safe usage of currency identifiers throughout the system.
|
|
10
|
+
* Extend this enumeration when adding support for new currencies across product, payment, or report modules.
|
|
11
|
+
*/
|
|
12
|
+
export var Currency;
|
|
13
|
+
(function (Currency) {
|
|
14
|
+
Currency["PEN"] = "PEN";
|
|
15
|
+
Currency["USD"] = "USD";
|
|
16
|
+
Currency["EUR"] = "EUR";
|
|
17
|
+
Currency["BRL"] = "BRL";
|
|
18
|
+
Currency["COP"] = "COP";
|
|
19
|
+
Currency["CLP"] = "CLP";
|
|
20
|
+
Currency["MXN"] = "MXN";
|
|
21
|
+
Currency["ARS"] = "ARS";
|
|
22
|
+
})(Currency || (Currency = {}));
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enumerates all standard HTTP status codes for service responses.
|
|
3
|
+
*
|
|
4
|
+
* @enum HttpStatusCode
|
|
5
|
+
* @since 2.0.0
|
|
6
|
+
*
|
|
7
|
+
* @description
|
|
8
|
+
* This enumeration strictly follows standard HTTP status code specifications (such as RFC 7231, RFC 6585, RFC 4918).
|
|
9
|
+
* It ensures consistent, type-safe referencing and communication of status codes across all QeHay modules.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* - Use these codes for RESTful responses, API error handling, and logging scenarios.
|
|
13
|
+
* - Extend or modify the enum only when official HTTP codes are updated or required by service evolution.
|
|
14
|
+
*/
|
|
15
|
+
export declare enum HttpStatusCode {
|
|
16
|
+
CONTINUE = 100,
|
|
17
|
+
SWITCHING_PROTOCOLS = 101,
|
|
18
|
+
PROCESSING = 102,
|
|
19
|
+
EARLY_HINTS = 103,
|
|
20
|
+
OK = 200,
|
|
21
|
+
CREATED = 201,
|
|
22
|
+
ACCEPTED = 202,
|
|
23
|
+
NON_AUTHORITATIVE_INFORMATION = 203,
|
|
24
|
+
NO_CONTENT = 204,
|
|
25
|
+
RESET_CONTENT = 205,
|
|
26
|
+
PARTIAL_CONTENT = 206,
|
|
27
|
+
MULTI_STATUS = 207,// WebDAV
|
|
28
|
+
ALREADY_REPORTED = 208,// WebDAV
|
|
29
|
+
IM_USED = 226,// HTTP Delta encoding
|
|
30
|
+
MULTIPLE_CHOICES = 300,
|
|
31
|
+
MOVED_PERMANENTLY = 301,
|
|
32
|
+
FOUND = 302,
|
|
33
|
+
SEE_OTHER = 303,
|
|
34
|
+
NOT_MODIFIED = 304,
|
|
35
|
+
USE_PROXY = 305,
|
|
36
|
+
TEMPORARY_REDIRECT = 307,
|
|
37
|
+
PERMANENT_REDIRECT = 308,
|
|
38
|
+
BAD_REQUEST = 400,
|
|
39
|
+
UNAUTHORIZED = 401,
|
|
40
|
+
PAYMENT_REQUIRED = 402,
|
|
41
|
+
FORBIDDEN = 403,
|
|
42
|
+
NOT_FOUND = 404,
|
|
43
|
+
METHOD_NOT_ALLOWED = 405,
|
|
44
|
+
NOT_ACCEPTABLE = 406,
|
|
45
|
+
PROXY_AUTHENTICATION_REQUIRED = 407,
|
|
46
|
+
REQUEST_TIMEOUT = 408,
|
|
47
|
+
CONFLICT = 409,
|
|
48
|
+
GONE = 410,
|
|
49
|
+
LENGTH_REQUIRED = 411,
|
|
50
|
+
PRECONDITION_FAILED = 412,
|
|
51
|
+
PAYLOAD_TOO_LARGE = 413,
|
|
52
|
+
URI_TOO_LONG = 414,
|
|
53
|
+
UNSUPPORTED_MEDIA_TYPE = 415,
|
|
54
|
+
RANGE_NOT_SATISFIABLE = 416,
|
|
55
|
+
EXPECTATION_FAILED = 417,
|
|
56
|
+
I_AM_A_TEAPOT = 418,
|
|
57
|
+
MISDIRECTED_REQUEST = 421,
|
|
58
|
+
UNPROCESSABLE_ENTITY = 422,
|
|
59
|
+
LOCKED = 423,
|
|
60
|
+
FAILED_DEPENDENCY = 424,
|
|
61
|
+
TOO_EARLY = 425,
|
|
62
|
+
UPGRADE_REQUIRED = 426,
|
|
63
|
+
PRECONDITION_REQUIRED = 428,
|
|
64
|
+
TOO_MANY_REQUESTS = 429,
|
|
65
|
+
REQUEST_HEADER_FIELDS_TOO_LARGE = 431,
|
|
66
|
+
UNAVAILABLE_FOR_LEGAL_REASONS = 451,
|
|
67
|
+
INTERNAL_SERVER_ERROR = 500,
|
|
68
|
+
NOT_IMPLEMENTED = 501,
|
|
69
|
+
BAD_GATEWAY = 502,
|
|
70
|
+
SERVICE_UNAVAILABLE = 503,
|
|
71
|
+
GATEWAY_TIMEOUT = 504,
|
|
72
|
+
HTTP_VERSION_NOT_SUPPORTED = 505,
|
|
73
|
+
VARIANT_ALSO_NEGOTIATES = 506,
|
|
74
|
+
INSUFFICIENT_STORAGE = 507,// WebDAV
|
|
75
|
+
LOOP_DETECTED = 508,// WebDAV
|
|
76
|
+
NOT_EXTENDED = 510,
|
|
77
|
+
NETWORK_AUTHENTICATION_REQUIRED = 511
|
|
78
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enumerates all standard HTTP status codes for service responses.
|
|
3
|
+
*
|
|
4
|
+
* @enum HttpStatusCode
|
|
5
|
+
* @since 2.0.0
|
|
6
|
+
*
|
|
7
|
+
* @description
|
|
8
|
+
* This enumeration strictly follows standard HTTP status code specifications (such as RFC 7231, RFC 6585, RFC 4918).
|
|
9
|
+
* It ensures consistent, type-safe referencing and communication of status codes across all QeHay modules.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* - Use these codes for RESTful responses, API error handling, and logging scenarios.
|
|
13
|
+
* - Extend or modify the enum only when official HTTP codes are updated or required by service evolution.
|
|
14
|
+
*/
|
|
15
|
+
export var HttpStatusCode;
|
|
16
|
+
(function (HttpStatusCode) {
|
|
17
|
+
// 1xx Informational
|
|
18
|
+
HttpStatusCode[HttpStatusCode["CONTINUE"] = 100] = "CONTINUE";
|
|
19
|
+
HttpStatusCode[HttpStatusCode["SWITCHING_PROTOCOLS"] = 101] = "SWITCHING_PROTOCOLS";
|
|
20
|
+
HttpStatusCode[HttpStatusCode["PROCESSING"] = 102] = "PROCESSING";
|
|
21
|
+
HttpStatusCode[HttpStatusCode["EARLY_HINTS"] = 103] = "EARLY_HINTS";
|
|
22
|
+
// 2xx Success
|
|
23
|
+
HttpStatusCode[HttpStatusCode["OK"] = 200] = "OK";
|
|
24
|
+
HttpStatusCode[HttpStatusCode["CREATED"] = 201] = "CREATED";
|
|
25
|
+
HttpStatusCode[HttpStatusCode["ACCEPTED"] = 202] = "ACCEPTED";
|
|
26
|
+
HttpStatusCode[HttpStatusCode["NON_AUTHORITATIVE_INFORMATION"] = 203] = "NON_AUTHORITATIVE_INFORMATION";
|
|
27
|
+
HttpStatusCode[HttpStatusCode["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
28
|
+
HttpStatusCode[HttpStatusCode["RESET_CONTENT"] = 205] = "RESET_CONTENT";
|
|
29
|
+
HttpStatusCode[HttpStatusCode["PARTIAL_CONTENT"] = 206] = "PARTIAL_CONTENT";
|
|
30
|
+
HttpStatusCode[HttpStatusCode["MULTI_STATUS"] = 207] = "MULTI_STATUS";
|
|
31
|
+
HttpStatusCode[HttpStatusCode["ALREADY_REPORTED"] = 208] = "ALREADY_REPORTED";
|
|
32
|
+
HttpStatusCode[HttpStatusCode["IM_USED"] = 226] = "IM_USED";
|
|
33
|
+
// 3xx Redirection
|
|
34
|
+
HttpStatusCode[HttpStatusCode["MULTIPLE_CHOICES"] = 300] = "MULTIPLE_CHOICES";
|
|
35
|
+
HttpStatusCode[HttpStatusCode["MOVED_PERMANENTLY"] = 301] = "MOVED_PERMANENTLY";
|
|
36
|
+
HttpStatusCode[HttpStatusCode["FOUND"] = 302] = "FOUND";
|
|
37
|
+
HttpStatusCode[HttpStatusCode["SEE_OTHER"] = 303] = "SEE_OTHER";
|
|
38
|
+
HttpStatusCode[HttpStatusCode["NOT_MODIFIED"] = 304] = "NOT_MODIFIED";
|
|
39
|
+
HttpStatusCode[HttpStatusCode["USE_PROXY"] = 305] = "USE_PROXY";
|
|
40
|
+
HttpStatusCode[HttpStatusCode["TEMPORARY_REDIRECT"] = 307] = "TEMPORARY_REDIRECT";
|
|
41
|
+
HttpStatusCode[HttpStatusCode["PERMANENT_REDIRECT"] = 308] = "PERMANENT_REDIRECT";
|
|
42
|
+
// 4xx Client Error
|
|
43
|
+
HttpStatusCode[HttpStatusCode["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
44
|
+
HttpStatusCode[HttpStatusCode["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
|
45
|
+
HttpStatusCode[HttpStatusCode["PAYMENT_REQUIRED"] = 402] = "PAYMENT_REQUIRED";
|
|
46
|
+
HttpStatusCode[HttpStatusCode["FORBIDDEN"] = 403] = "FORBIDDEN";
|
|
47
|
+
HttpStatusCode[HttpStatusCode["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
48
|
+
HttpStatusCode[HttpStatusCode["METHOD_NOT_ALLOWED"] = 405] = "METHOD_NOT_ALLOWED";
|
|
49
|
+
HttpStatusCode[HttpStatusCode["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE";
|
|
50
|
+
HttpStatusCode[HttpStatusCode["PROXY_AUTHENTICATION_REQUIRED"] = 407] = "PROXY_AUTHENTICATION_REQUIRED";
|
|
51
|
+
HttpStatusCode[HttpStatusCode["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT";
|
|
52
|
+
HttpStatusCode[HttpStatusCode["CONFLICT"] = 409] = "CONFLICT";
|
|
53
|
+
HttpStatusCode[HttpStatusCode["GONE"] = 410] = "GONE";
|
|
54
|
+
HttpStatusCode[HttpStatusCode["LENGTH_REQUIRED"] = 411] = "LENGTH_REQUIRED";
|
|
55
|
+
HttpStatusCode[HttpStatusCode["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
|
|
56
|
+
HttpStatusCode[HttpStatusCode["PAYLOAD_TOO_LARGE"] = 413] = "PAYLOAD_TOO_LARGE";
|
|
57
|
+
HttpStatusCode[HttpStatusCode["URI_TOO_LONG"] = 414] = "URI_TOO_LONG";
|
|
58
|
+
HttpStatusCode[HttpStatusCode["UNSUPPORTED_MEDIA_TYPE"] = 415] = "UNSUPPORTED_MEDIA_TYPE";
|
|
59
|
+
HttpStatusCode[HttpStatusCode["RANGE_NOT_SATISFIABLE"] = 416] = "RANGE_NOT_SATISFIABLE";
|
|
60
|
+
HttpStatusCode[HttpStatusCode["EXPECTATION_FAILED"] = 417] = "EXPECTATION_FAILED";
|
|
61
|
+
HttpStatusCode[HttpStatusCode["I_AM_A_TEAPOT"] = 418] = "I_AM_A_TEAPOT";
|
|
62
|
+
HttpStatusCode[HttpStatusCode["MISDIRECTED_REQUEST"] = 421] = "MISDIRECTED_REQUEST";
|
|
63
|
+
HttpStatusCode[HttpStatusCode["UNPROCESSABLE_ENTITY"] = 422] = "UNPROCESSABLE_ENTITY";
|
|
64
|
+
HttpStatusCode[HttpStatusCode["LOCKED"] = 423] = "LOCKED";
|
|
65
|
+
HttpStatusCode[HttpStatusCode["FAILED_DEPENDENCY"] = 424] = "FAILED_DEPENDENCY";
|
|
66
|
+
HttpStatusCode[HttpStatusCode["TOO_EARLY"] = 425] = "TOO_EARLY";
|
|
67
|
+
HttpStatusCode[HttpStatusCode["UPGRADE_REQUIRED"] = 426] = "UPGRADE_REQUIRED";
|
|
68
|
+
HttpStatusCode[HttpStatusCode["PRECONDITION_REQUIRED"] = 428] = "PRECONDITION_REQUIRED";
|
|
69
|
+
HttpStatusCode[HttpStatusCode["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS";
|
|
70
|
+
HttpStatusCode[HttpStatusCode["REQUEST_HEADER_FIELDS_TOO_LARGE"] = 431] = "REQUEST_HEADER_FIELDS_TOO_LARGE";
|
|
71
|
+
HttpStatusCode[HttpStatusCode["UNAVAILABLE_FOR_LEGAL_REASONS"] = 451] = "UNAVAILABLE_FOR_LEGAL_REASONS";
|
|
72
|
+
// 5xx Server Error
|
|
73
|
+
HttpStatusCode[HttpStatusCode["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR";
|
|
74
|
+
HttpStatusCode[HttpStatusCode["NOT_IMPLEMENTED"] = 501] = "NOT_IMPLEMENTED";
|
|
75
|
+
HttpStatusCode[HttpStatusCode["BAD_GATEWAY"] = 502] = "BAD_GATEWAY";
|
|
76
|
+
HttpStatusCode[HttpStatusCode["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE";
|
|
77
|
+
HttpStatusCode[HttpStatusCode["GATEWAY_TIMEOUT"] = 504] = "GATEWAY_TIMEOUT";
|
|
78
|
+
HttpStatusCode[HttpStatusCode["HTTP_VERSION_NOT_SUPPORTED"] = 505] = "HTTP_VERSION_NOT_SUPPORTED";
|
|
79
|
+
HttpStatusCode[HttpStatusCode["VARIANT_ALSO_NEGOTIATES"] = 506] = "VARIANT_ALSO_NEGOTIATES";
|
|
80
|
+
HttpStatusCode[HttpStatusCode["INSUFFICIENT_STORAGE"] = 507] = "INSUFFICIENT_STORAGE";
|
|
81
|
+
HttpStatusCode[HttpStatusCode["LOOP_DETECTED"] = 508] = "LOOP_DETECTED";
|
|
82
|
+
HttpStatusCode[HttpStatusCode["NOT_EXTENDED"] = 510] = "NOT_EXTENDED";
|
|
83
|
+
HttpStatusCode[HttpStatusCode["NETWORK_AUTHENTICATION_REQUIRED"] = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
|
|
84
|
+
})(HttpStatusCode || (HttpStatusCode = {}));
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enumerates the standardized status text messages for HTTP responses according to
|
|
3
|
+
* the main HTTP/1.1, HTTP/2, and related specifications. These values should be used for
|
|
4
|
+
* consistent status reporting throughout the QeHay platform interfaces.
|
|
5
|
+
*
|
|
6
|
+
* @enum HttpStatusText
|
|
7
|
+
* @since 2.0.0
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* - This enum is intended to map cleanly with HTTP response status codes (RFC 7231, RFC 6585, etc).
|
|
11
|
+
* - Always use these values when constructing API or application responses that require transmission
|
|
12
|
+
* of HTTP status text or logs for uniformity and type-safety.
|
|
13
|
+
* - When updating HTTP standards or platform custom statuses, update this enum accordingly.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```
|
|
17
|
+
* import { HttpStatusText } from './http-status-code.enum';
|
|
18
|
+
*
|
|
19
|
+
* function getHttpHttpStatusText(statusCode: number): HttpStatusText | undefined {
|
|
20
|
+
* switch (statusCode) {
|
|
21
|
+
* case 200: return HttpStatusText.OK;
|
|
22
|
+
* case 404: return HttpStatusText.NOT_FOUND;
|
|
23
|
+
* // ...etc
|
|
24
|
+
* }
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare enum HttpStatusText {
|
|
29
|
+
CONTINUE = "CONTINUE",
|
|
30
|
+
SWITCHING_PROTOCOLS = "SWITCHING PROTOCOLS",
|
|
31
|
+
PROCESSING = "PROCESSING",
|
|
32
|
+
EARLY_HINTS = "EARLY HINTS",
|
|
33
|
+
OK = "OK",
|
|
34
|
+
CREATED = "CREATED SUCCESSFUL",
|
|
35
|
+
ACCEPTED = "ACCEPTED",
|
|
36
|
+
NON_AUTHORITATIVE_INFORMATION = "NON AUTHORITATIVE INFORMATION",
|
|
37
|
+
NO_CONTENT = "NO CONTENT",
|
|
38
|
+
RESET_CONTENT = "RESET CONTENT",
|
|
39
|
+
PARTIAL_CONTENT = "PARTIAL CONTENT",
|
|
40
|
+
MULTI_STATUS = "MULTI STATUS",
|
|
41
|
+
ALREADY_REPORTED = "ALREADY REPORTED",
|
|
42
|
+
IM_USED = "IM USED",
|
|
43
|
+
MULTIPLE_CHOICES = "MULTIPLE CHOICES",
|
|
44
|
+
MOVED_PERMANENTLY = "MOVED PERMANENTLY",
|
|
45
|
+
FOUND = "FOUND",
|
|
46
|
+
SEE_OTHER = "SEE OTHER",
|
|
47
|
+
NOT_MODIFIED = "NOT MODIFIED",
|
|
48
|
+
USE_PROXY = "USE PROXY",
|
|
49
|
+
TEMPORARY_REDIRECT = "TEMPORARY REDIRECT",
|
|
50
|
+
PERMANENT_REDIRECT = "PERMANENT REDIRECT",
|
|
51
|
+
BAD_REQUEST = "BAD REQUEST",
|
|
52
|
+
UNAUTHORIZED = "UNAUTHORIZED",
|
|
53
|
+
PAYMENT_REQUIRED = "PAYMENT REQUIRED",
|
|
54
|
+
FORBIDDEN = "NO AUTHORIZATION",
|
|
55
|
+
NOT_FOUND = "NOT FOUND",
|
|
56
|
+
METHOD_NOT_ALLOWED = "METHOD NOT ALLOWED",
|
|
57
|
+
NOT_ACCEPTABLE = "NOT ACCEPTABLE",
|
|
58
|
+
PROXY_AUTHENTICATION_REQUIRED = "PROXY AUTHENTICATION REQUIRED",
|
|
59
|
+
REQUEST_TIMEOUT = "REQUEST TIMEOUT",
|
|
60
|
+
CONFLICT = "CONFLICT",
|
|
61
|
+
GONE = "GONE",
|
|
62
|
+
LENGTH_REQUIRED = "LENGTH REQUIRED",
|
|
63
|
+
PRECONDITION_FAILED = "PRECONDITION FAILED",
|
|
64
|
+
PAYLOAD_TOO_LARGE = "PAYLOAD TOO LARGE",
|
|
65
|
+
URI_TOO_LONG = "URI TOO LONG",
|
|
66
|
+
UNSUPPORTED_MEDIA_TYPE = "UNSUPPORTED MEDIA TYPE",
|
|
67
|
+
RANGE_NOT_SATISFIABLE = "RANGE NOT SATISFIABLE",
|
|
68
|
+
EXPECTATION_FAILED = "EXPECTATION FAILED",
|
|
69
|
+
IM_A_TEAPOT = "I'M A TEAPOT",
|
|
70
|
+
MISDIRECTED_REQUEST = "MISDIRECTED REQUEST",
|
|
71
|
+
UNPROCESSABLE_ENTITY = "UNPROCESSABLE ENTITY",
|
|
72
|
+
LOCKED = "LOCKED",
|
|
73
|
+
FAILED_DEPENDENCY = "FAILED DEPENDENCY",
|
|
74
|
+
TOO_EARLY = "TOO EARLY",
|
|
75
|
+
UPGRADE_REQUIRED = "UPGRADE REQUIRED",
|
|
76
|
+
PRECONDITION_REQUIRED = "PRECONDITION REQUIRED",
|
|
77
|
+
TOO_MANY_REQUESTS = "TOO MANY REQUESTS",
|
|
78
|
+
REQUEST_HEADER_FIELDS_TOO_LARGE = "REQUEST HEADER FIELDS TOO LARGE",
|
|
79
|
+
UNAVAILABLE_FOR_LEGAL_REASONS = "UNAVAILABLE FOR LEGAL REASONS",
|
|
80
|
+
INTERNAL = "INTERNAL SERVER ERROR",
|
|
81
|
+
NOT_IMPLEMENTED = "NOT IMPLEMENTED",
|
|
82
|
+
BAD_GATEWAY = "BAD GATEWAY",
|
|
83
|
+
SERVICE_UNAVAILABLE = "SERVICE UNAVAILABLE",
|
|
84
|
+
GATEWAY_TIMEOUT = "GATEWAY TIMEOUT",
|
|
85
|
+
HTTP_VERSION_NOT_SUPPORTED = "HTTP VERSION NOT SUPPORTED",
|
|
86
|
+
VARIANT_ALSO_NEGOTIATES = "VARIANT ALSO NEGOTIATES",
|
|
87
|
+
INSUFFICIENT_STORAGE = "INSUFFICIENT STORAGE",
|
|
88
|
+
LOOP_DETECTED = "LOOP DETECTED",
|
|
89
|
+
NOT_EXTENDED = "NOT EXTENDED",
|
|
90
|
+
NETWORK_AUTHENTICATION_REQUIRED = "NETWORK AUTHENTICATION REQUIRED"
|
|
91
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enumerates the standardized status text messages for HTTP responses according to
|
|
3
|
+
* the main HTTP/1.1, HTTP/2, and related specifications. These values should be used for
|
|
4
|
+
* consistent status reporting throughout the QeHay platform interfaces.
|
|
5
|
+
*
|
|
6
|
+
* @enum HttpStatusText
|
|
7
|
+
* @since 2.0.0
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* - This enum is intended to map cleanly with HTTP response status codes (RFC 7231, RFC 6585, etc).
|
|
11
|
+
* - Always use these values when constructing API or application responses that require transmission
|
|
12
|
+
* of HTTP status text or logs for uniformity and type-safety.
|
|
13
|
+
* - When updating HTTP standards or platform custom statuses, update this enum accordingly.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```
|
|
17
|
+
* import { HttpStatusText } from './http-status-code.enum';
|
|
18
|
+
*
|
|
19
|
+
* function getHttpHttpStatusText(statusCode: number): HttpStatusText | undefined {
|
|
20
|
+
* switch (statusCode) {
|
|
21
|
+
* case 200: return HttpStatusText.OK;
|
|
22
|
+
* case 404: return HttpStatusText.NOT_FOUND;
|
|
23
|
+
* // ...etc
|
|
24
|
+
* }
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export var HttpStatusText;
|
|
29
|
+
(function (HttpStatusText) {
|
|
30
|
+
HttpStatusText["CONTINUE"] = "CONTINUE";
|
|
31
|
+
HttpStatusText["SWITCHING_PROTOCOLS"] = "SWITCHING PROTOCOLS";
|
|
32
|
+
HttpStatusText["PROCESSING"] = "PROCESSING";
|
|
33
|
+
HttpStatusText["EARLY_HINTS"] = "EARLY HINTS";
|
|
34
|
+
HttpStatusText["OK"] = "OK";
|
|
35
|
+
HttpStatusText["CREATED"] = "CREATED SUCCESSFUL";
|
|
36
|
+
HttpStatusText["ACCEPTED"] = "ACCEPTED";
|
|
37
|
+
HttpStatusText["NON_AUTHORITATIVE_INFORMATION"] = "NON AUTHORITATIVE INFORMATION";
|
|
38
|
+
HttpStatusText["NO_CONTENT"] = "NO CONTENT";
|
|
39
|
+
HttpStatusText["RESET_CONTENT"] = "RESET CONTENT";
|
|
40
|
+
HttpStatusText["PARTIAL_CONTENT"] = "PARTIAL CONTENT";
|
|
41
|
+
HttpStatusText["MULTI_STATUS"] = "MULTI STATUS";
|
|
42
|
+
HttpStatusText["ALREADY_REPORTED"] = "ALREADY REPORTED";
|
|
43
|
+
HttpStatusText["IM_USED"] = "IM USED";
|
|
44
|
+
HttpStatusText["MULTIPLE_CHOICES"] = "MULTIPLE CHOICES";
|
|
45
|
+
HttpStatusText["MOVED_PERMANENTLY"] = "MOVED PERMANENTLY";
|
|
46
|
+
HttpStatusText["FOUND"] = "FOUND";
|
|
47
|
+
HttpStatusText["SEE_OTHER"] = "SEE OTHER";
|
|
48
|
+
HttpStatusText["NOT_MODIFIED"] = "NOT MODIFIED";
|
|
49
|
+
HttpStatusText["USE_PROXY"] = "USE PROXY";
|
|
50
|
+
HttpStatusText["TEMPORARY_REDIRECT"] = "TEMPORARY REDIRECT";
|
|
51
|
+
HttpStatusText["PERMANENT_REDIRECT"] = "PERMANENT REDIRECT";
|
|
52
|
+
HttpStatusText["BAD_REQUEST"] = "BAD REQUEST";
|
|
53
|
+
HttpStatusText["UNAUTHORIZED"] = "UNAUTHORIZED";
|
|
54
|
+
HttpStatusText["PAYMENT_REQUIRED"] = "PAYMENT REQUIRED";
|
|
55
|
+
HttpStatusText["FORBIDDEN"] = "NO AUTHORIZATION";
|
|
56
|
+
HttpStatusText["NOT_FOUND"] = "NOT FOUND";
|
|
57
|
+
HttpStatusText["METHOD_NOT_ALLOWED"] = "METHOD NOT ALLOWED";
|
|
58
|
+
HttpStatusText["NOT_ACCEPTABLE"] = "NOT ACCEPTABLE";
|
|
59
|
+
HttpStatusText["PROXY_AUTHENTICATION_REQUIRED"] = "PROXY AUTHENTICATION REQUIRED";
|
|
60
|
+
HttpStatusText["REQUEST_TIMEOUT"] = "REQUEST TIMEOUT";
|
|
61
|
+
HttpStatusText["CONFLICT"] = "CONFLICT";
|
|
62
|
+
HttpStatusText["GONE"] = "GONE";
|
|
63
|
+
HttpStatusText["LENGTH_REQUIRED"] = "LENGTH REQUIRED";
|
|
64
|
+
HttpStatusText["PRECONDITION_FAILED"] = "PRECONDITION FAILED";
|
|
65
|
+
HttpStatusText["PAYLOAD_TOO_LARGE"] = "PAYLOAD TOO LARGE";
|
|
66
|
+
HttpStatusText["URI_TOO_LONG"] = "URI TOO LONG";
|
|
67
|
+
HttpStatusText["UNSUPPORTED_MEDIA_TYPE"] = "UNSUPPORTED MEDIA TYPE";
|
|
68
|
+
HttpStatusText["RANGE_NOT_SATISFIABLE"] = "RANGE NOT SATISFIABLE";
|
|
69
|
+
HttpStatusText["EXPECTATION_FAILED"] = "EXPECTATION FAILED";
|
|
70
|
+
HttpStatusText["IM_A_TEAPOT"] = "I'M A TEAPOT";
|
|
71
|
+
HttpStatusText["MISDIRECTED_REQUEST"] = "MISDIRECTED REQUEST";
|
|
72
|
+
HttpStatusText["UNPROCESSABLE_ENTITY"] = "UNPROCESSABLE ENTITY";
|
|
73
|
+
HttpStatusText["LOCKED"] = "LOCKED";
|
|
74
|
+
HttpStatusText["FAILED_DEPENDENCY"] = "FAILED DEPENDENCY";
|
|
75
|
+
HttpStatusText["TOO_EARLY"] = "TOO EARLY";
|
|
76
|
+
HttpStatusText["UPGRADE_REQUIRED"] = "UPGRADE REQUIRED";
|
|
77
|
+
HttpStatusText["PRECONDITION_REQUIRED"] = "PRECONDITION REQUIRED";
|
|
78
|
+
HttpStatusText["TOO_MANY_REQUESTS"] = "TOO MANY REQUESTS";
|
|
79
|
+
HttpStatusText["REQUEST_HEADER_FIELDS_TOO_LARGE"] = "REQUEST HEADER FIELDS TOO LARGE";
|
|
80
|
+
HttpStatusText["UNAVAILABLE_FOR_LEGAL_REASONS"] = "UNAVAILABLE FOR LEGAL REASONS";
|
|
81
|
+
HttpStatusText["INTERNAL"] = "INTERNAL SERVER ERROR";
|
|
82
|
+
HttpStatusText["NOT_IMPLEMENTED"] = "NOT IMPLEMENTED";
|
|
83
|
+
HttpStatusText["BAD_GATEWAY"] = "BAD GATEWAY";
|
|
84
|
+
HttpStatusText["SERVICE_UNAVAILABLE"] = "SERVICE UNAVAILABLE";
|
|
85
|
+
HttpStatusText["GATEWAY_TIMEOUT"] = "GATEWAY TIMEOUT";
|
|
86
|
+
HttpStatusText["HTTP_VERSION_NOT_SUPPORTED"] = "HTTP VERSION NOT SUPPORTED";
|
|
87
|
+
HttpStatusText["VARIANT_ALSO_NEGOTIATES"] = "VARIANT ALSO NEGOTIATES";
|
|
88
|
+
HttpStatusText["INSUFFICIENT_STORAGE"] = "INSUFFICIENT STORAGE";
|
|
89
|
+
HttpStatusText["LOOP_DETECTED"] = "LOOP DETECTED";
|
|
90
|
+
HttpStatusText["NOT_EXTENDED"] = "NOT EXTENDED";
|
|
91
|
+
HttpStatusText["NETWORK_AUTHENTICATION_REQUIRED"] = "NETWORK AUTHENTICATION REQUIRED";
|
|
92
|
+
})(HttpStatusText || (HttpStatusText = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from "./http-status-code.enum";
|
|
2
|
+
export * from "./http-status-text.enum";
|
|
3
|
+
export * from "./currency.enum";
|
|
4
|
+
export * from "./language-code.enum";
|
|
5
|
+
export * from "./order-type.enum";
|
|
6
|
+
export * from "./order-status.enum";
|
|
7
|
+
export * from "./question-type.enum";
|
|
8
|
+
export * from "./question-product-type.enum";
|
|
9
|
+
export * from "./translation-entity-type.enum";
|
|
10
|
+
export * from "./role.enum";
|
|
11
|
+
export * from "./auth-provider.enum";
|
|
12
|
+
export * from "./product-status.enum";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from "./http-status-code.enum";
|
|
2
|
+
export * from "./http-status-text.enum";
|
|
3
|
+
export * from "./currency.enum";
|
|
4
|
+
export * from "./language-code.enum";
|
|
5
|
+
export * from "./order-type.enum";
|
|
6
|
+
export * from "./order-status.enum";
|
|
7
|
+
export * from "./question-type.enum";
|
|
8
|
+
export * from "./question-product-type.enum";
|
|
9
|
+
export * from "./translation-entity-type.enum";
|
|
10
|
+
export * from "./role.enum";
|
|
11
|
+
export * from "./auth-provider.enum";
|
|
12
|
+
export * from "./product-status.enum";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enumerates all supported language codes for translations within the QeHay platform interfaces.
|
|
3
|
+
*
|
|
4
|
+
* @enum LanguageCode
|
|
5
|
+
* @since 2.0.0
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* This enum defines standardized language identifiers based on ISO 639-1 codes.
|
|
9
|
+
* It is used throughout the platform to ensure type-safe handling of multilingual features,
|
|
10
|
+
* including menu displays, notifications, and user preference settings across all modules.
|
|
11
|
+
* Update this enum when adding or deprecating support for languages in any module.
|
|
12
|
+
*/
|
|
13
|
+
export declare enum LanguageCode {
|
|
14
|
+
ES = "es",// Spanish
|
|
15
|
+
EN = "en",// English
|
|
16
|
+
PT = "pt",// Portuguese
|
|
17
|
+
FR = "fr",// French
|
|
18
|
+
DE = "de"
|
|
19
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enumerates all supported language codes for translations within the QeHay platform interfaces.
|
|
3
|
+
*
|
|
4
|
+
* @enum LanguageCode
|
|
5
|
+
* @since 2.0.0
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* This enum defines standardized language identifiers based on ISO 639-1 codes.
|
|
9
|
+
* It is used throughout the platform to ensure type-safe handling of multilingual features,
|
|
10
|
+
* including menu displays, notifications, and user preference settings across all modules.
|
|
11
|
+
* Update this enum when adding or deprecating support for languages in any module.
|
|
12
|
+
*/
|
|
13
|
+
export var LanguageCode;
|
|
14
|
+
(function (LanguageCode) {
|
|
15
|
+
LanguageCode["ES"] = "es";
|
|
16
|
+
LanguageCode["EN"] = "en";
|
|
17
|
+
LanguageCode["PT"] = "pt";
|
|
18
|
+
LanguageCode["FR"] = "fr";
|
|
19
|
+
LanguageCode["DE"] = "de";
|
|
20
|
+
})(LanguageCode || (LanguageCode = {}));
|