Skip to content

Commit

Permalink
fix/add RegisterAttributeListenerRequestItem to the SDK (#126)
Browse files Browse the repository at this point in the history
* refactor: rename ThirdPartyRelationshipAttributeQuery

* fix: add RegisterAttributeListenerRequestItem

* chore: version bump
  • Loading branch information
jkoenig134 authored Jan 2, 2024
1 parent 103942f commit 6eca12c
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 18 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## 3.6.2

-> SDK 2.2.5

- provenance sbom for the Docker Images

## 3.6.1
Expand Down
24 changes: 17 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nmshd/connector-sdk",
"version": "2.2.4",
"version": "2.2.5",
"description": "the enmeshed connector sdk",
"keywords": [
"enmeshed",
Expand Down Expand Up @@ -29,15 +29,15 @@
"build:schemas": "npx ts-json-schema-generator --path './src/types/**/*.ts' -o schemas.json --id https://enmeshed.eu/schemas/connector-api"
},
"dependencies": {
"axios": "^1.6.2",
"axios": "^1.6.3",
"form-data": "^4.0.0",
"qs": "^6.11.2"
},
"devDependencies": {
"@types/form-data": "^2.5.0",
"@types/qs": "^6.9.10",
"@types/qs": "^6.9.11",
"openapi-typescript-codegen": "^0.25.0",
"ts-json-schema-generator": "^1.4.0"
"ts-json-schema-generator": "^1.5.0"
},
"publishConfig": {
"access": "public",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface ThirdPartyAttributeQuery {
export interface ThirdPartyRelationshipAttributeQuery {
"@type"?: "ThirdPartyRelationshipAttributeQuery";
key: string;
owner: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/types/attributes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export * from "./ConnectorAttributes";
export * from "./IQLQuery";
export * from "./IdentityAttributeQuery";
export * from "./RelationshipAttributeQuery";
export * from "./ThirdPartyAttributeQuery";
export * from "./ThirdPartyRelationshipAttributeQuery";
export * from "./requests/CreateAttributeRequest";
export * from "./requests/ExecuteIQLQueryRequest";
export * from "./requests/ExecuteIdentityAttributeQueryRequest";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ThirdPartyAttributeQuery } from "../ThirdPartyAttributeQuery";
import { ThirdPartyRelationshipAttributeQuery } from "../ThirdPartyRelationshipAttributeQuery";

export interface ExecuteThirdPartyRelationshipAttributeQueryRequest {
query: ThirdPartyAttributeQuery;
query: ThirdPartyRelationshipAttributeQuery;
}
12 changes: 9 additions & 3 deletions packages/sdk/src/types/requests/ConnectorRequestContent.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IQLQuery, ThirdPartyAttributeQuery } from "../attributes";
import { IQLQuery, ThirdPartyRelationshipAttributeQuery } from "../attributes";
import { ConnectorIdentityAttribute, ConnectorRelationshipAttribute } from "../attributes/ConnectorAttribute";
import { IdentityAttributeQuery } from "../attributes/IdentityAttributeQuery";
import { RelationshipAttributeQuery } from "../attributes/RelationshipAttributeQuery";
Expand Down Expand Up @@ -29,7 +29,8 @@ export type CreateOutgoingRequestRequestContentItemDerivations =
| ReadAttributeRequestItem
| ConsentRequestItem
| AuthenticationRequestItem
| FreeTextRequestItem;
| FreeTextRequestItem
| RegisterAttributeListenerRequestItem;

export interface ConnectorRequestContentItem {
"@type"?: string;
Expand Down Expand Up @@ -58,7 +59,7 @@ export interface ProposeAttributeRequestItem extends ConnectorRequestContentItem

export interface ReadAttributeRequestItem extends ConnectorRequestContentItem {
"@type": "ReadAttributeRequestItem";
query: IdentityAttributeQuery | RelationshipAttributeQuery | ThirdPartyAttributeQuery | IQLQuery;
query: IdentityAttributeQuery | RelationshipAttributeQuery | ThirdPartyRelationshipAttributeQuery | IQLQuery;
}

export interface ConsentRequestItem extends ConnectorRequestContentItem {
Expand All @@ -75,3 +76,8 @@ export interface FreeTextRequestItem extends ConnectorRequestContentItem {
"@type": "FreeTextRequestItem";
freeText: string;
}

export interface RegisterAttributeListenerRequestItem extends ConnectorRequestContentItem {
"@type": "RegisterAttributeListenerRequestItem";
query: IdentityAttributeQuery | ThirdPartyRelationshipAttributeQuery;
}

0 comments on commit 6eca12c

Please sign in to comment.