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

fixed type #356

Merged
merged 2 commits into from Jan 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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