@maioradv/cms-basic-lib 1.4.6 → 1.4.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.
@@ -13,4 +13,5 @@ export type QueryBundleGQLDto = PaginatedGQLQueryDto & {
13
13
  };
14
14
  export type FindAllBundleGQLDto = WithRelations<Bundle, {
15
15
  BundleVariant: BundleVariant[];
16
+ BundleProduct: BundleProduct[];
16
17
  }>;
@@ -35,6 +35,13 @@ exports.BundlesResolvers = {
35
35
  createdAt
36
36
  updatedAt
37
37
  }
38
+ BundleProduct {
39
+ bundleId
40
+ productId
41
+ position
42
+ createdAt
43
+ updatedAt
44
+ }
38
45
  translations {
39
46
  key
40
47
  locale
@@ -58,6 +58,7 @@ export type CreateBundleVariantDto = OmitRequire<BundleVariant, 'id' | 'createdA
58
58
  export type UpdateBundleVariantDto = Partial<CreateBundleVariantDto>;
59
59
  export type FindAllBundleDto = WithRelations<Bundle, {
60
60
  BundleVariant: BundleVariant[];
61
+ BundleProduct: BundleProduct[];
61
62
  }>;
62
63
  export type FindOneBundleDto = WithRelations<Bundle, {
63
64
  BundleProduct: WithRelation<BundleProduct, 'Product', Product>[];
@@ -1,4 +1,4 @@
1
- import { Bundle, BundleCollection, BundleVariant } from "../bundles/types";
1
+ import { Bundle, BundleCollection, BundleProduct, 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";
@@ -73,6 +73,7 @@ export type QueryCollectionProductsDto = Omit<QueryParamsDto<SortingParamsDto<{}
73
73
  }>>, 'sorting'>;
74
74
  export type FindAllCollectionBundlesDto = WithRelation<BundleCollection, 'Bundle', WithRelations<Bundle, {
75
75
  BundleVariant: BundleVariant[];
76
+ BundleProduct: BundleProduct[];
76
77
  }>>;
77
78
  export type QueryCollectionBundlesDto = Omit<QueryParamsDto<SortingParamsDto<{}>, WhereClausesDto<{
78
79
  includeAttributes?: NumberClause;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maioradv/cms-basic-lib",
3
- "version": "1.4.6",
3
+ "version": "1.4.8",
4
4
  "description": "JS lib for Maior CMS Basic Api",
5
5
  "repository": "https://github.com/maioradv/cms-basic-lib.git",
6
6
  "author": "Maior ADV Srl",