Skip to content

Commit

Permalink
feat: update AttributesEndpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoenig134 committed Dec 10, 2024
1 parent c4ef9c3 commit ee23309
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/sdk/src/endpoints/AttributesEndpoint.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
ConnectorAttribute,
ConnectorAttributeTagCollection,
ConnectorAttributes,
ConnectorHttpResponse,
CreateRepositoryAttributeRequest,
Expand Down Expand Up @@ -51,6 +52,10 @@ export class AttributesEndpoint extends Endpoint {
return await this.get("/api/v2/Attributes/Valid", request);
}

public async getAttributeTagCollection(): Promise<ConnectorHttpResponse<ConnectorAttributeTagCollection>> {
return await this.get("/api/v2/Attributes/TagCollection");
}

public async getOwnRepositoryAttributes(request?: GetOwnRepositoryAttributesRequest): Promise<ConnectorHttpResponse<ConnectorAttributes>> {
return await this.get("/api/v2/Attributes/Own/Repository", request);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export interface ConnectorAttributeTagCollection {
supportedLanguages: string[];
tagsForAttributeValueTypes: Record<string, Record<string, ConnectorAttributeTag>>;
}

export interface ConnectorAttributeTag {
displayNames: Record<string, string>;
children?: Record<string, ConnectorAttributeTag>;
}
1 change: 1 addition & 0 deletions packages/sdk/src/types/attributes/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export * from "./ConnectorAttribute";
export * from "./ConnectorAttributes";
export * from "./ConnectorAttributeTagCollection";
export * from "./IdentityAttributeQuery";
export * from "./IQLQuery";
export * from "./RelationshipAttributeQuery";
Expand Down

0 comments on commit ee23309

Please sign in to comment.