Skip to content

Commit

Permalink
DeleteAttributeRequestItem is missing in SDK (#215)
Browse files Browse the repository at this point in the history
* fix: add DeleteAttributeRequestItem to SDK

* refactor: renaming
  • Loading branch information
jkoenig134 authored Jul 17, 2024
1 parent dab8bde commit 758ca5b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/sdk/src/types/requests/ConnectorRequestContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface ConnectorRequestContent {
"@type"?: string;
id?: string;
expiresAt?: string;
items: (CreateOutgoingRequestRequestContentItemDerivations | ConnectorRequestContentItemGroup)[];
items: (ConnectorRequestItemDerivation | ConnectorRequestContentItemGroup)[];
title?: string;
description?: string;
metadata?: object;
Expand All @@ -19,11 +19,12 @@ export interface ConnectorRequestContentItemGroup {
description?: string;
mustBeAccepted: boolean;
metadata?: object;
items: CreateOutgoingRequestRequestContentItemDerivations[];
items: ConnectorRequestItemDerivation[];
}

export type CreateOutgoingRequestRequestContentItemDerivations =
export type ConnectorRequestItemDerivation =
| CreateAttributeRequestItem
| DeleteAttributeRequestItem
| ShareAttributeRequestItem
| ProposeAttributeRequestItem
| ReadAttributeRequestItem
Expand Down Expand Up @@ -81,3 +82,8 @@ export interface RegisterAttributeListenerRequestItem extends ConnectorRequestCo
"@type": "RegisterAttributeListenerRequestItem";
query: IdentityAttributeQuery | ThirdPartyRelationshipAttributeQuery;
}

export interface DeleteAttributeRequestItem extends ConnectorRequestContentItem {
"@type": "DeleteAttributeRequestItem";
attributeId: string;
}

0 comments on commit 758ca5b

Please sign in to comment.