@flarehr/apollo-super-selection 4.55.43666 → 4.56.44913
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-1a253321.entry.js +14 -0
- package/dist/lib/apollo-super-selection/p-47600481.system.entry.js +69 -0
- package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
- 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_41.cjs.entry.js +166 -72
- package/dist/lib/collection/components/super-campaign/super-campaign.js +133 -6
- package/dist/lib/collection/components/super-selection-app/api/super-selection-events.model.js +16 -1
- package/dist/lib/collection/components/super-selection-app/consent/consent.js +5 -10
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/types.js +2 -1
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +6 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +4 -1
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +6 -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_41.entry.js +166 -72
- 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_41.entry.js +4 -4
- package/dist/lib/types/components/super-campaign/super-campaign-types.d.ts +17 -5
- package/dist/lib/types/components/super-campaign/super-campaign.d.ts +10 -0
- package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +15 -4
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +3 -1
- package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +4 -0
- package/dist/lib/types/components.d.ts +2 -0
- package/package.json +1 -1
- package/dist/lib/apollo-super-selection/p-06c394ee.system.entry.js +0 -69
- package/dist/lib/apollo-super-selection/p-90e363b7.entry.js +0 -14
- package/dist/lib/collection/components/super-campaign/super-campaign-event-handlers.js +0 -26
- package/dist/lib/types/components/super-campaign/super-campaign-event-handlers.d.ts +0 -2
|
@@ -5,7 +5,7 @@ export declare type SuperCampaignCommonEventPayload = {
|
|
|
5
5
|
export declare type ChooseAnotherFundRequestedEvent = SuperCampaignCommonEventPayload & {
|
|
6
6
|
type: 'choose-another-fund-requested';
|
|
7
7
|
};
|
|
8
|
-
export declare type
|
|
8
|
+
export declare type FundsPanelShownEvent = SuperCampaignCommonEventPayload & {
|
|
9
9
|
type: 'fund-panel-shown';
|
|
10
10
|
shownFunds: Array<ShownFund>;
|
|
11
11
|
};
|
|
@@ -16,15 +16,27 @@ export declare type FundTileClickedEvent = SuperCampaignCommonEventPayload & {
|
|
|
16
16
|
fundName: string;
|
|
17
17
|
fundType: ShownFundType;
|
|
18
18
|
};
|
|
19
|
+
export declare type FundPdsViewedEvent = SuperCampaignCommonEventPayload & {
|
|
20
|
+
type: 'fund-pds-viewed';
|
|
21
|
+
fundUsi?: string;
|
|
22
|
+
fundName: string;
|
|
23
|
+
pageName: string;
|
|
24
|
+
};
|
|
25
|
+
export declare type DisclaimerViewedEvent = SuperCampaignCommonEventPayload & {
|
|
26
|
+
type: 'disclaimer-viewed';
|
|
27
|
+
};
|
|
28
|
+
export declare type DisclaimerAcceptedEvent = SuperCampaignCommonEventPayload & {
|
|
29
|
+
type: 'disclaimer-accepted';
|
|
30
|
+
};
|
|
19
31
|
export declare type ShownFund = {
|
|
20
32
|
fundId: string;
|
|
21
33
|
fundType: ShownFundType;
|
|
22
34
|
};
|
|
23
35
|
export declare type ShownFundType = 'Promoted' | 'PromotedDefault' | 'PromotedDefaultWithJoin';
|
|
24
|
-
export declare type EventPayload = ChooseAnotherFundRequestedEvent |
|
|
36
|
+
export declare type EventPayload = ChooseAnotherFundRequestedEvent | FundsPanelShownEvent | FundTileClickedEvent | FundPdsViewedEvent | DisclaimerViewedEvent | DisclaimerAcceptedEvent;
|
|
25
37
|
export declare type EventType = EventPayload['type'];
|
|
26
38
|
export declare type EventHandlers = {
|
|
27
|
-
[k in EventType]: (event: Extract<EventPayload, {
|
|
28
|
-
|
|
29
|
-
}
|
|
39
|
+
[k in EventType]: (event: CustomEvent<Extract<EventPayload, {
|
|
40
|
+
type: k;
|
|
41
|
+
}>>) => Promise<void>;
|
|
30
42
|
};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import { RouterHistory } from '@stencil/router';
|
|
1
2
|
export declare class SuperCampaignHost {
|
|
3
|
+
history: RouterHistory;
|
|
2
4
|
private componentLoaded;
|
|
3
5
|
private backendUrl;
|
|
4
6
|
private accessToken;
|
|
7
|
+
private superCampaignEventHandlers;
|
|
8
|
+
constructor();
|
|
5
9
|
componentWillLoad(): Promise<void>;
|
|
6
10
|
disconnectedCallback(): void;
|
|
7
11
|
render(): Element[];
|
|
@@ -10,4 +14,10 @@ export declare class SuperCampaignHost {
|
|
|
10
14
|
private getEnvironmentTag;
|
|
11
15
|
private subscribeToSuperCampaignEvents;
|
|
12
16
|
private unSubscribeFromSuperCampaignEvents;
|
|
17
|
+
private chooseAnotherFundRequested;
|
|
18
|
+
private fundPanelShown;
|
|
19
|
+
private fundTileClicked;
|
|
20
|
+
private fundPdsViewed;
|
|
21
|
+
private disclaimerViewed;
|
|
22
|
+
private disclaimerAccepted;
|
|
13
23
|
}
|
|
@@ -2,6 +2,7 @@ export declare type SuperFundPdsViewedDetail = {
|
|
|
2
2
|
fundUsi?: string;
|
|
3
3
|
fundName: string;
|
|
4
4
|
pageName: string;
|
|
5
|
+
superCampaignEnabled: boolean;
|
|
5
6
|
};
|
|
6
7
|
export declare type ViewedPromotedFundDetail = {
|
|
7
8
|
fundUsi?: string;
|
|
@@ -9,13 +10,16 @@ export declare type ViewedPromotedFundDetail = {
|
|
|
9
10
|
promotedFundId: string;
|
|
10
11
|
promotedFundsShown: Array<string>;
|
|
11
12
|
defaultFundUsiSet?: string;
|
|
13
|
+
superCampaignEnabled: boolean;
|
|
12
14
|
};
|
|
15
|
+
export declare type FundDetailChangeRequested = Omit<ViewedDefaultFundDetail, 'superCampaignEnabled'>;
|
|
13
16
|
export declare type ViewedPromotedDefaultFundDetail = {
|
|
14
17
|
fundUsi: string;
|
|
15
18
|
fundName: string;
|
|
16
19
|
promotedFundId: string;
|
|
17
20
|
promotedFundsShown: Array<string>;
|
|
18
21
|
defaultFundUsiSet?: string;
|
|
22
|
+
superCampaignEnabled: boolean;
|
|
19
23
|
};
|
|
20
24
|
export declare type ViewedMyOwnFundDetail = {
|
|
21
25
|
promotedFundsShown: Array<string>;
|
|
@@ -65,11 +69,18 @@ export declare type SuperFundNominationDeclinedDetail = {
|
|
|
65
69
|
};
|
|
66
70
|
export declare type SuperFundDisclaimerViewedDetail = {
|
|
67
71
|
isDefinedBenefitsEligible: string;
|
|
72
|
+
superCampaignEnabled: boolean;
|
|
73
|
+
};
|
|
74
|
+
export declare const SuperFundDisclaimerViewedDetail: {
|
|
75
|
+
create: (superCampaignEnabled: boolean) => SuperFundDisclaimerViewedDetail;
|
|
76
|
+
};
|
|
77
|
+
export declare type SuperFundDisclaimerAcceptedDetail = {
|
|
78
|
+
superCampaignEnabled: boolean;
|
|
68
79
|
};
|
|
69
|
-
export declare type SuperFundDisclaimerAcceptedDetail = Record<string, never>;
|
|
70
80
|
export declare type SuperFundPanelViewedDetail = {
|
|
71
81
|
promotedFundsShown: Array<string>;
|
|
72
82
|
defaultFundUsiSet?: string;
|
|
83
|
+
superCampaignEnabled: boolean;
|
|
73
84
|
};
|
|
74
85
|
export declare type SuperFundDetailViewedDetail = {
|
|
75
86
|
PromotedFund: ViewedPromotedFundDetail;
|
|
@@ -85,13 +96,13 @@ export declare type SuperFundDetailViewedDetail = {
|
|
|
85
96
|
export declare type SuperFundDetailChangeRequested = {
|
|
86
97
|
PromotedFund: {
|
|
87
98
|
memberNumber: string;
|
|
88
|
-
} &
|
|
99
|
+
} & FundDetailChangeRequested;
|
|
89
100
|
} | {
|
|
90
|
-
PromotedDefaultFund:
|
|
101
|
+
PromotedDefaultFund: FundDetailChangeRequested;
|
|
91
102
|
} | {
|
|
92
103
|
PromotedDefaultFundWithJoin: {
|
|
93
104
|
memberNumber: string;
|
|
94
|
-
} &
|
|
105
|
+
} & FundDetailChangeRequested;
|
|
95
106
|
} | {
|
|
96
107
|
MyOwnFund: {
|
|
97
108
|
fundName: string;
|
package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnChangeHandler } from '@stencil/store/dist/types';
|
|
2
2
|
import * as O from 'fp-ts/lib/Option';
|
|
3
3
|
import { PromotedFundsConfigSourceDto, SuperBuyerDto } from '../api/super-selection.api.dto';
|
|
4
|
-
import { AppContextState } from './super-selection.store';
|
|
4
|
+
import { AppContextState, SuperCampaignState } from './super-selection.store';
|
|
5
5
|
declare type PromotedFundsConfig = {
|
|
6
6
|
shownFunds: string[];
|
|
7
7
|
promotedDefaultFundPosition?: number;
|
|
@@ -31,6 +31,8 @@ export declare class SuperSelectionAppService {
|
|
|
31
31
|
get isDefinedBenefitsEligible(): O.Option<boolean>;
|
|
32
32
|
loadAppStateAsync(): Promise<void>;
|
|
33
33
|
loadCampaignConnectAsync(): Promise<void>;
|
|
34
|
+
setSuperCampaignPromotedFundsShown(shownFund: string[]): void;
|
|
35
|
+
get superCampaignState(): SuperCampaignState;
|
|
34
36
|
}
|
|
35
37
|
declare const _default: SuperSelectionAppService;
|
|
36
38
|
export default _default;
|
|
@@ -16,5 +16,9 @@ export declare type AppContextState = {
|
|
|
16
16
|
isDefinedBenefitsEligible: O.Option<boolean>;
|
|
17
17
|
campaignConnect: O.Option<CampaignConnectDto>;
|
|
18
18
|
superCampaignEnabled: boolean;
|
|
19
|
+
superCampaignState: SuperCampaignState;
|
|
20
|
+
};
|
|
21
|
+
export declare type SuperCampaignState = {
|
|
22
|
+
promotedFundsShown: string[];
|
|
19
23
|
};
|
|
20
24
|
export declare const initialState: AppContextState;
|
|
@@ -131,6 +131,7 @@ export namespace Components {
|
|
|
131
131
|
interface SssSuccess {
|
|
132
132
|
}
|
|
133
133
|
interface SssSuperCampaignHost {
|
|
134
|
+
"history": RouterHistory;
|
|
134
135
|
}
|
|
135
136
|
interface SssSuperChoiceItemBottom {
|
|
136
137
|
"abn"?: string;
|
|
@@ -545,6 +546,7 @@ declare namespace LocalJSX {
|
|
|
545
546
|
interface SssSuccess {
|
|
546
547
|
}
|
|
547
548
|
interface SssSuperCampaignHost {
|
|
549
|
+
"history"?: RouterHistory;
|
|
548
550
|
}
|
|
549
551
|
interface SssSuperChoiceItemBottom {
|
|
550
552
|
"abn"?: string;
|