@volo/abp.ng.openiddictpro 10.5.0 → 10.6.0-rc.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/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@volo/abp.ng.openiddictpro",
3
- "version": "10.5.0",
3
+ "version": "10.6.0-rc.1",
4
4
  "homepage": "https://abp.io",
5
5
  "dependencies": {
6
- "@abp/ng.components": "~10.5.0",
7
- "@abp/ng.permission-management": "~10.5.0",
8
- "@abp/ng.theme.shared": "~10.5.0",
9
- "@volo/abp.commercial.ng.ui": "~10.5.0",
6
+ "@abp/ng.components": "~10.6.0-rc.1",
7
+ "@abp/ng.permission-management": "~10.6.0-rc.1",
8
+ "@abp/ng.theme.shared": "~10.6.0-rc.1",
9
+ "@volo/abp.commercial.ng.ui": "~10.6.0-rc.1",
10
10
  "tslib": "^2.0.0"
11
11
  },
12
12
  "publishConfig": {
@@ -70,6 +70,16 @@ interface ApplicationTokenLifetimeDto {
70
70
  }
71
71
  interface CreateApplicationInput extends ApplicationCreateOrUpdateDtoBase {
72
72
  }
73
+ interface GenerateAccessTokenDto {
74
+ accessToken?: string;
75
+ tokenType?: string;
76
+ expiresIn?: number | null;
77
+ scope?: string;
78
+ }
79
+ interface GenerateAccessTokenInput {
80
+ clientSecret: string;
81
+ scopes?: string[];
82
+ }
73
83
  interface GetApplicationListInput extends PagedAndSortedResultRequestDto {
74
84
  filter?: string;
75
85
  }
@@ -80,10 +90,12 @@ type index_d$3_ApplicationCreateOrUpdateDtoBase = ApplicationCreateOrUpdateDtoBa
80
90
  type index_d$3_ApplicationDto = ApplicationDto;
81
91
  type index_d$3_ApplicationTokenLifetimeDto = ApplicationTokenLifetimeDto;
82
92
  type index_d$3_CreateApplicationInput = CreateApplicationInput;
93
+ type index_d$3_GenerateAccessTokenDto = GenerateAccessTokenDto;
94
+ type index_d$3_GenerateAccessTokenInput = GenerateAccessTokenInput;
83
95
  type index_d$3_GetApplicationListInput = GetApplicationListInput;
84
96
  type index_d$3_UpdateApplicationInput = UpdateApplicationInput;
85
97
  declare namespace index_d$3 {
86
- export type { index_d$3_ApplicationCreateOrUpdateDtoBase as ApplicationCreateOrUpdateDtoBase, index_d$3_ApplicationDto as ApplicationDto, index_d$3_ApplicationTokenLifetimeDto as ApplicationTokenLifetimeDto, index_d$3_CreateApplicationInput as CreateApplicationInput, index_d$3_GetApplicationListInput as GetApplicationListInput, index_d$3_UpdateApplicationInput as UpdateApplicationInput };
98
+ export type { index_d$3_ApplicationCreateOrUpdateDtoBase as ApplicationCreateOrUpdateDtoBase, index_d$3_ApplicationDto as ApplicationDto, index_d$3_ApplicationTokenLifetimeDto as ApplicationTokenLifetimeDto, index_d$3_CreateApplicationInput as CreateApplicationInput, index_d$3_GenerateAccessTokenDto as GenerateAccessTokenDto, index_d$3_GenerateAccessTokenInput as GenerateAccessTokenInput, index_d$3_GetApplicationListInput as GetApplicationListInput, index_d$3_UpdateApplicationInput as UpdateApplicationInput };
87
99
  }
88
100
 
89
101
  declare namespace index_d$2 {
@@ -133,6 +145,7 @@ declare class ApplicationService {
133
145
  apiName: string;
134
146
  create: (input: CreateApplicationInput, config?: Partial<Rest.Config>) => rxjs.Observable<ApplicationDto>;
135
147
  delete: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<void>;
148
+ generateAccessToken: (id: string, input: GenerateAccessTokenInput, config?: Partial<Rest.Config>) => rxjs.Observable<GenerateAccessTokenDto>;
136
149
  get: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<ApplicationDto>;
137
150
  getList: (input: GetApplicationListInput, config?: Partial<Rest.Config>) => rxjs.Observable<PagedResultDto<ApplicationDto>>;
138
151
  getTokenLifetime: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<ApplicationTokenLifetimeDto>;
@@ -156,4 +169,4 @@ declare class ScopeService {
156
169
  }
157
170
 
158
171
  export { ApplicationService, index_d$2 as Applications, ScopeService, index_d as Scopes };
159
- export type { ApplicationCreateOrUpdateDtoBase, ApplicationDto, ApplicationTokenLifetimeDto, CreateApplicationInput, CreateScopeInput, GetApplicationListInput, GetScopeListInput, ScopeCreateOrUpdateDtoBase, ScopeDto, UpdateApplicationInput, UpdateScopeInput };
172
+ export type { ApplicationCreateOrUpdateDtoBase, ApplicationDto, ApplicationTokenLifetimeDto, CreateApplicationInput, CreateScopeInput, GenerateAccessTokenDto, GenerateAccessTokenInput, GetApplicationListInput, GetScopeListInput, ScopeCreateOrUpdateDtoBase, ScopeDto, UpdateApplicationInput, UpdateScopeInput };
@@ -16,7 +16,7 @@ import * as i6 from '@ngx-validate/core';
16
16
  import * as i7 from '@abp/ng.components/page';
17
17
  import * as i8 from '@abp/ng.permission-management';
18
18
  import * as _angular_forms from '@angular/forms';
19
- import { FormControl, UntypedFormGroup, ValidatorFn } from '@angular/forms';
19
+ import { FormControl, UntypedFormGroup, FormArray, ValidatorFn } from '@angular/forms';
20
20
  import * as rxjs from 'rxjs';
21
21
  import { Subscription, Observable } from 'rxjs';
22
22
 
@@ -89,18 +89,20 @@ declare class ApplicationsService {
89
89
  private state;
90
90
  isModalVisible: i0.Signal<boolean>;
91
91
  isTokenLifetimeModalVisible: i0.Signal<boolean>;
92
+ isGenerateAccessTokenModalVisible: i0.Signal<boolean>;
92
93
  openModal(): void;
93
94
  setModalState(value: boolean): void;
94
95
  setTokenLifetimeModalState(value: boolean): void;
96
+ setGenerateAccessTokenModalState(value: boolean): void;
95
97
  }
96
98
 
97
- declare class ApplicationsComponent implements OnInit {
99
+ declare class ApplicationsComponent {
98
100
  protected readonly service: ApplicationsService;
99
101
  protected readonly confirmationService: ConfirmationService;
100
102
  protected readonly proxyService: ApplicationService;
101
103
  protected readonly toasterService: ToasterService;
102
104
  protected readonly list: ListService<Applications.Dtos.GetApplicationListInput>;
103
- data: PagedResultDto<Applications.Dtos.ApplicationDto>;
105
+ readonly data: i0.Signal<PagedResultDto<_volo_abp_ng_openiddictpro_proxy.ApplicationDto>>;
104
106
  readonly selected: i0.WritableSignal<_volo_abp_ng_openiddictpro_proxy.ApplicationDto>;
105
107
  providerKey: string;
106
108
  visiblePermissions: boolean;
@@ -108,11 +110,10 @@ declare class ApplicationsComponent implements OnInit {
108
110
  onSaved(): void;
109
111
  edit(id: string): void;
110
112
  delete(id: string, name: string): void;
111
- ngOnInit(): void;
112
113
  onAdd(): void;
113
114
  openPermissionsModal(providerKey: string): void;
114
- protected hookToQuery(): void;
115
115
  openTokenLifetimeModal(record: Applications.Dtos.ApplicationDto): void;
116
+ openGenerateAccessTokenModal(record: Applications.Dtos.ApplicationDto): void;
116
117
  static ɵfac: i0.ɵɵFactoryDeclaration<ApplicationsComponent, never>;
117
118
  static ɵcmp: i0.ɵɵComponentDeclaration<ApplicationsComponent, "abp-applications", never, {}, {}, never, never, true, never>;
118
119
  }
@@ -159,16 +160,14 @@ declare class ScopesService {
159
160
  setModalState(value: boolean): void;
160
161
  }
161
162
 
162
- declare class ScopesComponent implements OnInit {
163
+ declare class ScopesComponent {
163
164
  protected readonly list: ListService<any>;
164
165
  protected readonly confirmationService: ConfirmationService;
165
166
  protected readonly toasterService: ToasterService;
166
167
  protected readonly service: ScopeService;
167
168
  protected readonly scopesService: ScopesService;
168
- data: PagedResultDto<Scopes.Dtos.ScopeDto>;
169
+ readonly data: i0.Signal<PagedResultDto<_volo_abp_ng_openiddictpro_proxy.ScopeDto>>;
169
170
  selected: Scopes.Dtos.ScopeDto;
170
- private hookToQuery;
171
- ngOnInit(): void;
172
171
  onAdd(): void;
173
172
  onEdit(id: any): void;
174
173
  onDelete(id: any, name: any): void;
@@ -212,6 +211,26 @@ declare function createRoutes(config?: OpenIddictProConfigOptions): Routes;
212
211
 
213
212
  declare const allowFlow: ({ allowImplicitFlow, allowAuthorizationCodeFlow, allowHybridFlow, }: Applications.Dtos.ApplicationDto) => boolean;
214
213
 
214
+ declare class GenerateAccessTokenModalComponent implements OnInit {
215
+ #private;
216
+ protected readonly toasterService: ToasterService;
217
+ readonly selected: i0.InputSignal<_volo_abp_ng_openiddictpro_proxy.ApplicationDto>;
218
+ loading: i0.WritableSignal<boolean>;
219
+ allowedScopes: i0.WritableSignal<string[]>;
220
+ result: i0.WritableSignal<_volo_abp_ng_openiddictpro_proxy.GenerateAccessTokenDto>;
221
+ form: _angular_forms.FormGroup<{
222
+ clientSecret: _angular_forms.FormControl<string>;
223
+ scopes: FormArray<_angular_forms.FormControl<boolean>>;
224
+ }>;
225
+ get scopesFormArray(): FormArray;
226
+ ngOnInit(): void;
227
+ generate(): void;
228
+ copyToken(): void;
229
+ visibleChange($event: boolean): void;
230
+ static ɵfac: i0.ɵɵFactoryDeclaration<GenerateAccessTokenModalComponent, never>;
231
+ static ɵcmp: i0.ɵɵComponentDeclaration<GenerateAccessTokenModalComponent, "abp-generate-access-token-modal", never, { "selected": { "alias": "selected"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
232
+ }
233
+
215
234
  declare const DEFAULT_APPLICATIONS_ENTITY_ACTIONS: EntityAction<_volo_abp_ng_openiddictpro_proxy.ApplicationDto>[];
216
235
 
217
236
  declare const DEFAULT_APPLICATIONS_ENTITY_PROPS: EntityProp<_volo_abp_ng_openiddictpro_proxy.ApplicationDto>[];
@@ -313,4 +332,4 @@ declare function hashSetParser(stringOrArray: string | Array<string>): string |
313
332
 
314
333
  declare function UrisValidator(): ValidatorFn;
315
334
 
316
- export { ApplicationClientAuthMethodFieldComponent, ApplicationFormModalComponent, ApplicationsComponent, ApplicationsService, DEFAULT_APPLICATIONS_CREATE_FORM_PROPS, DEFAULT_APPLICATIONS_ENTITY_ACTIONS, DEFAULT_APPLICATIONS_ENTITY_PROPS, DEFAULT_APPLICATIONS_FORM_PROPS, DEFAULT_APPLICATIONS_TOOLBAR_ACTIONS, DEFAULT_OPENIDDICT_PRO_CREATE_FORM_PROPS, DEFAULT_OPENIDDICT_PRO_EDIT_FORM_PROPS, DEFAULT_OPENIDDICT_PRO_ENTITY_ACTIONS, DEFAULT_OPENIDDICT_PRO_ENTITY_PROPS, DEFAULT_OPENIDDICT_PRO_TOOLBAR_ACTIONS, DEFAULT_SCOPES_ENTITY_PROPS, DEFAULT_SCOPES_FORM_PROPS, DEFAULT_SCOPES_TOOLBAR_ACTIONS, DEFAULT_SCOPE_CREATE_FORM_PROPS, DEFAULT_SCOPE_ENTITY_ACTIONS, DefaultApplicationsConsentType, OPENIDDICT_PRO_CREATE_FORM_PROP_CONTRIBUTORS, OPENIDDICT_PRO_EDIT_FORM_PROP_CONTRIBUTORS, OPENIDDICT_PRO_ENTITY_ACTION_CONTRIBUTORS, OPENIDDICT_PRO_ENTITY_PROP_CONTRIBUTORS, OPENIDDICT_PRO_TOOLBAR_ACTION_CONTRIBUTORS, OpenIddictProExtensionsGuard, OpeniddictproModule, ScopeFormModalComponent, ScopesComponent, ScopesService, TokenLifetimeModalComponent, UrisValidator, allowFlow, createRoutes, defaultApplicationTypes, defaultApplicationTypesList, defaultApplicationsTypeList, defaultClientAuthenticationMethods, defaultUriPattern, eOpenIddictProComponents, hashSetParser };
335
+ export { ApplicationClientAuthMethodFieldComponent, ApplicationFormModalComponent, ApplicationsComponent, ApplicationsService, DEFAULT_APPLICATIONS_CREATE_FORM_PROPS, DEFAULT_APPLICATIONS_ENTITY_ACTIONS, DEFAULT_APPLICATIONS_ENTITY_PROPS, DEFAULT_APPLICATIONS_FORM_PROPS, DEFAULT_APPLICATIONS_TOOLBAR_ACTIONS, DEFAULT_OPENIDDICT_PRO_CREATE_FORM_PROPS, DEFAULT_OPENIDDICT_PRO_EDIT_FORM_PROPS, DEFAULT_OPENIDDICT_PRO_ENTITY_ACTIONS, DEFAULT_OPENIDDICT_PRO_ENTITY_PROPS, DEFAULT_OPENIDDICT_PRO_TOOLBAR_ACTIONS, DEFAULT_SCOPES_ENTITY_PROPS, DEFAULT_SCOPES_FORM_PROPS, DEFAULT_SCOPES_TOOLBAR_ACTIONS, DEFAULT_SCOPE_CREATE_FORM_PROPS, DEFAULT_SCOPE_ENTITY_ACTIONS, DefaultApplicationsConsentType, GenerateAccessTokenModalComponent, OPENIDDICT_PRO_CREATE_FORM_PROP_CONTRIBUTORS, OPENIDDICT_PRO_EDIT_FORM_PROP_CONTRIBUTORS, OPENIDDICT_PRO_ENTITY_ACTION_CONTRIBUTORS, OPENIDDICT_PRO_ENTITY_PROP_CONTRIBUTORS, OPENIDDICT_PRO_TOOLBAR_ACTION_CONTRIBUTORS, OpenIddictProExtensionsGuard, OpeniddictproModule, ScopeFormModalComponent, ScopesComponent, ScopesService, TokenLifetimeModalComponent, UrisValidator, allowFlow, createRoutes, defaultApplicationTypes, defaultApplicationTypesList, defaultApplicationsTypeList, defaultClientAuthenticationMethods, defaultUriPattern, eOpenIddictProComponents, hashSetParser };