@maioradv/cms-basic-lib 1.0.10 → 1.0.11

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,15 +2,14 @@ import { BooleanClause, EnumClause, StringClause, WhereClausesDto } from "../cor
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 { Metafield, OmitRequire, Translation, WithRelation } from "../types";
5
+ import { Metafield, OmitRequire, Translation, WithRelation, WithRelations } from "../types";
6
6
  export declare enum PopupTarget {
7
7
  menu = "menu",
8
8
  menuDetail = "menuDetail",
9
9
  collectionDetail = "collectionDetail"
10
10
  }
11
11
  export declare enum PopupModal {
12
- image = "image",
13
- text = "text"
12
+ standard = "standard"
14
13
  }
15
14
  export declare enum PopupTriggerRule {
16
15
  eventName = "eventName",
@@ -55,7 +54,10 @@ export type CreatePopupImageDto = OmitRequire<PopupImage, 'popupId' | 'createdAt
55
54
  export type UpdatePopupImageDto = Omit<CreatePopupImageDto, 'file'>;
56
55
  export type CreatePopupTriggerDto = OmitRequire<PopupTrigger, 'id' | 'createdAt' | 'updatedAt' | 'popupId', 'name' | 'rule' | 'value'>;
57
56
  export type UpdatePopupTriggerDto = Partial<CreatePopupTriggerDto>;
58
- export type FindOnePopupDto = WithRelation<Popup, 'PopupTrigger', WithRelation<PopupTrigger, 'PopupImage', WithRelation<PopupImage, 'Image', Image>[]>[]>;
57
+ export type FindOnePopupDto = WithRelations<Popup, {
58
+ PopupTrigger: PopupTrigger[];
59
+ PopupImage: WithRelation<PopupImage, 'Image', Image>[];
60
+ }>;
59
61
  export type SortingPopupDto = SortingParamsDto<{
60
62
  name?: Sorting;
61
63
  published?: Sorting;
@@ -9,8 +9,7 @@ var PopupTarget;
9
9
  })(PopupTarget || (exports.PopupTarget = PopupTarget = {}));
10
10
  var PopupModal;
11
11
  (function (PopupModal) {
12
- PopupModal["image"] = "image";
13
- PopupModal["text"] = "text";
12
+ PopupModal["standard"] = "standard";
14
13
  })(PopupModal || (exports.PopupModal = PopupModal = {}));
15
14
  var PopupTriggerRule;
16
15
  (function (PopupTriggerRule) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maioradv/cms-basic-lib",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
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",