@abp/ng.account.core 5.0.0-beta.2 → 5.0.0-beta.3

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.
@@ -127,11 +127,43 @@
127
127
  }]
128
128
  }], ctorParameters: function () { return [{ type: i1__namespace.RestService }]; } });
129
129
 
130
+ var ProfileService = /** @class */ (function () {
131
+ function ProfileService(restService) {
132
+ var _this = this;
133
+ this.restService = restService;
134
+ this.apiName = 'AbpAccount';
135
+ this.changePassword = function (input) { return _this.restService.request({
136
+ method: 'POST',
137
+ url: '/api/account/my-profile/change-password',
138
+ body: input,
139
+ }, { apiName: _this.apiName }); };
140
+ this.get = function () { return _this.restService.request({
141
+ method: 'GET',
142
+ url: '/api/account/my-profile',
143
+ }, { apiName: _this.apiName }); };
144
+ this.update = function (input) { return _this.restService.request({
145
+ method: 'PUT',
146
+ url: '/api/account/my-profile',
147
+ body: input,
148
+ }, { apiName: _this.apiName }); };
149
+ }
150
+ return ProfileService;
151
+ }());
152
+ ProfileService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ProfileService, deps: [{ token: i1__namespace.RestService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
153
+ ProfileService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ProfileService, providedIn: 'root' });
154
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ProfileService, decorators: [{
155
+ type: i0.Injectable,
156
+ args: [{
157
+ providedIn: 'root',
158
+ }]
159
+ }], ctorParameters: function () { return [{ type: i1__namespace.RestService }]; } });
160
+
130
161
  /**
131
162
  * Generated bundle index. Do not edit.
132
163
  */
133
164
 
134
165
  exports.AccountService = AccountService;
166
+ exports.ProfileService = ProfileService;
135
167
  exports.Web = index;
136
168
 
