@sunrise-upc/mobile-prod-card 4.7.8 → 4.8.1-beta.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. package/dist/cjs/Analytics/AnalyticsConstants.d.ts +27 -0
  2. package/dist/cjs/components/ReactInputSelect/ReactInputSelect.d.ts +3 -0
  3. package/dist/cjs/components/StaticLineTable/Product.utils.d.ts +2 -0
  4. package/dist/cjs/components/StaticLineTable/StaticProductDatatypes.d.ts +8 -0
  5. package/dist/cjs/components/index.d.ts +1 -1
  6. package/dist/cjs/components/lineTable/lineTable.types.d.ts +13 -0
  7. package/dist/cjs/components/login/Login.types.d.ts +27 -5
  8. package/dist/cjs/components/login/LoginModalV2.d.ts +5 -0
  9. package/dist/cjs/components/login/LoginV2.d.ts +4 -0
  10. package/dist/cjs/components/login/MFA/MfaChannelSelection.d.ts +3 -0
  11. package/dist/cjs/components/login/MFA/MfaOtp.d.ts +3 -0
  12. package/dist/cjs/components/login/TemporaryPasswordV2.d.ts +3 -0
  13. package/dist/cjs/components/login/index.d.ts +1 -1
  14. package/dist/cjs/index.js +2 -2
  15. package/dist/cjs/services/LineTableService.d.ts +2 -1
  16. package/dist/cjs/services/LoginBasicPropConfig.d.ts +16 -0
  17. package/dist/cjs/services/LoginServiceV2.d.ts +35 -0
  18. package/dist/cjs/services/api-constants.d.ts +2 -0
  19. package/dist/cjs/services/index.d.ts +1 -0
  20. package/dist/cjs/utils/AnalyticsUtils.d.ts +11 -1
  21. package/dist/cjs/utils/constants.d.ts +2 -0
  22. package/dist/esm/Analytics/AnalyticsConstants.d.ts +27 -0
  23. package/dist/esm/components/ReactInputSelect/ReactInputSelect.d.ts +3 -0
  24. package/dist/esm/components/StaticLineTable/Product.utils.d.ts +2 -0
  25. package/dist/esm/components/StaticLineTable/StaticProductDatatypes.d.ts +8 -0
  26. package/dist/esm/components/index.d.ts +1 -1
  27. package/dist/esm/components/lineTable/lineTable.types.d.ts +13 -0
  28. package/dist/esm/components/login/Login.types.d.ts +27 -5
  29. package/dist/esm/components/login/LoginModalV2.d.ts +5 -0
  30. package/dist/esm/components/login/LoginV2.d.ts +4 -0
  31. package/dist/esm/components/login/MFA/MfaChannelSelection.d.ts +3 -0
  32. package/dist/esm/components/login/MFA/MfaOtp.d.ts +3 -0
  33. package/dist/esm/components/login/TemporaryPasswordV2.d.ts +3 -0
  34. package/dist/esm/components/login/index.d.ts +1 -1
  35. package/dist/esm/index.js +2 -2
  36. package/dist/esm/services/LineTableService.d.ts +2 -1
  37. package/dist/esm/services/LoginBasicPropConfig.d.ts +16 -0
  38. package/dist/esm/services/LoginServiceV2.d.ts +35 -0
  39. package/dist/esm/services/api-constants.d.ts +2 -0
  40. package/dist/esm/services/index.d.ts +1 -0
  41. package/dist/esm/utils/AnalyticsUtils.d.ts +11 -1
  42. package/dist/esm/utils/constants.d.ts +2 -0
  43. package/dist/index.d.ts +27 -4
  44. package/package.json +5 -2
  45. package/dist/cjs/components/login/LoginModal.d.ts +0 -5
  46. package/dist/esm/components/login/LoginModal.d.ts +0 -5
@@ -32,6 +32,33 @@ export declare const ERRORMESSAGE = "Missing or Invalid Error";
32
32
  export declare const ERRORTYPE = "error";
