@maioradv/cms-basic-lib 1.4.3 → 1.4.5
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PaginatedGQLQueryDto } from "../core/dto/pagination";
|
|
2
2
|
import { Resolvers } from "../core/types/resolver";
|
|
3
|
-
import { OmitRequire } from "../types";
|
|
4
|
-
import { Bundle, BundleProduct } from "./types";
|
|
3
|
+
import { OmitRequire, WithRelations } from "../types";
|
|
4
|
+
import { Bundle, BundleProduct, BundleVariant } from "./types";
|
|
5
5
|
export declare const BundlesResolvers: Resolvers<['bundles'], ['removeBundles', 'updateManyBundleProducts']>;
|
|
6
6
|
export type UpdateBundleProductsListDto = OmitRequire<BundleProduct, 'bundleId' | 'createdAt' | 'updatedAt', 'productId'>;
|
|
7
7
|
export type ArgsUpdateBundleProductsDto = {
|
|
@@ -11,4 +11,6 @@ export type ArgsUpdateBundleProductsDto = {
|
|
|
11
11
|
export type QueryBundleGQLDto = PaginatedGQLQueryDto & {
|
|
12
12
|
collectionId?: number;
|
|
13
13
|
};
|
|
14
|
-
export type FindAllBundleGQLDto = Bundle
|
|
14
|
+
export type FindAllBundleGQLDto = WithRelations<Bundle, {
|
|
15
|
+
BundleVariant: BundleVariant[];
|
|
16
|
+
}>;
|
package/dist/bundles/graphql.js
CHANGED
|
@@ -20,6 +20,21 @@ exports.BundlesResolvers = {
|
|
|
20
20
|
subtitle
|
|
21
21
|
description
|
|
22
22
|
tags
|
|
23
|
+
BundleVariant {
|
|
24
|
+
id
|
|
25
|
+
description
|
|
26
|
+
translations {
|
|
27
|
+
key
|
|
28
|
+
locale
|
|
29
|
+
value
|
|
30
|
+
}
|
|
31
|
+
price
|
|
32
|
+
fullPrice
|
|
33
|
+
productId
|
|
34
|
+
published
|
|
35
|
+
createdAt
|
|
36
|
+
updatedAt
|
|
37
|
+
}
|
|
23
38
|
translations {
|
|
24
39
|
key
|
|
25
40
|
locale
|
package/dist/bundles/types.d.ts
CHANGED
|
@@ -56,7 +56,9 @@ export type UpdateBundleDto = Partial<CreateBundleDto> & {
|
|
|
56
56
|
};
|
|
57
57
|
export type CreateBundleVariantDto = OmitRequire<BundleVariant, 'id' | 'createdAt' | 'updatedAt' | 'bundleId'>;
|
|
58
58
|
export type UpdateBundleVariantDto = Partial<CreateBundleVariantDto>;
|
|
59
|
-
export type FindAllBundleDto = Bundle
|
|
59
|
+
export type FindAllBundleDto = WithRelations<Bundle, {
|
|
60
|
+
BundleVariant: BundleVariant[];
|
|
61
|
+
}>;
|
|
60
62
|
export type FindOneBundleDto = WithRelations<Bundle, {
|
|
61
63
|
BundleProduct: WithRelation<BundleProduct, 'Product', Product>[];
|
|
62
64
|
BundleVariant: BundleVariant[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bundle, BundleCollection } from "../bundles/types";
|
|
1
|
+
import { Bundle, BundleCollection, BundleVariant } from "../bundles/types";
|
|
2
2
|
import { BooleanClause, NumberClause, StringClause, WhereClausesDto } from "../core/dto/clauses";
|
|
3
3
|
import { Sorting, SortingParamsDto } from "../core/dto/sorting";
|
|
4
4
|
import { QueryParamsDto } from "../core/utils/queryParams";
|
|
@@ -71,7 +71,9 @@ export type QueryCollectionProductsDto = Omit<QueryParamsDto<SortingParamsDto<{}
|
|
|
71
71
|
search?: StringClause;
|
|
72
72
|
published?: BooleanClause;
|
|
73
73
|
}>>, 'sorting'>;
|
|
74
|
-
export type FindAllCollectionBundlesDto = WithRelation<BundleCollection, 'Bundle', Bundle
|
|
74
|
+
export type FindAllCollectionBundlesDto = WithRelation<BundleCollection, 'Bundle', WithRelations<Bundle, {
|
|
75
|
+
BundleVariant: BundleVariant[];
|
|
76
|
+
}>>;
|
|
75
77
|
export type QueryCollectionBundlesDto = Omit<QueryParamsDto<SortingParamsDto<{}>, WhereClausesDto<{
|
|
76
78
|
includeAttributes?: NumberClause;
|
|
77
79
|
excludeAttributes?: NumberClause;
|