loyalty-protocol 1.4.6 → 2.0.0

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/dist/config.js CHANGED
@@ -1 +1 @@
1
- var t=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var a=(i,e)=>()=>(i&&(e=i(i=0)),e);var m=(i,e)=>{for(var s in e)t(i,s,{get:e[s],enumerable:!0})},k=(i,e,s,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of h(e))!C.call(i,o)&&o!==s&&t(i,o,{get:()=>e[o],enumerable:!(n=l(e,o))||n.enumerable});return i};var d=i=>k(t({},"__esModule",{value:!0}),i);var r={};m(r,{HT_CONFIG:()=>u});var u,g=a(()=>{"use strict";u={currency:{"K-Cash":{name:"Coins",logo:"https://images.hindustantimes.com/sso/prod/loyalty-reward-sdk/images/goCoinHT.svg",decimalPoints:0},"K-Points":{name:"T-Points",logo:"https://s2.coinmarketcap.com/static/img/coins/128x128/1958.png",decimalPoints:0},rKGeN:{name:"T Coin",logo:"https://s2.coinmarketcap.com/static/img/coins/128x128/32196.png",decimalPoints:2}},showHeader:!1,kStoreLogo:void 0,tenantId:void 0,fontLink:"https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap"}});var c={};m(c,{TIME_NOW_CONFIG:()=>P});var P,p=a(()=>{"use strict";P={currency:{"K-Cash":{name:"Times Cash",logo:"https://pre-prod-admin-bucket.indi.gg/website-images/timesCash.png",decimalPoints:0},"K-Points":{name:"Coins",logo:"https://pre-prod-admin-bucket.indi.gg/website-images/timesCoin.png",decimalPoints:0},rKGeN:{name:"",logo:"",decimalPoints:2}},showHeader:!0,kStoreLogo:"https://pre-prod-admin-bucket.indi.gg/website-images/timesKstoreLogo.png",tenantId:"times",fontLink:void 0,assetMap:{times_point:"K-Points"},rkade:{spinWheel:{hideBgIconColor:!0}}}});var{HT_CONFIG:w}=(g(),d(r)),{TIME_NOW_CONFIG:I}=(p(),d(c));window.LOYALTY_PROTOCOL_CONFIG={"ht-kstore-india":w,"times-now-kstore-india":I};
1
+ var a=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var s=(o,e)=>()=>(o&&(e=o(o=0)),e);var r=(o,e)=>{for(var n in e)a(o,n,{get:e[n],enumerable:!0})},w=(o,e,n,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of l(e))!g.call(o,i)&&i!==n&&a(o,i,{get:()=>e[i],enumerable:!(t=h(e,i))||t.enumerable});return o};var d=o=>w(a({},"__esModule",{value:!0}),o);var m={};r(m,{HT_CONFIG:()=>y});var y,c=s(()=>{"use strict";y={currency:{"K-Cash":{name:"Coins",logo:"https://images.hindustantimes.com/sso/prod/loyalty-reward-sdk/images/goCoinHT.svg",decimalPoints:0}},showHeader:!1,kStoreLogo:void 0,tenantId:void 0,fontLink:"https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap"}});var u={};r(u,{TIME_NOW_CONFIG:()=>C});var C,p=s(()=>{"use strict";C={currency:{"K-Cash":{name:"Times Cash",logo:"https://pre-prod-admin-bucket.indi.gg/website-images/timesCash.png",decimalPoints:0},times_point:{name:"Coins",logo:"https://pre-prod-admin-bucket.indi.gg/website-images/timesCoin.png",decimalPoints:0}},showHeader:!0,kStoreLogo:"https://pre-prod-admin-bucket.indi.gg/website-images/timesKstoreLogo.png",tenantId:"times",fontLink:void 0,assetMap:{times_point:"K-Points"},rkade:{spinWheel:{hideBgIconColor:!0},faqData:[{question:"What is Spin & Win?",answer:"Spin & Win is a fun, chance-based feature that lets you convert your Coins into Times Cash using Spinwheel or Slots games. Each attempt gives you a chance to win Times Cash, Coins or maybe just try again next time."},{question:"How do I participate in Spinwheel or Slots?",answer:"Choose either Spinwheel or Slots, spend a small number of Coins to participate, and receive an outcome \u2014 which could be more Coins, Times Cash, or a 'Try Again'."},{question:"What outcomes can I get from the games?",answer:"The outcome is random and varies by game and participation. Possible outcomes: 'Try Again' (no win this round), Coins (bonus back), or Times Cash (your reward!)."},{question:"How much does each participation cost?",answer:"Each spin or slot participation costs a fixed amount of Coins, typically between 100 and 10000 Coins. You need to select the desired amount before confirming participation."},{question:"Can I win more than I spend?",answer:"Yes! Depending on the outcome, you can win more Coins or rKGEN Token than you spent."},{question:"What happens when I get 'Try Again'?",answer:"'Try Again' means you didn't win anything in that round. You can participate again by spending more Coins."},{question:"Is there a limit to how many times I can participate?",answer:"The limit is your Coins balance. If you run out of Coins, you will need to earn more to participate again."},{question:"How are the outcomes decided?",answer:"Outcomes are decided using a fair and randomized chance algorithm, similar to other gamified experiences."},{question:"Do I need a wallet to receive Times Cash?",answer:"No, Times Cash will go directly to your Wallet."},{question:"Can I track my game history and rewards?",answer:"Yes, your participation history and rewards (Coins spent, outcomes, tokens received) will be available in the rKade history section."},{question:"Are the tokens I win usable or tradable?",answer:"Times Cash received through rKade are the same as Platform Tokens earned via Faridrop Campaign. You can use or trade them with $KGEN (in the future) based on platform rules."},{question:"What if my Coins aren\u2019t deducted or I don\u2019t receive tokens?",answer:"If you experience an error, please contact support with your rKade participation history and wallet address. We'll help resolve it promptly."},{question:"Is rKade available on all devices?",answer:"rKade is supported on both web and mobile platforms. Make sure you're using the latest app version."},{question:"Is this gambling or does it cost real money?",answer:"No. rKade operates entirely on virtual Coins, which you earn through your activity on the KGeN platform. No real money is required, involved, or accepted at any stage. All interactions within rKade are purely for engagement and entertainment. There is no monetary risk, no cash deposits, and no cash winnings. Coins are virtual points meant solely for rewarding user participation."}]},loyaltyDashboard:{loyaltyCurrency:"times_point"}}});var{HT_CONFIG:f}=(c(),d(m)),{TIME_NOW_CONFIG:b}=(p(),d(u));window.LOYALTY_PROTOCOL_CONFIG={"ht-kstore-india":f,"times-now-kstore-india":b};
@@ -5,16 +5,6 @@ export declare const HT_CONFIG: {
5
5
  logo: string;
6
6
  decimalPoints: number;
7
7
  };
