@abp/ng.account.core 5.0.1 → 5.0.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.
Files changed (52) hide show
  1. package/README.md +3 -3
  2. package/abp-ng.account.core.d.ts +5 -5
  3. package/bundles/abp-ng.account.core-proxy.umd.js +98 -98
  4. package/bundles/abp-ng.account.core-proxy.umd.js.map +1 -1
  5. package/bundles/abp-ng.account.core.umd.js +417 -417
  6. package/bundles/abp-ng.account.core.umd.js.map +1 -1
  7. package/esm2015/abp-ng.account.core.js +4 -4
  8. package/esm2015/lib/auth-wrapper.service.js +43 -43
  9. package/esm2015/lib/tenant-box.service.js +57 -57
  10. package/esm2015/proxy/abp-ng.account.core-proxy.js +4 -4
  11. package/esm2015/proxy/lib/index.js +3 -3
  12. package/esm2015/proxy/lib/proxy/account/account.service.js +34 -34
  13. package/esm2015/proxy/lib/proxy/account/index.js +6 -6
  14. package/esm2015/proxy/lib/proxy/account/models.js +2 -2
  15. package/esm2015/proxy/lib/proxy/account/profile.service.js +33 -33
  16. package/esm2015/proxy/lib/proxy/account/web/areas/account/controllers/account.service.js +33 -33
  17. package/esm2015/proxy/lib/proxy/account/web/areas/account/controllers/index.js +4 -4
  18. package/esm2015/proxy/lib/proxy/account/web/areas/account/controllers/models/index.js +3 -3
  19. package/esm2015/proxy/lib/proxy/account/web/areas/account/controllers/models/login-result-type.enum.js +11 -11
  20. package/esm2015/proxy/lib/proxy/account/web/areas/account/controllers/models/models.js +2 -2
  21. package/esm2015/proxy/lib/proxy/account/web/areas/account/index.js +3 -3
  22. package/esm2015/proxy/lib/proxy/account/web/areas/index.js +3 -3
  23. package/esm2015/proxy/lib/proxy/account/web/index.js +3 -3
  24. package/esm2015/proxy/lib/proxy/identity/index.js +2 -2
  25. package/esm2015/proxy/lib/proxy/identity/models.js +2 -2
  26. package/esm2015/proxy/public-api.js +2 -2
  27. package/esm2015/public-api.js +6 -6
  28. package/fesm2015/abp-ng.account.core-proxy.js +92 -92
  29. package/fesm2015/abp-ng.account.core-proxy.js.map +1 -1
  30. package/fesm2015/abp-ng.account.core.js +86 -86
  31. package/fesm2015/abp-ng.account.core.js.map +1 -1
  32. package/lib/auth-wrapper.service.d.ts +19 -19
  33. package/lib/tenant-box.service.d.ts +20 -20
  34. package/package.json +3 -3
  35. package/proxy/abp-ng.account.core-proxy.d.ts +5 -5
  36. package/proxy/lib/index.d.ts +2 -2
  37. package/proxy/lib/proxy/account/account.service.d.ts +14 -14
  38. package/proxy/lib/proxy/account/index.d.ts +5 -5
  39. package/proxy/lib/proxy/account/models.d.ts +40 -40
  40. package/proxy/lib/proxy/account/profile.service.d.ts +13 -13
  41. package/proxy/lib/proxy/account/web/areas/account/controllers/account.service.d.ts +13 -13
  42. package/proxy/lib/proxy/account/web/areas/account/controllers/index.d.ts +3 -3
  43. package/proxy/lib/proxy/account/web/areas/account/controllers/models/index.d.ts +2 -2
  44. package/proxy/lib/proxy/account/web/areas/account/controllers/models/login-result-type.enum.d.ts +8 -8
  45. package/proxy/lib/proxy/account/web/areas/account/controllers/models/models.d.ts +10 -10
  46. package/proxy/lib/proxy/account/web/areas/account/index.d.ts +2 -2
  47. package/proxy/lib/proxy/account/web/areas/index.d.ts +2 -2
  48. package/proxy/lib/proxy/account/web/index.d.ts +2 -2
  49. package/proxy/lib/proxy/identity/index.d.ts +1 -1
  50. package/proxy/lib/proxy/identity/models.d.ts +15 -15
  51. package/proxy/public-api.d.ts +1 -1
  52. package/public-api.d.ts +2 -2
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
- # @abp/ng.account.core
2
-
3
- Visit the [ABP documentation](https://docs.abp.io)
1
+ # @abp/ng.account.core
2
+
3
+ Visit the [ABP documentation](https://docs.abp.io)
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@abp/ng.account.core" />
5
- export * from './public-api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@abp/ng.account.core" />
5
+ export * from './public-api';
@@ -25,14 +25,14 @@
25
25
  var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
26
26
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
27
27
 
28
- var LoginResultType;
29
- (function (LoginResultType) {
30
- LoginResultType[LoginResultType["Success"] = 1] = "Success";
31
- LoginResultType[LoginResultType["InvalidUserNameOrPassword"] = 2] = "InvalidUserNameOrPassword";
32
- LoginResultType[LoginResultType["NotAllowed"] = 3] = "NotAllowed";
33
- LoginResultType[LoginResultType["LockedOut"] = 4] = "LockedOut";
34
- LoginResultType[LoginResultType["RequiresTwoFactor"] = 5] = "RequiresTwoFactor";
35
- })(LoginResultType || (LoginResultType = {}));
28
+ var LoginResultType;
29
+ (function (LoginResultType) {
30
+ LoginResultType[LoginResultType["Success"] = 1] = "Success";
31
+ LoginResultType[LoginResultType["InvalidUserNameOrPassword"] = 2] = "InvalidUserNameOrPassword";
32
+ LoginResultType[LoginResultType["NotAllowed"] = 3] = "NotAllowed";
33
+ LoginResultType[LoginResultType["LockedOut"] = 4] = "LockedOut";
34
+ LoginResultType[LoginResultType["RequiresTwoFactor"] = 5] = "RequiresTwoFactor";
35
+ })(LoginResultType || (LoginResultType = {}));
36
36
  var loginResultTypeOptions = i1.mapEnumToOptions(LoginResultType);
37
37
 
38
38
  var index$4 = /*#__PURE__*/Object.freeze({
@@ -41,35 +41,35 @@
41
41
  loginResultTypeOptions: loginResultTypeOptions
42
42
  });
43
43
 
44
- var AccountService$1 = /** @class */ (function () {
45
- function AccountService(restService) {
46
- var _this = this;
47
- this.restService = restService;
48
- this.apiName = 'AbpAccount';
49
- this.checkPasswordByLogin = function (login) { return _this.restService.request({
50
- method: 'POST',
51
- url: '/api/account/check-password',
52
- body: login,
53
- }, { apiName: _this.apiName }); };
54
- this.loginByLogin = function (login) { return _this.restService.request({
55
- method: 'POST',
56
- url: '/api/account/login',
57
- body: login,
58
- }, { apiName: _this.apiName }); };
59
- this.logout = function () { return _this.restService.request({
60
- method: 'GET',
61
- url: '/api/account/logout',
62
- }, { apiName: _this.apiName }); };
63
- }
64
- return AccountService;
65
- }());
66
- AccountService$1.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountService$1, deps: [{ token: i1__namespace.RestService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
67
- AccountService$1.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountService$1, providedIn: 'root' });
68
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountService$1, decorators: [{
69
- type: i0.Injectable,
70
- args: [{
71
- providedIn: 'root',
72
- }]
44
+ var AccountService$1 = /** @class */ (function () {
45
+ function AccountService(restService) {
46
+ var _this = this;
47
+ this.restService = restService;
48
+ this.apiName = 'AbpAccount';
49
+ this.checkPasswordByLogin = function (login) { return _this.restService.request({
50
+ method: 'POST',
51
+ url: '/api/account/check-password',
52
+ body: login,
53
+ }, { apiName: _this.apiName }); };
54
+ this.loginByLogin = function (login) { return _this.restService.request({
55
+ method: 'POST',
56
+ url: '/api/account/login',
57
+ body: login,
58
+ }, { apiName: _this.apiName }); };
59
+ this.logout = function () { return _this.restService.request({
60
+ method: 'GET',
61
+ url: '/api/account/logout',
62
+ }, { apiName: _this.apiName }); };
63
+ }
64
+ return AccountService;
65
+ }());
66
+ AccountService$1.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountService$1, deps: [{ token: i1__namespace.RestService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
67
+ AccountService$1.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountService$1, providedIn: 'root' });
68
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountService$1, decorators: [{
69
+ type: i0.Injectable,
70
+ args: [{
71
+ providedIn: 'root',
72
+ }]
73
73
  }], ctorParameters: function () { return [{ type: i1__namespace.RestService }]; } });
74
74
 
75
75
  var index$3 = /*#__PURE__*/Object.freeze({
@@ -93,71 +93,71 @@
93
93
  Areas: index$1
94
94
  });
95
95
 
96
- var AccountService = /** @class */ (function () {
97
- function AccountService(restService) {
98
- var _this = this;
99
- this.restService = restService;
100
- this.apiName = 'AbpAccount';
101
- this.register = function (input) { return _this.restService.request({
102
- method: 'POST',
103
- url: '/api/account/register',
104
- body: input,
105
- }, { apiName: _this.apiName }); };
106
- this.resetPassword = function (input) { return _this.restService.request({
107
- method: 'POST',
108
- url: '/api/account/reset-password',
109
- body: input,
110
- }, { apiName: _this.apiName }); };
111
- this.sendPasswordResetCode = function (input) { return _this.restService.request({
112
- method: 'POST',
113
- url: '/api/account/send-password-reset-code',
114
- body: input,
115
- }, { apiName: _this.apiName }); };
116
- }
117
- return AccountService;
118
- }());
119
- AccountService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountService, deps: [{ token: i1__namespace.RestService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
120
- AccountService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountService, providedIn: 'root' });
121
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountService, decorators: [{
122
- type: i0.Injectable,
123
- args: [{
124
- providedIn: 'root',
125
- }]
96
+ var AccountService = /** @class */ (function () {
97
+ function AccountService(restService) {
98
+ var _this = this;
99
+ this.restService = restService;
100
+ this.apiName = 'AbpAccount';
101
+ this.register = function (input) { return _this.restService.request({
102
+ method: 'POST',
103
+ url: '/api/account/register',
104
+ body: input,
105
+ }, { apiName: _this.apiName }); };
106
+ this.resetPassword = function (input) { return _this.restService.request({
107
+ method: 'POST',
108
+ url: '/api/account/reset-password',
109
+ body: input,
110
+ }, { apiName: _this.apiName }); };
111
+ this.sendPasswordResetCode = function (input) { return _this.restService.request({
112
+ method: 'POST',
113
+ url: '/api/account/send-password-reset-code',
114
+ body: input,
115
+ }, { apiName: _this.apiName }); };
116
+ }
117
+ return AccountService;
118
+ }());
119
+ AccountService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountService, deps: [{ token: i1__namespace.RestService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
120
+ AccountService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountService, providedIn: 'root' });
121
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountService, decorators: [{
122
+ type: i0.Injectable,
123
+ args: [{
124
+ providedIn: 'root',
125
+ }]
126
126
  }], ctorParameters: function () { return [{ type: i1__namespace.RestService }]; } });
127
127
 
128
- var ProfileService = /** @class */ (function () {
129
- function ProfileService(restService) {
130
- var _this = this;
131
- this.restService = restService;
132
- this.apiName = 'AbpAccount';
133
- this.changePassword = function (input) { return _this.restService.request({
134
- method: 'POST',
135
- url: '/api/account/my-profile/change-password',
136
- body: input,
137
- }, { apiName: _this.apiName }); };
138
- this.get = function () { return _this.restService.request({
139
- method: 'GET',
140
- url: '/api/account/my-profile',
141
- }, { apiName: _this.apiName }); };
142
- this.update = function (input) { return _this.restService.request({
143
- method: 'PUT',
144
- url: '/api/account/my-profile',
145
- body: input,
146
- }, { apiName: _this.apiName }); };
147
- }
148
- return ProfileService;
149
- }());
150
- ProfileService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ProfileService, deps: [{ token: i1__namespace.RestService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
151
- ProfileService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ProfileService, providedIn: 'root' });
152
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ProfileService, decorators: [{
153
- type: i0.Injectable,
154
- args: [{
155
- providedIn: 'root',
156
- }]
128
+ var ProfileService = /** @class */ (function () {
129
+ function ProfileService(restService) {
130
+ var _this = this;
131
+ this.restService = restService;
132
+ this.apiName = 'AbpAccount';
133
+ this.changePassword = function (input) { return _this.restService.request({
134
+ method: 'POST',
135
+ url: '/api/account/my-profile/change-password',
136
+ body: input,
137
+ }, { apiName: _this.apiName }); };
138
+ this.get = function () { return _this.restService.request({
139
+ method: 'GET',
140
+ url: '/api/account/my-profile',
141
+ }, { apiName: _this.apiName }); };
142
+ this.update = function (input) { return _this.restService.request({
143
+ method: 'PUT',
144
+ url: '/api/account/my-profile',
145
+ body: input,
146
+ }, { apiName: _this.apiName }); };
147
+ }
148
+ return ProfileService;
149
+ }());
150
+ ProfileService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ProfileService, deps: [{ token: i1__namespace.RestService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
151
+ ProfileService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ProfileService, providedIn: 'root' });
152
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ProfileService, decorators: [{
153
+ type: i0.Injectable,
154
+ args: [{
155
+ providedIn: 'root',
156
+ }]
157
157
  }], ctorParameters: function () { return [{ type: i1__namespace.RestService }]; } });
158
158
 
159
- /**
160
- * Generated bundle index. Do not edit.
159
+ /**
160
+ * Generated bundle index. Do not edit.
161
161
  */
162
162
 
163
163
  exports.AccountService = AccountService;
@@ -1 +1 @@
1
- {"version":3,"file":"abp-ng.account.core-proxy.umd.js","sources":["../../../../packages/account-core/proxy/src/lib/proxy/account/web/areas/account/controllers/models/login-result-type.enum.ts","../../../../packages/account-core/proxy/src/lib/proxy/account/web/areas/account/controllers/account.service.ts","../../../../packages/account-core/proxy/src/lib/proxy/account/account.service.ts","../../../../packages/account-core/proxy/src/lib/proxy/account/profile.service.ts","../../../../packages/account-core/proxy/src/abp-ng.account.core-proxy.ts"],"sourcesContent":["import { mapEnumToOptions } from '@abp/ng.core';\r\n\r\nexport enum LoginResultType {\r\n Success = 1,\r\n InvalidUserNameOrPassword = 2,\r\n NotAllowed = 3,\r\n LockedOut = 4,\r\n RequiresTwoFactor = 5,\r\n}\r\n\r\nexport const loginResultTypeOptions = mapEnumToOptions(LoginResultType);\r\n","import type { AbpLoginResult, UserLoginInfo } from './models/models';\r\nimport { RestService } from '@abp/ng.core';\r\nimport { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AccountService {\r\n apiName = 'AbpAccount';\r\n\r\n checkPasswordByLogin = (login: UserLoginInfo) =>\r\n this.restService.request<any, AbpLoginResult>({\r\n method: 'POST',\r\n url: '/api/account/check-password',\r\n body: login,\r\n },\r\n { apiName: this.apiName });\r\n\r\n loginByLogin = (login: UserLoginInfo) =>\r\n this.restService.request<any, AbpLoginResult>({\r\n method: 'POST',\r\n url: '/api/account/login',\r\n body: login,\r\n },\r\n { apiName: this.apiName });\r\n\r\n logout = () =>\r\n this.restService.request<any, void>({\r\n method: 'GET',\r\n url: '/api/account/logout',\r\n },\r\n { apiName: this.apiName });\r\n\r\n constructor(private restService: RestService) {}\r\n}\r\n","import type { RegisterDto, ResetPasswordDto, SendPasswordResetCodeDto } from './models';\r\nimport { RestService } from '@abp/ng.core';\r\nimport { Injectable } from '@angular/core';\r\nimport type { IdentityUserDto } from '../identity/models';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AccountService {\r\n apiName = 'AbpAccount';\r\n\r\n register = (input: RegisterDto) =>\r\n this.restService.request<any, IdentityUserDto>({\r\n method: 'POST',\r\n url: '/api/account/register',\r\n body: input,\r\n },\r\n { apiName: this.apiName });\r\n\r\n resetPassword = (input: ResetPasswordDto) =>\r\n this.restService.request<any, void>({\r\n method: 'POST',\r\n url: '/api/account/reset-password',\r\n body: input,\r\n },\r\n { apiName: this.apiName });\r\n\r\n sendPasswordResetCode = (input: SendPasswordResetCodeDto) =>\r\n this.restService.request<any, void>({\r\n method: 'POST',\r\n url: '/api/account/send-password-reset-code',\r\n body: input,\r\n },\r\n { apiName: this.apiName });\r\n\r\n constructor(private restService: RestService) {}\r\n}\r\n","import type { ChangePasswordInput, ProfileDto, UpdateProfileDto } from './models';\r\nimport { RestService } from '@abp/ng.core';\r\nimport { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ProfileService {\r\n apiName = 'AbpAccount';\r\n\r\n changePassword = (input: ChangePasswordInput) =>\r\n this.restService.request<any, void>({\r\n method: 'POST',\r\n url: '/api/account/my-profile/change-password',\r\n body: input,\r\n },\r\n { apiName: this.apiName });\r\n\r\n get = () =>\r\n this.restService.request<any, ProfileDto>({\r\n method: 'GET',\r\n url: '/api/account/my-profile',\r\n },\r\n { apiName: this.apiName });\r\n\r\n update = (input: UpdateProfileDto) =>\r\n this.restService.request<any, ProfileDto>({\r\n method: 'PUT',\r\n url: '/api/account/my-profile',\r\n body: input,\r\n },\r\n { apiName: this.apiName });\r\n\r\n constructor(private restService: RestService) {}\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["mapEnumToOptions","AccountService","Injectable"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;IAEA,IAAY,eAMX;IAND,WAAY,eAAe;QACzB,2DAAW,CAAA;QACX,+FAA6B,CAAA;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C/B,EACD,EAAE,OAAO,EAAE,KAAI,CAAC,OAAO,EAAE,CAAC,GAAA,CAAC;YAE7B,WAAM,GAAG,UAAC,KAAuB,IAC/B,OAAA,KAAI,CAAC,WAAW,CAAC,OAAO,CAAkB;gBACxC,MAAM,EAAE,KAAK;gBACb,GAAG,EAAE,yBAAyB;gBAC9B,IAAI,EAAE,KAAK;aACZ,EACD,EAAE,OAAO,EAAE,KAAI,CAAC,OAAO,EAAE,CAAC,GAAA,CAAC;SAEmB;;;sIA1BrC,cAAc;0IAAd,cAAc,cAFb,MAAM;sHAEP,cAAc;sBAH1BA,aAAU;uBAAC;wBACV,UAAU,EAAE,MAAM;qBACnB;;;ICND;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"abp-ng.account.core-proxy.umd.js","sources":["../../../../packages/account-core/proxy/src/lib/proxy/account/web/areas/account/controllers/models/login-result-type.enum.ts","../../../../packages/account-core/proxy/src/lib/proxy/account/web/areas/account/controllers/account.service.ts","../../../../packages/account-core/proxy/src/lib/proxy/account/account.service.ts","../../../../packages/account-core/proxy/src/lib/proxy/account/profile.service.ts","../../../../packages/account-core/proxy/src/abp-ng.account.core-proxy.ts"],"sourcesContent":["import { mapEnumToOptions } from '@abp/ng.core';\n\nexport enum LoginResultType {\n Success = 1,\n InvalidUserNameOrPassword = 2,\n NotAllowed = 3,\n LockedOut = 4,\n RequiresTwoFactor = 5,\n}\n\nexport const loginResultTypeOptions = mapEnumToOptions(LoginResultType);\n","import type { AbpLoginResult, UserLoginInfo } from './models/models';\nimport { RestService } from '@abp/ng.core';\nimport { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AccountService {\n apiName = 'AbpAccount';\n\n checkPasswordByLogin = (login: UserLoginInfo) =>\n this.restService.request<any, AbpLoginResult>({\n method: 'POST',\n url: '/api/account/check-password',\n body: login,\n },\n { apiName: this.apiName });\n\n loginByLogin = (login: UserLoginInfo) =>\n this.restService.request<any, AbpLoginResult>({\n method: 'POST',\n url: '/api/account/login',\n body: login,\n },\n { apiName: this.apiName });\n\n logout = () =>\n this.restService.request<any, void>({\n method: 'GET',\n url: '/api/account/logout',\n },\n { apiName: this.apiName });\n\n constructor(private restService: RestService) {}\n}\n","import type { RegisterDto, ResetPasswordDto, SendPasswordResetCodeDto } from './models';\nimport { RestService } from '@abp/ng.core';\nimport { Injectable } from '@angular/core';\nimport type { IdentityUserDto } from '../identity/models';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AccountService {\n apiName = 'AbpAccount';\n\n register = (input: RegisterDto) =>\n this.restService.request<any, IdentityUserDto>({\n method: 'POST',\n url: '/api/account/register',\n body: input,\n },\n { apiName: this.apiName });\n\n resetPassword = (input: ResetPasswordDto) =>\n this.restService.request<any, void>({\n method: 'POST',\n url: '/api/account/reset-password',\n body: input,\n },\n { apiName: this.apiName });\n\n sendPasswordResetCode = (input: SendPasswordResetCodeDto) =>\n this.restService.request<any, void>({\n method: 'POST',\n url: '/api/account/send-password-reset-code',\n body: input,\n },\n { apiName: this.apiName });\n\n constructor(private restService: RestService) {}\n}\n","import type { ChangePasswordInput, ProfileDto, UpdateProfileDto } from './models';\nimport { RestService } from '@abp/ng.core';\nimport { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class ProfileService {\n apiName = 'AbpAccount';\n\n changePassword = (input: ChangePasswordInput) =>\n this.restService.request<any, void>({\n method: 'POST',\n url: '/api/account/my-profile/change-password',\n body: input,\n },\n { apiName: this.apiName });\n\n get = () =>\n this.restService.request<any, ProfileDto>({\n method: 'GET',\n url: '/api/account/my-profile',\n },\n { apiName: this.apiName });\n\n update = (input: UpdateProfileDto) =>\n this.restService.request<any, ProfileDto>({\n method: 'PUT',\n url: '/api/account/my-profile',\n body: input,\n },\n { apiName: this.apiName });\n\n constructor(private restService: RestService) {}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["mapEnumToOptions","AccountService","Injectable"],"mappings":";;;;;;;;;;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