@flarehr/apollo-super-selection 5.16.49123 → 5.18.50860
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/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
- package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
- package/dist/lib/apollo-super-selection/p-bef636e4.entry.js +14 -0
- package/dist/lib/apollo-super-selection/p-e2ab4ebc.system.entry.js +69 -0
- package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
- package/dist/lib/cjs/loader.cjs.js +1 -1
- package/dist/lib/cjs/sss-button_43.cjs.entry.js +122 -38
- package/dist/lib/collection/components/super-campaign/super-campaign-types.js +1 -0
- package/dist/lib/collection/components/super-campaign/super-campaign.js +64 -19
- package/dist/lib/collection/components/super-selection-app/api/super-campaign-errors-api.js +9 -0
- package/dist/lib/collection/components/super-selection-app/api/super-campaign-errors.api.dtos.js +1 -0
- package/dist/lib/collection/components/super-selection-app/api/super-selection.api.js +3 -0
- package/dist/lib/collection/components/super-selection-app/existing-choice/existing-choice.js +1 -3
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +3 -2
- package/dist/lib/collection/components/super-selection-app/header-section/header-section.js +13 -3
- package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +5 -5
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +22 -3
- package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +8 -1
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +1 -5
- package/dist/lib/collection/components/super-selection-app/super-selection-app.js +0 -3
- package/dist/lib/esm/apollo-super-selection.js +1 -1
- package/dist/lib/esm/loader.js +1 -1
- package/dist/lib/esm/sss-button_43.entry.js +122 -38
- package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
- package/dist/lib/esm-es5/loader.js +1 -1
- package/dist/lib/esm-es5/sss-button_43.entry.js +5 -5
- package/dist/lib/types/components/super-campaign/super-campaign-types.d.ts +10 -1
- package/dist/lib/types/components/super-campaign/super-campaign.d.ts +6 -1
- package/dist/lib/types/components/super-selection-app/api/super-campaign-errors-api.d.ts +6 -0
- package/dist/lib/types/components/super-selection-app/api/super-campaign-errors.api.dtos.d.ts +7 -0
- package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +13 -7
- package/dist/lib/types/components/super-selection-app/api/super-selection.api.d.ts +2 -1
- package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +5 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.d.ts +5 -11
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.d.ts +4 -13
- package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.d.ts +2 -5
- package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +1 -1
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +7 -9
- package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +6 -0
- package/package.json +1 -1
- package/dist/lib/apollo-super-selection/p-8ade1d43.entry.js +0 -14
- package/dist/lib/apollo-super-selection/p-8b804b51.system.entry.js +0 -69
|
@@ -5,6 +5,14 @@ export declare type SuperCampaignCommonEventPayload = {
|
|
|
5
5
|
export declare type SuperCampaignLoadedEvent = SuperCampaignCommonEventPayload & {
|
|
6
6
|
type: 'super-campaign-loaded';
|
|
7
7
|
};
|
|
8
|
+
export declare type SuperCampaignLoadFailedEvent = SuperCampaignCommonEventPayload & {
|
|
9
|
+
type: 'super-campaign-load-failed';
|
|
10
|
+
reason: string;
|
|
11
|
+
};
|
|
12
|
+
export declare type SuperCampaignFailedEvent = SuperCampaignCommonEventPayload & {
|
|
13
|
+
type: 'super-campaign-failed';
|
|
14
|
+
reason: string;
|
|
15
|
+
};
|
|
8
16
|
export declare type ChooseAnotherFundRequestedEvent = SuperCampaignCommonEventPayload & {
|
|
9
17
|
type: 'choose-another-fund-requested';
|
|
10
18
|
};
|
|
@@ -71,7 +79,7 @@ export declare type ShownFund = {
|
|
|
71
79
|
fundType: ShownFundType;
|
|
72
80
|
};
|
|
73
81
|
export declare type ShownFundType = 'promoted' | 'promoted-default' | 'defined-benefits';
|
|
74
|
-
export declare type EventPayload = SuperCampaignLoadedEvent | ChooseAnotherFundRequestedEvent | FundsPanelShownEvent | FundTileClickedEvent | FundPdsViewedEvent | DisclaimerViewedEvent | DisclaimerAcceptedEvent | PromotedFundJoinedEvent;
|
|
82
|
+
export declare type EventPayload = SuperCampaignLoadedEvent | SuperCampaignLoadFailedEvent | SuperCampaignFailedEvent | ChooseAnotherFundRequestedEvent | FundsPanelShownEvent | FundTileClickedEvent | FundPdsViewedEvent | DisclaimerViewedEvent | DisclaimerAcceptedEvent | PromotedFundJoinedEvent;
|
|
75
83
|
export declare type EventType = EventPayload['type'];
|
|
76
84
|
export declare type EventHandlers = {
|
|
77
85
|
[k in EventType]: (event: CustomEvent<Extract<EventPayload, {
|
|
@@ -81,3 +89,4 @@ export declare type EventHandlers = {
|
|
|
81
89
|
export declare const Usi: {
|
|
82
90
|
clean: (usi: string) => string;
|
|
83
91
|
};
|
|
92
|
+
export declare const LoadWaitingTimeout = 30000;
|
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
import { RouterHistory } from '@stencil/router';
|
|
2
2
|
export declare class SuperCampaignHost {
|
|
3
3
|
history: RouterHistory;
|
|
4
|
-
private
|
|
4
|
+
private scriptImported;
|
|
5
5
|
private backendUrl;
|
|
6
6
|
private accessToken;
|
|
7
|
+
private loadingTimeoutRef;
|
|
7
8
|
private superCampaignEventHandlers;
|
|
8
9
|
constructor();
|
|
9
10
|
componentWillLoad(): Promise<void>;
|
|
10
11
|
disconnectedCallback(): void;
|
|
11
12
|
render(): Element[];
|
|
13
|
+
private activateFallbackMechanism;
|
|
14
|
+
private superCampaignLoadingTimeoutTriggered;
|
|
12
15
|
private createApolloSuperCampaignScriptUrl;
|
|
13
16
|
private getBaseUrl;
|
|
14
17
|
private getEnvironmentTag;
|
|
15
18
|
private subscribeToSuperCampaignEvents;
|
|
16
19
|
private unSubscribeFromSuperCampaignEvents;
|
|
17
20
|
private superCampaignLoaded;
|
|
21
|
+
private superCampaignLoadFailed;
|
|
22
|
+
private superCampaignFailed;
|
|
18
23
|
private chooseAnotherFundRequested;
|
|
19
24
|
private fundPanelShown;
|
|
20
25
|
private fundTileClicked;
|
|
@@ -77,11 +77,6 @@ export declare const SuperFundDisclaimerViewedDetail: {
|
|
|
77
77
|
export declare type SuperFundDisclaimerAcceptedDetail = {
|
|
78
78
|
superCampaignEnabled: boolean;
|
|
79
79
|
};
|
|
80
|
-
export declare type SuperFundPanelViewedDetail = {
|
|
81
|
-
promotedFundsShown: Array<string>;
|
|
82
|
-
defaultFundUsiSet?: string;
|
|
83
|
-
superCampaignEnabled: boolean;
|
|
84
|
-
};
|
|
85
80
|
export declare type SuperFundDetailViewedDetail = {
|
|
86
81
|
PromotedFund: ViewedPromotedFundDetail;
|
|
87
82
|
} | {
|
|
@@ -117,12 +112,17 @@ export declare type SuperFundDetailChangeRequested = {
|
|
|
117
112
|
} | {
|
|
118
113
|
DefaultFund: ViewedDefaultFundDetail;
|
|
119
114
|
};
|
|
115
|
+
export declare type SuperCampaignActivationFailedDetail = {
|
|
116
|
+
reason: string;
|
|
117
|
+
};
|
|
118
|
+
export declare type SuperCampaignOperationFailedDetail = {
|
|
119
|
+
reason: string;
|
|
120
|
+
};
|
|
121
|
+
export declare type SuperCampaignActivationSucceededDetail = Record<string, never>;
|
|
120
122
|
export declare type SuperSelectionAnalyticsEvent = {
|
|
121
123
|
SuperFundPdsViewed: SuperFundPdsViewedDetail;
|
|
122
124
|
} | {
|
|
123
125
|
SuperFundDetailViewed: SuperFundDetailViewedDetail;
|
|
124
|
-
} | {
|
|
125
|
-
SuperFundPanelViewed: SuperFundPanelViewedDetail;
|
|
126
126
|
} | {
|
|
127
127
|
SuperFundDetailChangeRequested: SuperFundDetailChangeRequested;
|
|
128
128
|
} | {
|
|
@@ -137,6 +137,12 @@ export declare type SuperSelectionAnalyticsEvent = {
|
|
|
137
137
|
SuperFundPrefillViewed: SuperFundPrefillViewedDetail;
|
|
138
138
|
} | {
|
|
139
139
|
SuperFundPrefillDeclined: SuperFundPrefillDeclinedDetail;
|
|
140
|
+
} | {
|
|
141
|
+
SuperCampaignActivationSucceeded: SuperCampaignActivationSucceededDetail;
|
|
142
|
+
} | {
|
|
143
|
+
SuperCampaignActivationFailed: SuperCampaignActivationFailedDetail;
|
|
144
|
+
} | {
|
|
145
|
+
SuperCampaignOperationFailed: SuperCampaignOperationFailedDetail;
|
|
140
146
|
};
|
|
141
147
|
export declare type SuperSelectionEventDto = {
|
|
142
148
|
event: SuperSelectionAnalyticsEvent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppStateDto, AustralianFundDto, AustralianFundsLookupResponseDto, CampaignConnectDto, ClickPromotedTileDto } from './super-selection.api.dto';
|
|
1
|
+
import { AppStateDto, AustralianFundDto, AustralianFundsLookupResponseDto, CampaignConnectDto, ClickPromotedTileDto, PromotedFundsConfigDto } from './super-selection.api.dto';
|
|
2
2
|
export declare type SuperFundSearchFilter = {
|
|
3
3
|
searchString: string;
|
|
4
4
|
maxRecordCount: number;
|
|
@@ -9,6 +9,7 @@ export declare class SuperSelectionApi {
|
|
|
9
9
|
getAppStateAsync(): Promise<AppStateDto>;
|
|
10
10
|
getCampaignConnectAsync(): Promise<CampaignConnectDto>;
|
|
11
11
|
clickPromotedTileAsync(payload: ClickPromotedTileDto): Promise<void>;
|
|
12
|
+
viewSuperFundPanelAsync(payload: PromotedFundsConfigDto): Promise<void>;
|
|
12
13
|
private toSearchFilterQueryString;
|
|
13
14
|
private toQueryString;
|
|
14
15
|
}
|
|
@@ -233,4 +233,9 @@ export declare type ClickPromotedTileDto = {
|
|
|
233
233
|
fundId: string;
|
|
234
234
|
};
|
|
235
235
|
};
|
|
236
|
+
export declare type PromotedFundsConfigDto = {
|
|
237
|
+
shownFunds: string[];
|
|
238
|
+
promotedDefaultFundPosition?: number;
|
|
239
|
+
promotedFundsConfigSource: PromotedFundsConfigSourceDto;
|
|
240
|
+
};
|
|
236
241
|
export {};
|
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare type CommonDto = {
|
|
3
|
-
shownFunds: string[];
|
|
4
|
-
promotedDefaultFundPosition?: number;
|
|
5
|
-
promotedFundsConfigSource: PromotedFundsConfigSourceDto;
|
|
6
|
-
};
|
|
1
|
+
import { PromotedFundsConfigDto } from '../../../api/super-selection.api.dto';
|
|
7
2
|
export declare type MyOwnFundDto = {
|
|
8
3
|
fundUsi: string;
|
|
9
4
|
memberNumber: string;
|
|
10
5
|
memberFirstName: string;
|
|
11
6
|
memberFamilyName: string;
|
|
12
7
|
standardChoiceFormSignature: string;
|
|
13
|
-
} &
|
|
8
|
+
} & PromotedFundsConfigDto;
|
|
14
9
|
export declare type DefaultFundForm = {
|
|
15
10
|
standardChoiceFormSignature: string;
|
|
16
|
-
} &
|
|
11
|
+
} & PromotedFundsConfigDto;
|
|
17
12
|
export declare type AustralianFundAddressDto = {
|
|
18
13
|
addressLine1: string;
|
|
19
14
|
addressLine2: string | null;
|
|
@@ -35,15 +30,14 @@ export declare type SelfManagedFundDto = {
|
|
|
35
30
|
export declare type SelfManagedFundRequestDto = {
|
|
36
31
|
smsfChoice: SelfManagedFundDto;
|
|
37
32
|
standardChoiceFormSignature: string;
|
|
38
|
-
} &
|
|
33
|
+
} & PromotedFundsConfigDto;
|
|
39
34
|
export declare type DefinedBenefitsDto = {
|
|
40
35
|
fundUsi: string;
|
|
41
36
|
fundId: string;
|
|
42
37
|
memberNumber: string;
|
|
43
38
|
memberElectContributionRatePreTax: number;
|
|
44
39
|
memberElectContributionRatePostTax: number;
|
|
45
|
-
} &
|
|
40
|
+
} & PromotedFundsConfigDto;
|
|
46
41
|
export declare type AbnUsedForRegulatedFundResponseDto = {
|
|
47
42
|
result: boolean;
|
|
48
43
|
};
|
|
49
|
-
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PromotedFundsConfigDto } from '../../../api/super-selection.api.dto';
|
|
2
2
|
export declare type PromotedFundChoiceRequestDto = {
|
|
3
3
|
fundId: string;
|
|
4
4
|
usi?: string;
|
|
@@ -6,20 +6,14 @@ export declare type PromotedFundChoiceRequestDto = {
|
|
|
6
6
|
memberFirstName?: string;
|
|
7
7
|
memberFamilyName?: string;
|
|
8
8
|
standardChoiceFormSignature: string;
|
|
9
|
-
shownFunds: string[];
|
|
10
9
|
defaultFundUsiSet?: string;
|
|
11
|
-
|
|
12
|
-
promotedFundsConfigSource: PromotedFundsConfigSourceDto;
|
|
13
|
-
};
|
|
10
|
+
} & PromotedFundsConfigDto;
|
|
14
11
|
export declare type PromotedDefaultFundChoiceRequestDto = {
|
|
15
12
|
fundId: string;
|
|
16
13
|
usi: string;
|
|
17
14
|
standardChoiceFormSignature: string;
|
|
18
|
-
shownFunds: string[];
|
|
19
15
|
defaultFundUsiSet?: string;
|
|
20
|
-
|
|
21
|
-
promotedFundsConfigSource: PromotedFundsConfigSourceDto;
|
|
22
|
-
};
|
|
16
|
+
} & PromotedFundsConfigDto;
|
|
23
17
|
export declare type PromotedDefaultFundWithJoinChoiceRequestDto = {
|
|
24
18
|
fundId: string;
|
|
25
19
|
usi: string;
|
|
@@ -27,8 +21,5 @@ export declare type PromotedDefaultFundWithJoinChoiceRequestDto = {
|
|
|
27
21
|
memberFirstName: string;
|
|
28
22
|
memberFamilyName: string;
|
|
29
23
|
standardChoiceFormSignature: string;
|
|
30
|
-
shownFunds: string[];
|
|
31
24
|
defaultFundUsiSet?: string;
|
|
32
|
-
|
|
33
|
-
promotedFundsConfigSource: PromotedFundsConfigSourceDto;
|
|
34
|
-
};
|
|
25
|
+
} & PromotedFundsConfigDto;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PromotedFundsConfigDto } from '../../../api/super-selection.api.dto';
|
|
2
2
|
export declare type SlateFundForm = {
|
|
3
3
|
memberNumber: string;
|
|
4
4
|
memberFirstName?: string;
|
|
5
5
|
memberFamilyName?: string;
|
|
6
6
|
standardChoiceFormSignature: string;
|
|
7
|
-
shownFunds: string[];
|
|
8
7
|
defaultFundUsiSet?: string;
|
|
9
|
-
|
|
10
|
-
promotedFundsConfigSource: PromotedFundsConfigSourceDto;
|
|
11
|
-
};
|
|
8
|
+
} & PromotedFundsConfigDto;
|
|
@@ -9,7 +9,6 @@ export declare class EventTrackingService {
|
|
|
9
9
|
TrackMyOwnSuperFundDetailViewedAsync(detail: model.ViewedMyOwnFundDetail): Promise<void>;
|
|
10
10
|
TrackSmsfSuperFundDetailViewedAsync(detail: model.ViewedSmsfDetail): Promise<void>;
|
|
11
11
|
TrackDefaultSuperFundDetailViewedAsync(detail: model.ViewedDefaultFundDetail): Promise<void>;
|
|
12
|
-
TrackSuperFundPanelViewedAsync(detail: model.SuperFundPanelViewedDetail): Promise<void>;
|
|
13
12
|
TrackSuperFundNominationViewedAsync(detail: model.SuperFundNominationViewedDetail): Promise<void>;
|
|
14
13
|
TrackSuperFundNominationDeclinedAsync(detail: model.SuperFundNominationDeclinedDetail): Promise<void>;
|
|
15
14
|
TrackSuperFundDisclaimerViewedAsync(detail: model.SuperFundDisclaimerViewedDetail): Promise<void>;
|
|
@@ -17,5 +16,6 @@ export declare class EventTrackingService {
|
|
|
17
16
|
TrackSuperFundPrefillViewedAsync(detail: model.SuperFundPrefillViewedDetail): Promise<void>;
|
|
18
17
|
TrackSuperFundPrefillDeclinedAsync(detail: model.SuperFundPrefillDeclinedDetail): Promise<void>;
|
|
19
18
|
TrackSuperFundDetailChangeRequestedAsync(detail: model.SuperFundDetailChangeRequested): Promise<void>;
|
|
19
|
+
TrackSuperCampaignActivationSucceededAsync(detail: model.SuperCampaignActivationSucceededDetail): Promise<void>;
|
|
20
20
|
private trackEventAsync;
|
|
21
21
|
}
|
package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { OnChangeHandler } from '@stencil/store/dist/types';
|
|
2
2
|
import * as O from 'fp-ts/lib/Option';
|
|
3
3
|
import { ShownFund as SuperCampaignShownFund } from '../../super-campaign/super-campaign-types';
|
|
4
|
-
import {
|
|
5
|
-
import { AppContextState, SuperCampaignState } from './super-selection.store';
|
|
6
|
-
export declare type PromotedFundsConfig = {
|
|
7
|
-
shownFunds: string[];
|
|
8
|
-
promotedDefaultFundPosition?: number;
|
|
9
|
-
promotedFundsConfigSource: PromotedFundsConfigSourceDto;
|
|
10
|
-
};
|
|
4
|
+
import { PromotedFundsConfigDto, SuperBuyerDto } from '../api/super-selection.api.dto';
|
|
5
|
+
import { AppContextState, SuperCampaignComponentStatus, SuperCampaignState } from './super-selection.store';
|
|
11
6
|
export declare class SuperSelectionAppService {
|
|
12
7
|
private readonly _state;
|
|
13
8
|
private readonly _onChange;
|
|
@@ -19,7 +14,7 @@ export declare class SuperSelectionAppService {
|
|
|
19
14
|
get appBaseUrl(): string;
|
|
20
15
|
get promotedFunds(): string[];
|
|
21
16
|
get promotedDefaultFundPosition(): O.Option<number>;
|
|
22
|
-
get promotedFundsConfig():
|
|
17
|
+
get promotedFundsConfig(): PromotedFundsConfigDto;
|
|
23
18
|
get definedBenefitsFundId(): O.Option<string>;
|
|
24
19
|
get profileId(): string;
|
|
25
20
|
get defaultFundUsi(): O.Option<string>;
|
|
@@ -33,9 +28,12 @@ export declare class SuperSelectionAppService {
|
|
|
33
28
|
loadAppStateAsync(): Promise<void>;
|
|
34
29
|
loadCampaignConnectAsync(): Promise<void>;
|
|
35
30
|
setSuperCampaignPromotedFundsShown(shownFunds: SuperCampaignShownFund[]): void;
|
|
31
|
+
viewSuperFundPanelAsync(promotedFundIdListOverride?: string[]): Promise<void>;
|
|
36
32
|
get superCampaignState(): SuperCampaignState | undefined;
|
|
37
|
-
|
|
33
|
+
get superCampaignComponentStatus(): SuperCampaignComponentStatus;
|
|
34
|
+
set superCampaignComponentStatus(value: SuperCampaignComponentStatus);
|
|
38
35
|
get isUsingSuperCampaign(): boolean;
|
|
36
|
+
get isSuperCampaignFallbackActivated(): boolean;
|
|
39
37
|
}
|
|
40
38
|
declare const _default: SuperSelectionAppService;
|
|
41
39
|
export default _default;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import * as O from 'fp-ts/lib/Option';
|
|
2
2
|
import { ShownFund as SuperCampaignShownFund } from '../../super-campaign/super-campaign-types';
|
|
3
3
|
import { AccountConfigurationDto, CampaignConnectDto, ProfileConfigurationDto, SuperBuyerDto, SuperChoicePrefillDto } from '../api/super-selection.api.dto';
|
|
4
|
+
export declare enum SuperCampaignComponentStatus {
|
|
5
|
+
NotLoaded = 1,
|
|
6
|
+
Loaded = 2,
|
|
7
|
+
NotWorking = 3
|
|
8
|
+
}
|
|
4
9
|
export declare type AppContextState = {
|
|
5
10
|
apiBaseUrl: O.Option<string>;
|
|
6
11
|
appBaseUrl: O.Option<string>;
|
|
@@ -18,6 +23,7 @@ export declare type AppContextState = {
|
|
|
18
23
|
campaignConnect: O.Option<CampaignConnectDto>;
|
|
19
24
|
superCampaignEnabled: boolean;
|
|
20
25
|
superCampaignState: SuperCampaignState | undefined;
|
|
26
|
+
superCampaignComponentStatus: SuperCampaignComponentStatus;
|
|
21
27
|
};
|
|
22
28
|
export declare class SuperCampaignState {
|
|
23
29
|
private _promotedFundsShown;
|