8
- "K-Points": {
9
- name: string;
10
- logo: string;
11
- decimalPoints: number;
12
- };
13
- rKGeN: {
14
- name: string;
15
- logo: string;
16
- decimalPoints: number;
17
- };
18
8
  };
19
9
  showHeader: boolean;
20
10
  kStoreLogo: undefined;
@@ -5,16 +5,6 @@ export const HT_CONFIG = {
5
5
  logo: "https://images.hindustantimes.com/sso/prod/loyalty-reward-sdk/images/goCoinHT.svg",
6
6
  decimalPoints: 0,
7
7
  },
8
- "K-Points": {
9
- name: "T-Points",
10
- logo: "https://s2.coinmarketcap.com/static/img/coins/128x128/1958.png",
11
- decimalPoints: 0,
12
- },
13
- rKGeN: {
14
- name: "T Coin",
15
- logo: "https://s2.coinmarketcap.com/static/img/coins/128x128/32196.png",
16
- decimalPoints: 2,
17
- },
18
8
  },
19
9
  showHeader: false,
20
10
  kStoreLogo: undefined,
package/dist/index.d.ts CHANGED
@@ -3,9 +3,10 @@ type Currency = {
3
3
  logo: string;
4
4
  decimalPoints: number;
5
5
  };
6
- type CurrencyNames = "K-Cash" | "K-Points" | "rKGeN";
6
+ type CurrencyNames = "K-Cash";
7
+ type OptionalCurrencyNames = "K-Points" | "rKGeN" | "times_point";
7
8
  type Config = {
8
- currency: Record<CurrencyNames, Currency>;
9
+ currency: Record<CurrencyNames, Currency> & Partial<Record<OptionalCurrencyNames, Currency>>;
9
10
  showHeader: boolean;
10
11
  tenantId: string | undefined;
11
12
  fontLink: string | undefined;
@@ -17,6 +18,10 @@ type Config = {
17
18
  spinWheel?: {
18
19
  hideBgIconColor?: boolean;
19
20
  };
21
+ faqData?: {
22
+ question: string;
23
+ answer: string;
24
+ }[];
20
25
  };
21
26
  };
22
27
  declare const LOYALTY_PROTOCOL_CONFIG: Record<string, Config>;
@@ -5,12 +5,7 @@ export declare const TIME_NOW_CONFIG: {
5
5
  logo: string;
6
6
  decimalPoints: number;
7
7
  };
