@abp/ng.identity 4.4.1 → 5.0.0-beta.1-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/abp-ng.identity.d.ts +1 -11
- package/bundles/abp-ng.identity-config.umd.js +30 -7
- package/bundles/abp-ng.identity-config.umd.js.map +1 -1
- package/bundles/abp-ng.identity-proxy.umd.js +213 -0
- package/bundles/abp-ng.identity-proxy.umd.js.map +1 -0
- package/bundles/abp-ng.identity.umd.js +652 -1185
- package/bundles/abp-ng.identity.umd.js.map +1 -1
- package/config/abp-ng.identity-config.d.ts +1 -1
- package/config/identity-config.module.d.ts +4 -0
- package/config/package.json +0 -1
- package/config/providers/route.provider.d.ts +1 -1
- package/esm2015/abp-ng.identity.js +1 -10
- package/esm2015/abp-ng.identity.js.map +1 -0
- package/esm2015/config/abp-ng.identity-config.js +1 -2
- package/esm2015/config/abp-ng.identity-config.js.map +1 -0
- package/esm2015/config/enums/index.js +1 -1
- package/esm2015/config/enums/index.js.map +1 -0
- package/esm2015/config/enums/policy-names.js +1 -1
- package/esm2015/config/enums/policy-names.js.map +1 -0
- package/esm2015/config/enums/route-names.js +1 -1
- package/esm2015/config/enums/route-names.js.map +1 -0
- package/esm2015/config/identity-config.module.js +8 -4
- package/esm2015/config/identity-config.module.js.map +1 -0
- package/esm2015/config/providers/index.js +1 -1
- package/esm2015/config/providers/index.js.map +1 -0
- package/esm2015/config/providers/route.provider.js +1 -1
- package/esm2015/config/providers/route.provider.js.map +1 -0
- package/esm2015/config/public-api.js +1 -1
- package/esm2015/config/public-api.js.map +1 -0
- package/esm2015/lib/components/index.js +1 -1
- package/esm2015/lib/components/index.js.map +1 -0
- package/esm2015/lib/components/roles/roles.component.js +44 -46
- package/esm2015/lib/components/roles/roles.component.js.map +1 -0
- package/esm2015/lib/components/users/users.component.js +69 -67
- package/esm2015/lib/components/users/users.component.js.map +1 -0
- package/esm2015/lib/defaults/default-roles-entity-actions.js +14 -16
- package/esm2015/lib/defaults/default-roles-entity-actions.js.map +1 -0
- package/esm2015/lib/defaults/default-roles-entity-props.js +13 -15
- package/esm2015/lib/defaults/default-roles-entity-props.js.map +1 -0
- package/esm2015/lib/defaults/default-roles-form-props.js +3 -5
- package/esm2015/lib/defaults/default-roles-form-props.js.map +1 -0
- package/esm2015/lib/defaults/default-roles-toolbar-actions.js +5 -7
- package/esm2015/lib/defaults/default-roles-toolbar-actions.js.map +1 -0
- package/esm2015/lib/defaults/default-users-entity-actions.js +13 -15
- package/esm2015/lib/defaults/default-users-entity-actions.js.map +1 -0
- package/esm2015/lib/defaults/default-users-entity-props.js +1 -1
- package/esm2015/lib/defaults/default-users-entity-props.js.map +1 -0
- package/esm2015/lib/defaults/default-users-form-props.js +8 -11
- package/esm2015/lib/defaults/default-users-form-props.js.map +1 -0
- package/esm2015/lib/defaults/default-users-toolbar-actions.js +5 -7
- package/esm2015/lib/defaults/default-users-toolbar-actions.js.map +1 -0
- package/esm2015/lib/enums/components.js +1 -1
- package/esm2015/lib/enums/components.js.map +1 -0
- package/esm2015/lib/enums/index.js +1 -1
- package/esm2015/lib/enums/index.js.map +1 -0
- package/esm2015/lib/guards/extensions.guard.js +7 -7
- package/esm2015/lib/guards/extensions.guard.js.map +1 -0
- package/esm2015/lib/guards/index.js +1 -1
- package/esm2015/lib/guards/index.js.map +1 -0
- package/esm2015/lib/identity-routing.module.js +27 -23
- package/esm2015/lib/identity-routing.module.js.map +1 -0
- package/esm2015/lib/identity.module.js +38 -20
- package/esm2015/lib/identity.module.js.map +1 -0
- package/esm2015/lib/models/config-options.js +1 -1
- package/esm2015/lib/models/config-options.js.map +1 -0
- package/esm2015/lib/models/index.js +1 -2
- package/esm2015/lib/models/index.js.map +1 -0
- package/esm2015/lib/tokens/extensions.token.js +1 -1
- package/esm2015/lib/tokens/extensions.token.js.map +1 -0
- package/esm2015/lib/tokens/index.js +1 -1
- package/esm2015/lib/tokens/index.js.map +1 -0
- package/esm2015/proxy/abp-ng.identity-proxy.js +5 -0
- package/esm2015/proxy/abp-ng.identity-proxy.js.map +1 -0
- package/esm2015/proxy/lib/index.js +3 -0
- package/esm2015/proxy/lib/index.js.map +1 -0
- package/esm2015/proxy/lib/proxy/identity/identity-role.service.js +46 -0
- package/esm2015/proxy/lib/proxy/identity/identity-role.service.js.map +1 -0
- package/esm2015/proxy/lib/proxy/identity/identity-user-lookup.service.js +37 -0
- package/esm2015/proxy/lib/proxy/identity/identity-user-lookup.service.js.map +1 -0
- package/esm2015/proxy/lib/proxy/identity/identity-user.service.js +63 -0
- package/esm2015/proxy/lib/proxy/identity/identity-user.service.js.map +1 -0
- package/esm2015/proxy/lib/proxy/identity/index.js +6 -0
- package/esm2015/proxy/lib/proxy/identity/index.js.map +1 -0
- package/esm2015/proxy/lib/proxy/identity/models.js +2 -0
- package/esm2015/proxy/lib/proxy/identity/models.js.map +1 -0
- package/esm2015/proxy/lib/proxy/identity/profile.service.js +33 -0
- package/esm2015/proxy/lib/proxy/identity/profile.service.js.map +1 -0
- package/esm2015/proxy/lib/proxy/users/index.js +2 -0
- package/esm2015/proxy/lib/proxy/users/index.js.map +1 -0
- package/esm2015/proxy/lib/proxy/users/models.js +2 -0
- package/esm2015/proxy/lib/proxy/users/models.js.map +1 -0
- package/esm2015/proxy/public-api.js +2 -0
- package/esm2015/proxy/public-api.js.map +1 -0
- package/esm2015/public-api.js +1 -6
- package/esm2015/public-api.js.map +1 -0
- package/fesm2015/abp-ng.identity-config.js +8 -4
- package/fesm2015/abp-ng.identity-config.js.map +1 -1
- package/fesm2015/abp-ng.identity-proxy.js +173 -0
- package/fesm2015/abp-ng.identity-proxy.js.map +1 -0
- package/fesm2015/abp-ng.identity.js +224 -628
- package/fesm2015/abp-ng.identity.js.map +1 -1
- package/lib/components/roles/roles.component.d.ts +8 -8
- package/lib/components/users/users.component.d.ts +8 -10
- package/lib/defaults/default-roles-entity-actions.d.ts +1 -1
- package/lib/defaults/default-roles-entity-props.d.ts +1 -1
- package/lib/defaults/default-roles-form-props.d.ts +1 -1
- package/lib/defaults/default-roles-toolbar-actions.d.ts +1 -1
- package/lib/defaults/default-users-entity-actions.d.ts +1 -1
- package/lib/defaults/default-users-entity-props.d.ts +1 -1
- package/lib/defaults/default-users-form-props.d.ts +1 -1
- package/lib/defaults/default-users-toolbar-actions.d.ts +1 -1
- package/lib/guards/extensions.guard.d.ts +3 -0
- package/lib/identity-routing.module.d.ts +5 -0
- package/lib/identity.module.d.ts +13 -0
- package/lib/models/config-options.d.ts +1 -1
- package/lib/models/index.d.ts +0 -1
- package/lib/tokens/extensions.token.d.ts +1 -2
- package/package.json +7 -5
- package/proxy/abp-ng.identity-proxy.d.ts +5 -0
- package/proxy/lib/index.d.ts +2 -0
- package/{lib → proxy/lib}/proxy/identity/identity-role.service.d.ts +6 -3
- package/{lib → proxy/lib}/proxy/identity/identity-user-lookup.service.d.ts +3 -0
- package/{lib → proxy/lib}/proxy/identity/identity-user.service.d.ts +4 -1
- package/{lib → proxy/lib}/proxy/identity/index.d.ts +0 -0
- package/{lib → proxy/lib}/proxy/identity/models.d.ts +33 -28
- package/{lib → proxy/lib}/proxy/identity/profile.service.d.ts +3 -0
- package/{lib → proxy/lib}/proxy/users/index.d.ts +0 -0
- package/proxy/lib/proxy/users/models.d.ts +11 -0
- package/proxy/package.json +10 -0
- package/proxy/public-api.d.ts +1 -0
- package/public-api.d.ts +0 -5
- package/abp-ng.identity.metadata.json +0 -1
- package/bundles/abp-ng.identity-config.umd.min.js +0 -2
- package/bundles/abp-ng.identity-config.umd.min.js.map +0 -1
- package/bundles/abp-ng.identity.umd.min.js +0 -2
- package/bundles/abp-ng.identity.umd.min.js.map +0 -1
- package/config/abp-ng.identity-config.metadata.json +0 -1
- package/esm2015/lib/actions/identity.actions.js +0 -67
- package/esm2015/lib/actions/index.js +0 -2
- package/esm2015/lib/models/identity.js +0 -2
- package/esm2015/lib/proxy/identity/identity-role.service.js +0 -47
- package/esm2015/lib/proxy/identity/identity-user-lookup.service.js +0 -38
- package/esm2015/lib/proxy/identity/identity-user.service.js +0 -64
- package/esm2015/lib/proxy/identity/index.js +0 -6
- package/esm2015/lib/proxy/identity/models.js +0 -2
- package/esm2015/lib/proxy/identity/profile.service.js +0 -34
- package/esm2015/lib/proxy/users/index.js +0 -2
- package/esm2015/lib/proxy/users/models.js +0 -2
- package/esm2015/lib/services/identity-state.service.js +0 -66
- package/esm2015/lib/services/index.js +0 -2
- package/esm2015/lib/states/identity.state.js +0 -128
- package/esm2015/lib/states/index.js +0 -2
- package/lib/actions/identity.actions.d.ts +0 -65
- package/lib/actions/index.d.ts +0 -1
- package/lib/models/identity.d.ts +0 -11
- package/lib/proxy/users/models.d.ts +0 -11
- package/lib/services/identity-state.service.d.ts +0 -21
- package/lib/services/index.d.ts +0 -1
- package/lib/states/identity.state.d.ts +0 -26
- package/lib/states/index.d.ts +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-options.js","sourceRoot":"","sources":["../../../../../../packages/identity/src/lib/models/config-options.ts"],"names":[],"mappings":"","sourcesContent":["import { IdentityRoleDto, IdentityUserDto } from '@abp/ng.identity/proxy';\nimport {\n CreateFormPropContributorCallback,\n EditFormPropContributorCallback,\n EntityActionContributorCallback,\n EntityPropContributorCallback,\n ToolbarActionContributorCallback,\n} from '@abp/ng.theme.shared/extensions';\nimport { eIdentityComponents } from '../enums/components';\n\nexport type IdentityEntityActionContributors = Partial<{\n [eIdentityComponents.Roles]: EntityActionContributorCallback<IdentityRoleDto>[];\n [eIdentityComponents.Users]: EntityActionContributorCallback<IdentityUserDto>[];\n}>;\n\nexport type IdentityToolbarActionContributors = Partial<{\n [eIdentityComponents.Roles]: ToolbarActionContributorCallback<IdentityRoleDto[]>[];\n [eIdentityComponents.Users]: ToolbarActionContributorCallback<IdentityUserDto[]>[];\n}>;\n\nexport type IdentityEntityPropContributors = Partial<{\n [eIdentityComponents.Roles]: EntityPropContributorCallback<IdentityRoleDto>[];\n [eIdentityComponents.Users]: EntityPropContributorCallback<IdentityUserDto>[];\n}>;\n\nexport type IdentityCreateFormPropContributors = Partial<{\n [eIdentityComponents.Roles]: CreateFormPropContributorCallback<IdentityRoleDto>[];\n [eIdentityComponents.Users]: CreateFormPropContributorCallback<IdentityUserDto>[];\n}>;\n\nexport type IdentityEditFormPropContributors = Partial<{\n [eIdentityComponents.Roles]: EditFormPropContributorCallback<IdentityRoleDto>[];\n [eIdentityComponents.Users]: EditFormPropContributorCallback<IdentityUserDto>[];\n}>;\n\nexport interface IdentityConfigOptions {\n entityActionContributors?: IdentityEntityActionContributors;\n toolbarActionContributors?: IdentityToolbarActionContributors;\n entityPropContributors?: IdentityEntityPropContributors;\n createFormPropContributors?: IdentityCreateFormPropContributors;\n editFormPropContributors?: IdentityEditFormPropContributors;\n}\n"]}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
export * from './config-options';
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9pZGVudGl0eS9zcmMvbGliL21vZGVscy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsWUFBWSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9jb25maWctb3B0aW9ucyc7XG5leHBvcnQgKiBmcm9tICcuL2lkZW50aXR5JztcbiJdfQ==
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/identity/src/lib/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC","sourcesContent":["export * from './config-options';\n"]}
|
|
@@ -32,4 +32,4 @@ export const IDENTITY_TOOLBAR_ACTION_CONTRIBUTORS = new InjectionToken('IDENTITY
|
|
|
32
32
|
export const IDENTITY_ENTITY_PROP_CONTRIBUTORS = new InjectionToken('IDENTITY_ENTITY_PROP_CONTRIBUTORS');
|
|
33
33
|
export const IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS = new InjectionToken('IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS');
|
|
34
34
|
export const IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS = new InjectionToken('IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS');
|
|
35
|
-
//# sourceMappingURL=
|
|
35
|
+
//# sourceMappingURL=extensions.token.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extensions.token.js","sourceRoot":"","sources":["../../../../../../packages/identity/src/lib/tokens/extensions.token.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EACL,+BAA+B,EAC/B,6BAA6B,GAC9B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EACL,+BAA+B,EAC/B,6BAA6B,GAC9B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAG1F,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,uCAA2B,EAAE,4BAA4B;IACzD,uCAA2B,EAAE,4BAA4B;CAC1D,CAAC;AAEF,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,uCAA2B,EAAE,6BAA6B;IAC1D,uCAA2B,EAAE,6BAA6B;CAC3D,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,uCAA2B,EAAE,0BAA0B;IACvD,uCAA2B,EAAE,0BAA0B;CACxD,CAAC;AAEF,MAAM,CAAC,MAAM,kCAAkC,GAAG;IAChD,uCAA2B,EAAE,+BAA+B;IAC5D,uCAA2B,EAAE,+BAA+B;CAC7D,CAAC;AAEF,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,uCAA2B,EAAE,6BAA6B;IAC1D,uCAA2B,EAAE,6BAA6B;CAC3D,CAAC;AAEF,MAAM,CAAC,MAAM,mCAAmC,GAAG,IAAI,cAAc,CACnE,qCAAqC,CACtC,CAAC;AAEF,MAAM,CAAC,MAAM,oCAAoC,GAAG,IAAI,cAAc,CACpE,sCAAsC,CACvC,CAAC;AAEF,MAAM,CAAC,MAAM,iCAAiC,GAAG,IAAI,cAAc,CACjE,mCAAmC,CACpC,CAAC;AAEF,MAAM,CAAC,MAAM,sCAAsC,GACjD,IAAI,cAAc,CAA6B,wCAAwC,CAAC,CAAC;AAE3F,MAAM,CAAC,MAAM,oCAAoC,GAAG,IAAI,cAAc,CACpE,sCAAsC,CACvC,CAAC","sourcesContent":["import { IdentityRoleDto, IdentityUserDto } from '@abp/ng.identity/proxy';\nimport {\n CreateFormPropContributorCallback,\n EditFormPropContributorCallback,\n EntityActionContributorCallback,\n EntityPropContributorCallback,\n ToolbarActionContributorCallback,\n} from '@abp/ng.theme.shared/extensions';\nimport { InjectionToken } from '@angular/core';\nimport { DEFAULT_ROLES_ENTITY_ACTIONS } from '../defaults/default-roles-entity-actions';\nimport { DEFAULT_ROLES_ENTITY_PROPS } from '../defaults/default-roles-entity-props';\nimport {\n DEFAULT_ROLES_CREATE_FORM_PROPS,\n DEFAULT_ROLES_EDIT_FORM_PROPS,\n} from '../defaults/default-roles-form-props';\nimport { DEFAULT_ROLES_TOOLBAR_ACTIONS } from '../defaults/default-roles-toolbar-actions';\nimport { DEFAULT_USERS_ENTITY_ACTIONS } from '../defaults/default-users-entity-actions';\nimport { DEFAULT_USERS_ENTITY_PROPS } from '../defaults/default-users-entity-props';\nimport {\n DEFAULT_USERS_CREATE_FORM_PROPS,\n DEFAULT_USERS_EDIT_FORM_PROPS,\n} from '../defaults/default-users-form-props';\nimport { DEFAULT_USERS_TOOLBAR_ACTIONS } from '../defaults/default-users-toolbar-actions';\nimport { eIdentityComponents } from '../enums/components';\n\nexport const DEFAULT_IDENTITY_ENTITY_ACTIONS = {\n [eIdentityComponents.Roles]: DEFAULT_ROLES_ENTITY_ACTIONS,\n [eIdentityComponents.Users]: DEFAULT_USERS_ENTITY_ACTIONS,\n};\n\nexport const DEFAULT_IDENTITY_TOOLBAR_ACTIONS = {\n [eIdentityComponents.Roles]: DEFAULT_ROLES_TOOLBAR_ACTIONS,\n [eIdentityComponents.Users]: DEFAULT_USERS_TOOLBAR_ACTIONS,\n};\n\nexport const DEFAULT_IDENTITY_ENTITY_PROPS = {\n [eIdentityComponents.Roles]: DEFAULT_ROLES_ENTITY_PROPS,\n [eIdentityComponents.Users]: DEFAULT_USERS_ENTITY_PROPS,\n};\n\nexport const DEFAULT_IDENTITY_CREATE_FORM_PROPS = {\n [eIdentityComponents.Roles]: DEFAULT_ROLES_CREATE_FORM_PROPS,\n [eIdentityComponents.Users]: DEFAULT_USERS_CREATE_FORM_PROPS,\n};\n\nexport const DEFAULT_IDENTITY_EDIT_FORM_PROPS = {\n [eIdentityComponents.Roles]: DEFAULT_ROLES_EDIT_FORM_PROPS,\n [eIdentityComponents.Users]: DEFAULT_USERS_EDIT_FORM_PROPS,\n};\n\nexport const IDENTITY_ENTITY_ACTION_CONTRIBUTORS = new InjectionToken<EntityActionContributors>(\n 'IDENTITY_ENTITY_ACTION_CONTRIBUTORS',\n);\n\nexport const IDENTITY_TOOLBAR_ACTION_CONTRIBUTORS = new InjectionToken<ToolbarActionContributors>(\n 'IDENTITY_TOOLBAR_ACTION_CONTRIBUTORS',\n);\n\nexport const IDENTITY_ENTITY_PROP_CONTRIBUTORS = new InjectionToken<EntityPropContributors>(\n 'IDENTITY_ENTITY_PROP_CONTRIBUTORS',\n);\n\nexport const IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS =\n new InjectionToken<CreateFormPropContributors>('IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS');\n\nexport const IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS = new InjectionToken<EditFormPropContributors>(\n 'IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS',\n);\n\n// Fix for TS4023 -> https://github.com/microsoft/TypeScript/issues/9944#issuecomment-254693497\ntype EntityActionContributors = Partial<{\n [eIdentityComponents.Roles]: EntityActionContributorCallback<IdentityRoleDto>[];\n [eIdentityComponents.Users]: EntityActionContributorCallback<IdentityUserDto>[];\n}>;\ntype ToolbarActionContributors = Partial<{\n [eIdentityComponents.Roles]: ToolbarActionContributorCallback<IdentityRoleDto[]>[];\n [eIdentityComponents.Users]: ToolbarActionContributorCallback<IdentityUserDto[]>[];\n}>;\ntype EntityPropContributors = Partial<{\n [eIdentityComponents.Roles]: EntityPropContributorCallback<IdentityRoleDto>[];\n [eIdentityComponents.Users]: EntityPropContributorCallback<IdentityUserDto>[];\n}>;\ntype CreateFormPropContributors = Partial<{\n [eIdentityComponents.Roles]: CreateFormPropContributorCallback<IdentityRoleDto>[];\n [eIdentityComponents.Users]: CreateFormPropContributorCallback<IdentityUserDto>[];\n}>;\ntype EditFormPropContributors = Partial<{\n [eIdentityComponents.Roles]: EditFormPropContributorCallback<IdentityRoleDto>[];\n [eIdentityComponents.Users]: EditFormPropContributorCallback<IdentityUserDto>[];\n}>;\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './extensions.token';
|
|
2
|
-
//# sourceMappingURL=
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/identity/src/lib/tokens/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC","sourcesContent":["export * from './extensions.token';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"abp-ng.identity-proxy.js","sourceRoot":"","sources":["../../../../../packages/identity/proxy/src/abp-ng.identity-proxy.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,cAAc,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/identity/proxy/src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC","sourcesContent":["export * from './proxy/identity';\nexport * from './proxy/users';\n"]}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 IdentityRoleService {
|
|
6
|
+
constructor(restService) {
|
|
7
|
+
this.restService = restService;
|
|
8
|
+
this.apiName = 'AbpIdentity';
|
|
9
|
+
this.create = (input) => this.restService.request({
|
|
10
|
+
method: 'POST',
|
|
11
|
+
url: '/api/identity/roles',
|
|
12
|
+
body: input,
|
|
13
|
+
}, { apiName: this.apiName });
|
|
14
|
+
this.delete = (id) => this.restService.request({
|
|
15
|
+
method: 'DELETE',
|
|
16
|
+
url: `/api/identity/roles/${id}`,
|
|
17
|
+
}, { apiName: this.apiName });
|
|
18
|
+
this.get = (id) => this.restService.request({
|
|
19
|
+
method: 'GET',
|
|
20
|
+
url: `/api/identity/roles/${id}`,
|
|
21
|
+
}, { apiName: this.apiName });
|
|
22
|
+
this.getAllList = () => this.restService.request({
|
|
23
|
+
method: 'GET',
|
|
24
|
+
url: '/api/identity/roles/all',
|
|
25
|
+
}, { apiName: this.apiName });
|
|
26
|
+
this.getList = (input) => this.restService.request({
|
|
27
|
+
method: 'GET',
|
|
28
|
+
url: '/api/identity/roles',
|
|
29
|
+
params: { filter: input.filter, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
|
|
30
|
+
}, { apiName: this.apiName });
|
|
31
|
+
this.update = (id, input) => this.restService.request({
|
|
32
|
+
method: 'PUT',
|
|
33
|
+
url: `/api/identity/roles/${id}`,
|
|
34
|
+
body: input,
|
|
35
|
+
}, { apiName: this.apiName });
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
IdentityRoleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: IdentityRoleService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
39
|
+
IdentityRoleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: IdentityRoleService, providedIn: 'root' });
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: IdentityRoleService, decorators: [{
|
|
41
|
+
type: Injectable,
|
|
42
|
+
args: [{
|
|
43
|
+
providedIn: 'root',
|
|
44
|
+
}]
|
|
45
|
+
}], ctorParameters: function () { return [{ type: i1.RestService }]; } });
|
|
46
|
+
//# sourceMappingURL=identity-role.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity-role.service.js","sourceRoot":"","sources":["../../../../../../../../packages/identity/proxy/src/lib/proxy/identity/identity-role.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;;;AAK3C,MAAM,OAAO,mBAAmB;IAgD9B,YAAoB,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;QA/C5C,YAAO,GAAG,aAAa,CAAC;QAExB,WAAM,GAAG,CAAC,KAA4B,EAAE,EAAE,CACxC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAuB;YAC7C,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,qBAAqB;YAC1B,IAAI,EAAE,KAAK;SACZ,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,WAAM,GAAG,CAAC,EAAU,EAAE,EAAE,CACtB,IAAI,CAAC,WAAW,CAAC,OAAO,CAAY;YAClC,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,uBAAuB,EAAE,EAAE;SACjC,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,QAAG,GAAG,CAAC,EAAU,EAAE,EAAE,CACnB,IAAI,CAAC,WAAW,CAAC,OAAO,CAAuB;YAC7C,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,uBAAuB,EAAE,EAAE;SACjC,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,eAAU,GAAG,GAAG,EAAE,CAChB,IAAI,CAAC,WAAW,CAAC,OAAO,CAAsC;YAC5D,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,yBAAyB;SAC/B,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,YAAO,GAAG,CAAC,KAA4B,EAAE,EAAE,CACzC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAuC;YAC7D,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,qBAAqB;YAC1B,MAAM,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,cAAc,EAAE,KAAK,CAAC,cAAc,EAAE;SAC3H,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,WAAM,GAAG,CAAC,EAAU,EAAE,KAA4B,EAAE,EAAE,CACpD,IAAI,CAAC,WAAW,CAAC,OAAO,CAAuB;YAC7C,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,uBAAuB,EAAE,EAAE;YAChC,IAAI,EAAE,KAAK;SACZ,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IAEkB,CAAC;;gHAhDrC,mBAAmB;oHAAnB,mBAAmB,cAFlB,MAAM;2FAEP,mBAAmB;kBAH/B,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB","sourcesContent":["import type { GetIdentityRolesInput, IdentityRoleCreateDto, IdentityRoleDto, IdentityRoleUpdateDto } from './models';\nimport { RestService } from '@abp/ng.core';\nimport type { ListResultDto, PagedResultDto } from '@abp/ng.core';\nimport { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class IdentityRoleService {\n apiName = 'AbpIdentity';\n\n create = (input: IdentityRoleCreateDto) =>\n this.restService.request<any, IdentityRoleDto>({\n method: 'POST',\n url: '/api/identity/roles',\n body: input,\n },\n { apiName: this.apiName });\n\n delete = (id: string) =>\n this.restService.request<any, void>({\n method: 'DELETE',\n url: `/api/identity/roles/${id}`,\n },\n { apiName: this.apiName });\n\n get = (id: string) =>\n this.restService.request<any, IdentityRoleDto>({\n method: 'GET',\n url: `/api/identity/roles/${id}`,\n },\n { apiName: this.apiName });\n\n getAllList = () =>\n this.restService.request<any, ListResultDto<IdentityRoleDto>>({\n method: 'GET',\n url: '/api/identity/roles/all',\n },\n { apiName: this.apiName });\n\n getList = (input: GetIdentityRolesInput) =>\n this.restService.request<any, PagedResultDto<IdentityRoleDto>>({\n method: 'GET',\n url: '/api/identity/roles',\n params: { filter: input.filter, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },\n },\n { apiName: this.apiName });\n\n update = (id: string, input: IdentityRoleUpdateDto) =>\n this.restService.request<any, IdentityRoleDto>({\n method: 'PUT',\n url: `/api/identity/roles/${id}`,\n body: input,\n },\n { apiName: this.apiName });\n\n constructor(private restService: RestService) {}\n}\n"]}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 IdentityUserLookupService {
|
|
6
|
+
constructor(restService) {
|
|
7
|
+
this.restService = restService;
|
|
8
|
+
this.apiName = 'AbpIdentity';
|
|
9
|
+
this.findById = (id) => this.restService.request({
|
|
10
|
+
method: 'GET',
|
|
11
|
+
url: `/api/identity/users/lookup/${id}`,
|
|
12
|
+
}, { apiName: this.apiName });
|
|
13
|
+
this.findByUserName = (userName) => this.restService.request({
|
|
14
|
+
method: 'GET',
|
|
15
|
+
url: `/api/identity/users/lookup/by-username/${userName}`,
|
|
16
|
+
}, { apiName: this.apiName });
|
|
17
|
+
this.getCount = (input) => this.restService.request({
|
|
18
|
+
method: 'GET',
|
|
19
|
+
url: '/api/identity/users/lookup/count',
|
|
20
|
+
params: { filter: input.filter },
|
|
21
|
+
}, { apiName: this.apiName });
|
|
22
|
+
this.search = (input) => this.restService.request({
|
|
23
|
+
method: 'GET',
|
|
24
|
+
url: '/api/identity/users/lookup/search',
|
|
25
|
+
params: { filter: input.filter, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
|
|
26
|
+
}, { apiName: this.apiName });
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
IdentityUserLookupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: IdentityUserLookupService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
30
|
+
IdentityUserLookupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: IdentityUserLookupService, providedIn: 'root' });
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: IdentityUserLookupService, decorators: [{
|
|
32
|
+
type: Injectable,
|
|
33
|
+
args: [{
|
|
34
|
+
providedIn: 'root',
|
|
35
|
+
}]
|
|
36
|
+
}], ctorParameters: function () { return [{ type: i1.RestService }]; } });
|
|
37
|
+
//# sourceMappingURL=identity-user-lookup.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity-user-lookup.service.js","sourceRoot":"","sources":["../../../../../../../../packages/identity/proxy/src/lib/proxy/identity/identity-user-lookup.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;;;AAM3C,MAAM,OAAO,yBAAyB;IAiCpC,YAAoB,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;QAhC5C,YAAO,GAAG,aAAa,CAAC;QAExB,aAAQ,GAAG,CAAC,EAAU,EAAE,EAAE,CACxB,IAAI,CAAC,WAAW,CAAC,OAAO,CAAgB;YACtC,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,8BAA8B,EAAE,EAAE;SACxC,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,mBAAc,GAAG,CAAC,QAAgB,EAAE,EAAE,CACpC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAgB;YACtC,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,0CAA0C,QAAQ,EAAE;SAC1D,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,aAAQ,GAAG,CAAC,KAA8B,EAAE,EAAE,CAC5C,IAAI,CAAC,WAAW,CAAC,OAAO,CAAc;YACpC,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,kCAAkC;YACvC,MAAM,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE;SACjC,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,WAAM,GAAG,CAAC,KAA+B,EAAE,EAAE,CAC3C,IAAI,CAAC,WAAW,CAAC,OAAO,CAA+B;YACrD,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,mCAAmC;YACxC,MAAM,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,cAAc,EAAE,KAAK,CAAC,cAAc,EAAE;SAC3H,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IAEkB,CAAC;;sHAjCrC,yBAAyB;0HAAzB,yBAAyB,cAFxB,MAAM;2FAEP,yBAAyB;kBAHrC,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB","sourcesContent":["import type { UserLookupCountInputDto, UserLookupSearchInputDto } from './models';\nimport { RestService } from '@abp/ng.core';\nimport type { ListResultDto } from '@abp/ng.core';\nimport { Injectable } from '@angular/core';\nimport type { UserData } from '../users/models';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class IdentityUserLookupService {\n apiName = 'AbpIdentity';\n\n findById = (id: string) =>\n this.restService.request<any, UserData>({\n method: 'GET',\n url: `/api/identity/users/lookup/${id}`,\n },\n { apiName: this.apiName });\n\n findByUserName = (userName: string) =>\n this.restService.request<any, UserData>({\n method: 'GET',\n url: `/api/identity/users/lookup/by-username/${userName}`,\n },\n { apiName: this.apiName });\n\n getCount = (input: UserLookupCountInputDto) =>\n this.restService.request<any, number>({\n method: 'GET',\n url: '/api/identity/users/lookup/count',\n params: { filter: input.filter },\n },\n { apiName: this.apiName });\n\n search = (input: UserLookupSearchInputDto) =>\n this.restService.request<any, ListResultDto<UserData>>({\n method: 'GET',\n url: '/api/identity/users/lookup/search',\n params: { filter: input.filter, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },\n },\n { apiName: this.apiName });\n\n constructor(private restService: RestService) {}\n}\n"]}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 IdentityUserService {
|
|
6
|
+
constructor(restService) {
|
|
7
|
+
this.restService = restService;
|
|
8
|
+
this.apiName = 'AbpIdentity';
|
|
9
|
+
this.create = (input) => this.restService.request({
|
|
10
|
+
method: 'POST',
|
|
11
|
+
url: '/api/identity/users',
|
|
12
|
+
body: input,
|
|
13
|
+
}, { apiName: this.apiName });
|
|
14
|
+
this.delete = (id) => this.restService.request({
|
|
15
|
+
method: 'DELETE',
|
|
16
|
+
url: `/api/identity/users/${id}`,
|
|
17
|
+
}, { apiName: this.apiName });
|
|
18
|
+
this.findByEmail = (email) => this.restService.request({
|
|
19
|
+
method: 'GET',
|
|
20
|
+
url: `/api/identity/users/by-email/${email}`,
|
|
21
|
+
}, { apiName: this.apiName });
|
|
22
|
+
this.findByUsername = (userName) => this.restService.request({
|
|
23
|
+
method: 'GET',
|
|
24
|
+
url: `/api/identity/users/by-username/${userName}`,
|
|
25
|
+
}, { apiName: this.apiName });
|
|
26
|
+
this.get = (id) => this.restService.request({
|
|
27
|
+
method: 'GET',
|
|
28
|
+
url: `/api/identity/users/${id}`,
|
|
29
|
+
}, { apiName: this.apiName });
|
|
30
|
+
this.getAssignableRoles = () => this.restService.request({
|
|
31
|
+
method: 'GET',
|
|
32
|
+
url: '/api/identity/users/assignable-roles',
|
|
33
|
+
}, { apiName: this.apiName });
|
|
34
|
+
this.getList = (input) => this.restService.request({
|
|
35
|
+
method: 'GET',
|
|
36
|
+
url: '/api/identity/users',
|
|
37
|
+
params: { filter: input.filter, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
|
|
38
|
+
}, { apiName: this.apiName });
|
|
39
|
+
this.getRoles = (id) => this.restService.request({
|
|
40
|
+
method: 'GET',
|
|
41
|
+
url: `/api/identity/users/${id}/roles`,
|
|
42
|
+
}, { apiName: this.apiName });
|
|
43
|
+
this.update = (id, input) => this.restService.request({
|
|
44
|
+
method: 'PUT',
|
|
45
|
+
url: `/api/identity/users/${id}`,
|
|
46
|
+
body: input,
|
|
47
|
+
}, { apiName: this.apiName });
|
|
48
|
+
this.updateRoles = (id, input) => this.restService.request({
|
|
49
|
+
method: 'PUT',
|
|
50
|
+
url: `/api/identity/users/${id}/roles`,
|
|
51
|
+
body: input,
|
|
52
|
+
}, { apiName: this.apiName });
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
IdentityUserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: IdentityUserService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
56
|
+
IdentityUserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: IdentityUserService, providedIn: 'root' });
|
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: IdentityUserService, decorators: [{
|
|
58
|
+
type: Injectable,
|
|
59
|
+
args: [{
|
|
60
|
+
providedIn: 'root',
|
|
61
|
+
}]
|
|
62
|
+
}], ctorParameters: function () { return [{ type: i1.RestService }]; } });
|
|
63
|
+
//# sourceMappingURL=identity-user.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity-user.service.js","sourceRoot":"","sources":["../../../../../../../../packages/identity/proxy/src/lib/proxy/identity/identity-user.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;;;AAK3C,MAAM,OAAO,mBAAmB;IA6E9B,YAAoB,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;QA5E5C,YAAO,GAAG,aAAa,CAAC;QAExB,WAAM,GAAG,CAAC,KAA4B,EAAE,EAAE,CACxC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAuB;YAC7C,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,qBAAqB;YAC1B,IAAI,EAAE,KAAK;SACZ,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,WAAM,GAAG,CAAC,EAAU,EAAE,EAAE,CACtB,IAAI,CAAC,WAAW,CAAC,OAAO,CAAY;YAClC,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,uBAAuB,EAAE,EAAE;SACjC,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,gBAAW,GAAG,CAAC,KAAa,EAAE,EAAE,CAC9B,IAAI,CAAC,WAAW,CAAC,OAAO,CAAuB;YAC7C,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,gCAAgC,KAAK,EAAE;SAC7C,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,mBAAc,GAAG,CAAC,QAAgB,EAAE,EAAE,CACpC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAuB;YAC7C,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,mCAAmC,QAAQ,EAAE;SACnD,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,QAAG,GAAG,CAAC,EAAU,EAAE,EAAE,CACnB,IAAI,CAAC,WAAW,CAAC,OAAO,CAAuB;YAC7C,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,uBAAuB,EAAE,EAAE;SACjC,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,uBAAkB,GAAG,GAAG,EAAE,CACxB,IAAI,CAAC,WAAW,CAAC,OAAO,CAAsC;YAC5D,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,sCAAsC;SAC5C,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,YAAO,GAAG,CAAC,KAA4B,EAAE,EAAE,CACzC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAuC;YAC7D,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,qBAAqB;YAC1B,MAAM,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,cAAc,EAAE,KAAK,CAAC,cAAc,EAAE;SAC3H,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,aAAQ,GAAG,CAAC,EAAU,EAAE,EAAE,CACxB,IAAI,CAAC,WAAW,CAAC,OAAO,CAAsC;YAC5D,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,uBAAuB,EAAE,QAAQ;SACvC,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,WAAM,GAAG,CAAC,EAAU,EAAE,KAA4B,EAAE,EAAE,CACpD,IAAI,CAAC,WAAW,CAAC,OAAO,CAAuB;YAC7C,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,uBAAuB,EAAE,EAAE;YAChC,IAAI,EAAE,KAAK;SACZ,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAE7B,gBAAW,GAAG,CAAC,EAAU,EAAE,KAAiC,EAAE,EAAE,CAC9D,IAAI,CAAC,WAAW,CAAC,OAAO,CAAY;YAClC,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,uBAAuB,EAAE,QAAQ;YACtC,IAAI,EAAE,KAAK;SACZ,EACD,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IAEkB,CAAC;;gHA7ErC,mBAAmB;oHAAnB,mBAAmB,cAFlB,MAAM;2FAEP,mBAAmB;kBAH/B,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB","sourcesContent":["import type { GetIdentityUsersInput, IdentityRoleDto, IdentityUserCreateDto, IdentityUserDto, IdentityUserUpdateDto, IdentityUserUpdateRolesDto } from './models';\nimport { RestService } from '@abp/ng.core';\nimport type { ListResultDto, PagedResultDto } from '@abp/ng.core';\nimport { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class IdentityUserService {\n apiName = 'AbpIdentity';\n\n create = (input: IdentityUserCreateDto) =>\n this.restService.request<any, IdentityUserDto>({\n method: 'POST',\n url: '/api/identity/users',\n body: input,\n },\n { apiName: this.apiName });\n\n delete = (id: string) =>\n this.restService.request<any, void>({\n method: 'DELETE',\n url: `/api/identity/users/${id}`,\n },\n { apiName: this.apiName });\n\n findByEmail = (email: string) =>\n this.restService.request<any, IdentityUserDto>({\n method: 'GET',\n url: `/api/identity/users/by-email/${email}`,\n },\n { apiName: this.apiName });\n\n findByUsername = (userName: string) =>\n this.restService.request<any, IdentityUserDto>({\n method: 'GET',\n url: `/api/identity/users/by-username/${userName}`,\n },\n { apiName: this.apiName });\n\n get = (id: string) =>\n this.restService.request<any, IdentityUserDto>({\n method: 'GET',\n url: `/api/identity/users/${id}`,\n },\n { apiName: this.apiName });\n\n getAssignableRoles = () =>\n this.restService.request<any, ListResultDto<IdentityRoleDto>>({\n method: 'GET',\n url: '/api/identity/users/assignable-roles',\n },\n { apiName: this.apiName });\n\n getList = (input: GetIdentityUsersInput) =>\n this.restService.request<any, PagedResultDto<IdentityUserDto>>({\n method: 'GET',\n url: '/api/identity/users',\n params: { filter: input.filter, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },\n },\n { apiName: this.apiName });\n\n getRoles = (id: string) =>\n this.restService.request<any, ListResultDto<IdentityRoleDto>>({\n method: 'GET',\n url: `/api/identity/users/${id}/roles`,\n },\n { apiName: this.apiName });\n\n update = (id: string, input: IdentityUserUpdateDto) =>\n this.restService.request<any, IdentityUserDto>({\n method: 'PUT',\n url: `/api/identity/users/${id}`,\n body: input,\n },\n { apiName: this.apiName });\n\n updateRoles = (id: string, input: IdentityUserUpdateRolesDto) =>\n this.restService.request<any, void>({\n method: 'PUT',\n url: `/api/identity/users/${id}/roles`,\n body: input,\n },\n { apiName: this.apiName });\n\n constructor(private restService: RestService) {}\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/identity/proxy/src/lib/proxy/identity/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC","sourcesContent":["export * from './identity-role.service';\nexport * from './identity-user-lookup.service';\nexport * from './identity-user.service';\nexport * from './models';\nexport * from './profile.service';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../../../../../packages/identity/proxy/src/lib/proxy/identity/models.ts"],"names":[],"mappings":"","sourcesContent":["import type { ExtensibleEntityDto, ExtensibleFullAuditedEntityDto, ExtensibleObject, PagedAndSortedResultRequestDto } from '@abp/ng.core';\n\nexport interface ChangePasswordInput {\n currentPassword?: string;\n newPassword: string;\n}\n\nexport interface GetIdentityRolesInput extends PagedAndSortedResultRequestDto {\n filter?: string;\n}\n\nexport interface GetIdentityUsersInput extends PagedAndSortedResultRequestDto {\n filter?: string;\n}\n\nexport interface IdentityRoleCreateDto extends IdentityRoleCreateOrUpdateDtoBase {\n}\n\nexport interface IdentityRoleCreateOrUpdateDtoBase extends ExtensibleObject {\n name: string;\n isDefault: boolean;\n isPublic: boolean;\n}\n\nexport interface IdentityRoleDto extends ExtensibleEntityDto<string> {\n name?: string;\n isDefault: boolean;\n isStatic: boolean;\n isPublic: boolean;\n concurrencyStamp?: string;\n}\n\nexport interface IdentityRoleUpdateDto extends IdentityRoleCreateOrUpdateDtoBase {\n concurrencyStamp?: string;\n}\n\nexport interface IdentityUserCreateDto extends IdentityUserCreateOrUpdateDtoBase {\n password: string;\n}\n\nexport interface IdentityUserCreateOrUpdateDtoBase extends ExtensibleObject {\n userName: string;\n name?: string;\n surname?: string;\n email: string;\n phoneNumber?: string;\n lockoutEnabled: boolean;\n roleNames: string[];\n}\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\nexport interface IdentityUserUpdateDto extends IdentityUserCreateOrUpdateDtoBase {\n password?: string;\n concurrencyStamp?: string;\n}\n\nexport interface IdentityUserUpdateRolesDto {\n roleNames: 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 UpdateProfileDto extends ExtensibleObject {\n userName?: string;\n email?: string;\n name?: string;\n surname?: string;\n phoneNumber?: string;\n concurrencyStamp?: string;\n}\n\nexport interface UserLookupCountInputDto {\n filter?: string;\n}\n\nexport interface UserLookupSearchInputDto extends PagedAndSortedResultRequestDto {\n filter?: 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 = 'AbpIdentity';
|
|
9
|
+
this.changePassword = (input) => this.restService.request({
|
|
10
|
+
method: 'POST',
|
|
11
|
+
url: '/api/identity/my-profile/change-password',
|
|
12
|
+
body: input,
|
|
13
|
+
}, { apiName: this.apiName });
|
|
14
|
+
this.get = () => this.restService.request({
|
|
15
|
+
method: 'GET',
|
|
16
|
+
url: '/api/identity/my-profile',
|
|
17
|
+
}, { apiName: this.apiName });
|
|
18
|
+
this.update = (input) => this.restService.request({
|
|
19
|
+
method: 'PUT',
|
|
20
|
+
url: '/api/identity/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/identity/proxy/src/lib/proxy/identity/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,aAAa,CAAC;QAExB,mBAAc,GAAG,CAAC,KAA0B,EAAE,EAAE,CAC9C,IAAI,CAAC,WAAW,CAAC,OAAO,CAAY;YAClC,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,0CAA0C;YAC/C,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,0BAA0B;SAChC,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,0BAA0B;YAC/B,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 = 'AbpIdentity';\n\n changePassword = (input: ChangePasswordInput) =>\n this.restService.request<any, void>({\n method: 'POST',\n url: '/api/identity/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/identity/my-profile',\n },\n { apiName: this.apiName });\n\n update = (input: UpdateProfileDto) =>\n this.restService.request<any, ProfileDto>({\n method: 'PUT',\n url: '/api/identity/my-profile',\n body: input,\n },\n { apiName: this.apiName });\n\n constructor(private restService: RestService) {}\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/identity/proxy/src/lib/proxy/users/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC","sourcesContent":["export * from './models';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../../../../../packages/identity/proxy/src/lib/proxy/users/models.ts"],"names":[],"mappings":"","sourcesContent":["\nexport interface UserData {\n id?: 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}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-api.js","sourceRoot":"","sources":["../../../../../packages/identity/proxy/src/public-api.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC","sourcesContent":["export * from './lib/index';\n"]}
|
package/esm2015/public-api.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
export * from './lib/actions';
|
|
2
1
|
export * from './lib/components';
|
|
3
2
|
export * from './lib/enums';
|
|
4
3
|
export * from './lib/guards';
|
|
5
4
|
export * from './lib/identity.module';
|
|
6
5
|
export * from './lib/models';
|
|
7
|
-
export * from './lib/proxy/identity';
|
|
8
|
-
export * from './lib/proxy/users';
|
|
9
|
-
export * from './lib/services';
|
|
10
|
-
export * from './lib/states';
|
|
11
6
|
export * from './lib/tokens';
|
|
12
|
-
//# sourceMappingURL=
|
|
7
|
+
//# sourceMappingURL=public-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-api.js","sourceRoot":"","sources":["../../../../packages/identity/src/public-api.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC","sourcesContent":["export * from './lib/components';\nexport * from './lib/enums';\nexport * from './lib/guards';\nexport * from './lib/identity.module';\nexport * from './lib/models';\nexport * from './lib/tokens';\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
1
2
|
import { APP_INITIALIZER, NgModule } from '@angular/core';
|
|
2
3
|
import { RoutesService } from '@abp/ng.core';
|
|
3
4
|
|
|
@@ -42,13 +43,16 @@ class IdentityConfigModule {
|
|
|
42
43
|
};
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
|
-
IdentityConfigModule
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
IdentityConfigModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: IdentityConfigModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
47
|
+
IdentityConfigModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: IdentityConfigModule });
|
|
48
|
+
IdentityConfigModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: IdentityConfigModule });
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: IdentityConfigModule, decorators: [{
|
|
50
|
+
type: NgModule
|
|
51
|
+
}] });
|
|
48
52
|
|
|
49
53
|
/**
|
|
50
54
|
* Generated bundle index. Do not edit.
|
|
51
55
|
*/
|
|
52
56
|
|
|
53
|
-
export { IDENTITY_ROUTE_PROVIDERS, IdentityConfigModule, configureRoutes
|
|
57
|
+
export { IDENTITY_ROUTE_PROVIDERS, IdentityConfigModule, configureRoutes };
|
|
54
58
|
//# sourceMappingURL=abp-ng.identity-config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abp-ng.identity-config.js","sources":["
|
|
1
|
+
{"version":3,"file":"abp-ng.identity-config.js","sources":["../../../../packages/identity/config/src/providers/route.provider.ts","../../../../packages/identity/config/src/identity-config.module.ts","../../../../packages/identity/config/src/abp-ng.identity-config.ts"],"sourcesContent":["import { eLayoutType, RoutesService } from '@abp/ng.core';\nimport { eThemeSharedRouteNames } from '@abp/ng.theme.shared';\nimport { APP_INITIALIZER } from '@angular/core';\nimport { eIdentityPolicyNames } from '../enums/policy-names';\nimport { eIdentityRouteNames } from '../enums/route-names';\n\nexport const IDENTITY_ROUTE_PROVIDERS = [\n { provide: APP_INITIALIZER, useFactory: configureRoutes, deps: [RoutesService], multi: true },\n];\n\nexport function configureRoutes(routesService: RoutesService) {\n return () => {\n routesService.add([\n {\n path: undefined,\n name: eIdentityRouteNames.IdentityManagement,\n parentName: eThemeSharedRouteNames.Administration,\n requiredPolicy: eIdentityPolicyNames.IdentityManagement,\n iconClass: 'fa fa-id-card-o',\n layout: eLayoutType.application,\n order: 1,\n },\n {\n path: '/identity/roles',\n name: eIdentityRouteNames.Roles,\n parentName: eIdentityRouteNames.IdentityManagement,\n requiredPolicy: eIdentityPolicyNames.Roles,\n order: 1,\n },\n {\n path: '/identity/users',\n name: eIdentityRouteNames.Users,\n parentName: eIdentityRouteNames.IdentityManagement,\n requiredPolicy: eIdentityPolicyNames.Users,\n order: 2,\n },\n ]);\n };\n}\n","import { ModuleWithProviders, NgModule } from '@angular/core';\nimport { IDENTITY_ROUTE_PROVIDERS } from './providers/route.provider';\n\n@NgModule()\nexport class IdentityConfigModule {\n static forRoot(): ModuleWithProviders<IdentityConfigModule> {\n return {\n ngModule: IdentityConfigModule,\n providers: [IDENTITY_ROUTE_PROVIDERS],\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAMa,wBAAwB,GAAG;IACtC,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,aAAa,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE;EAC7F;SAEc,eAAe,CAAC,aAA4B;IAC1D,OAAO;QACL,aAAa,CAAC,GAAG,CAAC;YAChB;gBACE,IAAI,EAAE,SAAS;gBACf,IAAI;gBACJ,UAAU;gBACV,cAAc;gBACd,SAAS,EAAE,iBAAiB;gBAC5B,MAAM;gBACN,KAAK,EAAE,CAAC;aACT;YACD;gBACE,IAAI,EAAE,iBAAiB;gBACvB,IAAI;gBACJ,UAAU;gBACV,cAAc;gBACd,KAAK,EAAE,CAAC;aACT;YACD;gBACE,IAAI,EAAE,iBAAiB;gBACvB,IAAI;gBACJ,UAAU;gBACV,cAAc;gBACd,KAAK,EAAE,CAAC;aACT;SACF,CAAC,CAAC;KACJ,CAAC;AACJ;;MClCa,oBAAoB;IAC/B,OAAO,OAAO;QACZ,OAAO;YACL,QAAQ,EAAE,oBAAoB;YAC9B,SAAS,EAAE,CAAC,wBAAwB,CAAC;SACtC,CAAC;KACH;;iHANU,oBAAoB;kHAApB,oBAAoB;kHAApB,oBAAoB;2FAApB,oBAAoB;kBADhC,QAAQ;;;ACHT;;;;;;"}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import * as i1 from '@abp/ng.core';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { Injectable } from '@angular/core';
|
|
4
|
+
|
|
5
|
+
class IdentityRoleService {
|
|
6
|
+
constructor(restService) {
|
|
7
|
+
this.restService = restService;
|
|
8
|
+
this.apiName = 'AbpIdentity';
|
|
9
|
+
this.create = (input) => this.restService.request({
|
|
10
|
+
method: 'POST',
|
|
11
|
+
url: '/api/identity/roles',
|
|
12
|
+
body: input,
|
|
13
|
+
}, { apiName: this.apiName });
|
|
14
|
+
this.delete = (id) => this.restService.request({
|
|
15
|
+
method: 'DELETE',
|
|
16
|
+
url: `/api/identity/roles/${id}`,
|
|
17
|
+
}, { apiName: this.apiName });
|
|
18
|
+
this.get = (id) => this.restService.request({
|
|
19
|
+
method: 'GET',
|
|
20
|
+
url: `/api/identity/roles/${id}`,
|
|
21
|
+
}, { apiName: this.apiName });
|
|
22
|
+
this.getAllList = () => this.restService.request({
|
|
23
|
+
method: 'GET',
|
|
24
|
+
url: '/api/identity/roles/all',
|
|
25
|
+
}, { apiName: this.apiName });
|
|
26
|
+
this.getList = (input) => this.restService.request({
|
|
27
|
+
method: 'GET',
|
|
28
|
+
url: '/api/identity/roles',
|
|
29
|
+
params: { filter: input.filter, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
|
|
30
|
+
}, { apiName: this.apiName });
|
|
31
|
+
this.update = (id, input) => this.restService.request({
|
|
32
|
+
method: 'PUT',
|
|
33
|
+
url: `/api/identity/roles/${id}`,
|
|
34
|
+
body: input,
|
|
35
|
+
}, { apiName: this.apiName });
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
IdentityRoleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: IdentityRoleService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
39
|
+
IdentityRoleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: IdentityRoleService, providedIn: 'root' });
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: IdentityRoleService, decorators: [{
|
|
41
|
+
type: Injectable,
|
|
42
|
+
args: [{
|
|
43
|
+
providedIn: 'root',
|
|
44
|
+
}]
|
|
45
|
+
}], ctorParameters: function () { return [{ type: i1.RestService }]; } });
|
|
46
|
+
|
|
47
|
+
class IdentityUserLookupService {
|
|
48
|
+
constructor(restService) {
|
|
49
|
+
this.restService = restService;
|
|
50
|
+
this.apiName = 'AbpIdentity';
|
|
51
|
+
this.findById = (id) => this.restService.request({
|
|
52
|
+
method: 'GET',
|
|
53
|
+
url: `/api/identity/users/lookup/${id}`,
|
|
54
|
+
}, { apiName: this.apiName });
|
|
55
|
+
this.findByUserName = (userName) => this.restService.request({
|
|
56
|
+
method: 'GET',
|
|
57
|
+
url: `/api/identity/users/lookup/by-username/${userName}`,
|
|
58
|
+
}, { apiName: this.apiName });
|
|
59
|
+
this.getCount = (input) => this.restService.request({
|
|
60
|
+
method: 'GET',
|
|
61
|
+
url: '/api/identity/users/lookup/count',
|
|
62
|
+
params: { filter: input.filter },
|
|
63
|
+
}, { apiName: this.apiName });
|
|
64
|
+
this.search = (input) => this.restService.request({
|
|
65
|
+
method: 'GET',
|
|
66
|
+
url: '/api/identity/users/lookup/search',
|
|
67
|
+
params: { filter: input.filter, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
|
|
68
|
+
}, { apiName: this.apiName });
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
IdentityUserLookupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: IdentityUserLookupService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
72
|
+
IdentityUserLookupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: IdentityUserLookupService, providedIn: 'root' });
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: IdentityUserLookupService, decorators: [{
|
|
74
|
+
type: Injectable,
|
|
75
|
+
args: [{
|
|
76
|
+
providedIn: 'root',
|
|
77
|
+
}]
|
|
78
|
+
}], ctorParameters: function () { return [{ type: i1.RestService }]; } });
|
|
79
|
+
|
|
80
|
+
class IdentityUserService {
|
|
81
|
+
constructor(restService) {
|
|
82
|
+
this.restService = restService;
|
|
83
|
+
this.apiName = 'AbpIdentity';
|
|
84
|
+
this.create = (input) => this.restService.request({
|
|
85
|
+
method: 'POST',
|
|
86
|
+
url: '/api/identity/users',
|
|
87
|
+
body: input,
|
|
88
|
+
}, { apiName: this.apiName });
|
|
89
|
+
this.delete = (id) => this.restService.request({
|
|
90
|
+
method: 'DELETE',
|
|
91
|
+
url: `/api/identity/users/${id}`,
|
|
92
|
+
}, { apiName: this.apiName });
|
|
93
|
+
this.findByEmail = (email) => this.restService.request({
|
|
94
|
+
method: 'GET',
|
|
95
|
+
url: `/api/identity/users/by-email/${email}`,
|
|
96
|
+
}, { apiName: this.apiName });
|
|
97
|
+
this.findByUsername = (userName) => this.restService.request({
|
|
98
|
+
method: 'GET',
|
|
99
|
+
url: `/api/identity/users/by-username/${userName}`,
|
|
100
|
+
}, { apiName: this.apiName });
|
|
101
|
+
this.get = (id) => this.restService.request({
|
|
102
|
+
method: 'GET',
|
|
103
|
+
url: `/api/identity/users/${id}`,
|
|
104
|
+
}, { apiName: this.apiName });
|
|
105
|
+
this.getAssignableRoles = () => this.restService.request({
|
|
106
|
+
method: 'GET',
|
|
107
|
+
url: '/api/identity/users/assignable-roles',
|
|
108
|
+
}, { apiName: this.apiName });
|
|
109
|
+
this.getList = (input) => this.restService.request({
|
|
110
|
+
method: 'GET',
|
|
111
|
+
url: '/api/identity/users',
|
|
112
|
+
params: { filter: input.filter, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
|
|
113
|
+
}, { apiName: this.apiName });
|
|
114
|
+
this.getRoles = (id) => this.restService.request({
|
|
115
|
+
method: 'GET',
|
|
116
|
+
url: `/api/identity/users/${id}/roles`,
|
|
117
|
+
}, { apiName: this.apiName });
|
|
118
|
+
this.update = (id, input) => this.restService.request({
|
|
119
|
+
method: 'PUT',
|
|
120
|
+
url: `/api/identity/users/${id}`,
|
|
121
|
+
body: input,
|
|
122
|
+
}, { apiName: this.apiName });
|
|
123
|
+
this.updateRoles = (id, input) => this.restService.request({
|
|
124
|
+
method: 'PUT',
|
|
125
|
+
url: `/api/identity/users/${id}/roles`,
|
|
126
|
+
body: input,
|
|
127
|
+
}, { apiName: this.apiName });
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
IdentityUserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: IdentityUserService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
131
|
+
IdentityUserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: IdentityUserService, providedIn: 'root' });
|
|
132
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: IdentityUserService, decorators: [{
|
|
133
|
+
type: Injectable,
|
|
134
|
+
args: [{
|
|
135
|
+
providedIn: 'root',
|
|
136
|
+
}]
|
|
137
|
+
}], ctorParameters: function () { return [{ type: i1.RestService }]; } });
|
|
138
|
+
|
|
139
|
+
class ProfileService {
|
|
140
|
+
constructor(restService) {
|
|
141
|
+
this.restService = restService;
|
|
142
|
+
this.apiName = 'AbpIdentity';
|
|
143
|
+
this.changePassword = (input) => this.restService.request({
|
|
144
|
+
method: 'POST',
|
|
145
|
+
url: '/api/identity/my-profile/change-password',
|
|
146
|
+
body: input,
|
|
147
|
+
}, { apiName: this.apiName });
|
|
148
|
+
this.get = () => this.restService.request({
|
|
149
|
+
method: 'GET',
|
|
150
|
+
url: '/api/identity/my-profile',
|
|
151
|
+
}, { apiName: this.apiName });
|
|
152
|
+
this.update = (input) => this.restService.request({
|
|
153
|
+
method: 'PUT',
|
|
154
|
+
url: '/api/identity/my-profile',
|
|
155
|
+
body: input,
|
|
156
|
+
}, { apiName: this.apiName });
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
ProfileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ProfileService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
160
|
+
ProfileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ProfileService, providedIn: 'root' });
|
|
161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ProfileService, decorators: [{
|
|
162
|
+
type: Injectable,
|
|
163
|
+
args: [{
|
|
164
|
+
providedIn: 'root',
|
|
165
|
+
}]
|
|
166
|
+
}], ctorParameters: function () { return [{ type: i1.RestService }]; } });
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Generated bundle index. Do not edit.
|
|
170
|
+
*/
|
|
171
|
+
|
|
172
|
+
export { IdentityRoleService, IdentityUserLookupService, IdentityUserService, ProfileService };
|
|
173
|
+
//# sourceMappingURL=abp-ng.identity-proxy.js.map
|