Skip to content

Commit

Permalink
chore: improve imports of types
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbi08 committed Feb 14, 2024
1 parent f84d24f commit 20b640b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 43 deletions.
10 changes: 5 additions & 5 deletions packages/sdk/src/endpoints/AttributesEndpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ import {
ExecuteRelationshipAttributeQueryRequest,
ExecuteThirdPartyRelationshipAttributeQueryRequest,
GetAttributesRequest,
GetOwnRepositoryAttributesRequest,
GetOwnSharedIdentityAttributesRequest,
GetPeerSharedIdentityAttributesRequest,
GetSharedVersionsOfRepositoryAttributeRequest,
GetValidAttributesRequest,
NotifyPeerAboutIdentityAttributeSuccessionRequest,
NotifyPeerAboutIdentityAttributeSuccessionResponse,
SucceedAttributeRequest,
SucceedAttributeResponse
} from "../types";
import { GetOwnRepositoryAttributes } from "../types/attributes/requests/GetOwnRepositoryAttributesRequest";
import { GetOwnSharedIdentityAttributesRequest } from "../types/attributes/requests/GetOwnSharedIdentityAttributes";
import { GetPeerSharedIdentityAttributesRequest } from "../types/attributes/requests/GetPeerSharedIdentityAttributes";
import { GetSharedVersionsOfRepositoryAttributeRequest } from "../types/attributes/requests/GetSharedVersionsOfRepositoryAttributeRequest";
import { Endpoint } from "./Endpoint";

export class AttributesEndpoint extends Endpoint {
Expand Down Expand Up @@ -48,7 +48,7 @@ export class AttributesEndpoint extends Endpoint {
return await this.get("/api/v2/Attributes/Valid", request);
}

public async getOwnRepositoryAttributes(request?: GetOwnRepositoryAttributes): Promise<ConnectorResponse<ConnectorAttributes>> {
public async getOwnRepositoryAttributes(request?: GetOwnRepositoryAttributesRequest): Promise<ConnectorResponse<ConnectorAttributes>> {
return await this.get("/api/v2/Attributes/Own/Repository", request);
}
public async getOwnSharedIdentityAttributes(request?: GetOwnSharedIdentityAttributesRequest): Promise<ConnectorResponse<ConnectorAttributes>> {
Expand Down
4 changes: 4 additions & 0 deletions packages/sdk/src/types/attributes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ export * from "./requests/ExecuteIdentityAttributeQueryRequest";
export * from "./requests/ExecuteRelationshipAttributeQueryRequest";
export * from "./requests/ExecuteThirdPartyRelationshipAttributeQueryRequest";
export * from "./requests/GetAttributesRequest";
export * from "./requests/GetOwnRepositoryAttributesRequest";
export * from "./requests/GetOwnSharedIdentityAttributesRequest";
export * from "./requests/GetPeerSharedIdentityAttributesRequest";
export * from "./requests/GetSharedVersionsOfRepositoryAttributeRequest";
export * from "./requests/GetValidAttributesRequest";
export * from "./requests/NotifyPeerAboutIdentityAttributeSuccessionRequest";
export * from "./requests/NotifyPeerAboutIdentityAttributeSuccessionResponse";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export interface GetOwnRepositoryAttributes {
export interface GetOwnRepositoryAttributesRequest {
onlyLatestVersions?: boolean;
}

This file was deleted.

This file was deleted.

0 comments on commit 20b640b

Please sign in to comment.