@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.
- package/dist/cjs/Analytics/AnalyticsConstants.d.ts +27 -0
- package/dist/cjs/components/ReactInputSelect/ReactInputSelect.d.ts +3 -0
- package/dist/cjs/components/StaticLineTable/Product.utils.d.ts +2 -0
- package/dist/cjs/components/StaticLineTable/StaticProductDatatypes.d.ts +8 -0
- package/dist/cjs/components/index.d.ts +1 -1
- package/dist/cjs/components/lineTable/lineTable.types.d.ts +13 -0
- package/dist/cjs/components/login/Login.types.d.ts +27 -5
- package/dist/cjs/components/login/LoginModalV2.d.ts +5 -0
- package/dist/cjs/components/login/LoginV2.d.ts +4 -0
- package/dist/cjs/components/login/MFA/MfaChannelSelection.d.ts +3 -0
- package/dist/cjs/components/login/MFA/MfaOtp.d.ts +3 -0
- package/dist/cjs/components/login/TemporaryPasswordV2.d.ts +3 -0
- package/dist/cjs/components/login/index.d.ts +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/services/LineTableService.d.ts +2 -1
- package/dist/cjs/services/LoginBasicPropConfig.d.ts +16 -0
- package/dist/cjs/services/LoginServiceV2.d.ts +35 -0
- package/dist/cjs/services/api-constants.d.ts +2 -0
- package/dist/cjs/services/index.d.ts +1 -0
- package/dist/cjs/utils/AnalyticsUtils.d.ts +11 -1
- package/dist/cjs/utils/constants.d.ts +2 -0
- package/dist/esm/Analytics/AnalyticsConstants.d.ts +27 -0
- package/dist/esm/components/ReactInputSelect/ReactInputSelect.d.ts +3 -0
- package/dist/esm/components/StaticLineTable/Product.utils.d.ts +2 -0
- package/dist/esm/components/StaticLineTable/StaticProductDatatypes.d.ts +8 -0
- package/dist/esm/components/index.d.ts +1 -1
- package/dist/esm/components/lineTable/lineTable.types.d.ts +13 -0
- package/dist/esm/components/login/Login.types.d.ts +27 -5
- package/dist/esm/components/login/LoginModalV2.d.ts +5 -0
- package/dist/esm/components/login/LoginV2.d.ts +4 -0
- package/dist/esm/components/login/MFA/MfaChannelSelection.d.ts +3 -0
- package/dist/esm/components/login/MFA/MfaOtp.d.ts +3 -0
- package/dist/esm/components/login/TemporaryPasswordV2.d.ts +3 -0
- package/dist/esm/components/login/index.d.ts +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/services/LineTableService.d.ts +2 -1
- package/dist/esm/services/LoginBasicPropConfig.d.ts +16 -0
- package/dist/esm/services/LoginServiceV2.d.ts +35 -0
- package/dist/esm/services/api-constants.d.ts +2 -0
- package/dist/esm/services/index.d.ts +1 -0
- package/dist/esm/utils/AnalyticsUtils.d.ts +11 -1
- package/dist/esm/utils/constants.d.ts +2 -0
- package/dist/index.d.ts +27 -4
- package/package.json +5 -2
- package/dist/cjs/components/login/LoginModal.d.ts +0 -5
- package/dist/esm/components/login/LoginModal.d.ts +0 -5
@@ -3,9 +3,10 @@ export declare const fetchOfferingDataV2: (requestBody: any, url: any, returnPro
|
|
3
3
|
export declare const createCartV2: (productData: any, radioValue: string, defaultPromo: string, cartUrl: string, productType: string, chooseGift?: any, enabledP2P?: any, P2PData?: any, isQoqaFlow?: boolean, qVoucher?: any, deviceDetails?: any, tvOptions?: any) => Promise<any>;
|
4
4
|
export declare const fetchLinetableContent: (slugurl: string, params: any) => Promise<any>;
|
5
5
|
export declare const getStaticContent: (language: any, endPoints: any) => Promise<any>;
|
6
|
-
export declare const fetchOfferingDataLineTableV2: (params: any, uniqueId: any, endpoint: any, existingCustomer?: boolean, subscriptionType?: string, enableReturnPromo?: boolean, P2PEnabled?: boolean) => Promise<any>;
|
6
|
+
export declare const fetchOfferingDataLineTableV2: (params: any, uniqueId: any, endpoint: any, existingCustomer?: boolean, subscriptionType?: string, enableReturnPromo?: boolean, P2PEnabled?: boolean, pegaIntegration?: boolean) => Promise<any>;
|
7
7
|
export declare const fetchSubscriptionData: (category: any, endpoint: any) => Promise<any>;
|
8
8
|
export declare const getVocherPromotion: (productID: string, voucher: string) => Promise<void>;
|
9
9
|
export declare const validateP2P: (msisdn: any, endpoint: any) => Promise<any>;
|
10
10
|
export declare const getDeviceDetails: (deviceID: any, endpoint: any) => Promise<any>;
|
11
11
|
export declare const getDeviceModelsList: (brandId: any, endpoint: any) => Promise<any>;
|
12
|
+
export declare const trackPegaEvents: (endpoint: any, payload: {} | undefined, prospectId: string) => Promise<any>;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { ApiServiceV2 } from "@sunrise-upc/ajax-lib";
|
2
|
+
export interface LoginBasicPropConfigSchema {
|
3
|
+
baseURL: string | "";
|
4
|
+
}
|
5
|
+
export declare class LoginBasicPropConfig {
|
6
|
+
private static instance;
|
7
|
+
apiServiceObject?: ApiServiceV2;
|
8
|
+
prop: any;
|
9
|
+
config: LoginBasicPropConfigSchema;
|
10
|
+
private constructor();
|
11
|
+
getConfig: () => LoginBasicPropConfigSchema;
|
12
|
+
getBaseUrl: () => string;
|
13
|
+
static getInstance: () => LoginBasicPropConfig;
|
14
|
+
static create: (p_config: LoginBasicPropConfigSchema) => void;
|
15
|
+
getAPIServiceObject: () => ApiServiceV2;
|
16
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
export declare enum USERNAME_TYPE {
|
2
|
+
EMAIL = "Email_Id",
|
3
|
+
CLI = "CLI",
|
4
|
+
CUSTOMER_NUMBER = "SiteID",
|
5
|
+
MSISDN = "MSISDN"
|
6
|
+
}
|
7
|
+
export interface LoginResponse {
|
8
|
+
content: any;
|
9
|
+
status: string;
|
10
|
+
}
|
11
|
+
export interface LoginMethodsResponse {
|
12
|
+
ok: boolean;
|
13
|
+
segment: string;
|
14
|
+
username: string;
|
15
|
+
allowedMethods: string[];
|
16
|
+
isResidential: boolean;
|
17
|
+
isSohoSmall: boolean;
|
18
|
+
isMediumLargeCorporate: boolean;
|
19
|
+
isMsisdn: boolean;
|
20
|
+
errorCode?: string;
|
21
|
+
}
|
22
|
+
export declare const removeSpaces: (username: any) => string;
|
23
|
+
export declare const checkUsernameType: (username: string) => string | any;
|
24
|
+
export declare const getFormattedUsername: (username: string) => string;
|
25
|
+
export declare const isEmail: (text: string) => boolean;
|
26
|
+
export declare const isValidEmail: (email: string) => any;
|
27
|
+
export declare const isValidSiteId: (username: string) => any;
|
28
|
+
export declare const changeUserNameFormat: (username: string) => string;
|
29
|
+
export declare const insertToken: (originalString: string | undefined | null, token: string, tokenPositions: number[]) => string;
|
30
|
+
export declare const fetchLoginWithPassword: (username: string, password: string, lang: string, rememberMe: boolean) => Promise<LoginResponse>;
|
31
|
+
export declare const fetchLoginMethods: (username: string, lang: string, channel?: any) => Promise<unknown>;
|
32
|
+
export declare const channelselection: (channel: any, lang: string) => Promise<unknown>;
|
33
|
+
export declare const verifyOtp: (otp: any, lang: string) => Promise<unknown>;
|
34
|
+
export declare const resendOtp: (lang: string) => Promise<unknown>;
|
35
|
+
export declare const replacePlaceholder: (source: string, params: string[]) => string;
|
@@ -2,11 +2,13 @@ export declare const API_BASE_BASEPOINT: any;
|
|
2
2
|
export declare const APIResourceConstants: {
|
3
3
|
X_SUN_CHAL: string;
|
4
4
|
LINE_TABLEV2: string;
|
5
|
+
LINE_TABLEV3: string;
|
5
6
|
CREATE_CARTV2: string;
|
6
7
|
SUBSCRIPTION: string;
|
7
8
|
VOUCHER_PROMOTIONS: string;
|
8
9
|
HARDWARES: string;
|
9
10
|
HARDWARE_DEVICES: string;
|
10
11
|
TV_SERVICE_OPTIONS_V2: string;
|
12
|
+
CUSTOMER_EVENTS: string;
|
11
13
|
};
|
12
14
|
export declare const SBENDPOINT: any;
|
@@ -14,8 +14,9 @@ export interface ErrorEventInfoInterface {
|
|
14
14
|
message_title: string;
|
15
15
|
message_source: string;
|
16
16
|
message_reason: string;
|
17
|
+
message_guid?: string;
|
17
18
|
}
|
18
|
-
export declare const trackErrorEvent: (message_type: string, message_title: string, message_source: string, message_reason: string) => void;
|
19
|
+
export declare const trackErrorEvent: (message_type: string, message_title: string, message_source: string, message_reason: string, message_guid?: string) => void;
|
19
20
|
export interface DataLayerErrorEvent {
|
20
21
|
event: string;
|
21
22
|
event_name: string;
|
@@ -27,3 +28,12 @@ export interface DataLayerErrorEvent {
|
|
27
28
|
message_apiinfo: string;
|
28
29
|
}
|
29
30
|
export declare const errorTrackingDataLayer: (response: any) => void;
|
31
|
+
export interface UserInterface {
|
32
|
+
loginType: string;
|
33
|
+
accountID?: string;
|
34
|
+
language?: string;
|
35
|
+
lastLoginDate?: string;
|
36
|
+
type?: string;
|
37
|
+
existingUser?: boolean;
|
38
|
+
}
|
39
|
+
export declare const trackUser: (loginType: string, accountID?: string, language?: string, lastLoginDate?: string, type?: string, existingUser?: boolean) => void;
|
@@ -45,3 +45,5 @@ export declare const BREADCRUMB = "...";
|
|
45
45
|
export declare const PRE_TO_POST = "PRE_TO_POST";
|
46
46
|
export declare const P2PSUBSCRIBEDPLAN = "Sunrise Prepaid Unlimited";
|
47
47
|
export declare const TV_SERVICE_OPTION = "TV_SERVICE_OPTION";
|
48
|
+
export declare const ERROR_BORDER = "#BF0760";
|
49
|
+
export declare const DISABLED_BACKGROUND = "#E6E3DF";
|
package/dist/index.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { MouseEventHandler, FC } from 'react';
|
3
|
+
import { ApiServiceV2 } from '@sunrise-upc/ajax-lib';
|
3
4
|
|
4
5
|
interface ButtonProps {
|
5
6
|
type: 'primary' | 'secondary' | 'error';
|
@@ -14,11 +15,14 @@ interface ButtonContent {
|
|
14
15
|
|
15
16
|
declare const Button: FC<ButtonProps>;
|
16
17
|
|
17
|
-
interface
|
18
|
-
|
18
|
+
interface LoginModalSchema {
|
19
|
+
content: any;
|
20
|
+
closeLogin: () => void;
|
21
|
+
metadata: any;
|
22
|
+
onSuccess: () => void;
|
19
23
|
}
|
20
24
|
|
21
|
-
declare const LoginModal: FC<
|
25
|
+
declare const LoginModal: FC<LoginModalSchema>;
|
22
26
|
|
23
27
|
interface Link {
|
24
28
|
id: number;
|
@@ -172,6 +176,9 @@ interface StaticLinetableSchema {
|
|
172
176
|
deviceFlowCallBack?: any;
|
173
177
|
ubRatePlanObj?: any;
|
174
178
|
lineCheckOnClear?: any;
|
179
|
+
pegaIntegration?: boolean;
|
180
|
+
pegaCustomerInterest?: string;
|
181
|
+
useStoryblokOrder?: boolean;
|
175
182
|
}
|
176
183
|
|
177
184
|
declare const StaticLineTable: FC<StaticLinetableSchema>;
|
@@ -250,4 +257,20 @@ declare class LinecheckBasicPropConfig {
|
|
250
257
|
static create: (p_config: LinecheckBasicPropConfigSchema) => void;
|
251
258
|
}
|
252
259
|
|
253
|
-
|
260
|
+
interface LoginBasicPropConfigSchema {
|
261
|
+
baseURL: string | "";
|
262
|
+
}
|
263
|
+
declare class LoginBasicPropConfig {
|
264
|
+
private static instance;
|
265
|
+
apiServiceObject?: ApiServiceV2;
|
266
|
+
prop: any;
|
267
|
+
config: LoginBasicPropConfigSchema;
|
268
|
+
private constructor();
|
269
|
+
getConfig: () => LoginBasicPropConfigSchema;
|
270
|
+
getBaseUrl: () => string;
|
271
|
+
static getInstance: () => LoginBasicPropConfig;
|
272
|
+
static create: (p_config: LoginBasicPropConfigSchema) => void;
|
273
|
+
getAPIServiceObject: () => ApiServiceV2;
|
274
|
+
}
|
275
|
+
|
276
|
+
export { AssetPathPropConfig, AssetPathPropConfigSchema, BenefitWrapper, Breadcrumb, Button, Card, CardEntitlement, CarouselComp, CheckCoverage, CoverageCheckModal, DpLinetableContainer as DpLinetable, HeroLoginBanner as HeroLogin, LineTableBasicPropConfig, LineTableBasicPropConfigSchema, LinecheckBasicPropConfig, LinecheckBasicPropConfigSchema, LincheckModal as LinecheckModal, LoginBasicPropConfig, LoginBasicPropConfigSchema, LoginModal as LoginModalV2, PreToPostSubsPopup as PretoPostSubsPopup, ProductTableV3, ProductTeaser, ProductTeaserPropConfig, ProductTeaserPropConfigSchema, StaticLineTable, StickyProductAnchor };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sunrise-upc/mobile-prod-card",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.8.1-beta.0",
|
4
4
|
"description": "Starter project to create reusable functional component",
|
5
5
|
"main": "dist/cjs/index.js",
|
6
6
|
"module": "dist/esm/index.js",
|
@@ -43,7 +43,7 @@
|
|
43
43
|
"@types/react": "^18.0.26",
|
44
44
|
"@types/react-dom": "^18.0.10",
|
45
45
|
"@types/uuid": "^8.3.4",
|
46
|
-
"axios": "^0.
|
46
|
+
"axios": "^0.27.2",
|
47
47
|
"postcss": "8.4.21",
|
48
48
|
"rimraf": "^3.0.2",
|
49
49
|
"rollup": "^3.9.1",
|
@@ -69,5 +69,8 @@
|
|
69
69
|
"uuid": "^8.3.2",
|
70
70
|
"react-select": "^5.2.2",
|
71
71
|
"react-loading-skeleton": "^3.4.0"
|
72
|
+
},
|
73
|
+
"dependencies": {
|
74
|
+
"moment": "^2.30.1"
|
72
75
|
}
|
73
76
|
}
|