ouisys-engine 2.1.24 → 2.1.25

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/api/index.js CHANGED
@@ -101,7 +101,7 @@ var MockTallyman = {
101
101
  return _context3.abrupt("return", {
102
102
  success: true,
103
103
  rockman_id: "000",
104
- product_url: "https://www.yahoo.com/",
104
+ product_url: "/mock-product-url",
105
105
  async: false
106
106
  });
107
107
 
@@ -130,7 +130,7 @@ var MockTallyman = {
130
130
  return _context4.abrupt("return", {
131
131
  success: true,
132
132
  rockman_id: "000",
133
- product_url: "https://www.yahoo.com/",
133
+ product_url: "/mock-product-url",
134
134
  msisdn: "000"
135
135
  });
136
136
 
@@ -159,7 +159,7 @@ var MockTallyman = {
159
159
  return _context5.abrupt("return", {
160
160
  success: true,
161
161
  rockman_id: "000",
162
- product_url: "https://www.yahoo.com/",
162
+ product_url: "/mock-product-url",
163
163
  msisdn: "000"
164
164
  });
165
165
 
@@ -188,7 +188,7 @@ var MockTallyman = {
188
188
  return _context6.abrupt("return", {
189
189
  success: true,
190
190
  rockman_id: "000",
191
- redirect_url: "https://www.yahoo.com/"
191
+ redirect_url: "/mock-product-url"
192
192
  });
193
193
 
194
194
  case 3:
@@ -169,7 +169,7 @@ var mockedMSISDNEntrySuccess = {
169
169
  currentState: {
170
170
  type: "MSISDNEntry",
171
171
  result: RDS.Success({
172
- href: 'https://www.yahoo.com/'
172
+ href: '/mock-product-url'
173
173
  })
174
174
  }
175
175
  };
@@ -352,7 +352,7 @@ var mockedRedirectUrlSuccessState = {
352
352
  type: "GET_REDIRECT_URL",
353
353
  //@ts-ignore
354
354
  result: RDS.Success({
355
- redirectUrl: 'https://www.yahoo.com/'
355
+ redirectUrl: '/mock-product-url'
356
356
  })
357
357
  }
358
358
  };
@@ -516,7 +516,7 @@ var mockedCompletedState = {
516
516
  currentState: {
517
517
  type: "PINEntry",
518
518
  result: RDS.Success({
519
- finalUrl: "https://www.yahoo.com/"
519
+ finalUrl: "/mock-product-url"
520
520
  }),
521
521
  data: {
522
522
  actualPIN: "",
@@ -570,7 +570,7 @@ var subscribe = /*#__PURE__*/function () {
570
570
  while (1) {
571
571
  switch (_context3.prev = _context3.next) {
572
572
  case 0:
573
- return _context3.abrupt("return", "www.yahoo.com");
573
+ return _context3.abrupt("return", "/mock-product-url");
574
574
 
575
575
  case 1:
576
576
  case "end":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ouisys-engine",
3
- "version": "2.1.24",
3
+ "version": "2.1.25",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "directories": "dist dev-tools",
package/src/api/index.ts CHANGED
@@ -59,7 +59,7 @@ export const MockTallyman:ITallyman = {
59
59
  return {
60
60
  success: true,
61
61
  rockman_id: "000",
62
- product_url: "https://www.yahoo.com/",
62
+ product_url: "/mock-product-url",
63
63
  async: false
64
64
  }
65
65
  },
@@ -69,7 +69,7 @@ export const MockTallyman:ITallyman = {
69
69
  return {
70
70
  success: true,
71
71
  rockman_id: "000",
72
- product_url: "https://www.yahoo.com/",
72
+ product_url: "/mock-product-url",
73
73
  msisdn:"000"
74
74
  }
75
75
  },
@@ -79,7 +79,7 @@ export const MockTallyman:ITallyman = {
79
79
  return {
80
80
  success: true,
81
81
  rockman_id: "000",
82
- product_url: "https://www.yahoo.com/",
82
+ product_url: "/mock-product-url",
83
83
  msisdn:"000"
84
84
  }
85
85
  },
@@ -89,7 +89,7 @@ export const MockTallyman:ITallyman = {
89
89
  return {
90
90
  success: true,
91
91
  rockman_id: "000",
92
- redirect_url: "https://www.yahoo.com/"
92
+ redirect_url: "/mock-product-url"
93
93
  }
94
94
  },
95
95
  triggerMessage:async(host:string, slug:string, country:string, msisdn:string, device:string, offer:number, rockmanId:string, search:string, extraParamsQs:string): Promise<IMoMSISDNSubmissionResult> =>{
@@ -39,7 +39,7 @@ export const mockedMSISDNEntrySuccess : IMoRedirFlowReducerState = {
39
39
  currentState:{
40
40
  type: "MSISDNEntry",
41
41
  result: RDS.Success<MSISDNEntryFailure, MSISDNEntrySuccess>({
42
- href: 'https://www.yahoo.com/'
42
+ href: '/mock-product-url'
43
43
  })
44
44
  }
45
45
  }
@@ -137,7 +137,7 @@ export const mockedRedirectUrlSuccessState : IOneClickFlowReducerState = {
137
137
  currentState:{
138
138
  type: "GET_REDIRECT_URL",
139
139
  //@ts-ignore
140
- result: RDS.Success<IGETREDIRECTURLFailure, IGETREDIRECTURLSuccess>({redirectUrl: 'https://www.yahoo.com/'})
140
+ result: RDS.Success<IGETREDIRECTURLFailure, IGETREDIRECTURLSuccess>({redirectUrl: '/mock-product-url'})
141
141
  }
142
142
  }
143
143
 
@@ -218,7 +218,7 @@ export const mockedPINState : IPinFlowReducerState = {
218
218
  export const mockedCompletedState : IPinFlowReducerState = {
219
219
  currentState:{
220
220
  type: "PINEntry",
221
- result: RDS.Success<PINEntryFailure, PINEntrySuccess>({finalUrl:"https://www.yahoo.com/"}),
221
+ result: RDS.Success<PINEntryFailure, PINEntrySuccess>({finalUrl:"/mock-product-url"}),
222
222
  data:{
223
223
  actualPIN: "",
224
224
  nextAction: "submitPinAction",
@@ -260,7 +260,7 @@ export const subscribe:(url:string)=>Promise<string> = async(url:string)=>{
260
260
  // subscribeError['type'] = "SubscriptionError";
261
261
  // throw subscribeError
262
262
  // }else{
263
- return "www.yahoo.com"
263
+ return "/mock-product-url"
264
264
  //}
265
265
 
266
266
  }