qeai-sdk 2.0.0 → 2.0.1
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/index.d.ts +14 -12
- package/dist/constants/index.js +16 -12
- package/dist/constants/product-commands.constant.d.ts +6 -0
- package/dist/constants/product-commands.constant.js +6 -0
- package/dist/constants/services-config.constant.d.ts +3 -0
- package/dist/constants/services-config.constant.js +1 -0
- package/dist/constants/translation-commands.constant.d.ts +35 -0
- package/dist/constants/translation-commands.constant.js +35 -0
- package/dist/dtos/auth/index.d.ts +2 -2
- package/dist/dtos/auth/index.js +2 -2
- package/dist/dtos/categories/index.d.ts +3 -3
- package/dist/dtos/categories/index.js +3 -3
- package/dist/dtos/categories/update-category.dto.d.ts +21 -4
- package/dist/dtos/categories/update-category.dto.js +39 -7
- package/dist/dtos/chain/create-chain.dto.d.ts +1 -1
- package/dist/dtos/chain/create-chain.dto.js +1 -1
- package/dist/dtos/chain/index.d.ts +3 -3
- package/dist/dtos/chain/index.js +3 -3
- package/dist/dtos/chain/update-chain.dto.d.ts +27 -3
- package/dist/dtos/chain/update-chain.dto.js +45 -4
- package/dist/dtos/common/index.d.ts +2 -1
- package/dist/dtos/common/index.js +2 -1
- package/dist/dtos/common/search-by-name.dto.d.ts +4 -0
- package/dist/dtos/common/search-by-name.dto.js +19 -0
- package/dist/dtos/index.d.ts +12 -12
- package/dist/dtos/index.js +12 -12
- package/dist/dtos/ingredients/index.d.ts +4 -4
- package/dist/dtos/ingredients/index.js +4 -4
- package/dist/dtos/ingredients/search-by-name.dto.d.ts +1 -1
- package/dist/dtos/ingredients/search-by-name.dto.js +1 -1
- package/dist/dtos/ingredients/update-ingredient.dto.d.ts +15 -3
- package/dist/dtos/ingredients/update-ingredient.dto.js +28 -4
- package/dist/dtos/orders/change-order-status.dto.d.ts +1 -1
- package/dist/dtos/orders/change-order-status.dto.js +1 -1
- package/dist/dtos/orders/create-order.dto.d.ts +2 -2
- package/dist/dtos/orders/create-order.dto.js +2 -2
- package/dist/dtos/orders/index.d.ts +5 -6
- package/dist/dtos/orders/index.js +5 -6
- package/dist/dtos/orders/order-pagination.dto.d.ts +2 -2
- package/dist/dtos/orders/order-pagination.dto.js +2 -2
- package/dist/dtos/payments/index.d.ts +3 -3
- package/dist/dtos/payments/index.js +3 -3
- package/dist/dtos/payments/payment-session.dto.d.ts +1 -1
- package/dist/dtos/payments/payment-session.dto.js +1 -1
- package/dist/dtos/products/create-product.dto.d.ts +1 -1
- package/dist/dtos/products/create-product.dto.js +1 -1
- package/dist/dtos/products/index.d.ts +4 -4
- package/dist/dtos/products/index.js +4 -4
- package/dist/dtos/products/submodules/index.d.ts +6 -6
- package/dist/dtos/products/submodules/index.js +6 -6
- package/dist/dtos/products/submodules/product-image/bulk-create-product-image.dto.d.ts +1 -1
- package/dist/dtos/products/submodules/product-image/bulk-create-product-image.dto.js +1 -1
- package/dist/dtos/products/submodules/product-image/index.d.ts +4 -4
- package/dist/dtos/products/submodules/product-image/index.js +4 -4
- package/dist/dtos/products/submodules/product-question/create-product-question.dto.d.ts +1 -1
- package/dist/dtos/products/submodules/product-question/create-product-question.dto.js +1 -1
- package/dist/dtos/products/submodules/product-question/find-by-product-id-and-type.dto.d.ts +1 -1
- package/dist/dtos/products/submodules/product-question/find-by-product-id-and-type.dto.js +1 -1
- package/dist/dtos/products/submodules/product-question/index.d.ts +4 -4
- package/dist/dtos/products/submodules/product-question/index.js +4 -4
- package/dist/dtos/products/submodules/product-question/replace-by-product-id.dto.d.ts +1 -1
- package/dist/dtos/products/submodules/product-question/replace-by-product-id.dto.js +1 -1
- package/dist/dtos/products/submodules/product-question/update-product-question.dto.d.ts +1 -1
- package/dist/dtos/products/submodules/product-question/update-product-question.dto.js +1 -1
- package/dist/dtos/products/submodules/product-recipe/index.d.ts +3 -3
- package/dist/dtos/products/submodules/product-recipe/index.js +3 -3
- package/dist/dtos/products/submodules/product-recipe/replace-by-product-id.dto.d.ts +1 -1
- package/dist/dtos/products/submodules/product-recipe/replace-by-product-id.dto.js +1 -1
- package/dist/dtos/products/submodules/product-schedule/index.d.ts +4 -4
- package/dist/dtos/products/submodules/product-schedule/index.js +4 -4
- package/dist/dtos/products/submodules/product-schedule/replace-by-product-id.dto.d.ts +1 -1
- package/dist/dtos/products/submodules/product-schedule/replace-by-product-id.dto.js +1 -1
- package/dist/dtos/products/submodules/product-size/index.d.ts +4 -4
- package/dist/dtos/products/submodules/product-size/index.js +4 -4
- package/dist/dtos/products/submodules/product-size/replace-by-product-id.dto.d.ts +1 -1
- package/dist/dtos/products/submodules/product-size/replace-by-product-id.dto.js +1 -1
- package/dist/dtos/products/submodules/product-tag/index.d.ts +4 -4
- package/dist/dtos/products/submodules/product-tag/index.js +4 -4
- package/dist/dtos/products/update-product.dto.d.ts +38 -3
- package/dist/dtos/products/update-product.dto.js +69 -4
- package/dist/dtos/questions/create-question.dto.d.ts +1 -1
- package/dist/dtos/questions/create-question.dto.js +1 -1
- package/dist/dtos/questions/index.d.ts +4 -4
- package/dist/dtos/questions/index.js +4 -4
- package/dist/dtos/questions/search-by-name.dto.d.ts +1 -1
- package/dist/dtos/questions/search-by-name.dto.js +1 -1
- package/dist/dtos/questions/update-question.dto.d.ts +38 -3
- package/dist/dtos/questions/update-question.dto.js +66 -4
- package/dist/dtos/restaurants/index.d.ts +3 -3
- package/dist/dtos/restaurants/index.js +3 -3
- package/dist/dtos/restaurants/update-restaurant.dto.d.ts +41 -3
- package/dist/dtos/restaurants/update-restaurant.dto.js +72 -4
- package/dist/dtos/tags/index.d.ts +4 -4
- package/dist/dtos/tags/index.js +4 -4
- package/dist/dtos/tags/search-by-name.dto.d.ts +1 -1
- package/dist/dtos/tags/search-by-name.dto.js +1 -1
- package/dist/dtos/tags/update-tag.dto.d.ts +8 -3
- package/dist/dtos/tags/update-tag.dto.js +17 -6
- package/dist/dtos/translations/create-translation.dto.d.ts +1 -1
- package/dist/dtos/translations/create-translation.dto.js +1 -1
- package/dist/dtos/translations/find-translations-by-entity.dto.d.ts +1 -1
- package/dist/dtos/translations/find-translations-by-entity.dto.js +1 -1
- package/dist/dtos/translations/index.d.ts +4 -4
- package/dist/dtos/translations/index.js +4 -4
- package/dist/dtos/translations/update-translation.dto.d.ts +32 -3
- package/dist/dtos/translations/update-translation.dto.js +64 -4
- package/dist/enums/index.d.ts +12 -12
- package/dist/enums/index.js +12 -12
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/interfaces/auth/access-user.interface.d.ts +2 -2
- package/dist/interfaces/auth/account.interface.d.ts +1 -1
- package/dist/interfaces/auth/full-token.interface.d.ts +2 -2
- package/dist/interfaces/auth/index.d.ts +9 -9
- package/dist/interfaces/auth/index.js +9 -9
- package/dist/interfaces/auth/payload-jwt.interface.d.ts +2 -2
- package/dist/interfaces/auth/responses/auth-response.interface.d.ts +3 -3
- package/dist/interfaces/auth/responses/index.d.ts +2 -2
- package/dist/interfaces/auth/responses/index.js +2 -2
- package/dist/interfaces/auth/responses/refresh-token-response.interface.d.ts +2 -2
- package/dist/interfaces/auth/user.interface.d.ts +2 -2
- package/dist/interfaces/auth/validate-user.interface.d.ts +2 -2
- package/dist/interfaces/categories/categories-list-response.interface.d.ts +3 -3
- package/dist/interfaces/categories/category-response.interface.d.ts +2 -2
- package/dist/interfaces/categories/index.d.ts +3 -3
- package/dist/interfaces/categories/index.js +3 -3
- package/dist/interfaces/chains/chain-response.interface.d.ts +2 -2
- package/dist/interfaces/chains/chain.interface.d.ts +1 -1
- package/dist/interfaces/chains/chains-list-response.interface.d.ts +3 -3
- package/dist/interfaces/chains/index.d.ts +3 -3
- package/dist/interfaces/chains/index.js +3 -3
- package/dist/interfaces/common/api-error-response.interface.d.ts +2 -2
- package/dist/interfaces/common/api-response.interface.d.ts +3 -2
- package/dist/interfaces/common/index.d.ts +5 -5
- package/dist/interfaces/common/index.js +5 -5
- package/dist/interfaces/common/rpc-error.interface.d.ts +1 -1
- package/dist/interfaces/index.d.ts +12 -12
- package/dist/interfaces/index.js +12 -12
- package/dist/interfaces/ingredients/index.d.ts +3 -3
- package/dist/interfaces/ingredients/index.js +3 -3
- package/dist/interfaces/ingredients/ingredient-response.interface.d.ts +2 -2
- package/dist/interfaces/ingredients/ingredients-list-response.interface.d.ts +3 -3
- package/dist/interfaces/orders/index.d.ts +6 -6
- package/dist/interfaces/orders/index.js +6 -6
- package/dist/interfaces/orders/order-created.interface.d.ts +3 -3
- package/dist/interfaces/orders/order-with-products.interface.d.ts +2 -2
- package/dist/interfaces/orders/order.interface.d.ts +2 -2
- package/dist/interfaces/orders/responses/change-order-status-response.interface.d.ts +2 -2
- package/dist/interfaces/orders/responses/create-order-response.interface.d.ts +2 -2
- package/dist/interfaces/orders/responses/index.d.ts +4 -4
- package/dist/interfaces/orders/responses/index.js +4 -4
- package/dist/interfaces/orders/responses/order-with-products-response.interface.d.ts +2 -2
- package/dist/interfaces/orders/responses/orders-list-response.interface.d.ts +3 -3
- package/dist/interfaces/payments/audit-storage-strategy.interface.d.ts +1 -1
- package/dist/interfaces/payments/index.d.ts +9 -9
- package/dist/interfaces/payments/index.js +9 -9
- package/dist/interfaces/payments/payment-provider.interface.d.ts +2 -2
- package/dist/interfaces/payments/responses/payment-callback-response.interface.d.ts +1 -1
- package/dist/interfaces/products/index.d.ts +8 -8
- package/dist/interfaces/products/index.js +8 -8
- package/dist/interfaces/products/product-recipe.interface.d.ts +1 -1
- package/dist/interfaces/products/product-tag.interface.d.ts +1 -1
- package/dist/interfaces/products/product.interface.d.ts +3 -3
- package/dist/interfaces/products/response/complete-product-response.interface.d.ts +2 -2
- package/dist/interfaces/products/response/index.d.ts +6 -6
- package/dist/interfaces/products/response/index.js +6 -6
- package/dist/interfaces/products/response/product-response.interface.d.ts +2 -2
- package/dist/interfaces/products/response/products-list-response.interface.d.ts +3 -3
- package/dist/interfaces/products/response/simple-product-response.interface.d.ts +1 -1
- package/dist/interfaces/products/response/sub-resources/create-tag-response.interface.d.ts +2 -2
- package/dist/interfaces/products/response/sub-resources/delete-sub-resource-response.interface.d.ts +1 -1
- package/dist/interfaces/products/response/sub-resources/find-product-image-response.interface.d.ts +2 -2
- package/dist/interfaces/products/response/sub-resources/find-product-question-response.interface.d.ts +2 -2
- package/dist/interfaces/products/response/sub-resources/find-product-recipe-response.interface.d.ts +2 -2
- package/dist/interfaces/products/response/sub-resources/find-product-schedule-response.interface.d.ts +2 -2
- package/dist/interfaces/products/response/sub-resources/find-product-size-response.interface.d.ts +2 -2
- package/dist/interfaces/products/response/sub-resources/find-product-tag-response.interface.d.ts +2 -2
- package/dist/interfaces/products/response/sub-resources/find-sub-resource-response.interface.d.ts +1 -1
- package/dist/interfaces/products/response/sub-resources/index.d.ts +25 -25
- package/dist/interfaces/products/response/sub-resources/index.js +25 -25
- package/dist/interfaces/products/response/sub-resources/list-product-images-response.interface.d.ts +2 -2
- package/dist/interfaces/products/response/sub-resources/list-product-questions-response.interface.d.ts +2 -2
- package/dist/interfaces/products/response/sub-resources/list-product-recipes-response.interface.d.ts +2 -2
- package/dist/interfaces/products/response/sub-resources/list-product-schedules-response.interface.d.ts +2 -2
- package/dist/interfaces/products/response/sub-resources/list-product-sizes-response.interface.d.ts +2 -2
- package/dist/interfaces/products/response/sub-resources/list-sub-resource-response.interface.d.ts +1 -1
- package/dist/interfaces/products/response/sub-resources/product-schedule-availability.interface.d.ts +1 -1
- package/dist/interfaces/products/response/sub-resources/question-relationship.interface.d.ts +1 -1
- package/dist/interfaces/products/response/sub-resources/recipe-relationship.interface.d.ts +1 -1
- package/dist/interfaces/products/response/sub-resources/replace-sub-products-response.interface.d.ts +1 -1
- package/dist/interfaces/products/response/sub-resources/sub-resource-response.interface.d.ts +1 -1
- package/dist/interfaces/products/response/sub-resources/write-image-response.interface.d.ts +2 -2
- package/dist/interfaces/products/response/sub-resources/write-question-product-response.interface.d.ts +2 -2
- package/dist/interfaces/products/response/sub-resources/write-recipe-response.interface.d.ts +2 -2
- package/dist/interfaces/products/response/sub-resources/write-schedule-response.interface.d.ts +2 -2
- package/dist/interfaces/products/response/sub-resources/write-size-response.interface.d.ts +2 -2
- package/dist/interfaces/questions/index.d.ts +3 -3
- package/dist/interfaces/questions/index.js +3 -3
- package/dist/interfaces/questions/question-response.interface.d.ts +2 -2
- package/dist/interfaces/questions/questions-list-response.interface.d.ts +3 -3
- package/dist/interfaces/restaurants/index.d.ts +3 -3
- package/dist/interfaces/restaurants/index.js +3 -3
- package/dist/interfaces/restaurants/restaurant-response.interface.d.ts +2 -2
- package/dist/interfaces/restaurants/restaurants-list-response.interface.d.ts +3 -3
- package/dist/interfaces/tags/index.d.ts +3 -3
- package/dist/interfaces/tags/index.js +3 -3
- package/dist/interfaces/tags/tag-response.interface.d.ts +2 -2
- package/dist/interfaces/tags/tags-list-response.interface.d.ts +3 -3
- package/dist/interfaces/translations/index.d.ts +3 -3
- package/dist/interfaces/translations/index.js +3 -3
- package/dist/interfaces/translations/translation-response.interface.d.ts +2 -2
- package/dist/interfaces/translations/translations-list-response.interface.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +1 -1
- package/package.json +1 -1
- package/tsconfig.json +1 -2
- package/tsconfig.node.json +10 -9
- package/dist/dtos/orders/update-order.dto.d.ts +0 -13
- package/dist/dtos/orders/update-order.dto.js +0 -13
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
declare const UpdateIngredientDto_base: import("@nestjs/mapped-types").MappedType<Partial<unknown>>;
|
|
2
1
|
/**
|
|
3
2
|
* DTO for updating an existing ingredient.
|
|
4
3
|
*
|
|
@@ -7,7 +6,21 @@ declare const UpdateIngredientDto_base: import("@nestjs/mapped-types").MappedTyp
|
|
|
7
6
|
*
|
|
8
7
|
* @since 2.0.0
|
|
9
8
|
*/
|
|
10
|
-
export declare class UpdateIngredientDto
|
|
9
|
+
export declare class UpdateIngredientDto {
|
|
10
|
+
/**
|
|
11
|
+
* Name of the ingredient.
|
|
12
|
+
* Must not be empty and maximum length of 100 characters.
|
|
13
|
+
*
|
|
14
|
+
* @example "Tomato"
|
|
15
|
+
*/
|
|
16
|
+
name?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Unit of measurement for the ingredient.
|
|
19
|
+
* Must not be empty and maximum length of 20 characters.
|
|
20
|
+
*
|
|
21
|
+
* @example "kg"
|
|
22
|
+
*/
|
|
23
|
+
unit?: string;
|
|
11
24
|
/**
|
|
12
25
|
* Ingredient ID to update.
|
|
13
26
|
* Must be a valid UUID.
|
|
@@ -23,4 +36,3 @@ export declare class UpdateIngredientDto extends UpdateIngredientDto_base {
|
|
|
23
36
|
*/
|
|
24
37
|
updatedBy?: string;
|
|
25
38
|
}
|
|
26
|
-
export {};
|
|
@@ -7,9 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
11
|
-
import { IsString, IsOptional, IsMongoId, IsUUID } from 'class-validator';
|
|
12
|
-
import { CreateIngredientDto } from './create-ingredient.dto';
|
|
10
|
+
import { IsString, IsOptional, IsMongoId, IsUUID, MaxLength, } from "class-validator";
|
|
13
11
|
/**
|
|
14
12
|
* DTO for updating an existing ingredient.
|
|
15
13
|
*
|
|
@@ -18,7 +16,21 @@ import { CreateIngredientDto } from './create-ingredient.dto';
|
|
|
18
16
|
*
|
|
19
17
|
* @since 2.0.0
|
|
20
18
|
*/
|
|
21
|
-
export class UpdateIngredientDto
|
|
19
|
+
export class UpdateIngredientDto {
|
|
20
|
+
/**
|
|
21
|
+
* Name of the ingredient.
|
|
22
|
+
* Must not be empty and maximum length of 100 characters.
|
|
23
|
+
*
|
|
24
|
+
* @example "Tomato"
|
|
25
|
+
*/
|
|
26
|
+
name;
|
|
27
|
+
/**
|
|
28
|
+
* Unit of measurement for the ingredient.
|
|
29
|
+
* Must not be empty and maximum length of 20 characters.
|
|
30
|
+
*
|
|
31
|
+
* @example "kg"
|
|
32
|
+
*/
|
|
33
|
+
unit;
|
|
22
34
|
/**
|
|
23
35
|
* Ingredient ID to update.
|
|
24
36
|
* Must be a valid UUID.
|
|
@@ -34,6 +46,18 @@ export class UpdateIngredientDto extends PartialType(CreateIngredientDto) {
|
|
|
34
46
|
*/
|
|
35
47
|
updatedBy;
|
|
36
48
|
}
|
|
49
|
+
__decorate([
|
|
50
|
+
IsString(),
|
|
51
|
+
MaxLength(100, { message: "Ingredient name must be at most 100 characters" }),
|
|
52
|
+
IsOptional(),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], UpdateIngredientDto.prototype, "name", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
IsString(),
|
|
57
|
+
MaxLength(20, { message: "Unit must be at most 20 characters" }),
|
|
58
|
+
IsOptional(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], UpdateIngredientDto.prototype, "unit", void 0);
|
|
37
61
|
__decorate([
|
|
38
62
|
IsString(),
|
|
39
63
|
IsUUID(),
|
|
@@ -8,7 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { IsEnum, IsUUID } from 'class-validator';
|
|
11
|
-
import { OrderStatus } from '../../enums/order-status.enum';
|
|
11
|
+
import { OrderStatus } from '../../enums/order-status.enum.js';
|
|
12
12
|
/**
|
|
13
13
|
* DTO for changing an order's status.
|
|
14
14
|
*
|
|
@@ -9,8 +9,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { Type } from 'class-transformer';
|
|
11
11
|
import { IsArray, ArrayMinSize, ValidateNested, IsEnum, IsString, IsOptional, MinLength, IsMongoId, IsNotEmpty, IsDateString, } from 'class-validator';
|
|
12
|
-
import { OrderItemDto } from './order-item.dto';
|
|
13
|
-
import { OrderType } from '../../enums/order-type.enum';
|
|
12
|
+
import { OrderItemDto } from './order-item.dto.js';
|
|
13
|
+
import { OrderType } from '../../enums/order-type.enum.js';
|
|
14
14
|
/**
|
|
15
15
|
* DTO for creating a new order.
|
|
16
16
|
*
|
|
@@ -6,9 +6,8 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @since 2.0.0
|
|
8
8
|
*/
|
|
9
|
-
export * from './create-order.dto';
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './order-
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './order
|
|
14
|
-
export * from './paid-order.dto';
|
|
9
|
+
export * from './create-order.dto.js';
|
|
10
|
+
export * from './order-item.dto.js';
|
|
11
|
+
export * from './change-order-status.dto.js';
|
|
12
|
+
export * from './order-pagination.dto.js';
|
|
13
|
+
export * from './paid-order.dto.js';
|
|
@@ -6,9 +6,8 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @since 2.0.0
|
|
8
8
|
*/
|
|
9
|
-
export * from './create-order.dto';
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './order-
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './order
|
|
14
|
-
export * from './paid-order.dto';
|
|
9
|
+
export * from './create-order.dto.js';
|
|
10
|
+
export * from './order-item.dto.js';
|
|
11
|
+
export * from './change-order-status.dto.js';
|
|
12
|
+
export * from './order-pagination.dto.js';
|
|
13
|
+
export * from './paid-order.dto.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OrderStatus } from '../../enums/order-status.enum';
|
|
2
|
-
import { PaginationDto } from '../common/pagination.dto';
|
|
1
|
+
import { OrderStatus } from '../../enums/order-status.enum.js';
|
|
2
|
+
import { PaginationDto } from '../common/pagination.dto.js';
|
|
3
3
|
/**
|
|
4
4
|
* DTO for paginated order queries with optional status filter.
|
|
5
5
|
*
|
|
@@ -8,8 +8,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { IsEnum, IsOptional } from 'class-validator';
|
|
11
|
-
import { OrderStatus } from '../../enums/order-status.enum';
|
|
12
|
-
import { PaginationDto } from '../common/pagination.dto';
|
|
11
|
+
import { OrderStatus } from '../../enums/order-status.enum.js';
|
|
12
|
+
import { PaginationDto } from '../common/pagination.dto.js';
|
|
13
13
|
/**
|
|
14
14
|
* DTO for paginated order queries with optional status filter.
|
|
15
15
|
*
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @since 2.0.0
|
|
8
8
|
*/
|
|
9
|
-
export * from './payment-session.dto';
|
|
10
|
-
export * from './payment-session-item.dto';
|
|
11
|
-
export * from './webhook-data.dto';
|
|
9
|
+
export * from './payment-session.dto.js';
|
|
10
|
+
export * from './payment-session-item.dto.js';
|
|
11
|
+
export * from './webhook-data.dto.js';
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @since 2.0.0
|
|
8
8
|
*/
|
|
9
|
-
export * from './payment-session.dto';
|
|
10
|
-
export * from './payment-session-item.dto';
|
|
11
|
-
export * from './webhook-data.dto';
|
|
9
|
+
export * from './payment-session.dto.js';
|
|
10
|
+
export * from './payment-session-item.dto.js';
|
|
11
|
+
export * from './webhook-data.dto.js';
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { Type } from 'class-transformer';
|
|
11
11
|
import { IsString, IsNotEmpty, IsArray, ValidateNested, IsOptional, IsNumber, IsEmail, IsPositive, } from 'class-validator';
|
|
12
|
-
import { PaymentSessionItemDto } from './payment-session-item.dto';
|
|
12
|
+
import { PaymentSessionItemDto } from './payment-session-item.dto.js';
|
|
13
13
|
/**
|
|
14
14
|
* DTO for creating a payment session.
|
|
15
15
|
*
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { IsString, IsNotEmpty, IsNumber, Min, IsOptional, IsEnum, IsMongoId } from 'class-validator';
|
|
11
11
|
import { Type } from 'class-transformer';
|
|
12
|
-
import { ProductStatus } from '../../enums';
|
|
12
|
+
import { ProductStatus } from '../../enums/product-status.enum.js';
|
|
13
13
|
/**
|
|
14
14
|
* DTO for creating a new product.
|
|
15
15
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @since 2.0.0
|
|
8
8
|
*/
|
|
9
|
-
export * from "./create-product.dto";
|
|
10
|
-
export * from "./update-product.dto";
|
|
11
|
-
export * from "./delete-product.dto";
|
|
12
|
-
export * from "./submodules";
|
|
9
|
+
export * from "./create-product.dto.js";
|
|
10
|
+
export * from "./update-product.dto.js";
|
|
11
|
+
export * from "./delete-product.dto.js";
|
|
12
|
+
export * from "./submodules/index.js";
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @since 2.0.0
|
|
8
8
|
*/
|
|
9
|
-
export * from "./create-product.dto";
|
|
10
|
-
export * from "./update-product.dto";
|
|
11
|
-
export * from "./delete-product.dto";
|
|
9
|
+
export * from "./create-product.dto.js";
|
|
10
|
+
export * from "./update-product.dto.js";
|
|
11
|
+
export * from "./delete-product.dto.js";
|
|
12
12
|
// Submodules
|
|
13
|
-
export * from "./submodules";
|
|
13
|
+
export * from "./submodules/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from "./product-tag";
|
|
2
|
-
export * from "./product-size";
|
|
3
|
-
export * from "./product-image";
|
|
4
|
-
export * from "./product-schedule";
|
|
5
|
-
export * from "./product-recipe";
|
|
6
|
-
export * from "./product-question";
|
|
1
|
+
export * from "./product-tag/index.js";
|
|
2
|
+
export * from "./product-size/index.js";
|
|
3
|
+
export * from "./product-image/index.js";
|
|
4
|
+
export * from "./product-schedule/index.js";
|
|
5
|
+
export * from "./product-recipe/index.js";
|
|
6
|
+
export * from "./product-question/index.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Submodules
|
|
2
|
-
export * from "./product-tag";
|
|
3
|
-
export * from "./product-size";
|
|
4
|
-
export * from "./product-image";
|
|
5
|
-
export * from "./product-schedule";
|
|
6
|
-
export * from "./product-recipe";
|
|
7
|
-
export * from "./product-question";
|
|
2
|
+
export * from "./product-tag/index.js";
|
|
3
|
+
export * from "./product-size/index.js";
|
|
4
|
+
export * from "./product-image/index.js";
|
|
5
|
+
export * from "./product-schedule/index.js";
|
|
6
|
+
export * from "./product-recipe/index.js";
|
|
7
|
+
export * from "./product-question/index.js";
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { IsString, IsArray, ValidateNested, ArrayMinSize, IsOptional, IsUUID, } from 'class-validator';
|
|
11
11
|
import { Type } from 'class-transformer';
|
|
12
|
-
import { CreateProductImageDto } from './create-product-image.dto';
|
|
12
|
+
import { CreateProductImageDto } from './create-product-image.dto.js';
|
|
13
13
|
/**
|
|
14
14
|
* DTO for bulk creating product images.
|
|
15
15
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @since 2.0.0
|
|
8
8
|
*/
|
|
9
|
-
export * from './create-product-image.dto';
|
|
10
|
-
export * from './update-product-image.dto';
|
|
11
|
-
export * from './bulk-create-product-image.dto';
|
|
12
|
-
export * from './set-primary-image.dto';
|
|
9
|
+
export * from './create-product-image.dto.js';
|
|
10
|
+
export * from './update-product-image.dto.js';
|
|
11
|
+
export * from './bulk-create-product-image.dto.js';
|
|
12
|
+
export * from './set-primary-image.dto.js';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @since 2.0.0
|
|
8
8
|
*/
|
|
9
|
-
export * from './create-product-image.dto';
|
|
10
|
-
export * from './update-product-image.dto';
|
|
11
|
-
export * from './bulk-create-product-image.dto';
|
|
12
|
-
export * from './set-primary-image.dto';
|
|
9
|
+
export * from './create-product-image.dto.js';
|
|
10
|
+
export * from './update-product-image.dto.js';
|
|
11
|
+
export * from './bulk-create-product-image.dto.js';
|
|
12
|
+
export * from './set-primary-image.dto.js';
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { IsString, IsNotEmpty, IsOptional, IsInt, IsEnum, Min, IsUUID } from 'class-validator';
|
|
11
11
|
import { Type } from 'class-transformer';
|
|
12
|
-
import { QuestionProductType } from '../../../../enums';
|
|
12
|
+
import { QuestionProductType } from '../../../../enums/question-product-type.enum.js';
|
|
13
13
|
/**
|
|
14
14
|
* DTO for creating a new product-question relationship.
|
|
15
15
|
*
|
|
@@ -8,7 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { IsString, IsNotEmpty, IsUUID, IsEnum } from 'class-validator';
|
|
11
|
-
import { QuestionProductType } from '../../../../enums';
|
|
11
|
+
import { QuestionProductType } from '../../../../enums/question-product-type.enum.js';
|
|
12
12
|
/**
|
|
13
13
|
* DTO for finding product questions by product ID and type.
|
|
14
14
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @since 2.0.0
|
|
8
8
|
*/
|
|
9
|
-
export * from './create-product-question.dto';
|
|
10
|
-
export * from './update-product-question.dto';
|
|
11
|
-
export * from './replace-by-product-id.dto';
|
|
12
|
-
export * from './find-by-product-id-and-type.dto';
|
|
9
|
+
export * from './create-product-question.dto.js';
|
|
10
|
+
export * from './update-product-question.dto.js';
|
|
11
|
+
export * from './replace-by-product-id.dto.js';
|
|
12
|
+
export * from './find-by-product-id-and-type.dto.js';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @since 2.0.0
|
|
8
8
|
*/
|
|
9
|
-
export * from './create-product-question.dto';
|
|
10
|
-
export * from './update-product-question.dto';
|
|
11
|
-
export * from './replace-by-product-id.dto';
|
|
12
|
-
export * from './find-by-product-id-and-type.dto';
|
|
9
|
+
export * from './create-product-question.dto.js';
|
|
10
|
+
export * from './update-product-question.dto.js';
|
|
11
|
+
export * from './replace-by-product-id.dto.js';
|
|
12
|
+
export * from './find-by-product-id-and-type.dto.js';
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { IsString, IsNotEmpty, IsUUID, IsArray, ValidateNested, ArrayMinSize, } from 'class-validator';
|
|
11
11
|
import { Type } from 'class-transformer';
|
|
12
|
-
import { CreateProductQuestionDto } from './create-product-question.dto';
|
|
12
|
+
import { CreateProductQuestionDto } from './create-product-question.dto.js';
|
|
13
13
|
/**
|
|
14
14
|
* DTO for replacing all product-question relationships.
|
|
15
15
|
*
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { IsString, IsOptional, IsInt, IsEnum, Min, IsUUID } from 'class-validator';
|
|
11
11
|
import { Type } from 'class-transformer';
|
|
12
|
-
import { QuestionProductType } from '../../../../enums';
|
|
12
|
+
import { QuestionProductType } from '../../../../enums/question-product-type.enum.js';
|
|
13
13
|
/**
|
|
14
14
|
* DTO for updating an existing product-question relationship.
|
|
15
15
|
*
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @since 2.0.0
|
|
8
8
|
*/
|
|
9
|
-
export * from './create-product-recipe.dto';
|
|
10
|
-
export * from './update-product-recipe.dto';
|
|
11
|
-
export * from './replace-by-product-id.dto';
|
|
9
|
+
export * from './create-product-recipe.dto.js';
|
|
10
|
+
export * from './update-product-recipe.dto.js';
|
|
11
|
+
export * from './replace-by-product-id.dto.js';
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @since 2.0.0
|
|
8
8
|
*/
|
|
9
|
-
export * from './create-product-recipe.dto';
|
|
10
|
-
export * from './update-product-recipe.dto';
|
|
11
|
-
export * from './replace-by-product-id.dto';
|
|
9
|
+
export * from './create-product-recipe.dto.js';
|
|
10
|
+
export * from './update-product-recipe.dto.js';
|
|
11
|
+
export * from './replace-by-product-id.dto.js';
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { IsString, IsNotEmpty, IsUUID, IsArray, ValidateNested, ArrayMinSize, } from 'class-validator';
|
|
11
11
|
import { Type } from 'class-transformer';
|
|
12
|
-
import { CreateProductRecipeDto } from './create-product-recipe.dto';
|
|
12
|
+
import { CreateProductRecipeDto } from './create-product-recipe.dto.js';
|
|
13
13
|
/**
|
|
14
14
|
* DTO for replacing all product-recipe relationships.
|
|
15
15
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @since 2.0.0
|
|
8
8
|
*/
|
|
9
|
-
export * from './create-product-schedule.dto';
|
|
10
|
-
export * from './update-product-schedule.dto';
|
|
11
|
-
export * from './replace-by-product-id.dto';
|
|
12
|
-
export * from './is-available-at-time.dto';
|
|
9
|
+
export * from './create-product-schedule.dto.js';
|
|
10
|
+
export * from './update-product-schedule.dto.js';
|
|
11
|
+
export * from './replace-by-product-id.dto.js';
|
|
12
|
+
export * from './is-available-at-time.dto.js';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @since 2.0.0
|
|
8
8
|
*/
|
|
9
|
-
export * from './create-product-schedule.dto';
|
|
10
|
-
export * from './update-product-schedule.dto';
|
|
11
|
-
export * from './replace-by-product-id.dto';
|
|
12
|
-
export * from './is-available-at-time.dto';
|
|
9
|
+
export * from './create-product-schedule.dto.js';
|
|
10
|
+
export * from './update-product-schedule.dto.js';
|
|
11
|
+
export * from './replace-by-product-id.dto.js';
|
|
12
|
+
export * from './is-available-at-time.dto.js';
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { IsString, IsNotEmpty, IsArray, ValidateNested, ArrayMinSize, IsUUID } from 'class-validator';
|
|
11
11
|
import { Type } from 'class-transformer';
|
|
12
|
-
import { CreateProductScheduleDto } from './create-product-schedule.dto';
|
|
12
|
+
import { CreateProductScheduleDto } from './create-product-schedule.dto.js';
|
|
13
13
|
/**
|
|
14
14
|
* DTO for replacing all product schedules.
|
|
15
15
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @since 2.0.0
|
|
8
8
|
*/
|
|
9
|
-
export * from './create-product-size.dto';
|
|
10
|
-
export * from './update-product-size.dto';
|
|
11
|
-
export * from './replace-by-product-id.dto';
|
|
12
|
-
export * from './product-size-data.dto';
|
|
9
|
+
export * from './create-product-size.dto.js';
|
|
10
|
+
export * from './update-product-size.dto.js';
|
|
11
|
+
export * from './replace-by-product-id.dto.js';
|
|
12
|
+
export * from './product-size-data.dto.js';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @since 2.0.0
|
|
8
8
|
*/
|
|
9
|
-
export * from './create-product-size.dto';
|
|
10
|
-
export * from './update-product-size.dto';
|
|
11
|
-
export * from './replace-by-product-id.dto';
|
|
12
|
-
export * from './product-size-data.dto';
|
|
9
|
+
export * from './create-product-size.dto.js';
|
|
10
|
+
export * from './update-product-size.dto.js';
|
|
11
|
+
export * from './replace-by-product-id.dto.js';
|
|
12
|
+
export * from './product-size-data.dto.js';
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { IsString, IsNotEmpty, IsArray, ValidateNested, ArrayMinSize, IsUUID } from 'class-validator';
|
|
11
11
|
import { Type } from 'class-transformer';
|
|
12
|
-
import { ProductSizeDataDto } from './product-size-data.dto';
|
|
12
|
+
import { ProductSizeDataDto } from './product-size-data.dto.js';
|
|
13
13
|
/**
|
|
14
14
|
* DTO for replacing all product sizes.
|
|
15
15
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @since 2.0.0
|
|
8
8
|
*/
|
|
9
|
-
export * from './create-product-tag.dto';
|
|
10
|
-
export * from './find-product-tag.dto';
|
|
11
|
-
export * from './remove-product-tag.dto';
|
|
12
|
-
export * from './replace-by-product-id.dto';
|
|
9
|
+
export * from './create-product-tag.dto.js';
|
|
10
|
+
export * from './find-product-tag.dto.js';
|
|
11
|
+
export * from './remove-product-tag.dto.js';
|
|
12
|
+
export * from './replace-by-product-id.dto.js';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @since 2.0.0
|
|
8
8
|
*/
|
|
9
|
-
export * from './create-product-tag.dto';
|
|
10
|
-
export * from './find-product-tag.dto';
|
|
11
|
-
export * from './remove-product-tag.dto';
|
|
12
|
-
export * from './replace-by-product-id.dto';
|
|
9
|
+
export * from './create-product-tag.dto.js';
|
|
10
|
+
export * from './find-product-tag.dto.js';
|
|
11
|
+
export * from './remove-product-tag.dto.js';
|
|
12
|
+
export * from './replace-by-product-id.dto.js';
|