137
169
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -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/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","/**\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;QAC7B,iEAAc,CAAA;QACd,+DAAa,CAAA;QACb,+EAAqB,CAAA;IACvB,CAAC,EANW,eAAe,KAAf,eAAe,QAM1B;IAEM,IAAM,sBAAsB,GAAGA,mBAAgB,CAAC,eAAe,CAAC;;;;;;;;ICHvE;QA0BE,wBAAoB,WAAwB;YAA5C,iBAAgD;YAA5B,gBAAW,GAAX,WAAW,CAAa;YAzB5C,YAAO,GAAG,YAAY,CAAC;YAEvB,yBAAoB,GAAG,UAAC,KAAoB,IAC1C,OAAA,KAAI,CAAC,WAAW,CAAC,OAAO,CAAsB;gBAC5C,MAAM,EAAE,MAAM;gBACd,GAAG,EAAE,6BAA6B;gBAClC,IAAI,EAAE,KAAK;aACZ,EACD,EAAE,OAAO,EAAE,KAAI,CAAC,OAAO,EAAE,CAAC,GAAA,CAAC;YAE7B,iBAAY,GAAG,UAAC,KAAoB,IAClC,OAAA,KAAI,CAAC,WAAW,CAAC,OAAO,CAAsB;gBAC5C,MAAM,EAAE,MAAM;gBACd,GAAG,EAAE,oBAAoB;gBACzB,IAAI,EAAE,KAAK;aACZ,EACD,EAAE,OAAO,EAAE,KAAI,CAAC,OAAO,EAAE,CAAC,GAAA,CAAC;YAE7B,WAAM,GAAG,cACP,OAAA,KAAI,CAAC,WAAW,CAAC,OAAO,CAAY;gBAClC,MAAM,EAAE,KAA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.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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEA,IAAY,eAMX;IAND,WAAY,eAAe;QACzB,2DAAW,CAAA;QACX,+FAA6B,CAAA;QAC7B,iEAAc,CAAA;QACd,+DAAa,CAAA;QACb,+EAAqB,CAAA;IACvB,CAAC,EANW,eAAe,KAAf,eAAe,QAM1B;IAEM,IAAM,sBAAsB,GAAGA,mBAAgB,CAAC,eAAe,CAAC;;;;;;;;ICHvE;QA0BE,wBAAoB,WAAwB;YAA5C,iBAAgD;YAA5B,gBAAW,GAAX,WAAW,CAAa;YAzB5C,YAAO,GAAG,YAAY,CAAC;YAEvB,yBAAoB,GAAG,UAAC,KAAoB,IAC1C,OAAA,KAAI,CAAC,WAAW,CAAC,OAAO,CAAsB;gBAC5C,MAAM,EAAE,MAA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BAAC;wBACV,UAAU,EAAE,MAAM;qBACnB;;;ICND;;;;;;;;;;;;;;"}
@@ -1,5 +1,6 @@
1
1
  import * as Web from './web';
2
2
  export * from './account.service';
3
3
  export * from './models';
4
+ export * from './profile.service';
4
5
  export { Web };
5
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/account-core/proxy/src/lib/proxy/account/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,GAAG,EAAE,CAAC","sourcesContent":["import * as Web from './web';\nexport * from './account.service';\nexport * from './models';\nexport { Web };\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/account-core/proxy/src/lib/proxy/account/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,GAAG,EAAE,CAAC","sourcesContent":["import * as Web from './web';\nexport * from './account.service';\nexport * from './models';\nexport * from './profile.service';\nexport { Web };\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../../../../../packages/account-core/proxy/src/lib/proxy/account/models.ts"],"names":[],"mappings":"","sourcesContent":["import type { ExtensibleObject } from '@abp/ng.core';\n\nexport interface RegisterDto extends ExtensibleObject {\n userName: string;\n emailAddress: string;\n password: string;\n appName: string;\n}\n\nexport interface ResetPasswordDto {\n userId?: string;\n resetToken: string;\n password: string;\n}\n\nexport interface SendPasswordResetCodeDto {\n email: string;\n appName: string;\n returnUrl?: string;\n returnUrlHash?: string;\n}\n"]}
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../../../../../packages/account-core/proxy/src/lib/proxy/account/models.ts"],"names":[],"mappings":"","sourcesContent":["import type { ExtensibleObject } from '@abp/ng.core';\n\nexport interface ChangePasswordInput {\n currentPassword?: string;\n newPassword: string;\n}\n\nexport interface ProfileDto extends ExtensibleObject {\n userName?: string;\n email?: string;\n name?: string;\n surname?: string;\n phoneNumber?: string;\n isExternal: boolean;\n hasPassword: boolean;\n concurrencyStamp?: string;\n}\n\nexport interface RegisterDto extends ExtensibleObject {\n userName: string;\n emailAddress: string;\n password: string;\n appName: string;\n}\n\nexport interface ResetPasswordDto {\n userId?: string;\n resetToken: string;\n password: string;\n}\n\nexport interface SendPasswordResetCodeDto {\n email: string;\n appName: string;\n returnUrl?: string;\n returnUrlHash?: string;\n}\n\nexport interface UpdateProfileDto extends ExtensibleObject {\n userName?: string;\n email?: string;\n name?: string;\n surname?: string;\n phoneNumber?: string;\n concurrencyStamp?: string;\n}\n"]}
@@ -0,0 +1,33 @@
1
+ import { RestService } from '@abp/ng.core';
2
+ import { Injectable } from '@angular/core';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@abp/ng.core";
5
+ export class ProfileService {
6
+ constructor(restService) {
7
+ this.restService = restService;
8
+ this.apiName = 'AbpAccount';
9
+ this.changePassword = (input) => this.restService.request({
10
+ method: 'POST',
11
+ url: '/api/account/my-profile/change-password',
12
+ body: input,
13
+ }, { apiName: this.apiName });
14
+ this.get = () => this.restService.request({
15
+ method: 'GET',
16
+ url: '/api/account/my-profile',
17
+ }, { apiName: this.apiName });
18
+ this.update = (input) => this.restService.request({
19
+ method: 'PUT',
20
+ url: '/api/account/my-profile',
21
+ body: input,
22
+ }, { apiName: this.apiName });
23
+ }
24
+ }
25
+ ProfileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ProfileService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
26
+ ProfileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ProfileService, providedIn: 'root' });
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ProfileService, decorators: [{
28
+ type: Injectable,
29
+ args: [{
30
+ providedIn: 'root',
31
+ }]
32
+ }], ctorParameters: function () { return [{ type: i1.RestService }]; } });
33
+ //# sourceMappingURL=profile.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.service.js","sourceRoot":"","sources":["../../../../../../../../packages/account-core/proxy/src/lib/proxy/account/profile.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;;;AAK3C,MAAM,OAAO,cAAc;IA0BzB,YAAoB,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;QAzB5C,YAAO,GAAG,YAAY,CAAC;QAEvB,mBAAc,GAAG,CAAC,KAA0B,EAAE,EAAE,CAC9C,IAAI,CAAC,WAAW,CAAC,OAAO,CAAY;YAClC,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,yCAAyC;YAC9C,IAAI,EAAE,KAAK;SACZ,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,QAAG,GAAG,GAAG,EAAE,CACT,IAAI,CAAC,WAAW,CAAC,OAAO,CAAkB;YACxC,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,yBAAyB;SAC/B,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,WAAM,GAAG,CAAC,KAAuB,EAAE,EAAE,CACnC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAkB;YACxC,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,yBAAyB;YAC9B,IAAI,EAAE,KAAK;SACZ,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IAEkB,CAAC;;2GA1BrC,cAAc;+GAAd,cAAc,cAFb,MAAM;2FAEP,cAAc;kBAH1B,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB","sourcesContent":["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"]}
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../../../../../packages/account-core/proxy/src/lib/proxy/identity/models.ts"],"names":[],"mappings":"","sourcesContent":["import type { ExtensibleFullAuditedEntityDto } from '@abp/ng.core';\n\nexport interface IdentityUserDto extends ExtensibleFullAuditedEntityDto<string> {\n tenantId?: string;\n userName?: string;\n name?: string;\n surname?: string;\n email?: string;\n emailConfirmed: boolean;\n phoneNumber?: string;\n phoneNumberConfirmed: boolean;\n lockoutEnabled: boolean;\n lockoutEnd?: string;\n concurrencyStamp?: string;\n}\n"]}
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../../../../../packages/account-core/proxy/src/lib/proxy/identity/models.ts"],"names":[],"mappings":"","sourcesContent":["import type { ExtensibleFullAuditedEntityDto } from '@abp/ng.core';\n\nexport interface IdentityUserDto extends ExtensibleFullAuditedEntityDto<string> {\n tenantId?: string;\n userName?: string;\n name?: string;\n surname?: string;\n email?: string;\n emailConfirmed: boolean;\n phoneNumber?: string;\n phoneNumberConfirmed: boolean;\n isActive: boolean;\n lockoutEnabled: boolean;\n lockoutEnd?: string;\n concurrencyStamp?: string;\n}\n"]}
@@ -99,9 +99,38 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
99
99
  }]
100
100
  }], ctorParameters: function () { return [{ type: i1.RestService }]; } });
101
101
 
102
+ class ProfileService {
103
+ constructor(restService) {
104
+ this.restService = restService;
105
+ this.apiName = 'AbpAccount';
106
+ this.changePassword = (input) => this.restService.request({
107
+ method: 'POST',
108
+ url: '/api/account/my-profile/change-password',
109
+ body: input,
110
+ }, { apiName: this.apiName });
111
+ this.get = () => this.restService.request({
112
+ method: 'GET',
113
+ url: '/api/account/my-profile',
114
+ }, { apiName: this.apiName });
115
+ this.update = (input) => this.restService.request({
116
+ method: 'PUT',
117
+ url: '/api/account/my-profile',
118
+ body: input,
119
+ }, { apiName: this.apiName });
120
+ }
121
+ }
122
+ ProfileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ProfileService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
123
+ ProfileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ProfileService, providedIn: 'root' });
124
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ProfileService, decorators: [{
125
+ type: Injectable,
126
+ args: [{
127
+ providedIn: 'root',
128
+ }]
129
+ }], ctorParameters: function () { return [{ type: i1.RestService }]; } });
130
+
102
131
  /**
103
132
  * Generated bundle index. Do not edit.
104
133
  */
