@smartico/public-api 0.0.326 → 0.0.327

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.
@@ -10,7 +10,8 @@ export declare enum AchCustomSectionType {
10
10
  LOOTBOX_WEEKLY = 10,
11
11
  LOOTBOX_CALENDAR_DAYS = 11,
12
12
  TREASURE_HUNT = 12,
13
- RAFFLE = 13
13
+ RAFFLE = 13,
14
+ BADGES = 14
14
15
  }
15
16
  export declare enum AchCustomLayoutTheme {
16
17
  VALENTINES_LIGHT = "valentines-light",
@@ -16,5 +16,6 @@ export interface UICustomSection {
16
16
  ach_tournament_id?: number;
17
17
  show_raw_data?: boolean;
18
18
  liquid_template?: number;
19
+ ach_category_ids?: number[];
19
20
  }
20
21
  export declare const UICustomSectionTransform: (response: GetCustomSectionsResponse) => TUICustomSection[];
@@ -828,6 +828,8 @@ export interface TUICustomSection {
828
828
  show_raw_data?: boolean;
829
829
  /** Liquid template id to be used for Liquid templates */
830
830
  liquid_template?: number;
831
+ /** List of IDs of the categories where the badge item is assigned, information about categories can be retrieved with getAchCategories method */
832
+ ach_category_ids?: number[];
831
833
  }
832
834
  export interface TBonus {
833
835
  /** ID of the bonus */
package/dist/index.js CHANGED
@@ -3735,6 +3735,7 @@ exports.AchCustomSectionType = void 0;
3735
3735
  AchCustomSectionType[AchCustomSectionType["LOOTBOX_CALENDAR_DAYS"] = 11] = "LOOTBOX_CALENDAR_DAYS";
3736
3736
  AchCustomSectionType[AchCustomSectionType["TREASURE_HUNT"] = 12] = "TREASURE_HUNT";
3737
3737
  AchCustomSectionType[AchCustomSectionType["RAFFLE"] = 13] = "RAFFLE";
3738
+ AchCustomSectionType[AchCustomSectionType["BADGES"] = 14] = "BADGES";
3738
3739
  })(exports.AchCustomSectionType || (exports.AchCustomSectionType = {}));
3739
3740
  exports.AchCustomLayoutTheme = void 0;
3740
3741
  (function (AchCustomLayoutTheme) {
@@ -3794,6 +3795,8 @@ var UICustomSectionTransform = function UICustomSectionTransform(response) {
3794
3795
  ach_tournament_id: r.ach_tournament_id,
3795
3796
  show_raw_data: r.show_raw_data,
3796
3797
  liquid_template: r.liquid_template
3798
+ } : {}, r.section_type_id === exports.AchCustomSectionType.BADGES ? {
3799
+ ach_category_ids: r.ach_category_ids
3797
3800
  } : {});
3798
3801
  items.push(x);
3799
3802
  }