@wlloyalty/wll-react-sdk 1.0.55 → 1.0.56

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.
@@ -0,0 +1,7 @@
1
+ import { TSection } from '../types/section';
2
+ import { Tile } from '../types/tile';
3
+ export type SectionMockConfig = Partial<TSection> & {
4
+ tiles?: Tile[];
5
+ };
6
+ export declare const createSectionMock: (config?: SectionMockConfig) => TSection;
7
+ export declare const createSectionWithTiles: (tiles: Tile[]) => TSection;
@@ -0,0 +1,33 @@
1
+ import { BadgeTileConfig, BadgeTileType, TileHeight, TileType } from '../../types/tile';
2
+ export type BadgeTileMockConfig = Partial<BadgeTileConfig> & {
3
+ active?: boolean;
4
+ tileHeight?: TileHeight;
5
+ };
6
+ export declare const createBadgeTileMock: (config?: BadgeTileMockConfig) => {
7
+ id: string;
8
+ type: TileType;
9
+ active: boolean;
10
+ createdAt: string;
11
+ updatedAt: string;
12
+ tileHeight: TileHeight;
13
+ priority: number;
14
+ configuration: {
15
+ type: BadgeTileType;
16
+ badgeId: string;
17
+ internalName: string;
18
+ name: string;
19
+ description: string;
20
+ artworkUrl: string;
21
+ priority: number;
22
+ status: string;
23
+ defaultLocale: string;
24
+ locale: string;
25
+ createdAt: string;
26
+ updatedAt: string;
27
+ awardedDatePrefix: string;
28
+ emptyBadgeMessage: string;
29
+ badgeNotEarnedMessage: string | undefined;
30
+ emptyBadgeArtworkUrl: string;
31
+ count: number;
32
+ };
33
+ };
@@ -0,0 +1,22 @@
1
+ import { BannerTileConfig, CTALinkTarget, TileHeight, TileType } from '../../types/tile';
2
+ export type BannerTileMockConfig = Partial<BannerTileConfig> & {
3
+ active?: boolean;
4
+ tileHeight?: TileHeight;
5
+ };
6
+ export declare const createBannerTileMock: (config?: BannerTileMockConfig) => {
7
+ id: string;
8
+ type: TileType;
9
+ active: boolean;
10
+ createdAt: string;
11
+ updatedAt: string;
12
+ tileHeight: TileHeight;
13
+ priority: number;
14
+ configuration: {
15
+ title: string | null;
16
+ description: string | null;
17
+ ctaText: string | null;
18
+ ctaLink: string | null;
19
+ ctaLinkTarget: CTALinkTarget;
20
+ artworkUrl: string | null;
21
+ };
22
+ };
@@ -0,0 +1,6 @@
1
+ import { ContentTileConfig, Tile, TileHeight } from '../../types/tile';
2
+ export type ContentTileMockConfig = Partial<ContentTileConfig> & {
3
+ tileHeight?: TileHeight;
4
+ active?: boolean;
5
+ };
6
+ export declare const createContentTileMock: (config?: ContentTileMockConfig) => Tile;
@@ -0,0 +1,3 @@
1
+ import { Tile, TileType } from '../../types/tile';
2
+ export { createContentTileMock } from './contentTile';
3
+ export declare const createTileMock: (type: TileType, config?: any) => Tile;
@@ -0,0 +1,22 @@
1
+ import { PointsTileConfig, TileHeight, TileType } from '../../types/tile';
2
+ export type PointsTileMockConfig = Partial<PointsTileConfig> & {
3
+ active?: boolean;
4
+ tileHeight?: TileHeight;
5
+ };
6
+ export declare const createPointsTileMock: (config?: PointsTileMockConfig) => {
7
+ id: string;
8
+ type: TileType;
9
+ active: boolean;
10
+ createdAt: string;
11
+ updatedAt: string;
12
+ tileHeight: TileHeight;
13
+ priority: number;
14
+ configuration: {
15
+ pointsMultiplier?: number | undefined;
16
+ title: string | null;
17
+ points: number;
18
+ pointsPrefix: string | null;
19
+ pointsSuffix: string | null;
20
+ artworkUrl: string | null;
21
+ };
22
+ };
@@ -0,0 +1,20 @@
1
+ import { RewardCategoryTileConfig, TileHeight, TileType } from '../../types/tile';
2
+ export type RewardCategoryTileMockConfig = Partial<RewardCategoryTileConfig> & {
3
+ active?: boolean;
4
+ tileHeight?: TileHeight;
5
+ };
6
+ export declare const createRewardCategoryTileMock: (config?: RewardCategoryTileMockConfig) => {
7
+ id: string;
8
+ type: TileType;
9
+ active: boolean;
10
+ createdAt: string;
11
+ updatedAt: string;
12
+ tileHeight: TileHeight;
13
+ priority: number;
14
+ configuration: {
15
+ showName: boolean;
16
+ rewardCategoryId: string;
17
+ artworkUrl: string;
18
+ name: string;
19
+ };
20
+ };
@@ -0,0 +1,6 @@
1
+ import { RewardTileConfig, Tile, TileHeight } from '../../types/tile';
2
+ export type RewardTileMockConfig = Partial<RewardTileConfig> & {
3
+ active?: boolean;
4
+ tileHeight?: TileHeight;
5
+ };
6
+ export declare const createRewardTileMock: (config?: RewardTileMockConfig) => Tile;
@@ -0,0 +1,6 @@
1
+ import { TierTileConfig, Tile, TileHeight } from '../../types/tile';
2
+ export type TierTileMockConfig = Partial<TierTileConfig> & {
3
+ tileHeight?: TileHeight;
4
+ priority?: number;
5
+ };
6
+ export declare const createTierTileMock: (config?: TierTileMockConfig) => Tile;
@@ -76,8 +76,8 @@ export declare class RewardTileConfig {
76
76
  purchaseExpiration: string | null;
77
77
  hideCode: boolean;
78
78
  notificationConfig: any | null;
79
- artworkUrl: string;
80
- pointsMultiplier: string;
79
+ artworkUrl: string | undefined;
80
+ pointsMultiplier: number;
81
81
  pointsPrefix: string | null;
82
82
  pointsSuffix: string | null;
83
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wlloyalty/wll-react-sdk",
3
- "version": "1.0.55",
3
+ "version": "1.0.56",
4
4
  "license": "UNLICENSED",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",