@volo/abp.ng.openiddictpro 9.3.0-rc.2 → 9.3.0-rc.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.
Files changed (70) hide show
  1. package/config/index.d.ts +29 -3
  2. package/fesm2022/volo-abp.ng.openiddictpro-config.mjs +4 -4
  3. package/fesm2022/volo-abp.ng.openiddictpro-config.mjs.map +1 -1
  4. package/fesm2022/volo-abp.ng.openiddictpro-proxy.mjs +6 -6
  5. package/fesm2022/volo-abp.ng.openiddictpro-proxy.mjs.map +1 -1
  6. package/fesm2022/volo-abp.ng.openiddictpro.mjs +26 -26
  7. package/fesm2022/volo-abp.ng.openiddictpro.mjs.map +1 -1
  8. package/index.d.ts +288 -3
  9. package/package.json +5 -5
  10. package/proxy/index.d.ts +152 -5
  11. package/config/enums/index.d.ts +0 -2
  12. package/config/enums/policy-names.d.ts +0 -5
  13. package/config/enums/route-names.d.ts +0 -5
  14. package/config/openiddictpro-config.module.d.ts +0 -11
  15. package/config/providers/index.d.ts +0 -2
  16. package/config/providers/openiddictpro-config.provider.d.ts +0 -1
  17. package/config/providers/route.provider.d.ts +0 -2
  18. package/config/public-api.d.ts +0 -3
  19. package/lib/components/application-form-modal/application-form-modal.component.d.ts +0 -42
  20. package/lib/components/applications/applications.component.d.ts +0 -28
  21. package/lib/components/index.d.ts +0 -6
  22. package/lib/components/scope-form-modal/scope-form-modal.component.d.ts +0 -26
  23. package/lib/components/scopes/allow-flow.d.ts +0 -2
  24. package/lib/components/scopes/scopes.component.d.ts +0 -23
  25. package/lib/components/token-lifetime-modal/token-lifetime-modal.component.d.ts +0 -18
  26. package/lib/defaults/default-applications-consent-type.d.ts +0 -4
  27. package/lib/defaults/default-applications-entity-actions.d.ts +0 -3
  28. package/lib/defaults/default-applications-entity-props.d.ts +0 -3
  29. package/lib/defaults/default-applications-form-props.d.ts +0 -4
  30. package/lib/defaults/default-applications-toolbar-actions.d.ts +0 -3
  31. package/lib/defaults/default-applications-types.d.ts +0 -12
  32. package/lib/defaults/default-scope-entity-actions.d.ts +0 -3
  33. package/lib/defaults/default-scope-entity-props.d.ts +0 -3
  34. package/lib/defaults/default-scope-form-props.d.ts +0 -4
  35. package/lib/defaults/default-scope-toolbar-actions.d.ts +0 -3
  36. package/lib/defaults/default-uri-pattern.d.ts +0 -1
  37. package/lib/defaults/index.d.ts +0 -11
  38. package/lib/enums/components.d.ts +0 -4
  39. package/lib/enums/index.d.ts +0 -1
  40. package/lib/guards/extensions.guard.d.ts +0 -11
  41. package/lib/guards/index.d.ts +0 -1
  42. package/lib/models/applications-service-state.d.ts +0 -4
  43. package/lib/models/config-options.d.ts +0 -26
  44. package/lib/models/index.d.ts +0 -3
  45. package/lib/models/scopes-service-state.d.ts +0 -3
  46. package/lib/openiddictpro-routing.module.d.ts +0 -7
  47. package/lib/openiddictpro.module.d.ts +0 -27
  48. package/lib/openiddictpro.routes.d.ts +0 -3
  49. package/lib/resolvers/extensions.resolver.d.ts +0 -2
  50. package/lib/resolvers/index.d.ts +0 -1
  51. package/lib/services/applications.service.d.ts +0 -9
  52. package/lib/services/index.d.ts +0 -2
  53. package/lib/services/scopes.service.d.ts +0 -6
  54. package/lib/tokens/extensions.token.d.ts +0 -39
  55. package/lib/tokens/index.d.ts +0 -1
  56. package/lib/utils/hashset-parser.d.ts +0 -1
  57. package/lib/utils/index.d.ts +0 -2
  58. package/lib/utils/new-line-regex.d.ts +0 -1
  59. package/lib/utils/uris-validator.d.ts +0 -2
  60. package/proxy/lib/proxy/application.service.d.ts +0 -18
  61. package/proxy/lib/proxy/applications/dtos/index.d.ts +0 -1
  62. package/proxy/lib/proxy/applications/dtos/models.d.ts +0 -65
  63. package/proxy/lib/proxy/applications/index.d.ts +0 -2
  64. package/proxy/lib/proxy/index.d.ts +0 -5
  65. package/proxy/lib/proxy/scope.service.d.ts +0 -17
  66. package/proxy/lib/proxy/scopes/dtos/index.d.ts +0 -1
  67. package/proxy/lib/proxy/scopes/dtos/models.d.ts +0 -21
  68. package/proxy/lib/proxy/scopes/index.d.ts +0 -2
  69. package/proxy/public-api.d.ts +0 -1
  70. package/public-api.d.ts +0 -9
