From c8a1d188e4d111fd41f5fd746b5bd09671d968f0 Mon Sep 17 00:00:00 2001 From: colin Date: Sat, 21 Dec 2024 10:10:49 +0800 Subject: [PATCH] =?UTF-8?q?feat(openiddict):=20=E5=A2=9E=E5=8A=A0applicati?= =?UTF-8?q?ons=E7=B1=BB=E5=9E=8B=E5=AF=BC=E5=87=BA.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../packages/@abp/openiddict/src/index.ts | 1 + .../@abp/openiddict/src/types/applications.ts | 62 +++++++++++++++++++ .../@abp/openiddict/src/types/index.ts | 1 + 3 files changed, 64 insertions(+) create mode 100644 apps/vben5/packages/@abp/openiddict/src/index.ts create mode 100644 apps/vben5/packages/@abp/openiddict/src/types/applications.ts create mode 100644 apps/vben5/packages/@abp/openiddict/src/types/index.ts diff --git a/apps/vben5/packages/@abp/openiddict/src/index.ts b/apps/vben5/packages/@abp/openiddict/src/index.ts new file mode 100644 index 000000000..fcb073fef --- /dev/null +++ b/apps/vben5/packages/@abp/openiddict/src/index.ts @@ -0,0 +1 @@ +export * from './types'; diff --git a/apps/vben5/packages/@abp/openiddict/src/types/applications.ts b/apps/vben5/packages/@abp/openiddict/src/types/applications.ts new file mode 100644 index 000000000..d964debc5 --- /dev/null +++ b/apps/vben5/packages/@abp/openiddict/src/types/applications.ts @@ -0,0 +1,62 @@ +import type { + Dictionary, + ExtensibleAuditedEntityDto, + ExtensibleObject, + PagedAndSortedResultRequestDto, +} from '@abp/core'; + +interface OpenIddictApplicationGetListInput + extends PagedAndSortedResultRequestDto { + filter?: string; +} + +interface OpenIddictApplicationCreateOrUpdateDto extends ExtensibleObject { + applicationType?: string; + clientId: string; + clientSecret?: string; + clientType?: string; + clientUri?: string; + consentType?: string; + displayName?: string; + displayNames?: Dictionary; + endpoints?: string[]; + grantTypes?: string[]; + logoUri?: string; + postLogoutRedirectUris?: string[]; + properties?: Dictionary; + redirectUris?: string[]; + requirements?: string[]; + responseTypes?: string[]; + scopes?: string[]; +} + +type OpenIddictApplicationCreateDto = OpenIddictApplicationCreateOrUpdateDto; + +type OpenIddictApplicationUpdateDto = OpenIddictApplicationCreateOrUpdateDto; + +interface OpenIddictApplicationDto extends ExtensibleAuditedEntityDto { + applicationType?: string; + clientId: string; + clientSecret?: string; + clientType?: string; + clientUri?: string; + consentType?: string; + displayName?: string; + displayNames?: Dictionary; + endpoints?: string[]; + grantTypes?: string[]; + logoUri?: string; + postLogoutRedirectUris?: string[]; + properties?: Dictionary; + redirectUris?: string[]; + requirements?: string[]; + responseTypes?: string[]; + scopes?: string[]; +} + +export type { + OpenIddictApplicationCreateDto, + OpenIddictApplicationDto, + OpenIddictApplicationGetListInput, + OpenIddictApplicationUpdateDto, +}; diff --git a/apps/vben5/packages/@abp/openiddict/src/types/index.ts b/apps/vben5/packages/@abp/openiddict/src/types/index.ts new file mode 100644 index 000000000..ad838b1d0 --- /dev/null +++ b/apps/vben5/packages/@abp/openiddict/src/types/index.ts @@ -0,0 +1 @@ +export * from './applications';