@flarehr/apollo-super-selection 1.3.41694 → 1.3.41733
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-eddc3534.system.entry.js → p-99c23afc.system.entry.js} +8 -8
- package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
- package/dist/lib/apollo-super-selection/p-c6192b69.entry.js +14 -0
- package/dist/lib/cjs/sss-button_41.cjs.entry.js +40 -3
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.js +9 -0
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-v2-iframe-builder.js +25 -2
- package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js +5 -0
- package/dist/lib/esm/sss-button_41.entry.js +40 -3
- package/dist/lib/esm-es5/sss-button_41.entry.js +4 -4
- package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +4 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.d.ts +2 -1
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.d.ts +12 -0
- package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.store.d.ts +6 -0
- package/package.json +1 -1
- package/dist/lib/apollo-super-selection/p-e452e0d4.entry.js +0 -14
|
@@ -284,7 +284,7 @@ class TapSubscriber extends datoramaAkita.Subscriber {
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
const AppVersion = '1.3.
|
|
287
|
+
const AppVersion = '1.3.41733';
|
|
288
288
|
|
|
289
289
|
// -------------------------------------------------------------------------------------
|
|
290
290
|
// guards
|
|
@@ -6258,6 +6258,15 @@ class PromotedFundChoiceApi {
|
|
|
6258
6258
|
})
|
|
6259
6259
|
.text();
|
|
6260
6260
|
}
|
|
6261
|
+
async submitDefaultChoiceWithJoinAsync(dto) {
|
|
6262
|
+
return buildBackendApiClient()
|
|
6263
|
+
.url('super-choice/promoted-fund/default-with-join')
|
|
6264
|
+
.post(dto)
|
|
6265
|
+
.badRequest(() => {
|
|
6266
|
+
throw new Error('Failed to process Promoted Default With Join Fund choice request');
|
|
6267
|
+
})
|
|
6268
|
+
.text();
|
|
6269
|
+
}
|
|
6261
6270
|
}
|
|
6262
6271
|
const promotedFundChoiceApi = new PromotedFundChoiceApi();
|
|
6263
6272
|
|
|
@@ -16191,8 +16200,31 @@ class PromotedFundJoinV2IFrameBuilder {
|
|
|
16191
16200
|
});
|
|
16192
16201
|
break;
|
|
16193
16202
|
}
|
|
16194
|
-
case 'success-promoted-default-with-join':
|
|
16195
|
-
|
|
16203
|
+
case 'success-promoted-default-with-join': {
|
|
16204
|
+
if (this.stringIsNullOrEmtpty(data.memberNumber) ||
|
|
16205
|
+
this.stringIsNullOrEmtpty(data.usi)) {
|
|
16206
|
+
appInsights.trackErrorTrace('PFJ C# did not return (PromotedDefaultWithJoin) memberNumber and/or usi');
|
|
16207
|
+
navigationService.navigateInternally(history, SuperSelectionAppRoutes.ChoicePage);
|
|
16208
|
+
break;
|
|
16209
|
+
}
|
|
16210
|
+
const usi = this.cleanUsi(data.usi);
|
|
16211
|
+
const fundName = this.getFundName(data.fundId);
|
|
16212
|
+
navigationService.navigateInternallyToStandardChoice({
|
|
16213
|
+
history,
|
|
16214
|
+
fundName,
|
|
16215
|
+
promotedFundId: data.fundId,
|
|
16216
|
+
fundDetails: {
|
|
16217
|
+
type: 'promotedDefaultWithJoin',
|
|
16218
|
+
fundName,
|
|
16219
|
+
fundUsi: usi,
|
|
16220
|
+
memberNumber: data.memberNumber,
|
|
16221
|
+
promotedFundId: data.fundId
|
|
16222
|
+
},
|
|
16223
|
+
handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitDefaultChoiceWithJoinAsync(Object.assign({ fundId: data.fundId, memberNumber: data.memberNumber, memberFirstName: data.memberFirstName, memberFamilyName: data.memberFamilyName, usi,
|
|
16224
|
+
standardChoiceFormSignature, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi) }, superSelectionAppService.promotedFundsConfig))
|
|
16225
|
+
});
|
|
16226
|
+
break;
|
|
16227
|
+
}
|
|
16196
16228
|
case 'success-defined-benefits':
|
|
16197
16229
|
if (this.stringIsNullOrEmtpty(data.memberNumber) ||
|
|
16198
16230
|
this.stringIsNullOrEmtpty(data.usi)) {
|
|
@@ -16719,6 +16751,11 @@ const StandardChoiceFormInputDefaultFund = class {
|
|
|
16719
16751
|
PromotedDefaultFund: Object.assign(Object.assign({}, state$1.fundDetails), common)
|
|
16720
16752
|
});
|
|
16721
16753
|
break;
|
|
16754
|
+
case 'promotedDefaultWithJoin':
|
|
16755
|
+
await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
|
|
16756
|
+
PromotedDefaultFundWithJoin: Object.assign(Object.assign({}, state$1.fundDetails), common)
|
|
16757
|
+
});
|
|
16758
|
+
break;
|
|
16722
16759
|
case 'null':
|
|
16723
16760
|
throw 'standardChoiceFormState.fundDetails was not set';
|
|
16724
16761
|
}
|
|
@@ -18,5 +18,14 @@ export class PromotedFundChoiceApi {
|
|
|
18
18
|
})
|
|
19
19
|
.text();
|
|
20
20
|
}
|
|
21
|
+
async submitDefaultChoiceWithJoinAsync(dto) {
|
|
22
|
+
return buildBackendApiClient()
|
|
23
|
+
.url('super-choice/promoted-fund/default-with-join')
|
|
24
|
+
.post(dto)
|
|
25
|
+
.badRequest(() => {
|
|
26
|
+
throw new Error('Failed to process Promoted Default With Join Fund choice request');
|
|
27
|
+
})
|
|
28
|
+
.text();
|
|
29
|
+
}
|
|
21
30
|
}
|
|
22
31
|
export default new PromotedFundChoiceApi();
|
|
@@ -162,8 +162,31 @@ class PromotedFundJoinV2IFrameBuilder {
|
|
|
162
162
|
});
|
|
163
163
|
break;
|
|
164
164
|
}
|
|
165
|
-
case 'success-promoted-default-with-join':
|
|
166
|
-
|
|
165
|
+
case 'success-promoted-default-with-join': {
|
|
166
|
+
if (this.stringIsNullOrEmtpty(data.memberNumber) ||
|
|
167
|
+
this.stringIsNullOrEmtpty(data.usi)) {
|
|
168
|
+
appInsightsService.trackErrorTrace('PFJ C# did not return (PromotedDefaultWithJoin) memberNumber and/or usi');
|
|
169
|
+
navigationService.navigateInternally(history, SuperSelectionAppRoutes.ChoicePage);
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
const usi = this.cleanUsi(data.usi);
|
|
173
|
+
const fundName = this.getFundName(data.fundId);
|
|
174
|
+
navigationService.navigateInternallyToStandardChoice({
|
|
175
|
+
history,
|
|
176
|
+
fundName,
|
|
177
|
+
promotedFundId: data.fundId,
|
|
178
|
+
fundDetails: {
|
|
179
|
+
type: 'promotedDefaultWithJoin',
|
|
180
|
+
fundName,
|
|
181
|
+
fundUsi: usi,
|
|
182
|
+
memberNumber: data.memberNumber,
|
|
183
|
+
promotedFundId: data.fundId
|
|
184
|
+
},
|
|
185
|
+
handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitDefaultChoiceWithJoinAsync(Object.assign({ fundId: data.fundId, memberNumber: data.memberNumber, memberFirstName: data.memberFirstName, memberFamilyName: data.memberFamilyName, usi,
|
|
186
|
+
standardChoiceFormSignature, defaultFundUsiSet: O.toUndefined(superSelectionAppService.defaultFundUsi) }, superSelectionAppService.promotedFundsConfig))
|
|
187
|
+
});
|
|
188
|
+
break;
|
|
189
|
+
}
|
|
167
190
|
case 'success-defined-benefits':
|
|
168
191
|
if (this.stringIsNullOrEmtpty(data.memberNumber) ||
|
|
169
192
|
this.stringIsNullOrEmtpty(data.usi)) {
|
package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js
CHANGED
|
@@ -103,6 +103,11 @@ export class StandardChoiceFormInputDefaultFund {
|
|
|
103
103
|
PromotedDefaultFund: Object.assign(Object.assign({}, standardChoiceFormState.fundDetails), common)
|
|
104
104
|
});
|
|
105
105
|
break;
|
|
106
|
+
case 'promotedDefaultWithJoin':
|
|
107
|
+
await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
|
|
108
|
+
PromotedDefaultFundWithJoin: Object.assign(Object.assign({}, standardChoiceFormState.fundDetails), common)
|
|
109
|
+
});
|
|
110
|
+
break;
|
|
106
111
|
case 'null':
|
|
107
112
|
throw 'standardChoiceFormState.fundDetails was not set';
|
|
108
113
|
default:
|
|
@@ -260,7 +260,7 @@ class TapSubscriber extends Subscriber {
|
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
const AppVersion = '1.3.
|
|
263
|
+
const AppVersion = '1.3.41733';
|
|
264
264
|
|
|
265
265
|
// -------------------------------------------------------------------------------------
|
|
266
266
|
// guards
|
|
@@ -6234,6 +6234,15 @@ class PromotedFundChoiceApi {
|
|
|
6234
6234
|
})
|
|
6235
6235
|
.text();
|
|
6236
6236
|
}
|
|
6237
|
+
async submitDefaultChoiceWithJoinAsync(dto) {
|
|
6238
|
+
return buildBackendApiClient()
|
|
6239
|
+
.url('super-choice/promoted-fund/default-with-join')
|
|
6240
|
+
.post(dto)
|
|
6241
|
+
.badRequest(() => {
|
|
6242
|
+
throw new Error('Failed to process Promoted Default With Join Fund choice request');
|
|
6243
|
+
})
|
|
6244
|
+
.text();
|
|
6245
|
+
}
|
|
6237
6246
|
}
|
|
6238
6247
|
const promotedFundChoiceApi = new PromotedFundChoiceApi();
|
|
6239
6248
|
|
|
@@ -16167,8 +16176,31 @@ class PromotedFundJoinV2IFrameBuilder {
|
|
|
16167
16176
|
});
|
|
16168
16177
|
break;
|
|
16169
16178
|
}
|
|
16170
|
-
case 'success-promoted-default-with-join':
|
|
16171
|
-
|
|
16179
|
+
case 'success-promoted-default-with-join': {
|
|
16180
|
+
if (this.stringIsNullOrEmtpty(data.memberNumber) ||
|
|
16181
|
+
this.stringIsNullOrEmtpty(data.usi)) {
|
|
16182
|
+
appInsights.trackErrorTrace('PFJ C# did not return (PromotedDefaultWithJoin) memberNumber and/or usi');
|
|
16183
|
+
navigationService.navigateInternally(history, SuperSelectionAppRoutes.ChoicePage);
|
|
16184
|
+
break;
|
|
16185
|
+
}
|
|
16186
|
+
const usi = this.cleanUsi(data.usi);
|
|
16187
|
+
const fundName = this.getFundName(data.fundId);
|
|
16188
|
+
navigationService.navigateInternallyToStandardChoice({
|
|
16189
|
+
history,
|
|
16190
|
+
fundName,
|
|
16191
|
+
promotedFundId: data.fundId,
|
|
16192
|
+
fundDetails: {
|
|
16193
|
+
type: 'promotedDefaultWithJoin',
|
|
16194
|
+
fundName,
|
|
16195
|
+
fundUsi: usi,
|
|
16196
|
+
memberNumber: data.memberNumber,
|
|
16197
|
+
promotedFundId: data.fundId
|
|
16198
|
+
},
|
|
16199
|
+
handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitDefaultChoiceWithJoinAsync(Object.assign({ fundId: data.fundId, memberNumber: data.memberNumber, memberFirstName: data.memberFirstName, memberFamilyName: data.memberFamilyName, usi,
|
|
16200
|
+
standardChoiceFormSignature, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi) }, superSelectionAppService.promotedFundsConfig))
|
|
16201
|
+
});
|
|
16202
|
+
break;
|
|
16203
|
+
}
|
|
16172
16204
|
case 'success-defined-benefits':
|
|
16173
16205
|
if (this.stringIsNullOrEmtpty(data.memberNumber) ||
|
|
16174
16206
|
this.stringIsNullOrEmtpty(data.usi)) {
|
|
@@ -16695,6 +16727,11 @@ const StandardChoiceFormInputDefaultFund = class {
|
|
|
16695
16727
|
PromotedDefaultFund: Object.assign(Object.assign({}, state$1.fundDetails), common)
|
|
16696
16728
|
});
|
|
16697
16729
|
break;
|
|
16730
|
+
case 'promotedDefaultWithJoin':
|
|
16731
|
+
await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
|
|
16732
|
+
PromotedDefaultFundWithJoin: Object.assign(Object.assign({}, state$1.fundDetails), common)
|
|
16733
|
+
});
|
|
16734
|
+
break;
|
|
16698
16735
|
case 'null':
|
|
16699
16736
|
throw 'standardChoiceFormState.fundDetails was not set';
|
|
16700
16737
|
}
|