@flarehr/apollo-super-selection 4.56.44913 → 4.58.46161
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-26251f49.entry.js +14 -0
- package/dist/lib/apollo-super-selection/p-8263f5b7.system.entry.js +69 -0
- package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
- package/dist/lib/cjs/sss-button_41.cjs.entry.js +165 -26
- package/dist/lib/collection/components/super-campaign/super-campaign-types.js +5 -1
- package/dist/lib/collection/components/super-campaign/super-campaign.js +140 -5
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/funds/hesta-default.js +8 -15
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +3 -3
- package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +17 -3
- package/dist/lib/esm/sss-button_41.entry.js +165 -26
- package/dist/lib/esm-es5/sss-button_41.entry.js +4 -4
- package/dist/lib/types/components/super-campaign/super-campaign-types.d.ts +40 -2
- package/dist/lib/types/components/super-campaign/super-campaign.d.ts +9 -0
- package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +1 -1
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +4 -3
- package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +8 -4
- package/package.json +1 -1
- package/dist/lib/apollo-super-selection/p-1a253321.entry.js +0 -14
- package/dist/lib/apollo-super-selection/p-47600481.system.entry.js +0 -69
- package/readme.md +0 -41
|
@@ -28,15 +28,53 @@ export declare type DisclaimerViewedEvent = SuperCampaignCommonEventPayload & {
|
|
|
28
28
|
export declare type DisclaimerAcceptedEvent = SuperCampaignCommonEventPayload & {
|
|
29
29
|
type: 'disclaimer-accepted';
|
|
30
30
|
};
|
|
31
|
+
export declare type PromotedFundJoinedEvent = SuperCampaignCommonEventPayload & {
|
|
32
|
+
type: 'promoted-fund-joined';
|
|
33
|
+
fundJoinInfo: FundJoinInfo;
|
|
34
|
+
};
|
|
35
|
+
export declare type PromotedFundJoinInfo = {
|
|
36
|
+
fundType: 'Promoted';
|
|
37
|
+
fundId: string;
|
|
38
|
+
usi: string;
|
|
39
|
+
memberNumber: string;
|
|
40
|
+
memberFirstName?: string;
|
|
41
|
+
memberFamilyName?: string;
|
|
42
|
+
};
|
|
43
|
+
export declare type PromotedDefaultFundJoinInfo = {
|
|
44
|
+
fundType: 'PromotedDefault';
|
|
45
|
+
fundId: string;
|
|
46
|
+
usi: string;
|
|
47
|
+
};
|
|
48
|
+
export declare type PromotedDefaultFundWithJoinInfo = {
|
|
49
|
+
fundType: 'PromotedDefaultWithJoin';
|
|
50
|
+
fundId: string;
|
|
51
|
+
usi: string;
|
|
52
|
+
memberNumber: string;
|
|
53
|
+
memberFirstName: string;
|
|
54
|
+
memberFamilyName: string;
|
|
55
|
+
};
|
|
56
|
+
export declare type DefinedBenefitsJoinInfo = {
|
|
57
|
+
fundType: 'DefinedBenefits';
|
|
58
|
+
fundId: string;
|
|
59
|
+
usi: string;
|
|
60
|
+
memberNumber: string;
|
|
61
|
+
memberElectContributionRatePreTax: number;
|
|
62
|
+
memberElectContributionRatePostTax: number;
|
|
63
|
+
};
|
|
64
|
+
export declare type FundJoinInfo = PromotedFundJoinInfo | PromotedDefaultFundJoinInfo | PromotedDefaultFundWithJoinInfo | DefinedBenefitsJoinInfo;
|
|
65
|
+
export declare type JoinedFundType = FundJoinInfo['fundType'];
|
|
31
66
|
export declare type ShownFund = {
|
|
32
67
|
fundId: string;
|
|
33
68
|
fundType: ShownFundType;
|
|
34
69
|
};
|
|
35
|
-
export declare type ShownFundType = '
|
|
36
|
-
export declare type EventPayload = ChooseAnotherFundRequestedEvent | FundsPanelShownEvent | FundTileClickedEvent | FundPdsViewedEvent | DisclaimerViewedEvent | DisclaimerAcceptedEvent;
|
|
70
|
+
export declare type ShownFundType = 'promoted' | 'promoted-default' | 'defined-benefits';
|
|
71
|
+
export declare type EventPayload = ChooseAnotherFundRequestedEvent | FundsPanelShownEvent | FundTileClickedEvent | FundPdsViewedEvent | DisclaimerViewedEvent | DisclaimerAcceptedEvent | PromotedFundJoinedEvent;
|
|
37
72
|
export declare type EventType = EventPayload['type'];
|
|
38
73
|
export declare type EventHandlers = {
|
|
39
74
|
[k in EventType]: (event: CustomEvent<Extract<EventPayload, {
|
|
40
75
|
type: k;
|
|
41
76
|
}>>) => Promise<void>;
|
|
42
77
|
};
|
|
78
|
+
export declare const Usi: {
|
|
79
|
+
clean: (usi: string) => string;
|
|
80
|
+
};
|
|
@@ -20,4 +20,13 @@ export declare class SuperCampaignHost {
|
|
|
20
20
|
private fundPdsViewed;
|
|
21
21
|
private disclaimerViewed;
|
|
22
22
|
private disclaimerAccepted;
|
|
23
|
+
private promotedFundJoined;
|
|
24
|
+
private getFundName;
|
|
25
|
+
private stringIsNullOrEmtpty;
|
|
26
|
+
private get SuperCampaignState();
|
|
27
|
+
private get PromotedFundsConfig();
|
|
28
|
+
private handlePromotedFundJoined;
|
|
29
|
+
private handlePromotedDefaultFundJoined;
|
|
30
|
+
private handlePromotedDefaultFundWithJoinWasJoined;
|
|
31
|
+
private handleDefinedBenefitsJoined;
|
|
23
32
|
}
|
|
@@ -216,7 +216,7 @@ export declare type AppStateDto = {
|
|
|
216
216
|
isDefinedBenefitsEligible: boolean | null;
|
|
217
217
|
prefill: SuperChoicePrefillDto | null;
|
|
218
218
|
};
|
|
219
|
-
export declare type PromotedFundsConfigSourceDto = 'superSelection' | 'campaignConnect';
|
|
219
|
+
export declare type PromotedFundsConfigSourceDto = 'superSelection' | 'campaignConnect' | 'superCampaign';
|
|
220
220
|
export declare type PromotedFundTypeDto = 'promoted' | 'promoted-default' | 'defined-benefits';
|
|
221
221
|
export declare type CampaignConnectDto = {
|
|
222
222
|
promotedFunds: {
|
package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { OnChangeHandler } from '@stencil/store/dist/types';
|
|
2
2
|
import * as O from 'fp-ts/lib/Option';
|
|
3
|
+
import { ShownFund as SuperCampaignShownFund } from '../../super-campaign/super-campaign-types';
|
|
3
4
|
import { PromotedFundsConfigSourceDto, SuperBuyerDto } from '../api/super-selection.api.dto';
|
|
4
5
|
import { AppContextState, SuperCampaignState } from './super-selection.store';
|
|
5
|
-
declare type PromotedFundsConfig = {
|
|
6
|
+
export declare type PromotedFundsConfig = {
|
|
6
7
|
shownFunds: string[];
|
|
7
8
|
promotedDefaultFundPosition?: number;
|
|
8
9
|
promotedFundsConfigSource: PromotedFundsConfigSourceDto;
|
|
@@ -31,8 +32,8 @@ export declare class SuperSelectionAppService {
|
|
|
31
32
|
get isDefinedBenefitsEligible(): O.Option<boolean>;
|
|
32
33
|
loadAppStateAsync(): Promise<void>;
|
|
33
34
|
loadCampaignConnectAsync(): Promise<void>;
|
|
34
|
-
setSuperCampaignPromotedFundsShown(
|
|
35
|
-
get superCampaignState(): SuperCampaignState;
|
|
35
|
+
setSuperCampaignPromotedFundsShown(shownFunds: SuperCampaignShownFund[]): void;
|
|
36
|
+
get superCampaignState(): SuperCampaignState | undefined;
|
|
36
37
|
}
|
|
37
38
|
declare const _default: SuperSelectionAppService;
|
|
38
39
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as O from 'fp-ts/lib/Option';
|
|
2
|
+
import { ShownFund as SuperCampaignShownFund } from '../../super-campaign/super-campaign-types';
|
|
2
3
|
import { AccountConfigurationDto, CampaignConnectDto, ProfileConfigurationDto, SuperBuyerDto, SuperChoicePrefillDto } from '../api/super-selection.api.dto';
|
|
3
4
|
export declare type AppContextState = {
|
|
4
5
|
apiBaseUrl: O.Option<string>;
|
|
@@ -16,9 +17,12 @@ export declare type AppContextState = {
|
|
|
16
17
|
isDefinedBenefitsEligible: O.Option<boolean>;
|
|
17
18
|
campaignConnect: O.Option<CampaignConnectDto>;
|
|
18
19
|
superCampaignEnabled: boolean;
|
|
19
|
-
superCampaignState: SuperCampaignState;
|
|
20
|
-
};
|
|
21
|
-
export declare type SuperCampaignState = {
|
|
22
|
-
promotedFundsShown: string[];
|
|
20
|
+
superCampaignState: SuperCampaignState | undefined;
|
|
23
21
|
};
|
|
22
|
+
export declare class SuperCampaignState {
|
|
23
|
+
private promotedFundsShown;
|
|
24
|
+
constructor(funds: SuperCampaignShownFund[]);
|
|
25
|
+
get PromotedFundIds(): string[];
|
|
26
|
+
get DefaultFundPosition(): number | undefined;
|
|
27
|
+
}
|
|
24
28
|
export declare const initialState: AppContextState;
|