qeai-sdk 2.1.8 → 2.1.10
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/dtos/products/submodules/product-image/create-product-image.dto.d.ts +1 -1
- package/dist/dtos/products/submodules/product-image/create-product-image.dto.js +2 -2
- package/dist/dtos/products/submodules/product-question/create-product-question.dto.js +1 -1
- package/dist/dtos/products/submodules/product-question/product-question-item.dto.d.ts +1 -1
- package/dist/dtos/products/submodules/product-question/product-question-item.dto.js +1 -1
- package/dist/dtos/products/submodules/product-recipe/create-product-recipe.dto.d.ts +1 -1
- package/dist/dtos/products/submodules/product-recipe/create-product-recipe.dto.js +2 -2
- package/dist/dtos/products/submodules/product-schedule/create-product-schedule.dto.d.ts +1 -1
- package/dist/dtos/products/submodules/product-schedule/create-product-schedule.dto.js +2 -2
- 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 +5 -5
- package/package.json +1 -1
|
@@ -7,8 +7,8 @@ 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 { IsString, IsNotEmpty, IsUUID
|
|
11
|
-
import { ProductImageItemDto } from "./product-image-item.dto";
|
|
10
|
+
import { IsString, IsNotEmpty, IsUUID } from "class-validator";
|
|
11
|
+
import { ProductImageItemDto } from "./product-image-item.dto.js";
|
|
12
12
|
/**
|
|
13
13
|
* DTO for creating a new product image.
|
|
14
14
|
*
|
|
@@ -7,7 +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 { IsString, IsNotEmpty, IsUUID
|
|
10
|
+
import { IsString, IsNotEmpty, IsUUID } from "class-validator";
|
|
11
11
|
import { ProductQuestionItemDto } from "./product-question-item.dto.js";
|
|
12
12
|
/**
|
|
13
13
|
* DTO for creating a new product-question relationship.
|
|
@@ -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, IsInt, IsNotEmpty, IsOptional, IsString, IsUUID, Min, } from "class-validator";
|
|
11
|
-
import { QuestionProductType } from "../../../../enums";
|
|
11
|
+
import { QuestionProductType } from "../../../../enums/index.js";
|
|
12
12
|
import { Type } from "class-transformer";
|
|
13
13
|
export class ProductQuestionItemDto {
|
|
14
14
|
/**
|
|
@@ -7,8 +7,8 @@ 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 { IsString, IsNotEmpty, IsUUID
|
|
11
|
-
import { ProductRecipeItemDto } from "./product-recipe-item.dto";
|
|
10
|
+
import { IsString, IsNotEmpty, IsUUID } from "class-validator";
|
|
11
|
+
import { ProductRecipeItemDto } from "./product-recipe-item.dto.js";
|
|
12
12
|
/**
|
|
13
13
|
* DTO for creating a new product recipe entry.
|
|
14
14
|
*
|
|
@@ -7,8 +7,8 @@ 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 { IsString, IsNotEmpty, IsUUID
|
|
11
|
-
import { ProductScheduleItemDto } from "./product-schedule-item.dto";
|
|
10
|
+
import { IsString, IsNotEmpty, IsUUID } from "class-validator";
|
|
11
|
+
import { ProductScheduleItemDto } from "./product-schedule-item.dto.js";
|
|
12
12
|
/**
|
|
13
13
|
* DTO for creating a new product schedule.
|
|
14
14
|
*
|
|
@@ -7,9 +7,9 @@ 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 { IsString, IsNotEmpty, IsArray, ValidateNested, ArrayMinSize, IsUUID } from
|
|
11
|
-
import { Type } from
|
|
12
|
-
import { ProductSizeDataDto } from
|
|
10
|
+
import { IsString, IsNotEmpty, IsArray, ValidateNested, ArrayMinSize, IsUUID, } from "class-validator";
|
|
11
|
+
import { Type } from "class-transformer";
|
|
12
|
+
import { ProductSizeDataDto } from "./product-size-data.dto.js";
|
|
13
13
|
/**
|
|
14
14
|
* DTO for replacing all product sizes.
|
|
15
15
|
*
|
|
@@ -38,13 +38,13 @@ export class ReplaceProductSizesByProductIdDto {
|
|
|
38
38
|
}
|
|
39
39
|
__decorate([
|
|
40
40
|
IsString(),
|
|
41
|
-
IsNotEmpty({ message:
|
|
41
|
+
IsNotEmpty({ message: "Product ID is required" }),
|
|
42
42
|
IsUUID(),
|
|
43
43
|
__metadata("design:type", String)
|
|
44
44
|
], ReplaceProductSizesByProductIdDto.prototype, "productId", void 0);
|
|
45
45
|
__decorate([
|
|
46
46
|
IsArray(),
|
|
47
|
-
ArrayMinSize(0, { message:
|
|
47
|
+
ArrayMinSize(0, { message: "Sizes array can be empty" }),
|
|
48
48
|
ValidateNested({ each: true }),
|
|
49
49
|
Type(() => ProductSizeDataDto),
|
|
50
50
|
__metadata("design:type", Array)
|