33
33
  export declare const FIXNET = "fixnet";
34
34
  export declare const AUTHCOOKIE = "sunriseAuth";
35
+ export declare const ERROR = "error";
36
+ export declare const LOGIN = "login";
37
+ export declare const LOGINSUCCESSFUL = "loginSuccessful";
38
+ export declare const PASSWORD = "Password";
39
+ export declare const PASSWORDSUCCESSFUL = "success via password";
40
+ export declare const REMMSELECTED = "Remember me | Selected";
41
+ export declare const REMMNOTSELECTED = "Remember me | not selected";
42
+ export declare const PASSWORDUNSUCCESSFUL = "unSuccess via password";
43
+ export declare const LOGINERROR = "LoginError";
44
+ export declare const SUCCESSFULL = "successful";
45
+ export declare const LOGINUNSUCCESSFUL = "loginUnSuccessful";
46
+ export declare const FAILED = "failed";
47
+ export declare const GETTEMPCODE = "get_temporary_code";
48
+ export declare const LOGINUSERVERIFIED = "userVerified";
49
+ export declare const SUCCESSFUL = "success";
50
+ export declare const LOGINUSERNOTVERIFIED = "userNotVerified";
51
+ export declare const UNSUCCESSFUL = "unSuccess";
52
+ export declare const OTP = "Enter the temporary code";
53
+ export declare const CHANNELSELECTION = "Get a temporary code via SMS/Email";
54
+ export declare const VIA = "via";
55
+ export declare const SENDOTP = "send_otp";
56
+ export declare const OTPLOGINSUCCESS = "otp_login_success";
57
+ export declare const OTPLOGINFAIL = "otp_login_fail";
58
+ export declare const VEIW = "view";
59
+ export declare const MTAN = "MTAN";
60
+ export declare const LOGINNEXT = "Next";
61
+ export declare const TEMPCODENEXT = "Login Get a temporary code";
35
62
  export declare const EXISTINGCUSTOMER = "existing-customer";
36
63
  export declare const NEWCUSTOMER = "new-customer";
37
64
  export declare const DEFAULT = "default";
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const ReactInputSelect: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<any>>;
3
+ export default ReactInputSelect;
@@ -1,5 +1,7 @@
1
1
  import { SetStateAction } from 'react';
2
+ import { PegaProductRequestBase } from '../lineTable/lineTable.types';
2
3
  export declare const fetchStaticProductIds: (productList: any, productId: any, bundle4PProduct?: boolean, tvOptionIds?: any) => any;
4
+ export declare const fetchPegaProducts: (content: any, pegaCustomerInterest?: string, placements?: string) => PegaProductRequestBase;
3
5
  export declare const checkGiftOrCashback: (data: any) => any;