105
134
 
106
- export { AccountService, index as Web };
135
+ export { AccountService, ProfileService, index as Web };
107
136
  //# sourceMappingURL=abp-ng.account.core-proxy.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"abp-ng.account.core-proxy.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/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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["AccountService"],"mappings":";;;;;AAEA,IAAY,eAMX;AAND,WAAY,eAAe;IACzB,2DAAW,CAAA;IACX,+FAA6B,CAAA;IAC7B,iEAAc,CAAA;IACd,+DAAa,CAAA;IACb,+EAAqB,CAAA;AACvB,CAAC,EANW,eAAe,KAAf,eAAe,QAM1B;AAEM,MAAM,sBAAsB,GAAG,gBAAgB,CAAC,eAAe,CAAC;;;;;;;;MCH1DA,gBAAc;IA0BzB,YAAoB,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;QAzB5C,YAAO,GAAG,YAAY,CAAC;QAEvB,yBAAoB,GAAG,CAAC,KAAoB,KAC1C,IAAI,CAAC,WAAW,CAAC,OAAO,CAAsB;YAC5C,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,6BAA6B;YAClC,IAAI,EAAE,KAAK;SACZ,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,iBAAY,GAAG,CAAC,KAAoB,KAClC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAsB;YAC5C,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,oBAAoB;YACzB,IAAI,EAAE,KAAK;SACZ,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,WAAM,GAAG,MACP,IAAI,CAAC,WAAW,CAAC,OAAO,CAAY;YAClC,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,qBAAqB;SAC3B,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;KAEmB;;6GA1BrCA,gBAAc;iHAAdA,gBAAc,cAFb,MAAM;2FAEPA,gBAAc;kBAH1B,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB;;;;;;;;;;;;;;;;;;;;;;;;MCEY,cAAc;IA2BzB,YAAoB,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;QA1B5C,YAAO,GAAG,YAAY,CAAC;QAEvB,aAAQ,GAAG,CAAC,KAAkB,KAC5B,IAAI,CAAC,WAAW,CAAC,OAAO,CAAuB;YAC7C,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,uBAAuB;YAC5B,IAAI,EAAE,KAAK;SACZ,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,kBAAa,GAAG,CAAC,KAAuB,KACtC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAY;YAClC,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,6BAA6B;YAClC,IAAI,EAAE,KAAK;SACZ,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,0BAAqB,GAAG,CAAC,KAA+B,KACtD,IAAI,CAAC,WAAW,CAAC,OAAO,CAAY;YAClC,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,uCAAuC;YAC5C,IAAI,EAAE,KAAK;SACZ,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;KAEmB;;2GA3BrC,cAAc;+GAAd,cAAc,cAFb,MAAM;2FAEP,cAAc;kBAH1B,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB;;;ACPD;;;;;;"}
