@infrab4a/connect 5.3.10-beta.0 → 5.3.10-beta.1

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.
package/index.cjs.js CHANGED
@@ -758,6 +758,24 @@ tslib.__decorate([
758
758
  registerClass('Category', Category);
759
759
 
760
760
  class BrandCategory extends BaseModel {
761
+ get glamImages() {
762
+ return this.images?.[exports.Shops.GLAMSHOP]
763
+ ? this.images[exports.Shops.GLAMSHOP]
764
+ : {
765
+ brandBanner: null,
766
+ brandBannerMobile: null,
767
+ image: null,
768
+ };
769
+ }
770
+ get mensImages() {
771
+ return this.images?.[exports.Shops.MENSMARKET]
772
+ ? this.images[exports.Shops.MENSMARKET]
773
+ : {
774
+ brandBanner: null,
775
+ brandBannerMobile: null,
776
+ image: null,
777
+ };
778
+ }
761
779
  static get identifiersFields() {
762
780
  return ['id'];
763
781
  }
package/index.esm.js CHANGED
@@ -734,6 +734,24 @@ __decorate([
734
734
  registerClass('Category', Category);
735
735
 
736
736
  class BrandCategory extends BaseModel {
737
+ get glamImages() {
738
+ return this.images?.[Shops.GLAMSHOP]
739
+ ? this.images[Shops.GLAMSHOP]
740
+ : {
741
+ brandBanner: null,
742
+ brandBannerMobile: null,
743
+ image: null,
744
+ };
745
+ }
746
+ get mensImages() {
747
+ return this.images?.[Shops.MENSMARKET]
748
+ ? this.images[Shops.MENSMARKET]
749
+ : {
750
+ brandBanner: null,
751
+ brandBannerMobile: null,
752
+ image: null,
753
+ };
754
+ }
737
755
  static get identifiersFields() {
738
756
  return ['id'];
739
757
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "5.3.10-beta.0",
3
+ "version": "5.3.10-beta.1",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -11,5 +11,7 @@ export declare class BrandCategory extends BaseModel<BrandCategory> {
11
11
  brand_banner?: string;
12
12
  brand_banner_mobile?: string;
13
13
  shops: Shops[];
14
+ get glamImages(): any;
15
+ get mensImages(): any;
14
16
  static get identifiersFields(): GenericIdentifier[];
15
17
  }