-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/Query attribute versions (#132)
* docu: new route definitions * chore: fist implementation of some use cases * feat: add all missing routes for the new usecases * chore: remove added ts files * chore: improve test speed * chore: improve imports of types * chore: add missing files * chore: add change log * chore: move new routes to Attributes section * chore: remove todo * chore: add mongodb as dev dependency * chore: refactor to use QueryParam Injection * chore: bump version * fix: test typing * chore: move client metadata up * chore: fix tests * chore: remove global context * chore: move to jssoft db client and remove warning log from transport lib * chore: improve error for bad config * chore: remove math.random * chore: use default values of use cases * chore: improve query extraction * chore: change log level * chore: move private functions * chore: add console log for ci tests * chore: add second event to wait for with succession * chore: fix tests by waiting for succeeded event --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
b88b19d
commit d8a15c9
Showing
18 changed files
with
843 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
FROM node:20.11.0 | ||
WORKDIR /usr/app | ||
RUN npm install nodemon -g | ||
|
||
# Webserver, Debugger | ||
EXPOSE 80 9229 | ||
|
||
ENTRYPOINT ["nodemon", "-e", "js,json,yml", "--watch", "./dist", "--watch", "./config", "--inspect=0.0.0.0:9229", "--nolazy", "./dist/index.js"] | ||
ENTRYPOINT ["npx", "nodemon", "-e", "js,json,yml", "--watch", "./dist", "--watch", "./config", "--inspect=0.0.0.0:9229", "--nolazy", "./dist/index.js"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
packages/sdk/src/types/attributes/requests/GetOwnRepositoryAttributesRequest.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export interface GetOwnRepositoryAttributesRequest { | ||
onlyLatestVersions?: boolean; | ||
} |
19 changes: 19 additions & 0 deletions
19
packages/sdk/src/types/attributes/requests/GetOwnSharedIdentityAttributesRequest.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
export interface GetOwnSharedIdentityAttributesRequest { | ||
peer: string; | ||
onlyValid?: boolean; | ||
"query.createdAt"?: string; | ||
"query.content.@type"?: string | string[]; | ||
"query.content.tags"?: string | string[]; | ||
"query.content.validFrom"?: string | string[]; | ||
"query.content.validTo"?: string | string[]; | ||
"query.content.key"?: string | string[]; | ||
"query.content.isTechnical"?: string | string[]; | ||
"query.content.confidentiality"?: string | string[]; | ||
"query.content.value.@type"?: string | string[]; | ||
"query.shareInfo"?: string | string[]; | ||
"query.shareInfo.requestReference"?: string | string[]; | ||
"query.shareInfo.notificationReference"?: string | string[]; | ||
"query.shareInfo.sourceAttribute"?: string | string[]; | ||
hideTechnical?: boolean; | ||
onlyLatestVersions?: boolean; | ||
} |
18 changes: 18 additions & 0 deletions
18
packages/sdk/src/types/attributes/requests/GetPeerSharedIdentityAttributesRequest.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export interface GetPeerSharedIdentityAttributesRequest { | ||
peer: string; | ||
onlyValid?: boolean; | ||
"query.createdAt"?: string; | ||
"query.content.@type"?: string | string[]; | ||
"query.content.tags"?: string | string[]; | ||
"query.content.validFrom"?: string | string[]; | ||
"query.content.validTo"?: string | string[]; | ||
"query.content.key"?: string | string[]; | ||
"query.content.isTechnical"?: string | string[]; | ||
"query.content.confidentiality"?: string | string[]; | ||
"query.content.value.@type"?: string | string[]; | ||
"query.shareInfo"?: string | string[]; | ||
"query.shareInfo.requestReference"?: string | string[]; | ||
"query.shareInfo.notificationReference"?: string | string[]; | ||
hideTechnical?: boolean; | ||
onlyLatestVersions?: boolean; | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/sdk/src/types/attributes/requests/GetSharedVersionsOfRepositoryAttributeRequest.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export interface GetSharedVersionsOfRepositoryAttributeRequest { | ||
peers?: string[]; | ||
onlyLatestVersions?: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
export * from "./ConnectorError"; | ||
export * from "./ConnectorResponse"; | ||
export * from "./account"; | ||
export * from "./attributes"; | ||
export * from "./challenges"; | ||
export * from "./ConnectorError"; | ||
export * from "./ConnectorResponse"; | ||
export * from "./files"; | ||
export * from "./messages"; | ||
export * from "./relationships"; | ||
export * from "./relationshipTemplates"; | ||
export * from "./relationships"; | ||
export * from "./requests"; | ||
export * from "./tokens"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.