@flarehr/apollo-super-selection 4.27.29425 → 4.29.30453

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.
Files changed (56) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.css +1 -1
  2. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  3. package/dist/lib/apollo-super-selection/p-16367be3.system.entry.js +69 -0
  4. package/dist/lib/apollo-super-selection/{p-77f20abe.entry.js → p-29a35f2a.entry.js} +4 -4
  5. package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
  6. package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
  7. package/dist/lib/cjs/loader.cjs.js +1 -1
  8. package/dist/lib/cjs/sss-button_30.cjs.entry.js +248 -199
  9. package/dist/lib/collection/apollo-super-selection.css +1 -1
  10. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.dto.js +71 -86
  11. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.js +12 -0
  12. package/dist/lib/collection/components/super-selection-app/consent/consent.js +2 -6
  13. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund.js +1 -1
  14. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +1 -7
  15. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.js +2 -5
  16. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.js +9 -0
  17. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/funds/hesta-default.js +23 -0
  18. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund.store.js +4 -5
  19. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-v1-iframe-builder.js +1 -10
  20. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-v2-iframe-builder.js +14 -14
  21. package/dist/lib/collection/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.js +1 -8
  22. package/dist/lib/collection/components/super-selection-app/services/existing-super-choice-info.service.js +61 -45
  23. package/dist/lib/collection/components/super-selection-app/services/misc.service.js +7 -0
  24. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +33 -0
  25. package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +4 -1
  26. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item/super-choice-item-top.js +19 -1
  27. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +39 -11
  28. package/dist/lib/collection/utils/index.js +3 -0
  29. package/dist/lib/esm/apollo-super-selection.js +1 -1
  30. package/dist/lib/esm/loader.js +1 -1
  31. package/dist/lib/esm/sss-button_30.entry.js +248 -199
  32. package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
  33. package/dist/lib/esm-es5/loader.js +1 -1
  34. package/dist/lib/esm-es5/sss-button_30.entry.js +4 -4
  35. package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +2 -6
  36. package/dist/lib/types/components/super-selection-app/api/super-selection.api.d.ts +3 -1
  37. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +35 -0
  38. package/dist/lib/types/components/super-selection-app/consent/consent.d.ts +0 -1
  39. package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.d.ts +11 -7
  40. package/dist/lib/types/components/super-selection-app/funds/custom-fund/member-name-input.d.ts +1 -1
  41. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.d.ts +2 -1
  42. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.d.ts +12 -0
  43. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/funds/hesta-default.d.ts +3 -0
  44. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund.store.d.ts +3 -2
  45. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/types.d.ts +2 -1
  46. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.d.ts +3 -0
  47. package/dist/lib/types/components/super-selection-app/services/existing-super-choice-info.service.d.ts +9 -1
  48. package/dist/lib/types/components/super-selection-app/services/misc.service.d.ts +6 -0
  49. package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +9 -1
  50. package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +4 -1
  51. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-item/super-choice-item-top.d.ts +1 -0
  52. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-page.d.ts +1 -0
  53. package/dist/lib/types/components.d.ts +2 -0
  54. package/dist/lib/types/utils/index.d.ts +1 -0
  55. package/package.json +1 -1
  56. package/dist/lib/apollo-super-selection/p-3457c8b6.system.entry.js +0 -69
@@ -60,12 +60,8 @@ export declare type SuperFundNominationDeclinedDetail = {
60
60
  fundStatus: string;
61
61
  lastNominatedAt: string;
62
62
  };
