loyalty-protocol 2.1.0 → 2.1.2

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 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 c={};r(c,{HT_CONFIG:()=>y});var y,m=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}=(m(),d(c)),{TIME_NOW_CONFIG:b}=(p(),d(u));window.LOYALTY_PROTOCOL_CONFIG={"ht-kstore-india":f,"times-now-kstore-india":b};
1
+ var a=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var s=(i,e)=>()=>(i&&(e=i(i=0)),e);var r=(i,e)=>{for(var o in e)a(i,o,{get:e[o],enumerable:!0})},w=(i,e,o,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of l(e))!g.call(i,n)&&n!==o&&a(i,n,{get:()=>e[n],enumerable:!(t=p(e,n))||t.enumerable});return i};var c=i=>w(a({},"__esModule",{value:!0}),i);var d={};r(d,{HT_CONFIG:()=>y});var y,m=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,h=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 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?",answer:"Choose either Spinwheel, spend a small number of Coins to participate, and receive an outcome \u2014 which could be more coins, Times Cash, or a \u201CTry Again\u201D."},{question:"What outcomes can I get from the games?",answer:{text:"The outcome is random and varies by game and participation.",list:["\u201CTry Again\u201D (no win this round)","Coins (bonus back)","Times Cash (your reward!)"]}},{question:"How much does each participant cost?",answer:"Each spin participant costs a fixed amount of Coins. This can vary from 100 to 10000 Coins. You need to select the desired amount before you confirm the participation."},{question:"Can I win more than I spend?",answer:"Yes! Depending on the outcome, you can win more coins."},{question:"What happens when I get \u201CTry Again\u201D?",answer:"\u201CTry Again\u201D means you didn\u2019t 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 rKade 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, coins received) will be available in the 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 coins?",answer:"If you experience an error, please contact support - timesloyalty.program@timesgroup.com"}]},loyaltyDashboard:{loyaltyCurrency:"times_point"}}});var{HT_CONFIG:f}=(m(),c(d)),{TIME_NOW_CONFIG:I}=(h(),c(u));window.LOYALTY_PROTOCOL_CONFIG={"ht-kstore-india":f,"times-now-kstore-india":I};
package/dist/index.d.ts CHANGED
@@ -20,7 +20,10 @@ export type Config = {
20
20
  };
21
21
  faqData?: {
22
22
  question: string;
23
- answer: string;
23
+ answer: string | {
24
+ text: string;
25
+ list: string[];
26
+ };
24
27
  }[];
25
28
  };
26
29
  loyaltyDashboard?: {
@@ -22,10 +22,16 @@ export declare const TIME_NOW_CONFIG: {
22
22
  spinWheel: {
23
23
  hideBgIconColor: boolean;
24
24
  };
25
- faqData: {
25
+ faqData: ({
26
26
  question: string;
27
27
  answer: string;
28
- }[];
28
+ } | {
29
+ question: string;
30
+ answer: {
31
+ text: string;
32
+ list: string[];
33
+ };
34
+ })[];
29
35
  };
30
36
  loyaltyDashboard: {
31
37
  loyaltyCurrency: "times_point";
@@ -25,31 +25,38 @@ export const TIME_NOW_CONFIG = {
25
25
  faqData: [
26
26
  {
27
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.",
28
+ answer: "Spin & Win is a fun, chance-based feature that lets you convert your Coins into Times Cash using Spinwheel games. Each attempt gives you a chance to win Times Cash, Coins or maybe just try again next time.",
29
29
  },
30
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'.",
31
+ question: "How do I participate in Spinwheel?",
32
+ answer: "Choose either Spinwheel, spend a small number of Coins to participate, and receive an outcome — which could be more coins, Times Cash, or a Try Again”.",
33
33
  },
34
34
  {
35
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!).",
36
+ answer: {
37
+ text: "The outcome is random and varies by game and participation.",
38
+ list: [
39
+ "“Try Again” (no win this round)",
40
+ "Coins (bonus back)",
41
+ "Times Cash (your reward!)",
42
+ ],
43
+ },
37
44
  },
38
45
  {
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.",
46
+ question: "How much does each participant cost?",
47
+ answer: "Each spin participant costs a fixed amount of Coins. This can vary from 100 to 10000 Coins. You need to select the desired amount before you confirm the participation.",
41
48
  },
42
49
  {
43
50
  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.",
51
+ answer: "Yes! Depending on the outcome, you can win more coins.",
45
52
  },
46
53
  {
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.",
54
+ question: "What happens when I get Try Again”?",
55
+ answer: "Try Again means you didnt win anything in that round. You can participate again by spending more coins.",
49
56
  },
50
57
  {
51
58
  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.",
59
+ answer: "The limit is your Coins balance. If you run out of Coins, you will need to earn more to participate rKade again.",
53
60
  },
54
61
  {
55
62
  question: "How are the outcomes decided?",
@@ -61,23 +68,15 @@ export const TIME_NOW_CONFIG = {
61
68
  },
62
69
  {
63
70
  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.",
71
+ answer: "Yes, your participation history and rewards (Coins spent, outcomes, coins received) will be available in the history section.",
65
72
  },
66
73
  {
67
74
  question: "Are the tokens I win usable or tradable?",
68
75
  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
76
  },
70
77
  {
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.",
78
+ question: "What if my Coins aren’t deducted or I don’t receive coins?",
79
+ answer: "If you experience an error, please contact support - timesloyalty.program@timesgroup.com",
81
80
  },
82
81
  ],
83
82
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loyalty-protocol",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "exports": {