@merkaly/api 0.2.1-3 → 0.2.1-4
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/.output/src/inventory/brands/brand.validator.d.ts +1 -1
- package/.output/src/inventory/categories/category.validator.d.ts +1 -1
- package/.output/src/inventory/media/media.validator.d.ts +1 -1
- package/.output/src/inventory/products/product.validator.d.ts +1 -1
- package/.output/src/inventory/variants/variant.validator.d.ts +2 -2
- package/.output/src/store/orders/order.validator.d.ts +1 -1
- package/package.json +1 -1
|
@@ -8,5 +8,5 @@ export declare class CreateBrandValidator extends AppValidator<BrandEntity> {
|
|
|
8
8
|
export declare class UpdateBrandValidator extends AppValidator<BrandEntity> {
|
|
9
9
|
name?: string;
|
|
10
10
|
description?: string;
|
|
11
|
-
toEntity(entity: BrandEntity): BrandEntity;
|
|
11
|
+
toEntity?(entity: BrandEntity): BrandEntity;
|
|
12
12
|
}
|
|
@@ -10,5 +10,5 @@ export declare class CreateCategoryValidator extends AppValidator<CategoryEntity
|
|
|
10
10
|
export declare class UpdateCategoryValidator extends AppValidator<CategoryEntity> {
|
|
11
11
|
name: string;
|
|
12
12
|
description?: string;
|
|
13
|
-
toEntity(entity: CategoryEntity): CategoryEntity;
|
|
13
|
+
toEntity?(entity: CategoryEntity): CategoryEntity;
|
|
14
14
|
}
|
|
@@ -6,5 +6,5 @@ export declare class CreateMediaValidator extends AppValidator<MediaEntity> {
|
|
|
6
6
|
}
|
|
7
7
|
export declare class UpdateMediaValidator extends AppValidator<MediaEntity> {
|
|
8
8
|
name: string;
|
|
9
|
-
toEntity(entity: MediaEntity): MediaEntity;
|
|
9
|
+
toEntity?(entity: MediaEntity): MediaEntity;
|
|
10
10
|
}
|
|
@@ -6,12 +6,12 @@ export declare class CreateVariantValidator extends AppValidator<VariantEntity>
|
|
|
6
6
|
sku: string;
|
|
7
7
|
quantity: number;
|
|
8
8
|
active: boolean;
|
|
9
|
-
toEntity(product?: ProductEntity): VariantEntity;
|
|
9
|
+
toEntity?(product?: ProductEntity): VariantEntity;
|
|
10
10
|
}
|
|
11
11
|
export declare class UpdateVariantValidator extends AppValidator<VariantEntity> {
|
|
12
12
|
price: number;
|
|
13
13
|
sku: string;
|
|
14
14
|
quantity: number;
|
|
15
15
|
active: any;
|
|
16
|
-
toEntity(entity: VariantEntity): VariantEntity;
|
|
16
|
+
toEntity?(entity: VariantEntity): VariantEntity;
|
|
17
17
|
}
|
|
@@ -4,5 +4,5 @@ export declare class CreateOrderValidator extends AppValidator<OrderEntity> {
|
|
|
4
4
|
toEntity?(): OrderEntity;
|
|
5
5
|
}
|
|
6
6
|
export declare class UpdateOrderValidator extends AppValidator<OrderEntity> {
|
|
7
|
-
toEntity(entity: OrderEntity): OrderEntity;
|
|
7
|
+
toEntity?(entity: OrderEntity): OrderEntity;
|
|
8
8
|
}
|