@maioradv/cms-basic-lib 1.0.6 → 1.0.8
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.
|
@@ -2,7 +2,7 @@ import { BooleanClause, NumberClause, StringClause, WhereClausesDto } from "../c
|
|
|
2
2
|
import { Sorting, SortingParamsDto } from "../core/dto/sorting";
|
|
3
3
|
import { QueryParamsDto } from "../core/utils/queryParams";
|
|
4
4
|
import { CreateImageDto, Image } from "../images/types";
|
|
5
|
-
import { CreateProductCollectionDto, Product, ProductCollection, ProductImage
|
|
5
|
+
import { CreateProductCollectionDto, Product, ProductCollection, ProductImage } from "../products/types";
|
|
6
6
|
import { Metafield, OmitRequire, Translation, WithRelation, WithRelations } from "../types";
|
|
7
7
|
export type Collection = {
|
|
8
8
|
id: number;
|
|
@@ -56,7 +56,6 @@ export type UpdateCollectionImageDto = Omit<CreateCollectionImageDto, 'file'>;
|
|
|
56
56
|
export type CreateProductOnCollectionDto = Omit<CreateProductCollectionDto, 'collectionId'>;
|
|
57
57
|
export type FindAllCollectionProductsDto = WithRelation<ProductCollection, 'Product', WithRelations<Product, {
|
|
58
58
|
ProductImage: WithRelation<ProductImage, 'Image', Image>[];
|
|
59
|
-
ProductVariant: ProductVariant[];
|
|
60
59
|
}>>;
|
|
61
60
|
export type QueryCollectionProductsDto = Omit<QueryParamsDto<SortingParamsDto<{}>, WhereClausesDto<{
|
|
62
61
|
attributes?: NumberClause;
|
|
@@ -3,4 +3,6 @@ import { Resolvers } from "../core/types/resolver";
|
|
|
3
3
|
export declare const ProductAttributesResolvers: Resolvers<['productAttributes'], ['removeProductAttributes']>;
|
|
4
4
|
export type QueryProductAttributeGQLDto = PaginatedGQLQueryDto;
|
|
5
5
|
export declare const ProductAttributeValuesResolvers: Resolvers<['productAttributeValues'], ['removeProductAttributeValues']>;
|
|
6
|
-
export type QueryProductAttributeValueGQLDto = PaginatedGQLQueryDto
|
|
6
|
+
export type QueryProductAttributeValueGQLDto = PaginatedGQLQueryDto & {
|
|
7
|
+
attributeSlug?: string;
|
|
8
|
+
};
|
package/dist/products/types.d.ts
CHANGED
|
@@ -66,6 +66,7 @@ export type FindAllProductDto = WithRelation<Product, 'ProductImage', WithRelati
|
|
|
66
66
|
export type FindOneProductDto = WithRelations<Product, {
|
|
67
67
|
attributes: WithRelation<ProductAttributeValueProduct, 'ProductAttributeValue', ProductAttributeValue>[];
|
|
68
68
|
ProductVariant: ProductVariant[];
|
|
69
|
+
ProductImage: WithRelation<ProductImage, 'Image', Image>[];
|
|
69
70
|
}>;
|
|
70
71
|
export type SortingProductDto = SortingParamsDto<{
|
|
71
72
|
title?: Sorting;
|
|
@@ -76,7 +77,7 @@ export type ClausesProductDto = WhereClausesDto<{
|
|
|
76
77
|
subtitle?: StringClause;
|
|
77
78
|
description?: StringClause;
|
|
78
79
|
collectionId?: NumberClause;
|
|
79
|
-
|
|
80
|
+
attributes?: NumberClause;
|
|
80
81
|
published?: BooleanClause;
|
|
81
82
|
}>;
|
|
82
83
|
export type QueryProductDto = QueryParamsDto<SortingProductDto, ClausesProductDto>;
|