1
+ {"version":3,"file":"abp-ng.account.core-proxy.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":["AccountService"],"mappings":";;;;;AAEA,IAAY,eAMX;AAND,WAAY,eAAe;IACzB,2DAAW,CAAA;IACX,+FAA6B,CAAA;IAC7B,iEAAc,CAAA;IACd,+DAAa,CAAA;IACb,+EAAqB,CAAA;AACvB,CAAC,EANW,eAAe,KAAf,eAAe,QAM1B;AAEM,MAAM,sBAAsB,GAAG,gBAAgB,CAAC,eAAe,CAAC;;;;;;;;MCH1DA,gBAAc;IA0BzB,YAAoB,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;QAzB5C,YAAO,GAAG,YAAY,CAAC;QAEvB,yBAAoB,GAAG,CAAC,KAAoB,KAC1C,IAAI,CAAC,WAAW,CAAC,OAAO,CAAsB;YAC5C,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,6BAA6B;YAClC,IAAI,EAAE,KAAK;SACZ,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,iBAAY,GAAG,CAAC,KAAoB,KAClC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAsB;YAC5C,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,oBAAoB;YACzB,IAAI,EAAE,KAAK;SACZ,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,WAAM,GAAG,MACP,I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Aa;QAzB5C,YAAO,GAAG,YAAY,CAAC;QAEvB,mBAAc,GAAG,CAAC,KAA0B,KAC1C,IAAI,CAAC,WAAW,CAAC,OAAO,CAAY;YAClC,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,yCAAyC;YAC9C,IAAI,EAAE,KAAK;SACZ,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,QAAG,GAAG,MACJ,IAAI,CAAC,WAAW,CAAC,OAAO,CAAkB;YACxC,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,yBAAyB;SAC/B,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,WAAM,GAAG,CAAC,KAAuB,KAC/B,IAAI,CAAC,WAAW,CAAC,OAAO,CAAkB;YACxC,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,yBAAyB;YAC9B,IAAI,EAAE,KAAK;SACZ,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;KAEmB;;2GA1BrC,cAAc;+GAAd,cAAc,cAFb,MAAM;2FAEP,cAAc;kBAH1B,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB;;;ACND;;;;;;"}
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@abp/ng.account.core",
3
- "version": "5.0.0-beta.2",
3
+ "version": "5.0.0-beta.3",
4
4
  "homepage": "https://abp.io",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/abpframework/abp.git"
