Browse Source

feat(openiddict): 增加范围类型导出.

pull/1056/head
colin 1 year ago
parent
commit
8eb5221951
  1. 1
      apps/vben5/packages/@abp/openiddict/src/types/index.ts
  2. 41
      apps/vben5/packages/@abp/openiddict/src/types/scopes.ts

1
apps/vben5/packages/@abp/openiddict/src/types/index.ts

@ -1,2 +1,3 @@
export * from './applications'; export * from './applications';
export * from './authorizations'; export * from './authorizations';
export * from './scopes';

41
apps/vben5/packages/@abp/openiddict/src/types/scopes.ts

@ -0,0 +1,41 @@
import type {
Dictionary,
ExtensibleAuditedEntityDto,
ExtensibleObject,
PagedAndSortedResultRequestDto,
} from '@abp/core';
interface OpenIddictScopeCreateOrUpdateDto extends ExtensibleObject {
description?: string;
descriptions?: Dictionary<string, string>;
displayName?: string;
displayNames?: Dictionary<string, string>;
name: string;
properties?: Dictionary<string, string>;
resources?: string[];
}
type OpenIddictScopeCreateDto = OpenIddictScopeCreateOrUpdateDto;
interface OpenIddictScopeGetListInput extends PagedAndSortedResultRequestDto {
filter?: string;
}
type OpenIddictScopeUpdateDto = OpenIddictScopeCreateOrUpdateDto;
interface OpenIddictScopeDto extends ExtensibleAuditedEntityDto<string> {
description?: string;
descriptions?: Dictionary<string, string>;
displayName?: string;
displayNames?: Dictionary<string, string>;
name: string;
properties?: Dictionary<string, string>;
resources?: string[];
}
export type {
OpenIddictScopeCreateDto,
OpenIddictScopeDto,
OpenIddictScopeGetListInput,
OpenIddictScopeUpdateDto,
};
Loading…
Cancel
Save