package/index.d.ts CHANGED
@@ -1,5 +1,290 @@
1
+ import * as i0 from '@angular/core';
2
+ import { OnInit, EventEmitter, Injector, DestroyRef, OnChanges, SimpleChanges, ModuleWithProviders, NgModuleFactory, InjectionToken } from '@angular/core';
3
+ import * as _abp_ng_components_extensible from '@abp/ng.components/extensible';
4
+ import { EntityActionContributorCallback, ToolbarActionContributorCallback, EntityPropContributorCallback, CreateFormPropContributorCallback, EditFormPropContributorCallback, EntityAction, EntityProp, FormProp, ToolbarAction } from '@abp/ng.components/extensible';
5
+ import * as _volo_abp_ng_openiddictpro_proxy from '@volo/abp.ng.openiddictpro/proxy';
6
+ import { Applications, Scopes, ApplicationService, ScopeService } from '@volo/abp.ng.openiddictpro/proxy';
7
+ import * as i1 from '@angular/router';
8
+ import { Routes } from '@angular/router';
9
+ import * as i2 from '@abp/ng.core';
10
+ import { ListService, PagedResultDto, LocalizationService, SubscriptionService } from '@abp/ng.core';
11
+ import * as i3 from '@volo/abp.commercial.ng.ui';
12
+ import * as i4 from '@abp/ng.theme.shared';
13
+ import { ToasterService, ConfirmationService } from '@abp/ng.theme.shared';
14
+ import * as i5 from '@ng-bootstrap/ng-bootstrap';
15
+ import * as i6 from '@ngx-validate/core';
16
+ import * as i7 from '@abp/ng.components/page';
17
+ import * as i8 from '@abp/ng.permission-management';
18
+ import * as _angular_forms from '@angular/forms';
19
+ import { UntypedFormGroup, ValidatorFn } from '@angular/forms';
20
+ import * as rxjs from 'rxjs';
21
+ import { Subscription, Observable } from 'rxjs';
22
+
23
+ declare const enum eOpenIddictProComponents {
24
+ Applications = "OpenIddictPro.Applications",
25
+ Scopes = "OpenIddictPro.Scopes"
26
+ }
27
+
28
+ type OpenIddictProEntityActionContributors = Partial<{
29
+ [eOpenIddictProComponents.Applications]: EntityActionContributorCallback<Applications.Dtos.ApplicationDto>[];
30
+ [eOpenIddictProComponents.Scopes]: EntityActionContributorCallback<Scopes.Dtos.ScopeDto>[];
31
+ }>;
32
+ type OpenIddictProToolbarActionContributors = Partial<{
33
+ [eOpenIddictProComponents.Applications]: ToolbarActionContributorCallback<Applications.Dtos.ApplicationDto[]>[];
34
+ }>;
35
+ type OpenIddictProEntityPropContributors = Partial<{
36
+ [eOpenIddictProComponents.Applications]: EntityPropContributorCallback<Applications.Dtos.ApplicationDto>[];
37
+ }>;
38
+ type OpenIddictProCreateFormPropContributors = Partial<{
39
+ [eOpenIddictProComponents.Applications]: CreateFormPropContributorCallback<Applications.Dtos.ApplicationDto>[];
40
+ }>;
41
+ type OpenIddictProEditFormPropContributors = Partial<{
42
+ [eOpenIddictProComponents.Applications]: EditFormPropContributorCallback<Applications.Dtos.ApplicationDto>[];
43
+ }>;
44
+ interface OpenIddictProConfigOptions {
45
+ entityActionContributors?: OpenIddictProEntityActionContributors;
46
+ toolbarActionContributors?: OpenIddictProToolbarActionContributors;
47
+ entityPropContributors?: OpenIddictProEntityPropContributors;
48
+ createFormPropContributors?: OpenIddictProCreateFormPropContributors;
49
+ editFormPropContributors?: OpenIddictProEditFormPropContributors;
50
+ }
51
+
52
+ declare class OpeniddictproRoutingModule {
53
+ static ɵfac: i0.ɵɵFactoryDeclaration<OpeniddictproRoutingModule, never>;
54
+ static ɵmod: i0.ɵɵNgModuleDeclaration<OpeniddictproRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
55
+ static ɵinj: i0.ɵɵInjectorDeclaration<OpeniddictproRoutingModule>;
56
+ }
57
+
58
+ declare class TokenLifetimeModalComponent implements OnInit {
59
+ #private;
60
+ protected readonly toasterService: ToasterService;
61
+ selected: Applications.Dtos.ApplicationDto;
62
+ saved: EventEmitter<any>;
63
+ loading: i0.WritableSignal<boolean>;
64
+ form: _angular_forms.FormGroup<{}>;
65
+ ngOnInit(): void;
66
+ generateTokenLifetimeFormControls(): {};
67
+ save(): void;
68
+ visibleChange($event: boolean): void;
69
+ static ɵfac: i0.ɵɵFactoryDeclaration<TokenLifetimeModalComponent, never>;
70
+ static ɵcmp: i0.ɵɵComponentDeclaration<TokenLifetimeModalComponent, "abp-token-lifetime-modal", never, { "selected": { "alias": "selected"; "required": false; }; }, { "saved": "saved"; }, never, never, true, never>;
71
+ }
72
+
73
+ declare class ApplicationsService {
74
+ #private;
75
+ private state;
76
+ isModalVisible: i0.Signal<boolean>;
77
+ isTokenLifetimeModalVisible: i0.Signal<boolean>;
78
+ openModal(): void;
79
+ setModalState(value: boolean): void;
80
+ setTokenLifetimeModalState(value: boolean): void;
81
+ }
82
+
83
+ declare class ApplicationsComponent implements OnInit {
84
+ protected readonly service: ApplicationsService;
85
+ protected readonly confirmationService: ConfirmationService;
86
+ protected readonly proxyService: ApplicationService;
87
+ protected readonly toasterService: ToasterService;
88
+ protected readonly list: ListService<Applications.Dtos.GetApplicationListInput>;
89
+ data: PagedResultDto<Applications.Dtos.ApplicationDto>;
90
+ readonly selected: i0.WritableSignal<_volo_abp_ng_openiddictpro_proxy.ApplicationDto>;
91
+ providerKey: string;
92
+ visiblePermissions: boolean;
93
+ onVisiblePermissionChange: (value: boolean) => void;
94
+ onSaved(): void;
95
+ edit(id: string): void;
96
+ delete(id: string, name: string): void;
97
+ ngOnInit(): void;
98
+ onAdd(): void;
99
+ openPermissionsModal(providerKey: string): void;
100
+ protected hookToQuery(): void;
101
+ openTokenLifetimeModal(record: Applications.Dtos.ApplicationDto): void;
102
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApplicationsComponent, never>;
103
+ static ɵcmp: i0.ɵɵComponentDeclaration<ApplicationsComponent, "abp-applications", never, {}, {}, never, never, true, never>;
104
+ }
105
+
106
+ declare class ApplicationFormModalComponent implements OnInit {
107
+ protected readonly service: ApplicationService;
108
+ protected readonly applicationsService: ApplicationsService;
109
+ protected readonly localizationService: LocalizationService;
110
+ protected readonly subscription: SubscriptionService;
111
+ protected readonly injector: Injector;
112
+ protected readonly toasterService: ToasterService;
113
+ protected readonly destroyRef: DestroyRef;
114
+ saved: EventEmitter<void>;
115
+ selected: Applications.Dtos.ApplicationDto;
116
+ form: UntypedFormGroup;
117
+ formValueChanges$: Subscription;
118
+ types$: Observable<{
119
+ key: string;
120
+ value: string;
121
+ }[]>;
122
+ consentTypes$: Observable<{
123
+ key: string;
124
+ value: string;
125
+ }[]>;
126
+ options: {
127
+ size: string;
128
+ };
129
+ protected createForm(): void;
130
+ getFormValue(): any;
131
+ ngOnInit(): void;
132
+ visibleChange($event: boolean): void;
133
+ save(): void;
134
+ hideFlowToType(): void;
135
+ togglePushAuthorizationState(): void;
136
+ changeTextToType(displayName: string): string;
137
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApplicationFormModalComponent, never>;
138
+ static ɵcmp: i0.ɵɵComponentDeclaration<ApplicationFormModalComponent, "abp-application-form-modal", never, { "selected": { "alias": "selected"; "required": false; }; }, { "saved": "saved"; }, never, never, true, never>;
139
+ }
140
+
141
+ declare class ScopesService {
142
+ private state;
143
+ isModalVisible$: rxjs.Observable<boolean>;
144
+ openModal(): void;
145
+ setModalState(value: boolean): void;
146
+ }
147
+
148
+ declare class ScopesComponent implements OnInit {
149
+ protected readonly list: ListService<any>;
150
+ protected readonly confirmationService: ConfirmationService;
151
+ protected readonly toasterService: ToasterService;
152
+ protected readonly service: ScopeService;
153
+ protected readonly scopesService: ScopesService;
154
+ data: PagedResultDto<Scopes.Dtos.ScopeDto>;
155
+ selected: Scopes.Dtos.ScopeDto;
156
+ private hookToQuery;
157
+ ngOnInit(): void;
158
+ onAdd(): void;
159
+ onEdit(id: any): void;
160
+ onDelete(id: any, name: any): void;
161
+ onSaved(): void;
162
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScopesComponent, never>;
163
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScopesComponent, "abp-scopes", never, {}, {}, never, never, true, never>;
164
+ }
165
+
166
+ declare class ScopeFormModalComponent implements OnChanges {
167
+ protected readonly injector: Injector;
168
+ protected readonly scopesService: ScopesService;
169
+ protected readonly service: ScopeService;
170
+ protected readonly toasterService: ToasterService;
171
+ form: UntypedFormGroup;
172
+ selected: Scopes.Dtos.ScopeDto | undefined;
173
+ saved: EventEmitter<boolean>;
174
+ blueprints: {
175
+ pattern: string;
176
+ };
177
+ isModalVisible$: Observable<boolean>;
178
+ ngOnChanges(changes: SimpleChanges): void;
179
+ save(): void;
180
+ visibleChange($event: boolean): void;
181
+ private createForm;
182
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScopeFormModalComponent, never>;
183
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScopeFormModalComponent, "abp-scope-form-modal", never, { "selected": { "alias": "selected"; "required": false; }; }, { "saved": "saved"; }, never, never, true, never>;
184
+ }
185
+
186
+ declare class OpeniddictproModule {
187
+ static forChild(options?: OpenIddictProConfigOptions): ModuleWithProviders<OpeniddictproModule>;
188
+ /**
189
+ * @deprecated `OpeniddictproModule.forLazy()` is deprecated. You can use `createRoutes` **function** instead.
190
+ */
191
+ static forLazy(options?: OpenIddictProConfigOptions): NgModuleFactory<OpeniddictproModule>;
192
+ static ɵfac: i0.ɵɵFactoryDeclaration<OpeniddictproModule, never>;
193
+ static ɵmod: i0.ɵɵNgModuleDeclaration<OpeniddictproModule, never, [typeof OpeniddictproRoutingModule, typeof i2.CoreModule, typeof i3.CommercialUiModule, typeof i4.ThemeSharedModule, typeof i5.NgbDropdownModule, typeof i6.NgxValidateCoreModule, typeof i7.PageModule, typeof i3.AdvancedEntityFiltersModule, typeof i8.PermissionManagementModule, typeof _abp_ng_components_extensible.ExtensibleFormComponent, typeof TokenLifetimeModalComponent, typeof _abp_ng_components_extensible.ExtensibleTableComponent, typeof ApplicationsComponent, typeof ApplicationFormModalComponent, typeof ScopesComponent, typeof ScopeFormModalComponent], [typeof ApplicationsComponent, typeof ApplicationFormModalComponent, typeof ScopesComponent, typeof ScopeFormModalComponent]>;
194
+ static ɵinj: i0.ɵɵInjectorDeclaration<OpeniddictproModule>;
195
+ }
196
+
197
+ declare function createRoutes(config?: OpenIddictProConfigOptions): Routes;
198
+
199
+ declare const allowFlow: ({ allowImplicitFlow, allowAuthorizationCodeFlow, allowHybridFlow, }: Applications.Dtos.ApplicationDto) => boolean;
200
+
201
+ declare const DEFAULT_APPLICATIONS_ENTITY_ACTIONS: EntityAction<_volo_abp_ng_openiddictpro_proxy.ApplicationDto>[];
202
+
203
+ declare const DEFAULT_APPLICATIONS_ENTITY_PROPS: EntityProp<_volo_abp_ng_openiddictpro_proxy.ApplicationDto>[];
204
+
205
+ declare const DEFAULT_APPLICATIONS_CREATE_FORM_PROPS: FormProp<_volo_abp_ng_openiddictpro_proxy.ApplicationDto>[];
206
+ declare const DEFAULT_APPLICATIONS_FORM_PROPS: FormProp<_volo_abp_ng_openiddictpro_proxy.ApplicationDto>[];
207
+
208
+ declare const DEFAULT_APPLICATIONS_TOOLBAR_ACTIONS: ToolbarAction<_volo_abp_ng_openiddictpro_proxy.ApplicationDto[]>[];
209
+
210
+ declare const defaultApplicationsTypeList: {
211
+ key: string;
212
+ value: string;
213
+ }[];
214
+ declare const defaultApplicationTypes: {
215
+ public: string;
216
+ confidential: string;
217
+ };
218
+ declare const defaultApplicationTypesList: {
219
+ key: string;
220
+ value: string;
221
+ }[];
222
+
223
+ declare const DefaultApplicationsConsentType: {
224
+ key: string;
225
+ value: string;
226
+ }[];
227
+
228
+ declare const DEFAULT_SCOPE_ENTITY_ACTIONS: EntityAction<_volo_abp_ng_openiddictpro_proxy.ScopeDto>[];
229
+
230
+ declare const DEFAULT_SCOPES_ENTITY_PROPS: EntityProp<_volo_abp_ng_openiddictpro_proxy.ScopeDto>[];
231
+
232
+ declare const DEFAULT_SCOPE_CREATE_FORM_PROPS: FormProp<_volo_abp_ng_openiddictpro_proxy.ScopeDto>[];
233
+ declare const DEFAULT_SCOPES_FORM_PROPS: FormProp<_volo_abp_ng_openiddictpro_proxy.ScopeDto>[];
234
+
235
+ declare const DEFAULT_SCOPES_TOOLBAR_ACTIONS: ToolbarAction<_volo_abp_ng_openiddictpro_proxy.ApplicationDto[]>[];
236
+
237
+ declare const defaultUriPattern: RegExp;
238
+
1
239
  /**
2
- * Generated bundle index. Do not edit.
240
+ * @deprecated Use `openIddictProExtensionsResolver` *function* instead.
3
241
  */