8
8
  },
9
9
  "peerDependencies": {
10
- "@abp/ng.core": "~5.0.0-beta.1-1",
11
- "@abp/ng.theme.shared": "~5.0.0-beta.1-1",
10
+ "@abp/ng.core": "~5.0.0-beta.2",
11
+ "@abp/ng.theme.shared": "~5.0.0-beta.2",
12
12
  "@angular/common": ">=12.0.0",
13
13
  "@angular/core": ">=12.0.0"
14
14
  },
@@ -1,4 +1,5 @@
1
1
  import * as Web from './web';
2
2
  export * from './account.service';
3
3
  export * from './models';
4
+ export * from './profile.service';
4
5
  export { Web };
@@ -1,4 +1,18 @@
1
1
  import type { ExtensibleObject } from '@abp/ng.core';
2
+ export interface ChangePasswordInput {
3
+ currentPassword?: string;
4
+ newPassword: string;
5
+ }
6
+ export interface ProfileDto extends ExtensibleObject {
7
+ userName?: string;
8
+ email?: string;
9
+ name?: string;
10
+ surname?: string;
11
+ phoneNumber?: string;
12
+ isExternal: boolean;
13
+ hasPassword: boolean;
14
+ concurrencyStamp?: string;
15
+ }
2
16
  export interface RegisterDto extends ExtensibleObject {
3
17
  userName: string;
4
18
  emailAddress: string;
@@ -16,3 +30,11 @@ export interface SendPasswordResetCodeDto {
16
30
  returnUrl?: string;
17
31
  returnUrlHash?: string;
18
32
  }
33
+ export interface UpdateProfileDto extends ExtensibleObject {
34
+ userName?: string;
35
+ email?: string;
36
+ name?: string;
37
+ surname?: string;
38
+ phoneNumber?: string;
39
+ concurrencyStamp?: string;
40
+ }
@@ -0,0 +1,13 @@
1
+ import type { ChangePasswordInput, ProfileDto, UpdateProfileDto } from './models';
2
+ import { RestService } from '@abp/ng.core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ProfileService {
5
+ private restService;
6
+ apiName: string;
7
+ changePassword: (input: ChangePasswordInput) => import("rxjs").Observable<void>;
8
+ get: () => import("rxjs").Observable<ProfileDto>;
9
+ update: (input: UpdateProfileDto) => import("rxjs").Observable<ProfileDto>;
10
+ constructor(restService: RestService);
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProfileService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<ProfileService>;
13
+ }
@@ -8,6 +8,7 @@ export interface IdentityUserDto extends ExtensibleFullAuditedEntityDto<string>
8
8
  emailConfirmed: boolean;
9
9
  phoneNumber?: string;
10
10
  phoneNumberConfirmed: boolean;
11
+ isActive: boolean;
11
12
  lockoutEnabled: boolean;
12
13
  lockoutEnd?: string;
13
14
  concurrencyStamp?: string;