@maioradv/cms-basic-lib 1.6.7 → 1.6.9

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.
@@ -62,5 +62,7 @@ export declare enum Permission {
62
62
  read_bundles = "read_bundles",
63
63
  write_bundles = "write_bundles",
64
64
  read_linkcollections = "read_linkcollections",
65
- write_linkcollections = "write_linkcollections"
65
+ write_linkcollections = "write_linkcollections",
66
+ read_reservations = "read_reservations",
67
+ write_reservations = "write_reservations"
66
68
  }
@@ -41,4 +41,6 @@ var Permission;
41
41
  Permission["write_bundles"] = "write_bundles";
42
42
  Permission["read_linkcollections"] = "read_linkcollections";
43
43
  Permission["write_linkcollections"] = "write_linkcollections";
44
+ Permission["read_reservations"] = "read_reservations";
45
+ Permission["write_reservations"] = "write_reservations";
44
46
  })(Permission || (exports.Permission = Permission = {}));
@@ -46,6 +46,7 @@ export type ClausesCollectionDto = WhereClausesDto<{
46
46
  productId?: NumberClause;
47
47
  published?: BooleanClause;
48
48
  hasParent?: BooleanClause;
49
+ hasImages?: BooleanClause;
49
50
  allowChildren?: BooleanClause;
50
51
  }>;
51
52
  export type QueryCollectionDto = QueryParamsDto<SortingCollectionDto, ClausesCollectionDto>;
@@ -52,6 +52,7 @@ exports.ConfigsResolvers = {
52
52
  allowCustomProductModal
53
53
  allowCustomTheme
54
54
  allowLinks
55
+ allowReservations
55
56
  maxMenuCollectionNumber
56
57
  maxProductImageNumber
57
58
  maxProductsCollectionNumber
@@ -16,6 +16,7 @@ export interface TiDelizioConfig extends ServiceConfig {
16
16
  allowProductVideo?: boolean;
17
17
  allowPopup?: boolean;
18
18
  allowLinks?: boolean;
19
+ allowReservations?: boolean;
19
20
  allowCustomTheme?: boolean;
20
21
  plan?: TiDelizioPlan;
21
22
  maxMenuCollectionNumber?: number;
@@ -1,9 +1,9 @@
1
1
  import { PaginatedDto } from "../core/dto/pagination";
2
2
  import { ApiModule } from "../model";
3
- import { CreateLinkImageDto, FindAllLinkDto, FindAllLinkImageDto, Link, LinkImage, QueryLinkDto, UpdateLinkDto, UpdateLinkImageDto } from "./types";
3
+ import { CreateLinkImageDto, FindAllLinkDto, FindAllLinkImageDto, FindOneLinkDto, Link, LinkImage, QueryLinkDto, UpdateLinkDto, UpdateLinkImageDto } from "./types";
4
4
  export default class Links extends ApiModule {
5
5
  findAll(args?: QueryLinkDto): Promise<PaginatedDto<FindAllLinkDto>>;
6
- findOne(id: number): Promise<Link>;
6
+ findOne(id: number): Promise<FindOneLinkDto>;
7
7
  update(id: number, data: UpdateLinkDto): Promise<Link>;
8
8
  remove(id: number): Promise<Link>;
9
9
  createImage(linkId: number, args: CreateLinkImageDto): Promise<LinkImage>;
@@ -70,6 +70,9 @@ export type FindOneLinkCollectionDto = WithRelations<LinkCollection, {
70
70
  export type FindAllLinkDto = WithRelations<Link, {
71
71
  LinkImage: WithRelation<LinkImage, 'Image', Image>[];
72
72
  }>;
73
+ export type FindOneLinkDto = WithRelations<Link, {
74
+ LinkImage: WithRelation<LinkImage, 'Image', Image>[];
75
+ }>;
73
76
  export type CreateLinkImageDto = OmitRequire<LinkImage, 'linkId' | 'createdAt' | 'updatedAt' | 'imageId'> & CreateImageDto;
74
77
  export type UpdateLinkImageDto = Omit<CreateLinkImageDto, 'file'>;
75
78
  export type FindAllLinkImageDto = WithRelation<LinkImage, 'Image', Image>[];
@@ -50,5 +50,6 @@ export type ClausesProductAttributeValueDto = WhereClausesDto<{
50
50
  productAttributeId?: NumberClause;
51
51
  collections?: NumberClause;
52
52
  bundles?: NumberClause;
53
+ hasProducts?: BooleanClause;
53
54
  }>;
54
55
  export type QueryProductAttributeValueDto = QueryParamsDto<SortingProductAttributeValueDto, ClausesProductAttributeValueDto>;
@@ -114,5 +114,6 @@ export type ClausesProductDto = WhereClausesDto<{
114
114
  attributes?: NumberClause;
115
115
  published?: BooleanClause;
116
116
  noCollections?: BooleanClause;
117
+ hasImages?: BooleanClause;
117
118
  }>;
118
119
  export type QueryProductDto = QueryParamsDto<SortingProductDto, ClausesProductDto>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maioradv/cms-basic-lib",
3
- "version": "1.6.7",
3
+ "version": "1.6.9",
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",