Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
fixed type (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
edewit committed Jan 4, 2022
1 parent e604d80 commit 72d6e49
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/defs/policyProviderRepresentation.ts
@@ -1,4 +1,4 @@
export interface PolicyProviderRepresentation {
export default interface PolicyProviderRepresentation {
type?: string;
name?: string;
group?: string;
Expand Down
9 changes: 6 additions & 3 deletions src/resources/clients.ts
Expand Up @@ -16,7 +16,7 @@ import CertificateRepresentation from '../defs/certificateRepresentation';
import KeyStoreConfig from '../defs/keystoreConfig';
import ResourceServerRepresentation from '../defs/resourceServerRepresentation';
import ScopeRepresentation from '../defs/scopeRepresentation';
import {PolicyProviderRepresentation} from '../defs/policyProviderRepresentation';
import PolicyProviderRepresentation from '../defs/policyProviderRepresentation';

export interface PaginatedQuery {
first?: number;
Expand Down Expand Up @@ -625,7 +625,7 @@ export class Clients extends Resource<{realm?: string}> {

public listPolicyProviders = this.makeRequest<
{id: string},
PolicyProviderRepresentation
PolicyProviderRepresentation[]
>({
method: 'GET',
path: '/{id}/authz/resource-server/policy/providers',
Expand Down Expand Up @@ -658,7 +658,10 @@ export class Clients extends Resource<{realm?: string}> {
/**
* Scopes
*/
public listAllScopes = this.makeRequest<{id: string}, ScopeRepresentation[]>({
public listAllScopes = this.makeRequest<
{id: string} & PaginatedQuery,
ScopeRepresentation[]
>({
method: 'GET',
path: '/{id}/authz/resource-server/scope',
urlParamKeys: ['id'],
Expand Down

0 comments on commit 72d6e49

Please sign in to comment.