4
6
  export declare const staticCreateCart: (setShowLoader: {
5
7
  (value: SetStateAction<boolean>): void;
@@ -15,6 +15,9 @@ export interface StaticLinetableSchema {
15
15
  deviceFlowCallBack?: any;
16
16
  ubRatePlanObj?: any;
17
17
  lineCheckOnClear?: any;
18
+ pegaIntegration?: boolean;
19
+ pegaCustomerInterest?: string;
20
+ useStoryblokOrder?: boolean;
18
21
  }
19
22
  export interface StaticProductSchema {
20
23
  content: any;
@@ -77,6 +80,11 @@ export interface StaticProductContainerSchema {
77
80
  deviceFlowCallBack?: any;
78
81
  ubRatePlanObj?: any;
79
82
  lineCheckOnClear?: any;
83
+ pegaIntegration?: boolean;
84
+ pegaCustomerInterest?: string;
85
+ useStoryblokOrder?: boolean;
86
+ isFetching?: boolean;
87
+ setIsFetching?: any;
80
88
  }
81
89
  export interface StaticProductDetailsSchema {
82
90
  content: any;
@@ -1,5 +1,5 @@
1
1
  export { default as Button } from './button';
2
- export { default as LoginModal } from './login';
2
+ export { default as LoginModalV2 } from './login';
3
3
  export { default as Card } from './CardComp';
4
4
  export { default as CardEntitlement } from './CardEntitlement';
5
5
  export { default as CarouselComp } from './CarouselComp';
@@ -13,6 +13,19 @@ export interface ProductRequestBase {
13
13
  checkVoucher?: boolean;
14
14
  promoIds: string[];
15
15
  }
16
+ export interface OfferValidation {
17
+ key: string;
18
+ type: string;
19
+ value: string;
20
+ }
21
+ export interface AtlOffer {
22
+ index?: number;
23
+ placements?: string;
24
+ offerValidations: OfferValidation[];
25
+ }
26
+ export interface PegaProductRequestBase {
27
+ atlOffers: AtlOffer[];
28
+ }
16
29
  export interface ProductContainerSchema extends ProductTableSchema {
17
30
  activeIndex: any;
18
31
  sbStaticConstants: any;
@@ -1,12 +1,34 @@
1
- import { MouseEventHandler } from "react";
2
- export interface LoginModelProps {
3
- toggleFun: MouseEventHandler<HTMLButtonElement>;
1
+ export interface LoginModalSchema {
2
+ content: any;
3
+ closeLogin: () => void;
4
+ metadata: any;
5
+ onSuccess: () => void;
4
6
  }
5
- export type LinkTarget = "_self" | "_blank" | null;
6
- export type LinkType = "url" | "story" | "asset" | "email";
7
+ export interface LoginSchema {
8
+ content: any;
9
+ changeCurrentView: (view: string, userID: string, otpUseCase: number, response?: any, password?: any) => void;
10
+ metadata: any;
11
+ onSuccess: () => void;
12
+ loginIcons: any;
13
+ userID?: any;
14
+ password?: any;
15
+ otpUseCase?: any;
16
+ }
17
+ export type LinkTarget = '_self' | '_blank' | null;
18
+ export type LinkType = 'url' | 'story' | 'asset' | 'email';
7
19
  export declare interface LinkAttributes {
8
20
  href: string;
9
21
  uuid: string | null;
10
22
  target: LinkTarget;
11
23
  linktype: LinkType;
12
24
  }
25
+ export interface Mfa {
26
+ content: any;
27
+ changeCurrentView: (view: string, userID: string, otpUseCase: number, response?: any, password?: string) => void;
28
+ metadata: any;
29
+ onSuccess: () => void;
30
+ loginIcons: any;
31
+ userID?: any;
32
+ password?: any;
33
+ loginResponseMFA?: any;
34
+ }
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { LoginModalSchema } from './Login.types';
3
+ import './Login.css';
4
+ declare const LoginModal: FC<LoginModalSchema>;
5
+ export default LoginModal;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { LoginSchema } from './Login.types';
3
+ declare const Login: FC<LoginSchema>;
4
+ export default Login;
@@ -0,0 +1,3 @@
1
+ import { Mfa } from '../Login.types';
2
+ declare const MfaChannelSelection: ({ content, loginIcons, metadata, userID, changeCurrentView, password, onSuccess }: Mfa) => any;
3
+ export default MfaChannelSelection;
@@ -0,0 +1,3 @@
1
+ import { Mfa } from '../Login.types';
2
+ declare const MfaOtp: ({ content, loginIcons, changeCurrentView, userID, password, metadata, onSuccess, loginResponseMFA }: Mfa) => any;
3
+ export default MfaOtp;
@@ -0,0 +1,3 @@
1
+ import { LoginSchema } from './Login.types';
2
+ declare const TemporaryPassword: ({ content, metadata, onSuccess, loginIcons, userID, otpUseCase }: LoginSchema) => any;
3
+ export default TemporaryPassword;
@@ -1 +1 @@
1
- export { default } from './LoginModal';
1
+ export { default } from './LoginModalV2';