@ngx-smz/core 21.4.1 → 21.4.2
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.
|
@@ -11636,26 +11636,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
|
|
|
11636
11636
|
args: [{ providedIn: 'root' }]
|
|
11637
11637
|
}], ctorParameters: () => [{ type: i1$8.HttpClient }] });
|
|
11638
11638
|
|
|
11639
|
-
const SmzUiEnvironment = {
|
|
11640
|
-
production: false,
|
|
11641
|
-
serverUrl: '',
|
|
11642
|
-
authenticationApi: '',
|
|
11643
|
-
baseHref: ''
|
|
11644
|
-
};
|
|
11645
|
-
class NgxSmzUiConfig {
|
|
11646
|
-
debugMode;
|
|
11647
|
-
legacyMode;
|
|
11648
|
-
rbkUtils;
|
|
11649
|
-
tables;
|
|
11650
|
-
dialogs;
|
|
11651
|
-
layouts;
|
|
11652
|
-
locale;
|
|
11653
|
-
}
|
|
11654
|
-
|
|
11655
11639
|
class AuthenticationService extends BaseApiService {
|
|
11656
11640
|
http;
|
|
11657
11641
|
environment = inject(SmzEnvironment);
|
|
11658
|
-
config = inject(NgxSmzUiConfig);
|
|
11659
11642
|
constructor(http) {
|
|
11660
11643
|
super();
|
|
11661
11644
|
this.http = http;
|
|
@@ -11664,49 +11647,49 @@ class AuthenticationService extends BaseApiService {
|
|
|
11664
11647
|
return buildServerApiUrl(this.environment.serverUrl, route);
|
|
11665
11648
|
}
|
|
11666
11649
|
sendResetPasswordEmail(data) {
|
|
11667
|
-
const route =
|
|
11650
|
+
const route = GlobalInjector.config.rbkUtils.authentication.endpointsRoutes.resetPassword;
|
|
11668
11651
|
return this.http.post(this.buildUrl(route), data, this.generateDefaultHeaders({}));
|
|
11669
11652
|
}
|
|
11670
11653
|
redefinePassword(data) {
|
|
11671
|
-
const route =
|
|
11654
|
+
const route = GlobalInjector.config.rbkUtils.authentication.endpointsRoutes.redefinePassword;
|
|
11672
11655
|
return this.http.post(this.buildUrl(route), data, this.generateDefaultHeaders({}));
|
|
11673
11656
|
}
|
|
11674
11657
|
resendEmailConfirmation(data) {
|
|
11675
|
-
const route =
|
|
11658
|
+
const route = GlobalInjector.config.rbkUtils.authentication.endpointsRoutes.resendConfirmation;
|
|
11676
11659
|
return this.http.post(this.buildUrl(route), data, this.generateDefaultHeaders({}));
|
|
11677
11660
|
}
|
|
11678
11661
|
confirmEmail() {
|
|
11679
|
-
const route =
|
|
11662
|
+
const route = GlobalInjector.config.rbkUtils.authentication.endpointsRoutes.confirmEmail;
|
|
11680
11663
|
return this.http.get(this.buildUrl(route), this.generateDefaultHeaders({}));
|
|
11681
11664
|
}
|
|
11682
11665
|
switchTenant(data) {
|
|
11683
|
-
const route =
|
|
11666
|
+
const route = GlobalInjector.config.rbkUtils.authentication.endpointsRoutes.switchTenant;
|
|
11684
11667
|
return this.http.post(this.buildUrl(route), data, this.generateDefaultHeaders({}));
|
|
11685
11668
|
}
|
|
11686
11669
|
// Todo
|
|
11687
11670
|
changePassword(data) {
|
|
11688
|
-
const route =
|
|
11671
|
+
const route = GlobalInjector.config.rbkUtils.authentication.endpointsRoutes.changePassword;
|
|
11689
11672
|
return this.http.post(this.buildUrl(route), data, this.generateDefaultHeaders({}));
|
|
11690
11673
|
}
|
|
11691
11674
|
// Todo
|
|
11692
11675
|
registerAnonymously(data) {
|
|
11693
|
-
const route =
|
|
11676
|
+
const route = GlobalInjector.config.rbkUtils.authentication.endpointsRoutes.register;
|
|
11694
11677
|
return this.http.post(this.buildUrl(route), data, this.generateDefaultHeaders({}));
|
|
11695
11678
|
}
|
|
11696
11679
|
createUser(data) {
|
|
11697
|
-
const route =
|
|
11680
|
+
const route = GlobalInjector.config.rbkUtils.authentication.endpointsRoutes.createUser;
|
|
11698
11681
|
return this.http.post(this.buildUrl(route), data, this.generateDefaultHeaders({}));
|
|
11699
11682
|
}
|
|
11700
11683
|
deleteUser(data) {
|
|
11701
|
-
const route =
|
|
11684
|
+
const route = GlobalInjector.config.rbkUtils.authentication.endpointsRoutes.deleteUser;
|
|
11702
11685
|
return this.http.post(this.buildUrl(route), data, this.generateDefaultHeaders({}));
|
|
11703
11686
|
}
|
|
11704
11687
|
deactivateUser(data) {
|
|
11705
|
-
const route =
|
|
11688
|
+
const route = GlobalInjector.config.rbkUtils.authentication.endpointsRoutes.deactivateUser;
|
|
11706
11689
|
return this.http.post(this.buildUrl(route), data, this.generateDefaultHeaders({}));
|
|
11707
11690
|
}
|
|
11708
11691
|
activateUser(data) {
|
|
11709
|
-
const route =
|
|
11692
|
+
const route = GlobalInjector.config.rbkUtils.authentication.endpointsRoutes.activateUser;
|
|
11710
11693
|
return this.http.post(this.buildUrl(route), data, this.generateDefaultHeaders({}));
|
|
11711
11694
|
}
|
|
11712
11695
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AuthenticationService, deps: [{ token: i1$8.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -30564,7 +30547,6 @@ var TenantsActions;
|
|
|
30564
30547
|
class AuthorizationService extends BaseApiService {
|
|
30565
30548
|
http;
|
|
30566
30549
|
environment = inject(SmzEnvironment);
|
|
30567
|
-
config = inject(NgxSmzUiConfig);
|
|
30568
30550
|
constructor(http) {
|
|
30569
30551
|
super();
|
|
30570
30552
|
this.http = http;
|
|
@@ -30573,79 +30555,79 @@ class AuthorizationService extends BaseApiService {
|
|
|
30573
30555
|
return buildServerApiUrl(this.environment.serverUrl, route);
|
|
30574
30556
|
}
|
|
30575
30557
|
getAllClaims() {
|
|
30576
|
-
const route =
|
|
30558
|
+
const route = GlobalInjector.config.rbkUtils.authorization.endpointsRoutes.getAllClaims;
|
|
30577
30559
|
return this.http.get(this.buildUrl(route), this.generateDefaultHeaders({}));
|
|
30578
30560
|
}
|
|
30579
30561
|
createClaim(data) {
|
|
30580
|
-
const route =
|
|
30562
|
+
const route = GlobalInjector.config.rbkUtils.authorization.endpointsRoutes.createClaim;
|
|
30581
30563
|
return this.http.post(this.buildUrl(route), data, this.generateDefaultHeaders({}));
|
|
30582
30564
|
}
|
|
30583
30565
|
updateClaim(data) {
|
|
30584
|
-
const route =
|
|
30566
|
+
const route = GlobalInjector.config.rbkUtils.authorization.endpointsRoutes.updateClaim;
|
|
30585
30567
|
return this.http.put(this.buildUrl(route), data, this.generateDefaultHeaders({}));
|
|
30586
30568
|
}
|
|
30587
30569
|
deleteClaim(id) {
|
|
30588
|
-
const route =
|
|
30570
|
+
const route = GlobalInjector.config.rbkUtils.authorization.endpointsRoutes.deleteClaim;
|
|
30589
30571
|
return this.http.delete(`${this.buildUrl(route)}/${id}`, this.generateDefaultHeaders({}));
|
|
30590
30572
|
}
|
|
30591
30573
|
protectClaim(data) {
|
|
30592
|
-
const route =
|
|
30574
|
+
const route = GlobalInjector.config.rbkUtils.authorization.endpointsRoutes.protectClaim;
|
|
30593
30575
|
return this.http.post(this.buildUrl(route), data, this.generateDefaultHeaders({}));
|
|
30594
30576
|
}
|
|
30595
30577
|
unprotectClaim(data) {
|
|
30596
|
-
const route =
|
|
30578
|
+
const route = GlobalInjector.config.rbkUtils.authorization.endpointsRoutes.unprotectClaim;
|
|
30597
30579
|
return this.http.post(this.buildUrl(route), data, this.generateDefaultHeaders({}));
|
|
30598
30580
|
}
|
|
30599
30581
|
getAllRoles() {
|
|
30600
|
-
const route =
|
|
30582
|
+
const route = GlobalInjector.config.rbkUtils.authorization.endpointsRoutes.getAllRoles;
|
|
30601
30583
|
return this.http.get(this.buildUrl(route), this.generateDefaultHeaders({}));
|
|
30602
30584
|
}
|
|
30603
30585
|
createRole(data) {
|
|
30604
|
-
const route =
|
|
30586
|
+
const route = GlobalInjector.config.rbkUtils.authorization.endpointsRoutes.createRole;
|
|
30605
30587
|
return this.http.post(this.buildUrl(route), data, this.generateDefaultHeaders({}));
|
|
30606
30588
|
}
|
|
30607
30589
|
updateRole(data) {
|
|
30608
|
-
const route =
|
|
30590
|
+
const route = GlobalInjector.config.rbkUtils.authorization.endpointsRoutes.updateRole;
|
|
30609
30591
|
return this.http.put(this.buildUrl(route), data, this.generateDefaultHeaders({}));
|
|
30610
30592
|
}
|
|
30611
30593
|
deleteRole(id) {
|
|
30612
|
-
const route =
|
|
30594
|
+
const route = GlobalInjector.config.rbkUtils.authorization.endpointsRoutes.deleteRole;
|
|
30613
30595
|
return this.http.delete(`${this.buildUrl(route)}/${id}`, this.generateDefaultHeaders({}));
|
|
30614
30596
|
}
|
|
30615
30597
|
updateRoleClaims(data) {
|
|
30616
|
-
const route =
|
|
30598
|
+
const route = GlobalInjector.config.rbkUtils.authorization.endpointsRoutes.updateRoleClaims;
|
|
30617
30599
|
return this.http.post(this.buildUrl(route), data, this.generateDefaultHeaders({}));
|
|
30618
30600
|
}
|
|
30619
30601
|
getAllUsers() {
|
|
30620
|
-
const route =
|
|
30602
|
+
const route = GlobalInjector.config.rbkUtils.authorization.endpointsRoutes.getAllUsers;
|
|
30621
30603
|
return this.http.get(this.buildUrl(route), this.generateDefaultHeaders({}));
|
|
30622
30604
|
}
|
|
30623
30605
|
updateUserRoles(data) {
|
|
30624
|
-
const route =
|
|
30606
|
+
const route = GlobalInjector.config.rbkUtils.authorization.endpointsRoutes.updateUserRoles;
|
|
30625
30607
|
return this.http.post(this.buildUrl(route), data, this.generateDefaultHeaders({}));
|
|
30626
30608
|
}
|
|
30627
30609
|
addClaimsToUser(data) {
|
|
30628
|
-
const route =
|
|
30610
|
+
const route = GlobalInjector.config.rbkUtils.authorization.endpointsRoutes.addClaimsToUser;
|
|
30629
30611
|
return this.http.post(this.buildUrl(route), data, this.generateDefaultHeaders({}));
|
|
30630
30612
|
}
|
|
30631
30613
|
removeClaimsFromUser(data) {
|
|
30632
|
-
const route =
|
|
30614
|
+
const route = GlobalInjector.config.rbkUtils.authorization.endpointsRoutes.removeClaimsFromUser;
|
|
30633
30615
|
return this.http.post(this.buildUrl(route), data, this.generateDefaultHeaders({}));
|
|
30634
30616
|
}
|
|
30635
30617
|
getAllTenants() {
|
|
30636
|
-
const route =
|
|
30618
|
+
const route = GlobalInjector.config.rbkUtils.authorization.endpointsRoutes.getAllTenants;
|
|
30637
30619
|
return this.http.get(this.buildUrl(route), this.generateDefaultHeaders({}));
|
|
30638
30620
|
}
|
|
30639
30621
|
createTenant(data) {
|
|
30640
|
-
const route =
|
|
30622
|
+
const route = GlobalInjector.config.rbkUtils.authorization.endpointsRoutes.createTenant;
|
|
30641
30623
|
return this.http.post(this.buildUrl(route), data, this.generateDefaultHeaders({}));
|
|
30642
30624
|
}
|
|
30643
30625
|
updateTenant(data) {
|
|
30644
|
-
const route =
|
|
30626
|
+
const route = GlobalInjector.config.rbkUtils.authorization.endpointsRoutes.updateTenant;
|
|
30645
30627
|
return this.http.put(this.buildUrl(route), data, this.generateDefaultHeaders({}));
|
|
30646
30628
|
}
|
|
30647
30629
|
deleteTenant(id) {
|
|
30648
|
-
const route =
|
|
30630
|
+
const route = GlobalInjector.config.rbkUtils.authorization.endpointsRoutes.deleteTenant;
|
|
30649
30631
|
return this.http.delete(`${this.buildUrl(route)}/${id}`, this.generateDefaultHeaders({}));
|
|
30650
30632
|
}
|
|
30651
30633
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: AuthorizationService, deps: [{ token: i1$8.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -33143,6 +33125,22 @@ const featureSmzAccessStates = {};
|
|
|
33143
33125
|
|
|
33144
33126
|
// MODULES
|
|
33145
33127
|
|
|
33128
|
+
const SmzUiEnvironment = {
|
|
33129
|
+
production: false,
|
|
33130
|
+
serverUrl: '',
|
|
33131
|
+
authenticationApi: '',
|
|
33132
|
+
baseHref: ''
|
|
33133
|
+
};
|
|
33134
|
+
class NgxSmzUiConfig {
|
|
33135
|
+
debugMode;
|
|
33136
|
+
legacyMode;
|
|
33137
|
+
rbkUtils;
|
|
33138
|
+
tables;
|
|
33139
|
+
dialogs;
|
|
33140
|
+
layouts;
|
|
33141
|
+
locale;
|
|
33142
|
+
}
|
|
33143
|
+
|
|
33146
33144
|
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-return, @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type, @typescript-eslint/typedef, no-underscore-dangle, no-console, eqeqeq, @typescript-eslint/no-unused-vars, @typescript-eslint/no-useless-constructor, @typescript-eslint/explicit-member-accessibility, max-len, no-prototype-builtins, @typescript-eslint/no-shadow, @typescript-eslint/no-empty-object-type */
|
|
33147
33145
|
class NgxSmzUiComponent {
|
|
33148
33146
|
constructor() { }
|