@tomei/sso 0.60.4-dev.12 → 0.60.4-dev.13
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/src/components/login-user/interfaces/user-info.interface.d.ts +1 -0
- package/dist/src/components/login-user/login-user.js +1 -0
- package/dist/src/components/login-user/login-user.js.map +1 -1
- package/dist/src/components/login-user/user.d.ts +3 -0
- package/dist/src/components/login-user/user.js +23 -0
- package/dist/src/components/login-user/user.js.map +1 -1
- package/dist/src/models/user.entity.d.ts +1 -0
- package/dist/src/models/user.entity.js +7 -0
- package/dist/src/models/user.entity.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/migrations/20250805085707-add-bulk-approval-code-to-sso-user.js +29 -0
- package/package.json +1 -1
- package/src/components/login-user/interfaces/user-info.interface.ts +1 -0
- package/src/components/login-user/login-user.ts +1 -0
- package/src/components/login-user/user.ts +26 -0
- package/src/models/user.entity.ts +6 -0
@@ -0,0 +1,29 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
module.exports = {
|
4
|
+
up: async (queryInterface, Sequelize) => {
|
5
|
+
const transaction = await queryInterface.sequelize.transaction();
|
6
|
+
try {
|
7
|
+
await queryInterface.addColumn('sso_User', 'BulkApprovalCode', {
|
8
|
+
type: Sequelize.STRING(100),
|
9
|
+
allowNull: true,
|
10
|
+
});
|
11
|
+
|
12
|
+
await transaction.commit();
|
13
|
+
} catch (error) {
|
14
|
+
await transaction.rollback();
|
15
|
+
throw error;
|
16
|
+
}
|
17
|
+
},
|
18
|
+
|
19
|
+
down: async (queryInterface, Sequelize) => {
|
20
|
+
const transaction = await queryInterface.sequelize.transaction();
|
21
|
+
try {
|
22
|
+
await queryInterface.removeColumn('sso_User', 'BulkApprovalCode');
|
23
|
+
await transaction.commit();
|
24
|
+
} catch (error) {
|
25
|
+
await transaction.rollback();
|
26
|
+
throw error;
|
27
|
+
}
|
28
|
+
},
|
29
|
+
};
|
package/package.json
CHANGED
@@ -62,6 +62,7 @@ export class LoginUser extends User implements ILoginUser {
|
|
62
62
|
MFAEnabled: user.MFAEnabled,
|
63
63
|
MFAConfig: user.MFAConfig,
|
64
64
|
MFABypassYN: user.MFABypassYN,
|
65
|
+
BulkApprovalCode: user.BulkApprovalCode,
|
65
66
|
RecoveryEmail: user.RecoveryEmail,
|
66
67
|
FailedLoginAttemptCount: user.FailedLoginAttemptCount,
|
67
68
|
LastFailedLoginAt: user.LastFailedLoginAt,
|
@@ -50,6 +50,7 @@ export class User extends UserBase {
|
|
50
50
|
private _MFAEnabled: number;
|
51
51
|
private _MFAConfig: string;
|
52
52
|
private _MFABypassYN: string;
|
53
|
+
private _BulkApprovalCode: string;
|
53
54
|
private _RecoveryEmail: string;
|
54
55
|
private _FailedLoginAttemptCount: number;
|
55
56
|
private _LastFailedLoginAt: Date;
|
@@ -171,6 +172,14 @@ export class User extends UserBase {
|
|
171
172
|
this._MFABypassYN = value;
|
172
173
|
}
|
173
174
|
|
175
|
+
get BulkApprovalCode(): string {
|
176
|
+
return this._BulkApprovalCode;
|
177
|
+
}
|
178
|
+
|
179
|
+
private set BulkApprovalCode(value: string) {
|
180
|
+
this._BulkApprovalCode = value;
|
181
|
+
}
|
182
|
+
|
174
183
|
get RecoveryEmail(): string {
|
175
184
|
return this._RecoveryEmail;
|
176
185
|
}
|
@@ -306,6 +315,7 @@ export class User extends UserBase {
|
|
306
315
|
this.MFAEnabled = userInfo.MFAEnabled;
|
307
316
|
this.MFAConfig = userInfo.MFAConfig;
|
308
317
|
this.MFABypassYN = userInfo.MFABypassYN;
|
318
|
+
this.BulkApprovalCode = userInfo.BulkApprovalCode;
|
309
319
|
this.RecoveryEmail = userInfo.RecoveryEmail;
|
310
320
|
this.FailedLoginAttemptCount = userInfo.FailedLoginAttemptCount;
|
311
321
|
this.LastFailedLoginAt = userInfo.LastFailedLoginAt;
|
@@ -363,6 +373,7 @@ export class User extends UserBase {
|
|
363
373
|
MFAEnabled: user.MFAEnabled,
|
364
374
|
MFAConfig: user.MFAConfig,
|
365
375
|
MFABypassYN: user.MFABypassYN,
|
376
|
+
BulkApprovalCode: user.BulkApprovalCode,
|
366
377
|
RecoveryEmail: user.RecoveryEmail,
|
367
378
|
FailedLoginAttemptCount: user.FailedLoginAttemptCount,
|
368
379
|
LastFailedLoginAt: user.LastFailedLoginAt,
|
@@ -428,6 +439,7 @@ export class User extends UserBase {
|
|
428
439
|
MFAEnabled: user.MFAEnabled,
|
429
440
|
MFAConfig: user.MFAConfig,
|
430
441
|
MFABypassYN: user.MFABypassYN,
|
442
|
+
BulkApprovalCode: user.BulkApprovalCode,
|
431
443
|
RecoveryEmail: user.RecoveryEmail,
|
432
444
|
FailedLoginAttemptCount: user.FailedLoginAttemptCount,
|
433
445
|
LastFailedLoginAt: user.LastFailedLoginAt,
|
@@ -523,6 +535,7 @@ export class User extends UserBase {
|
|
523
535
|
MFAEnabled: user.MFAEnabled,
|
524
536
|
MFAConfig: user.MFAConfig,
|
525
537
|
MFABypassYN: user.MFABypassYN,
|
538
|
+
BulkApprovalCode: user.BulkApprovalCode,
|
526
539
|
RecoveryEmail: user.RecoveryEmail,
|
527
540
|
FailedLoginAttemptCount: user.FailedLoginAttemptCount,
|
528
541
|
LastFailedLoginAt: user.LastFailedLoginAt,
|
@@ -1587,6 +1600,7 @@ export class User extends UserBase {
|
|
1587
1600
|
MFAEnabled: null,
|
1588
1601
|
MFAConfig: null,
|
1589
1602
|
MFABypassYN: YN.No,
|
1603
|
+
BulkApprovalCode: null,
|
1590
1604
|
RecoveryEmail: null,
|
1591
1605
|
FailedLoginAttemptCount: 0,
|
1592
1606
|
LastFailedLoginAt: null,
|
@@ -2653,6 +2667,7 @@ export class User extends UserBase {
|
|
2653
2667
|
MFAEnabled: user.MFAEnabled,
|
2654
2668
|
MFAConfig: user.MFAConfig,
|
2655
2669
|
MFABypassYN: user.MFABypassYN,
|
2670
|
+
BulkApprovalCode: user.BulkApprovalCode,
|
2656
2671
|
RecoveryEmail: user.RecoveryEmail,
|
2657
2672
|
FailedLoginAttemptCount: user.FailedLoginAttemptCount,
|
2658
2673
|
LastFailedLoginAt: user.LastFailedLoginAt,
|
@@ -2780,6 +2795,7 @@ export class User extends UserBase {
|
|
2780
2795
|
MFAEnabled: user.MFAEnabled,
|
2781
2796
|
MFAConfig: user.MFAConfig,
|
2782
2797
|
MFABypassYN: user.MFABypassYN,
|
2798
|
+
BulkApprovalCode: user.BulkApprovalCode,
|
2783
2799
|
RecoveryEmail: user.RecoveryEmail,
|
2784
2800
|
FailedLoginAttemptCount: user.FailedLoginAttemptCount,
|
2785
2801
|
LastFailedLoginAt: user.LastFailedLoginAt,
|
@@ -2844,6 +2860,7 @@ export class User extends UserBase {
|
|
2844
2860
|
MFAEnabled: this.MFAEnabled,
|
2845
2861
|
MFAConfig: this.MFAConfig,
|
2846
2862
|
MFABypassYN: this.MFABypassYN,
|
2863
|
+
BulkApprovalCode: this.BulkApprovalCode,
|
2847
2864
|
RecoveryEmail: this.RecoveryEmail,
|
2848
2865
|
FailedLoginAttemptCount: this.FailedLoginAttemptCount,
|
2849
2866
|
LastFailedLoginAt: this.LastFailedLoginAt,
|
@@ -2876,6 +2893,7 @@ export class User extends UserBase {
|
|
2876
2893
|
MFAEnabled: this.MFAEnabled,
|
2877
2894
|
MFAConfig: this.MFAConfig,
|
2878
2895
|
MFABypassYN: this.MFABypassYN,
|
2896
|
+
BulkApprovalCode: this.BulkApprovalCode,
|
2879
2897
|
RecoveryEmail: this.RecoveryEmail,
|
2880
2898
|
FailedLoginAttemptCount: this.FailedLoginAttemptCount,
|
2881
2899
|
LastFailedLoginAt: this.LastFailedLoginAt,
|
@@ -2967,6 +2985,7 @@ export class User extends UserBase {
|
|
2967
2985
|
MFAEnabled: this.MFAEnabled,
|
2968
2986
|
MFAConfig: this.MFAConfig,
|
2969
2987
|
MFABypassYN: this.MFABypassYN,
|
2988
|
+
BulkApprovalCode: this.BulkApprovalCode,
|
2970
2989
|
RecoveryEmail: this.RecoveryEmail,
|
2971
2990
|
FailedLoginAttemptCount: this.FailedLoginAttemptCount,
|
2972
2991
|
LastFailedLoginAt: this.LastFailedLoginAt,
|
@@ -2999,6 +3018,7 @@ export class User extends UserBase {
|
|
2999
3018
|
MFAEnabled: this.MFAEnabled,
|
3000
3019
|
MFAConfig: this.MFAConfig,
|
3001
3020
|
MFABypassYN: this.MFABypassYN,
|
3021
|
+
BulkApprovalCode: this.BulkApprovalCode,
|
3002
3022
|
RecoveryEmail: this.RecoveryEmail,
|
3003
3023
|
FailedLoginAttemptCount: this.FailedLoginAttemptCount,
|
3004
3024
|
LastFailedLoginAt: this.LastFailedLoginAt,
|
@@ -3232,6 +3252,7 @@ export class User extends UserBase {
|
|
3232
3252
|
MFAEnabled: this.MFAEnabled,
|
3233
3253
|
MFAConfig: this.MFAConfig,
|
3234
3254
|
MFABypassYN: this.MFABypassYN,
|
3255
|
+
BulkApprovalCode: this.BulkApprovalCode,
|
3235
3256
|
RecoveryEmail: this.RecoveryEmail,
|
3236
3257
|
FailedLoginAttemptCount: this.FailedLoginAttemptCount,
|
3237
3258
|
LastFailedLoginAt: this.LastFailedLoginAt,
|
@@ -3282,6 +3303,7 @@ export class User extends UserBase {
|
|
3282
3303
|
MFAEnabled: this.MFAEnabled,
|
3283
3304
|
MFAConfig: this.MFAConfig,
|
3284
3305
|
MFABypassYN: this.MFABypassYN,
|
3306
|
+
BulkApprovalCode: this.BulkApprovalCode,
|
3285
3307
|
RecoveryEmail: this.RecoveryEmail,
|
3286
3308
|
FailedLoginAttemptCount: this.FailedLoginAttemptCount,
|
3287
3309
|
LastFailedLoginAt: this.LastFailedLoginAt,
|
@@ -3354,6 +3376,7 @@ export class User extends UserBase {
|
|
3354
3376
|
MFAEnabled: this.MFAEnabled,
|
3355
3377
|
MFAConfig: this.MFAConfig,
|
3356
3378
|
MFABypassYN: this.MFABypassYN,
|
3379
|
+
BulkApprovalCode: this.BulkApprovalCode,
|
3357
3380
|
RecoveryEmail: this.RecoveryEmail,
|
3358
3381
|
FailedLoginAttemptCount: this.FailedLoginAttemptCount,
|
3359
3382
|
LastFailedLoginAt: this.LastFailedLoginAt,
|
@@ -3404,6 +3427,7 @@ export class User extends UserBase {
|
|
3404
3427
|
MFAEnabled: this.MFAEnabled,
|
3405
3428
|
MFAConfig: this.MFAConfig,
|
3406
3429
|
MFABypassYN: this.MFABypassYN,
|
3430
|
+
BulkApprovalCode: this.BulkApprovalCode,
|
3407
3431
|
RecoveryEmail: this.RecoveryEmail,
|
3408
3432
|
FailedLoginAttemptCount: this.FailedLoginAttemptCount,
|
3409
3433
|
LastFailedLoginAt: this.LastFailedLoginAt,
|
@@ -3476,6 +3500,7 @@ export class User extends UserBase {
|
|
3476
3500
|
MFAEnabled: this.MFAEnabled,
|
3477
3501
|
MFAConfig: this.MFAConfig,
|
3478
3502
|
MFABypassYN: this.MFABypassYN,
|
3503
|
+
BulkApprovalCode: this.BulkApprovalCode,
|
3479
3504
|
RecoveryEmail: this.RecoveryEmail,
|
3480
3505
|
FailedLoginAttemptCount: this.FailedLoginAttemptCount,
|
3481
3506
|
LastFailedLoginAt: this.LastFailedLoginAt,
|
@@ -3526,6 +3551,7 @@ export class User extends UserBase {
|
|
3526
3551
|
MFAEnabled: this.MFAEnabled,
|
3527
3552
|
MFAConfig: this.MFAConfig,
|
3528
3553
|
MFABypassYN: this.MFABypassYN,
|
3554
|
+
BulkApprovalCode: this.BulkApprovalCode,
|
3529
3555
|
RecoveryEmail: this.RecoveryEmail,
|
3530
3556
|
FailedLoginAttemptCount: this.FailedLoginAttemptCount,
|
3531
3557
|
LastFailedLoginAt: this.LastFailedLoginAt,
|