@idsoftsource/initial-process 2.7.0 → 2.7.1
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
|
@@ -1248,7 +1248,15 @@ declare class ClaimProcessService {
|
|
|
1248
1248
|
lookupUser(email: string): Observable<any>;
|
|
1249
1249
|
/** Provider/business details by providerId (ref: role-select getprovider) */
|
|
1250
1250
|
getProviderDetails(providerId: string): Observable<any>;
|
|
1251
|
+
/** Save user's industry selections (ref: role-select saveUserIndustries) */
|
|
1252
|
+
saveUserIndustries(payload: any[]): Observable<any>;
|
|
1251
1253
|
getRoles(): Observable<any>;
|
|
1254
|
+
/** Get existing roles assigned to a user (ref: initial-process getUserRoles) */
|
|
1255
|
+
getUserRoles(userId: string): Observable<any>;
|
|
1256
|
+
/** Final save — sets role + user detail (ref: initial-process saveFinal) */
|
|
1257
|
+
initialSetUpCreateUserDetail(model: any): Observable<any>;
|
|
1258
|
+
/** Create or update a business provider (ref: initial-process saveBusiness) */
|
|
1259
|
+
createProvider(payload: any): Observable<any>;
|
|
1252
1260
|
uploadFile(file: File, pathPrefix: string): Promise<{
|
|
1253
1261
|
fileId: string;
|
|
1254
1262
|
publicUrl: string;
|
|
@@ -1267,6 +1275,15 @@ declare class ClaimProcessService {
|
|
|
1267
1275
|
static ɵprov: i0.ɵɵInjectableDeclaration<ClaimProcessService>;
|
|
1268
1276
|
}
|
|
1269
1277
|
|
|
1278
|
+
declare class IndustryService {
|
|
1279
|
+
private http;
|
|
1280
|
+
private readonly baseUrl;
|
|
1281
|
+
getUserIndustry(query: any): Observable<GridResult<any>>;
|
|
1282
|
+
private buildParams;
|
|
1283
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IndustryService, never>;
|
|
1284
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IndustryService>;
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1270
1287
|
declare class ClaimProcessComponent implements OnInit, OnDestroy {
|
|
1271
1288
|
private fb;
|
|
1272
1289
|
private route;
|
|
@@ -1275,12 +1292,42 @@ declare class ClaimProcessComponent implements OnInit, OnDestroy {
|
|
|
1275
1292
|
private modalService;
|
|
1276
1293
|
private tokenService;
|
|
1277
1294
|
private authLogoutService;
|
|
1295
|
+
private industryService;
|
|
1278
1296
|
libConfig: LibraryConfig;
|
|
1279
1297
|
useEmitter: boolean;
|
|
1280
1298
|
loginNavigate: EventEmitter<void>;
|
|
1281
1299
|
initialProcessNavigate: EventEmitter<void>;
|
|
1282
|
-
|
|
1283
|
-
|
|
1300
|
+
userForm: FormGroup;
|
|
1301
|
+
companyForm: FormGroup;
|
|
1302
|
+
userRoles: any[];
|
|
1303
|
+
selectedRoleValue: string | null;
|
|
1304
|
+
selectedRole: any;
|
|
1305
|
+
isBusiness: boolean;
|
|
1306
|
+
assignProviderRoleModel: any;
|
|
1307
|
+
userViewRoles: ({
|
|
1308
|
+
name: string;
|
|
1309
|
+
value: string;
|
|
1310
|
+
img: string;
|
|
1311
|
+
selected: boolean;
|
|
1312
|
+
code: null;
|
|
1313
|
+
id: string;
|
|
1314
|
+
roleId: string;
|
|
1315
|
+
} | {
|
|
1316
|
+
name: string;
|
|
1317
|
+
value: string;
|
|
1318
|
+
img: string;
|
|
1319
|
+
selected: boolean;
|
|
1320
|
+
code: ProviderType;
|
|
1321
|
+
id: string;
|
|
1322
|
+
roleId: string;
|
|
1323
|
+
})[];
|
|
1324
|
+
industries: any[];
|
|
1325
|
+
expYears: {
|
|
1326
|
+
text: string;
|
|
1327
|
+
value: number;
|
|
1328
|
+
}[];
|
|
1329
|
+
jobTitles: LookupItem1<number>[];
|
|
1330
|
+
isIndustriesLoading: boolean;
|
|
1284
1331
|
isInitializing: boolean;
|
|
1285
1332
|
noEmailError: boolean;
|
|
1286
1333
|
showAccountNotFound: boolean;
|
|
@@ -1296,6 +1343,8 @@ declare class ClaimProcessComponent implements OnInit, OnDestroy {
|
|
|
1296
1343
|
uploadStatus: string;
|
|
1297
1344
|
userLookupError: string | null;
|
|
1298
1345
|
submitError: string | null;
|
|
1346
|
+
userError: string | null;
|
|
1347
|
+
providerError: string | null;
|
|
1299
1348
|
submitSuccess: boolean;
|
|
1300
1349
|
showPassword: boolean;
|
|
1301
1350
|
showConfirmPassword: boolean;
|
|
@@ -1303,7 +1352,6 @@ declare class ClaimProcessComponent implements OnInit, OnDestroy {
|
|
|
1303
1352
|
userHasExistingDetails: boolean;
|
|
1304
1353
|
isInitialSetupCompleted: boolean;
|
|
1305
1354
|
resetPasswordEnabled: boolean;
|
|
1306
|
-
showRoleSelect: boolean;
|
|
1307
1355
|
setPasswordEnabled: boolean;
|
|
1308
1356
|
passwordStep: number;
|
|
1309
1357
|
otpValue: string;
|
|
@@ -1316,14 +1364,14 @@ declare class ClaimProcessComponent implements OnInit, OnDestroy {
|
|
|
1316
1364
|
canResendOtp: boolean;
|
|
1317
1365
|
private otpTotalSeconds;
|
|
1318
1366
|
private otpIntervalRef;
|
|
1319
|
-
private pendingUserRole;
|
|
1320
|
-
private rolesLoaded;
|
|
1321
1367
|
profileFileName: string;
|
|
1322
1368
|
profileFile: File | null;
|
|
1323
1369
|
profilePreviewUrl: string;
|
|
1324
1370
|
businessLogoName: string;
|
|
1325
1371
|
businessLogoFile: File | null;
|
|
1326
1372
|
logoPreviewUrl: string;
|
|
1373
|
+
private user;
|
|
1374
|
+
private logo;
|
|
1327
1375
|
model: {
|
|
1328
1376
|
acceptTerms: boolean;
|
|
1329
1377
|
privacy: boolean;
|
|
@@ -1342,7 +1390,15 @@ declare class ClaimProcessComponent implements OnInit, OnDestroy {
|
|
|
1342
1390
|
country: string[];
|
|
1343
1391
|
};
|
|
1344
1392
|
};
|
|
1345
|
-
|
|
1393
|
+
private static readonly SESSION_KEY;
|
|
1394
|
+
/** userForm controls accessor */
|
|
1395
|
+
get u(): {
|
|
1396
|
+
[key: string]: AbstractControl<any, any, any>;
|
|
1397
|
+
};
|
|
1398
|
+
/** companyForm controls accessor */
|
|
1399
|
+
get c(): {
|
|
1400
|
+
[key: string]: AbstractControl<any, any, any>;
|
|
1401
|
+
};
|
|
1346
1402
|
get showPasswordFields(): boolean;
|
|
1347
1403
|
get sectionPersonalDone(): boolean;
|
|
1348
1404
|
get sectionAddressDone(): boolean;
|
|
@@ -1351,39 +1407,42 @@ declare class ClaimProcessComponent implements OnInit, OnDestroy {
|
|
|
1351
1407
|
get sectionBusinessDone(): boolean;
|
|
1352
1408
|
get sectionPhotoDone(): boolean;
|
|
1353
1409
|
get overallProgress(): number;
|
|
1354
|
-
constructor(fb: FormBuilder, route: ActivatedRoute, router: Router, claimService: ClaimProcessService, modalService: BsModalService, tokenService: TokenService, authLogoutService: AuthLogoutService, libConfig: LibraryConfig);
|
|
1355
|
-
private static readonly SESSION_KEY;
|
|
1410
|
+
constructor(fb: FormBuilder, route: ActivatedRoute, router: Router, claimService: ClaimProcessService, modalService: BsModalService, tokenService: TokenService, authLogoutService: AuthLogoutService, industryService: IndustryService, libConfig: LibraryConfig);
|
|
1356
1411
|
ngOnInit(): Promise<void>;
|
|
1357
|
-
get f(): {
|
|
1358
|
-
[key: string]: AbstractControl<any, any, any>;
|
|
1359
|
-
};
|
|
1360
|
-
openModal(template: TemplateRef<any>, title: string, event: Event): void;
|
|
1361
|
-
closeModal(): void;
|
|
1362
|
-
onTermsCheckboxChange(event: Event): void;
|
|
1363
|
-
/**
|
|
1364
|
-
* Primary path (ref: initial-process getUser).
|
|
1365
|
-
* Called when token returns a userId — fetches the full DB profile and
|
|
1366
|
-
* pre-fills the form so the user can update or complete their profile.
|
|
1367
|
-
*/
|
|
1368
1412
|
private lookupAuth0Account;
|
|
1369
|
-
private
|
|
1370
|
-
private
|
|
1413
|
+
private getYears;
|
|
1414
|
+
private getIndustries;
|
|
1415
|
+
private getUserDetail;
|
|
1371
1416
|
getRoles(): void;
|
|
1372
|
-
|
|
1373
|
-
private
|
|
1417
|
+
/** Load user's existing role and pre-select the card (ref: initial-process getUserRoles) */
|
|
1418
|
+
private loadUserRoles;
|
|
1419
|
+
/** Handle role card click (ref: initial-process selectedUserRole) */
|
|
1420
|
+
selectedUserRole(role: any): void;
|
|
1421
|
+
private loadProviderDetails;
|
|
1374
1422
|
private updatePasswordValidators;
|
|
1423
|
+
private updateBusinessValidators;
|
|
1375
1424
|
toggleSetPassword(): void;
|
|
1376
|
-
private updateBusinessRoleValidators;
|
|
1377
1425
|
toggleResetPassword(): void;
|
|
1378
1426
|
onAddressChange(address: any): void;
|
|
1379
1427
|
onBusinessAddressChange(address: any): void;
|
|
1380
1428
|
onProfileFileChange(event: Event): void;
|
|
1381
1429
|
onBusinessLogoChange(event: Event): void;
|
|
1382
1430
|
getAssetUrl(relativePath: string): string;
|
|
1383
|
-
formatPhone(event: Event): void;
|
|
1431
|
+
formatPhone(event: Event, formType?: 'user' | 'company'): void;
|
|
1432
|
+
private bindUserDetails;
|
|
1433
|
+
/** ref: initial-process bindProviderDetails + role-select bindProviderDetails */
|
|
1434
|
+
private bindProviderDetails;
|
|
1435
|
+
private formatDateTime;
|
|
1384
1436
|
onSubmit(): Promise<void>;
|
|
1385
|
-
|
|
1386
|
-
private
|
|
1437
|
+
/** ref: initial-process saveBusiness — create provider first, then saveFinal */
|
|
1438
|
+
private saveBusiness;
|
|
1439
|
+
/** ref: initial-process saveFinal — calls initialSetUpCreateUserDetail */
|
|
1440
|
+
private saveFinal;
|
|
1441
|
+
/** ref: role-select saveUserIndustries */
|
|
1442
|
+
private saveUserIndustries;
|
|
1443
|
+
openModal(template: TemplateRef<any>, title: string, event: Event): void;
|
|
1444
|
+
closeModal(): void;
|
|
1445
|
+
onTermsCheckboxChange(event: Event): void;
|
|
1387
1446
|
changePassword(isResend?: boolean): void;
|
|
1388
1447
|
verifyPasswordOtp(): void;
|
|
1389
1448
|
cancelPasswordChange(): void;
|
|
@@ -2376,15 +2435,6 @@ declare enum EmployeeDesignation {
|
|
|
2376
2435
|
IndependentContractor = 3
|
|
2377
2436
|
}
|
|
2378
2437
|
|
|
2379
|
-
declare class IndustryService {
|
|
2380
|
-
private http;
|
|
2381
|
-
private readonly baseUrl;
|
|
2382
|
-
getUserIndustry(query: any): Observable<GridResult<any>>;
|
|
2383
|
-
private buildParams;
|
|
2384
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IndustryService, never>;
|
|
2385
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<IndustryService>;
|
|
2386
|
-
}
|
|
2387
|
-
|
|
2388
2438
|
interface UserFormControls {
|
|
2389
2439
|
firstName: FormControl<any | null>;
|
|
2390
2440
|
lastName: FormControl<any | null>;
|