ouisys-engine 5.1.53 → 5.1.54

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.
Files changed (36) hide show
  1. package/dist/moFlow.js +1 -1
  2. package/dist/{normaliseErrorCode-CseFd8jz.js → normaliseErrorCode-B5pTaQYr.js} +4 -2
  3. package/dist/normaliseErrorCode-B5pTaQYr.js.map +1 -0
  4. package/dist/oneClickFlow.js +1 -1
  5. package/dist/pinFlow.js +1 -1
  6. package/dist/src/flows/click2smsFlow/hooks/useClick2smsFlowState.d.ts.map +1 -1
  7. package/dist/src/flows/click2smsFlow/hooks/useKeyWordShortCode.d.ts.map +1 -1
  8. package/dist/src/flows/creditCardFlow/hooks/useCreditCardFlowState.d.ts.map +1 -1
  9. package/dist/src/flows/moFlow/hooks/useMoFlowState.d.ts.map +1 -1
  10. package/dist/src/flows/moRedirFlow/hooks/useMoRedirFlowState.d.ts.map +1 -1
  11. package/dist/src/flows/oneClickFlow/hooks/useOneClickFlowState.d.ts.map +1 -1
  12. package/dist/src/flows/pinFlow/hooks/usePinFlowState.d.ts.map +1 -1
  13. package/dist/src/flows/strategy/hooks/useStrategyState.d.ts.map +1 -1
  14. package/dist/src/flows/strategy/mocks/index.d.ts.map +1 -1
  15. package/dist/src/flows/strategy/strategies/askMobileNumber.d.ts.map +1 -1
  16. package/dist/src/flows/strategy/strategies/askOperator.d.ts.map +1 -1
  17. package/dist/src/flows/strategy/strategies/callRedirectApi.d.ts.map +1 -1
  18. package/dist/src/flows/strategy/strategies/detectOperatorByIp.d.ts.map +1 -1
  19. package/dist/src/flows/strategy/strategies/headerEnrichment.d.ts.map +1 -1
  20. package/dist/src/flows/strategy/strategies/injectHeaderEnrichmentScript.d.ts.map +1 -1
  21. package/dist/src/flows/ussdFlow/hooks/useUssdFlowState.d.ts.map +1 -1
  22. package/dist/src/utilities/normaliseErrorCode.d.ts +1 -1
  23. package/dist/src/utilities/normaliseErrorCode.d.ts.map +1 -1
  24. package/dist/types/{MoTypes-BPi6junu.d.ts → MoTypes--pzEGApc.d.ts} +1 -1
  25. package/dist/types/{PinTypes-DimZx7au.d.ts → PinTypes-C9NSulzE.d.ts} +1 -1
  26. package/dist/types/{StrategyTypes-Du-bhpgL.d.ts → StrategyTypes-DkyJdkwb.d.ts} +3 -3
  27. package/dist/types/click2smsFlow.d.ts +4 -4
  28. package/dist/types/moFlow.d.ts +3 -3
  29. package/dist/types/normaliseErrorCode-BYUlfXX0.d.ts +3 -0
  30. package/dist/types/oneClickFlow.d.ts +5 -5
  31. package/dist/types/pinFlow.d.ts +3 -3
  32. package/dist/types/searchToObject.d.ts +4 -4
  33. package/dist/types/strategy.d.ts +5 -5
  34. package/package.json +1 -1
  35. package/dist/normaliseErrorCode-CseFd8jz.js.map +0 -1
  36. package/dist/types/normaliseErrorCode-DY03EaiP.d.ts +0 -3
package/dist/moFlow.js CHANGED
@@ -2,7 +2,7 @@ import { __awaiter, __generator, __read, __assign } from 'tslib';
2
2
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
3
3
  import { S as Success, N as NothingYet, L as Loading, F as Failure } from './RemoteDataState-CwHLI23e.js';
4
4
  import { h as handleResolveRedirect } from './handleResolveRedirect-5Hkm5YXF.js';
5
- import { n as normaliseErrorCode, r as redirectErrorTypes, g as getErrorCode } from './normaliseErrorCode-CseFd8jz.js';
5
+ import { n as normaliseErrorCode, r as redirectErrorTypes, g as getErrorCode } from './normaliseErrorCode-B5pTaQYr.js';
6
6
  import { searchToObject } from './searchToObject.js';
7
7
  import { s as storeMsisdn } from './storeMsisdn-ChiBh8mI.js';
8
8
  import { t as tracker } from './tracker-Dch6_0Q2.js';
