@flarehr/apollo-super-selection 1.2.30260 → 1.2.30309

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 (19) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  2. package/dist/lib/apollo-super-selection/{p-0a1d6ac9.system.entry.js → p-1869be51.system.entry.js} +1 -1
  3. package/dist/lib/apollo-super-selection/{p-aa074b1b.entry.js → p-25ff0cdc.entry.js} +4 -4
  4. package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
  5. package/dist/lib/cjs/sss-button_30.cjs.entry.js +128 -133
  6. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.dto.js +71 -86
  7. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.js +1 -1
  8. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/funds/hesta-default.js +23 -0
  9. package/dist/lib/collection/components/super-selection-app/services/existing-super-choice-info.service.js +61 -45
  10. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +1 -0
  11. package/dist/lib/collection/utils/index.js +3 -0
  12. package/dist/lib/esm/sss-button_30.entry.js +128 -133
  13. package/dist/lib/esm-es5/sss-button_30.entry.js +3 -3
  14. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +20 -0
  15. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/funds/hesta-default.d.ts +3 -0
  16. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/types.d.ts +1 -1
  17. package/dist/lib/types/components/super-selection-app/services/existing-super-choice-info.service.d.ts +9 -1
  18. package/dist/lib/types/utils/index.d.ts +1 -0
  19. package/package.json +1 -1
@@ -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;
@@ -0,0 +1,3 @@
1
+ import { PromotedFund } from '../types';
2
+ declare const fund: PromotedFund;
3
+ export default fund;
@@ -12,7 +12,7 @@ export declare type PromotedFund = {
12
12
  abnInfo?: string;
13
13
  abn?: string;
14
14
  footnoteTextOverride: Option<string>;
15
- dtoPropName: string;
15
+ dtoPropName?: string;
16
16
  isPromotedDefault?: boolean;
17
17
  };
18
18
  export declare const Link: (props: {
@@ -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;
@@ -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": "1.2.30260",
3
+ "version": "1.2.30309",
4
4
  "description": "Apollo Super Selection",
5
5
  "main": "dist/lib/index.cjs.js",
6
6
  "module": "dist/lib/index.js",