@liquidcommercedev/rmn-sdk 1.4.6 → 1.5.0-beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. package/dist/index.cjs +2424 -721
  2. package/dist/index.esm.js +2424 -722
  3. package/dist/types/common/helpers/uuid.helper.d.ts +49 -0
  4. package/dist/types/enums.d.ts +59 -1
  5. package/dist/types/index.umd.d.ts +2 -2
  6. package/dist/types/modules/element/component/carousel/carousel.component.d.ts +3 -0
  7. package/dist/types/modules/element/component/carousel/carousel.interface.d.ts +35 -0
  8. package/dist/types/modules/element/component/carousel/carousel.style.d.ts +2 -0
  9. package/dist/types/modules/element/component/carousel/index.d.ts +3 -0
  10. package/dist/types/modules/element/component/spot/index.d.ts +2 -0
  11. package/dist/types/modules/element/component/spot/spot.component.d.ts +3 -0
  12. package/dist/types/modules/element/component/spot/spot.interface.d.ts +10 -0
  13. package/dist/types/modules/element/component/utils.d.ts +1 -0
  14. package/dist/types/modules/{spot/html/constants/html.constant.d.ts → element/element.constant.d.ts} +2 -5
  15. package/dist/types/modules/element/element.interface.d.ts +52 -0
  16. package/dist/types/modules/element/element.service.d.ts +40 -0
  17. package/dist/types/modules/element/index.d.ts +3 -0
  18. package/dist/types/modules/element/template/helper.d.ts +4 -0
  19. package/dist/types/modules/element/template/index.d.ts +1 -0
  20. package/dist/types/modules/element/template/reservebar/collection-banner-without-text-block.template.d.ts +3 -0
  21. package/dist/types/modules/element/template/reservebar/homepage-hero-full-image.template.d.ts +3 -0
  22. package/dist/types/modules/element/template/reservebar/homepage-hero-three-tile.template.d.ts +3 -0
  23. package/dist/types/modules/element/template/reservebar/homepage-hero-two-tile.template.d.ts +3 -0
  24. package/dist/types/modules/element/template/reservebar/large-category-image-tout.template.d.ts +3 -0
  25. package/dist/types/modules/element/template/reservebar/navigation-banner.template.d.ts +3 -0
  26. package/dist/types/modules/element/template/reservebar/small-category-image-tout.template.d.ts +3 -0
  27. package/dist/types/modules/element/template/reservebar/small-discover-tout.template.d.ts +3 -0
  28. package/dist/types/modules/element/template/template.service.d.ts +11 -0
  29. package/dist/types/modules/element/template/template.type.d.ts +11 -0
  30. package/dist/types/modules/event/event.constant.d.ts +1 -0
  31. package/dist/types/modules/event/event.interface.d.ts +72 -0
  32. package/dist/types/modules/event/event.service.d.ts +45 -0
  33. package/dist/types/modules/event/helpers/index.d.ts +3 -0
  34. package/dist/types/modules/event/helpers/intersection.service.d.ts +8 -0
  35. package/dist/types/modules/event/helpers/localstorage.service.d.ts +26 -0
  36. package/dist/types/modules/event/helpers/resize.service.d.ts +30 -0
  37. package/dist/types/modules/event/index.d.ts +4 -0
  38. package/dist/types/modules/event/pubsub.d.ts +69 -0
  39. package/dist/types/modules/selection/index.d.ts +4 -0
  40. package/dist/types/modules/selection/selection.constant.d.ts +1 -0
  41. package/dist/types/modules/{spot/spot.interface.d.ts → selection/selection.interface.d.ts} +10 -13
  42. package/dist/types/modules/selection/selection.service.d.ts +18 -0
  43. package/dist/types/modules/{spot/spot.type.d.ts → selection/selection.type.d.ts} +4 -3
  44. package/dist/types/rmn-client.d.ts +66 -23
  45. package/dist/types/static.constant.d.ts +4 -0
  46. package/dist/types/types.d.ts +17 -6
  47. package/package.json +2 -2
  48. package/umd/liquidcommerce-rmn-sdk.min.js +1 -1
  49. package/dist/types/modules/spot/html/constants/index.d.ts +0 -1
  50. package/dist/types/modules/spot/html/index.d.ts +0 -1
  51. package/dist/types/modules/spot/html/spot.element.service.d.ts +0 -7
  52. package/dist/types/modules/spot/html/templates/index.d.ts +0 -1
  53. package/dist/types/modules/spot/html/templates/reservebar/collection-banner-without-text-block.template.d.ts +0 -2
  54. package/dist/types/modules/spot/html/templates/reservebar/homepage-hero-full-image.template.d.ts +0 -2
  55. package/dist/types/modules/spot/html/templates/reservebar/homepage-hero-three-tile.template.d.ts +0 -2
  56. package/dist/types/modules/spot/html/templates/reservebar/homepage-hero-two-tile.template.d.ts +0 -2
  57. package/dist/types/modules/spot/html/templates/reservebar/large-category-image-tout.template.d.ts +0 -2
  58. package/dist/types/modules/spot/html/templates/reservebar/navigation-banner.template.d.ts +0 -2
  59. package/dist/types/modules/spot/html/templates/reservebar/small-category-image-tout.template.d.ts +0 -2
  60. package/dist/types/modules/spot/html/templates/reservebar/small-discover-tout.template.d.ts +0 -2
  61. package/dist/types/modules/spot/html/templates/spot.template.d.ts +0 -21
  62. package/dist/types/modules/spot/index.d.ts +0 -6
  63. package/dist/types/modules/spot/spot.constant.d.ts +0 -4
  64. package/dist/types/modules/spot/spot.enum.d.ts +0 -57
  65. package/dist/types/modules/spot/spot.html.service.d.ts +0 -22
  66. package/dist/types/modules/spot/spot.selection.service.d.ts +0 -15
  67. /package/dist/types/modules/{spot/html/templates → element/template}/iab/billboard/billboard-v1.template.d.ts +0 -0
  68. /package/dist/types/modules/{spot/html/templates → element/template}/iab/billboard/billboard-v2.template.d.ts +0 -0
  69. /package/dist/types/modules/{spot/html/templates → element/template}/iab/billboard/billboard-v3.template.d.ts +0 -0
  70. /package/dist/types/modules/{spot/html/templates → element/template}/iab/billboard/index.d.ts +0 -0
  71. /package/dist/types/modules/{spot/html/templates → element/template}/iab/in-text/in-text-v1.template.d.ts +0 -0
  72. /package/dist/types/modules/{spot/html/templates → element/template}/iab/in-text/index.d.ts +0 -0
  73. /package/dist/types/modules/{spot/html/templates → element/template}/iab/index.d.ts +0 -0
  74. /package/dist/types/modules/{spot/html/templates → element/template}/iab/large-leaderboard/index.d.ts +0 -0
  75. /package/dist/types/modules/{spot/html/templates → element/template}/iab/large-leaderboard/large-leaderboard-v1.template.d.ts +0 -0
  76. /package/dist/types/modules/{spot/html/templates → element/template}/iab/large-leaderboard/large-leaderboard-v2.template.d.ts +0 -0
  77. /package/dist/types/modules/{spot/html/templates → element/template}/iab/large-rectangle/index.d.ts +0 -0
  78. /package/dist/types/modules/{spot/html/templates → element/template}/iab/large-rectangle/large-rectangle-v1.template.d.ts +0 -0
  79. /package/dist/types/modules/{spot/html/templates → element/template}/iab/square/index.d.ts +0 -0
  80. /package/dist/types/modules/{spot/html/templates → element/template}/iab/square/square-v1.template.d.ts +0 -0
  81. /package/dist/types/modules/{spot/html/templates → element/template}/iab/square/square-v2.template.d.ts +0 -0
  82. /package/dist/types/modules/{spot/html/templates → element/template}/iab/vertical-rectangle/index.d.ts +0 -0
  83. /package/dist/types/modules/{spot/html/templates → element/template}/iab/vertical-rectangle/vertical-rectangle-v1.template.d.ts +0 -0
  84. /package/dist/types/modules/{spot/html/templates → element/template}/iab/wide-skyscraper/index.d.ts +0 -0
  85. /package/dist/types/modules/{spot/html/templates → element/template}/iab/wide-skyscraper/wide-skyscraper-v1.template.d.ts +0 -0
  86. /package/dist/types/modules/{spot/html/templates → element/template}/reservebar/index.d.ts +0 -0
