@idsoftsource/initial-process 2.5.2 → 2.5.5
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/index.d.ts
CHANGED
|
@@ -304,6 +304,8 @@ declare class UserDetailService {
|
|
|
304
304
|
updateMyProfileData(model: any): Observable<Result>;
|
|
305
305
|
getUserAccounts(query: any): Observable<GridResult<UserAccountReadModel>>;
|
|
306
306
|
resetPassword(model: any): Observable<Result>;
|
|
307
|
+
sendOtp(model: any): Observable<Result>;
|
|
308
|
+
verifyOtp(model: any): Observable<Result>;
|
|
307
309
|
private buildParams;
|
|
308
310
|
getByUserId(userId: string, query?: any): Observable<UserAccountReadModel>;
|
|
309
311
|
getAuth0UserDetails(email: string): Observable<any>;
|
|
@@ -675,6 +677,7 @@ interface LibraryConfig {
|
|
|
675
677
|
providerName: any;
|
|
676
678
|
isLogout: any;
|
|
677
679
|
navigateUrl?: string;
|
|
680
|
+
loginUrl?: string;
|
|
678
681
|
}
|
|
679
682
|
declare const LIBRARY_CONFIG: InjectionToken<LibraryConfig>;
|
|
680
683
|
|
|
@@ -1219,21 +1222,51 @@ declare class InitialProcessComponent implements OnInit {
|
|
|
1219
1222
|
static ɵcmp: i0.ɵɵComponentDeclaration<InitialProcessComponent, "app-initial-process", never, {}, {}, never, never, false, never>;
|
|
1220
1223
|
}
|
|
1221
1224
|
|
|
1222
|
-
declare class
|
|
1225
|
+
declare class ClaimProcessService {
|
|
1226
|
+
private userDetailService;
|
|
1227
|
+
private roleService;
|
|
1228
|
+
private providerService;
|
|
1229
|
+
private fileService;
|
|
1230
|
+
constructor(userDetailService: UserDetailService, roleService: RolesService, providerService: ProvidersService, fileService: FileService);
|
|
1231
|
+
getPrivacyConfig(appType: string): PrivacyAndTerms;
|
|
1232
|
+
/** Load existing profile by token userId (ref: initial-process getUser + getByUserId) */
|
|
1233
|
+
getUserById(userId: string): Observable<any>;
|
|
1234
|
+
/** Fallback: auth0 account lookup by email (for invite-link without active session) */
|
|
1235
|
+
lookupUser(email: string): Observable<any>;
|
|
1236
|
+
getRoles(): Observable<any>;
|
|
1237
|
+
uploadFile(file: File, pathPrefix: string): Promise<{
|
|
1238
|
+
fileId: string;
|
|
1239
|
+
publicUrl: string;
|
|
1240
|
+
} | null>;
|
|
1241
|
+
buildAssetUrl(relativePath: string, cloudfrontUrl: any): string;
|
|
1242
|
+
submitExistingUser(val: any, userId: string, selectedRoleId: string, isBusinessRole: boolean, providerId: string, headshotFileId: string | null, headshotUrl: string | null, logoFileId: string | null, logoUrl: string | null): Observable<any>;
|
|
1243
|
+
claimNewUser(val: any, userId: string, providerId: string, isBusinessRole: boolean, headshotFileId: string | null, headshotUrl: string | null, logoFileId: string | null, logoUrl: string | null): Observable<any>;
|
|
1244
|
+
sendOtp(): Observable<any>;
|
|
1245
|
+
verifyOtp(otp: string, proposedPassword: string): Observable<any>;
|
|
1246
|
+
generateGuid(): string;
|
|
1247
|
+
isValidGuid(value: any): boolean;
|
|
1248
|
+
private buildUserDetailModel;
|
|
1249
|
+
private buildProviderPayload;
|
|
1250
|
+
private buildNewUserPayload;
|
|
1251
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClaimProcessService, never>;
|
|
1252
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ClaimProcessService>;
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
declare class ClaimProcessComponent implements OnInit, OnDestroy {
|
|
1223
1256
|
private fb;
|
|
1224
1257
|
private route;
|
|
1225
1258
|
private router;
|
|
1226
|
-
private
|
|
1227
|
-
private roleService;
|
|
1259
|
+
private claimService;
|
|
1228
1260
|
private modalService;
|
|
1261
|
+
private tokenService;
|
|
1229
1262
|
libConfig: LibraryConfig;
|
|
1230
1263
|
claimForm: FormGroup;
|
|
1231
1264
|
roles: any[];
|
|
1232
1265
|
noEmailError: boolean;
|
|
1233
|
-
accountNotFound: boolean;
|
|
1234
1266
|
userEmail: string;
|
|
1235
1267
|
isLoadingUser: boolean;
|
|
1236
1268
|
isSubmitting: boolean;
|
|
1269
|
+
uploadStatus: string;
|
|
1237
1270
|
userLookupError: string | null;
|
|
1238
1271
|
submitError: string | null;
|
|
1239
1272
|
submitSuccess: boolean;
|
|
@@ -1242,14 +1275,26 @@ declare class ClaimProcessComponent implements OnInit {
|
|
|
1242
1275
|
validatePage: number;
|
|
1243
1276
|
userHasExistingDetails: boolean;
|
|
1244
1277
|
resetPasswordEnabled: boolean;
|
|
1245
|
-
|
|
1246
|
-
|
|
1278
|
+
showRoleSelect: boolean;
|
|
1279
|
+
passwordStep: number;
|
|
1280
|
+
otpValue: string;
|
|
1281
|
+
isPasswordChanging: boolean;
|
|
1282
|
+
passwordChangeError: string | null;
|
|
1283
|
+
passwordChangeSuccess: boolean;
|
|
1284
|
+
otpMinutes: number;
|
|
1285
|
+
otpSeconds: number;
|
|
1286
|
+
otpExpired: boolean;
|
|
1287
|
+
canResendOtp: boolean;
|
|
1288
|
+
private otpTotalSeconds;
|
|
1289
|
+
private otpIntervalRef;
|
|
1247
1290
|
private pendingUserRole;
|
|
1248
1291
|
private rolesLoaded;
|
|
1249
1292
|
profileFileName: string;
|
|
1250
1293
|
profileFile: File | null;
|
|
1294
|
+
profilePreviewUrl: string;
|
|
1251
1295
|
businessLogoName: string;
|
|
1252
1296
|
businessLogoFile: File | null;
|
|
1297
|
+
logoPreviewUrl: string;
|
|
1253
1298
|
model: {
|
|
1254
1299
|
acceptTerms: boolean;
|
|
1255
1300
|
privacy: boolean;
|
|
@@ -1262,35 +1307,37 @@ declare class ClaimProcessComponent implements OnInit {
|
|
|
1262
1307
|
logo: string;
|
|
1263
1308
|
displayName: string;
|
|
1264
1309
|
};
|
|
1310
|
+
userId: string | null;
|
|
1265
1311
|
googleOptions: {
|
|
1266
1312
|
componentRestrictions: {
|
|
1267
1313
|
country: string[];
|
|
1268
1314
|
};
|
|
1269
1315
|
};
|
|
1270
|
-
/** True when the selected role requires business information. */
|
|
1271
1316
|
get isBusinessRole(): boolean;
|
|
1272
|
-
/** Password fields are shown when there are no existing details OR when the reset toggle is on. */
|
|
1273
1317
|
get showPasswordFields(): boolean;
|
|
1274
|
-
constructor(fb: FormBuilder, route: ActivatedRoute, router: Router,
|
|
1318
|
+
constructor(fb: FormBuilder, route: ActivatedRoute, router: Router, claimService: ClaimProcessService, modalService: BsModalService, tokenService: TokenService, libConfig: LibraryConfig);
|
|
1275
1319
|
private static readonly SESSION_KEY;
|
|
1276
|
-
ngOnInit(): void
|
|
1320
|
+
ngOnInit(): Promise<void>;
|
|
1277
1321
|
get f(): {
|
|
1278
1322
|
[key: string]: AbstractControl<any, any, any>;
|
|
1279
1323
|
};
|
|
1280
|
-
setPrivacyAndTerms(appType: string): void;
|
|
1281
1324
|
openModal(template: TemplateRef<any>, title: string, event: Event): void;
|
|
1282
1325
|
closeModal(): void;
|
|
1283
|
-
/** Called when the "I accept" checkbox is toggled directly. */
|
|
1284
1326
|
onTermsCheckboxChange(event: Event): void;
|
|
1285
|
-
lookupUser(email: string): void;
|
|
1286
|
-
getInitials(): string;
|
|
1287
|
-
getRoles(): void;
|
|
1288
1327
|
/**
|
|
1289
|
-
*
|
|
1290
|
-
*
|
|
1291
|
-
*
|
|
1328
|
+
* Primary path (ref: initial-process getUser).
|
|
1329
|
+
* Called when token returns a userId — fetches the full DB profile and
|
|
1330
|
+
* pre-fills the form so the user can update or complete their profile.
|
|
1331
|
+
*/
|
|
1332
|
+
private loadUserProfile;
|
|
1333
|
+
/**
|
|
1334
|
+
* Fallback path: invite-link without an active session.
|
|
1335
|
+
* Uses auth0 email lookup when no userId is present in the token.
|
|
1292
1336
|
*/
|
|
1337
|
+
private lookupUser;
|
|
1338
|
+
getRoles(): void;
|
|
1293
1339
|
private applyUserRole;
|
|
1340
|
+
private updateRoleValidator;
|
|
1294
1341
|
private updatePasswordValidators;
|
|
1295
1342
|
private updateBusinessRoleValidators;
|
|
1296
1343
|
toggleResetPassword(): void;
|
|
@@ -1298,8 +1345,17 @@ declare class ClaimProcessComponent implements OnInit {
|
|
|
1298
1345
|
onBusinessAddressChange(address: any): void;
|
|
1299
1346
|
onProfileFileChange(event: Event): void;
|
|
1300
1347
|
onBusinessLogoChange(event: Event): void;
|
|
1348
|
+
getAssetUrl(relativePath: string): string;
|
|
1301
1349
|
formatPhone(event: Event): void;
|
|
1302
|
-
onSubmit(): void
|
|
1350
|
+
onSubmit(): Promise<void>;
|
|
1351
|
+
private handleSubmitResult;
|
|
1352
|
+
private handleSubmitError;
|
|
1353
|
+
changePassword(isResend?: boolean): void;
|
|
1354
|
+
verifyPasswordOtp(): void;
|
|
1355
|
+
cancelPasswordChange(): void;
|
|
1356
|
+
private startOtpTimer;
|
|
1357
|
+
private stopOtpTimer;
|
|
1358
|
+
ngOnDestroy(): void;
|
|
1303
1359
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClaimProcessComponent, never>;
|
|
1304
1360
|
static ɵcmp: i0.ɵɵComponentDeclaration<ClaimProcessComponent, "app-claim-process", never, {}, {}, never, never, false, never>;
|
|
1305
1361
|
}
|