4
- /// <amd-module name="@volo/abp.ng.openiddictpro" />
5
- export * from './public-api';
242
+ declare class OpenIddictProExtensionsGuard {
243
+ private readonly injector;
244
+ canActivate(): Observable<boolean>;
245
+ static ɵfac: i0.ɵɵFactoryDeclaration<OpenIddictProExtensionsGuard, never>;
246
+ static ɵprov: i0.ɵɵInjectableDeclaration<OpenIddictProExtensionsGuard>;
247
+ }
248
+
249
+ declare const DEFAULT_OPENIDDICT_PRO_ENTITY_ACTIONS: {
250
+ "OpenIddictPro.Applications": _abp_ng_components_extensible.EntityAction<_volo_abp_ng_openiddictpro_proxy.ApplicationDto>[];
251
+ "OpenIddictPro.Scopes": _abp_ng_components_extensible.EntityAction<_volo_abp_ng_openiddictpro_proxy.ScopeDto>[];
252
+ };
253
+ declare const DEFAULT_OPENIDDICT_PRO_TOOLBAR_ACTIONS: {
254
+ "OpenIddictPro.Applications": _abp_ng_components_extensible.ToolbarAction<_volo_abp_ng_openiddictpro_proxy.ApplicationDto[]>[];
255
+ "OpenIddictPro.Scopes": _abp_ng_components_extensible.ToolbarAction<_volo_abp_ng_openiddictpro_proxy.ApplicationDto[]>[];
256
+ };
257
+ declare const DEFAULT_OPENIDDICT_PRO_ENTITY_PROPS: {
258
+ "OpenIddictPro.Applications": _abp_ng_components_extensible.EntityProp<_volo_abp_ng_openiddictpro_proxy.ApplicationDto>[];
259
+ "OpenIddictPro.Scopes": _abp_ng_components_extensible.EntityProp<_volo_abp_ng_openiddictpro_proxy.ScopeDto>[];
260
+ };
261
+ declare const DEFAULT_OPENIDDICT_PRO_CREATE_FORM_PROPS: {
262
+ "OpenIddictPro.Applications": _abp_ng_components_extensible.FormProp<_volo_abp_ng_openiddictpro_proxy.ApplicationDto>[];
263
+ "OpenIddictPro.Scopes": _abp_ng_components_extensible.FormProp<_volo_abp_ng_openiddictpro_proxy.ScopeDto>[];
264
+ };
265
+ declare const DEFAULT_OPENIDDICT_PRO_EDIT_FORM_PROPS: {
266
+ "OpenIddictPro.Applications": _abp_ng_components_extensible.FormProp<_volo_abp_ng_openiddictpro_proxy.ApplicationDto>[];
267
+ "OpenIddictPro.Scopes": _abp_ng_components_extensible.FormProp<_volo_abp_ng_openiddictpro_proxy.ScopeDto>[];
268
+ };
269
+ declare const OPENIDDICT_PRO_ENTITY_ACTION_CONTRIBUTORS: InjectionToken<Partial<{
270
+ "OpenIddictPro.Applications": EntityActionContributorCallback<Applications.Dtos.ApplicationDto>[];
271
+ }>>;
272
+ declare const OPENIDDICT_PRO_TOOLBAR_ACTION_CONTRIBUTORS: InjectionToken<Partial<{
273
+ "OpenIddictPro.Applications": ToolbarActionContributorCallback<Applications.Dtos.ApplicationDto[]>[];
274
+ }>>;
275
+ declare const OPENIDDICT_PRO_ENTITY_PROP_CONTRIBUTORS: InjectionToken<Partial<{
276
+ "OpenIddictPro.Applications": EntityPropContributorCallback<Applications.Dtos.ApplicationDto>[];
277
+ "OpenIddictPro.Scopes": EntityPropContributorCallback<Scopes.Dtos.ScopeDto>[];
278
+ }>>;
279
+ declare const OPENIDDICT_PRO_CREATE_FORM_PROP_CONTRIBUTORS: InjectionToken<Partial<{
280
+ "OpenIddictPro.Applications": CreateFormPropContributorCallback<Applications.Dtos.ApplicationDto>[];
281
+ }>>;
282
+ declare const OPENIDDICT_PRO_EDIT_FORM_PROP_CONTRIBUTORS: InjectionToken<Partial<{
283
+ "OpenIddictPro.Applications": EditFormPropContributorCallback<Applications.Dtos.ApplicationDto>[];
284
+ }>>;
285
+
286
+ declare function hashSetParser(stringOrArray: string | Array<string>): string | string[];
287
+
288
+ declare function UrisValidator(): ValidatorFn;
289
+
290
+ export { 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, defaultUriPattern, eOpenIddictProComponents, hashSetParser };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@volo/abp.ng.openiddictpro",
3
- "version": "9.3.0-rc.2",
3
+ "version": "9.3.0-rc.3",
4
4
  "homepage": "https://abp.io",