@@ -13,6 +13,7 @@ var ERROR_CODE_MAP = {
13
13
  '24': 'PinGenerationError',
14
14
  '25': 'PinAlreadyUsed',
15
15
  '31': 'InactiveOperator',
16
+ '30': 'UnsportedFlow',
16
17
  '32': 'InvalidMSISDN',
17
18
  '33': 'InvalidSubscriptionId',
18
19
  '34': 'NotEligibleMsisdn',
@@ -39,7 +40,8 @@ var redirectErrorTypes = [
39
40
  'BlacklistedMsisdn',
40
41
  'VasBlocked',
41
42
  'NotEligibleMsisdn',
42
- 'UnspecifiedError'
43
+ 'UnspecifiedError',
44
+ 'UnsportedFlow'
43
45
  ];
44
46
  // type ErrorType = typeof ERROR_CODE_MAP[ErrorCode];
45
47
  function getErrorCode(name) {
@@ -51,4 +53,4 @@ function getErrorCode(name) {
51
53
  }
52
54
 
53
55
  export { getErrorCode as g, normaliseErrorCode as n, redirectErrorTypes as r };
54
- //# sourceMappingURL=normaliseErrorCode-CseFd8jz.js.map
56
+ //# sourceMappingURL=normaliseErrorCode-B5pTaQYr.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normaliseErrorCode-B5pTaQYr.js","sources":["../../src/utilities/normaliseErrorCode.ts"],"sourcesContent":["// Define the allowed return values as a union (optional, but gives you autocomplete/validation)\nexport type ErrorType =\n | 'Success'\n | 'Pending'\n | 'AlreadySubscribed'\n | 'BlacklistedMsisdn'\n | 'DuplicatedRequest'\n | 'ExpiredPin'\n | 'InvalidPin'\n | 'PinLimitExceeded'\n | 'PinGenerationError'\n | 'PinAlreadyUsed'\n | 'InactiveOperator'\n | 'UnsportedFlow'\n | 'InvalidMSISDN'\n | 'InvalidSubscriptionId'\n | 'NotEligibleMsisdn'\n | 'ValidationIssue'\n | 'InsufficientBalance'\n | 'AntiFraudError'\n | 'VasBlocked'\n | 'AccountSuspended'\n | 'SalesCapReached'\n | 'SubscriptionApiFailure'\n | 'ReSubscriptionBlocked'\n | 'ReLeadBlocked'\n | 'UnspecifiedError'\n | 'UnexpectedState'\n | 'SomethingWentWrong'\n | 'TPayConfirmError'\n | 'UnknownError'\n | string;\n// Map of code → type\nconst ERROR_CODE_MAP: Record<string, ErrorType> = {\n '1': 'Success',\n '2': 'Pending',\n '10': 'AlreadySubscribed',\n '11': 'BlacklistedMsisdn',\n '12': 'DuplicatedRequest',\n '21': 'ExpiredPin',\n '22': 'InvalidPin',\n '23': 'PinLimitExceeded',\n '24': 'PinGenerationError',\n '25': 'PinAlreadyUsed',\n '31': 'InactiveOperator',\n '30': 'UnsportedFlow',\n '32': 'InvalidMSISDN',\n '33': 'InvalidSubscriptionId',\n '34': 'NotEligibleMsisdn',\n '35': 'ValidationIssue',\n '36': 'InsufficientBalance',\n '37': 'AntiFraudError',\n '38': 'VasBlocked',\n '39': 'AccountSuspended',\n '40': 'SalesCapReached',\n '50': 'SubscriptionApiFailure',\n '75': 'ReSubscriptionBlocked',\n '76': 'ReLeadBlocked',\n '99': 'UnspecifiedError'\n};\n\n/**\n * Normalise a raw error code string into its semantic ErrorType.\n * Falls back to 'Unknown' if the code isn’t in the map.\n */\nexport const normaliseErrorCode = (errorCode: string): ErrorType => ERROR_CODE_MAP[errorCode] ?? 'UnknownError';\n\nexport const redirectErrorTypes: ErrorType[] = [\n 'AlreadySubscribed',\n 'SalesCapReached',\n 'AntiFraudError',\n 'BlacklistedMsisdn',\n 'VasBlocked',\n 'NotEligibleMsisdn',\n 'UnspecifiedError',\n 'UnsportedFlow'\n];\n\ntype ErrorCode = keyof typeof ERROR_CODE_MAP; // \"1\" | \"2\" | … | \"99\"\n// type ErrorType = typeof ERROR_CODE_MAP[ErrorCode];\n\nexport function getErrorCode(name: ErrorType): ErrorCode | undefined {\n return Object.entries(ERROR_CODE_MAP).find(([, v]) => v === name)?.[0] as ErrorCode | undefined;\n}\n"],"names":[],"mappings":";;AAgCA;AACA,IAAM,cAAc,GAA8B;AAChD,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,IAAI,EAAE,mBAAmB;AACzB,IAAA,IAAI,EAAE,mBAAmB;AACzB,IAAA,IAAI,EAAE,mBAAmB;AACzB,IAAA,IAAI,EAAE,YAAY;AAClB,IAAA,IAAI,EAAE,YAAY;AAClB,IAAA,IAAI,EAAE,kBAAkB;AACxB,IAAA,IAAI,EAAE,oBAAoB;AAC1B,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,IAAI,EAAE,kBAAkB;AACxB,IAAA,IAAI,EAAE,eAAe;AACrB,IAAA,IAAI,EAAE,eAAe;AACrB,IAAA,IAAI,EAAE,uBAAuB;AAC7B,IAAA,IAAI,EAAE,mBAAmB;AACzB,IAAA,IAAI,EAAE,iBAAiB;AACvB,IAAA,IAAI,EAAE,qBAAqB;AAC3B,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,IAAI,EAAE,YAAY;AAClB,IAAA,IAAI,EAAE,kBAAkB;AACxB,IAAA,IAAI,EAAE,iBAAiB;AACvB,IAAA,IAAI,EAAE,wBAAwB;AAC9B,IAAA,IAAI,EAAE,uBAAuB;AAC7B,IAAA,IAAI,EAAE,eAAe;AACrB,IAAA,IAAI,EAAE,kBAAkB;CACzB,CAAC;AAEF;;;AAGG;AACU,IAAA,kBAAkB,GAAG,UAAC,SAAiB,EAAgB,EAAA,IAAA,EAAA,CAAA,CAAA,OAAA,CAAA,EAAA,GAAA,cAAc,CAAC,SAAS,CAAC,mCAAI,cAAc,CAAA,GAAC;AAEnG,IAAA,kBAAkB,GAAgB;IAC7C,mBAAmB;IACnB,iBAAiB;IACjB,gBAAgB;IAChB,mBAAmB;IACnB,YAAY;IACZ,mBAAmB;IACnB,kBAAkB;IAClB,eAAe;EACf;AAGF;AAEM,SAAU,YAAY,CAAC,IAAe,EAAA;;IAC1C,OAAO,CAAA,EAAA,GAAA,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,UAAC,EAAK,EAAA;YAAL,EAAA,GAAA,MAAA,CAAA,EAAA,EAAA,CAAA,CAAK,EAAF,CAAC,GAAA,EAAA,CAAA,CAAA,CAAA,CAAA;QAAM,OAAA,CAAC,KAAK,IAAI,CAAA;AAAV,KAAU,CAAC,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAG,CAAC,CAA0B,CAAC;AAClG;;;;"}
@@ -6,7 +6,7 @@ import { searchToObject } from './searchToObject.js';
6
6
  import { c as setStrategyExtraData, f as flowMapping } from './strategySlice-C0DPKzdB.js';
7
7
  import { b as bupperizeCountry } from './api-oPdBWsMC.js';
8
8
  import { l as loadScriptInnerHtml } from './loadScriptInnerHtml-CstJVRED.js';
9
- import { n as normaliseErrorCode } from './normaliseErrorCode-CseFd8jz.js';
9
+ import { n as normaliseErrorCode } from './normaliseErrorCode-B5pTaQYr.js';
10
10
  import { c as cleanSearchParams } from './cleanSearchParams-B2jK3H1j.js';
11
11
  import 'pacman-client';
12
12
  import 'uuid';
package/dist/pinFlow.js CHANGED
@@ -3,7 +3,7 @@ import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
3
3
  import { N as NothingYet, L as Loading, S as Success, F as Failure } from './RemoteDataState-CwHLI23e.js';
4
4
  import { i as identifyStrategy, c as setStrategyExtraData, P as PossibleTypes } from './strategySlice-C0DPKzdB.js';
5
5
  import { h as handleResolveRedirect } from './handleResolveRedirect-5Hkm5YXF.js';
6
- import { n as normaliseErrorCode, r as redirectErrorTypes, g as getErrorCode } from './normaliseErrorCode-CseFd8jz.js';
6
+ import { n as normaliseErrorCode, r as redirectErrorTypes, g as getErrorCode } from './normaliseErrorCode-B5pTaQYr.js';
7
7
  import { searchToObject } from './searchToObject.js';
8
8
  import { s as storeMsisdn } from './storeMsisdn-ChiBh8mI.js';
9
9
  import { t as tracker } from './tracker-Dch6_0Q2.js';
@@ -1 +1 @@
1
- {"version":3,"file":"useClick2smsFlowState.d.ts","sourceRoot":"","sources":["../../../../src/flows/click2smsFlow/hooks/useClick2smsFlowState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,aAAa,CAAC;AAG1D,eAAO,MAAM,qBAAqB,gBAAiB,mBAAmB,kCAGrE,CAAC"}
1
+ {"version":3,"file":"useClick2smsFlowState.d.ts","sourceRoot":"","sources":["../../../../../src/flows/click2smsFlow/hooks/useClick2smsFlowState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,aAAa,CAAC;AAG1D,eAAO,MAAM,qBAAqB,gBAAiB,mBAAmB,kCAGrE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useKeyWordShortCode.d.ts","sourceRoot":"","sources":["../../../../src/flows/click2smsFlow/hooks/useKeyWordShortCode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAGrF,eAAO,MAAM,mBAAmB,gBAAiB,mBAAmB,+BAKnE,CAAC"}
1
+ {"version":3,"file":"useKeyWordShortCode.d.ts","sourceRoot":"","sources":["../../../../../src/flows/click2smsFlow/hooks/useKeyWordShortCode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAGrF,eAAO,MAAM,mBAAmB,gBAAiB,mBAAmB,+BAKnE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useCreditCardFlowState.d.ts","sourceRoot":"","sources":["../../../../src/flows/creditCardFlow/hooks/useCreditCardFlowState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,aAAa,CAAC;AAG1D,eAAO,MAAM,sBAAsB,gBAAiB,mBAAmB,uCAGtE,CAAC"}
1
+ {"version":3,"file":"useCreditCardFlowState.d.ts","sourceRoot":"","sources":["../../../../../src/flows/creditCardFlow/hooks/useCreditCardFlowState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,aAAa,CAAC;AAG1D,eAAO,MAAM,sBAAsB,gBAAiB,mBAAmB,uCAGtE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useMoFlowState.d.ts","sourceRoot":"","sources":["../../../../src/flows/moFlow/hooks/useMoFlowState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,aAAa,CAAC;AAG1D,eAAO,MAAM,cAAc,gBAAiB,mBAAmB,kCAG9D,CAAC"}
1
+ {"version":3,"file":"useMoFlowState.d.ts","sourceRoot":"","sources":["../../../../../src/flows/moFlow/hooks/useMoFlowState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,aAAa,CAAC;AAG1D,eAAO,MAAM,cAAc,gBAAiB,mBAAmB,kCAG9D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useMoRedirFlowState.d.ts","sourceRoot":"","sources":["../../../../src/flows/moRedirFlow/hooks/useMoRedirFlowState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,aAAa,CAAC;AAG1D,eAAO,MAAM,mBAAmB,gBAAiB,mBAAmB,kCAGnE,CAAC"}
1
+ {"version":3,"file":"useMoRedirFlowState.d.ts","sourceRoot":"","sources":["../../../../../src/flows/moRedirFlow/hooks/useMoRedirFlowState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,aAAa,CAAC;AAG1D,eAAO,MAAM,mBAAmB,gBAAiB,mBAAmB,kCAGnE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useOneClickFlowState.d.ts","sourceRoot":"","sources":["../../../../src/flows/oneClickFlow/hooks/useOneClickFlowState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,aAAa,CAAC;AAG1D,eAAO,MAAM,oBAAoB,gBAAiB,mBAAmB,0CAGpE,CAAC"}
1
+ {"version":3,"file":"useOneClickFlowState.d.ts","sourceRoot":"","sources":["../../../../../src/flows/oneClickFlow/hooks/useOneClickFlowState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,aAAa,CAAC;AAG1D,eAAO,MAAM,oBAAoB,gBAAiB,mBAAmB,0CAGpE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"usePinFlowState.d.ts","sourceRoot":"","sources":["../../../../src/flows/pinFlow/hooks/usePinFlowState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,aAAa,CAAC;AAG1D,eAAO,MAAM,eAAe,gBAAiB,mBAAmB,qCAG/D,CAAC"}
1
+ {"version":3,"file":"usePinFlowState.d.ts","sourceRoot":"","sources":["../../../../../src/flows/pinFlow/hooks/usePinFlowState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,aAAa,CAAC;AAG1D,eAAO,MAAM,eAAe,gBAAiB,mBAAmB,qCAG/D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useStrategyState.d.ts","sourceRoot":"","sources":["../../../../src/flows/strategy/hooks/useStrategyState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,aAAa,CAAC;AAG1D,eAAO,MAAM,gBAAgB,gBAAiB,mBAAmB,0EAGhE,CAAC"}
1
+ {"version":3,"file":"useStrategyState.d.ts","sourceRoot":"","sources":["../../../../../src/flows/strategy/hooks/useStrategyState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,aAAa,CAAC;AAG1D,eAAO,MAAM,gBAAgB,gBAAiB,mBAAmB,0EAGhE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/flows/strategy/mocks/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;;;CAI1B,CAAC;AAGF,eAAO,MAAM,WAAW,yHAwBtB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/flows/strategy/mocks/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;;;CAI1B,CAAC;AAGF,eAAO,MAAM,WAAW,yHAwBtB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"askMobileNumber.d.ts","sourceRoot":"","sources":["../../../../src/flows/strategy/strategies/askMobileNumber.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,GAAG,MAAM,uCAAuC,CAAC;AAI7D,OAAO,EAGL,aAAa,EACb,oBAAoB,EACrB,MAAM,wCAAwC,CAAC;AAGhD,eAAO,MAAM,eAAe,QAAO,oBAGjC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;YAOjB,MAAM;YACN,MAAM;kBACA,OAAO;qEAmD1B,CAAC"}
1
+ {"version":3,"file":"askMobileNumber.d.ts","sourceRoot":"","sources":["../../../../../src/flows/strategy/strategies/askMobileNumber.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,GAAG,MAAM,uCAAuC,CAAC;AAI7D,OAAO,EAGL,aAAa,EACb,oBAAoB,EACrB,MAAM,wCAAwC,CAAC;AAGhD,eAAO,MAAM,eAAe,QAAO,oBAGjC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;YAOjB,MAAM;YACN,MAAM;kBACA,OAAO;qEAmD1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"askOperator.d.ts","sourceRoot":"","sources":["../../../../src/flows/strategy/strategies/askOperator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,GAAG,MAAM,uCAAuC,CAAC;AAE7D,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAK7F,eAAO,MAAM,WAAW,QAAO,oBAU9B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;cAMjB,MAAM;qEAiCrB,CAAC"}
1
+ {"version":3,"file":"askOperator.d.ts","sourceRoot":"","sources":["../../../../../src/flows/strategy/strategies/askOperator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,GAAG,MAAM,uCAAuC,CAAC;AAE7D,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAK7F,eAAO,MAAM,WAAW,QAAO,oBAU9B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;cAMjB,MAAM;qEAiCrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"callRedirectApi.d.ts","sourceRoot":"","sources":["../../../../src/flows/strategy/strategies/callRedirectApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,uCAAuC,CAAC;AAQ7D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;EAsFpB,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"callRedirectApi.d.ts","sourceRoot":"","sources":["../../../../../src/flows/strategy/strategies/callRedirectApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,uCAAuC,CAAC;AAQ7D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;EAsFpB,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"detectOperatorByIp.d.ts","sourceRoot":"","sources":["../../../../src/flows/strategy/strategies/detectOperatorByIp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,uCAAuC,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAQjF,QAAA,MAAM,kBAAkB,cAAqB,cAAc;;;;;;;;;;EAwD1D,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
1
+ {"version":3,"file":"detectOperatorByIp.d.ts","sourceRoot":"","sources":["../../../../../src/flows/strategy/strategies/detectOperatorByIp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,uCAAuC,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAQjF,QAAA,MAAM,kBAAkB,cAAqB,cAAc;;;;;;;;;;EAwD1D,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"headerEnrichment.d.ts","sourceRoot":"","sources":["../../../../src/flows/strategy/strategies/headerEnrichment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,GAAG,MAAM,uCAAuC,CAAC;AAgC7D,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqH3B,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
1
+ {"version":3,"file":"headerEnrichment.d.ts","sourceRoot":"","sources":["../../../../../src/flows/strategy/strategies/headerEnrichment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,GAAG,MAAM,uCAAuC,CAAC;AAgC7D,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqH3B,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"injectHeaderEnrichmentScript.d.ts","sourceRoot":"","sources":["../../../../src/flows/strategy/strategies/injectHeaderEnrichmentScript.ts"],"names":[],"mappings":"AA+BA;;;;;GAKG;AACH,QAAA,MAAM,4BAA4B;YAAgC,MAAM;sBA8HvE,CAAC;AAuCF,OAAO,EAAE,4BAA4B,EAAE,CAAC"}
1
+ {"version":3,"file":"injectHeaderEnrichmentScript.d.ts","sourceRoot":"","sources":["../../../../../src/flows/strategy/strategies/injectHeaderEnrichmentScript.ts"],"names":[],"mappings":"AA+BA;;;;;GAKG;AACH,QAAA,MAAM,4BAA4B;YAAgC,MAAM;sBA8HvE,CAAC;AAuCF,OAAO,EAAE,4BAA4B,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useUssdFlowState.d.ts","sourceRoot":"","sources":["../../../../src/flows/ussdFlow/hooks/useUssdFlowState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,aAAa,CAAC;AAG1D,eAAO,MAAM,gBAAgB,gBAAiB,mBAAmB,kCAGhE,CAAC"}
1
+ {"version":3,"file":"useUssdFlowState.d.ts","sourceRoot":"","sources":["../../../../../src/flows/ussdFlow/hooks/useUssdFlowState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,aAAa,CAAC;AAG1D,eAAO,MAAM,gBAAgB,gBAAiB,mBAAmB,kCAGhE,CAAC"}
@@ -1,4 +1,4 @@
1
- export declare type ErrorType = 'Success' | 'Pending' | 'AlreadySubscribed' | 'BlacklistedMsisdn' | 'DuplicatedRequest' | 'ExpiredPin' | 'InvalidPin' | 'PinLimitExceeded' | 'PinGenerationError' | 'PinAlreadyUsed' | 'InactiveOperator' | 'InvalidMSISDN' | 'InvalidSubscriptionId' | 'NotEligibleMsisdn' | 'ValidationIssue' | 'InsufficientBalance' | 'AntiFraudError' | 'VasBlocked' | 'AccountSuspended' | 'SalesCapReached' | 'SubscriptionApiFailure' | 'ReSubscriptionBlocked' | 'ReLeadBlocked' | 'UnspecifiedError' | 'UnexpectedState' | 'SomethingWentWrong' | 'TPayConfirmError' | 'UnknownError' | string;
1
+ export declare type ErrorType = 'Success' | 'Pending' | 'AlreadySubscribed' | 'BlacklistedMsisdn' | 'DuplicatedRequest' | 'ExpiredPin' | 'InvalidPin' | 'PinLimitExceeded' | 'PinGenerationError' | 'PinAlreadyUsed' | 'InactiveOperator' | 'UnsportedFlow' | 'InvalidMSISDN' | 'InvalidSubscriptionId' | 'NotEligibleMsisdn' | 'ValidationIssue' | 'InsufficientBalance' | 'AntiFraudError' | 'VasBlocked' | 'AccountSuspended' | 'SalesCapReached' | 'SubscriptionApiFailure' | 'ReSubscriptionBlocked' | 'ReLeadBlocked' | 'UnspecifiedError' | 'UnexpectedState' | 'SomethingWentWrong' | 'TPayConfirmError' | 'UnknownError' | string;
2
2
  declare const ERROR_CODE_MAP: Record<string, ErrorType>;
3
3
  /**
4
4
  * Normalise a raw error code string into its semantic ErrorType.
@@ -1 +1 @@
1
- {"version":3,"file":"normaliseErrorCode.d.ts","sourceRoot":"","sources":["../../../src/utilities/normaliseErrorCode.ts"],"names":[],"mappings":"AACA,oBAAY,SAAS,GACjB,SAAS,GACT,SAAS,GACT,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,YAAY,GACZ,YAAY,GACZ,kBAAkB,GAClB,oBAAoB,GACpB,gBAAgB,GAChB,kBAAkB,GAClB,eAAe,GACf,uBAAuB,GACvB,mBAAmB,GACnB,iBAAiB,GACjB,qBAAqB,GACrB,gBAAgB,GAChB,YAAY,GACZ,kBAAkB,GAClB,iBAAiB,GACjB,wBAAwB,GACxB,uBAAuB,GACvB,eAAe,GACf,kBAAkB,GAClB,iBAAiB,GACjB,oBAAoB,GACpB,kBAAkB,GAClB,cAAc,GACd,MAAM,CAAC;AAEX,QAAA,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAyB7C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,cAAe,MAAM,KAAG,SAAwD,CAAC;AAEhH,eAAO,MAAM,kBAAkB,EAAE,SAAS,EAQzC,CAAC;AAEF,aAAK,SAAS,GAAG,MAAM,OAAO,cAAc,CAAC;AAG7C,wBAAgB,YAAY,CAAC,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAEnE"}
1
+ {"version":3,"file":"normaliseErrorCode.d.ts","sourceRoot":"","sources":["../../../src/utilities/normaliseErrorCode.ts"],"names":[],"mappings":"AACA,oBAAY,SAAS,GACjB,SAAS,GACT,SAAS,GACT,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,YAAY,GACZ,YAAY,GACZ,kBAAkB,GAClB,oBAAoB,GACpB,gBAAgB,GAChB,kBAAkB,GAClB,eAAe,GACf,eAAe,GACf,uBAAuB,GACvB,mBAAmB,GACnB,iBAAiB,GACjB,qBAAqB,GACrB,gBAAgB,GAChB,YAAY,GACZ,kBAAkB,GAClB,iBAAiB,GACjB,wBAAwB,GACxB,uBAAuB,GACvB,eAAe,GACf,kBAAkB,GAClB,iBAAiB,GACjB,oBAAoB,GACpB,kBAAkB,GAClB,cAAc,GACd,MAAM,CAAC;AAEX,QAAA,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CA0B7C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,cAAe,MAAM,KAAG,SAAwD,CAAC;AAEhH,eAAO,MAAM,kBAAkB,EAAE,SAAS,EASzC,CAAC;AAEF,aAAK,SAAS,GAAG,MAAM,OAAO,cAAc,CAAC;AAG7C,wBAAgB,YAAY,CAAC,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAEnE"}
@@ -1,5 +1,5 @@
1
1
  import { R as RemoteDataState } from './RemoteDataState-D1aFrz8W.js';
2
- import { E as ErrorType } from './normaliseErrorCode-DY03EaiP.js';
2
+ import { E as ErrorType } from './normaliseErrorCode-BYUlfXX0.js';
3
3
 
4
4
  interface MSISDNEntryState {
5
5
  type: 'MSISDNEntry';
@@ -1,5 +1,5 @@
1
1
  import { R as RemoteDataState } from './RemoteDataState-D1aFrz8W.js';
2
- import { E as ErrorType } from './normaliseErrorCode-DY03EaiP.js';
2
+ import { E as ErrorType } from './normaliseErrorCode-BYUlfXX0.js';
3
3
 
4
4
  interface ExtraData {
5
5
  actualPIN: string | null;
@@ -3,10 +3,10 @@ import { I as IStrategyNames } from './Strategy-Bk7EyVl_.js';
3
3
  import { C as Click2smsFlowState } from './Click2smsTypes-BbhnGxiA.js';
4
4
  import { C as CreditCardFlowState } from './CreditCardTypes-BvAmIdgA.js';
5
5
  import { d as MoRedirFlowState } from './MoRedirTypes-CpTYupHS.js';
6
- import { d as MoFlowState } from './MoTypes-BPi6junu.js';
6
+ import { d as MoFlowState } from './MoTypes--pzEGApc.js';
7
7
  import { I as IHash$1 } from './IHash-0OgZ_1ij.js';
8
- import { E as ErrorType } from './normaliseErrorCode-DY03EaiP.js';
9
- import { f as PinFlowState } from './PinTypes-DimZx7au.js';
8
+ import { E as ErrorType } from './normaliseErrorCode-BYUlfXX0.js';
9
+ import { f as PinFlowState } from './PinTypes-C9NSulzE.js';
10
10
  import { c as UssdFlowState } from './UssdTypes-BSsSF8E9.js';
11
11
 
12
12
  interface GETREDIRECTUrlState {
@@ -3,16 +3,16 @@ export { h as ICheckSubscriptionResult, f as IClick2smsConfig, i as IFetchResult
3
3
  import * as redux from 'redux';
4
4
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
5
5
  import * as _reduxjs_toolkit_dist_createAsyncThunk from '@reduxjs/toolkit/dist/createAsyncThunk';
6
- import { i as IHash } from './StrategyTypes-Du-bhpgL.js';
6
+ import { i as IHash } from './StrategyTypes-DkyJdkwb.js';
7
7
  import { useSelector } from 'react-redux';
8
8
  import { R as RemoteDataState } from './RemoteDataState-D1aFrz8W.js';
9
9
  import './Strategy-Bk7EyVl_.js';
10
10
  import './CreditCardTypes-BvAmIdgA.js';
11
11
  import './MoRedirTypes-CpTYupHS.js';
12
- import './MoTypes-BPi6junu.js';
13
- import './normaliseErrorCode-DY03EaiP.js';
12
+ import './MoTypes--pzEGApc.js';
13
+ import './normaliseErrorCode-BYUlfXX0.js';
14
14
  import './IHash-0OgZ_1ij.js';
15
- import './PinTypes-DimZx7au.js';
15
+ import './PinTypes-C9NSulzE.js';
16
16
  import './UssdTypes-BSsSF8E9.js';
17
17
 
18
18
  interface LOAD_OC2SMSArgs {
@@ -1,11 +1,11 @@
1
- import { M as MSISDNEntryState, a as MSISDNEntryFailure, b as MSISDNEntrySuccess, c as MoFlowCurrentState } from './MoTypes-BPi6junu.js';
2
- export { h as IGoogleReCaptcha, I as IKeywordShortcode, f as IMSISDNSubmissionResult, g as IMockMoFlowStates, e as MSISDNEntryErrorTypes, d as MoFlowState } from './MoTypes-BPi6junu.js';
1
+ import { M as MSISDNEntryState, a as MSISDNEntryFailure, b as MSISDNEntrySuccess, c as MoFlowCurrentState } from './MoTypes--pzEGApc.js';
2
+ export { h as IGoogleReCaptcha, I as IKeywordShortcode, f as IMSISDNSubmissionResult, g as IMockMoFlowStates, e as MSISDNEntryErrorTypes, d as MoFlowState } from './MoTypes--pzEGApc.js';
3
3
  import { useSelector } from 'react-redux';
4
4
  import { R as RemoteDataState } from './RemoteDataState-D1aFrz8W.js';
5
5
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
6
6
  import * as redux from 'redux';
7
7
  import { I as IHash } from './IHash-0OgZ_1ij.js';
8
- import './normaliseErrorCode-DY03EaiP.js';
8
+ import './normaliseErrorCode-BYUlfXX0.js';
9
9
 
10
10
  declare const useMoFlowState: (useSelector: typeof useSelector) => MSISDNEntryState;
11
11
 
@@ -0,0 +1,3 @@
1
+ declare type ErrorType = 'Success' | 'Pending' | 'AlreadySubscribed' | 'BlacklistedMsisdn' | 'DuplicatedRequest' | 'ExpiredPin' | 'InvalidPin' | 'PinLimitExceeded' | 'PinGenerationError' | 'PinAlreadyUsed' | 'InactiveOperator' | 'UnsportedFlow' | 'InvalidMSISDN' | 'InvalidSubscriptionId' | 'NotEligibleMsisdn' | 'ValidationIssue' | 'InsufficientBalance' | 'AntiFraudError' | 'VasBlocked' | 'AccountSuspended' | 'SalesCapReached' | 'SubscriptionApiFailure' | 'ReSubscriptionBlocked' | 'ReLeadBlocked' | 'UnspecifiedError' | 'UnexpectedState' | 'SomethingWentWrong' | 'TPayConfirmError' | 'UnknownError' | string;
2
+
3
+ export type { ErrorType as E };
@@ -1,5 +1,5 @@
1
- import { V as OneClickFlowCurrentState, W as IGETREDIRECTURLFailure, X as IGETREDIRECTURLSuccess, Y as SubscribeFailure, Z as SubscribeSuccess, _ as GETREDIRECTUrlState, $ as AJAXSUBSCRIBEState, a0 as OneClickFlowState } from './StrategyTypes-Du-bhpgL.js';
2
- export { a4 as IHEResult, a3 as IIDentifyUserResult, a2 as ILinkExtraParams, a6 as IMockOneClickFlowStates, a7 as ISubscribeParams, a5 as ISubscribeResult, a1 as SubscribeUserErrorTypes } from './StrategyTypes-Du-bhpgL.js';
1
+ import { V as OneClickFlowCurrentState, W as IGETREDIRECTURLFailure, X as IGETREDIRECTURLSuccess, Y as SubscribeFailure, Z as SubscribeSuccess, _ as GETREDIRECTUrlState, $ as AJAXSUBSCRIBEState, a0 as OneClickFlowState } from './StrategyTypes-DkyJdkwb.js';
2
+ export { a4 as IHEResult, a3 as IIDentifyUserResult, a2 as ILinkExtraParams, a6 as IMockOneClickFlowStates, a7 as ISubscribeParams, a5 as ISubscribeResult, a1 as SubscribeUserErrorTypes } from './StrategyTypes-DkyJdkwb.js';
3
3
  import { useSelector } from 'react-redux';
4
4
  import { R as RemoteDataState } from './RemoteDataState-D1aFrz8W.js';
5
5
  import * as redux from 'redux';
@@ -10,9 +10,9 @@ import './Strategy-Bk7EyVl_.js';
10
10
  import './Click2smsTypes-BbhnGxiA.js';
11
11
  import './CreditCardTypes-BvAmIdgA.js';
12
12
  import './MoRedirTypes-CpTYupHS.js';
13
- import './MoTypes-BPi6junu.js';
14
- import './normaliseErrorCode-DY03EaiP.js';
15
- import './PinTypes-DimZx7au.js';
13
+ import './MoTypes--pzEGApc.js';
14
+ import './normaliseErrorCode-BYUlfXX0.js';
15
+ import './PinTypes-C9NSulzE.js';
16
16
  import './UssdTypes-BSsSF8E9.js';
17
17
 
18
18
  declare const useOneClickFlowState: (useSelector: typeof useSelector) => OneClickFlowCurrentState;
@@ -1,10 +1,10 @@
1
- import { P as PinFlowCurrentState, M as MSISDNEntryFailure, a as MSISDNEntrySuccess, b as PINEntryFailure, c as PINEntrySuccess, I as IMsisdnSumbitNextData, d as MSISDNEntryState, e as PINEntryState, f as PinFlowState, g as IHash } from './PinTypes-DimZx7au.js';
2
- export { E as ExtraData, n as IBackToStartPayload, o as IConfig, p as IMSISDNSubmissionResult, s as IMcpShieldResult, t as IMockPinFlowStates, k as IMsisdnSubmitErrorPayload, j as IMsisnSubmitActionPayload, q as IPINSubmissionResult, m as IPinErrorPayload, l as IPinSubmitPayload, h as MSISDNEntryErrorTypes, r as MultiOperatorMSISDNSubmissionResult, i as PINEntryErrorTypes, S as SingleMSISDNSubmissionResult } from './PinTypes-DimZx7au.js';
1
+ import { P as PinFlowCurrentState, M as MSISDNEntryFailure, a as MSISDNEntrySuccess, b as PINEntryFailure, c as PINEntrySuccess, I as IMsisdnSumbitNextData, d as MSISDNEntryState, e as PINEntryState, f as PinFlowState, g as IHash } from './PinTypes-C9NSulzE.js';
2
+ export { E as ExtraData, n as IBackToStartPayload, o as IConfig, p as IMSISDNSubmissionResult, s as IMcpShieldResult, t as IMockPinFlowStates, k as IMsisdnSubmitErrorPayload, j as IMsisnSubmitActionPayload, q as IPINSubmissionResult, m as IPinErrorPayload, l as IPinSubmitPayload, h as MSISDNEntryErrorTypes, r as MultiOperatorMSISDNSubmissionResult, i as PINEntryErrorTypes, S as SingleMSISDNSubmissionResult } from './PinTypes-C9NSulzE.js';
3
3
  import { useSelector } from 'react-redux';
4
4
  import { R as RemoteDataState } from './RemoteDataState-D1aFrz8W.js';
5
5
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
6
6
  import * as redux from 'redux';
7
- import './normaliseErrorCode-DY03EaiP.js';
7
+ import './normaliseErrorCode-BYUlfXX0.js';
8
8
 
9
9
  declare const usePinFlowState: (useSelector: typeof useSelector) => PinFlowCurrentState;
10
10
 
@@ -1,13 +1,13 @@
1
- import { M as IMockFlowParams, K as IStrategyIDentifyUserResult } from './StrategyTypes-Du-bhpgL.js';
1
+ import { M as IMockFlowParams, K as IStrategyIDentifyUserResult } from './StrategyTypes-DkyJdkwb.js';
2
2
  import './RemoteDataState-D1aFrz8W.js';
3
3
  import './Strategy-Bk7EyVl_.js';
4
4
  import './Click2smsTypes-BbhnGxiA.js';
5
5
  import './CreditCardTypes-BvAmIdgA.js';
6
6
  import './MoRedirTypes-CpTYupHS.js';
7
- import './MoTypes-BPi6junu.js';
8
- import './normaliseErrorCode-DY03EaiP.js';
7
+ import './MoTypes--pzEGApc.js';
8
+ import './normaliseErrorCode-BYUlfXX0.js';
9
9
  import './IHash-0OgZ_1ij.js';
10
- import './PinTypes-DimZx7au.js';
10
+ import './PinTypes-C9NSulzE.js';
11
11
  import './UssdTypes-BSsSF8E9.js';
12
12
 
13
13
  declare function searchToObject(win: Window): IMockFlowParams<any> | IStrategyIDentifyUserResult | any;
@@ -1,7 +1,7 @@
1
1
  import { R as RemoteDataState } from './RemoteDataState-D1aFrz8W.js';
2
2
  export { a as RDS } from './RemoteDataState-D1aFrz8W.js';
3
- import { S as StrategyCurrentState, I as IDENTIFYMSISDNEntryFailure, a as IDENTIFYMSISDNEntrySuccess, P as PossibleTypes, C as ConfigDetails$1, b as StrategyState } from './StrategyTypes-Du-bhpgL.js';
4
- export { R as ExtraStrategyData, H as HEResult, d as IConfig, s as IDENTIFYFailure, j as IDENTIFYMSISDNEntryErrorTypes, t as IDENTIFYSuccess, p as IDENTIFY_FLOW_HESuccess, o as IDENTIFY_OPERATOR_MSISDNEntrySuccess, m as IDETECTYOPERATOBYIPFailure, n as IDETECTYOPERATOBYIPSuccess, v as IDetectOperatorByIpPayload, f as IFlow, i as IHash, D as IIdentfyFlowByIPOperatorNextAction, A as IIdentfyFlowByMsisdnNextAction, B as IIdentfyFlowByOperatorNextAction, z as IIdentifyFlowByHePayload, y as IIdentifyFlowByIpOperatorPayload, c as IIdentifyResult, F as IIdenyifyFlowByMsisdnPayload, E as IIdenyifyFlowByMsisdnSumbitNextData, G as IIdenyifyStrategyPayload, M as IMockFlowParams, L as IMockFlows, T as IMockPinFlowStates, u as IOperatorSelectFlowIdentifyPayload, w as IOperatorSelectPayload, Q as IScriptHeaderEnrichmentFailure, N as IScriptHeaderEnrichmentSuccess, h as IStrategy, J as IStrategyCurrentState, K as IStrategyIDentifyUserResult, x as ISubmitMsisdnPayload, e as ISupportedFlows, k as IdentifyFlowOptionsResult, O as OPERATORSelectFailure, q as OPERATORSelectFlowIdentifyFailure, r as OPERATORSelectFlowIdentifySuccess, l as OPERATORSelectSuccess, U as RootState, g as StrategyConfig } from './StrategyTypes-Du-bhpgL.js';
3
+ import { S as StrategyCurrentState, I as IDENTIFYMSISDNEntryFailure, a as IDENTIFYMSISDNEntrySuccess, P as PossibleTypes, C as ConfigDetails$1, b as StrategyState } from './StrategyTypes-DkyJdkwb.js';
4
+ export { R as ExtraStrategyData, H as HEResult, d as IConfig, s as IDENTIFYFailure, j as IDENTIFYMSISDNEntryErrorTypes, t as IDENTIFYSuccess, p as IDENTIFY_FLOW_HESuccess, o as IDENTIFY_OPERATOR_MSISDNEntrySuccess, m as IDETECTYOPERATOBYIPFailure, n as IDETECTYOPERATOBYIPSuccess, v as IDetectOperatorByIpPayload, f as IFlow, i as IHash, D as IIdentfyFlowByIPOperatorNextAction, A as IIdentfyFlowByMsisdnNextAction, B as IIdentfyFlowByOperatorNextAction, z as IIdentifyFlowByHePayload, y as IIdentifyFlowByIpOperatorPayload, c as IIdentifyResult, F as IIdenyifyFlowByMsisdnPayload, E as IIdenyifyFlowByMsisdnSumbitNextData, G as IIdenyifyStrategyPayload, M as IMockFlowParams, L as IMockFlows, T as IMockPinFlowStates, u as IOperatorSelectFlowIdentifyPayload, w as IOperatorSelectPayload, Q as IScriptHeaderEnrichmentFailure, N as IScriptHeaderEnrichmentSuccess, h as IStrategy, J as IStrategyCurrentState, K as IStrategyIDentifyUserResult, x as ISubmitMsisdnPayload, e as ISupportedFlows, k as IdentifyFlowOptionsResult, O as OPERATORSelectFailure, q as OPERATORSelectFlowIdentifyFailure, r as OPERATORSelectFlowIdentifySuccess, l as OPERATORSelectSuccess, U as RootState, g as StrategyConfig } from './StrategyTypes-DkyJdkwb.js';
5
5
  import { useSelector } from 'react-redux';
6
6
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
7
7
  import * as _reduxjs_toolkit_dist_createAsyncThunk from '@reduxjs/toolkit/dist/createAsyncThunk';
@@ -10,10 +10,10 @@ import * as redux from 'redux';
10
10
  import './Click2smsTypes-BbhnGxiA.js';
11
11
  import './CreditCardTypes-BvAmIdgA.js';
12
12
  import './MoRedirTypes-CpTYupHS.js';
13
- import './MoTypes-BPi6junu.js';
14
- import './normaliseErrorCode-DY03EaiP.js';
13
+ import './MoTypes--pzEGApc.js';
14
+ import './normaliseErrorCode-BYUlfXX0.js';
15
15
  import './IHash-0OgZ_1ij.js';
16
- import './PinTypes-DimZx7au.js';
16
+ import './PinTypes-C9NSulzE.js';
17
17
  import './UssdTypes-BSsSF8E9.js';
18
18
 
19
19
  declare const useStrategyState: (useSelector: typeof useSelector) => StrategyCurrentState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ouisys-engine",
3
- "version": "5.1.53",
3
+ "version": "5.1.54",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "directories": "dist dev-tools",
@@ -1 +0,0 @@
1
- {"version":3,"file":"normaliseErrorCode-CseFd8jz.js","sources":["../../src/utilities/normaliseErrorCode.ts"],"sourcesContent":["// Define the allowed return values as a union (optional, but gives you autocomplete/validation)\nexport type ErrorType =\n | 'Success'\n | 'Pending'\n | 'AlreadySubscribed'\n | 'BlacklistedMsisdn'\n | 'DuplicatedRequest'\n | 'ExpiredPin'\n | 'InvalidPin'\n | 'PinLimitExceeded'\n | 'PinGenerationError'\n | 'PinAlreadyUsed'\n | 'InactiveOperator'\n | 'InvalidMSISDN'\n | 'InvalidSubscriptionId'\n | 'NotEligibleMsisdn'\n | 'ValidationIssue'\n | 'InsufficientBalance'\n | 'AntiFraudError'\n | 'VasBlocked'\n | 'AccountSuspended'\n | 'SalesCapReached'\n | 'SubscriptionApiFailure'\n | 'ReSubscriptionBlocked'\n | 'ReLeadBlocked'\n | 'UnspecifiedError'\n | 'UnexpectedState'\n | 'SomethingWentWrong'\n | 'TPayConfirmError'\n | 'UnknownError'\n | string;\n// Map of code → type\nconst ERROR_CODE_MAP: Record<string, ErrorType> = {\n '1': 'Success',\n '2': 'Pending',\n '10': 'AlreadySubscribed',\n '11': 'BlacklistedMsisdn',\n '12': 'DuplicatedRequest',\n '21': 'ExpiredPin',\n '22': 'InvalidPin',\n '23': 'PinLimitExceeded',\n '24': 'PinGenerationError',\n '25': 'PinAlreadyUsed',\n '31': 'InactiveOperator',\n '32': 'InvalidMSISDN',\n '33': 'InvalidSubscriptionId',\n '34': 'NotEligibleMsisdn',\n '35': 'ValidationIssue',\n '36': 'InsufficientBalance',\n '37': 'AntiFraudError',\n '38': 'VasBlocked',\n '39': 'AccountSuspended',\n '40': 'SalesCapReached',\n '50': 'SubscriptionApiFailure',\n '75': 'ReSubscriptionBlocked',\n '76': 'ReLeadBlocked',\n '99': 'UnspecifiedError'\n};\n\n/**\n * Normalise a raw error code string into its semantic ErrorType.\n * Falls back to 'Unknown' if the code isn’t in the map.\n */\nexport const normaliseErrorCode = (errorCode: string): ErrorType => ERROR_CODE_MAP[errorCode] ?? 'UnknownError';\n\nexport const redirectErrorTypes: ErrorType[] = [\n 'AlreadySubscribed',\n 'SalesCapReached',\n 'AntiFraudError',\n 'BlacklistedMsisdn',\n 'VasBlocked',\n 'NotEligibleMsisdn',\n 'UnspecifiedError'\n];\n\ntype ErrorCode = keyof typeof ERROR_CODE_MAP; // \"1\" | \"2\" | … | \"99\"\n// type ErrorType = typeof ERROR_CODE_MAP[ErrorCode];\n\nexport function getErrorCode(name: ErrorType): ErrorCode | undefined {\n return Object.entries(ERROR_CODE_MAP).find(([, v]) => v === name)?.[0] as ErrorCode | undefined;\n}\n"],"names":[],"mappings":";;AA+BA;AACA,IAAM,cAAc,GAA8B;AAChD,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,IAAI,EAAE,mBAAmB;AACzB,IAAA,IAAI,EAAE,mBAAmB;AACzB,IAAA,IAAI,EAAE,mBAAmB;AACzB,IAAA,IAAI,EAAE,YAAY;AAClB,IAAA,IAAI,EAAE,YAAY;AAClB,IAAA,IAAI,EAAE,kBAAkB;AACxB,IAAA,IAAI,EAAE,oBAAoB;AAC1B,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,IAAI,EAAE,kBAAkB;AACxB,IAAA,IAAI,EAAE,eAAe;AACrB,IAAA,IAAI,EAAE,uBAAuB;AAC7B,IAAA,IAAI,EAAE,mBAAmB;AACzB,IAAA,IAAI,EAAE,iBAAiB;AACvB,IAAA,IAAI,EAAE,qBAAqB;AAC3B,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,IAAI,EAAE,YAAY;AAClB,IAAA,IAAI,EAAE,kBAAkB;AACxB,IAAA,IAAI,EAAE,iBAAiB;AACvB,IAAA,IAAI,EAAE,wBAAwB;AAC9B,IAAA,IAAI,EAAE,uBAAuB;AAC7B,IAAA,IAAI,EAAE,eAAe;AACrB,IAAA,IAAI,EAAE,kBAAkB;CACzB,CAAC;AAEF;;;AAGG;AACU,IAAA,kBAAkB,GAAG,UAAC,SAAiB,EAAgB,EAAA,IAAA,EAAA,CAAA,CAAA,OAAA,CAAA,EAAA,GAAA,cAAc,CAAC,SAAS,CAAC,mCAAI,cAAc,CAAA,GAAC;AAEnG,IAAA,kBAAkB,GAAgB;IAC7C,mBAAmB;IACnB,iBAAiB;IACjB,gBAAgB;IAChB,mBAAmB;IACnB,YAAY;IACZ,mBAAmB;IACnB,kBAAkB;EAClB;AAGF;AAEM,SAAU,YAAY,CAAC,IAAe,EAAA;;IAC1C,OAAO,CAAA,EAAA,GAAA,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,UAAC,EAAK,EAAA;YAAL,EAAA,GAAA,MAAA,CAAA,EAAA,EAAA,CAAA,CAAK,EAAF,CAAC,GAAA,EAAA,CAAA,CAAA,CAAA,CAAA;QAAM,OAAA,CAAC,KAAK,IAAI,CAAA;AAAV,KAAU,CAAC,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAG,CAAC,CAA0B,CAAC;AAClG;;;;"}
@@ -1,3 +0,0 @@
1
- declare type ErrorType = 'Success' | 'Pending' | 'AlreadySubscribed' | 'BlacklistedMsisdn' | 'DuplicatedRequest' | 'ExpiredPin' | 'InvalidPin' | 'PinLimitExceeded' | 'PinGenerationError' | 'PinAlreadyUsed' | 'InactiveOperator' | 'InvalidMSISDN' | 'InvalidSubscriptionId' | 'NotEligibleMsisdn' | 'ValidationIssue' | 'InsufficientBalance' | 'AntiFraudError' | 'VasBlocked' | 'AccountSuspended' | 'SalesCapReached' | 'SubscriptionApiFailure' | 'ReSubscriptionBlocked' | 'ReLeadBlocked' | 'UnspecifiedError' | 'UnexpectedState' | 'SomethingWentWrong' | 'TPayConfirmError' | 'UnknownError' | string;
2
-
3
- export type { ErrorType as E };