8
- "K-Points": {
9
- name: string;
10
- logo: string;
11
- decimalPoints: number;
12
- };
13
- rKGeN: {
8
+ times_point: {
14
9
  name: string;
15
10
  logo: string;
16
11
  decimalPoints: number;
@@ -27,5 +22,12 @@ export declare const TIME_NOW_CONFIG: {
27
22
  spinWheel: {
28
23
  hideBgIconColor: boolean;
29
24
  };
25
+ faqData: {
26
+ question: string;
27
+ answer: string;
28
+ }[];
29
+ };
30
+ loyaltyDashboard: {
31
+ loyaltyCurrency: string;
30
32
  };
31
33
  };
@@ -5,16 +5,11 @@ export const TIME_NOW_CONFIG = {
5
5
  logo: "https://pre-prod-admin-bucket.indi.gg/website-images/timesCash.png",
6
6
  decimalPoints: 0,
7
7
  },
8
- "K-Points": {
8
+ times_point: {
9
9
  name: "Coins",
10
10
  logo: "https://pre-prod-admin-bucket.indi.gg/website-images/timesCoin.png",
11
11
  decimalPoints: 0,
12
12
  },
13
- rKGeN: {
14
- name: "",
15
- logo: "",
16
- decimalPoints: 2,
17
- },
18
13
  },
19
14
  showHeader: true,
20
15
  kStoreLogo: "https://pre-prod-admin-bucket.indi.gg/website-images/timesKstoreLogo.png",
@@ -27,5 +22,66 @@ export const TIME_NOW_CONFIG = {
27
22
  spinWheel: {
28
23
  hideBgIconColor: true,
29
24
  },
25
+ faqData: [
26
+ {
27
+ question: "What is Spin & Win?",
28
+ answer: "Spin & Win is a fun, chance-based feature that lets you convert your Coins into Times Cash using Spinwheel or Slots games. Each attempt gives you a chance to win Times Cash, Coins or maybe just try again next time.",
29
+ },
30
+ {
31
+ question: "How do I participate in Spinwheel or Slots?",
32
+ answer: "Choose either Spinwheel or Slots, spend a small number of Coins to participate, and receive an outcome — which could be more Coins, Times Cash, or a 'Try Again'.",
33
+ },
34
+ {
35
+ question: "What outcomes can I get from the games?",
36
+ answer: "The outcome is random and varies by game and participation. Possible outcomes: 'Try Again' (no win this round), Coins (bonus back), or Times Cash (your reward!).",
37
+ },
38
+ {
39
+ question: "How much does each participation cost?",
40
+ answer: "Each spin or slot participation costs a fixed amount of Coins, typically between 100 and 10000 Coins. You need to select the desired amount before confirming participation.",
41
+ },
42
+ {
43
+ question: "Can I win more than I spend?",
44
+ answer: "Yes! Depending on the outcome, you can win more Coins or rKGEN Token than you spent.",
45
+ },
46
+ {
47
+ question: "What happens when I get 'Try Again'?",
48
+ answer: "'Try Again' means you didn't win anything in that round. You can participate again by spending more Coins.",
49
+ },
50
+ {
51
+ question: "Is there a limit to how many times I can participate?",
52
+ answer: "The limit is your Coins balance. If you run out of Coins, you will need to earn more to participate again.",
53
+ },
54
+ {
55
+ question: "How are the outcomes decided?",
56
+ answer: "Outcomes are decided using a fair and randomized chance algorithm, similar to other gamified experiences.",
57
+ },
58
+ {
59
+ question: "Do I need a wallet to receive Times Cash?",
60
+ answer: "No, Times Cash will go directly to your Wallet.",
61
+ },
62
+ {
63
+ question: "Can I track my game history and rewards?",
64
+ answer: "Yes, your participation history and rewards (Coins spent, outcomes, tokens received) will be available in the rKade history section.",
65
+ },
66
+ {
67
+ question: "Are the tokens I win usable or tradable?",
68
+ answer: "Times Cash received through rKade are the same as Platform Tokens earned via Faridrop Campaign. You can use or trade them with $KGEN (in the future) based on platform rules.",
69
+ },
70
+ {
71
+ question: "What if my Coins aren’t deducted or I don’t receive tokens?",
72
+ answer: "If you experience an error, please contact support with your rKade participation history and wallet address. We'll help resolve it promptly.",
73
+ },
74
+ {
75
+ question: "Is rKade available on all devices?",
76
+ answer: "rKade is supported on both web and mobile platforms. Make sure you're using the latest app version.",
77
+ },
78
+ {
79
+ question: "Is this gambling or does it cost real money?",
80
+ answer: "No. rKade operates entirely on virtual Coins, which you earn through your activity on the KGeN platform. No real money is required, involved, or accepted at any stage. All interactions within rKade are purely for engagement and entertainment. There is no monetary risk, no cash deposits, and no cash winnings. Coins are virtual points meant solely for rewarding user participation.",
81
+ },
82
+ ],
83
+ },
84
+ loyaltyDashboard: {
85
+ loyaltyCurrency: "times_point",
30
86
  },
31
87
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loyalty-protocol",
3
- "version": "1.4.6",
3
+ "version": "2.0.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "exports": {