63
- export declare type SuperFundDisclaimerViewedDetail = {
64
- promotedFundsShown: Array<string>;
65
- };
66
- export declare type SuperFundDisclaimerAcceptedDetail = {
67
- promotedFundsShown: Array<string>;
68
- };
63
+ export declare type SuperFundDisclaimerViewedDetail = Record<string, never>;
64
+ export declare type SuperFundDisclaimerAcceptedDetail = Record<string, never>;
69
65
  export declare type SuperFundPanelViewedDetail = {
70
66
  promotedFundsShown: Array<string>;
71
67
  defaultFundUsiSet?: string;
@@ -1,4 +1,4 @@
1
- import { AppStateDto, AustralianFundDto, AustralianFundsLookupResponseDto } from './super-selection.api.dto';
1
+ import { AppStateDto, AustralianFundDto, AustralianFundsLookupResponseDto, CampaignConnectDto, ClickPromotedTileDto } from './super-selection.api.dto';
2
2
  export declare type SuperFundSearchFilter = {
3
3
  searchString: string;
4
4
  maxRecordCount: number;
@@ -7,6 +7,8 @@ export declare class SuperSelectionApi {
7
7
  getAustralianFundsAsync(searchFilter: SuperFundSearchFilter, includeInactive?: boolean): Promise<AustralianFundsLookupResponseDto>;
8
8
  getAustralianFundAsync(usi: string, includeInactive: boolean): Promise<AustralianFundDto>;
9
9
  getAppStateAsync(): Promise<AppStateDto>;
10
+ getCampaignConnectAsync(): Promise<CampaignConnectDto>;
11
+ clickPromotedTileAsync(payload: ClickPromotedTileDto): Promise<void>;
10
12
  private toSearchFilterQueryString;
11
13
  private toQueryString;
12
14
  }
@@ -21,45 +21,54 @@ declare type UserProfileDto = {
21
21
  address: AddressDto;
22
22
  };
23
23
  declare type PromotedFundChoiceDto = {
24
+ kind: 'slate';
24
25
  slate: {
25
26
  memberNumber: string;
26
27
  };
27
28
  } | {
29
+ kind: 'australianRetirementTrust';
28
30
  australianRetirementTrust: {
29
31
  usi: string;
30
32
  memberNumber: string;
31
33
  };
32
34
  } | {
35
+ kind: 'aware';
33
36
  aware: {
34
37
  usi: string;
35
38
  memberNumber: string;
36
39
  };
37
40
  } | {
41
+ kind: 'active';
38
42
  active: {
39
43
  usi: string;
40
44
  memberNumber: string;
41
45
  };
42
46
  } | {
47
+ kind: 'australianEthical';
43
48
  australianEthical: {
44
49
  usi: string;
45
50
  memberNumber: string;
46
51
  };
47
52
  } | {
53
+ kind: 'virgin';
48
54
  virgin: {
49
55
  usi: string;
50
56
  memberNumber: string;
51
57
  };
52
58
  } | {
59
+ kind: 'spirit';
53
60
  spirit: {
54
61
  usi: string;
55
62
  memberNumber: string;
56
63
  };
57
64
  } | {
65
+ kind: 'firstSuper';
58
66
  firstSuper: {
59
67
  usi: string;
60
68
  memberNumber: string;
61
69
  };
62
70
  } | {
71
+ kind: 'mercerMyChoice';
63
72
  mercerMyChoice: {
64
73
  usi: string;
65
74
  memberNumber: string;
@@ -74,19 +83,30 @@ declare type OwnFundChoiceDto = {
74
83
  declare type DefaultFundChoiceDto = {
75
84
  usi: string;
76
85
  };
86
+ declare type PromotedDefaultFundChoiceDto = {
87
+ usi: string;
88
+ fundId: string;
89
+ };
77
90
  declare type SMSFChoiceDto = {
78
91
  abn: string;
79
92
  fundName: string;
80
93
  electronicServiceAddress: string;
81
94
  };
82
95
  declare type SuperChoiceDetailsDto = {
96
+ kind: 'Promoted';
83
97
  promoted: PromotedFundChoiceDto;
84
98
  } | {
99
+ kind: 'MyOwnFund';
85
100
  myOwnFund: OwnFundChoiceDto;
86
101
  } | {
102
+ kind: 'SMSF';
87
103
  smsf: SMSFChoiceDto;
88
104
  } | {
105
+ kind: 'Default';
89
106
  default: DefaultFundChoiceDto;
107
+ } | {
108
+ kind: 'PromotedDefault';
109
+ promotedDefault: PromotedDefaultFundChoiceDto;
90
110
  };
91
111
  declare type SuperChoiceDto = {
92
112
  dateSubmitted: string;
@@ -126,5 +146,20 @@ export declare type AppStateDto = {
126
146
  accountConfiguration: AccountConfigurationDto;
127
147
  profileConfiguration: ProfileConfigurationDto;
128
148
  promotedFunds: string[];
149
+ campaignConnectEnabled: boolean;
150
+ };
151
+ export declare type PromotedFundsConfigSourceDto = 'superSelection' | 'campaignConnect';
152
+ export declare type CampaignConnectDto = {
153
+ promotedFunds: string[];
154
+ promotedDefaultFundPosition?: number;
155
+ };
156
+ export declare type ClickPromotedTileDto = {
157
+ promoted: {
158
+ fundId: string;
159
+ };
160
+ } | {
161
+ promotedDefault: {
162
+ fundId: string;
163
+ };
129
164
  };
130
165
  export {};
@@ -1,7 +1,6 @@
1
1
  import { RouterHistory } from '@stencil/router';
2
2
  export declare class Consent {
3
3
  history: RouterHistory;
4
- private readonly promotedFunds;
5
4
  private readonly eventTrackingService;
6
5
  componentDidLoad(): Promise<void>;
7
6
  render(): Element[];
@@ -1,13 +1,17 @@
1
+ import { PromotedFundsConfigSourceDto } from '../../../api/super-selection.api.dto';
2
+ declare type CommonDto = {
3
+ standardChoiceFormSignature: string;
4
+ shownFunds: string[];
5
+ promotedDefaultFundPosition?: number;
6
+ promotedFundsConfigSource: PromotedFundsConfigSourceDto;
7
+ };
1
8
  export declare type MyOwnFundDto = {
2
9
  fundUsi: string;
3
10
  memberNumber: string;
4
11
  memberFirstName: string;
5
12
  memberFamilyName: string;
6
- standardChoiceFormSignature: string;
7
- };
8
- export declare type DefaultFundForm = {
9
- standardChoiceFormSignature: string;
10
- };
13
+ } & CommonDto;
14
+ export declare type DefaultFundForm = CommonDto;
11
15
  export declare type AustralianFundAddressDto = {
12
16
  addressLine1: string;
13
17
  addressLine2?: string;
@@ -28,8 +32,8 @@ export declare type SelfManagedFundDto = {
28
32
  };
29
33
  export declare type SelfManagedFundRequestDto = {
30
34
  smsfChoice: SelfManagedFundDto;
31
- standardChoiceFormSignature: string;
32
- };
35
+ } & CommonDto;
33
36
  export declare type AbnUsedForRegulatedFundResponseDto = {
34
37
  result: boolean;
35
38
  };
39
+ export {};
@@ -7,7 +7,7 @@ export declare class MemberNameInput {
7
7
  myInputChange: EventEmitter;
8
8
  private errorMessage;
9
9
  private NAME_PATTERN;
10
- render(): any;
10
+ render(): Element[];
11
11
  private handleInput;
12
12
  private validateInput;
13
13
  }
@@ -1,6 +1,7 @@
1
- import { PromotedFundChoiceRequestDto } from './promoted-fund-choice.api.dto';
1
+ import { PromotedDefaultFundChoiceRequestDto, PromotedFundChoiceRequestDto } from './promoted-fund-choice.api.dto';
2
2
  export declare class PromotedFundChoiceApi {
3
3
  submitChoiceAsync(dto: PromotedFundChoiceRequestDto): Promise<void>;
4
+ submitDefaultChoiceAsync(dto: PromotedDefaultFundChoiceRequestDto): Promise<void>;
4
5
  }
5
6
  declare const _default: PromotedFundChoiceApi;
6
7
  export default _default;
@@ -1,3 +1,4 @@
1
+ import { PromotedFundsConfigSourceDto } from '../../../api/super-selection.api.dto';
1
2
  export declare type PromotedFundChoiceRequestDto = {
2
3
  fundId: string;
3
4
  usi?: string;
@@ -7,4 +8,15 @@ export declare type PromotedFundChoiceRequestDto = {
7
8
  standardChoiceFormSignature: string;
8
9
  shownFunds: string[];
9
10
  defaultFundUsiSet?: string;
11
+ promotedDefaultFundPosition?: number;
12
+ promotedFundsConfigSource: PromotedFundsConfigSourceDto;
13
+ };
14
+ export declare type PromotedDefaultFundChoiceRequestDto = {
15
+ fundId: string;
16
+ usi: string;
17
+ standardChoiceFormSignature: string;
18
+ shownFunds: string[];
19
+ defaultFundUsiSet?: string;
20
+ promotedDefaultFundPosition?: number;
21
+ promotedFundsConfigSource: PromotedFundsConfigSourceDto;
10
22
  };
@@ -0,0 +1,3 @@
1
+ import { PromotedFund } from '../types';
2
+ declare const fund: PromotedFund;
3
+ export default fund;
@@ -1,7 +1,8 @@
1
1
  export declare type PromotedFundState = {
2
2
  fundId: string;
3
+ isPromotedDefault: boolean;
3
4
  };
4
5
  export declare const initial: PromotedFundState;
5
- declare const state: PromotedFundState;
6
- export declare function reset(): void;
6
+ declare const state: PromotedFundState, reset: () => void;
7
+ export { reset };
7
8
  export default state;
@@ -12,7 +12,8 @@ export declare type PromotedFund = {
12
12
  abnInfo?: string;
13
13
  abn?: string;
14
14
  footnoteTextOverride: Option<string>;
15
- dtoPropName: string;
15
+ dtoPropName?: string;
16
+ isPromotedDefault?: boolean;
16
17
  };
17
18
  export declare const Link: (props: {
18
19
  href: string;
@@ -1,3 +1,4 @@
1
+ import { PromotedFundsConfigSourceDto } from '../../../api/super-selection.api.dto';
1
2
  export declare type SlateFundForm = {
2
3
  memberNumber: string;
3
4
  memberFirstName?: string;
@@ -5,4 +6,6 @@ export declare type SlateFundForm = {
5
6
  standardChoiceFormSignature: string;
6
7
  shownFunds: string[];
7
8
  defaultFundUsiSet?: string;
9
+ promotedDefaultFundPosition?: number;
10
+ promotedFundsConfigSource: PromotedFundsConfigSourceDto;
8
11
  };
@@ -31,7 +31,15 @@ export declare type DefaultFund = {
31
31
  valid: FundValidState;
32
32
  lastNominatedAt: Option<Date>;
33
33
  };
34
- export declare type ExistingFund = PromotedFund | MyOwnFund | SelfManagedFund | DefaultFund;
34
+ export declare type PromotedDefaultFund = {
35
+ type: 'Promoted Default Fund';
36
+ id: string;
37
+ name: string;
38
+ usi: Option<string>;
39
+ valid: FundValidState;
40
+ lastNominatedAt: Option<Date>;
41
+ };
42
+ export declare type ExistingFund = PromotedFund | MyOwnFund | SelfManagedFund | DefaultFund | PromotedDefaultFund;
35
43
  export declare type RetainSuperFundDto = {
36
44
  fundType: string;
37
45
  fundName?: string;
@@ -0,0 +1,6 @@
1
+ import { ClickPromotedTileDto } from '../api/super-selection.api.dto';
2
+ export declare class MiscService {
3
+ trackClickPromotedTileAsync(payload: ClickPromotedTileDto): Promise<void>;
4
+ }
5
+ declare const _default: MiscService;
6
+ export default _default;
@@ -1,7 +1,12 @@
1
1
  import { OnChangeHandler } from '@stencil/store/dist/types';
2
2
  import * as O from 'fp-ts/lib/Option';
3
- import { SuperBuyerDto } from '../api/super-selection.api.dto';
3
+ import { PromotedFundsConfigSourceDto, SuperBuyerDto } from '../api/super-selection.api.dto';
4
4
  import { AppContextState } from './super-selection.store';
5
+ declare type PromotedFundsConfig = {
6
+ shownFunds: string[];
7
+ promotedDefaultFundPosition?: number;
8
+ promotedFundsConfigSource: PromotedFundsConfigSourceDto;
9
+ };
5
10
  export declare class SuperSelectionAppService {
6
11
  private readonly _state;
7
12
  private readonly _onChange;
@@ -12,6 +17,8 @@ export declare class SuperSelectionAppService {
12
17
  get apiBaseUrl(): string;
13
18
  get appBaseUrl(): string;
14
19
  get promotedFunds(): string[];
20
+ get promotedDefaultFundPosition(): O.Option<number>;
21
+ get promotedFundsConfig(): PromotedFundsConfig;
15
22
  get profileId(): string;
16
23
  get defaultFundUsi(): O.Option<string>;
17
24
  get accountIdOrDefault(): string;
@@ -20,6 +27,7 @@ export declare class SuperSelectionAppService {
20
27
  completeSuperSelectionFlow(): void;
21
28
  markSuperSelectionAsSubmitted(): void;
22
29
  loadAppStateAsync(): Promise<void>;
30
+ completeCampaignConnectRequestSafe(): Promise<void>;
23
31
  }
24
32
  declare const _default: SuperSelectionAppService;
25
33
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import * as O from 'fp-ts/lib/Option';
2
- import { AccountConfigurationDto, ProfileConfigurationDto, SuperBuyerDto } from '../api/super-selection.api.dto';
2
+ import { AccountConfigurationDto, CampaignConnectDto, ProfileConfigurationDto, SuperBuyerDto } from '../api/super-selection.api.dto';
3
3
  export declare type AppContextState = {
4
4
  apiBaseUrl: O.Option<string>;
5
5
  appBaseUrl: O.Option<string>;
@@ -11,5 +11,8 @@ export declare type AppContextState = {
11
11
  profileConfiguration: O.Option<ProfileConfigurationDto>;
12
12
  hasSuccessPageBeenAcknowledged: boolean;
13
13
  hasSuperSelectionBeenSubmitted: boolean;
14
+ campaignConnectEnabled: boolean;
15
+ campaignConnectPromise: O.Option<Promise<CampaignConnectDto>>;
16
+ campaignConnect: O.Option<CampaignConnectDto>;
14
17
  };
15
18
  export declare const initialState: AppContextState;
@@ -4,5 +4,6 @@ export declare class SuperChoiceItemTop {
4
4
  logo: string;
5
5
  features: VNode[];
6
6
  featureSubText?: VNode;
7
+ isPromotedDefault?: boolean;
7
8
  render(): Element[];
8
9
  }
@@ -2,6 +2,7 @@ import { RouterHistory } from '@stencil/router';
2
2
  export declare class SuperChoicePage {
3
3
  history: RouterHistory;
4
4
  private promotedFunds;
5
+ private campaignConnectRequestInProgress;
5
6
  private readonly eventTrackingService;
6
7
  componentDidLoad(): Promise<void>;
7
8
  render(): Element[];
@@ -102,6 +102,7 @@ export namespace Components {
102
102
  interface SssSuperChoiceItemTop {
103
103
  "featureSubText"?: VNode;
104
104
  "features": VNode[];
105
+ "isPromotedDefault"?: boolean;
105
106
  "logo": string;
106
107
  "name": string;
107
108
  }
@@ -399,6 +400,7 @@ declare namespace LocalJSX {
399
400
  interface SssSuperChoiceItemTop {
400
401
  "featureSubText"?: VNode;
401
402
  "features"?: VNode[];
403
+ "isPromotedDefault"?: boolean;
402
404
  "logo"?: string;
403
405
  "name"?: string;
404
406
  }
@@ -1,3 +1,4 @@
1
1
  export * from './config';
2
2
  export * from './lazy';
3
3
  export declare function addSlashToUrl(): void;
4
+ export declare function assertExhaustive(_value: never): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/apollo-super-selection",
3
- "version": "4.27.29425",
3
+ "version": "4.29.30453",
4
4
  "description": "Apollo Super Selection",
5
5
  "main": "dist/lib/index.cjs.js",
6
6
  "module": "dist/lib/index.js",