@volo/abp.ng.openiddictpro 10.5.0 → 10.6.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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.2",
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.2",
7
+ "@abp/ng.permission-management": "~10.6.0-rc.2",
8
+ "@abp/ng.theme.shared": "~10.6.0-rc.2",
9
+ "@volo/abp.commercial.ng.ui": "~10.6.0-rc.2",
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,30 +89,31 @@ 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
- visiblePermissions: boolean;
108
+ visiblePermissions: i0.WritableSignal<boolean>;
107
109
  onVisiblePermissionChange: (value: boolean) => void;
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
  }
@@ -146,6 +147,8 @@ declare class ApplicationFormModalComponent implements OnInit {
146
147
  visibleChange($event: boolean): void;
147
148
  save(): void;
148
149
  hideFlowToType(): void;
150
+ private syncDisabledStates;
151
+ private setControlDisabled;
149
152
  togglePushAuthorizationState(): void;
150
153
  changeTextToType(displayName: string): string;
151
154
  static ɵfac: i0.ɵɵFactoryDeclaration<ApplicationFormModalComponent, never>;
@@ -159,16 +162,14 @@ declare class ScopesService {
159
162
  setModalState(value: boolean): void;
160
163
  }
161
164
 
162
- declare class ScopesComponent implements OnInit {
165
+ declare class ScopesComponent {
163
166
  protected readonly list: ListService<any>;
164
167
  protected readonly confirmationService: ConfirmationService;
165
168
  protected readonly toasterService: ToasterService;
166
169
  protected readonly service: ScopeService;
167
170
  protected readonly scopesService: ScopesService;
168
- data: PagedResultDto<Scopes.Dtos.ScopeDto>;
171
+ readonly data: i0.Signal<PagedResultDto<_volo_abp_ng_openiddictpro_proxy.ScopeDto>>;
169
172
  selected: Scopes.Dtos.ScopeDto;
170
- private hookToQuery;
171
- ngOnInit(): void;
172
173
  onAdd(): void;
173
174
  onEdit(id: any): void;
174
175
  onDelete(id: any, name: any): void;
@@ -212,6 +213,26 @@ declare function createRoutes(config?: OpenIddictProConfigOptions): Routes;
212
213
 
213
214
  declare const allowFlow: ({ allowImplicitFlow, allowAuthorizationCodeFlow, allowHybridFlow, }: Applications.Dtos.ApplicationDto) => boolean;
214
215
 
216
+ declare class GenerateAccessTokenModalComponent implements OnInit {
217
+ #private;
218
+ protected readonly toasterService: ToasterService;
219
+ readonly selected: i0.InputSignal<_volo_abp_ng_openiddictpro_proxy.ApplicationDto>;
220
+ loading: i0.WritableSignal<boolean>;
221
+ allowedScopes: i0.WritableSignal<string[]>;
222
+ result: i0.WritableSignal<_volo_abp_ng_openiddictpro_proxy.GenerateAccessTokenDto>;
223
+ form: _angular_forms.FormGroup<{
224
+ clientSecret: _angular_forms.FormControl<string>;
225
+ scopes: FormArray<_angular_forms.FormControl<boolean>>;
226
+ }>;
227
+ get scopesFormArray(): FormArray;
228
+ ngOnInit(): void;
229
+ generate(): void;
230
+ copyToken(): void;
231
+ visibleChange($event: boolean): void;
232
+ static ɵfac: i0.ɵɵFactoryDeclaration<GenerateAccessTokenModalComponent, never>;
233
+ static ɵcmp: i0.ɵɵComponentDeclaration<GenerateAccessTokenModalComponent, "abp-generate-access-token-modal", never, { "selected": { "alias": "selected"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
234
+ }
235
+
215
236
  declare const DEFAULT_APPLICATIONS_ENTITY_ACTIONS: EntityAction<_volo_abp_ng_openiddictpro_proxy.ApplicationDto>[];
216
237
 
217
238
  declare const DEFAULT_APPLICATIONS_ENTITY_PROPS: EntityProp<_volo_abp_ng_openiddictpro_proxy.ApplicationDto>[];
@@ -313,4 +334,4 @@ declare function hashSetParser(stringOrArray: string | Array<string>): string |
313
334
 
314
335
  declare function UrisValidator(): ValidatorFn;
315
336
 
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 };
337
+ 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 };