5
5
  "dependencies": {
6
- "@abp/ng.components": "~9.3.0-rc.2",
7
- "@abp/ng.permission-management": "~9.3.0-rc.2",
8
- "@abp/ng.theme.shared": "~9.3.0-rc.2",
9
- "@volo/abp.commercial.ng.ui": "^9.3.0-rc.2",
6
+ "@abp/ng.components": "~9.3.0-rc.3",
7
+ "@abp/ng.permission-management": "~9.3.0-rc.3",
8
+ "@abp/ng.theme.shared": "~9.3.0-rc.3",
9
+ "@volo/abp.commercial.ng.ui": "^9.3.0-rc.3",
10
10
  "tslib": "^2.0.0"
11
11
  },
12
12
  "publishConfig": {
package/proxy/index.d.ts CHANGED
@@ -1,5 +1,152 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@volo/abp.ng.openiddictpro/proxy" />
5
- export * from './public-api';
1
+ import { ExtensibleObject, ExtensibleEntityDto, PagedAndSortedResultRequestDto, Rest, PagedResultDto, RestService } from '@abp/ng.core';
2
+ import * as rxjs from 'rxjs';
3
+ import * as i0 from '@angular/core';
4
+
5
+ interface ApplicationCreateOrUpdateDtoBase extends ExtensibleObject {
6
+ applicationType: string;
7
+ clientId: string;
8
+ displayName: string;
9
+ clientType?: string;
10
+ clientSecret?: string;
11
+ consentType?: string;
12
+ extensionGrantTypes: string[];
13
+ postLogoutRedirectUris: string[];
14
+ redirectUris: string[];
15
+ allowPasswordFlow: boolean;
16
+ allowClientCredentialsFlow: boolean;
17
+ allowAuthorizationCodeFlow: boolean;
18
+ allowRefreshTokenFlow: boolean;
19
+ allowHybridFlow: boolean;
20
+ allowImplicitFlow: boolean;
21
+ allowEndSessionEndpoint: boolean;
22
+ allowDeviceAuthorizationEndpoint: boolean;
23
+ forcePkce: boolean;
24
+ forcePushedAuthorization: boolean;
25
+ allowPushedAuthorizationEndpoint: boolean;
26
+ scopes: string[];
27
+ clientUri?: string;
28
+ logoUri?: string;
29
+ }
30
+ interface ApplicationDto extends ExtensibleEntityDto<string> {
31
+ applicationType?: string;
32
+ clientId?: string;
33
+ displayName?: string;
34
+ clientType?: string;
35
+ clientSecret?: string;
36
+ consentType?: string;
37
+ extensionGrantTypes: string[];
38
+ postLogoutRedirectUris: string[];
39
+ redirectUris: string[];
40
+ allowPasswordFlow: boolean;
41
+ allowClientCredentialsFlow: boolean;
42
+ allowAuthorizationCodeFlow: boolean;
43
+ allowRefreshTokenFlow: boolean;
44
+ allowHybridFlow: boolean;
45
+ allowImplicitFlow: boolean;
46
+ allowEndSessionEndpoint: boolean;
47
+ allowDeviceAuthorizationEndpoint: boolean;
48
+ forcePkce: boolean;
49
+ scopes: string[];
50
+ clientUri?: string;
51
+ logoUri?: string;
52
+ }
53
+ interface ApplicationTokenLifetimeDto {
54
+ accessTokenLifetime?: number;
55
+ authorizationCodeLifetime?: number;
56
+ deviceCodeLifetime?: number;
57
+ identityTokenLifetime?: number;
58
+ refreshTokenLifetime?: number;
59
+ userCodeLifetime?: number;
60
+ requestTokenLifetime?: number;
61
+ }
62
+ interface CreateApplicationInput extends ApplicationCreateOrUpdateDtoBase {
63
+ }
64
+ interface GetApplicationListInput extends PagedAndSortedResultRequestDto {
65
+ filter?: string;
66
+ }
67
+ interface UpdateApplicationInput extends ApplicationCreateOrUpdateDtoBase {
68
+ }
69
+
70
+ type index_d$3_ApplicationCreateOrUpdateDtoBase = ApplicationCreateOrUpdateDtoBase;
71
+ type index_d$3_ApplicationDto = ApplicationDto;
72
+ type index_d$3_ApplicationTokenLifetimeDto = ApplicationTokenLifetimeDto;
73
+ type index_d$3_CreateApplicationInput = CreateApplicationInput;
74
+ type index_d$3_GetApplicationListInput = GetApplicationListInput;
75
+ type index_d$3_UpdateApplicationInput = UpdateApplicationInput;
76
+ declare namespace index_d$3 {
77
+ 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 };
78
+ }
79
+
80
+ declare namespace index_d$2 {
81
+ export {
82
+ index_d$3 as Dtos,
83
+ };
84
+ }
85
+
86
+ interface CreateScopeInput extends ScopeCreateOrUpdateDtoBase {
87
+ }
88
+ interface GetScopeListInput extends PagedAndSortedResultRequestDto {
89
+ filter?: string;
90
+ }
91
+ interface ScopeCreateOrUpdateDtoBase extends ExtensibleObject {
92
+ name: string;
93
+ displayName?: string;
94
+ description?: string;
95
+ resources: string[];
96
+ }
97
+ interface ScopeDto extends ExtensibleEntityDto<string> {
98
+ name?: string;
99
+ displayName?: string;
100
+ description?: string;
101
+ buildIn: boolean;
102
+ resources: string[];
103
+ }
104
+ interface UpdateScopeInput extends ScopeCreateOrUpdateDtoBase {
105
+ }
106
+
107
+ type index_d$1_CreateScopeInput = CreateScopeInput;
108
+ type index_d$1_GetScopeListInput = GetScopeListInput;
109
+ type index_d$1_ScopeCreateOrUpdateDtoBase = ScopeCreateOrUpdateDtoBase;
110
+ type index_d$1_ScopeDto = ScopeDto;
111
+ type index_d$1_UpdateScopeInput = UpdateScopeInput;
112
+ declare namespace index_d$1 {
113
+ export type { index_d$1_CreateScopeInput as CreateScopeInput, index_d$1_GetScopeListInput as GetScopeListInput, index_d$1_ScopeCreateOrUpdateDtoBase as ScopeCreateOrUpdateDtoBase, index_d$1_ScopeDto as ScopeDto, index_d$1_UpdateScopeInput as UpdateScopeInput };
114
+ }
115
+
116
+ declare namespace index_d {
117
+ export {
118
+ index_d$1 as Dtos,
119
+ };
120
+ }
121
+
122
+ declare class ApplicationService {
123
+ private restService;
124
+ apiName: string;
125
+ create: (input: CreateApplicationInput, config?: Partial<Rest.Config>) => rxjs.Observable<ApplicationDto>;
126
+ delete: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<void>;
127
+ get: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<ApplicationDto>;
128
+ getList: (input: GetApplicationListInput, config?: Partial<Rest.Config>) => rxjs.Observable<PagedResultDto<ApplicationDto>>;
129
+ getTokenLifetime: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<ApplicationTokenLifetimeDto>;
130
+ setTokenLifetime: (id: string, input: ApplicationTokenLifetimeDto, config?: Partial<Rest.Config>) => rxjs.Observable<void>;
131
+ update: (id: string, input: UpdateApplicationInput, config?: Partial<Rest.Config>) => rxjs.Observable<ApplicationDto>;
132
+ constructor(restService: RestService);
133
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApplicationService, never>;
134
+ static ɵprov: i0.ɵɵInjectableDeclaration<ApplicationService>;
135
+ }
136
+
137
+ declare class ScopeService {
138
+ private restService;
139
+ apiName: string;
140
+ create: (input: CreateScopeInput, config?: Partial<Rest.Config>) => rxjs.Observable<ScopeDto>;
141
+ delete: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<void>;
142
+ get: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<ScopeDto>;
143
+ getAllScopes: (config?: Partial<Rest.Config>) => rxjs.Observable<ScopeDto[]>;
144
+ getList: (input: GetScopeListInput, config?: Partial<Rest.Config>) => rxjs.Observable<PagedResultDto<ScopeDto>>;
145
+ update: (id: string, input: UpdateScopeInput, config?: Partial<Rest.Config>) => rxjs.Observable<ScopeDto>;
146
+ constructor(restService: RestService);
147
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScopeService, never>;
148
+ static ɵprov: i0.ɵɵInjectableDeclaration<ScopeService>;
149
+ }
150
+
151
+ export { ApplicationService, index_d$2 as Applications, ScopeService, index_d as Scopes };
152
+ export type { ApplicationCreateOrUpdateDtoBase, ApplicationDto, ApplicationTokenLifetimeDto, CreateApplicationInput, CreateScopeInput, GetApplicationListInput, GetScopeListInput, ScopeCreateOrUpdateDtoBase, ScopeDto, UpdateApplicationInput, UpdateScopeInput };
@@ -1,2 +0,0 @@
1
- export * from './policy-names';
2
- export * from './route-names';
@@ -1,5 +0,0 @@
1
- export declare const enum eOpenIddictProPolicyNames {
2
- default = "OpenIddictPro.Application",
3
- application = "OpenIddictPro.Application",
4
- scope = "OpenIddictPro.Scope"
5
- }
@@ -1,5 +0,0 @@
1
- export declare const enum eOpenIddictProRouteNames {
2
- Default = "AbpOpenIddict::Menu:OpenIddict",
3
- Applications = "AbpOpenIddict::Applications",
4
- Scopes = "AbpOpenIddict::Scopes"
5
- }
@@ -1,11 +0,0 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * @deprecated OpeniddictproConfigModule is deprecated use `provideOpeniddictproConfig` *function* instead.
5
- */
6
- export declare class OpeniddictproConfigModule {
7
- static forRoot(): ModuleWithProviders<OpeniddictproConfigModule>;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<OpeniddictproConfigModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<OpeniddictproConfigModule, never, never, never>;
10
- static ɵinj: i0.ɵɵInjectorDeclaration<OpeniddictproConfigModule>;
11
- }
@@ -1,2 +0,0 @@
1
- export * from './route.provider';
2
- export * from './openiddictpro-config.provider';
@@ -1 +0,0 @@
1
- export declare function provideOpeniddictproConfig(): import("@angular/core").EnvironmentProviders;
@@ -1,2 +0,0 @@
1
- export declare const OPENIDDICT_ROUTE_PROVIDERS: import("@angular/core").EnvironmentProviders[];
2
- export declare function configureRoutes(): void;
@@ -1,3 +0,0 @@
1
- export * from './openiddictpro-config.module';
2
- export * from './providers';
3
- export * from './enums';
@@ -1,42 +0,0 @@
1
- import { EventEmitter, Injector, OnInit, DestroyRef } from '@angular/core';
2
- import { UntypedFormGroup } from '@angular/forms';
3
- import { Observable, Subscription } from 'rxjs';
4
- import { LocalizationService, SubscriptionService } from '@abp/ng.core';
5
- import { ToasterService } from '@abp/ng.theme.shared';
6
- import { Applications, ApplicationService } from '@volo/abp.ng.openiddictpro/proxy';
7
- import { ApplicationsService } from '../../services/applications.service';
8
- import * as i0 from "@angular/core";
9
- export declare class ApplicationFormModalComponent implements OnInit {
10
- protected readonly service: ApplicationService;
11
- protected readonly applicationsService: ApplicationsService;
12
- protected readonly localizationService: LocalizationService;
13
- protected readonly subscription: SubscriptionService;
14
- protected readonly injector: Injector;
15
- protected readonly toasterService: ToasterService;
16
- protected readonly destroyRef: DestroyRef;
17
- saved: EventEmitter<void>;
18
- selected: Applications.Dtos.ApplicationDto;
19
- form: UntypedFormGroup;
20
- formValueChanges$: Subscription;
21
- types$: Observable<{
22
- key: string;
23
- value: string;
24
- }[]>;
25
- consentTypes$: Observable<{
26
- key: string;
27
- value: string;
28
- }[]>;
29
- options: {
30
- size: string;
31
- };
32
- protected createForm(): void;
33
- getFormValue(): any;
34
- ngOnInit(): void;
35
- visibleChange($event: boolean): void;
36
- save(): void;
37
- hideFlowToType(): void;
38
- togglePushAuthorizationState(): void;
39
- changeTextToType(displayName: string): string;
40
- static ɵfac: i0.ɵɵFactoryDeclaration<ApplicationFormModalComponent, never>;
41
- static ɵcmp: i0.ɵɵComponentDeclaration<ApplicationFormModalComponent, "abp-application-form-modal", never, { "selected": { "alias": "selected"; "required": false; }; }, { "saved": "saved"; }, never, never, true, never>;
42
- }
@@ -1,28 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { ListService, PagedResultDto } from '@abp/ng.core';
3
- import { ConfirmationService, ToasterService } from '@abp/ng.theme.shared';
4
- import { Applications, ApplicationService } from '@volo/abp.ng.openiddictpro/proxy';
5
- import { ApplicationsService } from '../../services/applications.service';
6
- import * as i0 from "@angular/core";
7
- export declare class ApplicationsComponent implements OnInit {
8
- protected readonly service: ApplicationsService;
9
- protected readonly confirmationService: ConfirmationService;
10
- protected readonly proxyService: ApplicationService;
11
- protected readonly toasterService: ToasterService;
12
- protected readonly list: ListService<Applications.Dtos.GetApplicationListInput>;
13
- data: PagedResultDto<Applications.Dtos.ApplicationDto>;
14
- readonly selected: import("@angular/core").WritableSignal<Applications.Dtos.ApplicationDto>;
15
- providerKey: string;
16
- visiblePermissions: boolean;
17
- onVisiblePermissionChange: (value: boolean) => void;
18
- onSaved(): void;
19
- edit(id: string): void;
20
- delete(id: string, name: string): void;
21
- ngOnInit(): void;
22
- onAdd(): void;
23
- openPermissionsModal(providerKey: string): void;
24
- protected hookToQuery(): void;
25
- openTokenLifetimeModal(record: Applications.Dtos.ApplicationDto): void;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<ApplicationsComponent, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<ApplicationsComponent, "abp-applications", never, {}, {}, never, never, true, never>;
28
- }
@@ -1,6 +0,0 @@
1
- export * from './applications/applications.component';
2
- export * from './application-form-modal/application-form-modal.component';
3
- export * from './scopes/scopes.component';
4
- export * from './scopes/allow-flow';
5
- export * from './scope-form-modal/scope-form-modal.component';
6
- export * from './token-lifetime-modal/token-lifetime-modal.component';
@@ -1,26 +0,0 @@
1
- import { EventEmitter, Injector, OnChanges, SimpleChanges } from '@angular/core';
2
- import { UntypedFormGroup } from '@angular/forms';
3
- import { Observable } from 'rxjs';
4
- import { ToasterService } from '@abp/ng.theme.shared';
5
- import { Scopes, ScopeService } from '@volo/abp.ng.openiddictpro/proxy';
6
- import { ScopesService } from '../../services/scopes.service';
7
- import * as i0 from "@angular/core";
8
- export declare class ScopeFormModalComponent implements OnChanges {
9
- protected readonly injector: Injector;
10
- protected readonly scopesService: ScopesService;
11
- protected readonly service: ScopeService;
12
- protected readonly toasterService: ToasterService;
13
- form: UntypedFormGroup;
14
- selected: Scopes.Dtos.ScopeDto | undefined;
15
- saved: EventEmitter<boolean>;
16
- blueprints: {
17
- pattern: string;
18
- };
19
- isModalVisible$: Observable<boolean>;
20
- ngOnChanges(changes: SimpleChanges): void;
21
- save(): void;
22
- visibleChange($event: boolean): void;
23
- private createForm;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<ScopeFormModalComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<ScopeFormModalComponent, "abp-scope-form-modal", never, { "selected": { "alias": "selected"; "required": false; }; }, { "saved": "saved"; }, never, never, true, never>;
26
- }
@@ -1,2 +0,0 @@
1
- import { Applications } from '@volo/abp.ng.openiddictpro/proxy';
2
- export declare const allowFlow: ({ allowImplicitFlow, allowAuthorizationCodeFlow, allowHybridFlow, }: Applications.Dtos.ApplicationDto) => boolean;
@@ -1,23 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { ListService, PagedResultDto } from '@abp/ng.core';
3
- import { ConfirmationService, ToasterService } from '@abp/ng.theme.shared';
4
- import { Scopes, ScopeService } from '@volo/abp.ng.openiddictpro/proxy';
5
- import { ScopesService } from '../../services/scopes.service';
6
- import * as i0 from "@angular/core";
7
- export declare class ScopesComponent implements OnInit {
8
- protected readonly list: ListService<any>;
9
- protected readonly confirmationService: ConfirmationService;
10
- protected readonly toasterService: ToasterService;
11
- protected readonly service: ScopeService;
12
- protected readonly scopesService: ScopesService;
13
- data: PagedResultDto<Scopes.Dtos.ScopeDto>;
14
- selected: Scopes.Dtos.ScopeDto;
15
- private hookToQuery;
16
- ngOnInit(): void;
17
- onAdd(): void;
18
- onEdit(id: any): void;
19
- onDelete(id: any, name: any): void;
20
- onSaved(): void;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<ScopesComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<ScopesComponent, "abp-scopes", never, {}, {}, never, never, true, never>;
23
- }