@@ -1 +0,0 @@
1
- export * from './html.constant';
@@ -1 +0,0 @@
1
- export * from './spot.element.service';
@@ -1,7 +0,0 @@
1
- import type { ISpot } from 'types';
2
- export interface ICustomSpotElement extends HTMLElement {
3
- data?: ISpot;
4
- customContent?: HTMLElement | string;
5
- }
6
- declare let SpotElement: new () => HTMLElement;
7
- export { SpotElement };
@@ -1 +0,0 @@
1
- export * from './spot.template';
@@ -1,2 +0,0 @@
1
- import type { ISpot } from 'types';
2
- export declare function rbCollectionBannerWithoutTextBlockTemplate(spot: ISpot): string;
@@ -1,2 +0,0 @@
1
- import type { ISpot } from 'types';
2
- export declare function rbHomepageHeroFullImageTemplate(spot: ISpot): string;
@@ -1,2 +0,0 @@
1
- import type { ISpot } from 'types';
2
- export declare function rbHomepageHeroThreeTileTemplate(spot: ISpot): string;
@@ -1,2 +0,0 @@
1
- import type { ISpot } from 'types';
2
- export declare function rbHomepageHeroTwoTileTemplate(spot: ISpot): string;
@@ -1,2 +0,0 @@
1
- import type { ISpot } from 'types';
2
- export declare function rbLargeCategoryImageToutTemplate(spot: ISpot): string;
@@ -1,2 +0,0 @@
1
- import type { ISpot } from 'types';
2
- export declare function rbNavigationBannerTemplate(spot: ISpot): string;
@@ -1,2 +0,0 @@
1
- import type { ISpot } from 'types';
2
- export declare function rbSmallCategoryImageToutTemplate(spot: ISpot): string;
@@ -1,2 +0,0 @@
1
- import type { ISpot } from 'types';
2
- export declare function rbSmallDiscoverToutTemplate(spot: ISpot): string;
@@ -1,21 +0,0 @@
1
- import type { ISpot } from 'types';
2
- export declare enum ENUM_SPOT_ELEMENT_ATTRIBUTE {
3
- WIDTH = "width",
4
- HEIGHT = "height",
5
- FLUID = "fluid",
6
- REDIRECT_ON_CLICK = "redirect-on-click"
7
- }
8
- export interface ISpotHtmlAttribute {
9
- [ENUM_SPOT_ELEMENT_ATTRIBUTE.WIDTH]: number;
10
- [ENUM_SPOT_ELEMENT_ATTRIBUTE.HEIGHT]: number;
11
- [ENUM_SPOT_ELEMENT_ATTRIBUTE.FLUID]: string;
12
- [ENUM_SPOT_ELEMENT_ATTRIBUTE.REDIRECT_ON_CLICK]: string;
13
- }
14
- /**
15
- * Creates the spot html string based on the provided spot data.
16
- *
17
- * @param {ISpot} data - The spot data.
18
- *
19
- * @return {string} - The spot html string.
20
- */
21
- export declare const GET_SPOT_TEMPLATE_HTML_STRING: (data: ISpot) => string;
@@ -1,6 +0,0 @@
1
- export * from './spot.constant';
2
- export * from './spot.enum';
3
- export * from './spot.html.service';
4
- export * from './spot.interface';
5
- export * from './spot.selection.service';
6
- export * from './spot.type';
@@ -1,4 +0,0 @@
1
- export declare const SPOT_ELEMENT_TAG = "spot-element";
2
- export declare const SPOT_ELEMENT_SLOT_NAME = "spot-element-custom-content";
3
- export declare const SPOTS_SELECTION_API_PATH = "/spots/selection";
4
- export declare const SPOT_EVENT_API_PATH = "/spots/event";
@@ -1,57 +0,0 @@
1
- export declare enum RMN_SPOT_TYPE {
2
- RB_HOMEPAGE_HERO_THREE_TILE = "rbHomepageHeroThreeTile",
3
- RB_HOMEPAGE_HERO_TWO_TILE = "rbHomepageHeroTwoTile",
4
- RB_HOMEPAGE_HERO_FULL_IMAGE = "rbHomepageHeroFullImage",
5
- RB_LARGE_CATEGORY_IMAGE_TOUT = "rbLargeCategoryImageTout",
6
- RB_SMALL_DISCOVER_TOUT = "rbSmallDiscoverTout",
7
- RB_SMALL_CATEGORY_IMAGE_TOUT = "rbSmallCategoryImageTout",
8
- RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK = "rbCollectionBannerWithoutTextBlock",
9
- RB_PRODUCT_UPCS = "rbProductUpcs",
10
- RB_NAVIGATION_BANNER = "rbNavigationBanner",
11
- BILLBOARD = "billboard",
12
- LARGE_RECTANGLE = "largeRectangle",
13
- VERTICAL_RECTANGLE = "verticalRectangle",
14
- SQUARE = "square",
15
- LARGE_LEADERBOARD = "largeLeaderboard",
16
- WIDE_SKYSCRAPER = "wideSkyscraper",
17
- IN_TEXT = "inText",
18
- SMALL_RECTANGLE = "smallRectangle",
19
- MEDIUM_RECTANGLE = "mediumRectangle",
20
- BANNER = "banner",
21
- LEADERBOARD = "leaderboard",
22
- SKYSCRAPER = "skyscraper",
23
- HALF_PAGE = "halfPage",
24
- SMALL_SQUARE = "smallSquare",
25
- VERTICAL_BANNER = "verticalBanner",
26
- BUTTON_2 = "button2",
27
- MICRO_BAR = "microBar",
28
- POP_UP = "popUp",
29
- PORTRAIT = "portrait",
30
- SMARTPHONE_BANNER_1 = "smartphoneBanner1",
31
- SMARTPHONE_BANNER_2 = "smartphoneBanner2",
32
- MOBILE_PHONE_INTERSTITIAL_1 = "mobilePhoneInterstitial1",
33
- MOBILE_PHONE_INTERSTITIAL_2 = "mobilePhoneInterstitial2",
34
- MOBILE_PHONE_INTERSTITIAL_3 = "mobilePhoneInterstitial3",
35
- FEATURE_PHONE_SMALL_BANNER = "featurePhoneSmallBanner",
36
- FEATURE_PHONE_MEDIUM_BANNER = "featurePhoneMediumBanner",
37
- FEATURE_PHONE_LARGE_BANNER = "featurePhoneLargeBanner"
38
- }
39
- export declare enum RMN_FILTER_PROPERTIES {
40
- KEYWORDS = "keywords",
41
- PARENTCO = "parentCo",
42
- BRAND = "brand",
43
- CATEGORY = "category",
44
- TYPE = "type",
45
- CLASSIFICATION = "classification",
46
- HOLIDAY = "holiday",
47
- PUBLISHERS = "publishers",
48
- SECTION = "section"
49
- }
50
- export declare enum RMN_SPOT_EVENT {
51
- IMPRESSION = "IMPRESSION",
52
- CLICK = "CLICK",
53
- PURCHASE = "PURCHASE",
54
- ADD_TO_CART = "ADD_TO_CART",
55
- ADD_TO_WISHLIST = "ADD_TO_WISHLIST",
56
- BUY_NOW = "BUY_NOW"
57
- }
@@ -1,22 +0,0 @@
1
- import type { ICreateSpotElementConfig, ISpot, ISpotHtmlService } from './spot.interface';
2
- export declare class SpotHtmlService implements ISpotHtmlService {
3
- static getInstance(): SpotHtmlService;
4
- /**
5
- * Creates the html element based on the provided spot data using shadow dom.
6
- *
7
- * This method is only available in browser environments.
8
- *
9
- * @param {ISpot} spot - The spot data.
10
- * @param {ICreateSpotElementConfig} config - The configuration object.
11
- * @param {ICreateSpotElementConfig.fluid} config.fluid - If the spot should be fluid or not.
12
- * @param {ICreateSpotElementConfig.customContent} config.customContent - Use a custom html element/string.
13
- * @param {ICreateSpotElementConfig.redirectOnClick} config.redirectOnClick - If the spot should redirect on click.
14
- *
15
- * @return {HTMLElement | null} - The spot html element or null if the browser environment is not available.
16
- */
17
- createSpotHtmlElement(spot: ISpot, config?: ICreateSpotElementConfig): HTMLElement | null;
18
- /**
19
- * @returns {boolean} - True if the browser environment is available and the element is defined.
20
- */
21
- private ensureBrowserEnvironmentAndDefineElement;
22
- }
@@ -1,15 +0,0 @@
1
- import { BaseApi } from '../../common/http';
2
- import type { IAuthCredentials } from '../auth';
3
- import type { ISpots, ISpotSelectionParams, ISpotSelectionService } from './spot.interface';
4
- export declare class SpotSelectionService extends BaseApi implements ISpotSelectionService {
5
- private constructor();
6
- static getInstance(auth: IAuthCredentials): SpotSelectionService;
7
- /**
8
- * Makes a selection request on our server based on the provided data.
9
- *
10
- * @param {ISpotSelectionParams} data - Spots selection parameters.
11
- *
12
- * @return {Promise<ISpots>} - The spots response object.
13
- */
14
- spotSelection(data: ISpotSelectionParams): Promise<ISpots>;
15
- }